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,522,123 | 4,522,124 | Getting a value in a textbox from a dropdown list | <p>I have a textbox named textbox1 and a dropdownlist. Dropdownlist contains the list of branches and i want that when i select a branch from dropdown i want to get the respective branch code to be generated in a textbox from the Database or from c# coding. How will it be possible ?</p>
| c# | [0] |
1,429,418 | 1,429,419 | How to use extern keyword? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1410563/what-is-the-difference-between-a-definition-and-a-declaration">What is the difference between a definition and a declaration?</a> </p>
</blockquote>
<p>In my A.h file:</p>
<pre><code>extern int a,b;
pri... | c++ | [6] |
2,063,205 | 2,063,206 | detect distance scrolled from top jquery | <p>How can I detect the number of pixels scrolled in a browser window?
I need this to dynamically adjust the height of a 100% height div... </p>
<p>I'm using jQuery.</p>
<p>EDIT: I cannot just use scrollTop() because I'm working with a 100% height div with overflow set to auto. Firefox does not detect browser scroll... | jquery | [5] |
3,982,025 | 3,982,026 | Why does Int32.TryParse reset the out parameter when not able to convert? | <p>if I run this C# code</p>
<pre><code>int realInt = 3;
string foo = "bar";
Int32.TryParse(foo, out realInt);
Console.WriteLine(realInt);
Console.Read();
</code></pre>
<p>I get 0. And I would like to know why! Cause I cannot find any reason why it would. This forces me to make temp variables for every parsin... | c# | [0] |
2,560,349 | 2,560,350 | How to create post thumbnail | <p>I am working on the WordPress Twenty Ten theme, and I want to display post thumbnails. I have followed the steps below:</p>
<ul>
<li><p>Added following code in functions.php file:</p>
<pre><code>if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'post-thumbnails' );
}
</code></pre></li>
<li>... | php | [2] |
30,079 | 30,080 | PHP: Work out duration between two times | <p>Ok, a really simple question but I am too thick to figure it out. I want to get the difference between two times. For example, "1:07" (1 minute and 7 seconds) and "3:01" (3 minutes and 1 second). It will only be ever minutes and seconds. I have been trying to make use of this:</p>
<pre><code>function timeDiff($firs... | php | [2] |
958,104 | 958,105 | JavaScript date from string? | <p>Novice question. I've got a string in the following format:</p>
<pre><code>var dateStr = '2012-4-14';
</code></pre>
<p>I want to make it into a JavaScript Date object. The following creates a Date object in Chrome, but is NaN in IE8:</p>
<pre><code>var myDate = new Date(dateStr);
</code></pre>
<p>What should I b... | javascript | [3] |
5,192,966 | 5,192,967 | Not able to push next view after clicking a uibutton which is on the top right of the view | <p>i am having a view consisting of a tableview and a uibutton like this<img src="http://i.stack.imgur.com/hBfKf.png" alt="enter image description here"> </p>
<p>when i click on button "add" a new class/xib named "Locsetting" should be open.which i am not able to do.
my code: .h file</p>
<pre><code> @interface Loc... | iphone | [8] |
2,892,237 | 2,892,238 | adding map in xml slow down the app | <p>As soon as I add a map into my layout XML, the activity will be loaded very slow. After a long time, it will jump to the activity and display the map. I'm fresh about this, any help will be good.</p>
<p>I found a web link that says I should try <strong>delay load</strong>. I understand it as it will go to the activ... | android | [4] |
4,877,556 | 4,877,557 | jQuery. Call custom function with single $ | <pre><code>(function ($) {
$.fn.test = function () {
console.log('works');
};
})(jQuery);
$(document).ready(function () {
var var1 = $().test(); // works
var var1 = $.test(); // error: $.test is not a function
});
</code></pre>
<p>Is it possible to call like this $.test() ?
Thank you.</p>
| jquery | [5] |
2,176,580 | 2,176,581 | string a line to new line and do not add newline at the end? | <p>I have a string </p>
<pre><code>$str = 'aaaaabbbbbcccccdddddeeeeefffffggggghhhhhjjjjj';
$pos = 0;
$tmp = 0;
while($pos<strlen($str)) {
$tmp .= substr($str,$pos,5)."\n";
$pos += 5;
}
</code></pre>
<p>I dont want to add a <code>"\n"</code> at the end of produced <code>$str</code></p>
<pre><code>aaaaa
bbbb... | php | [2] |
4,472,618 | 4,472,619 | Get only the first result of a foreach loop | <p>I am trying to display all the links that are located in <code><div class="post"></code>. There are many <code><div class="post"></code> inside my page (it is a blog). However there are many links in every <code><div class="post"></code> but I want to display the first of every div.
My question is... | php | [2] |
5,606,364 | 5,606,365 | Javascript check for Max/Min/Average number from a record set | <pre><code>function lab09unknownLoopCountPart2() {
//Constants
var ONE_HUNDRED = 100;
var ZERO = 0;
//Variables
var employeeHourlyWage;
var hourlyMaximum = ZERO;
var hourlyMinimum = ZERO;
var totalHourlyWage = ZERO;
var records;
var counter = ZERO;
var average;
records = openEmployeePayrollRecords();
while (records... | javascript | [3] |
5,273,081 | 5,273,082 | Reading and Parsing a PDF File using XML parser from server in Android | <p>How to read and parse a PDF file URL inside parser from server in Android?</p>
| android | [4] |
3,509,456 | 3,509,457 | Using .hide() instead of .remove() | <p>The output should be like in this <a href="http://jsfiddle.net/SpB3m/3/" rel="nofollow">demo</a>. The problem is that I need to use .hide() instead of .remove(). Does anyone have any idea to solve it?</p>
<pre><code>$('td').parents('tr:contains(John)').remove();
$('tr').parents('tbody').not(':has(td)').after('<... | jquery | [5] |
5,720,236 | 5,720,237 | How to change an arrayList once a app is deployed? | <p>I would like to change the value of a ArrayList once a application is deployed. I want to be able to change it monthly. </p>
<p>I thought hosting a text document on my website.. Reading from it through the application and set the values to variables and set the variables to the ArrayList.</p>
<p>Would this be a go... | android | [4] |
5,913,406 | 5,913,407 | Send mail using My Outlook Account | <p>I tried to send mail form C# using my outlook account but I don't want the notification pop up window to be appeared when trying to send mails.</p>
<p>Any idea to disable the notifications windows?</p>
<p>Here my code snippent:</p>
<pre><code> public static void SendEmail(string _ToEmail, string _Subject, string ... | c# | [0] |
403,674 | 403,675 | Error in selecting multiple rows by checkbox error Undefined index: checkbox | <p>I want to select multiple rows from <code>checkbox</code> and want to update them all at once by button click..I tried in several ways..but not work..can you give a help please? it shows an error as <code>Undefined index: checkbox</code></p>
<pre><code><td>
<input type="hidden" name="id" id="id" value=... | php | [2] |
3,919,722 | 3,919,723 | Pythonic representation of a list of values with optional flags | <p>What first pops into my head is a dictionary with keys acting as list values and dictionary values defaulting to <code>None</code>, but this feels sub-optimal to me. Can anyone propose a single-structure (i.e. no separate 'options' dict) alternative where <code>dict[key]</code> on an item with no flags set returns <... | python | [7] |
3,379,195 | 3,379,196 | Get data from another form | <p>I have a listview in my Mainform and I need to get the value in the textbox and label in the other form name Add_Order?</p>
<pre><code>Add_Order add = new Add_Order();
ListViewItem item = new ListViewItem();
item.Text = add.textBox3.Text;
item.SubItems.Add(add.label6.Text);
item.SubItems.Add(add.textBox2.Text);
ite... | c# | [0] |
5,267,245 | 5,267,246 | Forcing referencing assembly | <p>Is there any way to tell compiler not to remove some of the referenced assemblies that are not used by target assembly without writing dummy code?</p>
<p>For example I have 2 references:</p>
<pre><code>MyAssembly
-> MyLoggingAbstraction
-> MyLoggingAbstraction.NLog
</code></pre>
<p>However my assemb... | c# | [0] |
1,757,244 | 1,757,245 | How to use javascript templating rather than raw HTML in javascript string? | <p>I am creating a web app that requires me to render new elements on the page many, many times. It is getting out of hand for me to add HTML by putting it into a Javascript string. Mostly because it's hard to edit it especially when it spans multiple ways. What's the best solution for this? And what's the best way to ... | javascript | [3] |
4,680,852 | 4,680,853 | Conditional expression inside Convert.ToString() evaluating wrong? | <p>I'm stumped. Why wouldn't the first and fourth lines evaluate to null?</p>
<p><img src="http://i.stack.imgur.com/Z7E32.png" alt="null wut"></p>
<p><strong>Post-answer edit:</strong></p>
<p>For the benefit of others, the desired behavior would be created by using:</p>
<pre><code>boolFoo ? null : Convert.ToString(... | c# | [0] |
4,188,887 | 4,188,888 | Custom title bar with ListView | <p>I have a Activity Extend ListActivity
I want add a LinearLayout or RelativeLayout on top of the list
like a action title
But when I add in XML
List not Display,Why?</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:lay... | android | [4] |
335,560 | 335,561 | Does stop() Only Work With animate()? | <p>I've got a simple setup where when one hovers over the #ProductLink li, #ProductListing ul opens, then closes when the mouse moves away.</p>
<pre><code>$(document).ready( function() {
$("#ProductLink").hover(
function() {
$('#ProductListing').slideDown(200);
},
function() {
$... | jquery | [5] |
939,081 | 939,082 | Simple regular expression pattern for php | <p>How to write a regular expression that will pass a numbers from 60 to 99?</p>
| php | [2] |
3,467,090 | 3,467,091 | PHP var_dump($_SESSION); | <p>I am working on a project and the <code>$_SESSION['username']</code> was not echoing I used the var_dump and this is what I got back from that result my question is how do I fix it.</p>
<pre><code> array(4) {
["SESS_ID"]=> string(1) "2"
["SESS_FIRST_NAME"]=> string(7) "Kevin"
["SESS_LAST_NAME"]=> str... | php | [2] |
216,288 | 216,289 | Get the higher result(s) from a questionnaire with jQuery | <p>I'm trying to build a questionnaire / personality test with jQuery.
I have an object in the end :</p>
<pre><code>results = {
quality1 : 2,
quality2 : 3,
quality3 : 0,
quality4 : 3,
etc
}
</code></pre>
<p>I then want to retrieve the key with the higher value. No problem if there is only one matching result :</p>
<... | jquery | [5] |
5,919,229 | 5,919,230 | getting div current placement | <p>How can I get the div's current postion with jQuery or divs current placement with jQuery</p>
| jquery | [5] |
2,406,885 | 2,406,886 | How to create a ghost mode like app? | <p>I have an android app that needs to hide and only appear when the user dials a specific number. Can I please know exactly how it is done? I have searched and no success. Thanks in advance.</p>
| android | [4] |
5,190,538 | 5,190,539 | how to deal with asynchronous function? | <p>I have two asynchronous objects fn1 and fn2 and sometimes I want to run them synchronously.</p>
<p>For simplicity I wrote the code in this way:</p>
<pre><code>var fn1 = function () {
setTimeout(function () {
console.log("fn1");
},200);
};
var fn2 = function () {
setTimeout(function () {
... | javascript | [3] |
3,217,410 | 3,217,411 | Get the selected value when changing the selected value with jQuery | <p>I'd like when I selected a value in a dropdown get the value selected.</p>
<p>Any idea ?</p>
<p>Thanks,</p>
| jquery | [5] |
658,009 | 658,010 | Button as last item in ListView Android | <p>I need to place a <code>Button</code> to be the last item in the <code>ListView</code>. For example you are scrolling the list view and when you are reaching the end there is a <code>Button</code>, you are clicking it and the list is loading more items and the button is still at the end of that list.</p>
| android | [4] |
800,062 | 800,063 | How do I used values declared in XML on my custom layout? | <p>Im creating a custom layout and I want to use the text declared in the <code>layout.xml</code> file in my layout.</p>
<p>Like when I create a <code>TextView</code> in XML and set <code>android:text=@string/text1</code> when I run the app text view automatically loads the text from android:text. So how can I access ... | android | [4] |
4,487,239 | 4,487,240 | PHP Take a Variable in an If statement literally | <p>I was wondering if it would be possible to do this:</p>
<pre><code>$var = '$something == $somethingelse';
if ($var) { // Say hello }
</code></pre>
<p>and have it mean the same thing as this:</p>
<pre><code>if ($something == $somethingelse) { // Say hello }
</code></pre>
<p>I know this will not work at the momen... | php | [2] |
1,214,635 | 1,214,636 | session object design pattern | <p>I'm looking to build an ajax page; it's a reporting page. By default, load today's report. On the page there's a calendar control and when the user clicks on a date, reload the gridview with the corresponding data. Is it considered good practice to do the following:</p>
<pre><code>1) on the first page load, query t... | asp.net | [9] |
4,407,433 | 4,407,434 | Defining as constants in Java | <pre><code>list.loadRequestParms(request, 'a', 20);
</code></pre>
<p>This method takes three parameters</p>
<ol>
<li>a request object.</li>
<li>a char</li>
<li>an integer</li>
</ol>
<p>Now how to define these as constants somewhere and use it in this method.</p>
| java | [1] |
5,147,465 | 5,147,466 | What is wrong with this PHP code? | <p>I've got a piece of code that keeps failing.</p>
<pre><code> if (isset($_GET ['id']) && $rawdata) {
if ($_SERVER["REQUEST_URI"] != $rawdata ['htmltitle']) {
header("Location: http://".$_SERVER['SERVER_NAME'].".$rawdata['htmltitle'].");
}
}
</code></pre>
<p>The line that fail... | php | [2] |
2,839,975 | 2,839,976 | Get the maximum time of a date | <p>How can I get the maximum time of a DateTime value selected from datetimepicker?
For example '08/21/2011 23:59:59'</p>
| c# | [0] |
2,031,573 | 2,031,574 | learning how to do basic image processing | <p>what are the best tools for c# to do image processing? i am a beginner and want to learn the basics</p>
| c# | [0] |
3,837,040 | 3,837,041 | Deploy Windows Applications with Visual Studio.NET | <p>I have created a window setup file for my window project in visual studio 2008. This setup file is running properly and installed the software in computer. But I want to add a external <code>exe</code> file into my setup project. But this external <code>exe</code> should not be installed on computer. How can I add t... | c# | [0] |
3,872,191 | 3,872,192 | Textview updation | <p>I have array of 15 elements...mObjects and have 7 textviews to display. At first I am loading 7 in the TextView array and then as user goes on click text view should get update i.e. if user got the third element then it should update the 3rd Texvire with the next mObject in a list kind of manner.... My logic works w... | android | [4] |
2,695,631 | 2,695,632 | Why they created a timeout | <p>if u add this to web.config, then if a page have gone through long process, the client will not have a timeout exception.</p>
<pre><code><httpRuntime maxRequestLength="1024000" executionTimeout="36000"/>
</code></pre>
<p>they are timing out things for a purpose, what is it?, I tried to create a website with ... | asp.net | [9] |
2,862,801 | 2,862,802 | ASIHTTP: addOperation when other threads are running | <p>I have a project using ASIHTTP to multi download files from a site</p>
<p>when I add a new request:</p>
<pre><code>[networkQueue cancelAllOperations];
[networkQueue setDownloadProgressDelegate:a];
[networkQueue setDelegate:self];
[networkQueue setRequestDidFinishSelector:@selector(requestDone:)];
NSURL *url =... | iphone | [8] |
3,960,255 | 3,960,256 | Android: how to kill an external application and reset its data | <p>I have seen bits and pieces around but nothing complete (or that worked). Essentially I want to kill an external application and wipe all of its data, essentially resetting the program back to its initial install state. </p>
<p>I am trying this for skype (for example):</p>
<pre><code>try {
Proc... | android | [4] |
2,017,404 | 2,017,405 | What does this line of python mean? | <p>Hey if you look at the following code (that works)</p>
<pre><code>old = 0
new = 2
sel = 4
print 'OnPageChanged, old:%d, new:%d, sel:%d\n' % (old, new, sel)
</code></pre>
<p>It doesnt really make any sense, how can you use mod on a string? And how does (old, new, sel) work. Also, why is the person putting %d in th... | python | [7] |
1,615,009 | 1,615,010 | GCJ cannot find GCCMain class | <p>I am new to linux and programming in general and I can't even seem to get the simple Hello World code to run. Below is what i have done and the error I am receiving, I am using Cygwin. Can anyone help me? </p>
<pre><code>theys@THEYS1 ~/java
$ vim test.java
theys@THEYS1 ~/java
$ ls
helloworld.java test.java
theys... | java | [1] |
4,091,130 | 4,091,131 | In C++ books, array bound must be constant expression, but why the following code works? | <pre><code>#include <iostream>
using namespace std;
int main(){
int n=10;
int a[n];
for (int i=0; i<n; i++) {
a[i]=i+1;
cout<<a[i]<<endl;
}
return 0;
}
</code></pre>
<p>worked fine in Xcode4 under Mac </p>
<p>as said in books, it should be wrong, why?</p>
<p>so ... | c++ | [6] |
2,817,276 | 2,817,277 | Maintain count in python list comprehension | <p>In Python, is there any <code>counter</code> available during the list comprehension as it would be in case of a <code>for</code> loop?</p>
<p>It would be more clear why I need a counter, with this example:</p>
<p>I wish to achieve the following:</p>
<p>Initial List: <code>['p', 'q', 'r', 's']</code></p>
<p>Desi... | python | [7] |
4,610,733 | 4,610,734 | Java set accessed date on file | <p>Is there a way in java to set the access time without setting the date modified time as well?</p>
<p>This will be in essence a touch -a command.</p>
<p>the setLastModified method in File updates both the access time as well as the date modified.</p>
<p>We are currently using java 6. Moving to 7 wouldn't be out o... | java | [1] |
4,362,628 | 4,362,629 | Is Instagram's Feed View based on UIWebView or UITableView? | <p>It looks like UIWebView, but how do they implement that download progress bar and the section bar(very smooth scroll)...?</p>
| iphone | [8] |
5,584,394 | 5,584,395 | Is this really saving allocation? | <p>I've got the following in a static Utility class:</p>
<pre><code>static int[] MonthDays = new int[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
public static int[] GetListOfAllDaysForMonths()
{
return MonthDays;
}
</code></pre>
<p>Is this efficient in that now by call... | c# | [0] |
1,838,604 | 1,838,605 | Can we autocopy the *.dll.config? | <p>when refering to a library assembly, it is auto copied to the final bin directory. However the *.dll.config is not, is there a way to automatically copy this config file?</p>
| c# | [0] |
1,789,841 | 1,789,842 | App.config does not work? | <p>Config Like this :</p>
<pre><code><?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add
name="MyProject.Properties.Settings.Default.dataConnection"
connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=address;
Integrated Securit... | c# | [0] |
1,782,642 | 1,782,643 | android application not working on all versions | <p>I have just worked on my first android application and introduced it in google play. But the application is not working on some android versions. I tried it on Sony Xperia with android 2.3.7 it did not downloaded. But when I tried it on another Sony Xperia phone which was having android 2.3.6 it downloaded and worke... | android | [4] |
1,215,664 | 1,215,665 | how to get returned text from a php page | <p>very simple php question,</p>
<p>for example, demo.php just returns a text like this "hello".</p>
<p>how can i get this text from an another php page ?</p>
<p>UPDATE:</p>
<p>actually i meant page is outputting it like this "print 'hello';"</p>
| php | [2] |
3,973,439 | 3,973,440 | WebForms view engine documentation? | <p>I have maybe very very Simple Question:</p>
<p>Where i can find documentation about expressions and syntax of WebForms view engine?</p>
<p>And what is the difference between </p>
<pre><code><%: expression %>
</code></pre>
<p>and </p>
<pre><code><%= expression %>
</code></pre>
<p>?</p>
<p>in advan... | asp.net | [9] |
5,553,255 | 5,553,256 | How to target android applications to a particular country? | <p>I had developed an application and the app targets only to a specific country.</p>
<p>Is the selection of country in developer console is enough to target the specific country or do I have to do any other settings ??</p>
| android | [4] |
4,470,066 | 4,470,067 | How to show server images in tableVIew? | <p>i am developing a new project. And i am using the JSON Parsing. It required to show images in tableView. but i am using asynchronization Images in my project. but one problem is regard their, when cell is reused, at that time the images is again reload to that cell.
How can we remove the asynchronization in my proj... | iphone | [8] |
229,110 | 229,111 | int to unsigned int conversion | <p>I'm just amazed to know that i can't convert signed to unsigned int by casting!</p>
<pre><code>int i = -62;
unsigned int j = (unsigned int)i;
</code></pre>
<p>I thought i already knew this since i started to use casts but i can't do it!</p>
| c++ | [6] |
362,338 | 362,339 | Are Javascript typed arrays initialized to 0? | <p>I need a typed array, specifically a Float32Array, of all zeros. I was thinking that I would have to clear it manually, but I noticed that when I declared it, it was already zeroed out. Is this something that is specified in the spec? Can I rely on this behavior?</p>
| javascript | [3] |
2,207,365 | 2,207,366 | Android PRL update | <p>Would it be possible to do this programatically? So far we are opening the dialer and dialing *228... but would prefer another method. Any ideas, or possible other directions?</p>
| android | [4] |
6,014,096 | 6,014,097 | java.lang.OutOfMemoryError: bitmap size exceeds VM budget? | <p>friends,</p>
<p>i am using following code to display bitmap on screen and having next and previous buttons to change images.</p>
<p>and getting out of memory error</p>
<p><strong>New Code</strong></p>
<pre><code>HttpGet httpRequest = null;
try {
... | android | [4] |
4,000,433 | 4,000,434 | How to draw a line based on mouse move | <p>I am looking for a way to draw a line on mouse start to end. For example I have DIV and I have moved the mouse in circular way. But I want a line to be drawn in the path mouse is moved. </p>
<p>I am not looking for any HTML5 solution. I want it to be worked even in all modern browsers.</p>
<p>Please help me on th... | javascript | [3] |
2,477,450 | 2,477,451 | How to read location only once with locationManager (GPS and NETWORK PROVIDER) and not any more looking for updates of location? | <p>How to read location only once with locationManager (GPS and NETWORK PROVIDER) and not any more looking for updates of location, to save battery?</p>
| android | [4] |
3,750,938 | 3,750,939 | PHP URL Generation | <p>I have a set of data being returned to a table using PHP and MySQL and I would like to put a link at the end of this data using elements from the row to build the link with some static elements.</p>
<p>i.e. $urlStart/name-installer-date-email-gno$urlEnd</p>
<pre><code><tr>
<th>Installe... | php | [2] |
147,671 | 147,672 | What's the right way to exchange variables between classes? | <p>I have class Config:</p>
<pre><code>class Config
{
public:
Config();
~Config();
void Read();
CData var; //CData - some config structure
};
</code></pre>
<p>What's the right way to access the values from other classes? There are a few options:</p>
<ol>
<li>make it global</li>
<l... | c++ | [6] |
2,005,126 | 2,005,127 | regular expression to the following string | <p>let me know I can use that expression to extract the url in the following code</p>
<pre><code><div class="bg-movie alpha omega">
<img class="alignnone size-full wp-image-7282"
title="CineMundo Tu Mejor Lugar El Caballero de la Noche Asciende"
src="http://www.cinemundo.cl/sitio/wp-conten... | php | [2] |
1,539,934 | 1,539,935 | How to append a DIV Banner Block to a HTML Page using jQuery | <p>I am using jQuery 1.3.2 and I was wondering if I could pls get some assistance on whether the following is achievable and if so, how can it be done - examples would be great.</p>
<p>Basically, I have an iframe src page that displays a report to a user. Now because it's in an iframe, there is no banner on that page ... | jquery | [5] |
4,530,950 | 4,530,951 | how to turn off buttons within a variable? | <p>I have a piece of code below where it contains 26 buttons from A-Z. Each button can be turned on and turned off.</p>
<pre><code><?php
$a = range("A","Z");
?>
<?php
$i = 1;
foreach($a as $key => $val){
if($i%7 == 1) echo"<tr><td>";
echo"<input t... | jquery | [5] |
5,535,993 | 5,535,994 | What should I be aware of when building my own HMVC PHP framework? | <p>I am in the process of building my own glue php framework. I like the way that Codeigniter and Nette is working, however they lack a couple of things and some of the things I need to be done differently.</p>
<p>I am planing to study Zend Framework 2 and Symfony2 how they are doing things.</p>
<p>However, I will pr... | php | [2] |
3,391,283 | 3,391,284 | Python list traversal with gaps | <p>Hi I have a multidimensional list such as:</p>
<pre><code>my_list = [[1,2,3,1,2],[1,0,3,1,2],[1,0,0,0,2],[1,0,3,0,2]]
</code></pre>
<p>where 0 represents a gap between two pieces of data. </p>
<p>What I need to do is iterate through the list and keep track of how many gaps are in each sublist and throw away the z... | python | [7] |
671,851 | 671,852 | Generics Vs Object in C# clarification | <p>I tried to create class with similar implementation.
One using boxing/unboxing at constructor, while other using Generics.</p>
<p>Then tried to create the object for both class 1,000,000 times.
when i run the 'for loop' for Obj class first i am always getting longer time for Obj creation, But when i run the 'for lo... | c# | [0] |
4,619,573 | 4,619,574 | Has anyone used ThumbsUp PHP voting script? | <p>I'm trying to use a PHP voting script called ThumbsUp: <a href="http://www.geertdedeckere.be/shop/thumbsup/" rel="nofollow">http://www.geertdedeckere.be/shop/thumbsup/</a></p>
<p>Also I'm using MediaTemple for the hosting.</p>
<p>I was curious if anyone else has used this script because i'm having some problems an... | php | [2] |
5,931,767 | 5,931,768 | RealTimeExample needed on static field without final keyword | <p>Could you please explain me any real time scenario (or) JAVA API examples for static field without final keyword ?</p>
<p>I have seen in Runtime.java; to make singleton They have declared like below </p>
<p>private static Runtime currentRuntime = new Runtime(); </p>
<p>But here also we need final right ? </p>
| java | [1] |
1,152,890 | 1,152,891 | Can two variables be used in a function at once? | <p>The function <code>check_porn_terms</code> below checks to see if a variable contains terms that are not family friendly, and it it does, then re-directs the user back to the main page. </p>
<p>As listed below, it checks to see if the variable <code>$title</code> has non-family friendly terms. I would like to per... | php | [2] |
891,384 | 891,385 | Glitch in my script moving images | <p>I'm getting a strange glitch in my javascript (logic error) i'm not sure if its my maths or the way i have structured my code.</p>
<p>The idea i have is to left click and drag to scroll around a map on a canvas. It works perfectly except, when i mouse down to scroll a second time, the map resets back to its x0y0 of... | javascript | [3] |
4,781,424 | 4,781,425 | jQuery, Toggle within toggle | <p>I'm trying to create some sort of "spoiler" for a forum. It's pretty simple, though i'm fairly new to jquery. But now i got this problem when placing a toggle div element inside another toggle div element, the 2nd toggle doesn't work. Can anyone point me in the right direction?</p>
<p>Jquery</p>
<pre><code>$(docum... | jquery | [5] |
3,534,231 | 3,534,232 | Best PHP training? | <p>I'm striving to be a good programmer, I used to be among the best around people who were learning at the same time I was, but I reached a plateau and I don't understand why other programmers know so much more than I do. I can't be useful anymore, I fail all tests for good jobs, etc. </p>
<p>Should I get php trainin... | php | [2] |
1,124,944 | 1,124,945 | How to define my own js function in jsfiddle? | <p>I want to test how my own function <code>update</code> works on <a href="http://jsfiddle.net/radek/cguQR/2/" rel="nofollow">jsfiddle</a> but when I click the button I get an error that update is not defined.</p>
<p><strong>How can I use my own functions on jsfiddle?</strong></p>
| javascript | [3] |
2,134,739 | 2,134,740 | Asp.net Update Panel | <p>I am working in asp.net 3.5 and have some issue of update panel.I have some html content and Formview control in a page. I want to hide the html content when there is no data in the Formview and to show when there is data in the Formview control. My Formview control is in the updatepanel and it it is bind to SqlData... | asp.net | [9] |
2,676,360 | 2,676,361 | memory management for vector of pointers | <p>Suppose I have a class like this:</p>
<pre><code>class MyClass : private vector<AnotherClass*> {
//some codes
}
</code></pre>
<p>How do I implement its destructor? I am new to C++ and have totally no clue on this.</p>
<p>Thanks in advance!</p>
<p>edit: fixed the syntax,thx for remaindering me!</p>
| c++ | [6] |
2,122,205 | 2,122,206 | python how to parse "user:12345 location:ny search" | <p>I want python to parse string ""user:12345 location:ny search"</p>
<p>Then I can use:</p>
<pre><code>if "user" in string:
....
if "location" in string:
...
</code></pre>
<p>Any existing way to do this?</p>
| python | [7] |
4,383,834 | 4,383,835 | Is this uploading script correct? | <p>I have a folder known as "Mobile_App" and in that folder is a html page which contains a file input, a php script which uploads files, and a folder known as "ImageFiles".</p>
<p>The problem is that the files are not being uploaded into the "ImageFiles". What I want to know is that is the code below correct when it ... | php | [2] |
3,505,133 | 3,505,134 | fetch the list of location with a particular location as center and radius (say 50km) , using google location API | <p>I need the list of locations (areas/subareas) in a particular city.</p>
<p>I thought, google api might be a possible option to fetch this. if i pass city's lat/long and radius then there must be some way to fetch the list of locations.</p>
<p>however i could not find any possible solution?</p>
<p>Can any one help... | javascript | [3] |
4,825,606 | 4,825,607 | Need a Sample Application to connect, retrieve and Send data to health vault site | <p>Hi need a sample Application to connect to the <strong>Microsoft HealthVault</strong> platform where I need the Following things to be done:</p>
<ol>
<li>Application should Send and store the data in the health vault site.</li>
<li>Application should retrieve the data from the health vault site to my application.</... | asp.net | [9] |
5,301,745 | 5,301,746 | C++ desktop applications framework | <p>I am not new to c++,but i have not found a c++ desktop applications framework.I have found one and it seems to complex.Are there other frameworks available for c++ out there?.</p>
| c++ | [6] |
5,912,988 | 5,912,989 | Iterate through all the properties of an object skipping first one | <p>Is there any method to skip iterating first element like gt(0) in jQuery<br>
This is the code I am using </p>
<pre><code> for(var prop in item){
alert(prop + " = " + item[prop]);
}
</code></pre>
| javascript | [3] |
2,101,271 | 2,101,272 | What would cause IE to error Object doesn't support property or method 'removeChild'? | <p>I'm trying to remove 2 divs and append them at the same time. This is my script. </p>
<pre><code> parent = document.getElementById("wrap");
if(parent){
child = document.getElementById("chart1b");
parent.removeChild(child);
var g = document.createElement('div');
... | javascript | [3] |
4,022,642 | 4,022,643 | Only certain rows on select list | <p>I have a dropdown select form which is based on a "brand" table that has more than 150 brand_name(s) with corresponding brandid(s).</p>
<p>As you can see in the code below, I all the brands/rows will appear in the dropdown form. I'd like to know if there is a way to exclude certain brands (without deleting them fro... | php | [2] |
4,274,038 | 4,274,039 | How to scan QRCode in android | <p>Hi I found <a href="http://code.google.com/p/zxing/wiki/ScanningViaIntent" rel="nofollow">a tutorial </a> How to scan a barcode. But In my application I have to scan QRcode. How to scan QRcode in android. </p>
| android | [4] |
4,358,097 | 4,358,098 | Difference between "Build Target SDK" in Eclipse and android:targetSdkVersion in AndroidManifest.xml? | <p>As I'm importing an existing Android project into Eclipse, I am asked to select an SDK build target as part of the process.</p>
<p>Why do I need to enter this information?
How is this different from the android:targetSdkVersion/android:minSdkVersion values specified in AndroidManifest.xml?</p>
<p>For example, in t... | android | [4] |
5,968,152 | 5,968,153 | How to convert a string to a Guid | <p>I did not find the TryParse method for the Guid. I’m wondering how others handle converting a guid in string format into a guid type.</p>
<pre><code>Guid Id;
try
{
Id = new Guid(Request.QueryString["id"]);
}
catch
{
Id = Guid.Empty;
}
</code></pre>
| c# | [0] |
5,580,266 | 5,580,267 | whats wrong with this code? I am not able to extend the Number object | <pre>
<code>
Number.prototype.xx = function(){
alert("hi");
}
5.xx();
</code>
</pre>
<p>I am trying to extend Number using prototype.</p>
| javascript | [3] |
3,452,199 | 3,452,200 | Does an Android package store a developer/company/author name? | <p>I've just been trying out creating a list of applications installed on Android. I want to do this so I have a list of applications I've installed before I backup and reset my phone to factory settings. </p>
<p>It's going well so far, I have this information: </p>
<ul>
<li>package Name</li>
<li>friendly name</li>... | android | [4] |
3,157,251 | 3,157,252 | EOD not ending? | <p><img src="http://i.stack.imgur.com/cs5fw.jpg" alt="alt text"></p>
<pre><code><?php
// Page class
class Page {
// Declare a class member variable
var $page;
var $title;
var $year;
var $copyright;
// The Constructor function
function Page($title, $year, $copyright){
// Assign values to member variables
$this-&... | php | [2] |
5,475,129 | 5,475,130 | Catching runtime errors in application executed by os.system | <p>In my application, os.system is used to execute another program.</p>
<pre><code>os.system('./appln')
</code></pre>
<p>Is there any way to detect if a runtime error occurs in the program being executed [ for example, like a SIGSEGV]?</p>
| python | [7] |
140,956 | 140,957 | getting values with preg_match_all | <p>How can i get each value returned by PHP preg_match_all using for each loop, because i want to insert each value in database.
Thanks</p>
| php | [2] |
113,216 | 113,217 | Setting a nibble of a 32-bit integer to a certain value | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/14427737/setting-the-nibble-for-an-int-java">Setting the nibble for an int - java</a> </p>
</blockquote>
<p>I am stuck on how to replace a 4-bit value to a certain position of an original 32-bit integer. All hel... | java | [1] |
1,083,928 | 1,083,929 | JQuery modal dialog HTML not updating | <p>After clicking a button in my modal JQuery dialog, I want to update the html in the dialog to show text and an image indicating that work is in progress (spinner, etc.). When I do in the example below, the html doesn't update. It's as if that code never executes, or executes too late so the change isn't visible. How... | jquery | [5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.