Unnamed: 0
int64
65
6.03M
Id
int64
66
6.03M
Title
stringlengths
10
191
input
stringlengths
23
4.18k
output
stringclasses
10 values
Tag_Number
stringclasses
10 values
2,373,096
2,373,097
syntax error, unexpected $end in php
<p>I am getting the following error in one of my php file Parse error: syntax error, unexpected $end in /home/qualitet/public_html/game/create.php on line 1</p> <p>What could be the problem? I checked all the if else. </p>
php
[2]
4,688
4,689
meaning of 'operator' in this C++ statement
<p>What does the 'operator' mean in this C++ usage?</p> <pre><code>char* pszVar= W2A(_bstr_t(bstrVar).operator wchar_t*()); </code></pre>
c++
[6]
3,530,337
3,530,338
What's the difference in these ways of determining uploaded file size in PHP?
<p>I came across this piece of code where programmer determines uploaded file size like this:</p> <pre><code>$file_size = @filesize($_FILES[$upload_name]["tmp_name"]); </code></pre> <p>AFAIK one can simply do: </p> <pre><code>$_FILES[$upload_name]["size"]; </code></pre> <p>Are there reasons to use filesize() functi...
php
[2]
234,249
234,250
Overriding generics
<p>I'm failing to create this class hirerarchy that includes a generic that is comparable. What am I missing here? This throws an error.</p> <pre><code>public class Generics &lt;T extends Comparable&lt;T&gt;&gt; extends Parent&lt;T extends Comparable&lt;T&gt;&gt; { ArrayList&lt;T&gt; ar; public Generics...
java
[1]
1,856,286
1,856,287
textbox replace text
<p>It give me an error, don't know why. I want to replace <code>'</code> with <code>"</code>.</p> <pre><code>try { txtCS.Text.Replace("'", """); } catch { } </code></pre>
c#
[0]
2,731,749
2,731,750
Dynamic creation of tablelayout android
<p>I want to add rows to a tablelayout dynamically. This is my code.</p> <pre><code> TableRow tableRow = null; TextView textView = null; ImageView imageView = null; TableLayout tableLayout = (TableLayout)findViewById(R.id.tableLayout); RelativeLayout relativeLayout = null; for (String string: listOfString...
android
[4]
4,255,668
4,255,669
getElementsByTagName is not working Simple JS
<p>another quesion: <a href="http://jsfiddle.net/ajinkyax/qGzTY/1/" rel="nofollow">http://jsfiddle.net/ajinkyax/qGzTY/1/</a> Above link shows a js calculator, but whn u click nothign happens</p> <p>Im just amazed why this simple function not working!!!.</p> <p>I even tested with a tag, still it wont wokr. getElements...
javascript
[3]
30,213
30,214
Trigger change on input when is changed by another input
<p>I have two inputs A nad B and in input a i have set <code>onchange=$("#B").val($(this).val())</code></p> <p>i have set <code>$(B).change(function(){aler('ok');})</code> but nothing happend.. How this should be made ?</p>
jquery
[5]
3,064,483
3,064,484
Explicit assignment of null
<pre><code>string s1; string s2 = null; if (s1 == null) // compile error if (s2 == null) // ok </code></pre> <p>I don't really understand why the explicit assignment is needed. Whats the difference between a null variable and an unassigned variable? I always assumed that unassigned variables were simply assigned as n...
c#
[0]
2,941,089
2,941,090
How to manipulate the "onclick" event of a html button element with JavaScript?
<pre><code>document.getElementById("RightButton").innerHTML="Back to Question"; document.getElementById("RightButton").onclick=GoBack(); </code></pre> <p>Is the code I wrote to solve my problem. The first line successful changed the name of the button, but the second line simply doesn't work. </p> <p>As you may have ...
javascript
[3]
4,974,972
4,974,973
Get function's 'namespace path'
<p>I have some namespaces, one included in the other:</p> <pre><code>class A: class B: class C: def method(): pass get_ns_path(A.B.C.method) # &gt;&gt;&gt; 'A.B.C.method' </code></pre> <p>Is it possible to implement such <code>get_ns_path(func)</code> that receives a method/function and retu...
python
[7]
444,117
444,118
c++ order of preference.. how is this expression evaluated?
<p>I am trying to understand code of some library of one simulation tool that i use.. It has the following line:</p> <pre><code>propData-&gt;fadingStretchingFactor = (double)(propProfile0-&gt;samplingRate) * propProfile-&gt;dopplerFrequency / propProfile0-&gt;baseDopplerFrequency / (dou...
c++
[6]
4,022,066
4,022,067
How do i add a query string pair to an existing url in jquery
<p>I am aware that I can access all external links on a page using something like:</p> <pre><code>// Get external links $.expr[':'].external = function(obj){ return !obj.href.match(/^mailto\:/) &amp;&amp; (obj.hostname != location.hostname); }; </code></pre> <p>does anyone know how I can add a query string pa...
jquery
[5]
483,755
483,756
Webview load html from assets directory
<p>I'm trying to load a html page from the assets directory. I tried this, but it fails.</p> <pre><code>public class ViewWeb extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); WebView wv; wv = (WebView) findViewBy...
android
[4]
12,982
12,983
Splitting GPS values using PHP
<p>I am new to PHP, and am working on a GPS tracking system. I have to split the GPS codes to store in MySQL.</p> <pre><code>7/3/2010 5:38:18 AM Posted &lt;!355801020193357*1*1-1*03/07/10,05:38:27*1144.4633*07921.6860*41.6*N*E*48.9*0.8*20,54,6678;47,ffff;12,ffff*1*1*0*363*0*1*27312*529#&gt; </code></pre> <p>I want:</...
php
[2]
5,001,420
5,001,421
jQuery: how do i search for a specific ID tag and create that element?
<p>In jQuery, how do I search the DOM for a specific element tag by ID and create that element if the tag ID is not found?</p> <p>Here is the element to be created if tag is not found:</p> <pre><code>&lt;div id="foo"&gt;&lt;/div&gt; </code></pre>
jquery
[5]
3,180,685
3,180,686
What is the meaning of $updateStr .= ",";?
<p>What is the meaning of this code?</p> <pre><code>$updateStr .= ","; </code></pre>
php
[2]
1,165,935
1,165,936
Validate form replace text textarea
<p>I have a validation form checker - when my checkbox has the value of 1 - i want to replace some text in the TextArea with new Text. Does anyone know the correct code to do this?</p> <p>everything else in the form checker works, except this one.</p> <pre><code>function validateForm(myForm){ if (getRadioSelected(my...
javascript
[3]
4,567,107
4,567,108
is it possible to change a text font in style
<p>I need to do a style in order to have all my bold texts in a specific font, and all my normal ones in an other. is it possible ?</p> <p>i'm trying to build a style to do so, but there is no attribute to specify font type</p>
android
[4]
659,467
659,468
How I can Merge two datatable into one datatable in c#
<p>I have tow datatables and i want to merge them and want the output like this;</p> <p>Table1 values:</p> <pre><code>FirstName LastName AAA BBB AAA BBB </code></pre> <p>Table2 values: *</p> <pre><code>FullName CCC CCC </code></pre> <p>*</p> <p>now i want that FullName's val...
c#
[0]
780,483
780,484
What is the best way to carry data over between onPause & onResume?
<p>I'm having a hard time figuring out the best way to pass simple values from onPause and onResume in the Android activity lifecycle. I understand how to use get and put extra bundles for activity to activity data, but does that work for passing data between the same activity? Should i used SharedPreferences?</p>
android
[4]
3,304,026
3,304,027
Detect if an iPhone app with given Apple ID and Bundle ID is already installed
<p>Is it possible to detect if an app with the given Bundle ID and Apple ID is already installed on the device? The app does not implement a custom URL Scheme.</p>
iphone
[8]
5,025,166
5,025,167
I want to sum the total Elapsed time through input text file?
<p>I want to sum the total "Elapsed time" for "GSA Search" only, using C sharp :</p> <p>Following is my log file :</p> <pre><code>WX Search = Server:nomos-scanner.corp.com User:vibsharm appGUID: wx Elapsed Time:975ms SaveSearchID:361 WX Search = Server:nomos-scanner.corp.com User:vibsharm appGUID: wx Elapsed Time:875...
c#
[0]
4,654,821
4,654,822
Unload AppDomain Assembly
<p>I want to read some information from a .Net assembly, then modify the DLL by appending a short sequence of characters.<br> The first part works fine, but the second step fails, as the assembly is still in use.<br> This is the case although I loaded the assembly in its own AppDomain and after I finished step 1 unload...
c#
[0]
1,255,035
1,255,036
Is there a way to recognize the visit from user's iphone and automatically adjust web page to fit iPhone screen size?
<p>I wonder if there is a way to recognize the visit from user's iphone and automatically adjust web page to fit iPhone screen size?</p>
iphone
[8]
4,714,484
4,714,485
Unable to post link on reddit
<p>In my app i want to post a link to Reddit. Iam using reddit api for submitting link but always get BAD_CAPTCHA error. Ive received modhash, captcha_id, but while i submit it again, it still shows BAD_CAPTCHA error.</p>
iphone
[8]
598,004
598,005
how to draw line with animation?
<p>I have implemented game application in which i want to draw line between two object.I have drawn line between two objects.But i want to draw with animation.can u advise me which animation i have to used between two points.</p> <p>Edit:My excatly question is that: Suppose there is two point like start point(100,100)...
iphone
[8]
2,503,897
2,503,898
Black screen when device orientation changed
<p>I'm developing an application in android 2.2.</p> <p>When change the device orientation (by rotate the device) an black screen is painted in the bounds of my Activity (there is no even the Activity title), it takes some seconds (7-15 seconds) and then the activity is finally painted.</p> <p>I have tested it emulat...
android
[4]
5,300,760
5,300,761
URL query clearing php code problem
<p>This is the code that im using for clear any queries in my url..</p> <pre><code>&lt;?php function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERV...
php
[2]
4,447,508
4,447,509
Are there PHP browsers?
<p>Do browsers exist that would allow a person on a Mac to view a PHP file without uploading it and without having it enabled(And having no possibility of enabling it)?</p> <p>I wasn't asking about how to run it without a server. I was asking about whether a file browser exists that allows me to see the output of the ...
php
[2]
2,688,444
2,688,445
Get index by specific search term with a list in c#
<p>I have a list as follows:</p> <pre><code>Cat, Green, 10 Cat, Green, 1 Dog, Red, 4 Cat, Blue, 2 </code></pre> <p>Each item is just a comma seperated string element in a list.</p> <p>I would like to get all the index values of all the elements in the above list that contain cat and 10 or contain cat and 2. So basic...
c#
[0]
3,202,700
3,202,701
Referenced Assemblies in Web Site
<p>Am I correct in assuming that I always need to explicitly deploy referenced assemblies when their source changes?</p>
asp.net
[9]
3,559,110
3,559,111
How to determine whether the phone is ringing or making any other sound?
<p>I'm writing a recording application for sound measurements. I need find out if the phone is making any sound (ringing, incoming sms, music playing, ...) and whether the user is dialing. In that case, the measurements are temporally stopped and automatically resumed afterwards. Also vibration may influence the measur...
android
[4]
5,639,623
5,639,624
Is is possible to dynamically load a user control at runtime based on a condition within an UpdatePanel?
<p>I need to conditionally load a few nested user controls on a webpage based on a dropdown selection that fires a callback. Is this possible? Are there any best practices for such an approach?</p>
asp.net
[9]
3,879,187
3,879,188
Integrating QRCode decoder SDK for android to eclipse
<p>please tell me the procedure for Integrating QRCode decoder SDK for android to eclipse</p>
android
[4]
1,811,634
1,811,635
With two <form>'s on a page, how to you make jQuery only run the functions on one (without using IDs)?
<p>Now I know this sounds elementary, but I honestly can't dial this in. I have two forms on a single page. I wrote some form validating functions that are triggered as such: </p> <pre><code>$("form").submit(function(event) { event.preventDefault(); checkRequired(); checkLengths(); checkFormats(); ...
jquery
[5]
1,629,081
1,629,082
Loading a button on page load
<p>I'm working on a site, and need help with this JavaScript notification thing I found.</p> <p>So, basically, you click a button and a notification will appear. Here's the code:</p> <pre><code>&lt;button id="timeout"&gt;Notification with Timeout&lt;/button&gt;&lt;br /&gt; </code></pre> <p>So, instead of having to c...
javascript
[3]
2,684,066
2,684,067
Converting Zero to null in Dataset or DataTable
<p>I have a Dataset with 3 DataTables in which there are many fields with have zeros, now i wanted to convert the fields which have zero to NULL. Any idea pls help</p>
c#
[0]
1,705,392
1,705,393
Sending message from a application on one mobile device to another application on another device
<p>Hi I want to send message from one application (which will be installed on android mobile) to another application (which will be installed on another mobile). This means</p> <p>One mobile ------------sends message-------- >to another mobile.</p> <p>Similarly I want second mobile to send----------message ----- to f...
android
[4]
2,109,758
2,109,759
How do I change my new list without changing the original list?
<p>I have a list that gets filled in with some data from an operation and I am storing it in the memory cache. Now I want another list which contains some sub data from the list based on some condition. </p> <p>As can be seen in the below code I am doing some operation on the target list. The problem is that whatev...
c#
[0]
5,612,975
5,612,976
Mixed float and long calculation yields wrong answer with no compiler warning
<p>Is it surprising that the following code outputs a wrong value for startTime?</p> <pre><code>public class Temp { public static void main(String args[]){ float duration = (float) 2.0; long endTime = 1353728995; long startTime = 0; startTime = (long) (endTime - duration); System...
java
[1]
402,380
402,381
how to pass a variable to a UIButton action
<p>I want to pass a variable to a UIButton action, for example</p> <pre><code>NSString *string=@"one"; [downbutton addTarget:self action:@selector(action1:string) forControlEvents:UIControlEventTouchUpInside]; </code></pre> <p>and my action function is like</p> <pre><code>-(void) action1:(NSString *)string{ } <...
iphone
[8]
1,315,947
1,315,948
how to retreive value from div
<p>here is my html and jquery and when the page loads i'm supposed to get an alert box with the value 10 but instead i get nothing. what am i doing wrong?</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script src="js/jquery-1.4.4.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript...
jquery
[5]
5,582,328
5,582,329
Error While Reading the file /C:/Users/Lulzim/Cities.txt (No such file or directory)
<p>what about this code, this is not working too?? What is wrong here??</p> <pre><code>FileInputStream fis; final StringBuffer storedString = new StringBuffer(); try { fis = openFileInput("C:/Users/Lulzim/Cities.txt"); DataInputStream dataIO = new DataInputStream(fis); ...
android
[4]
5,159,360
5,159,361
Usb port no longer recognizes android
<p>Usb port no longer works to program android. My computer recognizes it as a wireless tether (I think because my wireless goes out whenever I plug the phone in)</p> <p>I'm at a loss to what to do. The problem is with my eclipse or computer because I can still target my android on a friend's computer running eclipse....
android
[4]
4,595,137
4,595,138
scrolling vertically
<p>i am using the following code to scroll image on scrooll view,</p> <pre><code>StoryViewScroller = [[[UIScrollView alloc] initWithFrame:CGRectMake(0.0f, 79.0f, 320.0f, 262)] autorelease]; StoryViewScroller.contentSize = CGSizeMake(NPAGES * 320.0f, StoryViewScroller.frame.size.height); StoryViewScroller.pagingEnabled...
iphone
[8]
5,763,623
5,763,624
All phone numbers of one contact for startActivityForResult
<p>A contact may have many phone numbers (mobile, home, ..). I want to enable the user to pick one of the phone numbers of a specific contact.</p> <p>With this snippet I get the list of all phone numbers for each contact.</p> <pre><code>Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.CommonDataKi...
android
[4]
1,725,787
1,725,788
ASP.NET Page_Init Fired Twice!
<p>I have AutoEventWireup="true" and in my code behind</p> <pre><code>protected void Page_Init(object sender, EventArgs e) { } </code></pre> <p>When I'm debugging, the Page_Init method is getting fired twice!</p> <p>Whats going on?</p>
asp.net
[9]
1,038,715
1,038,716
Issue with rules overlapping
<p>I have 2 checkbox rules that are overlapping. This one runs first</p> <pre><code>$("#BMFNP").change(function() { if($(this).is(":checked") &amp;&amp; $("#INTEF").is(":not(:checked)")) { $("#INTEF").attr("checked", true); alert("foo"); } }); </code></pre> <p>This one runs second:</p> <pre...
jquery
[5]
3,280,263
3,280,264
Is there a list of "best practices" for Android games?
<p>I'm writing my first Android game, and though the game itself is working well, I'm not too sure about some of the Android integration aspects of it. Specifically:</p> <ul> <li>Should I provide an in-game volume control?</li> <li>Should I hide the status bar?</li> <li>Is the Menu button generally used to pause the g...
android
[4]
2,976,337
2,976,338
SMS Sender's Name Shows as labuser in Default SMS App
<p>I installed the following code on my Android 2.2 phone and the sender's name shows as labuser for some messages when it is actually something else :-</p> <pre><code>public class SMSReaderActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstance...
android
[4]
427,326
427,327
I need to disable Home Key or perform some activity when home key is pressed in android
<p>I need perform some action on press of home key like starting activity when some one presses the home key...how to do it?</p>
android
[4]
3,558,718
3,558,719
how to isolated string that contain TAB?
<p>i have this string:</p> <pre><code>i[TAB]like[TAB]Stackoverflow </code></pre> <p>and i need to get this:</p> <pre><code>i like Stackoverflow </code></pre> <p>how to do it in C# ?</p> <p>thanks in advance</p>
c#
[0]
5,245,401
5,245,402
Designing full screen graphics for different Android devices
<p>I am a experienced iOS developer but I am totally new to Android. I have to develop a Android app with a full screen background image and various images that has to fit the screen quite well. Now on iOS we live in a "protected" world where this is easy as I know the screen size of every device, but on Android that i...
android
[4]
1,903,868
1,903,869
Prevent direct access PHP
<p>I have 2 script. That's :</p> <ol> <li>registration.html</li> <li>process_registration.php</li> </ol> <p>Sometimes someone open the link direct into process_registration.php, so how can I prevent that ?</p> <p>Process_registration.php function is to save the data get from input from registration.html.</p> <p>Any...
php
[2]
399,488
399,489
Jcrop in .dialog()
<p>I make Jcrop inside .dialog() function. runs great, but i can't pass my X and Y, etc. values!</p> <p>function "updateCoords" works, but i cant passe it values throe Ajax! Fire Bug say that variables that I want to passe throe POST are not defined, but "HOW!" - i define variables in function updateCoords()! XD</p> ...
jquery
[5]
4,870,398
4,870,399
How to save a seach Query (Copying the file and Saving )
<p>I want to copy the file <a href="http://searchr.us/Testing/web-search.phtml?search=SEARCHED+TEXT" rel="nofollow">http://searchr.us/Testing/web-search.phtml?search=SEARCHED+TEXT</a> to <a href="http://searchr.us/Testing/search/SEARCHED+TEXT.html" rel="nofollow">http://searchr.us/Testing/search/SEARCHED+TEXT.html</a>...
php
[2]
5,292,674
5,292,675
Update Combobox according to co-ordinate in a GridCell
<p>I attached a <strong>combobox</strong> in a <strong>GridViewCell</strong> with <strong>combox.Location property</strong>.But,I have mutiple combobox.While updating combox item/value,Changed selected item is not seen in the GridCell.How can I update the combo according to Location?</p>
c#
[0]
2,253,478
2,253,479
Check if redirect from other url
<p>Let's say my site is example.com people can visit by directly type in "example.com" in the browser to open it up.</p> <p>However I want to check if people visit my site from other sources, like google or other referrals. Then I'd like to add jquery modal for those visitors. Is it doable? Thanks!</p>
jquery
[5]
3,616,977
3,616,978
Android - Rotate Dial
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/7491579/android-rotate-image-around-center-point">Android - Rotate image around center point?</a> </p> </blockquote> <p>I need a dial button in my app, so the user can rotate the dial when they drag there finger...
android
[4]
5,298,644
5,298,645
How to display the items from a dictionary in a random order but no two adjacent items being the same
<p>First of all, there is actually more restrictions than stated in the title. Plz readon.</p> <p>say, i have a <code>dictionary&lt;char,int&gt;</code> where key acts as the item, and value means the number of occurrence in the output. (somewhat like weighting but without replacement) e.g. ('a',2) ('b',3) ('c',1)</p> ...
c#
[0]
1,250,593
1,250,594
Why this friend function can't access a private member of the class?
<p>I am getting the following error when I try to access bins private member of the <code>GHistogram</code> class from within the <code>extractHistogram()</code> implementation:</p> <pre><code>error: 'QVector&lt;double&gt; MyNamespace::GHistogram::bins' is private error: within this context </code></pre> <p>Where the...
c++
[6]
5,012,937
5,012,938
Why can't I loop through each of the table rows loaded dynamically in Jquery?
<p>The table I am working with is loaded at runtime via ajax, I am trying to loop through all the rows in the table, using the code below:</p> <pre><code>alert("here"+jQuery('#contentItems table.tablesorter table tbody tr')); //I get here[Object object] jQuery('#contentItems table.tablesorter table tbody tr').each(fun...
jquery
[5]
3,558,344
3,558,345
ASP simple image uploader
<p>Is there a method inside ASP.Net to let me upload images or files in a very minimum script files?</p> <p>Basically im looking for a script that will let me upload files or script by bulk on my server but there are few constrains on my server, like I don't have access on database I also don't have an access to an FT...
asp.net
[9]
5,403,293
5,403,294
C# Variable Getters / Setters
<p>I'm trying to create a simple way for external programs to get/set variables within my class. What I have is a class with several variable such as this:</p> <pre><code>class myClass { public int one { get{ /* get code here */ } set{ /* set code here */ } } } </code></pre> <p>Rather than...
c#
[0]
135,965
135,966
Make a custom listview
<p>I'm going to make a custom <code>ListView</code> with icon and label of applications installed on Android device I made some code but I don't know why when I run the application my <code>ListView</code> is empty here is the codes :</p> <pre><code>public class MainActivity extends Activity { ArrayList&lt;String&gt;...
android
[4]
2,292,262
2,292,263
adding custom library with project
<p>I have created one library with "Utility.h" file. I want to add that custom library to my another iPhone application. I have added the library to project "frameworks" and I have drag the library to "Library Search Path" it shows like "$(SRCROOT)/libUtility.a". I have imported the header file as #import "Utility.h". ...
iphone
[8]
327,594
327,595
Why does my application keep getting "The application <ClassName> (<package.ClassName>) has stopped unexpectedly. Please try again later." error?
<p>I followed the developer guides on the Android website. It is working fine for a Hello World application but when I try and transition between Activities, my application keeps giving an "The application () has stopped unexpectedly. Please try again later." error and the application then quits. <strong>This happens ...
android
[4]
2,834,332
2,834,333
how to read returned values from sql function
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/706361/getting-return-value-from-stored-procedure-in-c-sharp">Getting return value from stored procedure in C#</a> </p> </blockquote> <p>im using the following sql function in a c# winform application</p> <pre>...
c#
[0]
5,665,854
5,665,855
Python: truncate and pad using format specification mini language
<p>I'm currently writing code which pads a string with spaces, using Python's <a href="http://docs.python.org/2/library/string.html#formatspec" rel="nofollow">format specification mini language</a>:</p> <pre><code>print('''{user:&lt;10}, you're wellcome!'''.format(user='John Doe')) </code></pre> <p>The output is:</p>...
python
[7]
3,296,005
3,296,006
How to figure out if two CGRect intersect?
<p>In -drawRect: I want to check if the provided rect intersects with anotherRect.</p> <p>I'm not good at this geometry math stuff and especially at english so what I want to say is:</p> <p>If you have two sheets of paper on the desk, and one of them covers the other either completely or just a small portion, it is r...
iphone
[8]
1,933,014
1,933,015
Log statements in JAVA
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2342280/difference-between-logger-info-and-logger-debug">difference between logger.info and logger.debug</a> </p> </blockquote> <p>When I should use Log.INFO and Log.DEBUG to print log statements in JAVA? Can I ...
java
[1]
2,198,663
2,198,664
Giving another apps access to my app's file
<p>I'm geting a file from server, and storing it on the phone. It's a PDF. Then I need to display . Assuming that I have a PDF viewer it will open the file. </p> <p>The question is where should I store the PDF file so my pdf reader has access to it. I don't really want use external storage since not all phones has one...
android
[4]
2,196,251
2,196,252
how do i select array elements with specific values and perform function javascript
<p>I have an array with several items inside and one of them is location .some of those locations are empty inside with no value. I want to take every one of those empty locations and perform a function . Does any know how to do that?</p> <p>The array might look like this:</p> <pre><code>array=[{user:a,user_id:b,date...
javascript
[3]
1,544,576
1,544,577
Java Remote File Options
<p>I've recently started an internship and I'm having some issues with Java in the enterprise environment. I've been assigned the task of porting the functionality of an old windows shell script to java so it may be ran on one of our JVMs.</p> <p>The shell script runs on one of the Windows servers and grabs the previo...
java
[1]
2,186,093
2,186,094
jQuery change property on load
<p>I have this HTML</p> <pre><code> &lt;div id="navContainer"&gt; &lt;ul&gt; &lt;li class="selected"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Services&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>And I want to change the top border of the li n...
jquery
[5]
3,129,713
3,129,714
Javascript - Call a function when i send a from trought an href
<pre><code>&lt;form onSubmit="return loadingArtP();" action="./index.php?status=addarticle" enctype="multipart/form-data" method="post" name="addarticle"&gt; // some input parameters &lt;a href="javascript:document.addarticle.submit()"&gt;Add&lt;/a&gt; &lt;/form&gt; </code></pre> <p>When i click on "Add" i nee...
javascript
[3]
953,087
953,088
What's a good way to provide additional decoration/metadata for Python function parameters?
<p>We're considering using Python (IronPython, but I don't think that's relevant) to provide a sort of 'macro' support for another application, which controls a piece of equipment.</p> <p>We'd like to write fairly simple functions in Python, which take a few arguments - these would be things like times and temperature...
python
[7]
34,629
34,630
What is the difference between add 'text' property or directly use within tags?
<p>for example :</p> <p>what is the exact difference between following statements:</p> <pre><code> &lt;asp:TextBox ID="TextBox1" runat="server"&gt;hi&lt;/asp:TextBox&gt; </code></pre> <p>and</p> <pre><code> &lt;asp:TextBox ID="TextBox1" runat="server" text="HI"&gt;&lt;/asp:TextBox&gt; </code></pre>
asp.net
[9]
2,266,460
2,266,461
Can't combine strpos and !empty in PHP, why?
<p>I have two lines in PHP that if I combine causes my page to stop loading...Unfortunately, I have no error message using <code>error_reporting(E_ALL | E_STRICT); ini_set('display_errors', true);</code>, and nothing in my apache error.log file.</p> <p><strong>this works:</strong></p> <pre><code>$user_setup = strpos(...
php
[2]
3,693,023
3,693,024
Help with basic Iphone view navigation
<p>I am new to iphone development and trying to understand the concept of how to organize navigation between views. What is the simplest way to launch a new view from within your current view?</p>
iphone
[8]
3,254,582
3,254,583
Can browse the URL in IE but unable to ping
<pre><code>public static string GetAccessErrorString(string uri) { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri); try { HttpWebResponse response = (HttpWebResponse)request.GetResponse(); } catch (Exception e) { return e.Messa...
c#
[0]
5,644,228
5,644,229
Android: HTML links inside ListView - problem with highlighting
<p>I wrote application which uses <code>ListActivity</code>. Each item of the list consists of <code>ImageView</code> and <code>TextView</code>. Long click on list entry triggers some menu and color effect because <code>onCreateContextMenu</code> was overridden. Sometimes <code>TextView</code> contains HTML links which...
android
[4]
2,715,883
2,715,884
How to use Ignition HTTP classes to make Get request?
<p>The documentation for <code>[Ignition][1]</code> is rather sparse. I'm looking at the documentation for the HTTP classes, such as <a href="http://mttkay.github.com/ignition-docs/ignition-support/apidocs/" rel="nofollow">link here</a>, but I'm confused.</p> <p>My current code looks something like this (sanitized ver...
android
[4]
639,005
639,006
i want to integrate paypal in my application so how it possible?
<p>I am new in iphone application and i have to implement paypal in my application so give me ideas regarding this i have not done anything regarding Paypal.</p>
iphone
[8]
823,467
823,468
Why don't Java LinkedHashMaps have an insert() method?
<p>By <code>insert()</code>, I mean <code>insertBefore(key)</code> or <code>insertAfter(key)</code>.</p> <p>As far as I can make out, inserting a key in the middle of the map can only be achieved by creating a new map and copying across the existing keys and the new key in the correct order.</p> <p>Considering that L...
java
[1]
1,330,552
1,330,553
vector of bools not initialized correctly
<p>I have initialized a <code>vector</code> of <code>bools</code>, but for some reason everything is set to <code>false</code>. Why can I not set a <code>vector</code> of <code>bool</code> to <code>true</code>?</p> <pre><code>#include &lt;iostream&gt; #include &lt;vector&gt; int main() { std::vector&lt;bool&gt; d_...
c++
[6]
5,725,567
5,725,568
Excluding all but a single subdirectory from a file search
<p>I have a directory structure that resembles the following:</p> <pre><code>Dir1 Dir2 Dir3 Dir4 L SubDir4.1 L SubDir4.2 L SubDir4.3 </code></pre> <p>I want to generate a list of files (with full paths) that include all the contents of <code>Dirs1-3</code>, but only <code>SubDir4.2</code> inside <code>Dir...
python
[7]
1,736,895
1,736,896
tiny xml null point reference error when deserialize?
<p>I am working with C++. I have the following XML:</p> <pre><code>&lt;data&gt; &lt;name&gt; me&lt;/name&gt; &lt;street /&gt; &lt;/data&gt; </code></pre> <p>I want to deserialize this xml and i did:</p> <pre><code>TiXMlDocument doc, tiXmlHandle handle(&amp;doc) TiXmlElement* sec; sec=handle.FirstChild("data").FirstC...
c++
[6]
4,577,164
4,577,165
how to validate textfield that allows two digits after
<p>i have to validate text field that allows only two digits after <code>.</code></p> <p>eg:12.34 </p> <p>if user enter more then two digits it won't allows text.</p> <p>let me know is it understandable or no</p> <p>how can i done,can any one please help me.</p> <p>Thank u in advance. </p>
iphone
[8]
2,660,375
2,660,376
jQuery calculate sum of values in all text fields
<p>I have an order form with about 30 text fields that contain numerical values. I'd like to calculate the sum of all those values on blur.</p> <p>I know how to select all text fields but not how to loop through them and add up all their values?</p> <pre><code>$(document).ready(function(){ $(".price").blur(functio...
jquery
[5]
1,269,992
1,269,993
Set the Key of HashMap to setter
<pre><code>LinkedHashMap&lt;String, Double&gt; testMap = (LinkedHashMap&lt;String, Double&gt;) sortByValue(commands.get(commandWithMaxNegativeOffset).getDataUsageCriteria()); </code></pre> <p>From above, <code>testMap</code> will contains something like <code>{New=30.0, Previous=70.0}</code> in ascending order of valu...
java
[1]
701,174
701,175
convert std::wstring to const *char in c++
<p>How can i convert std::wstring to const *char in c++?</p>
c++
[6]
4,537,760
4,537,761
Print some code from a foreach loop at each predetermined number
<p>My code is looping through some content and outputting some code.</p> <p>I need to work out a way of telling my code to output some predefined text every X loops. For example:</p> <blockquote> <p>Task: print "code here" on loop item 1 and every 4 further loops.</p> </blockquote> <p>So "code here" will only be...
php
[2]
4,116,591
4,116,592
removing parent icon in expandable list
<p>1) I have made an customizable expandable List .</p> <p>2) Where I can customize the child.</p> <p>3) But in parent(Group ID) I want to change the default icon of the parent.which look like(>).</p> <p>4)Can anyone help me?</p> <p>Thanks Raj </p>
android
[4]
2,260,290
2,260,291
Force a raw_input
<p>How would I implement the following:</p> <pre><code>title_selection = raw_input("Please type in the number of your title and press Enter.\n%s" % (raw_input_string)) if not title: # repeat raw_input </code></pre>
python
[7]
230,979
230,980
Where to put using statements in a C# .cs file
<p><strong>DUPE: <a href="http://stackoverflow.com/questions/125319/should-usings-be-inside-or-outside-the-namespace">http://stackoverflow.com/questions/125319/should-usings-be-inside-or-outside-the-namespace</a></strong></p> <p>If I add a new class using Visual Studio to the project, It adds all the using statements ...
c#
[0]
4,152,466
4,152,467
Instruments chart for iphone
<p>i have a doubt ..i clicked on leaks and then i can see graph now <strong>should i run application to check memory leak or it will do on its own</strong>?? and the moment my apps start after 3 secs i can see blur bar of height 0.5 that keep going?? so what should i do?? is that leak permanent (cause blue bar is stati...
iphone
[8]
98,470
98,471
Debugging Android RuntimeException - Before my code even executes
<p>I'm not new to Java but new to the Android platform. I'm finding one of the platforms shortcomings to be meaningful feedback on runtime crashes. Fine in user code where breakpoints apply, but I have a crash on first run that is preventing my project from starting, and I can't see a way to track it down. Can anyone s...
android
[4]
1,958,148
1,958,149
How to minify php html output without removing IE conditional comments?
<p>I minify my HTML pages whit this PHP script:</p> <pre><code>function compress_html($html) { preg_match_all('!(&lt;(?:code|pre|script).*&gt;[^&lt;]+&lt;/(?:code|pre|script)&gt;)!', $html, $pre); $html = preg_replace('!&lt;(?:code|pre).*&gt;[^&lt;]+&lt;/(?:code|pre)&gt;!', '#pre#', $html); $html = preg_re...
php
[2]