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,942,890 | 4,942,891 | Adding objects to a ListView row at runtime | <p>I am trying to add elements to a ListView dynamically at runtime. Here is my code.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+... | android | [4] |
5,673,849 | 5,673,850 | How can i send message to handler from a static function? | <p>I know, this is again a repeated question but my case it is different question.</p>
<p>I have a class abc with a static function & a Handler. Earlier i couldn't able call handler from a static function. Then i googled for <strong>Access a non-static function from a static function</strong> & found an soluti... | android | [4] |
1,643,300 | 1,643,301 | PHP, select a string between two strings, then get one value from the selected string | <p>I have a file, with many parts of code.
Each part starts with <code><form></code> and ends with <code></form></code>.
Between each form, there is something like this: <code><input type='text' name='date' value='2010-01-01'><input type='text' name='username' value='test'></code></p>
<p>I want... | php | [2] |
2,954,050 | 2,954,051 | jQuery array validation | <p>Is there any way to accept number from 10 to 50 along with 'AB' and 'NF'-</p>
<p>Following code accepts 0 to any number along with 'AB' and 'NF'</p>
<pre><code> <script>
$.validator.addMethod("custom_number", function(value, element) {
return this.optional(element) || value == "AB" || va... | javascript | [3] |
374,430 | 374,431 | Handling an interactive script from another script , using python | <p>I have a shell script and this one is interactive and I am creating some automation to provide inputs to this shell scripts. The automation is done using Python. example,</p>
<p>the shell script waits for an input like, "what is the domain name?"
now the python should be able to provide the input and press ENTER. <... | python | [7] |
3,641,193 | 3,641,194 | Effective way how to break add new line in String after x chars | <p>I have some long String which containt 500 row. each row has over 300 chars. How I can add new line in the row after x chars ?</p>
| java | [1] |
27,675 | 27,676 | How to delete files from directory based on creation date in php? | <p>I have a cache folder that stores html files. They are overwritten when needed, but a lot of the time, rarely used pages are cached in there also, that just end up using space (after 5 weeks, the drive was full with over 2.7 million cache files). </p>
<p>Whats the best way to loop thru a directory that contains se... | php | [2] |
162,745 | 162,746 | How does one use Javascript to select a value from a drop down list and pass that value as a var to another function? | <p>I know this is simple, but I can't get it working. I'm hoping someone here can help.</p>
<p>First off, this is part of a web app for iOS.</p>
<p>Okay, I have a list of items:</p>
<pre><code>Room Type: <select id="isoList" name="isoList">
<option></option>
<option value="20">ISO 8 Life Scie... | javascript | [3] |
1,417,675 | 1,417,676 | Dynamically added views in linearlayout | <p>dynamically i am creating the linear layout and adding the views to linear layout every 5 sec i need to update data to linear layout from db when i check logger output it is adding to linear layout but gui it is not updating for every 5 sec updation i am using scheduleatfixed timer task </p>
| android | [4] |
2,281,730 | 2,281,731 | Custom textfield in uitableviewcontroller | <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
//static NSString *CellIdentifier = @"Cell";
NSString *CellIdentifier = [NSStringstringWithFormat:@"S%1dR%1d",indexPath.section,indexPath.row];
UITableViewCell *cell = [tableView dequeueReusab... | iphone | [8] |
4,469,148 | 4,469,149 | Android gallery item jerks when it comes to focus | <p>I am inflating a listview in one of the item in gallery. When I scroll through gallery and when my list view is in focus I observe a slight jerk in the gallery.</p>
<p>How to avoid the jerk?</p>
<p>Please let me know the solution if any.</p>
<p>Thanks.</p>
| android | [4] |
4,571,534 | 4,571,535 | An array of objects as an argument of a function error in c++ | <p>I have a templated class Node and I want to create an array of its object and pass it to a function. How do I do that?</p>
<pre><code>Node<char> w1, w2, w3, w4;
Node<char> **s1 = new Node<char>* [3];
s1[0] = &w1; s1[1] = &w2; s1[2] = &w3;
w4.meet_neighbors(s1);
</code></pre>
<p>where ... | c++ | [6] |
1,114,923 | 1,114,924 | How to remove automatic picture rotation? | <p>I have a problem with pictures; after I take a picture, it automatically rotates 90-degrees. How I can remove this? I need a portrait picture.</p>
<pre><code> public void surfaceCreated(SurfaceHolder holder)
{
try
{
camera.setPreviewCallback(this);
camera.setPreviewDisplay(holder);
Came... | android | [4] |
2,785,186 | 2,785,187 | How to solve this problem without the use of if-else statements? | <p>I have just started my C++ lecture class. And the teacher has given us the following assignment.</p>
<blockquote>
<p>Write a program that determines whether a number is even or odd.</p>
</blockquote>
<p>The logic I would use for the program is.</p>
<ol>
<li>Get input <code>a</code>.</li>
<li>Store <code>a % 2</... | c++ | [6] |
5,986,818 | 5,986,819 | Why does PHP syntax uses $ symbol to define vars? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2257460/why-does-php-have-a-sign-in-front-of-variables">Why does PHP have a $ sign in front of variables?</a> </p>
</blockquote>
<p>Why php uses $ symbol to define vars? </p>
<p>I there a reason why? </p>
| php | [2] |
4,631,459 | 4,631,460 | SMSlog backup in android | <p>please help me to find the code to store sms logs in android.I have to work on the app to store calllog and smslog.I got code for calllog but smslog I couldnt get the proper code.
I only need to get the name, number ,msgtext,date and time of smslog from the phone.please help me to get some code.Thanks for any help.<... | android | [4] |
1,489,958 | 1,489,959 | mt940 reader for php | <p>I'm looking for a mt940 reader for PHP. Does anyone have experience with this? An mt940 file is an electronic file with bank transactions.</p>
<p>I already found this script but i don't get it working.</p>
<p><a href="http://www.kingsquare.nl/php-mt940" rel="nofollow">http://www.kingsquare.nl/php-mt940</a></p>
<p... | php | [2] |
1,253,065 | 1,253,066 | String date to date object in python | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1713594/parsing-dates-and-times-from-strings-using-python">Parsing Dates and Times from Strings using python</a> </p>
</blockquote>
<p>I'm reading a string</p>
<pre><code>"2011-06-11"
</code></pre>
<p>How can ... | python | [7] |
1,414,155 | 1,414,156 | include javax.sound.midi in my android application | <p>facing problem to work with midi file in android </p>
<pre><code>i am unable to find the javax.sound.midi jar file .. any where in google..
from where do i find this jar.
and how do i include this jar
i want the sheet music from midi files but i did'nt get any sample or solution ..in android
pl... | android | [4] |
1,932,859 | 1,932,860 | How can i restore the messages in android | <p>I am able to getting all messages with its data, type ,address,status etc. but i am not able restore these messages.I tried the following way.it insert correctly but it show current date not date of message recieved or send.Please help me how can i restore messages.</p>
<pre><code> ContentValues values = new Con... | android | [4] |
1,139,427 | 1,139,428 | Export gridview to MS word preserving formatting | <p>Is there a way to export a gridview to MS word and keep the formatting from the gridview. The code below works to export the gridview but I cannot figure out how to keep the formatting. (I cannot use any 3rd party software)</p>
<pre><code> Response.Clear()
Response.Buffer = True
Response.AddHeader("con... | asp.net | [9] |
3,623,682 | 3,623,683 | Javascript Opera + Safari issue | <p>For some reason this page won't work in Opera + Safari <a href="http://dev.reggi.com/clients/mike2/" rel="nofollow">http://dev.reggi.com/clients/mike2/</a></p>
<p>this is the main code I wrote that I believe is failing:</p>
<pre><code>/*this script finds the multiples of the box_width and makes that the with of th... | javascript | [3] |
3,794,887 | 3,794,888 | get Double.NOTANUMBER from default(T) when T=double, is it possible? | <p>I need help for a problem in my application.
In my application , I need to use double.NotANumber when I make Default(T) and the type of my generic is double. But what I get is "0.0".
Is they a way to get the value I need????</p>
| c# | [0] |
3,008,608 | 3,008,609 | ASP.Net: Get page url from inside a frame | <p>How can I get the top page URL from inside a frame?</p>
<p>(in javascript it's implemented using : window.top.location)</p>
| asp.net | [9] |
814,962 | 814,963 | Check all $_POST Variable at once | <p>instead of checking all my post variables from a form one at a time is there any way to run one check to atleast verify that they are not empty something like</p>
<pre><code>if(!isset(ALL $_POST)){
echo "one of your fields is not completed.";
}
</code></pre>
| php | [2] |
3,099,347 | 3,099,348 | Weird Python behavior | <p>I wrote a code in python which looks like:</p>
<pre><code>maplist=[{}]*11
mylist=[0]*11
maplist[0]['this']=1
print maplist
</code></pre>
<p>When I print maplist the output is :</p>
<pre><code>[{'this': 1}, {'this': 1}, {'this': 1}, {'this': 1}, {'this': 1}, {'this': 1}, {'this': 1}, {'this': 1}, {'this': 1}, {'th... | python | [7] |
3,081,754 | 3,081,755 | What are the most important things to learn about Java Programming? | <p>I have a good understanding of object oriented programming but it's been a while since I programmed. I want to learn it again. What are the most important aspects of Java programming that are important to learn so I can identify myself as a programmer. I had trouble learning Swing before and I gave up but I want to ... | java | [1] |
1,511,071 | 1,511,072 | screen launching in anrdoid | <p>hai....i got a question...</p>
<p>Suppose Screen1 is the main screen of an Android application MyAndroid. Now if another screen, Screen2 has to be opened from Screen1, then which of the following are true?</p>
<ol>
<li>Screen2 has to be a part of MyAndroid.</li>
<li>Screen2 can exist in any other Android applicati... | android | [4] |
4,384,104 | 4,384,105 | Java Bit Operation Issue | <p>I have incoming bits like, 0, 1, 11, 10 etc. Which I store in a string. Then I convert the string to an Int.</p>
<p>Now, suppose Int A = "011" and Int B = "00". Is it possible in java to know, how many bits was there in the string which I have converted to the Int. Thanks.</p>
| java | [1] |
644,002 | 644,003 | passing parameters to the java program while running it through php | <p>i wanted to pass parameters to the java program when i run it through php script
could anyone tell me how to do that</p>
| php | [2] |
2,105,123 | 2,105,124 | how to resize image in javascript or jquery | <p>i am trying to resize a image by 50% how would i be able to do that can some one lead me the the right path please</p>
<p>Thank You</p>
| jquery | [5] |
3,812,818 | 3,812,819 | Get Root Directory Path of a PHP project | <p>I have this folder structure in my PHP project.
(this is as shown in eclips) </p>
<pre><code>-MySystem
+Code
+Data_Access
-Public_HTML
+css
+js
+Templates
-resources
</code></pre>
<p>When I try this code</p>
<pre><code>echo $_SERVER['DOCUMENT_ROOT']
</code></pre>
<p>output... | php | [2] |
3,872,758 | 3,872,759 | Export Credit Card Data from Volusion | <p>We have a client using Volusion as a storefront/e-commerce solution. We need to export purchase data, including credit card information, from it into a fulfillment provider who will then run a customer's credit card only when/if the item they ordered ships.</p>
<p>We have access to the server running IIS, we have t... | asp.net | [9] |
3,158,595 | 3,158,596 | How to write a function that checks if a variable is defined and is a number? | <p>In the past when I needed to check if a variable was set <strong>and also</strong> a number, I would do:</p>
<pre><code>if( isset($_GET['var']) && is_numeric($_GET['var']) )
</code></pre>
<p>But I think that's kind of ugly, especially when I need to check a bunch of variables in the same if statement, so I... | php | [2] |
5,181,520 | 5,181,521 | javascript add rel facebox | <p>i want to enable facebox jquery using javascript.</p>
<p>here in normal html </p>
<pre><code><a href="stairs.jpg" rel="facebox">text</a>
</code></pre>
<p>how do in javascript ?something like this?</p>
<pre><code>document.location.href="stairs.jpg";
document.location.rel="facebox";
</code></pre>
| javascript | [3] |
2,164,967 | 2,164,968 | Displaying corresponding content panels when table row is hovered | <p>I need to display 2 sets of content when a table row is hovered.
The pre-hovered state displays generic information in the two target areas <a href="http://i.stack.imgur.com/OfyE6.png" rel="nofollow">1</a> Explanation and [2] Actions.
When user hovers a table row, the Explantation and Actions content are replaced wi... | jquery | [5] |
632,874 | 632,875 | How and When does JVM becomes out of memory | <p>I was asked in a interview : How to make JVM run out of memory?</p>
<p>I answered saying it may be done by having an infinite loop. I am pretty sure it was not a right answer.</p>
<p>What was the answer he might be expecting for?</p>
| java | [1] |
3,564,091 | 3,564,092 | book mistake php | <p>helo everyone</p>
<p>This is a code from a book i have bought. It gives me the following error.</p>
<p>syntax error, unexpected T_STRING, expecting T_PAAMAYIM_NEKUDOTAYIM in </p>
<pre><code>preg_match (‚#<!-- START ‚. $tag . ‚ -->(.+?)<!-- END ‚.$tag . ‚ -->#si', $this->content, $tor);
$tor = str_r... | php | [2] |
726,846 | 726,847 | Trigger right click using pure Javascript | <p>How can I manually <strong>trigger</strong> a <strong>right</strong> click using Javascript?</p>
<p>I can do this with jQuery but I can only use pure Javascript in this case.</p>
| javascript | [3] |
1,441,503 | 1,441,504 | PHP header shows blank page - how to trace it sent any other header before this? | <p>I tried with making <code>display_errors</code> to 1 and <code>error_reporting(E_ALL)</code> to check whether any error or something. Code looks fine but it fails to redirect the page. It shows just blank page . If I use echo <code>'<script> window.location = 'someusrl'; </script>'</code> it works.</p>
... | php | [2] |
2,980,321 | 2,980,322 | Achieving easing functions with smaller values | <p>I am using some easing functions in C# which give <code>Ease In</code> and <code>Ease out</code> effects. However, what I am trying to achieve with these easing functions does not give an observable effect.</p>
<p>For eg:</p>
<pre><code>int x=2;
while(x<200)
SetSomething(x = EaseIn(x, 1, EasingType.Quadratic));... | c# | [0] |
4,214,070 | 4,214,071 | Adding stored procedures back up to the existing file | <p>Hi my application does back up of table structure and table data and exports data into a text file . To that existing test file i am trying to export stored procedures backup data as well . I mean i am trying to append this .</p>
<p>Let say if my test file is 120202.txt which has table structure in it and now for s... | c# | [0] |
1,929,716 | 1,929,717 | How to include file from another directory | <p>In the root (www) I have two folders.</p>
<p>In the first folder, "folder1", I put a file called register.php.</p>
<p>In the next folder, "folder2", I put files called header.php and footer.php.</p>
<p>I need to include the header and footer files from folder2 in the register.php file.</p>
<p>How can i do this? ... | php | [2] |
4,992,191 | 4,992,192 | listview and round corner doesn't work | <p>What I want:
I'am using a Listview and I want to use this view with round corners.</p>
<p>Situation:
A listview without round corners :-( .</p>
<p>I use different examples to define a customShape</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/a... | android | [4] |
442,430 | 442,431 | (C#) How to read all files in a folder to find specific lines? | <p>I'm very new to C# so please have some extra patience. What I am looking to do is read all files in a folder, to find a specific line (which can occur more than once in the same file) and get that output to show onscreen.</p>
<p>If anyone could point me in the direction to which methods I need to use it would be gr... | c# | [0] |
2,548,545 | 2,548,546 | How do I stop setNeedsDisplayInRect / drawRect coalescence? | <p>When programming my app, I get to the point where I have to update two rectangles on the screen. So I call [self setNeedsDisplayInRect:rect1] and then [self setNeedsDisplayInRect:rect2]. When my drawRect method is called, the rectangle parameter is the smallest rectangle which contains both rect1 and rect2.</p>
<... | iphone | [8] |
3,017,915 | 3,017,916 | How does PHP Work? | <p>We have all seen many question on StackOverflow that are founded upon the idea that PHP works like Javascript. Where the person clearly does not understand that PHP is a <em>Preproccessor</em> and only works before the page is sent out. </p>
<p>A clear example of this is in the following code, where <code>runComman... | php | [2] |
5,636,655 | 5,636,656 | Android: How to Saparate the Movable(Phone to SD) app and Phone Only app effectively | <p>As I am trying to separate the android app whether it is movable to SD or not by its manifest specified attribute such as <code>installLocation</code>. if it is "auto" or "preferExternal" then the given app is movable to SD else not. this is working fine. but the problem is that some app are displayed in movable app... | android | [4] |
2,782,929 | 2,782,930 | pyhook in linux | <p>I want to create my keylogger for learning purpose and it is for linux in Python,I had made some research in google and i found pyhook and pythoncom will do my job in windows and for linux i found simplekeylogger from sourceforge.net but it uses Xlib but i need some thing from command line to do,if you people find a... | python | [7] |
5,644,216 | 5,644,217 | php setting text | <p>I'm working on a site in php. Originally I had a lot of html pages but they were all very similar in that they had a heading, an image, and some text. I was able to consolidate my pages into one php page and pass in the heading and image name as GET variables. I wouldn't want to pass a lot of text this way though... | php | [2] |
4,984,551 | 4,984,552 | Max connections | <p>What is max connections in a web.config?</p>
<p>If it is 40, does it mean only 40 users can be connected at a time?</p>
<p>Thanks.</p>
| c# | [0] |
3,258,711 | 3,258,712 | C# .net Get FullName from Process ID | <p>how to get FullName(path) from Process ID</p>
<p>For example if int id = 234</p>
<p>how to find the location of id;</p>
<pre><code>int Id = Convert.ToInt32(lvprocesslist.SelectedItems[0].SubItems[1].Text);
string s = Process.GetProcessById(Id).MainModule.FileName;
Console.WriteLine(Path.GetFullPath(s));
</code>... | c# | [0] |
5,343,228 | 5,343,229 | Garbage Collection in java | <p>While isolating reference (islands of isolating) a class objects say like the below code</p>
<pre><code>public class Island {
Island i;
public static void main(String [] args) {
Island i2 = new Island();
Island i3 = new Island();
Island i4 = new Island();
i2.i = i3; // i2 ref... | java | [1] |
940,879 | 940,880 | Preventing users from abusing an image deletion script | <p>Basically the following for the core part:</p>
<pre><code>$file = basename($_GET['f']);
$directory = "/var/www/site/";
$file = $directory . $file;
$hash = $_GET['h'];
$md5check = md5($file);
$md5check = substr($md5check, 0, 5);
if ($md5check == $hash) {
if (file_exists($file)) {
unlink($file);
}
... | php | [2] |
1,821,403 | 1,821,404 | Android images confusion? | <p>I have say 30 images in my android app. And as per android's documents I should have images for all screen resolution i.e. I should have drawable, drawable-mdpi, drawble-hdpi etc. </p>
<p>Does this mean that I will end up having and asking the user to download 30*4=120 images, or does the android platform check bef... | android | [4] |
1,085,099 | 1,085,100 | How do I use Linq Sum After grouping by | <p>I have a list of records i.e.</p>
<pre><code>Id, Activity, Marks
1, A, 12
1, B, 14
1, B, 15
2, A, 1
2,A,100
</code></pre>
<p>I want to group the records by Id and Activity and then return the sum of the records.</p>
<p>How do I achieve that using LINQ? E.g. result should be:</p>
<pre><code>Id, Activity, TotalMar... | c# | [0] |
5,773,219 | 5,773,220 | how to search in array and return all values or keys of element that contains the value searched for | <p>I want to create a function that returns all the values that contains the value searched for.</p>
<hr>
<p>for example:
I have an array of these values: "red", "green", "blue"</p>
<hr>
<p>if I searched for "re" the result would be: "red", "green" or the keys 0, 1</p>
| javascript | [3] |
4,026,511 | 4,026,512 | changing label value in background? | <p>i am changing the label's value through timer(having interval of 1 second) by incrementing the count of an integer variable...
I close the app....label starts incremented its value from where it was stopped...so app resumes it self from where it was stopped...but is there any way to take the labels value to the time... | iphone | [8] |
3,879,716 | 3,879,717 | App is running on galaxy tab 2 7.0 but not running on galaxy tab 7.0 plus | <p>I have developed an app for kids and uploaded it on Google Play. It's working well on Galaxy Tab 10.1, Galaxy Tab 2 7.0, Galaxy Nexus, Galaxy Note and Galaxy S3. I've changed the api level from 2.2 to 4.1. A user downloaded the app on Galaxy Tab 7.0 Plus ICS and complained of an issue: the app hanged and was not res... | android | [4] |
5,243,267 | 5,243,268 | Using doctests from within unittests | <p>I typically write both unittests and doctests in my modules. I'd like to automatically run all of my doctests when running the test suite. I think this is possible, but I'm having a hard time with the syntax.</p>
<p>I have the test suite</p>
<pre><code>import unittest
class ts(unittest.TestCase):
def test_null... | python | [7] |
1,779,286 | 1,779,287 | Android: Trying to make a simple slide show app | <p>I'm trying to make a slide show app, but cannot figure out how to get the pictures to display in the background. This is what I was going to do</p>
<p>I was going to use the background property of a <code>LinearLayout</code>.
The problem is that the <code>setBackgound</code> takes in a resourceid, </p>
<p>From pr... | android | [4] |
5,102,097 | 5,102,098 | How to use another layout id? | <p>In my application I have used one alert box.. In this alert box, I give another layout to be show.. using <code>setView()</code> method.. I have a problem. How to use layout elements id in my activity?</p>
<pre><code>LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
... | android | [4] |
1,395,325 | 1,395,326 | Customview like tableview in iphone SDK? | <p>I want to do custom tableview which scrolls horizontally.If you see this <a href="http://www.roambi.com/roambi_on_iphone.html" rel="nofollow">URL</a></p>
<p>If you go to SUPERLIST tab in flash iphone simulator,you can see one column is differed from other columns which scrolls horizontally.any idea to do this?any h... | iphone | [8] |
466,098 | 466,099 | How right add image in div? | <p>Good day</p>
<p>Script:</p>
<pre><code>var img_src="../Images/" + data;
$("#div_yui_img").html(\'<img src="img_src" id="yui_img" height="100" width="100">\');
</code></pre>
<p>but after add in html i see:</p>
<pre><code><div id="div_yui_img"><img src="img_src" id="yui_img" height="100" width="100"... | jquery | [5] |
5,174,371 | 5,174,372 | calling chain method in javascript | <p>I am using the following code but it is constantly giving me errors :</p>
<blockquote>
<p>TypeError: container("accounts").atPosition("#left-top") is undefined</p>
</blockquote>
<p>the code is :</p>
<pre><code>function container(name, position) {
return {
pos: null,
atPosition: function(posi... | javascript | [3] |
2,757,600 | 2,757,601 | Android Launcher Icon Size | <p>For HDPI and XHDPI what is the ideal size of the launcher icon respectfully? Will i have to create 9Patch images for the icon to scale automatically, or would it be better to create separate icons ? </p>
<p>Kind Regards, </p>
| android | [4] |
2,583,581 | 2,583,582 | How many max timers can an android application create | <p>Anybody know How many max timers can an android application create?</p>
| android | [4] |
3,531,450 | 3,531,451 | How to manage xmlns to be able to execute an xpath query? | <p>I would like to get some specific values in a (x)html file using an xpath statement.<br>
I read the html file like an xml file using the xmlDocument class.<br>
Problem is that my xpath query doesn't work because of the namespace defined in the html tag:</p>
<pre><code><html xmlns="http://www.w3.org/1999/xhtml"&g... | c# | [0] |
3,770,600 | 3,770,601 | How do I initialize a PHP variable? | <p>I am fairly new to PHP (less than a year), and to improve my development environment, I recently started using NetBeans IDE.</p>
<p>A warning keeps popping up everywhere stating that <strong>"Variable might not have been initialized"</strong>. </p>
<p>I'll give an example of a variable that results in this hint/wa... | php | [2] |
223,454 | 223,455 | Edit MP4 metadata using Python | <p>I need to give attributes (meta data) to a file in python code on Linux, specifically Ubuntu.</p>
<p>Specifically I need to set the author, title, album, etc. on MP4 files.</p>
| python | [7] |
1,866,015 | 1,866,016 | var vs explicit declaration | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/41479/use-of-var-keyword-in-c">Use of var keyword in C#</a> </p>
</blockquote>
<p>Hi,
Just moved job and I make large use of var.
Previous job we were doing lots of TDD and using resharper.</p>
<p>In this job t... | c# | [0] |
1,864,855 | 1,864,856 | How to make create a dependency between a Jar and a project using only commandline? | <p>I made two projects P1 and P2 in eclipse IDE. P2 depends on P1. I did not create any dependency between P1 and P2. I want to convert P1 to Jar and then make P2 use that Jar.</p>
<p>How do I do this using the commandline ? Is there a commandline inside eclipse which I could use ? If not, I will use the good old comm... | java | [1] |
3,524,896 | 3,524,897 | Is there any wrapper for gecko in gtk# | <p>Is there any wrapper for gecko in gtk#? I couldn't find any, despite I could find a wrapper for WinForms, which apparently aren't useable cross plaform. (They can be compiled cross platform, but my experience with WinForm in linux is more than horrible)</p>
| c# | [0] |
4,000,172 | 4,000,173 | How to draw a ring using canvas in android? | <p>Can anybody suggest me how to draw a ring using canvas methods. I may draw to circles using <code>canvas.drawCircle()</code> but how should I feel a space between them?</p>
| android | [4] |
4,694,468 | 4,694,469 | constructors in python | <p>i need help in writing code for a constructor that takes the parameters x, y and angle. can anyone show me how to write it.</p>
| python | [7] |
3,960,390 | 3,960,391 | Sorting a tuple in python | <p>How to sort a tuple based on the first value i.e,in dictionary we can use sorted(a.keys())</p>
<p>How to do it in a tuple</p>
<p>if these are the tuple values </p>
<pre><code> t = [('2010-09-11','somedata',somedata),('2010-06-11','somedata',somedata),('2010-09-12','somedata',somedata)]
</code></pre>
<p>tuple s... | python | [7] |
5,763,687 | 5,763,688 | ObjectDataSource Filtering on DateTime | <p>I am currently using <code>ObjectDataSource</code> filtering on my gridview control. The <code>ObjectDataSource</code> filtering works well with Date. However, if there is a column with timestamp, the <code>ObjectDataSource</code> filtering doesn't work at all.</p>
<p>For Example, if the column only contains the <c... | asp.net | [9] |
1,809,677 | 1,809,678 | clear cache mwmory when will i start my application in android | <p>I want to program for clear cache memory when will i start my application in android,Anybody knows coding please give me.</p>
<p>Thanks All</p>
| android | [4] |
3,792,406 | 3,792,407 | PHP Multiple Object Dereference | <p>How can I do multiple levels of de-referencing? For instance, in C#, we can keep appending a '.' to access the next objects properties: <code>string s, s.ToString(), s.ToString().ToUpper()</code>. With PHP, I get to around <code>$this->someobject</code>, but <code>$this->someobject->somethingelse</code> doe... | php | [2] |
3,633,324 | 3,633,325 | Cannot reset OpenFlow | <p>I'm using OpenFlow on IPhone to create a "slideshow" of images. My problem is that I cannot reset the OpenFlow view, when I want to add a new set of images. Can anybody help?</p>
| iphone | [8] |
5,619,799 | 5,619,800 | Display html text in uitextview | <p>How to display html text in textview </p>
<p>for example</p>
<p>string
<h1>Krupal testing <span style="font-weight: bold;">Customer WYWO</span></h1></p>
<p>Suppose text is bold so it display in textview as bold string
but i want display normal text.is this possible in iphone sdk.</p>
<p>T... | iphone | [8] |
2,772,335 | 2,772,336 | JQuery traverse table | <p>How to traverse table in JQuery?</p>
<p>Code is as follows,</p>
<pre><code><table id="tblData">
<tr id="tr_1">
<td><input type="text" id="txtData1" /></td>
</tr>
<tr id="tr_4">
<td><input type="text" id="txtData4" /></td>
</tr>
&... | jquery | [5] |
2,008,719 | 2,008,720 | Java output file doesnt recognise \n as linebreak | <p>for a Java project for a University Class I have a method that saves ASCII images as a uniline string and another method called toString rebuilds this ASCII image and returns as a string. When I run my program on the Eclipse my output looks on console alright and multiline, and there are line breaks where they shoul... | java | [1] |
2,351,627 | 2,351,628 | Android Gallery and ImageSwitcher First Image | <p>I have implement Gallery and Image Switcher in Eclipse Android Development.</p>
<p>On click of thumbnail, it loads the image and on click of Set Wallpaper, it sets the wallpaper as well. But as soon as the application loads, I want to display the first image from the Gallery to Image Switcher. Other wise if you cli... | android | [4] |
1,071,397 | 1,071,398 | Renaming file in same directory using Python | <p>So I'm trying to iterate through a list of files that are within a subfolder named <code>eachjpgfile</code> and change the file from <code>doc</code> to the subfolder <code>eachjpgfile</code> mantaining the file's name but when I do this it adds the file to directory before <code>eachjpgfile</code> rather than keepi... | python | [7] |
4,950,569 | 4,950,570 | python.exe is getting crashed at time of frame close | <p>I am making an application using wxpython in which i have imported some modules and added the some widgets but when i am closing the application window ie Frame(wxFrame) python.exe getting crashed and showing the following message "python.exe get encountered a problem and need to be close... Tell microsoft donttell... | python | [7] |
1,162,318 | 1,162,319 | Book, tutorials or sources for creating rich/complex interface (android) | <p>Pretty much the title. I'm new in android development. So, I'm interesting about developing rich application, but cannot find a good tutorials. I would be realy appreciated if someone guide me some resources for start. </p>
<p>Maybe there is some open source project where I can find helpful information?</p>
<p>Tha... | android | [4] |
1,412,007 | 1,412,008 | open a file from a website in java | <p>Specifically I am trying to open a file from SharePoint, but it's really just a website, and I have the proper access so that' not an issue. I am trying to use the desktop api in java to open it, but it gives me an error message "File does not exist!" Does desktop only work locally? If it does work for websites, wha... | java | [1] |
1,313,265 | 1,313,266 | Enable Disable JQuery Drag-able | <p>Hi all
I am working on a print form that will enable Admin user Change the lay out of the print form
so i select JQuery Dragable for the job and its working fine but their is one problem when
Enable or Disable the first Element in HTML that is dragable take the Disable Style when Dragable is Disabled the other e... | jquery | [5] |
124,034 | 124,035 | (solved) JQuery: Getting data from child elements | <p>Markup:</p>
<pre><code><ul>
<li><a href="#" class="item-list" data-id="1">Link 1</a></li>
<li><a href="#" class="item-list" data-id="2">Link 2</a></li>
<li><a href="#" class="item-list" data-id="3">Link 3</a></li>
</ul>
</code></pre... | jquery | [5] |
5,060,127 | 5,060,128 | Why is a default ctor needed for this inner (nested) struct? | <p>I am trying to compile code similar to the snippet below:</p>
<pre><code>class System
{
private:
struct Configuration
{
Configuration(/*params*/);
Configuration(const Configuration&);
Configuration& operator=(const Configuration&);
~Configuration();
/* member variabl... | c++ | [6] |
4,533,931 | 4,533,932 | glpk err , import glpk module not found | <p>I am not able to Run glpk module based programs, on python 2.7.1 , Mac OS platform.</p>
<p>I am not sure if glpk module is installed successfully.</p>
<p>kindly help me, i am new to this.</p>
| python | [7] |
3,254,048 | 3,254,049 | How to create a global shortcut while using JQuery noconflict | <p>How to declare a global window object while using jQuery.noConflict().</p>
<p>I am using following way to avoid Jquery conflict with Mootools</p>
<pre><code> var $j = jQuery.noConflict();
</code></pre>
<p>Now I would like to create global shortcut in jquery and tried as </p>
<pre><code> window.cc = function() {/... | jquery | [5] |
5,066,551 | 5,066,552 | How can you set a default checkbox value C#? | <p>How can you set a default checkbox value? Yes i'm new at all this. But I'm learning well. </p>
| c# | [0] |
4,576,947 | 4,576,948 | jQuery function to check classes between two divs? | <p>I've got a page with two sets of <code>div</code> like so</p>
<pre><code><div id="set1">
<div class="1"></div>
<div class="2"></div>
<div class="3"></div>
.....
<div class="n"></div>
</div>
<div id="set2">
<div class="1"></div>
<div c... | jquery | [5] |
1,742,959 | 1,742,960 | PHP & WLM web toolkit | <p>im looking for a method to connect to windows live web messenger without leaving my current page (like Ebuddy , Meebo ..) .</p>
<p>let us take an example :</p>
<p>my page is : <a href="http://wlm.com/wlm-web/index.php" rel="nofollow">http://wlm.com/wlm-web/index.php</a></p>
<p>in this page i have a signin form wi... | php | [2] |
6,027,471 | 6,027,472 | I am getting a syntax error on line 42(4th last line) and I cant fix it can someone please help? | <pre><code>def main():
# This code reads in data.txt and loads it into an array
# Array will be used to add friends, remove and list
# when we quit, we'll overwrite original friends.txt with
# contents
print"Welcome to the program"
print "Enter the correct number"
print "Hockey fan 1, bas... | python | [7] |
257,783 | 257,784 | Python Convert fraction to decimal | <p>I want to convert 1/2 in python so that when i say print x (where x = 1/2) it returns 0.5</p>
<p>I am looking for the most basic way of doing this, without using any split functions, loops or maps</p>
<p>I have tried float(1/2) but I get 0...
can someone explain me why and how to fix it?</p>
<p>Is it possible to... | python | [7] |
4,160,819 | 4,160,820 | Access Control for objects | <p>Is it Possible to limit the functionality of class to certain objects only (in C++). What that would mean is, suppose there are 10 methods in a class and this class has 10 objects. Is it possible to have object1 & object2 access only 3 functions.
Object3, object4,object5, object6 access 6 functions.
and rest of ... | c++ | [6] |
4,780,041 | 4,780,042 | Error when forward declaring a struct: "has a previous declaration here" | <p>When building my small C++ project, I get the following 2 errors, can't figure out the cause: </p>
<ul>
<li><p>error: using typedef-name 'TTF_Font' after 'struct'.<br>
Points to the following line of code: <code>struct TTF_Font;</code> in Foo.h. </p></li>
<li><p>error: 'TTF_Font' has a previous declaration here.<b... | c++ | [6] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.