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,931,090
4,931,091
Transfer different chunks of data to client systems using python
<p>Well i want to transfer different chunks of data to client machine , by different i mean the data sent could be either code or a particular function , i have used basic socket program in order to transfer the content , but how do i make the client system help differentiate between these contents , i am aware of the ...
python
[7]
4,133,986
4,133,987
How can i store a 128 bit number in c++?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1188939/representing-128-bit-numbers-in-c">Representing 128-bit numbers in C++</a> </p> </blockquote> <p>I need a way to store a 128 bit number, is there something besides unsigned long long that I can use?</p>
c++
[6]
339,538
339,539
How can I unbind a mouseover in jQuery for a TD within a TR?
<p>Here is my HTML:</p> <pre><code>&lt;table id="myTable"&gt; &lt;tr class="myTr"&gt; &lt;td&gt; CELL 1 &lt;/td&gt; &lt;td&gt; Cell 2 &lt;/td&gt; &lt;td class="notThis"&gt; Cell 3 &lt;/td&gt; &lt;/tr&gt; &lt;tr class="myTr"...
jquery
[5]
2,423,000
2,423,001
copy() not working from url to folder in php
<p>I am trying to copy file from a url to a folder in my system using php</p> <pre><code>&lt;?php $image = "http://l.yimg.com/t/frontpage/10-facts-slideshow-080512-630-01.jpg"; if (!copy($image, "localfolder/mainPic1.png")) { echo "FAILED"; }else{echo "DONE";} </code></pre> <p>it always end up with "Failed"</p> <ul>...
php
[2]
1,569,108
1,569,109
How to find country and state using ip address
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1543437/is-there-any-possible-way-to-find-the-name-of-the-country-using-ip-with-scriptin">Is there any possible way to find the name of the country using IP with scripting language PHP?</a> </p> </blockquote> <p...
php
[2]
4,111,295
4,111,296
Remove item from multidimensional array php
<p>Here is the array:</p> <pre><code> [cart] =&gt; Array ( [ProductId] =&gt; Array ( [0] =&gt; P121100001 [1] =&gt; P121100002 ) [SellerId] =&gt; Array ( [0] =&gt; S12110001 ...
php
[2]
122,783
122,784
Auto complete through c#
<p>i want to do auto complete textox in asp.net using c#. Need code for that.</p>
asp.net
[9]
3,019,768
3,019,769
Toast "sending message to a Handler on a dead thread"
<p>I'm trying to display a simple message via Toast, and am getting a RunTime Exception "sending message to a Handler on a dead thread". The class that is trying to show the Toast message extends IntentService. The class (C2DMReceiver) actually comes from the ChromeToPhone example for C2DM. Here is the method:</p> <pr...
android
[4]
2,295,172
2,295,173
How to generate unique ID in clustering
<p>Is there any clustering API that helps in generating the unique ID across many servers?</p>
java
[1]
2,223,587
2,223,588
Using Page.FindControl() to get an instance of a (third party) control keeps returning null
<p>I have an ASP.NET site and on one page, there are a couple of controls (third party - Telerik).</p> <p>If I use Page.FindControl(), and pass in the ID of the control (Which is spelt correctly), this always returns null. Why?</p> <p>This is on an .aspx page, and the controls are not in a control of itself etc. Can'...
asp.net
[9]
5,253,292
5,253,293
Input Japanese characters into CSV file (C#)
<p>I want to write Japanese strings (”設定"  ”HELLO” "設定") as a record into CSV file.</p> <p>I tried to do with this code but displayed incorrectly:</p> <pre><code>StreamWriter sw_CSV = new StreamWriter(CSvFileName, false, System.Text.Encoding.Unicode); sw_CSV.WriteLine("設定,HELLO,設定"); sw_CSV.Close(); </code></pre> <...
c#
[0]
1,959,981
1,959,982
how to limit normal users to open a certain URL in javascript?
<p>Now I have a flash on my web site by using Apache, and anyone who browse this web will find my database URL through the web source code. I don't intend to let others see my database through this URL. Now I know how to configure the httpd.conf to limit the normal users to open this URL. But I hope to control this by ...
javascript
[3]
1,581,771
1,581,772
Access class instance "name" dynamically in Python
<p>In plain english: I am creating class instances dynamically in a for loop, the class then defines a few attributes for the instance. I need to later be able to look up those values in another for loop.</p> <p>Sample code:</p> <pre><code>class A: def __init__(self, name, attr): self.name=name ...
python
[7]
3,401,792
3,401,793
LoginStatus logout does not work in a masterpage
<p>LoginStatus logout does not fire any event when it is used in a masterpage or the page that includes a masterpage</p>
asp.net
[9]
2,525,034
2,525,035
Switch between views with crossfade animation
<p>I've wrote a small activity that is able to switch between two views. Now I am trying to add some animation (fade-in/fade-out effect). Can anybody explain me how to do that right?</p> <p>My own attempt to do this works kinda buggy (if I will click buttons very fast, my application freezes). I use code listed below:...
android
[4]
523,142
523,143
check download progress
<p>I m download by following way and its working fine.But want to check at which time each chunk is coming.</p> <p>File file = new File(extStorageDirectory+"/"+runInBackend.count+sche.file_name);</p> <pre><code>HttpURLConnection connection = (HttpURLConnection)url.openConnection(); connection.setDoOutput(true); ...
android
[4]
123,908
123,909
jquery conditional chaining
<p>Let's say I have the following jQuery. Works great, but then I need to include the <code>.after($('&lt;div /&gt;'))</code> only if <code>var insertAfter</code> equals true. Is there an elegant jQuery way of doing this? Thanks</p> <pre><code>$('#whatEver') .parent() .show() .width(123) .addClass('bebo') .before($(...
jquery
[5]
4,690,168
4,690,169
Multiprocessing or os.fork, os.exec?
<p>I am using multiprocessing module to fork child processes. Since on forking, child process gets the address space of parent process, I am getting the same logger for parent and child. I want to clear the address space of child process for any values carried over from parent. I got to know that multiprocessing does f...
python
[7]
658,953
658,954
design a layout like book open and animation same as book reviewing time
<p>I want to display my pages as a book, and when we move from one page to another it should look like book reviewing. For an example see the below screenshot </p> <p><img src="http://i.stack.imgur.com/unwwL.png" alt="enter image description here"></p> <p>Can you give me some suggestions on this design and animation ...
android
[4]
5,682,713
5,682,714
asp.net : how to automatically identify user / returning user
<p>i see a lot of web site that.. remember when i return without using registration. I think they save cookies or something... So i'm asking you: in asp.net / vb.net how can i save the id of a user ? What are the command to do this ? Thanks in advance...</p>
asp.net
[9]
1,162,596
1,162,597
how to writer on External SdCard (mnt/external1)
<p>i want to write on external sdcard (path: /mnt/external1/). i can read that path, but when i create a new folder on it pro grammatically it not create. i have already declare read write permission in manifeast.xml.</p> <p>when i write code f.mkdir(); it return false; and when i create an outputStream obj for that p...
android
[4]
3,092,899
3,092,900
PHP - making a script to show entered data
<p>I am new to PHP and i need to know how to display entered data on a page. I will clarify. There is a text box on a page and when the user types something in it and clicks submit, a blank page will come up that says: You entered [ENTERED DATA HERE]. i want to do this so that i put a code in the text box, and it will ...
php
[2]
4,034,149
4,034,150
click on display and change it to the textbox
<p>I just started to develop web. I am currently stuck in a question not sure how to solve it.</p> <p>I have 2 pages, one for me to enter the product name and the price of it. After I click the save button, it will save to the database, after successfully save the data, it load back the page for me to continue enter t...
jquery
[5]
5,123,498
5,123,499
Using the custom enum attributes values
<p>In my application I'm using the following custom attribute for a custom view:</p> <pre><code>&lt;attr name="direction"&gt; &lt;enum name="up" value="1" /&gt; &lt;enum name="down" value="2" /&gt; &lt;/attr&gt; </code></pre> <p>The thing is that in my custom view I must compare the current direction with the...
android
[4]
5,812,715
5,812,716
What is the right way to send a watch dog request to an ASP.NET web server?
<p>I have an ASP.NET web server and I wish to have a watchdog sending it periodic requests. Currently, I am planning to add an EmptyPage.aspx and then request it periodically from a locally running watchdog application. </p> <p>Is there a better way to implement the watchdog facility? </p> <p>P.S.</p> <p>The server ...
asp.net
[9]
5,645,448
5,645,449
Limiting the searching of a large file
<p>So here is my program with some new modifications:</p> <pre><code>datafile = open('C:\\text2.txt', 'r') completedataset = open('C:\\bigfile.txt', 'r') smallerdataset = open('C:\\smallerdataset.txt', 'w') matchedLines = [] for line in datafile: splitline = line.split() for item in splitline: if not i...
python
[7]
5,256,088
5,256,089
ASP.Net Cookie Problems
<p>I have a cookie when a User loges in:</p> <pre><code>HttpCookie cookie = new HttpCookie("Username"); cookie.Expires = DateTime.Now.AddDays(1.0); cookie.Value = txtUsername.Text; Response.Cookies.Add(cookie); </code></pre> <p>and it reads out in the Login-...
asp.net
[9]
293,646
293,647
Asp.net Response.Redirect
<p>I am using response.redirect after iam deleting a particular user to have grid populated with latest values.. but it giving me error lblError.Text=Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.</p> <p>because of this error iam not getting confirmation of d...
asp.net
[9]
5,433,405
5,433,406
Seeking FOSS user admin code
<p>It must be a fairly standard wheel, so I'd rather not reinvent it.</p> <p>Create/modify/delete users. Ditto their passwords &amp; maybe enforce password change every X days. Also, create groups, like "sales", "support", etc and add/remove users.</p> <p>The only unique part should be what they have permission to do...
php
[2]
2,611,053
2,611,054
Compare and remove same characters in two Strings in java then output the remaining characters as numbers
<p>Say i have user input 2 different names. for example. firstName = "Stack Overflow" secondName = "Stack Exchange" what i want to do is to compare them, which means the word "Stack" would be eliminated, then the remaining String characters will output as numbers. "overflow" will output as 8. same with "Exchange" whic...
java
[1]
1,789,283
1,789,284
Disabled the a tag (link) by using javascript
<p>Does anyone how can I disabled the a tag (link) by using javascript? </p> <p>Example:</p> <pre><code>&lt;div class="sub-heading"&gt; Contact Details &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href="./cust_add_edit_customer.php?action=edit_customer_details&amp;amp;cust_code=12761"&gt; &lt;img class="imgVA e...
javascript
[3]
2,391,334
2,391,335
Disable page refresh
<p>I need to prevent users from refreshing a page.</p> <ol> <li>I have scripted in such a way that there is no 'forward' or 'backward' movement required.</li> <li>However, if one refreshes the page, 'everything' starts from the beginning. <ul> <li>To save everything before page refresh and restore them after is not id...
javascript
[3]
5,932,857
5,932,858
how to open input Keyboard on load of activity
<p>Actually i have an EditText box in my activity class.What i want is,whenever my activity start it automatically open input keyboard along with EditText.So how that can be done.Please anyone suggest me.if possible with example</p>
android
[4]
2,536,715
2,536,716
Getting php data from admin panel, without inserting in database and sessions
<p>I have a website and an administrator panel. I need to take some data from the administrator panel fields and show it on the homepage.</p> <p>For example: on the homepage there is a <code>text block</code> and on the administrator panel there is a <code>input</code> form. I fill it in, press submit, it saves everyt...
php
[2]
5,399,185
5,399,186
Comparing numbers wrong
<p>I have the following JS which compares credit card number length:</p> <pre><code>validate: function () { var ccLength = $('.credit-card input[name="cc_number"]').val().length; var cardType = parseInt($('.credit-card .credit-card-type .selected').attr('rel')); if (!isNaN(cardType)) { console.log(...
javascript
[3]
1,650,527
1,650,528
Is there any way to get notified when some application is completely installed or uninstalled
<p>I am trying to get the notification of an application which is completely installed/uninstall by using WMI win32_product class. Is there any other way of doing that in c#??</p>
c#
[0]
1,002,657
1,002,658
Java : Bound mismatch error
<p>I'm learning Java and I have to create a program that implements an interface defined by the teacher to pratice ADT (using ArrayList). I got errors that I don't understand maybe new explanations can help me.</p> <p><strong>Interface :</strong></p> <pre><code>public interface A&lt;T extends C&gt; { ... } </code></p...
java
[1]
2,712,057
2,712,058
verify input string is valid decimal number
<p>Can anybody provide an algorithm that checks whether an input string is a decimal number in correct shape and form?</p> <p>Rules of correct shape and form:</p> <ol> <li>At most two decimal places.</li> <li>For all practical purposes, the largest number is 99,999,999.99</li> <li>The integral part can use a space, o...
c#
[0]
3,103,350
3,103,351
How to read non-English characters in filename, using Java programme
<p>I'm trying to read mail in my outbox which usually contains one attached pdf file. If the pdf file name contains English characters, the function below works fine. But if the file name contains any non-English character (for example, <em>filename1(chinesecharacter).pdf</em>) my function is not able to read it. Can a...
java
[1]
3,208,076
3,208,077
Android Layout scrteching
<p>I have following layout in my android application.</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/mainlayout" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@d...
android
[4]
4,725,604
4,725,605
Split 1 div into 2 separate div's?
<p>Is it possible with jQuery to split 1 Div into 2 Div's at a specified point marked with tag</p> <p>In this code example I was thinking would it be possible to split the div at the 'em tag' to make 2 div's</p> <pre><code>&lt;div&gt; &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit,&lt;/p&gt; ...
jquery
[5]
4,919,045
4,919,046
Server Control or HTML control
<p>i want to know is there any difference between server controls and HTML controls in speed? for example you want to create a log in page that have two textbox and a button for submitting data,you can do this with both server controls and HTML controls(client_side controls(input) ),do you prefer to use server controls...
asp.net
[9]
634,018
634,019
Android: embedded controls in multiply included compound control restore to same state
<p>I am customizing an <a href="https://github.com/mrn/numberpicker" rel="nofollow">Android control</a>. This control uses a merge layout containing an edit field (fluff left out):</p> <pre><code> &lt;merge xmlns:android="http://schemas.android.com/apk/res/android"&gt; ... &lt;EditText android:id="@+id/numbe...
android
[4]
5,140,756
5,140,757
Manipulation of HTML values in a class using jQuery
<p>I have the following HTML structure</p> <pre><code>&lt;div class="something"&gt; &lt;div class="amount"&gt;$10&lt;/div&gt; &lt;/div&gt; &lt;div class="something"&gt; &lt;div class="amount"&gt;$20&lt;/div&gt; &lt;/div&gt; &lt;div class="something"&gt; &lt;div class="amount"&gt;$30&lt;/div&gt; &lt;/d...
jquery
[5]
1,295,209
1,295,210
BSE/NSE quote in PHP
<p>I want to display NSE/BSE quote in my PHP website. please let me know what I have to do, if I get the webservices for this then how to use it in PHP. Please help</p>
php
[2]
772,938
772,939
multiple arguments in a function to run through arrary_filter
<p>How can i run multiple arguments through <code>array_filter</code>? Here is my function with the multiple arguments and the <code>array_filter</code> code</p> <pre><code>function is_txt($file, $user) { return preg_match('/backup-[0-9]+\.[0-9]+\.[0-9]+_[0-9]{2}-[0-9]{2}-[0-9]{2}_'.$user.'.tar.gz/', $file) &gt; 0; } ...
php
[2]
4,016,943
4,016,944
Php variable inside HTML that is a variable
<p>I can't figure out how to include a variable inside an HTML link; this link is itself a variable. My quotation marks work fine until I try to add $ou. Any ideas?</p> <pre><code>$mout = '&lt;img src="http://www.example-website.com/header.jpg" width="600px" height="101px" alt="header" /&gt;&lt;br /&gt;Click on the fo...
php
[2]
3,364,740
3,364,741
Horizontal Scroll View
<p>I have a horizontal scroll view, and inside I have a number of image views, they go across the screen and altogether are wider than the screen.</p> <p>I've tried to scroll through them using touch, but nothing happens, am I missing something?</p>
android
[4]
92,869
92,870
Non consumable in-app purchse using MKstorekit4?
<p>I have an Iphone application in which i am using two types of purchases.Non consumable products and a subscription.For subscription i have to use mkstorekit4 anyway.So i need to implement the nonconsumable also in the storekit4.Anybody knows the steps to integrate nonconsumable products with mkstorekit4.Can anybody ...
iphone
[8]
4,007,127
4,007,128
How to determine if the specific time is between given range?
<p>Problem: I have a list containg hours, for example: 08:15:00 08:45:00 09:00:00 12:00:00 ... application is allowing user to make an appointment for a specific hour let'say: 8:15:00, each meeting takes half an hour.</p> <p>Question: How to determine if there is a slot needed for appointment like this? I know that Ca...
java
[1]
1,673,104
1,673,105
Getting Exception in thread "main" java.lang.Error: Unresolved compilation: at FileTest.main(FileTest.java:39)
<p>Im getting Exception in thread "main" java.lang.Error: Unresolved compilation: at FileTest.main(FileTest.java:39) Line 39 is <code>public static void main(String[] args){</code>what am I doing wrong?</p> <pre><code>public class FileTest{ public static void main(String[] args){ try{ String i...
java
[1]
792,296
792,297
println(char), characters turn into Chinese?
<p>Please help me to troubleshoot this problem.</p> <p>A have an input file 'Trial.txt' with content "Thanh Le".</p> <p>Here is the function I used in an attempt to read from the file:</p> <pre><code> public char[] importSeq(){ File file = new File("G:\\trial.txt"); char temp_seq[] = new char[100]; ...
java
[1]
5,173,932
5,173,933
Sort the date in Sqlite database
<p>I am making an iPhone application in which I am storing date and time in a column now I want to sort the date and time in the order which occurs first.</p> <p>How can I do this? please give me some solutions.</p>
iphone
[8]
1,741,227
1,741,228
static final vs an instance final when and why? Java interview question
<p>Suppose we have</p> <pre><code>final double pi = 3.14159 </code></pre> <ul> <li><p>Should we make above statement static or not?</p></li> <li><p>When we'd want static final vs an instance final?</p></li> </ul>
java
[1]
142,506
142,507
Why does this work? Object references in Javascript
<p>I've finally been curious enough to find out why javascript does its voodoo magic to learn why not all object references are created equal.</p> <p>Given the example:</p> <pre><code>var a, b, c, d; a = 100; b = a; c = {}; d = c; b = 10; d.e = 'f'; console.log(a, b); // outputs 100, 10 console.log(c, d); // outpu...
javascript
[3]
739,581
739,582
Android "Open GL"
<p>I want to draw an Hexagon but i cant figure out how to set up the coordinates</p> <p>right now i have something like</p> <p>private short[] _indicesArray = {0, 1, 2, 6, 7, 8, 3, 4, 5, 2, 5, 7};</p> <p>every three is a triangle... something like below /\ |/| \/</p>
android
[4]
1,728,416
1,728,417
Create a jquery object collection from seperate jquery objects
<pre><code>$.fn.sortByDepth = function() { var ar = []; var result = $([]); $(this).each(function() { ar.push({length: $(this).parents().length, elmt: $(this)}); }); ar.sort(function(a,b) { return b.length - a.length; }); for (var i=0; i&lt;ar.length; i++) { result.a...
jquery
[5]
388,021
388,022
Text recognition from an image in android
<p>I have to implement Text Recognition feature in our APP but I am failed to do so. I implemented many codes for the same as OCR integration. but failed to achieve the desired. Please suggest a right solution for the same.</p> <p>Thanks in advance.</p>
android
[4]
4,014,795
4,014,796
How can i store a session live for next work?
<p>I m new in iPhone development. i have a problem , i m using bluetooth connectivity in my application. it works good for message sending but when i want to send other data from other class using same session the session value does not go in next class.</p> <p>Can any body tell me how can i store the same session for...
iphone
[8]
5,716,864
5,716,865
Displaying AlertDialog when a button in listview is clicked
<p>How to display an AlertDialog when a button in listview is clicked. NOTE : The Listview is created using Custom Adapter.</p> <p>The listview consists of 3 TextViews and a Button. So I need to know how to display an alertdialog when I click the button present in the listview content.</p> <p>Thanks in advance :)</p>...
android
[4]
588,613
588,614
combining 2 if staments
<p>Jut a quick question, i have 2 if statements i want to combine into one.</p> <p>These are the current if statements:</p> <pre><code>if (empty($_POST['route'])) { $formerrors[] = '&lt;span class="error"&gt;route&lt;/span&gt;'; } else { $route = escape_data($_POST['route']); } if (mysql_num_rows($result) ...
php
[2]
3,064,437
3,064,438
compile error on android
<p>In file included from </p> <pre><code>/home/imagetech/Android/android-ndk-r3/build/platforms/android-5/arch-arm/usr/include/stdio.h:55, from test_cl.cpp:21: /home/imagetech/Android/android-ndk-r3/build/platforms/android-5/arch-arm/usr/include/sys/types.h:88: error: conflicting declaration 'typedef unsigned int s...
android
[4]
4,082,749
4,082,750
programmatically execute Touch event in android
<p>Can we execute touch event programmatically in android by some method, such as passing screen co-ordinates(x,y)? Is there any such method? Please guide me.</p>
android
[4]
1,376,023
1,376,024
Using PHP, how do I echo a line from a text file that starts with a specific value?
<p>Lets say the text file " data1.txt" contains: </p> <pre><code>56715||Jim||Green||19 5678||Sara||Red||92 53676||Mark||Orange||6 56787||Mike||Purple||123 56479||Sammy||Yellow||645 56580||Martha||Blue||952 ect... . . </code></pre> <p>I would like to echo only the line beginning with "5678||". "5678" is...
php
[2]
3,966,707
3,966,708
can we configure google+ in our iPhone application?
<p>Actually i need to provide google + connectivity in an universal application so is there any one who can help me or can provide me any reference to start on it.</p> <p>As we configure facebook in our iPhone application.</p> <p>Thank u in advance (you guys are great)</p>
iphone
[8]
3,833,751
3,833,752
change navigation bar title's color.... but i have problem
<p>hi i know how can change color of my navigation bar title but when i write this code :</p> <pre><code>UILabel * label = [[[UILabel alloc] initWithFrame:CGRectMake(0,0,45,45)] autorelease]; label.textColor = [UIColor yellowColor]; label.backgroundColor=[UIColor clearColor]; self.navigationItem.titleView = label; la...
iphone
[8]
61,088
61,089
getting images from iphone simulator
<p>I have just created an image and saved it in iPhone simulator phone library. I want to view this image(not from Photo Library) to view its properties from document resources. But I am not able to access the contents of photo library.</p> <p>Thanks<br> Pankaj</p>
iphone
[8]
5,602,227
5,602,228
asp.net 4.0 Random posting behavior
<p>At work, we are developing a complex webForms app. We are using Visual Studio 2010 to develop a framework 4.0 site in C# 4.0.</p> <p>We have been experiencing random behavior on post. Here is what we have seen:</p> <p><code>&lt;Button&gt;</code> tag with a runat server and a ServerClick event will SOMETIMES run ...
asp.net
[9]
986,325
986,326
options.inInputShareable used when downloading an image from internet
<p>I have the following code in my project:</p> <pre><code> public void downloadFromUrl(URL url) { try { /* download the image */ URLConnection cn = url.openConnection(); cn.connect(); InputStream is = cn.getInputStream(); ...
android
[4]
5,834,713
5,834,714
Duplicating / Creating a copy of the orignal file
<p>I have a file test.php in that i want to add a PHP script in such a way that whenever test.php is being exceuted/opened it should copy itself to a directory /copies/test.php How do i do that ? and it would be better if i could rename it.</p> <p>Thanking You</p>
php
[2]
1,368,082
1,368,083
Jquery .load() doesn't seem to be working in firefox
<p>I've tried to find the answer to this by searching through Stackoverflow, and I've found a lot of closely related answers, but none seem to give me quite what I'm looking for. Most are much more complicated scenarios and just don't apply. Anyhow, what I'm doing is calling to a certain page of my site using the url, ...
jquery
[5]
3,838,720
3,838,721
Recursive function in javascript
<pre><code>var DynamicModelView = { createModelView: function (obj,vitalslength,headerValue) { for(vitalsCount = 0, vitalsLen = vitalslength; vitalsCount &lt; vitalsLen; vitalsCount++) { // Business logic... with obj and headerValue } I need to call this func...
javascript
[3]
4,833,059
4,833,060
Combing URL component variables into a full URL
<p>I would like to combine the variables below as a new variable called $fullurl. They are components of a URL. The structure of the combined variable is shown under the variables below. How can I do this?</p> <pre><code>$urlc = nytimes.com/business/finance/articles/2005/05/10/20100727stock-prices-declining.html $s...
php
[2]
1,821,609
1,821,610
jQuery Facebox Dynamic Position
<p>I am using jQuery's Facebox plugin. I have a number of dynamic links on a page. These links span the entire height and some are even past the page break.</p> <p>Each link triggers the Facebox with a send a message style form. How can I position the Facebox to be directly under the link that triggered it?</p> <p>Th...
jquery
[5]
5,546,639
5,546,640
Javascript: invoke default keydown event handler
<p>I'd like to invoke default keydown event handler from javascript. Is it possible?</p>
javascript
[3]
2,468,455
2,468,456
Get at entire web page contents using Javascript
<p>Is there a way to load the entire contents of a page into a javascript variable? (the page is not properly formatted HTML.) Ie store the page contents as a string in a variable. It only needs to work with Firefox.</p> <p>I have some javascript running in one firefox tab that accesses the content of a page in anothe...
javascript
[3]
1,197,151
1,197,152
trim ip address octet
<p>I need to trim the last octet from an ip address using php. Basically I'm trying to just remove any digits after the third dot. I'm wondering if there is an out of the box solution for this? as my regex abilities are basic at best. Many thanks.</p>
php
[2]
1,855,639
1,855,640
Get list of yahoo/ google groups in asp.net application
<p>i want to get a list of google and yahoo groups on the basis of some keyword in my asp.net application.Is there any API or script to do so??thanx</p>
asp.net
[9]
4,329,104
4,329,105
JavaScript Functional Reference Depth Limit
<p>I was wondering if there is any functional depth limit to JavaScript. I'm asking because I'm working on a complex application and unfortunately, we cannot change the data structure.</p> <p>For example, if I try to reference a variable such as:</p> <p><code>Thi.sIs.An.Except.ionally[345].LongF.unct.ional[z].Refer.e...
javascript
[3]
556,615
556,616
On limiting JavaScript global variables
<p>I am reading a book that encourages the reader for a few reasons, to limit global variables. The technique they recommend is to define a global object variable, like the following:</p> <pre><code>var myapp = {}; var myapp.another_stooge = { 'first-name': 'Lenny', 'last-name': 'George' }; var myapp.propertie...
javascript
[3]
5,281,590
5,281,591
Xcode Organizer - Devices showing yellow light
<p>Got the developer certificate to test app on iphone entered device identifier, connected iphone as a device in the organizer it shows yellow light. In software version it shows 5.1 as installed on iphone device. It displays that it does not match any of the versions of iOS supported for development with this instal...
iphone
[8]
4,563,240
4,563,241
Set selected radio from radio group with a value
<p>Why am I struggling with this?</p> <p>I have a value: 5</p> <p>How do I check the radio button of group "mygroup" with the value of 5?</p> <pre><code>$("input[name=mygroup]").val(5); // doesn't work? </code></pre>
jquery
[5]
435,521
435,522
android : how to make a webview fullscreen programatically
<p>I have a webview pat of my activity layout I have a button "fullscreen" On clicking this i want the webview to occupy the full screen.</p> <p>I have tried elativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.FILL_PARENT); ...
android
[4]
1,711,952
1,711,953
Android Html.fromHtml in TextView - align image with text
<p>I'm using Html.fromHtml to populate a textview. I want to align text right next to the img but the text seems to aligning with the bottom of the image. In html, you could assign an align attribute to the img tag and the text would align to the top of the image. But the align just seems to be ignored. Is there any wa...
android
[4]
3,856,863
3,856,864
C# Encryption Functions
<p>i have table in my database that have senestive data such as password field i want to encrypt data before inserting it to table and then i want not to decrypt data but i want only to compare encrypted password with the input password without decrypting </p>
c#
[0]
1,434,142
1,434,143
import excel flie
<p>how i can import excel file to C# project ?</p>
c#
[0]
3,034,963
3,034,964
Fading between elements
<p>I'm really new to JavaScript and JQuery but I'd like to fade the data between my differebt tables. So if I had data that I wanted to break apart into 3 different tables, how do I go about paging through them, pausing 10 seconds, then paging to the next table, then cycle back to the beginning?</p> <p>Could someone g...
jquery
[5]
3,664,647
3,664,648
How can I get exactly what .this is pointing to
<p>Is there a way to get the exact name of the object that <code>this</code> is referring to and not just <code>object Object</code>?</p>
javascript
[3]
3,504,074
3,504,075
Imageview place at center on click in GallaryView layout
<p>I am using <code>GalleryView</code> layout in which have multiple <code>ImageView</code>. When i click on <code>ImageView</code> that view comes on horizontally center position of device. Is there any way to stop this, means view will not come on center on click.</p>
android
[4]
126,700
126,701
how to realize " android:scrollbars="vertical" " programatically?
<p>i want to dynamic design scrollbars in the EditText using code, but i don't find this api as setscrollbars, could you tell me if i can programatically? realize </p> <pre><code>android:scrollbars="vertical" </code></pre> <p>if possible, how to realize?</p>
android
[4]
176,296
176,297
trying to make a C++ program to convert a 4 digit octal number to decimal
<p>This here is my code, I have tried googling it but i can find why my code doesnt convert the number properly. however it complies fine. could you please tell me why it is not working and what i should do to fix it. </p> <pre><code>#include &lt;iostream&gt; using namespace std; int main() { char a = 0; ...
c++
[6]
961,229
961,230
Running curl twice in php
<p>I'm trying to send email via php mail function like below but it doesn't seem to work on IE. It works on all other browsers. Below is the code. Is there a reason why???</p> <pre><code>$sent1 = mail($to, $subject, $message, $headers); $sent2 = mail($clientTo, $clientSubject, $clientMessage, $clientHeaders); if ($sen...
php
[2]
1,298,788
1,298,789
How do you make an element "flash" in jQuery
<p>I'm brand new to jQuery and have some experience using Prototype. In Prototype, there is a method to "flash" an element &mdash; ie. briefly highlight it in another color and have it fade back to normal so that the user's eye is drawn to it. Is there such a method in jQuery? I see fadeIn, fadeOut, and animate, but I ...
jquery
[5]
3,263,596
3,263,597
c cannot convert from type A* to type B*
<p>I need to change DMapEntry::pData from a char* to a class DMapData that contains the original pointer but still be able to refer to &amp;pData[offset] in DMapEntry without changing it. Is this possible? </p> <pre><code>#include "stdafx.h" class DMapData { char* pData; public: char* operator-&gt;() { return...
c++
[6]
5,134,100
5,134,101
function call from base adapter to its fragment class
<p>I am having a function in sherlock fragment class. I want to call it from its base adpater class when an item is clicked. My code bellow</p> <p>In base adapter</p> <pre><code>SherlockFragment obj=new TVgui() (tvgui)obj.replace_fragment(frag,tag); </code></pre> <p>In sherlockFragment class</p> <pre><code> public...
android
[4]
3,340,461
3,340,462
jQuery: outer html()
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2419749/get-selected-elements-outer-html">Get selected element’s outer HTML</a> </p> </blockquote> <p>imagine what we have something like this:</p> <pre><code>&lt;div id="xxx"&gt;&lt;p&gt;Hello World&lt;/p&gt;&...
jquery
[5]
1,627,190
1,627,191
Unzipping a .gz file using C#
<p>I have a tarred gunzip file called ZippedXmls.tar.gz which has 2 xmls inside it. I need to programmatically unzip this file and the output should be 2 xmls copied in a folder. How do I achieve this using C#? Can someone help me with the code please?</p> <p>Thanks a bunch.</p>
c#
[0]
3,983,130
3,983,131
android-how to differentiate the small screen ldpi and mdpi
<p>I implemented the application which will supports the small screen ldpi and hdpi. It is working for only one either ldpi or hdpi. Because my application layout have some distance between the views. so i want differentiate the ldpi and mdpi. how to implement this can any body help me.</p> <p>For this i am creating t...
android
[4]
154,680
154,681
How to append functions to current module from unrelated script in Python
<p>I have two python scripts in different locations. I try to import the functions of the second one in such a way that they are integrated with the globals of the first one. That works fine. However when I call functions in the first script from the second one they cant be found.</p> <p>foo.py</p> <pre><code>def run...
python
[7]
3,211,046
3,211,047
how to style top parent element using jquery
<p>i want style top parent and it should be dynamic. i just want style top parent. we can add more parent div but style should reflect on to div. is that possible with jquery.</p> <pre><code>&lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;Untitled Document&lt;/titl...
jquery
[5]