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
4,796,692
4,796,693
PHP memory_limit locked to 256MB?
<p>I am trying to set memory_limit to 512M, but it's locekd to 256M.</p> <pre><code>ini_set('memory_limit','512M'); ini_get('memory_limit'); //&gt; Returns: 256M </code></pre> <p>I have full control on my server. (it's a dedicated)</p> <p>Please note that everything under 512M works.</p> <pre><code>ini_set('memo...
php
[2]
965,079
965,080
Succesive calls to cProfile/pstats no updating properly
<p>I'm trying to make successive calls of some profiler code however on the second call to the function the update time of the profile file changes but the actual profiler stats stay the same. This isn't the code I'm running but it's as simplified an example I can come up with that shows the same behaviour.</p> <p>On ...
python
[7]
5,327,257
5,327,258
language localization in xib/ib does not work
<p>I am working on the localization of one of my project. The function NSLocalizedString in XCode does work. But when I switch the language setting, it look likes the app does not switch to relevant fr/en/jp file of mainwindow.xib, help.html etc.</p> <p>Welcome any comment</p>
iphone
[8]
1,380,716
1,380,717
How to add my app into the google local search?
<p>In the android we can see that there is a default "google search" on the launcher. And I found out that using setting, we can set the searchable items. For example amazon kindle, music, or browser. </p> <p>The question is, how can I add my app into the searchable items in the google search? Are there any APIs I can...
android
[4]
174,228
174,229
Multiple jQuery scripts don't work at a same page
<p>I'm a php developer, but sometimes I use jQuery (ready made codes). This time I'm having a problem while running multiple jquery functions. If I remove any one of the jQuery functions (total code feature) then other one works fine, but I need both of these.</p> <p><a href="http://www.kidsartvalley.com/kidsartvalley...
jquery
[5]
5,750,024
5,750,025
Can I select elements with a set of attribute values?
<p>Is there a way to refactor something like this:</p> <pre><code>$("input[name='InputName1'],input[name='InputName2']").val(""); </code></pre> <p>into something like this:</p> <pre><code>$("input[name='InputName1|InputName2']").val(""); </code></pre> <p>Essentially, is it possible to select elements based on a set...
jquery
[5]
1,051,069
1,051,070
"using" namespace equivalent in ASP.NET markup
<p>When I'm working with DataBound controls in ASP.NET 2.0 such as a Repeater, I know the fastest way to retrieve a property of a bound object (instead of using Reflection with the Eval() function) is to cast the DataItem object to the type it is and then use that object natively, like the following:</p> <pre><code>&l...
asp.net
[9]
1,999,238
1,999,239
Preventing stack overflows in C++ using arrays?
<p>If we implement a stack using arrays in C++, what is the best way to reduce the chance of an overflow condition? Also while keeping in mind the time-space trade off?</p>
c++
[6]
4,076,259
4,076,260
Understanding the process of initialization
<p>This is my attempt to understand how class initialization works. I'm not sure about everything, and that is why I'm asking this question. This is what I believe happens when we do the following:</p> <pre><code>T t = u; </code></pre> <ol> <li><p>Constructs an object of type <code>T</code> from <code>u</code>. This ...
c++
[6]
2,197,005
2,197,006
I don't understand the usefulness of parameter arrays?
<p>Parameter arrays allow a variable number of arguments to be passed into a method:</p> <pre><code> static void Method(params int[] array) {} </code></pre> <p>But I fail to see their usefulness, since same result could be achieved by specifying a parameter of particular array type:</p> <pre><code> static ...
c#
[0]
647,726
647,727
PHP Check existance of record in the database before insertion
<p>I have code that is supposed to check if records exists on the database before insertion and if records exists, does not insert but my code does not prevent that but instead it inserts. </p>
php
[2]
4,727,194
4,727,195
jquery stop executing after callback function
<p>I have a simple plugin, used for submitting form</p> <pre><code>(function($){ $.fn.ajaxSubmit = function(options){ var defaults = { onSubmit:function(){}, }, o = $.extend({},defaults, options); return this.each(function(){ $(this).submit(function(e){ ...
jquery
[5]
1,611,985
1,611,986
sqlite with android no such table
<p>I have been testing my app which uses the dbadapter from Reto Meir's earthquake example. Everything was going ok for several days but when debugging with the app on the device today I got the 'no such table' error. I changed the name of the database and all runs well again. This doesn't give me much confidence re...
android
[4]
79,165
79,166
ASP.NET: concept question regarding variable declaration
<p>consider this code: </p> <pre><code>Partial Public Class MyAspNETClass Inherits System.Web.UI.Page Protected Shared MyVariable As String .... .... </code></pre> <p>2 questions: </p> <ol> <li>Is Myvariable a variable used local for each instance of the page ? Or that variable is "shared" for all users accessing m...
asp.net
[9]
5,375,418
5,375,419
Pass the return type as a parameter in java?
<p>I have some files that contain logs of objects. Each file can store objects of a different type, but a single file is homogeneous -- it only stores objects of a single type.</p> <p>I would like to write a method that returns an array of these objects, and have the array be of a specified type (the type of objects i...
java
[1]
793,084
793,085
How to make a C++ program interact with mouse clicks and X Window System application?
<p>How do I exactly make a C++ program interact with another program and interact with something I have clicked on.</p> <p>Example: If I wanted to make an MSN auto reply program and I would have a dialog box that would ask me what I would want to type and than the program would paste that into the MSN chat box.</p>
c++
[6]
3,314,394
3,314,395
How do I pass a ref string to my method?
<p>I have the following sniplet of a stored procedure in SQL Server</p> <pre><code> Create PROCEDURE [dbo].[usp_Genpwd] @pass varchar(8) OUTPUT AS BEGIN </code></pre> <p>In my c# code, how do I get the output from the stored proc throught the data context? </p> <pre><code> var pwd = db.usp_Genpwd(...
c#
[0]
2,431,794
2,431,795
PHP for each loop error
<p>I have a loop to go through an array and each <code>checkbox</code> that is selected I want to put the value (also brought in dynamically) into my <code>QuestionSelected</code> table. I get this error <code>"Warning: Invalid argument supplied for foreach()"</code> and I cannot get the results into my table. Here is ...
php
[2]
556,141
556,142
Is this matching from Scala is available in C#?
<p>I found nice little one example of Scala today. Something like:</p> <pre><code>(1 to 100) map { x =&gt; (x % 2, x % 6) match { case (0,0) =&gt; "First" case (0,_) =&gt; "Second" case (_,0) =&gt; "Third" case _ =&gt; x toString } } foreach println </code></pre> <p>And i wonder i...
c#
[0]
5,469,361
5,469,362
Converting values using a text file
<p>I'm trying to write a console application in C# which allows a user to enter the following information in the format x,pound,ounce where X is the value to be converted.</p> <p>I've created a text file which contains the conversion factors in the following format.</p> <p>pound,ounce,16.0</p> <p>What I want the app...
c#
[0]
3,984,956
3,984,957
Changed server account and php scripts no longer work
<p>I inherited a website that recently changed hosting accounts. Both were on virtual servers. On the new account several of the php scripts have stopped working. They were working before the change.</p> <p>I've already tried changing register_globals and that didn't work.</p> <p>What other types of settings can I tr...
php
[2]
5,173,898
5,173,899
How to only show some of the values in an array in an textbox?
<p>I have come across a problem that i cant salve, What i have is an string array with 60 values in it and they concists of either "vacant" or "reserved". Now what i need to do is to show only those arayy index that are either vacant or reserved and i have no clue on how to go about it. :/ I am stumped to say the least...
c#
[0]
1,990,980
1,990,981
what is exactly use of PorterDuff.Mode.CLEAR?
<p>I am new to android and try to learn from basic stage...in a sample there is a line like this canvas.drawColor(0, PorterDuff.Mode.CLEAR); so plz tell me anyone what it is exacltly...?</p>
android
[4]
359,674
359,675
Problem to sum two values in Jquery
<p>I can't get the right sum of two values.I want to sum the cena1 and kolicina. (cena1+kolicina) and (cena1*kolicina) My jquery code</p> <pre><code>&lt;script type="text/javascript"&gt; function izracunaj() { var sum = 0; $("#kolicina").each(function() { var cena = $("#artikel").val().split("-"); ...
jquery
[5]
5,021,284
5,021,285
how to customoize tcp port number other than default (80)
<p>I'm using a web service and connect it using httpWebRequest.create api. If i change the TCP port number In IIS other than 80 then my application could not connect to it. How can i set port number in System.Url object as set in IIS so that my application can connect to web service.</p>
c#
[0]
2,514,445
2,514,446
Noob needs VERY BASIC help. Just need to get/display properties from a variable
<p>I have searched but perhaps just don't understand and need an actual person to help explain. I have a script that generates the following variable:</p> <pre><code>var trackerResult = { "sessionId": "16zA06FJt5sp", "customerId": "16zA06FJt5so", "contact": { "firstName": "Bilbo", "lastName...
javascript
[3]
1,359,035
1,359,036
How to mimic Split Screen feature of MSWord for Android Screen.?
<p>I want my Android Screen (320*480) to be split into two 2 screens each of resolution 320*240 which should mimic the "split Screen" feature of MS Word .How can this be achieved Any sample code or any suggestions . I will be waiting for reply.</p> <p>Thanks In Advance.</p>
android
[4]
3,693,339
3,693,340
Creating Custom AlertDialog ? What is the root view?
<p>what i am trying to do:</p> <p>Create a custom Alert Dialog. Buttons just like any Alert Dialog but above are two TextEdit input boxes. I don't want to create a custom Dialog but a customized Alert Dialog</p> <p>Here is what I am trying #3: <a href="http://developer.android.com/guide/topics/ui/dialogs.html" rel="...
android
[4]
5,760,809
5,760,810
How can i get Keywords used in a Search Engine in asp.net
<p>Hi how i can used keywords entred in search engine then navigated to my website with asp.net webform ? Please Help Me Thanks</p>
asp.net
[9]
1,156,659
1,156,660
can you easily mix in one project C# and VB.aspx
<p>you should be able to merge the assemblies... but just wondering if you had a VB.net web app, and then had a C# project, how would you merge the aspx pages? </p> <p>can it be done? </p>
asp.net
[9]
5,272,671
5,272,672
How to send a php variable using a url
<p>I want to for example send the <code>$test</code> in a url then I want to use <code>$_GET</code> ti get the variable.</p> <p>This is probably a stupid question but if you have another way of doing this then please let me know. By the way I would usually use include for this but I can't use it this time because of s...
php
[2]
5,301,978
5,301,979
What using statement must be added to use the Backup class in c#
<p>I want to use the <code>Backup</code> class to make a backup of my database. </p> <p><code>Backup backup =new Backup();</code></p> <p>However, I do not know what namespace this class is found in.</p> <hr> <p>I added Microsoft.SqlServer.SmoExtended.dll And Microsoft.SqlServer.Smo.dll</p> <p>Now its Work !</p> <...
c#
[0]
2,684,994
2,684,995
what is on stack in Iphone
<p>In objective C whenver we create any object (i.e. uiview <em>myview</em>), it is stored on heap. Can anybody please tell what is stored on stack?</p>
iphone
[8]
5,025,436
5,025,437
Installing one apk with two different entry point
<p>In my application it contain activity A,B,C,D. Now, I want to enter in to my application with two different entry point. That means i want to enter from activity A as well as activity C. If I give intent filter like:</p> <pre><code>&lt;intent-filter&gt; &lt;actio...
android
[4]
327,953
327,954
need to add pushviewcontroller in view based application
<pre><code> -(void)buttonClicked:(id)sender{ NSLog(@"welcome button"); testWebView = [[[TestWebView alloc]init] autorelease]; [self presentModalViewController:testWebView animated:YES]; [testWebView test]; } </code></pre> <p>i trigger the buttonclicked and there i need to do PushViewController.</p> <...
iphone
[8]
3,426,903
3,426,904
Any way to tell when any button in a layout is UN-pressed
<p>(Android 3.2) I have a TableLayout with 9 buttons. I want to know when any of them are un-pressed, i.e., when a press is complete, i.e., ACTION_UP. I don't care which button, I just want to know when any button which had been pressed has just been released.</p> <p>I was hoping there was an <strong>Android::on...
android
[4]
2,940,997
2,940,998
Howto read updated shared preferences between applications?
<p>I met an issue very similar with the following, but it's different.</p> <p><a href="http://stackoverflow.com/questions/11378975/howto-read-updated-shared-preferences">Howto read updated shared preferences?</a></p> <p>I've two applications, A.apk has quite a few sharedPreferences need to be fetched from B.apk. I ca...
android
[4]
4,009,145
4,009,146
Updating the App Widget from the configuration Activity and getting the result value
<p>In my Weather App Widget, i'm updating Widget from the configuration activity using the place name entered by the user for the first time.After updating the widget, i'm creating a return intent and finishing the activity. I'm giving the code below.</p> <pre><code>Intent resultValue = new Intent(); resultVa...
android
[4]
2,854,057
2,854,058
Aligning textviews on the left and right edges in Android layout
<p>Getting started with Android and having trouble getting a simple layout going. </p> <p>I would like to use a LinearLayout to position two TextViews in a single row. One TextView on the left hand side, the other on the right hand side (analogous to float:left, float:right in CSS).</p> <p>Is that possible or do I ...
android
[4]
4,553,708
4,553,709
dir() a __class__ attribute?
<pre><code>class Foo: pass &gt;&gt;&gt; f = test.Foo() </code></pre> <p>Lets look into the class instance ...</p> <pre><code>&gt;&gt;&gt; dir(f) ['__add__', [__class__] ...] </code></pre> <p>Oooh! Lets look into the class instance metadata ...</p> <pre><code>&gt;&gt;&gt; dir(f.__class__) ['__add__', [__class__] ...
python
[7]
3,270,885
3,270,886
Check if value exists in comma separated string with PHP
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2322505/comma-separated-string-to-array">comma-separated string to array</a> </p> </blockquote> <p>I need to check if my id exists in comma separated string.</p> <p>My string is saved as <code>"1,2,3,4,10"</cod...
php
[2]
2,929,497
2,929,498
C++ Constructor / Class Question: Error - left of must have class/struct/union
<p>I realise what this error means, the thing that is puzzling me is why I get it. I have emulated the error in this tiny program for the sake of this question. Here is the code:</p> <p>source file:</p> <pre><code>#include "RandomGame.h" using namespace std; NumberGame::NumberGame(int i) { upperBound = i; ...
c++
[6]
5,815,173
5,815,174
:last not only remove last element
<p>I'm trying to make my own search name, a facebook-like-search (autocomplete), as in facebook's compose message. My whole script is at <a href="http://jsfiddle.net/6YbrP/4/" rel="nofollow">http://jsfiddle.net/6YbrP/4/</a>.</p> <p>The problem is I'm stucked at this code :</p> <pre><code>.keyup(function(e){ ...
jquery
[5]
4,154,236
4,154,237
When was Java's "System.out.println()" overloaded?
<p>Could it still take, for example, an int and print it successfully?</p>
java
[1]
2,703,045
2,703,046
javascript validation error
<p>here's my code, which says error when i run it through w3.validator.org.</p> <p>for (var i = 0; i &lt; CheckBox.length; i++) </p> <p>error message - character "&lt;" is the first character of a delimiter but occurred as data </p> <p>how do i fix this?</p>
javascript
[3]
2,147,452
2,147,453
Passing items From DataTable to SQL Where Clause c#
<p>I have a single column Datatable, I want to pass this datatable in SQL where clause using sqlparametercollection. Please help. below is my code:</p> <pre><code>public DataTable getCatsByDepts(DataTable _Depts) { SqlConnection conn = new SqlConnection("Server=ax12d;Database=DemoDataAx;Trusted_Connection...
c#
[0]
3,613,649
3,613,650
builtin function for string value
<pre><code>strvalues=@"Emp_Name;Emp_ID;23;24;25;26"; </code></pre> <p>contains values like this taking the above string as an input the output should be like this</p> <pre><code>string strresult=@"23;24;25;26"; </code></pre> <p>is there any built in function to do like this</p> <p>thnaks prince</p>
c#
[0]
4,149,943
4,149,944
how to set range in text field for numeric up and down?
<p>how to set range in text field for numeric up and down?More over the value in the text box can be increase and decrease using up and down key also?</p> <p>i am using textbox with two images(up and down) like (for increment) and (for decrement) here how can i set range 0 to 100 (i am working in struts) </p>
javascript
[3]
5,445,957
5,445,958
Is it OK to initialize a reference member with dynamically allocated memory?
<p>Am I causing a memory leak here or is it OK to do like this? Should I use a smart pointer member instead of a reference?</p> <pre><code>class A { public: A() : b_(*(new B)) {} private: B&amp; b_; }; int main() { A a; return 0; } </code></pre>
c++
[6]
3,056,750
3,056,751
Object Creation in Android Componets
<p>I am trying to make myself clearer in android component instance creation. I believe any activity itself is an instance (correct me if i am wrong) but what would actually call " new " for object/instance creation? how does this whole stuff works in android framework... do we use super() in each component for that ? ...
android
[4]
1,502,813
1,502,814
Java Spam Filter
<p>I'm trying to create a spam filter in Java using the Bayesian algorithm.</p> <p>I use a text file that contains email messages and split the tokens using regex, storing these values into a hashmap.</p> <p>My problem is, with regex, the email addresses are split so instead of: johnsmith@example.com</p> <p>regex ca...
java
[1]
216,960
216,961
Error Installing Android SDK Platform Tools
<p>I have downloaded eclipse, the android SDK starter package, and installed the "Developer Tools." Following the guide on developer.android.com exactly. After the developer tools have installed, and eclipse restarts I get two error messages: </p> <p>1: <code>"SDK Platform Tools component is missing! Please use the...
android
[4]
470,519
470,520
PHP upload - Why isset($_POST['submit']) is always FALSE
<p>I have the following code sample upload3.php:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;PHP Form Upload&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;form method='post' action='upload3.php' enctype='multipart/form-data'&gt; Select a File: &lt;input type='file' name='filename' size='10' /&gt; ...
php
[2]
5,533,404
5,533,405
LinkedList...inheritance...what?
<p>I don't understand what this homework is asking me to do...</p> <p>In our last project, we created a person.java class that made an array of people (or just instances of people)...and it had their ID, their mom, their dad, birthdate, number of children, and an array of their children. It had predictable methods lik...
java
[1]
966,391
966,392
Find the closest object (before and after) to the target object
<p>I want to Implement the two methods given below. <strong>SomeObject</strong> has a field <strong>createdDate</strong> of type Date</p> <pre><code>private SomeObject getNearestObjectBeforeTargetObjectsCreatedDate(List&lt;SomeObject&gt; someObjectList, SomeObject targetObject){ } private SomeObject getNearestObjec...
java
[1]
897,977
897,978
sort() function in C++
<p>I found two forms of sort() in C++:</p> <p>1) sort(begin, end);</p> <p>2) XXX.sort();</p> <p>One can be used directly without an object, and one is working with an object.</p> <p>Is that all? What's the differences between these two sort()? They are from the same library or not? Is the second a method of XXX? </...
c++
[6]
208,461
208,462
is there a native php function to see if one array of values is in another array?
<p>Is there a better method than loop with strpos()?</p> <p>Not i'm looking for partial matches and not an in_array() type method.</p> <p>example needle and haystack and desired return:</p> <pre><code>$needles[0] = 'naan bread'; $needles[1] = 'cheesestrings'; $needles[2] = 'risotto'; $needles[3] = 'cake'; $haystack...
php
[2]
2,609,721
2,609,722
Get style tag content with jQuery?
<p><strong>The problem</strong></p> <p>I'm trying to get the content <strong><em>within the style tags</em></strong> but I can't get it to work.</p> <p><strong>What the code does</strong></p> <p>I use jQuery and try to get the style content with text() and html(). It does not work.</p> <p><strong>My code</strong></...
jquery
[5]
2,383,551
2,383,552
xml parsing from web service image's
<p>I need to parse xml. my xml do have image links.....</p> <p>Example my xml..</p> <pre><code>&lt;root&gt; &lt;child id='1'&gt; child One&lt;/child&gt; &lt;childe2&gt; Child two &lt;/child2&gt; &lt;image&gt;http://website........link.&lt;/image&gt; &lt;image&gt;http://website........link.&lt;/image&gt; &lt;image&gt;...
iphone
[8]
1,624,381
1,624,382
How to subclass UIApplication?
<p>The iPhone Reference Libary - UIApplication says I can subclass UIApplication, but if I try this I will get an exception:</p> <pre><code>*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'There can only be one UIApplication instance.' </code></pre> <p>This reminds me of the ...
iphone
[8]
2,507,188
2,507,189
Protecting a Hyperlink in android
<p>I have an android application in which i have a hyperlink which opens in a browser.Its Right that Hyperlink on visible when any one enter right password otherwise it remain invisible.Problem is that if any one view the hyperlink by entering a correct password in browser then he will never need to again open the andr...
android
[4]
384,864
384,865
Default value of memberfunction in python
<pre><code>class foo(): def __init__(self,a): self.A=a def foo2(self,aa=self.A): return "la" @classmethod def test(cls): d=foo() d.foo2() </code></pre> <p>The memberfunction foo2 cannot find self.A nor A. Is it because A is not globally set inside the class? </p>
python
[7]
1,493,845
1,493,846
Javascript not running from address bar
<p>I have written the following Javascript code : </p> <pre><code>var outerFrame = document.getElementById("myframe"); var outerDoc = outerFrame.contentDocument || outerFrame.contentWindow.document; var innerFrame = outerDoc.getElementsByName("frame").item(0); var innerDoc = innerFrame.contentDocument || i...
javascript
[3]
3,131,677
3,131,678
save values on elements with same property javascript
<p>I have an array of several entries with some of them with same name .All entries have location but one is empty.I want to save the same value of location into all entries of the array for same user. How can I do that?</p> <pre><code> array=[{ user: angelos, user_id: 1212...
javascript
[3]
1,101,962
1,101,963
Detecting whether innerHtml is readonly
<p>I understand that some HTML tags have a readonly innerHtml property in some browsers, e.g. in Internet Explorer,</p> <p>"The innerHTML property is read-only on the col, colGroup, frameSet, html, head, style, table, tBody, tFoot, tHead, title, and tr objects."</p> <p><a href="http://msdn.microsoft.com/en-us/library...
javascript
[3]
1,526,414
1,526,415
How do I pipe the output of file to a variable in Python?
<p>How do I pipe the output of file to a variable in Python?</p> <p>Is it possible? Say to pipe the output of <code>netstat</code> to a variable x in Python?</p>
python
[7]
863,442
863,443
Will I get a copy or assignment with this initialization?
<p>Compare these two initialization methods in C++ for a trivial complex number class.</p> <pre><code>complx one(1,3); complx two = complx(3,4); </code></pre> <p>In the second case, will I get a constructor followed by an assignment, followed by a copy, or just the constructor? </p> <p>Is it possible to distinguish ...
c++
[6]
536,201
536,202
Checking to see if a URL is Google
<p>I want to check a URL to see if it is a Google url or not.</p> <p>I've got this function</p> <pre><code>function isValidURL($url) { return preg_match('|^http(s)?://google.com|i', $url); } </code></pre> <p>If i try</p> <pre><code>if ( isValidURL('http://google.com/') ){ echo 'yes its google url'; } </code...
php
[2]
3,732,210
3,732,211
Open application in last state it was in
<p>when the user clicks on the icon in the app drawer to start my application, my app opens in the state it was last in.</p> <p>I have a broadcast receiver, and when I receive a certain intent I want to have the same effect. </p> <p>At the moment I use </p> <pre><code>Intent launchIntent = mContext.getPackageManager...
android
[4]
5,849,865
5,849,866
Setting opacity to a shape
<p>I have a shape like this:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;shape xmlns:android="http://schemas.android.com/apk/res/android" &gt; &lt;stroke android:width="1dp" android:color="#d5dce5" /&gt; &lt;corners android:radius="5dp" /&gt; &lt;gradient android:angle="270" android:cent...
android
[4]
948,476
948,477
Writing data from different classes to a text file using BufferedWriter
<p>I am working with Java.</p> <p>I have created one text file. In that text file, I want one value to be stored in the text file from class1. Then I want one more value to be stored in the textfile from class2 on the 2nd line. Then I want one more value to be stored in line 3 of the text file from class 3 , etc. The...
java
[1]
4,465,922
4,465,923
Error when remove value of tag <tr>
<pre><code>jQuery('.chk').click(function(){ for(var k=0; k&lt;2; k++) { deleteRow(k); } }); </code></pre> <p>And function deleteRow()</p> <pre><code>function deleteRow(id) { var table = document.getElementById("modem_list"); var rowName = 'row_'+id; if (table.rows.name...
jquery
[5]
3,357,871
3,357,872
jQuery Scrollbar Plugin that shows bar and offers function only if there is an overflow
<p>I am looking for a small jQuery plugin, which shows a scrollbar next to a box with an overflow, something like this:</p> <p><a href="http://baijs.nl/tinyscrollbar/" rel="nofollow">http://baijs.nl/tinyscrollbar/</a> (1st example)</p> <p>The Problem: The scrollbar shall only be shown if there is a real overflow. If ...
jquery
[5]
3,545,164
3,545,165
debug android : connect to sqlite db on phone
<p>I'm building an application with a SQLite db in it. Some data is not erased as it should be, I'd like to run ad hoc queries in the existing db to debug. </p> <p>Is there a way to connect to the SQLite db on the phone (or the emulator) while in debug mode? </p>
android
[4]
4,866,272
4,866,273
How to use LayerManager in Java
<p>I am beginner with Java. I have a question about how to create a map which has multiple layers just like flash (layer 1,layer 2, etc).</p> <p>I don't have any ideas how to create layers in the map. For example, layer 1 is construct with background image, layer 2 is construct with static image icon like road, layer ...
java
[1]
1,597,465
1,597,466
Replace text with on page load
<p>I know how to replace text with <code>getElementById()</code> function in such situation:</p> <pre><code>&lt;script type="text/javascript"&gt; function go(){ var p = document.getElementById('ccc'); p.firstChild.nodeValue = 'AAA'; } &lt;/script&gt; &lt;div id='ccc'&gt;o&lt;/div&gt; &lt;a hr...
javascript
[3]
4,162,742
4,162,743
How do I load instances of a certain class from a java directory?
<p>Here's my method:</p> <p>Feature[] getFeatures(File dir)</p> <p>I'm trying to go through the directory, check each class file. Any class that is of type 'Feature', I want to load an instance of it. Then I want to return an array of these instances.</p> <p>How is this done?</p> <p>Thank you.</p> <p>EDIT:</p> <p...
java
[1]
1,261,683
1,261,684
What is the diferrence between object and Object
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1017282/c-difference-between-system-object-and-object">c#: difference between &ldquo;System.Object&rdquo; and &ldquo;object&rdquo; </a> </p> </blockquote> <p>What is the diferrence between object and Object</p>
c#
[0]
3,660,742
3,660,743
use jquery addclass and removeclass
<p>i am making a lightbox code which requires me to use jquery <code>addClass</code> and i also require to use <code>removeClass</code> but i am not able to do that . my code is </p> <pre><code> var d = this.buttons; if (c("body").find("#lightbox-buttons").length &lt; 1) { this.list = c(a.temp...
jquery
[5]
402,518
402,519
Pros and cons of hosted scripts
<p>I have seen some developers use hosted scripts to link their libraries.</p> <p><code>cdn.jquerytools.org</code> is one example.</p> <p>I have also seen people complain that a hosted script link has been hijacked.</p> <p>How safe is using hosted scripts in reality? Are the scripts automatically updated? For examp...
jquery
[5]
497,031
497,032
Java JDBC Query with variables?
<pre><code>String poster = "user"; Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT * FROM `prices` WHERE `poster`="+poster); </code></pre> <p>This does not work.Any tips or tricks would be appreciated. </p>
java
[1]
4,840,407
4,840,408
list of lists creation
<p>in my python code i want to create a list of lists...in a loop ... but after completion of the loop i end up with the same list in all elements...is it because the lists are pointed to and not stored ? If so, how can i come up with a solution to my problem ? Following is my code</p> <pre><code> list_lists=list()...
python
[7]
3,771,706
3,771,707
No simulator option while running the code
<p>I am not able to see Simulator option in my XCODE for one of my project (Only device is there) but it is coming for other one. What setting I need to do?</p>
iphone
[8]
2,978,119
2,978,120
JavaScript function doesn't return correct value
<p>I'm developing a function in which I'd like to check which useragent is currently being used.<br> The following code is just a prototype and it returns whatever value it reads first - in this case <code>IE</code>.</p> <pre><code>detectDevice = function () { var userAgent = { detect: function () { ...
javascript
[3]
9,394
9,395
Inheritance, any suggestions how I should improve this program?
<pre><code>public class Person{ private String name; private String surname; private int age; private String address; Person(String n, String s, int a, String i){ name = n; surname = s; age = a; address = i; this.name = name; this.surname= surname; this.age = age; this.address = address; ...
java
[1]
2,800,155
2,800,156
PHP how to explode string into groups of 6 letters in array
<pre><code>$string = 'billiejeanisnotmylover'; $array = some_function($string,6); $array[0] = 'billie' $array[1] = 'jeanis' $array[2] = 'notmyl' $array[3] = 'over' </code></pre> <p>do you have an idea what some_function would be?</p>
php
[2]
3,797,752
3,797,753
ASP.NET dynamic user interface OR form designer
<p>I need to create an application that allows users to design forms for various purposes. basically users should be able to design a form just like developers can do it in design mode using Visual studio (drag and drop controls and add data). for example users should be able to create a set of questions for a survey a...
asp.net
[9]
4,396,417
4,396,418
Remove the static int from this MatchEvaluator
<p>I'm trying to convert a proprietary string mask to the .net equivalent of it. For that I need to exchange every occurance of [someText] with {aDigit}.</p> <pre><code>private static int hits = 0; private static object hitsLock = new object(); public static string ConvertSdsFileMaskToStringMask(string sdsFileMaskStr...
c#
[0]
4,231,268
4,231,269
stop to go on onPostExecute() if parsing exception onpreexecute() occurs
<p>am using asynchronous task for hitting the web service url and retrieve the result from server but some time in onPreExecute() method if parsing exception occurs i handle it on catch() method,now i want to Halt the processing next means execution not go to OnpostExecute() method ,so how to stop execution process for...
android
[4]
5,701,653
5,701,654
What does "@Override" and "<? extends Page>" mean?
<pre><code>@Override public Class&lt; ? extends Page&gt; getHomePage() { return HomePage.class; } public Class&lt;HomePage&gt; getHomePage(){ return HomePage.class; } </code></pre> <p>The first one has an annotation Override. What does that mean or what does it send to the framework.</p> ...
java
[1]
3,042,120
3,042,121
How to set button object to an image
<p>I need to customize the look and feel of my android application. I need a PNG file I created to show in place of the button view's default appearance. How can I make this happen?</p>
android
[4]
4,936,401
4,936,402
Python - How to transform counts in to m/s using the obspy module
<p>I have a miniseed file with a singlechannel trace and I assume the data is in counts (how can i check the units of the trace?). I need to transform this in to m/s. I already checked the obspy tutorial and my main problem is that i dont know how to access the poles and zeros and amplification factor from the miniseed...
python
[7]
1,753,150
1,753,151
Class construct causes the same code to be executed multiple times
<p>let me introduce you first to the issue that I am experiencing. I've recently started working on my own MVC framework. I want some additional experience and to understand how exactly framework's like CodeIgniter work.</p> <p>Anyway, everything was going great until I added a construct to my controller. The request ...
php
[2]
1,311,122
1,311,123
Is it possible to block or filter websites on an android programmatically?
<p>I want to block certain website in my app is it possible in android ?</p> <p>thanks in advance</p>
android
[4]
4,145,310
4,145,311
Why doesn't Class have a nice generic type in this case?
<p>In this code, why can type not be declared as <code>Class&lt;? extends B&gt;</code>?</p> <pre><code>public class Foo&lt;B&gt; { public void doSomething(B argument) { Class&lt;? extends Object&gt; type = argument.getClass(); } } </code></pre>
java
[1]
4,766,016
4,766,017
Image not shown in tree view , C#
<p>So in my project i would like have a nice treeview that has images. but when i run the program the image was not shown. Any idea? here is my code:</p> <pre><code> while (thisreader.Read()) // i read from the database. { TreeNode tn = new TreeNode(); tn.Text = thisreader["channel_name"...
c#
[0]
1,064,493
1,064,494
Don't understand this python For loop
<p>I'm still a python newb, but I'm working through the <a href="http://pyneurgen.sourceforge.net/tutorial_nn.html" rel="nofollow">Pyneurgen neural network tutorial</a>, and I don't fully understand how the for loop used to create the input data works in this instance:</p> <pre><code>for position, target in population...
python
[7]
859,509
859,510
How can I convert from numbers to characters?
<p>I have an array of numbers in C#. The numbers range from one to ten. I would like to just show letters for example a letter "b" instead of the number 2. </p> <p>Is there an easy way for me to do this. </p> <p>Hope there is. </p> <p>Maria</p>
c#
[0]
1,432,452
1,432,453
Get the index of an array by position
<p>I want to get the index of an array by position. Is this possible? For example, I want the following function to print:</p> <pre><code>var args = new Array(); args["name"] = "john"; args["surname"] = "smith"; printPerson(args); function printPerson(args) { for(var i = 0; i &lt; args.count; i++) { ??? ...
javascript
[3]
5,571,603
5,571,604
how to automatically rename object in java
<p>I have list of String. <code>List&lt;String&gt; elements= new ArrayList&lt;String&gt;();</code> when I wanna add new String </p> <p>elements.add("element");</p> <p>with name which is my arraylist I wanna to automatically rename to _[a-z...] as windows rename file when there are two same... so for example I have ...
java
[1]