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
592,841
592,842
Array count Should be Show in table view
<p>i want show my NSMutableArray Count in a UILabel ,,,,,,,,,,</p> <p>can any one help me</p>
iphone
[8]
3,349,276
3,349,277
Add one to a variable when another variable changes
<p>How would I go about adding one to variable when another variable changes value?</p>
php
[2]
5,254,138
5,254,139
How to use Dictionary (like iphone NSDictionary) in android?
<p>i have worked in soap message, and to parse the value from Webservice, the values are stored in ArrayList.</p> <p>Example: values are Employee name (Siva) and Employee id (3433fd), these two values are stored in arraylist, but i want to stored in Dictionary, How? please any one help me</p> <p>Thanks</p>
android
[4]
1,004,182
1,004,183
javascript jsgantt to PDF
<p>i am using jsGantt javascript library for showing gantt charts in html . now i want to save that generated ganttchart in PDF form how i will use that ??</p> <p>the problem is with CSS , and JavaScript....</p> <p>thank you ,</p>
javascript
[3]
601,104
601,105
PHP date format Today/Yesterday
<p>I was wondering if I could get some insight on how to make the display format for a time stamp say things like "Today, 12:16PM" or "Yesterday, 9:34AM". At the moment it just displays as this "11-03-2010, 12:10PM".</p> <p>How would I go about making it say "Today" or "Yesterday"</p> <p>Thanks.</p>
php
[2]
2,729,993
2,729,994
how can i change the password length in create user wizard of visual studo in asp.net
<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" &gt; &lt;head runat="server"&g...
asp.net
[9]
4,625,692
4,625,693
how to combine with jquery
<p>how to combine this into 1 script?</p> <pre><code>$('#tabs, #tabs-1').tabs({ select: function(event, ui){ $("#picture").hide(); } }); $('#tabs, #tabs-2').tabs({ select: function(event, ui){ $("#picture").hide(); } }); $('#tabs, #tabs-3').tabs({ select: function(event, ui){ $("#pict...
jquery
[5]
3,477,909
3,477,910
Locationlistener and Timers
<p>Does anyone know why i'm not able to get any coordinates when registeren a locationlistener via a Timertask (tried both NETWORK_PROVIDER and GPS_PROVIDER) but when i register them manually i get coordinates just fine. </p> <p>this is how i register my listener:</p> <pre><code>Looper.myLooper().prepare(); locationM...
android
[4]
502,156
502,157
i want know system system localhost IP address in PHP?
<p>here i am using <code>$_SERVER['remote_addr']</code> i am getting the IP address INTERNET providers. please help me out.</p> <pre><code>function getRealIpAddr() { if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet { $ip=$_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVE...
php
[2]
607,456
607,457
Get rgb value of image when user clicked on image
<p>iam creating a map application.i need to get <strong>rgb</strong> value of image when user clicked on image. image is in imageview.</p> <p>pls help </p>
android
[4]
5,446,846
5,446,847
PHP, process and split CSV-file
<p>A S0-logger comes with a csv file on a monthly base. The file is updated every 5 minutes and can be retrieved any moment. At the end of the month the file counts over 8500 rows. When a new month starts a new file is made.</p> <p>Fileformat is like this:</p> <pre><code>Datum / Uhrzeit (UTC);Main meter - Sales offic...
php
[2]
1,367,355
1,367,356
Use of Unassigned local variable
<p>I encountered an error. Despite declaring the variables (failturetext and userName) errors still appear. Can anyone please help me? </p> <pre><code>- Use of Unassigned local variable "FailureText" - Use of Unassigned local variable "UserName" protected void Login1_LoginError(object sender, System.EventArgs e) { ...
c#
[0]
3,010,622
3,010,623
C# taking arguments & declaring at runtime from text file
<p>I have a text file with the following:</p> <pre><code>int A = 5 ; string str = "tempstring" ; str DosomeMethod 15 16 20 22 ; </code></pre> <p>When reading the text file thru my program, I want to declare <code>int A = 5</code> &amp; <code>string str = "tempstring"</code> at runtime.</p> <p>It can be like</p> <pr...
c#
[0]
2,453,285
2,453,286
what is the difference for java using in windows and linux. I am new to java. where can i start for programming in java
<p>Hey im new to java programming. i want to know the difference in programming java in windows and linux. where can i start for java programming. i would appreciate any help!</p>
java
[1]
2,990,057
2,990,058
PHP invoking another script but through http (isolating them)
<p>Let's see if I make myself clear. I have an old set of scripts that run well on PHP4 and better don't thouch em. I have to integrate a new functionality implemented on PHP5, I need just to invoke a script on the new app from the old one.</p> <p>To not have to touch the old stuff I think to somehow "kin of remotely"...
php
[2]
3,493,613
3,493,614
byte array to decimal convertion in java
<p>Hi I am new to java.I receive the udp data in byte array.Each elements of the byte array have the hexa decimal value.I need to convert each element to integer.How to convert it to integer.</p>
java
[1]
5,852,225
5,852,226
Delete specific word from string by wordlist
<p><br> I have this function to remove a specific word from a String, this function use a word list. so i have a query and i want to remove every type of string like (number,number)<br> this is mycode:<br></p> <pre><code>$wordlist = array("LIMIT", "0, 5"); foreach ($wordlist as &amp;$word) { $word = '/\b' . pr...
php
[2]
2,358,683
2,358,684
jQuery - Queue unrelated DOM elements in the same queue
<p>I've been reading all types of examples about jQuery's queue() function, all of them demonstrate with only one DOM element.</p> <p>What I need is to run an event on one element and once that's complete run an event on another element.</p> <p>I've made up an example to test this: <a href="http://jsfiddle.net/paulma...
jquery
[5]
1,731,942
1,731,943
How to control the screen resolution
<p>Whenever i run my program in emulator, the pixels and screen resolutions are displays perfectly. but at the same time when install the apk in basic version of android mobile, the resolution will changed. Its getting some nasty GUI formate. I am not sure how to rectify this issue. I did my application in 2.2 and i am...
android
[4]
645,343
645,344
Jquery - live('hover') and mousemove
<p>i have a little problem with the hover funtion with mousemove. But what is wrong?</p> <p>working example -> <a href="http://www.jsfiddle.net/V9Euk/306/" rel="nofollow">http://www.jsfiddle.net/V9Euk/306/</a></p> <pre><code>$('.tip').live('hover', function(e) { if (e.type == 'mouseover') { $('#'+th...
jquery
[5]
865,512
865,513
incorrect jQuery height
<p>I have a page with two columns and try to make them the same height using jQuery... I have the following code</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function() { var right_column_height = $("#right-column-wrapper").height() var content_height = $("#content-wrapper")....
jquery
[5]
446,972
446,973
Provide a method definition with an abstract version before it?
<p>Is it posible to have:</p> <pre><code>public abstract void someMethod(); ... public void someMethod() { // ... } </code></pre> <p>in the same class? Or does the definition have to be in the child classes?</p>
java
[1]
4,322,933
4,322,934
Printing all static content in a .java file
<p>I have to print all the static content in l the .java files in my workspace. Can anyone suggest any tool or code to do that?</p> <p>By static means SIB's static constants, methods and all.</p>
java
[1]
2,640,344
2,640,345
how to customize simple_list_item_multiplechoice.xml file
<p>here i used this code to display contacts with check boxes....</p> <pre><code>SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, android.R.layout.**simple_list_item_multiple_choice,c**, new String[] { //Phone.TYPE, ...
android
[4]
2,079,181
2,079,182
Text progressive light glow effect
<p>Is there any jQuery plugin for progressive light glow effect <a href="http://activeden.net/item/xml-text-progressive-light-glow-effect/47740" rel="nofollow">like this</a>?</p>
jquery
[5]
2,974,346
2,974,347
Why can't variables defined in a conditional be constructed with arguments?
<p>The question is simple. Why does this compile:</p> <pre><code>bool b(true); if (b) { /* */ } </code></pre> <p>And this compile:</p> <pre><code>if (bool b = true) { /* */ } </code></pre> <p>But not this:</p> <pre><code>if (bool b(true)) { /* */ } </code></pre> <p>In my real code, I need to construct an object ...
c++
[6]
1,283,267
1,283,268
Can I test proximity alert in the emulator?
<p>I'm developing an android app using proximity alert.Can I test proximity alert in the emulator? </p>
android
[4]
2,460,375
2,460,376
iterator for loops with break
<p>let say my code look like below</p> <pre><code>for(..) for(..) for(..){ break; //this will break out from the most inner loop OR all 3 iterated loops? } </code></pre>
java
[1]
5,898,227
5,898,228
how to add a parent and unlimited nodes in sql using asp.net
<p>In my application i need grouping method. For that i need to enter parent node and unlimited sub nodes in sql2008 using asp.net. Its in tree structure same as money chain method. please guide me out to get my result.</p> <p>thanks</p>
asp.net
[9]
5,873,047
5,873,048
Text selection bind in android 3.1
<p>When you select text in android, a toolbar is opened with COPY &amp; PASTE &amp; WEB SEARCH. is there a way i can add stuff there via the API somehow?</p> <p>Thanks!</p>
android
[4]
5,182,434
5,182,435
Javascript newline not working when sending to outlook
<p>I have this little problem. I have this javascript in my html page:</p> <pre><code>function myfunction(form) { var name = document.details.txtName.value + "\n"; var street = document.details.txtStreet.value + "\n"; var city = document.details.txtCity.value...
javascript
[3]
3,025,336
3,025,337
Example of list having texts with images in android
<p>I am developing a small list android application in which i have texts and images.Can anyone tell how should i pursue</p> <p>Thanks in advance Tushar</p>
android
[4]
5,456,409
5,456,410
IE7/IE8 get unload when call jquery post
<p>I call like below function when user click button,</p> <pre><code>&lt;script type="text/javascript"&gt; function callTest() { $.post("/testcall1", function(data){ $('#testDiv1').html(data); $.post('/testcall2', function(data){ $('#testDiv2').html(data); }); }); } &lt;/script&g...
jquery
[5]
1,048,970
1,048,971
Integrate yahoo and google plus API in android app?
<p>I am designing an app for android in which I have to integrate yahoo, google plus.<br> How to login these through app and get the user information?</p> <p>Please do show me a way to implement this. Any tutorial may help.</p> <p>Thanks. </p>
android
[4]
2,348,208
2,348,209
Famous javascript libraries
<p>What are the most famous JavaScript libraries?</p>
javascript
[3]
4,817,816
4,817,817
Avoiding multiple logins to an account from different locations
<p>I want to avoid multiple log ins of the same user from different locations, or I want to give a warning or something to the user's mail to indicate there is another log in to their area.</p> <p>How can I identify a user's multiple log in from different location at same/recent time? I think some flags and IP checkin...
php
[2]
1,460,108
1,460,109
Is it necessary to cache objects?
<p>For a project I have some objects, one method is to load the parent entity.</p> <p>So I call the method like this: $this->getDetails()->getEntity();</p> <p>So the code of getEntity is:</p> <pre><code> public function getEntity() { if (isset($this-&gt;entity)) { return $this-&gt;entity; } else { $mapper...
php
[2]
4,879,651
4,879,652
android transition from landscape view to portrait view
<p>I have an activity which is in landscape orientation. When i press back, it goes to portrait view. I want to create a transition from left to right. I tried overridePendingTransition(anim.slide_in_left, anim.slide_out_right);.. still transition is not correct.pls Help</p>
android
[4]
1,144,871
1,144,872
Does Java syntax for iteration across arrays allocate memory?
<p>I am programming for a memory-constrained device. Hence, I want to avoid allocating any memory.</p> <p>Obviously, iterating across sets, lists, etc will allocate an iterator and thus allocate memory. So this should be avoided.</p> <p>Does the native java syntax for iterating across arrays allocate memory?</p> <pr...
java
[1]
2,740,396
2,740,397
Passing objects in android
<p>I want to pass a client object to a diffrent activity on android</p> <p>I know how to pass strings but have no idea about passing objects.</p> <p>myIntent.putExtra("nick",nick); where nick is a string </p> <p>how do i pass an object say Client c?</p>
android
[4]
5,316,599
5,316,600
question based on installer
<p>How to make an installer for java application in mac what are the different steps for it</p>
java
[1]
1,709,892
1,709,893
how can i give ratings of android application through RatingBar in Android
<p>I made a screen with rating bar and i want to give the ratings of application that will reflect direct on the Android Market, please let me know if there is any way to do this.</p>
android
[4]
1,235,006
1,235,007
How do you know when to return false from a jQuery function?
<p>"<strong><code>return false</code></strong>" seems to work in the <code>submitHandler</code> but I'm not sure why. </p> <pre><code>function submitHandler() { $.post($(this).attr('action'), $(this).serialize(), null, "script"); return false; } $(document).ready(function () { $('#top_cat').submit(submit...
jquery
[5]
3,549,521
3,549,522
Is this consider polymorphism?
<p>I'm confused with polymorphism and I'm wondering if this is consider polymorphism?</p> <p>I feel it looks kind of weird but it still compiles correctly.</p> <pre><code>public class Family { void FamilyInfo() { System.out.println("This is a family super class"); } } public class Grandparents extend...
java
[1]
1,157,019
1,157,020
Hour to Minutes 00:00 to 00 javascript
<p>I need to convert hours:minutes (00:00) to minutes 00 in Javascript. </p> <p>I thought about doing it by using substr to get hour and minutes separately and then multiply the hours part by 60 and then add the minutes part.</p> <p>Is there any other easy way to do this?</p>
javascript
[3]
583,004
583,005
change background color of the layout in Android
<p>I have a simple Android application, with 3 buttons. When i click on the 1st button, i wanna change the background color of the layout (which is now white... i wanna change in other color, when i press the button). How can i do this?</p> <p>On that button, i have a myClickHndler event</p> <pre><code> public voi...
android
[4]
4,402,921
4,402,922
How set width of one element equal to other in android?
<p>I have two buttons defined in XML</p> <pre><code> &lt;Button android:layout_alignParentBottom="true" android:id="@+id/takepic_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/Take_Pic" andro...
android
[4]
1,052,181
1,052,182
How does Stackoverflow hide the URL of the new share on facebook etc
<p>When you create a post , over in the Left hand side under the vote up and vote down, is a new share on twitter facebook and linkedin.</p> <p>How do they do that, is it just using javascript ?</p> <p>Or something far more clever than say:</p> <p>This : <a href="http://www.openjs.com/articles/ajax/target_url_hiding...
javascript
[3]
2,679,386
2,679,387
field declared void / struct or variable not declared in this scope
<p>I've been teaching myself some OpenGL using SFML for creating windows/handling inputs, etc. My main.cpp started getting a bit unwieldy so I decided to start splitting my code up. I created a 4X_vertex.h and a 4X_vertex.cpp (4X is the name of the project) and moved the relevant functions and structs out of my main an...
c++
[6]
160,202
160,203
How to suppress the "Division by zero" error and set the result to null for the whole application?
<p>How to suppress the "Division by zero" error and set the result to null <strong>for the whole application</strong>? By saying "for the whole application", I mean it is not for a single expression. Instead, whenever a "Division by zero" error occurs, the result is set to null automatically and no error will be thrown...
php
[2]
1,959,575
1,959,576
Show/Hide divs using Jquery
<p>I am having issues showing one div then hiding the previous div. </p> <pre><code>var newElem = '#ID' + numVariable; $('.elemPropGlobal').hide(); $(newElem).click(function (){ $('.elemPropGlobal').hide(); $($(this).attr('id') + 'Properties').show(); } </code></pre> <p>Divs that I click on</p> <pre><code...
jquery
[5]
1,180,257
1,180,258
Jquery hover popup a div
<p>Im using this Jquery to popup a div </p> <pre><code> &lt;script type="text/javascript"&gt; $(function () { $('.bubbleInfo2').each(function () { var distance = 10; var time = 250; var hideDelay = 500; var hideDelayTimer = null; v...
jquery
[5]
2,736,863
2,736,864
Explicitly setting size and making it to resizable of my Dialog?
<p>I have created a My custom Dialog which extends org.eclipse.jface.dialogs.Dialog. But whenever it displays, it displays with a small size and i cant resize it also. So i wanted to know how to set its size while creation and how to make it resizable.</p> <p>Thanks</p>
java
[1]
2,106,084
2,106,085
Twitter plugins arent working with hebrew
<p>im trying to use plugins such as 'tweetquote' , im changing lang:en to lang:he but it isnt working..</p> <p>any suggestions?</p>
jquery
[5]
687,542
687,543
Can you view PHP script code straight from the web server
<p>I am a complete PHP novice and I am just trying to write a simple web form and script that checks to see if the input matches a specific string. I have got that working no problem and just want to know if there is some way for the web form user to parse the script code and see what I am comparing to, therefore revea...
php
[2]
2,126,013
2,126,014
htaccess for subdirectories to prevent script execution
<p>I have sub directory 'images' with permission 777 to upload images from visitors in this folder there is .htaccess file to prevent script execution and more security </p> <pre><code>&lt;Files ^(*.jpeg|*.jpg|*.JPEG|*.JPG|*.png|*.gif)&gt; order deny,allow deny from all &lt;/Files&gt; &lt;FilesMatch "\.(php|p...
php
[2]
1,585,977
1,585,978
Is there an easier way to declare multiple JTextFields?
<p>I have like 60 JTextField in my program, and it's too long.</p> <p>Is there some shortcut like a loop?</p> <p>My program is a Timecard, so there is time-in, break-in, break-out, time-out for 15 days. Just wondering if there is such thing.</p>
java
[1]
5,938,153
5,938,154
address validation global solution
<p>suppose user fillup form with germany address but as country choose UK. so how can i validate address there like if user choose country UK then i want that user has to write UK address for other detail. how to do it for all country. is there any IP available. need idea. thanks</p>
c#
[0]
669,015
669,016
C# Convert Image To FileStream
<p>My application so far lets the user select an image via the file selector and upload it through a file stream via FTP:</p> <pre><code> Stream ftpStream = request.GetRequestStream(); FileStream file = File.OpenRead(fileToUpload); length = 1024; buffer = new byte[length]; do...
c#
[0]
3,073,945
3,073,946
Need help in refreshing the page after submit
<p>I am developing an web application following the 3 tier architecture.When i am hitting on submit button data is storing in database but not showing response message like "Record submitted successfully" and fields are not refreshing. Here is my code:</p> <pre><code>protected void BtnSubmit_Click(object sender, Event...
asp.net
[9]
15,112
15,113
sizeof *this object
<p>Code:</p> <pre><code>#include &lt;cstdio&gt; class myc { int dummy; public: int si(){return sizeof(*this);} }; class d_myc : public myc { int d_dummy; }; int main() { myc a; d_myc b; printf("%d %d\n%d %d", a.si(), b.si(), sizeof(a), sizeof(b)); return 0; } </code></pre> <p>output :</...
c++
[6]
886,110
886,111
Velocity framework resource not found exception
<p>I'm trying to run velocity email sender program in Java 1.6 but its not finding recourse...</p> <pre><code> VelocityContext context = new VelocityContext(); context.put("name", "mike"); // Initialize the engine try { VelocityEngine ve = new VelocityEngine(); templateName = "myfile_en.vm"; ...
java
[1]
1,301,210
1,301,211
update a currently displayed variable
<p>I am writing some Python code, which will in the end will display something which looks like:</p> <pre><code>Volt1: 3.1V Volt2: 2.6V Volt3: 5.6V </code></pre> <p>I am constantly monitoring some register values which will give me the current values of Volt1,Volt2,Volt3. As I read in the new values I want ...
python
[7]
2,794,715
2,794,716
change div content with one of 3 other divs?
<p>I have 3 links, and a container div with an image. When I click a links I want to change the image with one of 3 divs containing 3 different videocodes?</p> <p>So if I click on link one, then change the image to videocode 1.</p> <p>What is the best way of doing that? appendTo, replaceWith or what - with jquery. Th...
jquery
[5]
5,058,938
5,058,939
Date comparison javascript
<p>Is string comparison on the next manner reliable? In other words, how does this comparison internally works?</p> <pre><code>var _date = new Date(); var _start_date = _date.getFullYear()+"-"+_date.getMonth()+"-"+_date.getDate()+"-"+_date.getHours+"-"+_date.getMinutes(); if( _start_date &lt; "2011-1-11-23-59") a...
javascript
[3]
5,456,285
5,456,286
Access argument name string inside the function
<p>Is it possible to access arguments name strings?!</p> <pre><code>function myFunction (a, b, c, d, e, f) { var obj = []; arguments.forEach(function(arg) { obj.push({ // question is how to get variable name here? name: "a",// "a", "b", "c", "d", "e", "f" value: arg,...
javascript
[3]
4,196,516
4,196,517
How to read xml top 10 record (last update) with PHP
<p>I need to read xml file with PHP,but xml file have many record update. Can I read only 10 record last update ?</p> <p>Thank you very much. </p>
php
[2]
3,060,368
3,060,369
Serializing .NET dictionary
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/495647/serialize-class-containing-dictionary-member">Serialize Class containing Dictionary member</a> </p> </blockquote> <p>Can I serialize a Dictionary? </p>
c#
[0]
4,566,590
4,566,591
Java instantiate class from string
<p>I have the following,</p> <pre><code>public interface SuperbInterface public class A implements SuperbInterface public class B extends A public class C extends B </code></pre> <p>I want to instantiate <code>C</code> but I seems to be getting <code>B</code>, what did I do wrong?</p> <pre><code>Class classz = Class...
java
[1]
5,966,732
5,966,733
Limit how many times an event listener can trigger every second
<p>I'm playing with the Gamepad API - in particular the axes using the joysticks on a controller. The position of these updates a lot and often - as such, the event that I'm listening for (movement on the sticks) also happens a lot. Is there any way to limit it happening to, say, 25 times a second in order to reduce la...
javascript
[3]
2,030,876
2,030,877
accessing class object types C++
<p>How can i access class obect types in a statically declared private member function?:</p> <pre><code>class Y { .. private: friend class X; X *myX; }; class X { public: friend class Y; private: static int foo( const char * const key ); Y *myX; }; int X::foo( const char * const key ) { X ...
c++
[6]
5,436,750
5,436,751
How to connect Android SQLITE Database to Remote MSSQL database
<p>We have a scheduler application in android which is storing all the data in SQLITE Database. Now we have to connect our application to remote MSSQL server database and we should store our data in that database and the vice versa should happen.Can U Please Help Us with Solution</p> <p>Thank you.</p>
android
[4]
1,761,112
1,761,113
update the textfield as we change the value in datetime picker
<p>I am making an iPhone app in which I am using date time picker and displaying the selected the date in a text filed. Now I want to update the textfield as there is change in selected date in date picker.</p> <p>hOw can i do this. Give me some solution.</p> <p>Thanks in advance.</p>
iphone
[8]
2,090,791
2,090,792
build android framework.jar only
<p>Having add some debug information to <code>androd.opengl.GLSurfaceView</code> , I want to rebuild the <code>framework.jar</code> <code>only</code> in the android source tree. I did a <code>mm</code> in $ANDROID_ROOT but that would build the apps as well and some apps failed to compile but I did not bother with the ...
android
[4]
1,341,046
1,341,047
uzbl-tabbed keyboard shortcut for closing tabs?
<p>I can open tabs by typing "gn" I can change them by using "gt" and "gT". But I can't close tabs from within in the browser.</p> <p>I looked here: [http://www.uzbl.org/readme.php][1] and that stuff is way over my head. I don't know if any of that information would answer my question anyway.</p> <p>I found this: [ht...
python
[7]
1,388,840
1,388,841
Memory Management On Navigation Controller
<p>I am new to the iPhone SDK and I got a leak on a navigation controller. Here is my code : </p> <p>-(void)SignupClicked:(id)sender {</p> <pre><code>if(appdelegate.isiPad){ SignUpViewController *obj_SignUpViewController =[[SignUpViewController alloc] initWithNibName:@"SignUpViewControllerIpad" bundle:nil]; [...
iphone
[8]
698,753
698,754
How to use subscriberCellularProviderDidUpdateNotifier
<p>I have done something like</p> <pre><code>CTTelephonyNetworkInfo *networkInfo = [[CTTelephonyNetworkInfo alloc] init]; networkInfo.subscriberCellularProviderDidUpdateNotifier = ^ (CTCarrier * carrier) {Do some stuff here }; </code></pre> <p>to get the notification when the cell service provider changes and do som...
iphone
[8]
3,977,637
3,977,638
How to populate local sqlite database with remote MSSQL database in android
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/6530115/getting-remote-database-data-into-local-database-in-android">Getting remote database data into local database in android</a> </p> </blockquote> <p>We have to copy the remote MSSQL database into local sql...
android
[4]
907,303
907,304
Import javascript file in javascript function
<blockquote> <p><strong>Possible Duplicates:</strong><br> <a href="http://stackoverflow.com/questions/3991492/include-a-javascript-file-in-a-javascript-file">Include a javascript file in a javascript file</a><br> <a href="http://stackoverflow.com/questions/950087/include-javascript-file-inside-javascript-file">In...
javascript
[3]
5,068,099
5,068,100
java Arraylist remove elements
<p>Suppose there are 10 elements in ArrayList and if i have deleted 2 elements from the middle , so the arraylist will contain 8 elements , but will the capacity be 10 or reduced to 8 at that time.</p>
java
[1]
3,401,330
3,401,331
IE6 caching cookie values when back button is used
<p>Our user authentication system makes use of cookies and $_SESSION variables to determine logged-in status. Every page tests for the presence of a user_id $_SESSION variable and a user_auth cookie:</p> <pre><code>if(!isset($_SESSION['user_id']) || !isset($_COOKIE['user_auth'])){ // send user through login } </c...
php
[2]
4,366,503
4,366,504
Making smaller a string, c#
<p>I need a library/tool/function that compresses a 50-60 char long string to smaller. </p> <p>Do you know any?</p>
c#
[0]
784,183
784,184
how to get value from input html form using php
<p>can someone help me how can i get the value from input name="$photo_id" as state below after submitting the form.. should be $photo_id = $_GET['photo_id'] on the next page... </p> <pre><code>$picture = mysql_query( "SELECT * FROM gallery_photos where photo_category = ".$cid." "); while($row2 = mysql_fetch_array...
php
[2]
5,556,630
5,556,631
PHP DOMDocument stripping HTML tags
<p>I'm working on a small templating engine, and I'm using DOMDocument to parse the pages. My test page so far looks like this:</p> <pre><code>&lt;block name="content"&gt; &lt;?php echo 'this is some rendered PHP! &lt;br /&gt;' ?&gt; &lt;p&gt;Main column of &lt;span&gt;content&lt;/span&gt;&lt;/p&gt; &lt;/block...
php
[2]
2,734,924
2,734,925
Javascript prototypal inheritance - descendants override each other
<p>I'm creating two objects (Inherits), both inherit from Base. The second object's property assignment overrides the value in the first object.</p> <p>Any thoughts? How to make a proper inheritance so that Base class will contain common members for its inheritance descendants, but the descendants could assign values ...
javascript
[3]
1,564,210
1,564,211
Is there something like $('a#link_id').activate() in jQuery?
<p>When I bind a function to a link with <code>$('a#link_id').click()</code> and then I click the link, it runs the function and everything it's okay, but when I "activate" the button in another way (i. e. focusing with tab and then pressing barspace) it just doesn't works.</p> <p>It happens the same with <code>$('sel...
jquery
[5]
5,921,391
5,921,392
jQuery - Why hasData Does Not Work?
<p>I assigned data into $clicked_row: </p> <pre><code>$clicked_row.data("row", data); </code></pre> <p>The following code does not work: </p> <pre><code>alert($clicked_row.hasData("row")); // want to have Boolean output </code></pre> <p>However, this works: </p> <pre><code>alert($clicked_row.data("row")); // ou...
jquery
[5]
157,591
157,592
Is there any way in python while iterating through a collection to get the current counter numeric value?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1185545/python-loop-counter-in-a-for-loop">Python loop counter in a for loop</a> </p> </blockquote> <p>I know that I can set up an integer before the loop and increment it together with the loop. </p> <p>I am a...
python
[7]
3,772,759
3,772,760
Discover when the user closes the preferences activity
<p>I know it may sound silly, but I really cannot understand if there is a straightforward and standard way to understand when a user gets out from the preferences activity.</p> <pre><code>case R.id.menu_settings: Intent i = new Intent(this, Pref.class); startActivity(i); Toast.makeText(this, "test", T...
android
[4]
4,513,237
4,513,238
Why use string.Empty over "" when assigning to a string object
<p>I've been running StyleCop over my code and one of the recommendations SA1122 is to use string.Empty rather than "" when assigning an empty string to a value.</p> <p>My question is why is this considered best practice. Or, is this considered best practice? I assume there is no compiler difference between the two ...
c#
[0]
5,432,220
5,432,221
IE jQuery returns auto instead of the element width
<p>I am using jQuery to try and get the width of an element that doesn't have the width set. In firefox it works fine, but in IE it returns AUTO instead of the actual width of the element.</p> <pre><code>jQuery('.nav-2').css('width'); </code></pre> <p>Does anyone know of a work around or another way to get the width ...
jquery
[5]
5,296,332
5,296,333
What difference does it make including the @package annotation or not?
<p>I am somewhat familiar with the concept of packages in Java, but I'm new to Wordpress and PHP. </p> <p>In a template file such as <code>header.php</code>, what is happening when you include the <code>@package</code> notation?</p> <pre><code>&lt;?php /* * @package MyTheme */ </code></pre>
php
[2]
5,099,366
5,099,367
Android touch and scroll Listview
<p>I have a custom listview in my app in which the list items are draggable and can be dropped on another position on the listview itself.Now my problem is, I want to Scroll the listview. I tried using onIntercept touch event, but only the touch event happens. I can't able to scroll, Can somebody suggest me an idea on ...
android
[4]
3,542,748
3,542,749
how to record audio in macmini
<p>I use mac mini and need application demo with audio and video of simulator but how we record audio in mac mini any idea?</p>
iphone
[8]
610,391
610,392
PHP Subscriptions - Preventing Sharing
<p>Have a client who is looking at developing a site where clients get access by subscriptions.</p> <p>Obviously the biggest concern is people sharing their login details.</p> <p>Are there any good techniques which can be deployed to help prevent this or at least reduce it.</p> <p>Obviously only allowing single sess...
php
[2]
2,152,658
2,152,659
Android Intent like Gmail's attach Intent
<p>When I get my activity chooser for my ACTION_GET_CONTENT Intent there is applications I don't want to be there, like the ones who will first create content and then pass the URI to me, like the Voice Recorder.</p> <p>When you use Gmail and try to attach a file you will only see the applications/activities that pick...
android
[4]
2,656,156
2,656,157
dropdown list with 2 values
<p>I need to create a dropdownlist which has two values "OK" and "NOK" one should be selected by default based of an value of $Status. The user should than be able to change the selection or let the default one. How can i manage this? What i have tried:</p> <pre><code>&lt;select name="Status"&gt; &lt;option value="O...
php
[2]
5,389,076
5,389,077
Handling recurring cURL POST request
<p>I've basically came here for some advise based on my criteria, </p> <p>The application I'm trying to build is built completely from an API. It's like a "marketplace bidding" application, what I'm trying to accomplish is an "Auto bidding" function, but for this to happen it will have to send a cURL POST request ever...
php
[2]
2,610,295
2,610,296
Partial Interface in C#
<p>Does C# allows partial interface? i.e., in ManagerFactory1.cs class, I have </p> <pre><code>public partial interface IManagerFactory { // Get Methods ITescoManager GetTescoManager(); ITescoManager GetTescoManager(INHibernateSession session); } </code></pre> <p>and in ManagerFactory.cs class, I have:</p> <pre><...
c#
[0]
4,240,852
4,240,853
Javascript match: stop at second match on /g flag
<p>Is it possible to stop at second match instead of letting iterate through whole string?</p> <p>Thanks ;)</p>
javascript
[3]