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
2,793,366
2,793,367
How to convert yuv420sp data to jpeg data?
<p>Preview Data in camera is yuv420sp style data. But the data delivered in datacallback is jpeg data. How to convert yuv420sp data to jpeg data before datacallback?</p> <p>It is very difficult to convert in JAVA layer. So what else method you have?</p>
android
[4]
3,712,894
3,712,895
How to convert a given Tilt, Roll and Pan into Movement Vertically and Movement Horizontally?
<p>I built a headtracker that outputs three values</p> <ul> <li>Tilt, ranges from 0° to ca. 180°</li> <li>Roll, ranges from 0° to ca. 360°</li> <li>Pan, ranges from 0° to ca. 180°</li> </ul> <p>These three seem to be connected somehow, so I can't just use the roll value to get roll I need to include them all. (See <a...
c#
[0]
2,338,103
2,338,104
How to know if a window is a child or parent window?
<p>How can a browser window know if it is a parent window or a child window using JavaScript?</p> <p>I was hoping to make use of this in a conditional.</p> <pre><code>if(parentWindow){//.. </code></pre> <p>Thank you for any help.</p>
javascript
[3]
5,551,135
5,551,136
Chopping a large number into its digits then adding them in Python
<p>I am trying to make a program where whatever a number is entered by the user, the digits composing that number are added, and if they sum to 10, it is good, if not then they've done something wrong. This should be simple I suppose. Though I'm struggling to add together the numbers after I split them. Do you know wha...
python
[7]
3,888,017
3,888,018
Jquery template looping {{each}}
<p>Template doesn't looping throw properties. Can someone help me?</p> <p>JS:</p> <pre><code>data = [{"width":"","deep":"","meterial":"","consist":"","height":"","qty":"3","size":"1","length":"","color":["FFFF00"],"price":"4000"},{"deep":"","width":"","meterial":"","consist":"","qty":"2","height":"","size":"2","color...
jquery
[5]
1,147,296
1,147,297
Java time (Minutes:Seconds:Miliseconds)
<p>Hey i have any idea how i can format long time to Minutes:Seconds:Miliseconds for example 01:57:934 i can use <code>String.format(0#.0#.###)</code> but what transform this long to time ;?</p>
java
[1]
2,066,698
2,066,699
Passing parameters to decorator at runtime
<p>If I create a python decorator function like this</p> <pre><code>def retry_until_true(tries, delay=60): """ Decorator to rety a function or method until it returns True. """ def deco_retry(f): def f_retry(*args, **kwargs): mtries = tries rv = f(*args, **kwargs) ...
python
[7]
5,452,815
5,452,816
How do simplify megamenu this jQuery code?
<p>Hi I'm trying to simplify this code but can't think which way to do it, any ideas? Its effectively a mega mega</p> <pre><code>$(function() { $('#globalnavigation').find("a").bind({ click: function() { if (".submenu:hidden") { $(".submenu").css("display", "block"); ...
jquery
[5]
56,169
56,170
Can't find managedQuery
<p>Just trying out a couple of Android samples. Struggling to find the method <em>managedQuery</em></p> <p>Compiler keeps reporting:</p> <pre><code>The method `managedQuery(Uri, String[], String, String[], String)` in the type Activity is not applicable for the arguments `(Uri, String[], null, String)` </code></pre...
android
[4]
1,680,370
1,680,371
Pop up window not appearing
<p>My pop up window is not appearing. It is suppose to appear after my validation but even though the validation is working, the pop up window is not appearing. Does anyone have any ideas:</p> <pre class="lang-js prettyprint-override"><code>function validation() { var isDataValid = true; var textO = document.g...
javascript
[3]
2,026,776
2,026,777
DateFormatter that is not picky?
<p>Does anyone know of a DateFormatter in Java that isn't so picky? By that I mean I could provide it multiple formats the date could be written in and if I provide it a format such as:</p> <pre><code>yyyy-MM-dd HH:mm:ss Z </code></pre> <p>A user could enter:</p> <pre><code>2010-11-02 10:46:05 -0600 or 2010-11-02 10...
java
[1]
3,808,030
3,808,031
HTTP Error 500.0 - Internal Server Error in Secure WCF Service
<p>Getting following error after hosting WCF Service in IIS.</p> <blockquote> <p>HTTP Error 500.0 - Internal Server Error. The page cannot be displayed because an internal server error has occurred.</p> <p>Module IsapiModule<br> Notification ExecuteRequestHandler<br> Handler svc-ISAPI-4.0_32bit<br> ...
asp.net
[9]
1,273,480
1,273,481
Array: Storing Objects or References
<p>As a Java developer I have the following C++ question.</p> <p>If I have objects of type A and I want to store a collection of them in an array, then should I just store pointers to the objects or is it better to store the object itself?</p> <p>In my opinion it is better to store pointers because: 1) One can easil...
c++
[6]
5,269,017
5,269,018
Java program output handle
<p>I want to run a compiled Java/C code by an external Java program. Problem is compiled Java/C code directs all input and output to standard devices but I want that external program to handle its input and output in real-time, like a user.</p>
java
[1]
4,272,176
4,272,177
Array balancing point
<p>What is the best way to solve this? A balancing point of an N-element array A is an index i such that all elements on lower indexes have values &lt;= A[i] and all elements on higher indexes have values higher or equal A[i].</p> <p>For example, given:</p> <p>A[0]=4 A[1]=2 A[2]=7 A[3]=11 A[4]=9</p> <p>one of the co...
c++
[6]
3,932,865
3,932,866
Is there a way to read transcription of IRC Office hours somewhere?
<p>tried to attend some of the office hours but there were some problems with the IRC, so it was very difficult to follow the discussion. Are the past sessions recorded somewhere ? </p> <p>It would be great if the "best" topics are summarized and posted, so other people who wasn't at the particular discussion have the...
android
[4]
465,989
465,990
Portrait to landscape Orientation change of UITabbar?
<p>In my application, i have used UITabbarController inside UINavigationController, when you click main it will landed to detail with landscape, instead of that, i need to change the orientation of my app. how should i get it?</p> <p>Sri</p>
iphone
[8]
3,366,514
3,366,515
How to use JavaScript to parse a string with <markup> symbols
<p>I have a string </p> <pre><code>strdata = "&lt;mymarkup&gt;&lt;P&gt;Hello world!&lt;/P&gt;" </code></pre> <p>in an array. So for <code>strata[1][1]</code> that contains the above value. How can I detect the <code>&lt;</code> characters with the substring function?</p> <p>For example:</p> <pre><code>if (strata[1]...
javascript
[3]
2,427,836
2,427,837
Cannot figure out why I am getting incompatible types
<p>I am having trouble with an incompatible types error while trying to write a method based off these instructions: "a method that takes an int parameter and displays on the screen the details (name,year of birth etc.) of the Cat stored at that index position. This method must ensure that the parameter is a valid inde...
java
[1]
5,883,207
5,883,208
Sharepoint Foundation - How to add second script (google widgets)
<p>I've a problem, because when I add first script (google widgets) to my Sharepoint Fundation at the beginning every looks like good but when I edit page in HTML source code, code is different and when I try to add second script (google widgets) my first widgets doing a double code and HTML source is strange. This hap...
javascript
[3]
2,909,816
2,909,817
Capturing the Application Delete or uninstall event in iPhone
<p>I need to be able to delete a user account from a database on a server when a user deletes our iPhone application. What is the best way to capture the delete process. When the user holds down a finger on the application and the big "X" appears. The user presses it and the user is prompted to confirm the deletion of ...
iphone
[8]
3,387,955
3,387,956
C#: How do you send OK or Cancel return messages of dialogs when not using buttons?
<p>C#: How do you send OK or Cancel return messages of dialogs when not using buttons?</p> <p>How would you return the OK message in the condition of a textbox that will proceed when the user presses Enter, and will send Cancel when the user presses Ctrl+Q? </p> <p>Disregard: solution- this.dialogresult = dialogresul...
c#
[0]
715,916
715,917
getters and setters in class
<p>I am trying to write a program considering that I have a huge array of objects( conatinng some data such as id, name etc) I have a display menu something like :</p> <p><strong>1)</strong></p> <pre><code>display_menu() { vector&lt; CD &gt; CDArray; //some statements to display switch(choice) { ...
c++
[6]
4,445,221
4,445,222
Invalid token 'return' in class, struct, or interface member declaration
<pre><code>return found; </code></pre> <p>is giving: </p> <pre><code>Invalid token 'return' in class, struct, or interface member declaration </code></pre> <p>Code:</p> <pre><code>public bool IsTextPresent(ISelenium Selenium, string searchText) { int count = (int)Selenium.GetXpathCount("//*[@id='result...
c#
[0]
2,414,078
2,414,079
how to resolve the error occurred in .Net SqlClient Data Provider?
<p>Please any one help me: </p> <p>I run my application was created in C# for export data source t XML document, I also use try catch method for correct an error of database access (<code>adapter.Fill(ds)</code>). The problem is show below. </p> <pre><code>n_org:SELECTs_department.did,s_department.name,s_department.f...
c#
[0]
5,574,988
5,574,989
Where is the link between a Data Source and DataSourceID?
<p>When I attach a Site Map data source type to a site map control, I specify an ID for the data source. Where in the code (or config files) is that ID associated with the corresponding Web.sitemap file? Is it that there can be only one site map data source and the ID is actually redundant information? Cheers.</p>
asp.net
[9]
758,132
758,133
Deleting pointers from an array
<p>I am fairly new to C++, and this problem I am having has had me stumped for like the last 2 hours. What I am trying to do is create an array of pointers to my class Word objects, so a 2 dimensional array, which is <code>**wordPtrList</code>. Then I need to delete the memory of certain objects in the array and set t...
c++
[6]
4,160,958
4,160,959
How to add the Project root to the localhost path
<p>My asp.net project, currently runs from <strong>http://localhost:51143/default.aspx</strong></p> <p>Is there anyway, I could include the root to this like <strong>http://localhost:51143/TOrders/default.aspx</strong> The reason I want to do this is because the URls that get called on the menu click events refer to ...
asp.net
[9]
5,143,034
5,143,035
ProgressDialog never shows up when the task right after is an upload (or other processor intensitve process)
<p>I'm trying to display a ProgressDialog to indicate that the user should wait while something uploads in the background, however, the device (galaxy tab) just freezes for the time that the upload happens and then when it comes out of its stupor it just goes to the next thing (having never displayed the ProgressDialog...
android
[4]
4,739,330
4,739,331
best way to inform the user about newly released application.? iPhone sdk
<p>I just want to know that how we can inform end users who are using iPhone app that new version of this iPhone app is now available on app store and specially when we have not coded earlier iPhone app without being considering this functionality.</p>
iphone
[8]
3,231,071
3,231,072
Forcing user to new page in php. (PHP newbie)
<p>Hello I'm a newbie web programmer. My background is writing Windows applications with sql.</p> <p>I'm putting together my 1st data entry screens in Php.</p> <p>I have a search form that links to a form that displays records in a grid. On each row of the grid I have a delete url to allow the user to remove a recor...
php
[2]
1,501,626
1,501,627
Spinner:How to know whether item selection was changed programmatically or by a user action through UI
<p>i have code that runs <code>onitemselectedlistener</code> event of spinner.So when i am in the method :</p> <pre><code>public void onItemSelected(AdapterView&lt;?&gt; arg0, View arg1, int arg2, long arg3) { //I want to do something here if its a user who changed the the selected item } </code></pre> <p>... can...
android
[4]
5,609,782
5,609,783
jQuery: Hover-Over Slide Panel
<p>I am looking for a way to do a slide out panel when you hover over specific images on my website similar to what Google Search does.</p> <p>I'd also need this panel to display another website page. Which I am sure can be done using <code>iframe</code> or PHP's cURL.</p> <p>Here is an example similar to what I am l...
jquery
[5]
1,972,336
1,972,337
how to add incremental values to elements i'm creating in a for loop
<p>I want to make sure the option elements I'm creating in this function have values 0,1,2,3,4….. so they match the index number. I'm just not sure how to do that in the for loop.</p> <p>Any help would be awesome. Thanks</p> <pre><code>function receiveAnswer(response) { var aSeats = document.getElementById("aSeats"...
javascript
[3]
5,220,837
5,220,838
Comparing a string with a character in C++
<p>Hey Guys, I'm trying to write a program that calculates the GPA of a student. For some reason the compiler is giving me an error when comparing two strings, but I cant seem to find the reasons for it. Below you will find the piece of code that is giving me error. I would really appreciate if someone could help me fi...
c++
[6]
1,614,083
1,614,084
How to tell StackTrace where to find its PDB?
<p>If I get a stack trace by using <code>new StackFrame()</code> or <code>new StackTrace()</code>, I can pass in 'true' to <code>fNeedFileInfo</code> to get file and location info. This requires a PDB file to work.</p> <p>My question is: how does the CLR look for the PDB file?</p> <p>Our end users don't have PDB's lo...
c#
[0]
868,303
868,304
xcode 4.3.1 UITabBarController add more UIViewController
<p>I am using Xcode 4.3.1</p> <p>It is quite different from the old version.</p> <p>If I ask Xcode create the Tabbed Application, it will create an UITabBarController with 2 tabbars.</p> <p>How to add more UITabBar and related UIViewController?</p> <p>Welcome any comment</p>
iphone
[8]
3,359,697
3,359,698
Grid View checkbox view state
<p>iam using grid view in that 1st col is checboxes.and i want to maintain state..so iam using 2 functions </p> <pre><code>private void RememberOldGridValues() { ArrayList oUserCheckedList = new ArrayList(); int index = -1; foreach (GridViewRow row in gridViewResults.Rows) { if (((CheckBox)row....
asp.net
[9]
1,952,795
1,952,796
assignment in python
<p>I know that "variable assignment" in python is in fact a binding / re-bindign of a name (the variable) to an object. </p> <p>This brings the question: is it possible to have proper assignment in python, eg make an object equal to another object?</p> <p>I guess there is no need for that in python:</p> <ol> <li><p>...
python
[7]
5,991,815
5,991,816
How can i put number in the list in python
<p>I have numbers like this :</p> <pre><code>-1 1 2 3 -1 1 3 2 </code></pre> <p>and i would like to put this number in list like <code>[-1,1,2,3,-1,1,3,2]</code> and delete <code>-1</code> from the list. </p>
python
[7]
3,016,508
3,016,509
Getting subset of elements from array having same value
<p>Is there any collection API method that extracts the same elements from array or collection?</p> <p>for example SomeClass.getElements("Test") should return subset of an array that holds elements with value "Test".</p> <p>Reason for asking this question is because I want to avoid my own traverse and condition check...
java
[1]
5,356,815
5,356,816
Finding common phrases between files with millions of lines
<p>I have two files with the following number of lines : </p> <pre><code>file1 - 110433003 file2 - 4838810 </code></pre> <p>I need to find common phrases between these . Each line is of the form : </p> <p>p1 ||| p2 ||| .......</p> <p>The p1 of file1 can be the p2 in file2. Unfortunately, the code I have written is...
python
[7]
381,787
381,788
Decrypt encrypted view state string
<p>I want to decrypt view state of one of page from my site .View state is encrypted. I have both validation key and encryption key. </p> <p>I have view state in encrypted string format. How to decrypt this string in c#</p>
asp.net
[9]
2,287,687
2,287,688
How can i know its valid in JS?
<p>I am developing an Adobe interactive form with LiveCycle LC designer with JavaScript.</p> <p>// Identify required fields (it may be a free text field, drop-down, check box, i mean there 3 kinds possibilties) and make yellow colored them</p> <pre><code>var myArrayYellow = new Array(); var yellowFields; yellowFie...
javascript
[3]
1,586,907
1,586,908
jquery: possible to select an item only if it's followed by an item with a specific class?
<p>the problem:</p> <p>I want to use jquery to add a class of 'warm' to any li's neighboring to a li.hot</p> <pre><code>&lt;ul&gt; &lt;li&gt;&lt;/li&gt; * ? (unknown amount of li's) &lt;li&gt;&lt;/li&gt; &lt;li class="hot"&gt;&lt;/li&gt; &lt;li&gt;&lt;/li&gt; &lt;li&gt;&lt;/li&gt; * ? (unknown amo...
jquery
[5]
3,020,900
3,020,901
php AND question
<p>The following code does not give any error. But I am buffled with the second part. </p> <pre><code> .......... // Get meta data for the module $this-&gt;template-&gt;module_details = $this-&gt;module_details = $this-&gt;module_m-&gt;get($this-&gt;module); // If the module is disabled, then show a 404. empty...
php
[2]
4,862,944
4,862,945
Android: How to highlight EditText programmatically?
<p>requestFocus() moves cursor to edit box, but does not highlight it. I want to highlight it like as if it was touched.</p>
android
[4]
4,618,401
4,618,402
Vector declaration globally and in the main class
<p>I was writing a code , in which when i declare a vector globally , it gives wrong answer but when i declare it in the main function . it becomes right . so i want to know the difference between the two declarations</p> <p>this is a code which find the min of first enteries, and 2nd min of 2nd enteries and then if m...
c++
[6]
5,726,778
5,726,779
How can I get URL of JS file in same JS file?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/984510/what-is-my-script-src-url">What is my script src URL?</a> </p> </blockquote> <p>I have situation:</p> <pre><code>&lt;script type="text/javascript" src="http://server/some.js"&gt; &lt;/script&gt; </co...
javascript
[3]
3,843,835
3,843,836
Creating A List Application
<p>I'm trying to create a simple list application for my first app. I have a hello world application running successfully on my droidx2 but when I change the code for a list it gives me a bunch of errors in the code. </p> <p>The XML:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;TextView xmlns:andro...
android
[4]
363,625
363,626
Can not close the service when close the background
<p>I write this code in the onDestroy() method. </p> <pre><code>@Override public void onDestroy() { MessageService.this.stopSelf(); messageThread.isRunning = false; System.exit(0); super.onDestroy(); } </code></pre> <p>And close the service in other Activity.</p> <pre><code>stopService(new Intent(MainOptionActivity....
android
[4]
607,555
607,556
How to apply round rectuangular shape to the parsed image from android?
<p>I'm parsing the image from the url, i want to display the corner of parsed image as roundrect(similar to figure2) but i'm not able to do that, can anyone guide me regarding on this, My code for parsing the image from url is </p> <pre><code> img_value = new URL(VAL4[arg0]); Log.v("Image_Url1",img_value.toString());...
android
[4]
262,333
262,334
How to find something in a string with PHP
<p>I'm a little green with PHP, as i have coded in ASP classic before and it's really not the same</p> <p>I have 3 strings containing the following text:</p> <pre><code>$str1 = "is simply dummy text of the printing $$ 6/4r $$ and typesetting industry" $str2 = "is simply dummy text of the printing $$ 11/11tr $$ and ty...
php
[2]
4,036,549
4,036,550
How do I go to a webpage, load, then do some code?
<p>I've tried using <code>Sleep</code> but that just froze the program. Is it messing up because it's in the timer? I can get it to go to the site and not do code, but once I put other code it doesn't load properly.</p> <p>I also tried putting code in: <code>private void webBrowser1_DocumentCompleted(object sender, We...
c#
[0]
2,515,078
2,515,079
Java Bean Validation - Applying Constraints Dynamically
<p>In Java Bean Validation (JSR 303), is there a way to programmatically (dynamically) add constraints in the code before the validate method is called (in addition to the constraints declared as annotations in the bean)? </p>
java
[1]
3,225,648
3,225,649
Removable module about android
<p>I want to have a removable module which can dynamically add listview.The module can be moved to left or right.How can I achieve this effect?</p>
android
[4]
3,783,452
3,783,453
In java, a composite object cannot contain other objects. what does it means?
<p>I am confused with the following statement . Could anyone help me in understanding the following statement?</p> <blockquote> <p>In java , a composite object cannot contain other objects. It can only have references to its constituent objects. Constituent Objects can be shared between objects and their lifetime ca...
java
[1]
2,945,301
2,945,302
Calling a function into document.getElementById
<p>I'm just trying to replace my P tag with a number list that counts from "1" to "5". But I'm making the numbering part a function. How do I call the function when replacing my P tag? Here is the code I wrote so far.</p> <pre><code>&lt;script type="text/javascript"&gt; function countNum() { var i=1; for (i=1;...
javascript
[3]
941,541
941,542
Why can I reference a variable not yet defined in Javascript?
<p>When creating the function <code>foo</code> here, I reference a variable <code>fromTheFuture</code> the hasn't been declared yet. This <strong>actually works</strong> as expected, but <strong>why</strong>? Is it considered dangerous or bad practice?</p> <pre><code>var foo = function(x) { return fromTheFuture * x;...
javascript
[3]
3,497,943
3,497,944
using cmd or powershell, calling python file returns no output
<p>I've just installed python 2.7.2 on this machine. I'm attempting to run this code: </p> <pre><code>class Hello(object): def main(self): print "hello world" if __name__ == "main": h = Hello() h.main() </code></pre> <p>When I call it with python ./foo.py, it does not return either a print ...
python
[7]
5,200,273
5,200,274
How do I prevent the app.config from being integrated into a .net Library (dll)
<p>When I compile the library, all the settings in Settings.Settings are integrated into the DLL. how do I prevent this?</p>
c#
[0]
2,270,737
2,270,738
File Input/Output
<p>I've got a question about reading from a File in Java, for my assignment I have a text file that's setup similar to this:</p> <ol> <li>Parameters for a multidimensional array, String 2.</li> <li>Text to process.</li> </ol> <p>The first line contains the numbers for creating an array, and as well as a String, then ...
java
[1]
1,089,461
1,089,462
Dealing with argc and argv
<p>I wrote the code as follows:</p> <pre><code>&lt;?php array_shift($argv); $taskid=$argv[0]; $file1=file_get_contents($argv[1]); $file2=fopen($argv[2],"w"); echo $taskid."\n".$file1."\n".$file2."\n"; ?&gt; </code></pre> <p>I execute this program as <code>php myfile.php 1 1.txt 2.txt</code> Where 1 is the taskid, 1.t...
php
[2]
5,787,321
5,787,322
How to check for DOM equality with jQuery?
<p>I'm basically building a simple list, and one of the items in the list is selected. I'm accomplishing this by having a "selected" class applied to whichever item I want to have selected. I have two buttons that go forward and backward which traverse this list. However, when the user gets to the first or the last e...
jquery
[5]
4,566,253
4,566,254
Is it possible to dump parameter expression in PHP?
<p>For <strong>PHP testing scripts</strong> I need a function <code>report()</code> that will report results of some expressions, like:</p> <pre><code>report(in_array(null, $array)); report(in_array(false, $array)); # etc... </code></pre> <p><strong>The output</strong> should look like: </p> <pre><code>in_array(nul...
php
[2]
213,695
213,696
Format a nested list in place
<p>I have the following list of tuples --</p> <pre><code>[('one',[1,2,5,3,9,8]), ('two',[9,8,5,1])] </code></pre> <p>And need to sort the nested list, while keeping the ordering of the tuples as is --</p> <pre><code>[('one',[1,2,3,5,8,9]), ('two',[1,5,8,9])] </code></pre> <p>The way that I am currently doing this i...
python
[7]
2,894,800
2,894,801
How to measure C# console application running time?
<p>I need to bulid an application, that runs under 1 sec, but I cant find out how to determine the running time.</p>
c#
[0]
5,780,605
5,780,606
HTTP Error 500.19 - Internal Server Error
<p>I got this problem after deploying my web package to IIS:</p> <blockquote> <p>HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.</p> <p>This configuration section cannot be used at this path. This happens when ...
asp.net
[9]
4,152,283
4,152,284
Deleting everything that is enclosed with quotes or is a number in Python?
<p>Lets say I have this string:</p> <pre><code>myString="'Hello'+yes+'Whats hello'6" </code></pre> <p>I am looking for a way to delete everything enclosed in quotes</p> <p>So, it would become:</p> <pre><code>"+yes+" </code></pre> <p>Because, 'Hello' and 'Whats hello' are enclosed by quotes. And 6 is a number.</p>...
python
[7]
4,919,336
4,919,337
replaceing std::string with const char*
<p>I was wondering could someone please help me implemenrt this method whereas I dont need to use std::string.</p> <p>The method takes in tewo parameters, one for char array and the other one is the size of the char array. </p> <p>The parameters passed will be an array of differernt values seperated by commas, e.g. "...
c++
[6]
5,837,372
5,837,373
PHP: convert date into seconds?
<p>I've a date like <strong>Tue Dec 15 2009</strong>. How can I convert it into seconds?</p> <p>Update: How can I convert a date formatted as above to Unix timestamp?</p>
php
[2]
4,164,631
4,164,632
Advice for final year CS project
<p>I'm in the final year of university education. Soon I'll have to start writing my bachelor dissertation, but I have no idea what software I should write for it.</p> <p>The ideal would be a C++ multi-threaded cross-platform (windows, linux) computer graphics related program. It's also very important to pick project ...
c++
[6]
4,072,726
4,072,727
PHP function does not return alphanumeric string
<p>I constructed a php function given below to return a string for eg. 007ABX, but function does not return that string..</p> <pre><code>function abc($aa) { //some code goes here $az = range('a', 'z'); $r = array_rand($az, 2); $str = $az[$r[0]] . $az[$r[1]]; $new =$aa.$str; return $new; } $ab = abc($...
php
[2]
1,135,722
1,135,723
Are there any open source tools to integrate .NET with GDS or Amadeus services?
<p>may I know, are you aware of any open soruce software which can provide integration with .NET code, to develop web apps easily.</p> <p>Thanks!!</p> <p>UPDATE: </p> <p>Hi friends, actually I have got answer of my Question, and my actual query is: how can I use different api with asp.net code, specially GDS or amad...
asp.net
[9]
6,030,861
6,030,862
Android higher build target can run on lower platform device?
<p>I found that I can build the android apk with higher sdk target (let say 3.0) but I am still able to run my app in lower device (let say 2.1). May I know why? Only when I set the <code>android:minSdkVersion</code> to specific number still stop the execution. </p> <p>Does it make sense that if I use some latest feat...
android
[4]
3,432,868
3,432,869
Passing Object as parameter in Object Datasource
<p>I have an object datasource and that objectdatasource has an update method the method has an update parameter.. mY question is how can I pass the object to the object datasource as a parameter.? Any Idea</p>
asp.net
[9]
2,952,214
2,952,215
PHP: Testing if Base64 encoded POST data is empty
<p>Is there any reason why the PHP empty function would return true for valid base64 encoded data? Perhaps I should be using another function besides empty. The front-end app, build in flex, tests to make sure the Bitmap that's converted to base64 isn't empty prior to the POST.</p> <pre><code>//codeigniter $ImageData...
php
[2]
2,078,573
2,078,574
Writing UTF-8 Japanese characters on a file with php
<p>I've made a japanese e-learning site and i just implemented a chatroom. The data is stored in txt files, but when i submit data from the chat written in japanese, it outputs strange characters in the file because probably it doesn't read utf-8. The strange fact is that when i manually write in japanese inside the tx...
php
[2]
1,401,711
1,401,712
c++ - #ifdef macro
<p>I can see </p> <pre><code>#ifdef &lt;token&gt; code; #endif </code></pre> <p>to be included, but I can't find it defined in any of the headers it includes. Is there any other mechanism with which the token could be defined?</p>
c++
[6]
805,986
805,987
Smoother and faster rotation on ProgressDialog
<p>I have a custom animation to my ProgressDialog which is set this way:</p> <pre><code>pd.setIndeterminateDrawable(c.getResources().getDrawable(R.anim.progress_animation)); </code></pre> <p>The <code>progress_animation</code> is like this:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;animated-rot...
android
[4]
3,541,156
3,541,157
How does JavaScript function call with prototype function name.argument work?
<p>How does JavaScript function call with prototype function name.argument work in the following program?</p> <pre><code> function getLAdd() { // this sets all the variables containing positions of ball and bar with their respective ids. var ladd = 0; var pball = $("#ball"); var pbar = $("#bar"); ...
javascript
[3]
5,058,189
5,058,190
Set ID on currently appended element
<p>I have a <code>&lt;script type="text/template&gt;</code> which inner HTML I use to create new elements. How can I additionally add an ID to those created elements?</p> <pre><code>&lt;script type="text/template" id="element-template"&gt; &lt;div class="element-container"&gt; &lt;p&gt;Template&lt;/p&gt; ...
jquery
[5]
3,237,429
3,237,430
Is there a python module to solve linear equations?
<p>I want to solve a linear equation with three or more variables .Do we have a library in python to do it? Please provide me with the documentation link.</p>
python
[7]
1,343,188
1,343,189
How to make php script fill remote forms and submit?
<p>To make this short, I will show what I need exactly. Here is the site, it shows some info about game stats once entered username and region.</p> <pre><code>http://riot.control-c.ir/ http://riot.control-c.ir/Summoner/EUW/26233693 </code></pre> <p>How can I make remote submitting these forms to parse pages for diffe...
php
[2]
4,687,180
4,687,181
Is it neccessary to remove Log and Debugging before app release?
<p>In the Android docs it talks about getting an application ready for the market.</p> <p>It says that you should deactivite Log and debugging.</p> <p>Is this totally neccessary? Or just an suggestion?</p> <p>Also how do you go about doing this?</p>
android
[4]
193,040
193,041
iPhone-SDK:Tab bar item images are not visible
<p>I created a Tab Bar Controller which has 5 tab bar items. I am trying to add images for all the items through interface builder. I am also able to choose images and set for the particular tab bar items. But whenever i set an image, it does show blank white screen instead of the complete image. P.S: My image is not c...
iphone
[8]
2,738,848
2,738,849
What does :: at function name mean?
<p>I saw code like:</p> <pre><code>using namespace zzzz; void XX::YY() { } </code></pre> <p>how does :: work if you write like that?</p>
c++
[6]
4,373,374
4,373,375
How to change listview font color without using custom listview?
<p>How to Change Listview Color withour using custom listview?</p> <p>In my application the background is white so listview's font is not display.</p>
android
[4]
4,255,011
4,255,012
How to retrieve TimezoneInfo from DateTime object and GPS coordinates
<p>Can I retrieve (without an internet connection) the correct TimeZoneInfo if I know only my DateTime and the GPS coordinates of my position?</p>
c#
[0]
2,399,821
2,399,822
I do not understand what this code is doing in PHP
<p>I have this code,</p> <pre><code>// TEMP VAR $temp = &amp;$files; // BUILD ARRAY STRUCTURE while(count($file['path'])) { // GET DIRECTORY $directory = array_shift($file['path']); // DIRECTORY NOT SET if(!isset($temp[$directory])) { // SET DIRECTORY $temp[$directory] = array(); } ...
php
[2]
584,122
584,123
jQuery loop through multiple items on page
<p>So I have a page running countdown scripts in a table based on the time inside of a hidden input.</p> <p>Each input has an individual id of "id="time_x" where x increases from 1.</p> <p>Each on then runs the timer into a div .</p> <p>My Question is how do I loop and select through a list of the inputs so that eac...
jquery
[5]
4,594,675
4,594,676
Implementing fixed height scrollable listview in DialogPreference
<p>I have sub-classed a DialogPreference and implemented a folder picker using ListView. Everything is working nicely when moving up and down the folder tree and displaying the folders in the listview.</p> <p>My problem is that the dialog window grows and shrinks when I move up and down the folder tree (due to the dif...
android
[4]
3,523,017
3,523,018
i need good html editor for asp.net
<p>is there totally free good html editor for asp.net and i dont want to use ajax editor its too slow </p>
asp.net
[9]
385,133
385,134
How can I pass a parameter to the open event of a dialog?
<p>I have the following function:</p> <pre><code>(function ($) { $.fn.createCommonDialog = function () { this.dialog({ autoOpen: false, modal: true, resizable: false, draggable: true, height: 'auto', width: 875, buttons: { ...
jquery
[5]
197,557
197,558
MP4 video on window webserver not playing in quick time and flash player(flv player)
<p>I have two mp4 video files on webserver, i wanted to play them in flash player(flv player) on my asp.net page, but i couldn't be able to play them, i also tried to play them in quick time player the same prob occured. but i waz giving the accurate path, there were no spaces in mp4 file names etc.</p> <p>Does it nee...
asp.net
[9]
5,825,883
5,825,884
How to check if domain exists
<p>We want to validate user’s email address in our website registration form by checking if email domain for entered email address exists. Is there a way to do this in C#. </p> <p>More specifically – is there a way to retrieve website IP address by its domain in C#</p>
c#
[0]
5,311,760
5,311,761
Setting Printform.BodyContainer in C#.NET
<p>I'm new to C#, currently working with PrintForm. I would like to know as to how to set the PrintForm.BodyContainer property to refer the current Form in visual studio 2010.</p>
c#
[0]
1,994,732
1,994,733
Higher API calls while lower SDK targeting
<p>My app supports minSdkVersion=10 and targeting 16. I want to call methods specific to API level >= 14 if a specific device supports them. I could check running OS version at runtime and whether call or not higher API methods but when I specify min SDK version, methods that exist only in versions higher than 10 are n...
android
[4]
4,897,650
4,897,651
How would you give random limits in java?
<p>So let's say you want to generate a random number, but you want it to be UNDER a specified amount. Is this possible?</p>
java
[1]
1,075,705
1,075,706
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 &amp; 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> &amp; found an soluti...
android
[4]