instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I am planning an app with a "coin flipping simulation" function(Activity) in an Android phone. I am new to 3D (OpenGL) here , and I know there will be a lot of efforts to build from scratch. So , I am looking for an existing 3D engine , which is able to simulate :
Coin flip and drop , with G-Sensor , so that users can... | stackexchange/codereview |
When I call sizeToFit on a UITextfield that is being edited, the size reacts in an inconsistent way to the cursor. Sometimes it accounts for it; sometimes it doesn't. If it doesn't, part of the first letter is clipped.
Has anyone found a way around this?
| stackexchange/codereview |
Hi I get the error 'ListViewWebPart' is a 'namespace' but is used like a 'type'
here is my code i don't know how to fix this any ideas?
namespace TestSolution
{
[Guid("d3425822-6979-476d-a8cb-04de9521d1b4")]
public class TestListViewWebPart : System.Web.UI.WebControls.WebParts.WebPart
{
public T... | stackexchange/codereview |
I assume this one is rather a JavaScript/jQuery/DOM question than a Rails question, but it's all due to the way I implemented it in Rails.
I am trying to upload files while creating a new object (auction). While the user inputs some data, he shall also have the possibility to upload multiple photos.
The main problem is... | stackexchange/codereview |
I have a POCO class, mapping to a table that basically contain three primary keys as follow:
public class ContactProjectSite
{
public int ContactID { get; set; }
public int ProjectID { get; set; }
public int SiteID { get; set; }
public virtual Contact Contact { get; set; }
p... | stackexchange/codereview |
When I am editing an XML document that has an XmlSchema, how can I programmatically determine the elements that can be inserted next? I am using C# and I already know which element I am in. Is there an MSXML method I can call or something else? Thanks.
| stackexchange/codereview |
I am serving two different swfs that read and write to the same SharedObject variable. The SharedObject variable is a number, and each swf checks that number to make sure it isn't using the same number twice. It then stores the last number it selects. In this way both swfs should never use the same number twice, no ... | stackexchange/codereview |
I would like to create a function within a package with a NAMESPACE that will save some variables. The problem is that when load is called on the .Rdata file it
tries to load the namespace of the package that contained the function that created the .Rdata file, but this package need not be loaded.
This example functi... | stackexchange/codereview |
How do I call a function on every update? Below is what I tried. It doesn't work. The function itself works fine when I execute it alone.
new Ajax.PeriodicalUpdater('chatMessages', 'chat/receive_chat',
{
method: 'post',
parameters: {lId: latestId},
insertion: Inse... | stackexchange/codereview |
int *p;
while(true)
{
p = new int;
}
Due to running out of memory space, shouldn't this code crash. I have tried printing out the value of p, that is the address of memory located for p, and it seems to increase yet there is no crashing.
Why is this so?
| stackexchange/codereview |
So with Firesheep, everyone in a public Wi-Fi now has a one-click session hijack tool.
The way it works - to my understanding - is that it simply captures all traffic and grabs the session cookie (so it doesn't steal passwords).
From my understanding, this also means that a HTTPS secured login does not solve this alone... | stackexchange/codereview |
Is it possible to use the same layout file across different (mounted) apps without some hackish solution (i.e. sym links) on Padrino ?
Cheers,
Ze
| stackexchange/codereview |
I need to write a C# program to change the 'Run As' field of scheduled tasks on remote systems.
What are some of the libraries I should be looking at to achieve this?
| stackexchange/codereview |
All,
Below is the code that I have written in AutoIT.
$fileToWrite = FileOpen("C:\output.txt", 1)
If FileExists("C:\test.csv") Then
$fileHandle= FileOpen("test.csv", 0)
If ($fileHandle = -1) Then
MsgBox (0, "Error", "Error occured while reading the file")
Exit
Else
While 1
... | stackexchange/codereview |
I want to launch a WPF App, in a 2nd AppDomain, from a 'loader' class. If the WPF App times itself out, I want it to fire an event back to the loader class and the loader class will Unload() the the 2nd AppDomain and show a login screen. If the user logs back in, the same process will repeat.
I have this working to a... | stackexchange/codereview |
is it possible to get the username of the user who initiated a build on Hudson ? There doesn't seem to be any hudson environment variable for username.
otherwise, how are you supposed to return specific builds running under a certain user remotely using the API ?
| stackexchange/codereview |
Possible Duplicate:
Save file with C fopen
I'm using C language to same a file in c:\SomeDirectory on Windows 7.
Is there any restriction on saving a file under this directory on windows 7?
I'm having trobles with saving this file on this folder, the Windows 7 doesn't allow me (even as administrator) to save the fil... | stackexchange/codereview |
I have to read some text files with the following content:
\u201CThe Pedlar Lady of Gushing Cross\u201D
In ruby 1.9 terminal, when I create a string with this content:
ruby-1.9.1-p378 > "\u2714 \u2714 my great string \u2714 \u2714"
=> "✔ ✔ my great string ✔ ✔"
In ruby 1.8, I don't get the unicode codes converted to ... | stackexchange/codereview |
It's final try with PHP, if it fails, I'll try with JS. So my goal is to post on FB page as "Page name" through PHP: this is what I want to get
But all I get is shown pic below. Also, it's visible ONLY to this profile (not to friends/ppl who like/etc.).
This is my current code
function post_facebook($data=null, $red... | stackexchange/codereview |
I'm a bit fuzzy on the new Action/Func/Variance/CoVariance stuff, which is probably what I need.
What I want is to be able to pass a delegate as a parameter to a method, that takes a string and returns a bool. The problem is that I can't use a typed delegate or interface since it will be used in different libraries whi... | stackexchange/codereview |
I did not find anywhere an answer.. If i have: String s = "How are you"?
How can i split this into two strings, so first string containing from 0..s.length()/2 and the 2nd string from s.length()/2+1..s.length()?
Thanks!
| stackexchange/codereview |
I am using core data which has two tables. I want to fetch attribute "VID" from table "DOSE" and based on this result i want to fetch the corresponding name of vaccine from another table "Vaccine".how can i set Fetch request to retrive just one attribute? And is there any mechanism to join the query through which base... | stackexchange/codereview |
I have several related database tables and I would like to treat their rows as objects and their tables as something like lists. What are the considerations that I have to keep in mind (for instance, ensuring that the objects stay consistent with one another and with the database, lazy loading)? And what is a good de... | stackexchange/codereview |
I'm trying to alter the match value from preg_replace with an uppcase copy but cant seem to figure it out...
I've tried:
preg_replace("#\[name=((?:keywords)|(?:description))\]#is", "[name=" . strtoupper($1) . "]" ,$str )
and
preg_replace("#\[name=((?:keywords)|(?:description))\]#is", "[name={strtoupper($1)}]" ,$str )
... | stackexchange/codereview |
Need to find a web host for our ASP.net MVC website (Hooked to an SQL Database). To start with the traffic will be quite low but the room for growth could be huge so we need a web host that can dynamically grow if needed to take the traffic influx.
Does anyone have any advice or know of any host solutions for this scen... | stackexchange/codereview |
i have a self referencing table called project that has a master detail relationship between parent projects, and sub-projects, sub-sub-projects...
one of the fields is releaseId and i need to make sure that the parent projects release id is the same for all its subs...
table fields are projectId, parentProjectId, rele... | stackexchange/codereview |
I thought that the delete command would free up memory I allocated. Can someone explain why it seems I still have the memory in use after delete?
class Test
{
public:
int time;
};
int main()
{
Test *e;
e = new Test;
e->time = 1;
cout << e->time << endl;
delete e;
e->time = 2;
cout <... | stackexchange/codereview |
I need to access a sharepoint application from my desktop application (written in C#). How should I pass credentials and verify authentication?
| stackexchange/codereview |
Is it possible to send sms from windows machine to mobile phone.
I have searched a lot and got the following code.
Sender.java
package sms;
import java.util.Date;
public class Sender implements Runnable {
private static final long STANDARD=500;
private static final long LONG=2000;
private static final long V... | stackexchange/codereview |
Somewhere resets ol's padding to 0
ol { padding:0; }
I need to set it back to default which padding is growing depends on the number
ol { /* ??? */ }
Uploaded here: http://jsfiddle.net/jGxLS/
Preview:
As you can see, the padding is not growing (overflow to the left):
How to make the padding grow?
| stackexchange/codereview |
Can someone explain the following error (from eclipse IDE):
The method put(String, capture#1-of ?)
in the type Map
is not applicable for the arguments
(String, Object)
Received on line 3 of the code blow:
public class MyTest {
public void populateUserLoggedIn(Map<String, ?> model){
model.put( "test"... | stackexchange/codereview |
XJC seems to be completely ignoring mixed="true" on my XML Schema elements thereby not allowing me to extract text content. From the sample XML below, I need to be able to extract "Title Text." Without mixed="true" being recognized, no accessor is created nor is it unmarshalled from XML:
<?xml version="1.0" encoding="U... | stackexchange/codereview |
I can't seem to get a customized divider, using a Drawable I've defined, to work when using a ListActivity and not creating a custom ListView. It almost seems like when the VM creates its own ListView for me, with the ListActivity, it uses a theme with the default divider provided; and if I try to provide one, no divi... | stackexchange/codereview |
I'm looking for some advice/feedback about using different languages in a layered architecture. Right now the architecture in question is an all java stack (db, middle tier, and web tier) using Spring to tie everything together. We've been tossing around the idea of using Ruby on Rails for the web tier, but I'd like to... | stackexchange/codereview |
I have the following class:
class PluginLoader
{
public:
PluginLoader(Logger&, PluginFactory&, ConflictResolver&);
//Functions.
private:
//Members and functions
};
Logger, PluginFactory and ConflictResolver classes are all interface classes which will be implemented in the application. I create the single ... | stackexchange/codereview |
At the company i am working on we have an application build on Jboss/Apache/Hibernate with Ms Sql 2005 db.
We have a page that loads a bunch of transactions. Now we timed this during loading of the page and it takes abnout 15-20 seconds to load the files, thsi is because the queries build (not sure if these are build ... | stackexchange/codereview |
I have a jruby application deployed using glassfish-gem with an apache front end. When I do a form post of a file it fails on files over a certian size, seems to be around 800k. The error is below if it helps any.
glassfish.yml is generated, no changes from default other than to increase some java memory settings.
I ... | stackexchange/codereview |
I have an entity ("Settings") and I want to get all the values in just one field ("Status").I am using coredata. Can anyone help me, please?
| stackexchange/codereview |
Most command-line programs just operate on one line at a time.
Can I use a common command-line utility (echo, sed, awk, etc) to concatenate every set of two lines, or would I need to write a script/program from scratch to do this?
$ cat myFile
line 1
line 2
line 3
line 4
$ cat myFile | __somecommand__
line 1line 2
l... | stackexchange/codereview |
I understand that it's possible to access the iPad Photo library using the UIImagePickerController. The problem with this is that it makes it possible to access only one image at a time. I'm building an app that needs to be able to select multiple images from this library simultaneously (without loading them into memor... | stackexchange/codereview |
Pretty simple one that I just seemingly can't find the answer to.
How can i change the iPhone statusbar (thin bar right at the top with the reception/batter etc) from default grey to black in my PhoneGap iPhone application?
Thanks,
Glen
| stackexchange/codereview |
I am trying to accomplish an "imagemap" in flash where you click on different areas in the image and when you click on it, a popup (within flash) comes up showing more information about the object that was clicked on. The popup has a close button that can will then close the popup.
My biggest trouble is the way I have... | stackexchange/codereview |
I have a windows forms app (c# 4.0) and the "X" button won't close the form, and this.close() won't do it either.
Other forms work fine, yet when I copy the designer over to a new form, it breaks that form too!
any clues?
| stackexchange/codereview |
I have a collection of files with fully qualified paths (root/test/thing1/thing2/file.txt). I want to foreach over this collection and drop the file into the location defined in the path, however, if certain directories don't exist, I want them to great created automatically. My program has a default "drop location",... | stackexchange/codereview |
I'm compiling a bit of code using the following settings in VC++2010: /O2 /Ob2 /Oi /Ot
However I'm having some trouble understanding some parts of the assembly generated, I have put some questions in the code as comments.
Also, what prefetching distance is generally recommended on modern cpus? I can ofc test on my own... | stackexchange/codereview |
I am in search for a extension that is similar to django_-volution.
The requirement is to alter the database, whitout deleting the wohle data.
I don't know, but for me, this is something so ordinary - doesn't django have a built-in function like that?
django_evolution is still in working progress and has some bugs, so ... | stackexchange/codereview |
I'm new to C++. Here is the code:
template <class T> typename lw_slist {
// .... some code
private:
typedef struct _slist_cell {
_slist_cell *next;
T data;
} slist_cell;
lw_slist::slist_cell *root;
};
Give this compilation error:
error C4430: missing type ... | stackexchange/codereview |
I'm trying to build a complex query with linq.
I have a C# method that takes in parameters some arguments:
public void function returnAList(string arg1, string arg2,
string arg3, string arg4);
I put the following code that lets me return a list from my database:
List<Person> listOfPersons = this.businessLayer.Ret... | stackexchange/codereview |
How to reset/emptying to a std::wstring?
It seems that my function is making a delay when using these line:
std::wstring currentUrl; // <--- I declare this as global.
currentUrl = _bstr_t(url->bstrVal);
Any idea how can I resolve this?
| stackexchange/codereview |
i want to change the button color when it is clicked. I used :
[button setBackgroundColor:[UIColor redColor]];
but this shows red color only on the four corners of button not on the whole button and also when i use forState:UIControlStateNormal then the application hangs.
Is their any way to show some color on button ... | stackexchange/codereview |
In one of my apps, I have a custom drawn semitransparent UIView that I use as a cover on top of another UIView for a special effect.
Lower View:
Lower View with Custom View on Top:
It works, its great on the iPhone where the side margins are only 10 pixels, but now I need to expand the left and right margins to match... | stackexchange/codereview |
I am using Spring + EclipseLink 2 to manage entity on a Derby database. Select object from db works fine but when I try to persist one, nothing happens. Program executes correctly and no exception are thrown. I probably did something wrong, as I'm not familiar with Spring, thanks for your comments and suggestions :)
Th... | stackexchange/codereview |
I want to show a list of game reviews for editing. This is simple to do with VS' built-in scaffolding, but I'm running into issues with handling an entity's associated EntityCollections. My controller method is currently:
public ActionResult ShowReviews()
{
var reviews = _siteDB.Games.Include("Genre").Include("Pl... | stackexchange/codereview |
Using Pythons (2.7) 'json' module I'm looking to process various JSON feeds. Unfortunately some of these feeds do not conform with JSON standards - in specific some keys are not wrapped in double speech-marks ("). This is causing Python to bug out.
Before writing an ugly-as-hell piece of code to parse and repair the in... | stackexchange/codereview |
When I watched the "Dalvik VM Internals" talk, I had a question about one of the slides about wise loops. Here is two of the seven loops on that slide:
(4) for (int i = 0; i < array.length; i++)
(5) for (int i = 0; i < this.var; i++)
and the speaks said (4) is more efficient than (5). "array" is just an Array object.
... | stackexchange/codereview |
In FireFox 3.6.1 (a fresh install), I am seeing a request sent to the first search result (Google) without user interaction.
Why is this?
| stackexchange/codereview |
Contents of POM.xml are :
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<!-- Parent pom relation
<parent>
<groupId>com.vod.atom</groupId>
<artifactId>... | stackexchange/codereview |
I have a schema with following attributes in schema element:
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:abc="http://abc.example.com" targetNamespace="http://abc.example.com" elementFormDefault="qualified" attributeFormDefault="unqualified">
I could compile it and get java classes. Using these classes, I fi... | stackexchange/codereview |
I've had this app on app store with no problem until iphone 4 came out.
My home page has an image covering the whole screen.
UIImageView added in interface builder, and image path added in interface builder.
In all phones this image shows up; however, the image does not show up in any iphone 4, and instead the user see... | stackexchange/codereview |
I was recently having some issues with a bigger project, but in an effort to solve the problem, I made a new solution with just two incredibly basic files. It is a WPF C# project with the main window containing a button, and a usercontrol containing a textblock. I already have them linked in Blend so that when I click ... | stackexchange/codereview |
I need to create a very simple scripting language, as an evolution of a macro language (where placeholders were present and were exchanged for the realdata) which is based essentially on statements that need to be executed in order. I need to support nesting of statements and maybe possibly if conditions.
I think I nee... | stackexchange/codereview |
I know iam asking the question asked by many, but still have doubt in this concept. I have set my "Active SDK" and "Base SDK" to 4.1 and "Deployment Target tp 3.0". Will by application run in all device upto 3.0 ?
I have one more doubt, while creating the distribution provisioning profile, i should set the "Active SDK"... | stackexchange/codereview |
I need to do some housekeeping.I accidentally setup my classpath same as my codebase and all classes are placed along with my code.I need to write a quick java program to select all files of the type .class and .class alone and delete it immediately.Has anyone done something related to this?
| stackexchange/codereview |
The project I am currently working on is a text editor type app. I am wondering how I can handle custom view options. eg. font family, size, bold, colors for myTextBox. My Editor Tab is a EditorTabViewModel within the View is a custom user control MarkdownEditor. Its basically a text box with some buttons for bold/ital... | stackexchange/codereview |
I would like some examples of high profile apps created using MonoTouch. The apps you call home about. The apps that made it to the top 25 lists in their category.
Where can I find examples of such applications?
This is a valid question, and should be re-opened. I need concrete examples of good applications developed u... | stackexchange/codereview |
I would like to change the color of the past events, I guess I need to add a class to them but that is the problem, how I do that?
| stackexchange/codereview |
I am using the following code fragment to change the account and password credentials of a Windows Service. However, this only works if the service is stopped.
How can I, programatically, stop the service before making these changes, and then start it again?
namespace ServiceAccount
{
class Program
{
st... | stackexchange/codereview |
I have a problem when I import classes from one to another. I have
those classes in different modules:
crm.py
from CRMContactInformation import CRMContactInformation
class CRM(rdb.Model):
"""Set up crm table in the database"""
rdb.metadata(metadata)
rdb.tablename("crms")
id = Column("i... | stackexchange/codereview |
I want to download (or simply file_get_contents) for 5 places. I wait say 1.2 sec for each that means in total 1.2X5=6 seconds. I want to save waiting time. I thought I could wait 1.3 sec is enough. How can I approach?
| stackexchange/codereview |
I am not able to wrap the most simple TCL application using TclDevKit5.2.
I on 64 bit CentOS, and here wat uname -a returns:
Linux hp1 2.6.18-194.11.1.el5 #1 SMP Tue Aug 10 19:05:06 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
When typing:
/opt/TclDevKit-5.2/bin/tclapp -out wrap empty.tcl
(here empty.tcl is an empty file)... | stackexchange/codereview |
If the names repeated is more than 6 and there are six different addresses for that same name, then I don't want to output them to the KeepThese table:
harry baker 1 street
harry baker 2 street
harry baker 3 street
harry baker 4 street
harry baker 5 street
harry baker 6 street
donald ross 11th street
So harry baker sh... | stackexchange/codereview |
I have a Visual Studio designer enabled control which uses a collection editor to allow the user to create and edit sub components.
For example, I have a control which offers a readonly "List" property containing a collection of bindings (themselves components with a name property and an event). The user can modify th... | stackexchange/codereview |
Up to this point I used lock(object) construction for acces to shared variables.
After reading msdn article about Interlocked
The Increment and Decrement methods increment or decrement a variable and store the resulting value in a single operation. On most computers, incrementing a variable is not an atomic operation,... | stackexchange/codereview |
I need to input latitude and longitude separately in 2 EditTexts and display the location at the click of a button. Somehow i'm not able to get the correct layout as i precisely require 2 EditTexts aligned side by side and a button below them.
Here is what i already have:
<LinearLayout android:id="@+id/zoom"
... | stackexchange/codereview |
I am trying to optimize a function using SSE2. I'm wondering if I can prepare the data for my assembly code better than this way. My source data is a bunch of unsigned chars from pSrcData. I copy it to this array of floats, as my calculation needs to happen in float.
unsigned char *pSrcData = GetSourceDataPointer()... | stackexchange/codereview |
I want to get the language set by the user in the settings screen. I have checked the DeviceInfo class, but don't see anything.
| stackexchange/codereview |
By the way, I'm using rails 3.
How can I use devise's "warden" to authenticate a rack app in the same
stack as the rails app that uses devise ?
My problem is that when I call this:
request.env['warden'] # nil :(
from the other application on the rack stack I get nil !
I integrated dav4rack (webdav) in my rails app via... | stackexchange/codereview |
Is there a way to programmatically within javascript call the native click event of an tag? The .trigger('click') or .click() functions will not work, because they are triggering the onClick event of the link and not the event that follows the URL. I need to programmatically click a hidden link and follow that link to... | stackexchange/codereview |
In C#,
Is there a way to turn an automatic property into a lazy loaded automatic property with a specified default value?
Essentially, I am trying to turn this...
private string _SomeVariable
public string SomeVariable
{
get
{
if(_SomeVariable == null)
{
_SomeVariable = SomeC... | stackexchange/codereview |
I have just started to create a stored function this is my first time so I am having a few problems. Currently I call the function using SELECT test(); (test is the function name for now). I want to send a number to the function (username ID) and have the username returned.
I have this working by using SELECT test(1); ... | stackexchange/codereview |
I was confused as to what is the difference between a Script and a Program, but a previously asked question Difference between a script and a program? clarified my doubt but that further leads me to wonder what is the difference between an Object being Scriptable versus being Programmable.
| stackexchange/codereview |
How do you print 'nicely' in LEDA?
I am looking for the equivalent to
fixed
setprecision(3)
| stackexchange/codereview |
I am interested in how the reverse-engineering on java bytecode is conducted. Can anyone recommend some useful tutorials for me?
I have read some articles on this topic already:
1. The class File Format
2. Java bytecode
These two articles gave a lot of information about bytecode. However, non of them actually talks abo... | stackexchange/codereview |
I'd like to know how you understand modularization in software, especially in web development?
| stackexchange/codereview |
i am looking for a function to replace each character from a string with a rand character from array.
lets say that i have a string
$s="Abc";
and i have an arrays for each character like
$sr[1]=array('ÀÂÁÃÄÅĀĂĄДàáâãäåāăąǻα@');
$sr[2]=array('ßβЂБЪЬб฿');
$sr[3]=array('ÇĆĈĊČćĉċς');
how can i change the $s strin... | stackexchange/codereview |
Heres a snippet:
translate("a", "4").
translate("m", "/\\/\\").
tol33t([], []).
tol33t([Upper|UpperTail], [Lower|LowerTail]) :-
translate([Upper], [Lower]),
tol33t(UpperTail, LowerTail).
Basically what i want to do is look up in the table for a letter and then get that letter and add it to the new list.
What ... | stackexchange/codereview |
Hi I would like to know how to download a file to a variable (or memory) with php. I have tried using file_get_contents and a few RSS feed php libraries with no output (even with var_dump). This is the url that I am trying to access:
http://www.facebook.com/feeds/friends_status.php?id=MY_USER_ID&key=SECRET_KEY&format... | stackexchange/codereview |
I'm hoping to assemble a definitive and useful study guide. Please help!
I'll start:
Program to an Interface not an Implementation
Interface Separation Principle
DRY Principle (Don't Repeat Yourself)
Law of Demeter
Liskov Substitution Principle
Dependency Injection/Inversion of Control
Separation of Concerns
Loose C... | stackexchange/codereview |
I am getting error "ErrorCode:SubStatus:Error in client configuration file." while working with app fabric.
When I try to create the object, it breaks and throws the above mentioned error.
DataCacheFactory dcf = new DataCacheFactory();
The config file is as follows:
<?xml version="1.0" encoding="utf-8" ?>
<configurati... | stackexchange/codereview |
http://itunes.apple.com/app/bloomberg/id281941097?mt=8
On the second screenshot or this Bloomberg iPhone app..
Can anyone tell me what is the component just above the TABBAR, which shows
(Bloomberg Last Updated: 22:40) called. I don't think so there is such component or may be i don't know.
Or if you ... | stackexchange/codereview |
I want to know tools which can visualize the state transitions in a Finite state machine defined in XML. It would be helpful if it can generate animations for the transitions
| stackexchange/codereview |
I am about to write a voting method for my site. I want a method to stop people voting for the same thing twice. So far my thoughts have been:
Drop a cookie once the vote is complete (susceptible to multi browser gaming)
Log IP address per vote (this will fail in proxy / corporate environments)
Force logins
My site... | stackexchange/codereview |
Possible Duplicate:
How does .net managed memory handle value types inside objects?
I have a class as below
public class MyClass
{
public List<RequestRow> RequestRow { get; set; }
public List<int> intList { get; set; }
public string ErrorMessage { get; set; }
public string SuccessMessage { get; set; }
... | stackexchange/codereview |
I'm currently working on a project which requires the detection of user state (walking, running, driving), I've looked through some of the existing solutions on Android platform such as pedometer or calculating velocity with given acceleration, but I'm still unsure how I can approach this problem. Is there a way to acc... | stackexchange/codereview |
Apple "deprecated" Java and will stop supporting it in the future.
Assuming that Oracle will take over support for Java on the Mac, is there a way to be sure that Apple-specific hacks like those "put the menubar at the top of the screen" or "use the native theme by default" will be supported the same way on other JREs... | stackexchange/codereview |
I'm trying to connect from Ruby 1.8.7 on RHEL 5 to MS SQL Server. I'm using FreeTDS and the tiny_tds RubyGem.
I got it working fine on OS X.
On Linux I installed FreeTDS and confirmed that it can connect to SQL Server from the command line no problem. And gem install tiny_tds went fine.
However, when I deploy to Linux ... | stackexchange/codereview |
I am using the built in qsort to sort an array of structs. But after the call to qsort the last element in the array seems to have had its value that I am sorting by set to empty.
Here is my code...
int numEntries = 5;
TvEntry* entries[numEntries]; //create array
//Entries get added to the array here...
qsort( *entri... | stackexchange/codereview |
I am creating a appwidget that consists of a single custom view called Foo.
xml/widget.xml:
<appwidget-provider
xmlns:android="http://schemas.android.com/apk/res/android"
android:minWidth="294dp"
android:minHeight="72dp"
android:updatePeriodMillis="0"
android:initialLayout="@layout/widget_layout">
</appwidget-prov... | stackexchange/codereview |
I have this other assembly which has a folder with 10 UserControls and I reference the assembly in XAML so I can use them.
xmlns:usercontrols="clr-namespace:Company.Project.OtherAssembly.UserControls;assembly=Company.Project.OtherAssembly"
However, when I try to use the UserControls with <usercontrols:someUserControl ... | stackexchange/codereview |
I need to find the specific time a tap happens and then the time since it has passed. I have the app counting taps, I just haven't figured out the time thing.
I tried:
timeStamp = [[NSDate date] timeIntervalSince1970];
but I'm new to obj c and clearly there is a syntax problem.
Thanks for anyhelp.
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.