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,430,403
4,430,404
Auto-centring Block UI dynamically on a number of multiple resolutions
<p>I'm trying to centre Block UI (http://www.malsup.com/jquery/block/) automatically in the dead centre (vertically and horizontally) on a number of multiple resolutions (from 800x600 to 1280x1024) but with no luck. </p> <p>I've so far tinkered with this: </p> <pre><code>css: { padding: 0, ...
jquery
[5]
2,603,417
2,603,418
HttpUrlConnection behaving different in Android 2.3 Gingerbread
<p>I'm stumped here. I've been using the same HttpUrlConnection code to retrieve JSON from my server since Android 1.5. Suddenly, with 2.3 it won't work and I can't understand why.</p> <p>Here's my code:</p> <pre><code> try { HttpURLConnection conn = (HttpURLConnection)(new U...
android
[4]
863,735
863,736
Cookies seen by everyone
<p>Ok, so I want to store some user options in $_COOKIES after form submit. My code is this: <code></p> <pre><code> $reason=array_values(array_filter($_POST['reasontext'])); $str=implode('|',$reason); if(!isset($_COOKIE['reason'])){ setcookie('reason',$str,time()+86400*30*12); }elseif(isset($_...
php
[2]
570,012
570,013
Python - Google App Engine
<p>I'm just starting learning google app engine.</p> <p>When I enter the following code below, all I got is "Hello world!" I think the desired result is "Hello, webapp World!"</p> <p>What am I missing? I even try copying the google framework folder to live in the same folder as my app.</p> <p>Thanks.</p> <pre><code...
python
[7]
4,407,009
4,407,010
reference type variable initialisation and storage
<p>Is this legal?</p> <pre><code>int&amp; foo = 0x00000000; </code></pre> <p>I don't know if 'int' is the right data type. If you wanted to store an address what data type would you use? Or do you have to use a pointer?</p> <p>in addition to this, is this legal?</p> <pre><code>int foo = 5; int bar = &amp;foo; </cod...
c++
[6]
4,901,348
4,901,349
Transformer in apache collection15
<p>What is the use of the Transformer function in the apache commons collection ?</p> <p>How do I use it in programs and at what times?</p>
java
[1]
3,831,512
3,831,513
whether I should go for a service or handlers? in android
<p>I am creating a app that would fetch data from a website every 2 minutes ..</p> <p>I need to know whether I can go for a service ?</p> <p>I tried using handlers and threads but it stops after 3 or 4 hrs I already tried using Async task but it's not working out..</p>
android
[4]
2,019,118
2,019,119
Service:which book to refer?
<p>I am learning android service. I was referring to oreillys android development book. It does not have meterial on android service.</p> <p>Can suggest a book or chapter to understand android service and a good example of service code.</p> <p>I know see blogs and google. But I want to reference a book on this topic ...
android
[4]
1,443,996
1,443,997
Getting the weekday for a certain day in the next 6 months
<p>Is it possible to get the weekday of the 21st of the next 6 months in PHP?</p> <p>For example, say the 21st falls on a Tuesday next month, then I want "Tuesday" to be returned. But I want this for each of the next 6 months. What is the most elegant solution to this?</p>
php
[2]
4,386,760
4,386,761
Adding click event to empy span block
<p>I have some html form</p> <pre><code>&lt;div id="1"&gt; &lt;div&gt; &lt;span class="checkbox" style="background-position: 0pt -34px;"&gt;&lt;/span&gt; &lt;input type="checkbox" value="Adelaide" class="styled" name="sidecity" id="sidecity-control-name-0"&gt; &lt;label for="sidecity-control-name-0"&gt...
jquery
[5]
589,515
589,516
Tower of hanoi problem
<p>Hi Guys I am faced with a problem on tower of hanoi:<br> we are given a stack of cylinders of alternate colors stacked over one another alternately.<br>The job is to separate the two stacks of same colour<br> I could write the code(algorithm) for a regular tower of hanoi using recursion, but I am not able to figure ...
c++
[6]
3,421,664
3,421,665
Large bitmap for background giving OOM error
<p>I have a bitmap that I'm loading into the surfaceView that is around 75kb (give or take) </p> <p>The code I'm using to call it or decode it is </p> <pre><code>bmLargeImage = BitmapFactory.decodeResource(getResources(),R.drawable.campplan); </code></pre> <p>nothing fancy really. The size of the image is 1000x500 p...
android
[4]
850,135
850,136
Web Scraper Not Producing Results Using Python
<p>I am a young grasshopper in need of your help. I've done a lot of research and can't seem to find the solution. I written the following code below. When ran it doesn't pull any of the titles. I believe my regular expressions are correct. Not sure what the problem is. Probably obvious to a seasoned sensei. Than...
python
[7]
2,847,231
2,847,232
Are there any standard android attribute which specifies color of text to be white
<p>Can you please tell me if there is any standard android textColor which specifies the color of the text to be white? </p> <p>I have tried either textColorPrimary or textColorSecondary, but both are black.</p> <pre><code>&lt;Button android:textColor="?android:attr/textColorPrimary /&gt; </code></pre>
android
[4]
5,078,277
5,078,278
How to save the image into sqlite database?
<p>iam developing one application.In that i plce the images in 3 views.And first 2 views are worked well.But in third view images are not saved in database.Below one is my code for updating the images.</p> <pre><code>-(void)updateStaff:(DataBaseFields*)databasefields { if(stfupdateStmt == nil) { const char *sql = ...
iphone
[8]
1,840,282
1,840,283
Addressing first/last item in an ul, li
<p>How do you check whether a DOM element being clicked is either the 'first' li element or the 'last' li element in an unordered list item??</p>
jquery
[5]
659,639
659,640
Selecting and deselecting radio buttons
<p>I am developing a quiz application which consists of a question and three options and I am using radio buttons for these options.My query is,I click on one of the options and whenever i want to click another option, the previous option remains in the checked state and it does the same whenever I click on the third o...
android
[4]
4,152,780
4,152,781
is there any way to know extends screen in javascript
<p>is there any way to know extends screen in javascript?</p> <p>by <code>screen.availWidth</code> and <code>screen.availHeight</code> you can only know the width and height just for the main screen </p>
javascript
[3]
4,479,118
4,479,119
Cannot push a file to virtual android device for testing
<p>I am trying to push an mp3 file using the DDMS to the android device but I get the following error</p> <pre><code>[2013-02-20 00:09:04 - ddms] transfer error: Read-only file system [2013-02-20 00:09:04] Failed to push selection: Read-only file system </code></pre> <p>how can I push the file to the device so that i...
android
[4]
1,010,816
1,010,817
What is the best jdbc connection pooling tool?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/520585/connection-pooling-options-with-jdbc-dbcp-vs-c3p0">Connection pooling options with JDBC: DBCP vs C3P0</a> </p> </blockquote> <p>I need to use best jdbc connection pooling in my application. Please suggest...
java
[1]
130,303
130,304
fopen error, null property
<p>I am trying to write to a file from javacript in an aspx page and i get an error. Here is my code and the error.</p> <pre><code> var fh = fopen("c:\temp\MyFile.txt", 3); // Open the file for writing if (fh != -1) // If the file has been successfully opened { fwri...
javascript
[3]
228,554
228,555
Is there any API for LinkedIn and Plaxo like facebook API?
<p>I need to access linkedin and plaxo social networks in my application. If I need to use this, I would lke to have the API for access linkedin and plaxo like Facebook API.</p> <p>Is there any API for linkedIn and Plaxo?</p> <p>Thanks R.Eswaran.</p>
asp.net
[9]
4,433,344
4,433,345
Add a MenuItem to Other applications Option/Action menu (Android)
<p>Is it possible to add a new Menu Item to other application's Option/Action menu?</p> <p>For example: In phone's contacts menu, I want to add a new menu item "Share on Orkut (example)".</p> <p>Is it possible in Android?</p> <p>Thanks Souvik</p>
android
[4]
5,008,024
5,008,025
Javascript modal box to show a form through php
<p>I want to add a modal window (created with css and javascript) to pop-up a form when a user clicks "add quote" button on one of my php script. I have created a form in q1.html file, with required div settings. There is a modal.css file to hide/unhide form. There is modal.js file to make the modal box out of this htm...
javascript
[3]
2,750,002
2,750,003
c# report problem
<pre><code>protected void Page_Load(object sender, EventArgs e) { //--Sql string string strId1; strId1=Request["empid"].ToString(); string strId2; strId2 = Request["empid1"].ToString(); String strCmd = ""; strCmd += "Select YKCODE,NAME,RNAME,TICODE,MADKBN,MKCODE,TANKBN,YOUKBN,KOUCODE "; ...
c#
[0]
2,328,201
2,328,202
Determine which element comes first in the HTML/DOM?
<p>I need to determine which element comes first in my markup, such as an <code>input</code> or <code>select</code>. For example</p> <pre><code>&lt;body&gt; &lt;input type="text" /&gt; &lt;select&gt;&lt;option&gt;Test&lt;/option&gt;&lt;/select&gt; &lt;body&gt; </code></pre> <p>In this case, the <code>input</c...
jquery
[5]
4,075,349
4,075,350
OOP, Constructor not working
<p>I am trying to call constructor but it is not working. Code is something like this:</p> <h1>// Event.h</h1> <pre><code>class Event { private: int Time; int Date; public: Event(); Event(int t, int d) } </code></pre> <h1>// Event.cpp</h1> <pre><code>Event::Event(){} Event::Event(int time, int...
c++
[6]
1,777,985
1,777,986
Custom authentication module inheriting IHttpModule issue
<p>LoginPage.aspx:-</p> <pre><code>protected void Button1_Click(object sender, EventArgs e) { Context.Items["Username"] = txtUserId.Text; Context.Items["Password"] = txtPassword.Text; // FormsAuthenticationTicket ticket = new FormsAuthenticati...
asp.net
[9]
2,795,431
2,795,432
How to implement slideToggle functionality after load an external page with load()
<p>I want to implement slideToggle functionality after load an external page inside a DIV using load(). The idea is I have three different tabs each upon click will load three different content from three external pages inside that mentioned DIV. When I will click one tab it will load the one external page after that i...
jquery
[5]
610,980
610,981
Need java test cases to test MarkSweep Garbage collector
<p>Can anyone provide me test cases in java in which objects are being incrementally created so that i can use those to test my MarkSweep garbage collection code.</p>
java
[1]
4,502,562
4,502,563
jQuery .eq() only works on first element in table
<p>This only works on the 4th element in the first row of a 200 row table.</p> <pre><code>$('.CSSTableGenerator tr td').eq(4) </code></pre> <p><strong>How do I get it to work for every 4th "td" in a table row?</strong></p>
jquery
[5]
936,645
936,646
Different height for alternative cell in UITableView
<p>How to make a alternate cell with a different height?</p> <p>I need height for cell1 is 60 and cell2 is 30....</p> <p>how can i do this?</p> <p>Thanks in advance.</p>
iphone
[8]
2,936,280
2,936,281
Problem in converting a generic list<string> or string[] array to datatable
<p>I have the below function</p> <pre><code>public static DataTable ToTable&lt;T&gt;(this IEnumerable&lt;T&gt; listItem) { //Return null if the list is empty if (listItem == null || listItem.Count() == 0) return null; //Gets the type of the object var listType = listIte...
c#
[0]
4,886,714
4,886,715
How do I simulate a mouse click event in JQUery
<p>I apologize in advance, I am a designer primarily, but am trying to do some animation w/out Flash. I basically need a logo to load then shake then stop. I need it to happen on load (the shaking is a client request...). </p> <p>Right now, this works when you click it, but I need it to run automatically.</p> <p>Here...
jquery
[5]
3,531,757
3,531,758
Android - Is it possible to use ui api in the other class and thread expect Activity?
<p>I have some questions about android ui api.</p> <p>Give a example, that I want to implement.</p> <p>Main_UI_Thread.java :</p> <pre><code>public class Main_UI_Thread extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout....
android
[4]
3,036,482
3,036,483
PHP Function to shorten string to exactly 3 characters
<p>The fact that I don't know how to do this is a good example of how elementary my PHP skills are.</p> <p>How can I shorten a string <code>$fr_month</code> to 3 characters as a function"<code>short_fr_month()</code>"?</p>
php
[2]
4,377,375
4,377,376
Load image from folder in solution?
<p>I'm trying to load an image from a folder in the solution, but I only get a error message that it's not found. What have I done wrong? The code below is in the MainForm.cs that is at the same level as the Resource folder. Help is preciated! Thanks!</p> <pre><code> // Images Image imageCircle = Image.FromFile("Reso...
c#
[0]
5,213,636
5,213,637
Getting User signature
<p>Him what would be the best way to provide a view where a user can provide their signature, i.e a drawing platform?</p> <p>Well, how would it be implemented in a view using OpenGL ES?</p>
iphone
[8]
1,834,858
1,834,859
Unknown error perhaps caused by naming conflict?
<p>I wrote a very simple c++ code, where I defined a function called sqrt which just calls std::sqrt. Unexpectedly, I got a segmentation fault. The problem doesn't exist if I rename the function sqrt as something else. However, I can not see any naming conflict since the sqrt function I defined is not in the namespace ...
c++
[6]
2,685,332
2,685,333
jQuery image rotator
<p>I'm trying to make this simple image rotator but, as usual, my code doesn't work. I want to swap between 2 images ("image1" and "image2")</p> <pre><code>$x = 0; function rotateImage(){ if($x == 0){ //if function is being called for the first time $x = 1; } $(".window").html("&lt;img src=\"../im...
jquery
[5]
5,885,281
5,885,282
Use jQuery getScript to load a script that loads another script
<p>I have the following jQuery function:</p> <pre><code>&lt;script&gt; $(document).ready(function(){ $.getScript("http://my.cdn.ext/adsense.js"); }); &lt;/script&gt; </code></pre> <p>Inside adsense.js, there is:</p> <pre><code>&lt;script type="text/javascript"&gt;&lt;!-- google_ad_client = "pub-xxxxxxxxxxxxx"; googl...
jquery
[5]
4,711,246
4,711,247
Capture the previous value when onkeydown is executed
<p>Need help in event handling. In my scenario, I have a textbox with default value 35 and cursor is set to before the 3. There is a event for this text box which is onkeydown. When I press 4, IE and Safari captures the previous value of the text which is 35. But Mozilla and Chrome captures the new value which is 435.<...
javascript
[3]
5,533,824
5,533,825
jQuery - Click Event is not Working as a Blur Event fires And Changes Dom Heights
<p>Please take a look at the fiddle: <a href="http://jsfiddle.net/Fyc5d/" rel="nofollow">http://jsfiddle.net/Fyc5d/</a></p> <p>Click a gray box, and you'll see the textarea box open. Now click another. Click going up and then click going down the boxes.</p> <p>You'll notice it works fine going up from the last gray b...
jquery
[5]
2,683,768
2,683,769
How to run JQuery in a JavaScript function
<p>I am trying to make a dynamic function but i am having trouble because i cant seem to run my JQuery code inside of a JS function. I have a working example <a href="http://jsfiddle.net/UpEvK/1/" rel="nofollow">here</a>. </p> <p>I have a second example <a href="http://jsfiddle.net/UpEvK/" rel="nofollow">here</a>. the...
jquery
[5]
2,744,433
2,744,434
How to disable screen timeout on NativeActivity
<p>I am developing app on NativeActivity(only C/C++).<br> I want to disable screen timeout.<br></p> <p>Do you know how to do it?</p>
android
[4]
934,766
934,767
SQL stored procedure parameters when calling from code
<p>Does the order of parameters being passed to a stored procedure matter from the C# function?</p> <p>Thank you</p>
c#
[0]
720,169
720,170
Android Intent usage (Call_action & new_task_launch)
<p>I have faced the following error while running my application. The code of my app is</p> <pre><code>public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); final Button callButton = (Button) findViewById(R.id. callButton); callButton.setOnClickListener(new Button...
android
[4]
3,089,995
3,089,996
Looking for a standard Java method (or, UDF if necessary) to check if one hashset is a subset of another
<p>It should return true if one HashSet A is a subset of another HashSet B, false otherwise. </p>
java
[1]
357,784
357,785
How to display a certain portion of a site depending on a javascript variable?
<p>Suppose I have a javascript variable "is_valid"</p> <p>If the variable is 1, I'd like to display:</p> <pre><code>&lt;div&gt;It's valid!&lt;/div&gt; ...and a big chunk of other code </code></pre> <p>Otherwise...</p> <pre><code>&lt;div&gt;NOT valid&lt;/div&gt;...and a big chunk of other code </code></pre> <p>I do...
javascript
[3]
5,052,798
5,052,799
How to take a file as argument?
<p>I realize that was not a very descriptive question, but I wasn't sure how else to state it..</p> <p>I wrote an interpreter, Tiny_Int.java, for a made up language called "tiny". All I need to know is how to run the interpreter with a specified tiny file like so: </p> <pre><code>java Tiny_Int &lt;Sample.tiny </code>...
java
[1]
934,188
934,189
How to change namespace name in an asp.net webform
<p>How to change the namespace name in an asp.net webform For example in my project i have created 3 folders Master,Transaction,Reports in Master folder there are 10 forms by default th namespace comes ProjectName.Master,but when i manually change the name by adding my formname it doesn't work eg:-ProjectName.Master.Ma...
asp.net
[9]
4,905,523
4,905,524
Implementation of BeginUpdate and EndUpdate
<p>1) I'm working on a project and I saw this piece of code, I don't understand what is the point of the Monitor.Lock statement. Can someone explain what its trying to do?</p> <p>2) the postscript underscroll in the parameter name is really annoying, anyone else seen this naming convention?</p> <pre><code>public clas...
c#
[0]
4,760,420
4,760,421
scandir fail to open directory
<p>I am having trouble with <code>scandir()</code>. I am trying to display the files in my <code>snaps</code>-directory on a page under the subdomain in my cloud.</p> <p>This is the PHP I used.</p> <pre><code>$files = scandir('./snaps'); print_r($files); </code></pre> <p>and this is the error.</p> <pre><code>Warnin...
php
[2]
4,141,829
4,141,830
Find labels of multiple select boxes with jQuery
<p>I have <a href="http://jsfiddle.net/XWr4W/1/" rel="nofollow">this script</a></p> <p>I want to reach this html:</p> <pre><code>City Paris Bern Sex Male Female </code></pre> <p>But with my script, labels replace each other on change. How can I get above html? Thanks in advance</p> <p>Script:</p> <pre><code>$(...
jquery
[5]
1,952,200
1,952,201
PropertyPlaceholderConfigurer: can i have a dynamic location value
<p>right now i have this in my xml file:</p> <pre><code> &lt;bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"&gt; &lt;property name="driverClassName" value="com.mysql.jdbc.Driver" /&gt; &lt;property name="url" value="jdbc:mysql://localhost:3306/dashboardsuper...
java
[1]
3,060,777
3,060,778
illegal character in path
<p>I am trying to get to a file located in </p> <pre><code>C:\Program Files (x86)\test software\myapp\demo.exe </code></pre> <p>In VS debugger i see the path as:</p> <pre><code>"\"C:\\\Program Files (x86)\\\test software\\\myapp\\\demo.exe\"" </code></pre> <p>when i print it out i see in console :</p> <pre><code>"...
c#
[0]
995,640
995,641
How to create/set remainder in Android application?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/5976098/how-to-set-reminder-in-android">How to set reminder in android?</a> </p> </blockquote> <p>I want to make application which is create remainder. But I dont know hoe to set/create remainder? I want to know...
android
[4]
2,254,975
2,254,976
Method prints table incorrectly
<p>I was wondering if someone could help me with a small problem I'm having.</p> <p>I am trying to print out an array of 100 items, every row needs 10 items, after which it starts a new row. I have done this successfully, however, every row in every column displays the same number. For example. My output would be:</p>...
java
[1]
1,685,945
1,685,946
Library for Image Filters In Android
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4280162/android-image-filter-libraries">Android image filter libraries</a> </p> </blockquote> <p>Can Anyone provide me the library file to filter image in Android like Black &amp; White, Sepia,vintage, polaroid ...
android
[4]
681,404
681,405
Eventlet and locking
<p>Since Eventlet uses green threading and asynchronous I/O, do I still need to set locks before accessing objects? My understanding is that greenlets are all part of one thread and locking isn't necessary. Can anyone confirm or deny this?</p>
python
[7]
2,851,395
2,851,396
Using a string to reference an object name
<p>I'm trying to replicate a "feature" of PHP (And in most languages) in Javascript.</p> <p>Here it is in PHP:</p> <pre><code>$objectName = 'ObjectA'; $someObject-&gt;$objectName-&gt;someMethod(); </code></pre> <p>Basically using a string variable to reference an object variable.</p> <p>So in Javascript, I was hop...
javascript
[3]
3,363,890
3,363,891
Array's lastIndexOf returns -1 when start is undefined
<p>in javascript,Array instance has two methods,</p> <pre><code>[].indexOf(searchvalue [,start]) </code></pre> <p>and</p> <pre><code>[].lastIndexOf(searchvalue [,start]) </code></pre> <p>is behaves strange if the "start" param is undefined:</p> <pre><code>[1,2,3].lastIndexOf(2) // 1 [1,2,3].lastIndexOf(2,undefined...
javascript
[3]
2,392,039
2,392,040
Palindrome check JAVASCRIPT
<p>i have the following:</p> <pre><code>function checkPalindrom(palindrom) { for( var i = palindrom.length; i &gt; 0; i-- ) { if( palindrom[i] = palindrom.charAt(palindrom.length)-1 ) { document.write('the word is palindrome.'); }else{ document.write('the word i...
javascript
[3]
4,969,661
4,969,662
Attempt to include a core class (java.* or javax.*) in something other than a core library
<p>Hi i'm new android. i'm working through the samples and have an error when running the HelloGridView app. Eclipse is giving the following error. Has anyone had the following error? Thanks.</p> <p>[2010-12-06 14:38:16 - HelloGridView] trouble processing "javax/net/ServerSocketFactory.class": [2010-12-06 14:38:16 - ...
android
[4]
1,597,922
1,597,923
Runtime.exec() gives Error: Could not find or load main class
<p>'Street.class' in my Eclipse project is under \bin in package trafficcircle. The error below is from stderror of the created process; I thought Runtime.exec would complain first if it wasn't found...what's up with this?</p> <p>Code that runs 'Street' process:</p> <pre><code> Process process = runtime.exec("java...
java
[1]
2,936,179
2,936,180
create a transparent image programmatically in android
<p>i am getting an image from web server (<strong>which has transparent background</strong>).now i need to save this image on my sdcard and show it to user.but when i save the image to sdcard.. it saves with a black background..i need this image with background..</p> <p>i hv tried following methods to save the image -...
android
[4]
4,889,655
4,889,656
JSure Javascript Static Analysis Tool
<p>Does JSure, a Javascript Static Analysis Tool, run on Windows ?</p>
javascript
[3]
4,517,251
4,517,252
On every visit, new session (please)?
<p>Im on a website, I close all windows and I go back again, and of course Im logged in.</p> <p>What I need is for website to do otherwise. When I go back not to be logged in - to create a new session on every visit shortly and to hold it all the time (no timeout).</p> <p>Is there a logical explanation on what things...
php
[2]
144,454
144,455
why use virtual destructor in inheritance
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/461203/when-to-use-virtual-destructors">When to use virtual destructors?</a> </p> </blockquote> <p>let's say i have an abstract class Animal</p> <pre><code>class Animal { public: Animal(const std::string &a...
c++
[6]
2,427,288
2,427,289
Order vs. Associativity
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2129230/cout-order-of-call-to-functions-it-prints">cout &lt;&lt; order of call to functions it prints?</a> </p> </blockquote> <p>What is the difference between order and associativity when evaluating a compound ...
c++
[6]
1,557,738
1,557,739
Try/Catch exception continue from line that caused the exception
<p>When an exception is thrown, how can I catch it and then continue execution starting from the line that caused the error?</p> <p>EDIT: Our program communicates with Indesign Server which crashes all the time and throws random COM related errors (these errors have to do with bugs in the Server itself). Indesign Serv...
c#
[0]
1,753,114
1,753,115
Firing the mouseleave event only when the mouse moves in a vertical direction
<p>I have a ul which functions as the main navigation. I have one li inside that ul which, when hovered on, slides down a hidden div with a bunch of information. This div appears right below the main nav. I would like to have the div hide itself if the user moves their mouse vertically, outside the main nav. I need it ...
jquery
[5]
5,021,564
5,021,565
Moving files from source folder to an archive folder which dont match with entered ids
<p>for my project perpose, I want to move files from folder structure to an archive folder based on the files whose names are <strong>not matching</strong> with the "filename" column values of a table.</p> <p>Means i need to find all file names which are not present in the database then move these files into another ...
c#
[0]
3,023,016
3,023,017
How "focus" , "make active" , "insert cursor" into textarea at end
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4715762/javascript-move-caret-to-last-character">Javascript: Move caret to last character</a> </p> </blockquote> <p>Welcome,</p> <p>I have some link's inside my webpage.</p> <p>Is there any function in jquery ...
jquery
[5]
2,176,479
2,176,480
Convert List Type to IEnumerable Interface Type
<p>I have a </p> <pre><code>List&lt;Person&gt; personlist; </code></pre> <p>How can I convert to </p> <pre><code>IEnumerable&lt;IPerson&gt; iPersonList </code></pre> <p>Person Implements IPerson interface</p>
c#
[0]
5,139,956
5,139,957
Making a c++ based program to show a web page on windows
<p>Every single windows computer has ie installed by default so i want to make a program that uses ie to show a web page! I want the program to be just a simple window without adressbar! Also i want to add a close , maximize and minimize buttons to the program. Also i want to add icon for the program to! Any idea how c...
c++
[6]
3,556,322
3,556,323
error using function from another class
<p>I have a Class called CustomTemplateField which contains a function called GetDdlListItems In another page's code behind I am trying to call that function to populate a dropdownlist using the syntax CustomTemplateField.GetDdlListItems("paramater"). I am getting a "Cannot resolve symbol" error. It is a Public Shared ...
asp.net
[9]
3,942,863
3,942,864
How to transparently track line numbers from a character stream in C#?
<p>I'd like to seek to an arbitrary point in a character stream and then get the corresponding line number. In Java, this can be handled transparently with the java.io.LineNumberReader.getLineNumber() method. </p> <p>What's the best way to go about this in C#?</p>
c#
[0]
5,943,669
5,943,670
Getting notified when virtual keyboard shown / dismissed for an EditText?
<p>I'd like to get notified when the virtual keyboard is shown / dismissed. This does not seem to be possible, other than by using some layout resizing listener tricks:</p> <p><a href="http://stackoverflow.com/questions/2150078/android-is-software-keyboard-shown">Android: Is software keyboard shown?</a></p> <p>My act...
android
[4]
5,833,763
5,833,764
Big picture of Java SE 6.0
<p>I am learning Java SE 6.0. Is there a big picture or chart to illustrate all the classes of Java 6.0 and the relation between them? Thanks in advance.</p> <hr> <p>Dear developers and programmers of stackoverflow.</p> <p>Hello. Thanks a lot for your excellent answers to Panguea, Zengr, Bemace, Thorbjørn, Duffymo,...
java
[1]
3,354,548
3,354,549
How does this "days in month" function work?
<pre><code> function GetDaysInMonth(month, year) { return 32 - new Date(year, month, 32).getDate(); } </code></pre> <p>Ok, I don't see what this is doing specifically, this part:</p> <pre><code> new Date(year, month, 32).getDate(); </code></pre> <p>I know what <code>getDate()</code> does, but then I look...
javascript
[3]
1,397,551
1,397,552
Use byte[] as key in Dictionary
<p>I need to use a <code>byte[]</code> as a key in a <code>Dictionary</code>. Since <code>byte[]</code> doesn't override the default <code>GetHashCode</code> method, two separate <code>byte[]</code> objects that contain the same data will use two separate slots in the dictionary. Basically what I want is this:</p> <...
c#
[0]
1,392,162
1,392,163
Identify android intent type, from another method/class?
<p>I create an Intent in one class then it's returned to another class. I need to check the type of intent it is. I need to ensure it's not a specific class of intent.</p> <p>How to do this?</p> <pre><code>if( newIntent == ActivityName.class ) </code></pre> <p>Edit: So I would need to know if the new intent would ...
android
[4]
4,424,602
4,424,603
While condition not getting terminated
<pre><code>if(childrens are present) { while(childrens.length ! ==0) { do something } } // Execute this function fnName() </code></pre> <p>My problem here is the while condition is getting executed, but when the length becomes zero... it does not come out... and execute the fnName()</p>
javascript
[3]
3,353,078
3,353,079
how can i display images using grid
<p>How to display images in a grid in asp.net .These images are stored in a folder in project directory(Images).I want to show these images in grid and show images description from database .Description should show just under the image.please help</p>
asp.net
[9]
5,021,866
5,021,867
ASP.NET :What advantage if i use using when creating an object
<p>in ASP.NET, I have seen people coding like this</p> <pre><code>using (SqlConnection myConnection = new SqlConnection(AppConfiguration.ConnectionString)) { // Do the datatbase transactions } </code></pre> <p>How does it differ from this one</p> <pre><code> SqlConnection myConnection = new SqlConnection(AppCon...
asp.net
[9]
3,029,204
3,029,205
How to read variables comma separated varibals from a text file into a javascript array?
<p>I want to read text file's comma separated variables in a java script array right now i have hard coded values like this</p> <pre><code>var arrUserTags = new Array('{{Name}}','{{Address}}','{{Company}}'); </code></pre> <p>but i want to read it from a text file dynamically on page load how can i read it?</p> <hr> ...
javascript
[3]
821,420
821,421
What is the fastest way to convert a string into an array of 1 item
<p>Let's say I would like something like this:</p> <pre><code>string s = "hello"; string[] array = s.ToStringArray() </code></pre> <p>and <code>array[0]</code> (the only element) holds the value >> "hello"</p>
c#
[0]
1,616,747
1,616,748
VTABLE for abstract classes C++
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2592438/does-an-abstact-classes-have-a-vtable">Does an abstact classes have a VTABLE?</a> </p> </blockquote> <p>Does a vtable gets created for an abstract class that have pure virtual functions and virtual funct...
c++
[6]
3,645,969
3,645,970
Please tell what approach should be used for desktop application
<p>I am planing to develop desktop application that will have multiple logins and according to that login type options/From view will be displayed.</p> <p>I have done database login part now its turn of view</p> <p>How can i establish that what i have in my mind that</p> <ol> <li>Drag and drop all required controls ...
c#
[0]
2,790,454
2,790,455
Graphics dont appear
<p>Whatever I do, I can not display rectangle/line/oval on the screen. I checked other sources where they paint graphics, but when I even execute those codes, I don't get any graphics displayed on the windows. Below is the example from the text book. </p> <pre><code>import java.awt.*; import javax.swing.*; class Plot...
java
[1]
4,849,673
4,849,674
Widget wag = *new Widget()
<p>I just came across a C++ SDK that makes heavy use of this really weird <code>*new</code> pattern. I dont understand why they do it like that at all.</p> <p>What's the point of constructing objects with *new, e.g. <code>Widget wag = *new Widget();</code>?</p> <p>Update: Interesting, they are actually doing <code>...
c++
[6]
2,309,692
2,309,693
Android ImageView return getWidth, getHeight zero
<p>I am having problem withh the getWidth / getheight function of ImageView. My xml is as follows:</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/bonus_popup" android:visibility="gone" android:layout_width="fill_parent" android:layout_heigh...
android
[4]
92,563
92,564
How to do Text Animations using Android SDK?
<p>So i have a code developed where when some button from the app is pressed it should get displayed in the Textview with some Animation(to add some fun). Is it possible to have text animations in Textview or should i use Canvas or SurfaceView for drawing this aplhabets with animation? </p> <p>Any help in this regard...
android
[4]
1,837,388
1,837,389
n = n +1 is faster than n++ or ++n, why?
<p>Check this test case: <a href="http://jsperf.com/n-n-1-or-n">http://jsperf.com/n-n-1-or-n</a></p> <pre><code>n = n + 1; </code></pre> <p>is faster than</p> <pre><code>n++; </code></pre> <p>and</p> <pre><code>++n; </code></pre> <p>Any clue about why the first writing is so much faster on many browsers ?</p>
javascript
[3]
4,481,443
4,481,444
How to check Image is there in the ImageView
<p>I have am ImageView in my page. It get the image while i have browse it using a button. On another button I need to check whether image is placed in the ImageView.</p> <p>The problem is, how can I check image is there in the ImageView? I have placed only .png file as image in the ImageView?</p>
android
[4]
3,338,116
3,338,117
View my android app rating in my app
<p>I want to load rating of my app uploaded in android market in some app. how to do this? thanks</p>
android
[4]
4,029,955
4,029,956
how do i validate a textbox in asp for unbalanced parentheses
<p>I want to validate an ASP textbox for unbalanced parenthesis. Like i want to display an error if the user starts a curly bracket but does not end it in a textbox.</p> <p>Thanks</p>
asp.net
[9]
4,658,299
4,658,300
is there any API to forbid user capture app screen as image?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1586592/disabling-iphone-screenshot-feature">Disabling iPhone screenshot feature</a> </p> </blockquote> <p>as topic...</p> <p>how to forbid user capture app screen (press power key + how key) ?</p> <p>just wan...
iphone
[8]
1,708,790
1,708,791
Android count size of INT Array
<p>I have an Array like:</p> <pre><code> private static int[] f_arme = { R.drawable.frankiearmevor_0001, R.drawable.frankiearmevor_0002, R.drawable.frankiearmevor_0003, R.drawable.frankiearmevor_0004, R.drawable.frankiearmevor_0005 </code></pre> <p>}</p> <p>how Do I get the Size of that ...
android
[4]