instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I've recently started using MobileOrg (through Dropbox) to be able to manage my org-mode TODO lists while I'm away from my computer.
It's generally great, but the syncing back and forth has a few steps, so I'd like to try and simplify it a bit by automating the steps on the PC side.
Anyway, here are the two things I'd ... | stackexchange/codereview |
I'm working in Silverlight on an Exception handling dialog. When an exception is thrown, the dialog pops up with details about the error, and a button that allows the user to save the error log and send it to the developer. When the user clicks the Save Error Log button, a SaveFileDialog pops up and lets the user brows... | stackexchange/codereview |
i have the following project structure:
./WEB-INF/web.xml
./WEB-INF/lib
./WEB-INF/classes/com/a/B.class
./index.jsp
when i try to put this project in tomcat webapp and try to execute index.jsp i get the error:
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 6 in the gen... | stackexchange/codereview |
I am working on an Android project that uses classes and methods from a seperate JAR file I am also creating, and the issue is with a specific util class called XpathUtil that is throwing a VerifyError every time I try calling one of its static methods.
Here is how my XpathUtil class looks like:
public class XpathUtil ... | stackexchange/codereview |
I'm slightly confused with the GWT MVP Development with Activities and Places example.
It's the first time I approach such a design pattern. I managed to implement it in my project, and to my surprise it actually works. History works, events fire fine, etc.
Since I am following the example exactly, my presenters are di... | stackexchange/codereview |
Is there a helper library out there for doing these types of date calculations like in Rails?
Date.today.end_of_week
| stackexchange/codereview |
I am a newbie to AspectJ and to learn it I am trying to search for some open-source simple applications that use AspectJ for the web but I am unable to retrieve any. I am trying to build a filter through this technology but I am not able to find any working examples that are suited in particular to Eclipse/Tomcat.
| stackexchange/codereview |
I have a list of stirings I need to manipulate and write out.
I get the strings the usual way with H|Tail recursion.
H will look something like "statement(foo, foo2, foo3, foo4, foo5)"
I want to be able to write out only foo, foo2, foo3 on separate lines
out: foo
bar: foo2
...
...
div: foo5
| stackexchange/codereview |
I am making a robot that fins a flasher in a maze and brings it back to its original position. When I test my code, the robot will find the flasher, but then get stuck and not return to it's starting position. I've written other methods to make the program easier, they include methods that check if the next intersectio... | stackexchange/codereview |
I have a View Controller calling a method in its own view called closeMenu. closeMenu as seen below remove's a UIImageView called menu from the superView and sets it equal to nil. The method works when called from within the view but not when called from the View Controller
When calling the method, the view controller ... | stackexchange/codereview |
I found that making a table with
<table style="padding-left: 100px; width: 200px">
makes the content only 100px wide. Further investigation revealed that Firefox has
table { -moz-box-sizing: border-box };
rule in its default stylesheet. Is there a reason for that? Are tables supposed to be sized this way according to... | stackexchange/codereview |
I would like to dynamically apply the MEF Export attribute to a type at run-time, exactly as if the type had had an Export attribute applied at compile time.
Is there a simple way to do this?
Barring that, is there a complex way to do this?
| stackexchange/codereview |
Using jQuery, is there a quick way of knowing if an element is its parent's last child?
Example:
<ul>
<li id="a"></li>
<li id="b"></li>
<li id="c"></li>
</ul>
$('#b').isLastChild(); //should return FALSE
$('#c').isLastChild(); //should return TRUE
| stackexchange/codereview |
I am currently in the process of rolling a custom order-processing system. My current structure is pretty standard, invoices, purchase orders, and items are all kept in separate tables. Items know which form(s) they are on by keeping track of the form's id, but forms don't know what items are in them (in the database).... | stackexchange/codereview |
HI All,
I am planning to index a single document, which has tab separated data as below:
Name ID email address
So when somebody searches for the 'Name' you should get his ID,email and address as the response. The same holds good for other columns as well. I am planning to use Lucene for th... | stackexchange/codereview |
I am preparing to develop a mapping app that places semi-transparent tiled images over ocean to show weekly output from satellite data passed through an algorithm. I have worked with Maps placing landmarks before using custom Javascript and have created/modified simple KML files. Some of my users have advised they are ... | stackexchange/codereview |
The following piece of code works perfectly in all browsers, bar IE. As usual.
This is what needs to happen:
When hovering over a link, get that
link colour.
Get the RGB value of that colour,
seeing as the base CSS will always
be set to a HEX value;
Use the new RGB value and do a calculation to determine a lighter sha... | stackexchange/codereview |
I want to distribute s/w licenses as encrypted files. I create a new file every time someone buys a licence & email it out, with instructions to put it in a certain directory.
The PHP code which the user runs should be able to unencrypt the file (and the code is obfuscated to stuff him hacking that). Obviously the user... | stackexchange/codereview |
I expect the most negative for python is -maxint-1
I expect having -2, will make integer overflow.
from sys import maxint
maximum_int = maxint
minimum_int = -maxint - 2
# 2147483647
# -2147483649
print maximum_int
print minimum_int
Yet. Correct result is displayed, and a value which is more negative than -maxint-1 is... | stackexchange/codereview |
I have a working exec("java $file") command in php, but the problem is that I'm not sure how to get standard output from a java program.
I realize that there is a second parameter (for example, exec("java $file", $output) ) but that doesn't seem to return output from a java program.
For example, if I have a java progra... | stackexchange/codereview |
I am using facebook PHP SDK and using that I can able to make request to facebook and get the expended permission from user. After user granted extended permission, anytime user can remove our application or revoke certain granted permission from their settings page, but there is a call back url for facebook to notify,... | stackexchange/codereview |
I want to recursively search through a directory with subdirectories of text files and replace every occurrence of {$replace} within the files with the contents of a multi line string. How can this be achieved with Python?
So far all I have is the recursive code using os.walk to get a list of files that are required to... | stackexchange/codereview |
How does strlen() work internally? Are there any inherent bugs in the function?
| stackexchange/codereview |
I am trying to call a servlet from an Oracle DB and for that I am using a java 1.4 class with an URL call on this form
http://ip:80/serv/Servletg?parameter with
url = new URL("http","ip",80,"/serv/Servletg"+parameter);
and the following exception is occurred:
java.net.MalformedURLException: unknown protocol: http
at j... | stackexchange/codereview |
What do those lines of code stand for?
payloadType = header[1] & 127;
sequenceNumber = unsigned_int(header[3]) + 256*unsigned_int(header[2]);
timeStamp = unsigned_int(header[7])
+ unsigned_int(header[6])
+ 65536*unsigned_int(header[5])
+ 16777216*unsigned_int(header[4]);
Wh... | stackexchange/codereview |
I have this field:
HashMap<String, HashMap> selects = new HashMap<String, HashMap>();
For each Hash<String, HashMap> I need to create a ComboBox, whose items are the value (which happens to be a HashMap itself) of HashMap <String, **HashMap**>.
By way of (non-functioning) demonstration:
for (int i=0; i < selects.size(... | stackexchange/codereview |
I have a the day of the year for example 346.
I want to get NSDate to now what month and day it means.
| stackexchange/codereview |
I would like to read the org-mode manual in org mode... Is there a way to download the manual in .org files?
Thanks,
Ani
| stackexchange/codereview |
I expected objectAtIndex: to return a retained and autoreleased object for my use, but my tests with autorelease pools indicate they do not.
This being the case, how do I protect myself against another thread removing an object from an array after I retrieve its reference using objectAtIndex but before I have a chance ... | stackexchange/codereview |
I am developing an Android project on Eclipse, and I'm trying to switch from running tests on the emulator/device (which is very slow) to Robolectric.
I replaced the Android libs with Robolectric's, added JUnit to the path, changed the test case back to a regular TestCase and added the suggested @RunWith(RobolectricTes... | stackexchange/codereview |
I have had massive problems with a serious of changes made to the folder structure of my working copy this morning, which have been committed to the repository. I have decided the best thing to do is to go back to yesterday evening's commit and start again.
I have deleted my working copy and checked out another one bas... | stackexchange/codereview |
have developed vb6 project and my client want it to run on the internet in a week's time.
taking this project to web will take me almost five month to clear.is there a way that i can install dlls on the server and run exe file on the web/internet? please help me if it's possible
| stackexchange/codereview |
I'm importing a large amount of Data into CoreData. I want to show a progressBar for the progress of importing.
First I'm showing the progress bar.
Then I'm counting the data I want to import.
Then I setup a for loop:
in this for loop I first set the coreData object.
then i'm incrementing the progress view.
After thi... | stackexchange/codereview |
I have a simple converter which checks if an object is equal to whatever parameter I pass it. My problem is that the converter parameter always gets passed as string and value always gets passed as object. To compare them properly I need to cast the parameter as the same type as the value. Is there a way I could cast t... | stackexchange/codereview |
In Excel 2007, how do I add a description and parameter hints to a user-defined function? When I start typing a function invocation for a built-in function, Excel shows a description and parameter list--a tooltip. I'd like to do the same for the functions I define.
Not just for the formula insert wizard, but in the for... | stackexchange/codereview |
I have a ClickOnce deployment that has different web service endpoints and strings that need to be changed in Settings.Settings. Right now I am only having to deal with on localized development version being done in house and one version that i push out to the customer for their UAT. Now i need 4 versions of this appli... | stackexchange/codereview |
I'm adding some functionality to an old admin tool written in VB6. The tool uses a c++ activeX object. I haven't worked on the tool since I upgraded to windows 7 and now the active X object fails to load with the 429 "ActiveX component can't create object" error. I'm not knowledgeable about VB6 but I have registered th... | stackexchange/codereview |
I have been told by my hosting server that my website has had a "DDoS attack". What is a "DDoS attack" and how do I prevent it?
| stackexchange/codereview |
int PyRun_SimpleString(const char *command)
is the function which can run a command of Python.
I call this function in my program, but how can I specify the encoding of the command argument. I found that Python 3 seems to use UTF-8 as the default encoding when I run a command. Can I change this encoding in the C leve... | stackexchange/codereview |
Here are my pages:
Redirect Page:
if user has an open session, redirect to the proper resource
else redirect to login page
Login Page:
if user login info is valid, redirect to $_SERVER['HTTP_REFERER']
else display login page
When you visit the redirect page, it sees that you do not have a valid session and redirects to... | stackexchange/codereview |
I'm using Adobe Media Encoder CS5 to encode a FLV file to H.264 to present on the web via HTML5 and the video file plays just fine in Safari in OS X (and in Firefox encoded to OGG) but on any iOS device (iPad, iPhone) I get the play icon with the slash running through it.
Has anyone encountered this before and if so, a... | stackexchange/codereview |
I want to make a stack of cards using a special Card class I created myself.
Now what I want to do is:
I want the cards in a stack for easier later use, but the cards have to be shuffled and that's not possible on a stack.
Here's the code
Card dummyCard;
vector<Card> dummyVector;
initializeCards( dummyVector, dummyCard... | stackexchange/codereview |
Logical Operators in objective c language?
| stackexchange/codereview |
Here's the situation, I wrote a small script to generate the list of IP addresses from which an e-mail was rejected:
msgid_array=($(grep ' sendmail\[' /var/log/maillog |
egrep -v 'stat=(Sent|queued|Please try again later)' |
egrep dsn='5\.[0-9]\.[0-9]' | awk '{print $6}'))
for z in ... | stackexchange/codereview |
My app is written in Objective-C. How can I get the user name and home directory of the currently logged in user through directory services?
Detail:
My Cocoa app gets the current username and home directory with getenv("USER"), getenv("HOME"). Apparently this doesn't work right if the user is logged in through director... | stackexchange/codereview |
How to automatically execute a Javascript function whenever width or height of a div changes? I don't want to trigger an event manually. I am using jQuery.
| stackexchange/codereview |
I really admire java features and I don't want to give up using it for the next problem:
I have a class that might be inherited, and inside of it is a private ArrayList arr; So the setter function is ok , but the getter function return arr; returns the reference to that variable which anyone capable of editing that who... | stackexchange/codereview |
I have a list of files that get generated during the CMake build process. I want to compile these files using "add_library" afterward, but I won't know which files get generated until after they get generated. Is there anyway to build this into a CMake script?
| stackexchange/codereview |
I'm trying to trigger a sound by clicking on a form control in Excel 11. The handler for the click event tries to play a sound using sndPlaySound32 if it finds certain text on the clipboard.
I've declared the function sndPlaySound32, and call it with (simplified)
whatSound$ = "C:\WINDOWS\Media\Office97\Drop.wav"
snd... | stackexchange/codereview |
I am wondering if the shuffle() array function is the correct way to randomize array results.
Basically, I have some ad codes in an array, and I use this to display 1 random ad each time, but there is an ad that seems to appear much much more than anything! I mean out of 20 times it appeared about 18 times. I'd thought... | stackexchange/codereview |
Is it possible to determine programatically whether any background applications/services are using the sattelite GPS functionality?
I realise from searching SO that it isn't possible to disable it in code, but that I have to use a button shortcut which does:
Intent myIntent = new Intent(Settings.ACTION_SECURITY_SETTING... | stackexchange/codereview |
I have a date that has the format:
"yyyy-MM-dd'T'HH:mm:ss'Z'"
I'd like to convert it to something similar to:
"3 minutes ago"
How can I go about doing this?
| stackexchange/codereview |
I have a HomeViewController.m in which I push SpecificViewController by self.navigationController,
SpecificViewController *specificViewController= [[SpecificViewController alloc] initWithNibName:@"SpecificViewController" bundle:nil];
[self.navigationController pushViewController:specificViewController animated:YES]... | stackexchange/codereview |
I'm trying to retrieve a user timeline from Twitter using YQL's community Twitter table. The full REST url is
https://query.yahooapis.com/v1/public/yql?q=SELECT%20*%20FROM%20twitter.status.timeline.home%20WHERE%20oauth_consumer_key%20%3D%20'kt9wDTrDREjXzRhBMpw'%20AND%20oauth_consumer_secret%20%3D%20'zNnA76G3NhZSeaJdRv7... | stackexchange/codereview |
I was wondering how to have all the options in a drop menu (using select tags) highlighted?
I already created a button to created a select all button to do this but I want the drop menu all selected by default when arriving on the page.
It would be great if it works for IE and firefox.
thanks
| stackexchange/codereview |
I think this is a simple question so I assume I'm missing something obvious. I don't really ever use preprocessor directives but I was looking at someone's code which did and thought it was something I should be familiar with.
So I looked at the msdn example here it has the code:
#define DEBUG
// ...
#if DEBUG
Con... | stackexchange/codereview |
I want to do a top5 of two tables that are not related with each other. And this all should be in one statement.
I'm wondering if this possible cause I'm trying it now for hours. Google didn't help me after all...
My Code:
SELECT
a.id AS "link_id", a.href AS "link_href", a.clicks AS "link_clicks",
b.id AS "user_i... | stackexchange/codereview |
I a bit stuck on tiling textures. Basically I want to to tile textures when I transform an object. So a 1x1x1 square when I glScale to 20,20,20, I would like the texture to tile. The texture is setup as a 1x1,
- (void)loadTextures:(NSString *)textureName andWithIndex:(int)index {
// load image as a CG ref
C... | stackexchange/codereview |
I have several dictionaries with different and common keys, plus different and common keys in the nested dictionary. Below is a simplified example, the actual dictionaries have thousands of keys.
{1:{"Title":"Chrome","Author":"Google","URL":"http://"}}
{1:{"Title":"Chrome","Author":"Google","Version":"7.0.577.0"}}
{2:{... | stackexchange/codereview |
I have searched around for this one, but there wasn't really a clear answer. I have created a keystore on my system. As my application runs It accepts self-signed certificates and adds them to the keystore without problem. However, the whole applicaiton has to be restarted in order for the changes to take effect.
How c... | stackexchange/codereview |
I already managed to see file and folder changes with the FileSystemWatcher.
My problem is that I can't make a difference between files and folder. It's possible that a file and a folder have the same path names.
For the delete event I even can't use a dirty workarround with testing File.Exists(path) or Directory.Exist... | stackexchange/codereview |
I'm currently trying to implement a hash table in C++ for a homework...
I've chosen to use internal linking as a solution for collisions in the table...
and I'm looking for a good STL container that will find a specific entry in an unordered set of data.
I can't use an stl container that is based on trees (set, map, tr... | stackexchange/codereview |
Suppose I have a package:
package com.g00gle.car
and
package com.g00gle.car.stereo
Is it possible to have a class in com.g00gle.car to access a class member in com.google.car.stereo? (Assuming that class member is labeled protected).
The answer is no... (by default) but is there a way to circumvent that? I have an a... | stackexchange/codereview |
I want to be able to submit a form after a page loads automatically through Javascript.
I am writing a google chrome extension.
So far the extension can fill in text in the input boxes but I can't figure out a way to get to the next step where the user would click Submit. Please help. Thank you.
EDIT: Pardon my ed... | stackexchange/codereview |
For a project my team and I have been trying to track a wiimote in a 3D space using the built in accelerometer and the WiiMotion Plus gyroscope.
We’ve been able to track the rotation and position using an ODE (Found at http://www.alglib.net/,) but we’ve run into a problem with removing the gravity component from the ac... | stackexchange/codereview |
I have a website sitting on an IIS 7 server:
WWW.example.COM
I would like to create several sub domains that looks like
SUBDOMAIN1.example.COM
I created an IIS website and I set the bindings to be
http, port 80, the ip address of my server, and SUBDOMAIN1.example.COM and the physical path to a folder under example.COM
... | stackexchange/codereview |
I want to create an animation with matplotlib to monitor the convergence of a clustering algorithm. It should draw a scatterplot of my data when called the first time and draw error ellipses each time the plot is updated. I am trying to use canvas_copy_from_bbox() and restore_region() to save the scatterplot and then d... | stackexchange/codereview |
I'm using NetBeans 6.9.1 on Mac OS X 10.6.4 with Java 1.6.0_22. I have a web application that connects to an application server (GlassFish v3) via JAX-WS. During the "Clean and Build" process, wsimport is called to import the stored WSDL files. For some reason, I can only successfully perform a "Clean and Build" onc... | stackexchange/codereview |
I found the following code in the code of an SMTP mail server (LumiSoft Mail Server). According to the method's name, it test whether the platform supports I/O Completion Ports.
/// <summary>
/// Gets if IO completion ports supported by OS.
/// </summary>
/// <returns></returns>
public static bool IsIoCompletionPortsSu... | stackexchange/codereview |
What is the best method for finding impulse peaks (dirac delta) in a 2d matrix.
More specifically, I would like to find the harmonic frequencies of a given image and so I need to find impulse peaks in the image absolute value DFT.
I thought of using findpeaks but there's no 2d version. I also saw earlier posts regardi... | stackexchange/codereview |
I am building a twitter-like client. Assume I have a string:
"$AAPL rocks!"
I want to be able to click on "$AAPL" and do something.
How can I go about making $ clickable in a TextView?
| stackexchange/codereview |
What's the best way to create a balanced binary search tree from a sorted singly linked list?
| stackexchange/codereview |
Recently, in an attempt to try xmonad (which apparently requires X11 version >= 1.4.6.1), I tried upgrading Snow Leopard's native X11 via Macports. However, after upgrading, X11 has been acting strangely. For example, it won't automatically start quartz-wm (though it lets me do so manually via xterm). It also crashes a... | stackexchange/codereview |
Is there a way to add a default value in a RingtonePreference, via XML? For example, here's what my preference.xml looks like.
<RingtonePreference android:key="alarm"
android:title="Alarm" android:name="Alarm"
android:summary="Select an alarm"
android:ringtoneType="alarm" android:showDefault="true" />
If possible, I'... | stackexchange/codereview |
I am trying to compress a file stream with LZO and not getting very far. Specifically, I get a segmentation fault when extracting the archive file created by my compressFileWithLzo1x function.
My main function and prototype declarations are:
#include <stdio.h>
#include <stdlib.h>
#include "lzo/include/lzo/lzo1x.h"
#de... | stackexchange/codereview |
Does any body know of any good links to sites which have tutorials to develop web services and implementation of SOAP/ JAX-rS, REstFul web services?
I am new to web services..please help me out with regards to that..
Thank you very much for your time.
Best Regards.
| stackexchange/codereview |
I'm writing a program that reads in a text file of artists and albums, and spits out Mediafire download links.
I want to take it a step further and actually have it download those links, but I don't know if there's a way to do that.
| stackexchange/codereview |
I have a Windows Media Player embedded in a web page. Some action the user will perform on the page, will trigger the loading of an audio file, from the web server, into the WMP.
I need to be able to detect when the audio has completely finished loading. It could take a significant amount of time over a slow connection... | stackexchange/codereview |
For some reason, diff is not responding as expected to the -w option; two files, both of which are identical except for a single new line at the end of the XML header.
I'm invoking diff with the -w option, like so:
diff -w old_file.xml new_file.xml
# head -n4 old_file.xml:
<?xml version="1.0" encoding="utf-8"?><survey... | stackexchange/codereview |
Does anyone have a solution or a possible open library that can be used to stream WMA radio station streams on iPhone?
I know for a fact that there are Apps out which are able to do this.
Any pointers on where to start?
| stackexchange/codereview |
Is there some property so that I can reference the presenting view controller from the modal popup view controller. Seems like there should be one. parentViewController doesn't seem to be the correct view controller.
| stackexchange/codereview |
I found this great jquery bubble script online - http://jqueryfordesigners.com/coda-popup-bubbles/ - and I want to apply the same script to multiple items. The only thing is the jquery script only applies to one item.
Here is the script:
$(function () {
$('.bubbleInfo').each(function () {
var distance = 10;... | stackexchange/codereview |
I have to make svn commit with both UTF-8 commit message and UTF-8-encoded revision property.
If I call:
svn ci -F commit_message.UTF8.file --with-revprop prop1='UTF8-value1' --encoding 'utf-8'
will UTF-8 from --encoding parameter applied both to commit message file (commit_message.UTF8.file) and specified 'prop1' rev... | stackexchange/codereview |
I'm running the following code (on Windows 7, if it makes a difference):
char temp[20000];
sprintf_s(temp, 20000, "\"C:\\Program Files\\Mozilla Firefox\\firefox.exe\" \"http://www.tvtak.com/servlet/Gateway/?C=addShows&channel=%s&show=%s\"", _channels[chId], name);
system(temp);
On running, the console displays:
'C:\P... | stackexchange/codereview |
Hi i am trying to get Iframe scrolling height by using document.getElementById('frame_name').contentWindow.document.body.scrollHeight; but this code not working till document.getElementById('frame_name').contentWindow i am able to get Object but after that am getting 'undefined' error for trying to access iframe docume... | stackexchange/codereview |
I am using google interactive chart for showing chart like linechart,
barchart, piechart etc.
I am showing legends in the top of chart. For long legends, the
legends are appearing in terms of pagination after new release of Google Visualization API(7th
November 2010) by default.
But i don't want to show this as pa... | stackexchange/codereview |
I am trying to both create the Server and client side of a jsonp request, and I cannot seem to make it work. I've looked around at numerous guides, blog posts, etc, but pretty much everyone shows only the client side.
Here's my client code
$.ajax({
dataType: 'application/json',
data: params,
jsonp: 'jsonpC... | stackexchange/codereview |
I have an NSMutableArray called *favorites. It is an array of NSStrings and I want to write it to a .plist file.
When I call:
favPath = [[NSBundle mainBundle] pathForResource:@"Favorites" ofType:@"plist"];
[favorites writeToFile:favPath automatically:YES];
it crashes with the exception type EXC_BAD_ACCESS (SIGBUS) and... | stackexchange/codereview |
If i try to serialize an object of the following ClassToSerialize class with System.Runtime.Serialization.Json.DataContractJsonSerializer
[DataContract,Serializable]
public class ClassToSerialize
{
[NonSerialized] private bool _mf;
public bool IsMf
{
get { return _mf};
set{ _mf = value;}
... | stackexchange/codereview |
Using contentEditable feature and the execCommand, one can edit/format the content of certain parts of the page like what is used in all WYSIWYG web-editor. However, there are numerous browsers inconsistencies with the implementation of such feature, which have lead such web-editors to handle them manually.
In my case,... | stackexchange/codereview |
Say you have a C code like this:
#include <stdio.h>
int main(){
printf("Hello, world!\n");
printf("%d\n", f());
}
int f(){
}
It compiles fine with gcc, and the output (on my system) is:
Hello, world!
14
But.. but.. how is that possible? I thought that C won't let you compile something like that becaus... | stackexchange/codereview |
I'm building a Mixin generator. I'd like to know when I have to avoid building a property for mangling purposes so that the public API matches exactly. This is important for usage with Dynamic, as otherwise since there are multiple properties with the same name, (if I just go and add the properties one by one), the run... | stackexchange/codereview |
I have two arraylist filelist and imgList which related to each other, e.g. "H1.txt" related to "e1.jpg". How to automatically randomized the list of imgList according to the randomization of fileList? Like in excel, if we sort certain column, the other column will automatically follow?
String [] file = {"H1.txt","H2.t... | stackexchange/codereview |
i tried assigning values like this ,where coffeshop is an object with latitude a string variable,however value of coordinates are shown 0 values,while i nslog the coffeeshop.latitude and longitude i am getting correct values,is there any error in this conversion
CLLocationCoordinate2D coordinate;
coordinate.latitude=[... | stackexchange/codereview |
In IE under Tools-> Internet Options -> Programs there's a checkbox labelled "Tell me if Internet Explorer is not the default web browser." What's the registry key that corresponds to this checkbox? The reason I ask is that I want to suppress this check programmatically.
Clarification: I don't want to find out the defa... | stackexchange/codereview |
I need to create a service remotely and would rather not break out to a command and run "sc \remotemachine create ......" and want to do it within the C# code.
However, when running the code even though the sc command works quite happily and thus is managing the remote system the ManagementScope.Connect call is throwin... | stackexchange/codereview |
I want to send / receive sms using AT commands from my computer to my mobile phone. I connected my phone to my computer using a USB port. My computer detects the modem and I am able to send sms from the computer to mobile phone. However, I am not able to receive sms in my computer..
I am presenting a sample of what I g... | stackexchange/codereview |
I got a simple app on google app engine using django and I have two classes that look pretty much identical, but one of them crashes with TypeError.
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 3211, in _HandleRequest
self._... | stackexchange/codereview |
Have only one question "How to right dealloc object when app goes to background ?". I'm working on some app, everything works great and fine. When i put app to background and then start it again it's crashes. Not immediately(app stars right where i closed it) , but when i choose some of cells or just scroll tableview ... | stackexchange/codereview |
I want to know your recomendations to begin with TDD in Ruby (not Rails), so that's it, I know a little about what TDD is, but I'm looking to which tool to use for this, do you know any tutorial for this?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.