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
5,248,872
5,248,873
divs hide correctly on page load, but need to show when back button is clicked
<p>I have several divs that are to be hidden on page load on a html form I am designing. Some contain text fields, some contain dropdown boxes. The are shown based on when certain radio buttons are clicked in the form. I am using javascript to hide the divs. Here is the code I am using:</p> <pre><code>&lt;script lang...
javascript
[3]
2,948,509
2,948,510
Paypal Api Guideness
<p>Let me explain it in a simple way.<br> My Client want to use his customer Credit Card information for Paypal refrence transaction. Example : Customer "A" buy Product "X". Now after somedays the Customer "A" called to the client that please shipped another one more piece of product "X" and billed from m...
php
[2]
2,767,047
2,767,048
webview is not able to show any url
<p>I want to show webpage by webview.i already set internet permission but i am not able to see when i run this program.it show me "the web page at 'url' might be temporarily down or it may have moved permanently to a new web address".when i directly go to emulator browser it show me perfectly.please help me.i use Andr...
android
[4]
1,203,687
1,203,688
Can i extract Chinese text from PDF and convert into english language?
<p>I have chinese ebook in PDF format in iphone. So i want to extract chinese words from PDF and convert into english, it is possible in iphone using objective-C</p> <p>Thanks</p>
iphone
[8]
4,802,035
4,802,036
Varying iPhone deployment target: Handling Framework constants
<p>I am building an app that needs to work on multiple versions of iPhone OS and makes use of increased accuracy for Core Location in iOS4. </p> <p>I have code that does the following: <code> if ([m_locationManager respondsToSelector:@selector(startMonitoringSignificantLocationChanges)]) { m_locationMan...
iphone
[8]
3,495,513
3,495,514
PHP when writing to file, How to prepend and append text to a file with existing text?
<p>I'm creating a xml file with PHP here is some sample code.</p> <pre><code> $myFile = "example_file.xml"; $fh = fopen($myFile, 'w'); while($row = mysql_fetch_array($result)) { $stringData = "&lt;field name=\"id\"&gt;$page_id&lt;/field&gt; &lt;field name=\"url\"&gt;http://myfu...
php
[2]
802,054
802,055
Interview query. 'Difference between a php abstract and interface class'
<p>I'm not sure that this question is in the correct place. If not can someone move it there?</p> <p>Should all php developers know how to answer this question correctly in a technical interview? </p> <p>What is the difference between a abstract and interface class. What weight should it be given? I always thought th...
php
[2]
2,106,193
2,106,194
Javascript function which does not return a value in every case
<p>If I have a javascript function, it is possible that I do not return a value from every code path, e.g:</p> <pre><code>function f() { if (checkSomething()) { return 42; } // no return statement here } </code></pre> <p>Is this valid javascript or does it only work by chance (i.e. might there be problems...
javascript
[3]
1,711,723
1,711,724
After orientation switch, TextView is no longer updating
<p>I have an <code>Activity</code> with a <code>TextView</code>, created in the usual <code>findViewById</code> method, using the definition from my xml layout file.</p> <p>I'm updating the text in the TextView using a handler, created in the <code>onCreate()</code> method.</p> <p>When I switch orientation, the <code...
android
[4]
2,920,792
2,920,793
checking for some extension and it's not working
<p>So i have the following problem, this is not working:</p> <pre><code>if any(x in pageName for x in ('.jpg','.gif','.txt','pdf','.msi','print' '.ppt','.pptx','javascript:', '.xls','#','.xlsx','.doc', 'ftp' '.doc...
python
[7]
5,825,967
5,825,968
Store object array into Arraylist
<p>I have an array of objects named x (that is Object[] x).</p> <p>When I call x[0], it give me a bunch of (double) numbers, like:</p> <pre><code>1.111 1.344 433.22... </code></pre> <p>How could I store these numbers into a new ArrayList? Thanks. </p>
java
[1]
301,252
301,253
example of linked list storing and retreiving through NSUserDefault class
<p>I have 1 Linked list object and i want to use that object as for storing and retriving through any class for state maintainance in objective-c. Is there any example for that???</p>
iphone
[8]
5,265,016
5,265,017
PHP: Displaying a value dependent on input
<p>In my view I have the following select menu that states what type of form types are available:</p> <pre><code>&lt;label for="add_fields_type"&gt;Type: &lt;/label&gt; &lt;select name="add_fields_type" id="add_fields_type"&gt; &lt;option value="input"&gt;Input&lt;/option&gt; &lt;option value="textarea"&gt;Tex...
php
[2]
5,176,611
5,176,612
Developing Python Module
<p>I'd like to start developing an existing Python module. It has a source folder and the setup.py script to build and install it. The build script just copies the source files since they're all python scripts.</p> <p>Currently, I have put the source folder under version control and whenever I make a change I re-build...
python
[7]
283,699
283,700
Using jquery's on in place of live - how can I get the filtered elements
<p>Using jQurey, I am replacing my old .live() event bindings with .on(), like this:</p> <pre><code>$(document).on(event, selector, function () { console.log($(this)); //$(this) refers to the $(document) element, not the selector }); </code></pre> <p>What I want to do is get access to the element that this event...
jquery
[5]
5,968,680
5,968,681
How to locate restaurants,hospitals near user on google maps in andoid?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/8428209/show-current-location-and-nearby-places-and-route-between-two-places-using-googl">Show Current Location and Nearby Places and Route between two places using Google Maps API in Android</a> </p> </blockquote>...
android
[4]
6,030,509
6,030,510
Replace jQuery from div to id
<p>Is there any way to replace a content using jQuery from - let's say,</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;div class="information1"&gt; This is the information. &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>to</p> <pre><code>&lt;html&gt; &lt;body&gt; ...
jquery
[5]
1,984,871
1,984,872
how to make a text as selectable?
<p>I have some TextViews for phone no. These are not editable. So I have made them as TextView. I want to perform click action on phone no, i.e. on clicking phone no i have to make a call. How to implement that? Anyone any idea?</p>
android
[4]
4,129,861
4,129,862
Like timeago, but in the future
<p>There is this cool jQuery plugin called <a href="http://timeago.yarp.com/" rel="nofollow">timeago</a> which converts time from the past into a human readable format.</p> <p>I would like a similar thing for the future. (I am working on a TV programme scheduler.)</p>
jquery
[5]
1,520,080
1,520,081
PHP: Getting contents of a file that is newer than a time
<p>Currently I have a PHP scripts that serves a medium amount (200 lines) of text. What I was wondering if it were possible to get the contents of a text file that is newest than a time, perhaps PHP's filemtime() for its last modification.</p> <p>Is it possible to get the contents of a text file in this manner?</p> <...
php
[2]
2,488,611
2,488,612
Interpret Code - Non PHP Programmer
<p>What is this code doing?</p> <pre><code>&lt;?php if (!empty($_FILES)) { $tempFile = $_FILES['Filedata']['tmp_name']; $targetPath = $_SERVER['DOCUMENT_ROOT'] . $_REQUEST['folder'] . '/'; $targetFile = str_replace('//','/',$targetPath) . $_FILES['Filedata']['name']; move_uploaded_file($tempFile,...
php
[2]
1,299,599
1,299,600
how to start this process
<p>I want to know how can I start this process wiht C# :</p> <pre><code>TestFile.exe -i "c:\Program Files\My App\MyContextMenuExtension.dll" "c:\Program Files\My App\LogicNP.EZShellExtensions.dll" </code></pre> <p>How can I send that two argumant toprocess ?</p>
c#
[0]
5,946,094
5,946,095
how to execute command on cmd from c#
<p>i want to run commands on the cmd from my c# app. i try : </p> <pre><code> string strCmdText = "ipconfig"; System.Diagnostics.Process.Start("CMD.exe", strCmdText); </code></pre> <p>result: the cmd window pop but the command didnt do nothing... :(<br> why?</p>
c#
[0]
5,593,370
5,593,371
simulate ipad click sound with mp3/ogg (web development)
<p>I am simulating a "click" sound on every anchor tag and submit button click on the mobile website that I'm working on using the following code:</p> <pre><code> &lt;audio id="mySoundClip" style=" display:none; visibility:hidden;"&gt; &lt;source src="@Url.Content("~/Content/audio/Click.ogg")" type="audio/...
jquery
[5]
2,838,007
2,838,008
Java: standard library to convert field name ("firstName") to accessor method name ("getFirstName")
<p>Is there a standard library (such as org.apache.commons.beanutils or java.beans) that will take a string field name and convert it to the standard method name? I'm looking all over and can't find a simple string conversion utility.</p>
java
[1]
5,306,545
5,306,546
Call a function without knowing it's name
<p>I want to create a function in PHP and to call it without knowing the function's name.</p> <p>Is this possible?</p> <p>Example:</p> <pre><code>&lt;?php $functionName = "someName"; $this-&gt;$functionName(); function someName(){ echo("Print Message"); } ?&gt; </code></pre>
php
[2]
4,674,830
4,674,831
Create List in Jquery
<p>I used to create List in APS.net : </p> <pre><code>&lt;% List&lt;Item&gt; list = new List&lt;Item&gt;(); %&gt; </code></pre> <p>I want to create in jquery like this. How can I do that? Anyone have any idea? Thanks.</p>
jquery
[5]
583,298
583,299
Script with which I can change the font dynamically when the page is live using JavaScript
<p>I want a JavaScript with which I can change the font dynamically when the page is live (Arial to Times). But when I click Arial or Times, the page should not get refreshed. Can anyone please help me in this? Or can anyone please provide a script for this?</p>
javascript
[3]
2,098,540
2,098,541
Access Spinner in Activity without define in Layout
<pre><code>Spinner spinner = new Spinner(this); String option[]={"By Date","By Transaction ID","By Customer Phone"}; ArrayAdapter&lt;String&gt; spinnerArrayAdapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_spinner_item,option); spinnerArrayAdapter.setDropDownViewResource(android.R.layout.simple_spi...
android
[4]
3,365,209
3,365,210
Android : cacerts.bks is not found in the repository
<p>The defined path for cacerts.bks is not found in the Android device at system/etc/security/cacerts.bks - I want to verify whether my device owns it or not , how to check this ?</p> <p>Regards SS</p>
android
[4]
4,922,790
4,922,791
PHP how do I set the date to one week in advance?
<p>I have the day and the month from the database, stored in seperate variables. But if today is the 7th and I minus one week, it would be 0 same case for the month. And I want to add the <code>lo_date</code> to <code>lockin_period_date</code> and minus 3 months, as I want it to send an email to me 3 months in advance....
php
[2]
2,068,658
2,068,659
How do I assign a random colour to links?
<p>Just wondering why my code isn't working. Am I doing this completely wrong?</p> <pre><code>window.onload = function random() { var links = document.getElementsByTagName('a'); var colours = new Array("green","red","blue"); var randomColour = colours[Math.floor(colours.length * Math.random())]; for (a...
javascript
[3]
5,176,505
5,176,506
setStreamVolume sound notification
<p>When I use setStreamVolume or physical sound buttons to adjust the volume on my device, it produces short sound notifications(beeps) - how do I remove it ?</p> <p>Right now I have something like:</p> <pre><code>_audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, (int) ((_maxVolume / 100) * progress),AudioMana...
android
[4]
3,634,076
3,634,077
When to use Parasitic Constructor Pattern
<p>Why should Parasitic constructor pattern be used with caution and when it would be appropriate to use that pattern?</p>
javascript
[3]
3,040,349
3,040,350
jQuery: passing value of a select radiobutton
<p>How can I pass the value of the radio button below to the copy_select_val() function?</p> <pre><code>&lt;input type="radio" name="selected_invoice" value="35" onclick="copy_select_val(); return false;"&gt; </code></pre>
jquery
[5]
5,274,021
5,274,022
c# getting ALL the properties of an object
<p>i have object like this:</p> <pre><code>some_object </code></pre> <p>this object has like 1000 properties.</p> <p>i would like to loop through every property like this:</p> <pre><code>foreach (property in some_object) //output the property </code></pre> <p>is there an easy way to do this?</p>
c#
[0]
1,921,115
1,921,116
Proper use of new/delete
<p>As a sequel of my <a href="http://stackoverflow.com/questions/7104889/how-to-properly-define-destructor">previous question</a>, I would like to ask what I am doing wrong in the following code.</p> <p>The code is, for example</p> <pre><code>void myclass1::myfun() { myclass2* newVar = new myclass2(); /* other code a...
c++
[6]
5,649,950
5,649,951
The name XXXX does not exist in the current context
<p>I have the following code:</p> <pre><code>public Form1() { InitializeComponent(); string strRadio = Utils.ReadFile(strTemp + @"\rstations.txt"); string[] aRadio = strRadio.Split(new string[] { "#" }, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i &lt; aRadio.Length; i += 2) { ...
c#
[0]
3,696,343
3,696,344
How to check if the number of lines in the file equal the number of characters in each of the lines?
<p>Reads the specified file and treats its contents as a list of strings (one per line). Checks for the following conditions in the input file:</p> <p>The file must exist and be available for reading. In other words, the call to open should not raise an exception.</p> <p>The file must contain between 3 and 10 lines o...
python
[7]
5,208,494
5,208,495
Android: Button not showing after dynamic view
<p>I'm trying to dynamically put a bitmap in between a Textview and a Button:</p> <pre><code>&lt;TextView android:text="TextView" android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/TextView&gt; &lt;LinearLayout android:layout_height="wrap_content" android:id="@...
android
[4]
2,342,434
2,342,435
Cannot find web project item
<p>I am trying to create a webform. I added a button control on the web form but when i switched to the design mode i got the error: Error creating Button1 Cannot create web project item E:\MyProjects\C#\WebApplication1</p> <p>Can somebody suggest a solution</p>
c#
[0]
4,395,828
4,395,829
DropDownList SelectedIndexChanged event fails over the internet
<p>I have two ASP.net DorpDownLists in a web page. When the selection changes on the first drop down list, the client is expected to do a postback and the the server will populate the second drop down list based on the selection.</p> <p>I have this page working as expected on the intranet but when it is accessed from ...
asp.net
[9]
1,908,079
1,908,080
C# winform delete folders and files on uninstall. Permission Error
<p>I am getting the below error.</p> <p>I need to uninstall the app and delete all files and folders created either by the application or users in the program files/myapp.</p> <p>How can I resolve this issue? Thanks.</p> <pre><code>Access to the path 'C:\Program Files (x86)\DefaultProgram\Application\app.exe' is den...
c#
[0]
1,651,747
1,651,748
Execute scripts later in time
<p>For a personal game I'm working on, I'd like to have a php function work over a certain period of time.</p> <p>For example, right now it's set so that if the user wishes to purchase soldiers in the game, he fills out the form and when it's submitted, the user's database entry is instantly updated to reflect the cha...
php
[2]
4,029,865
4,029,866
Uploading a bitmap to the server with http protocol
<p>i have a camera Activity after which i take a picture and saving it to gallery and uploading to the server My upload code is not working, i need help on this?</p> <p>// image capture</p> <pre><code> Intent intent = new Intent("android.media.action.IMAGE_CAPTURE"); startActivityForResult(inte...
android
[4]
5,119,533
5,119,534
how to get raw folder uri path and save in internal memory in android?
<p>here my code.where is my errors errors.the errors is file not found exception.</p> <pre><code>Uri video = Uri.parse("android.resource://com.ring.app/raw/"+a[i]+".mp3"); file= new File(video.toString()); try { inputStream= new FileInputStream(file); fos = super.openFileOutput("output"+i+".mp3", MODE_WORLD_READABLE...
android
[4]
5,963,601
5,963,602
Strange PHP output buffering
<p>PHP:</p> <pre><code>header('Content-type: text/plain'); for ($i=0; $i&lt;10; $i++){ echo "$i\r\n"; ob_flush(); flush(); sleep(1); } </code></pre> <p>I tried script above on 2 different servers. Both respond numbers 0...9 in every line. In case of first server each number is received every second. In case ...
php
[2]
1,324,294
1,324,295
Implementing a wrapping check box list or a tag list in Android
<p>A standard list of check boxes takes up a lot of vertical real estate:</p> <pre><code>[ ] Option 1 [X] Opt 2 [X] Loooooong option 3 [ ] Option 4 </code></pre> <p>What I would like to do is either wrap them:</p> <pre><code>[ ] Option 1 [X] Op 2 [X] Loooooong option 3 [ ] Option 4 </code></pre> <p>Or something lik...
android
[4]
5,260,715
5,260,716
Python: split float after 3rd decimal place
<p>I have a series of strings, which are two numbers:</p> <pre><code>1.782-100.799 -18.107-102.016 -17.504104.059 </code></pre> <p>How do I split my string after the 3rd decimal place of the first number in each string? so it looks as follows:</p> <pre><code>1.782 -100.799 -18.107 -102.016 -17.504 104.059 </code></p...
python
[7]
5,811,024
5,811,025
Problem with a large CSV file
<p>I have a very large CSV file. 51427 lines to be exact.</p> <p>Is there not a way where I can only read the required lines into an array? That would speed things up significantly.</p>
php
[2]
3,619,999
3,620,000
Android How to implement monthly Calender in Activity programmatically
<p>im a new user for android development. i need to show the monthly calendar when button click. how to do it.</p> <pre><code>Calendar cal = Calendar.getInstance(); Intent intent = new Intent(Intent.ACTION_EDIT); intent.setType("vnd.android.cursor.item/event"); intent.putExtra("beginTime", cal.getTimeInM...
android
[4]
2,673,084
2,673,085
how to export data to csv from html table
<p>Hi can any one tell me how to write the code to export csv file from html page.</p> <p>I am trying to use the code as follows</p> <pre><code>var doc =document.open("text/csv",replace); </code></pre> <p>the doc element i am sending to a function where I am getting all my table data. and i am writing data into doc...
javascript
[3]
603,542
603,543
What is the fastest way to check if a class has a function defined?
<p>I'm writing an AI state space search algorithm, and I have a generic class which can be used to quickly implement a search algorithm. A subclass would define the necessary operations, and the algorithm does the rest. </p> <p>Here is where I get stuck: I want to avoid regenerating the parent state over and over agai...
python
[7]
2,398,924
2,398,925
Where should I locate my baseActivity class?
<p>Say i have com.mydomain.myappname. Is it a good idea to put my baseActivity class (from which all my other activity classes inherit) into com.mydomain? Or is that asking for trouble? I'm worried my other apps could then conflict if installed on the same phone.</p> <p>Also, if not in com.mydomain, where should I pla...
android
[4]
1,786,837
1,786,838
Understanding a large Java program
<p>I am working on a java project and I have to extend (add more functionality) it. But I don't know how should I learn the existing one before incorporating them. Is there any specific path I should follow? Can I run it in a way so that I can see, statement by statement, the execution of the program?</p> <p>I am a k...
java
[1]
2,905,377
2,905,378
Best Practice - Allow offline use of android app?
<p>currently I'am developing an Android native app which have to communicate with a server (for ex. via REST) to load, save data etc.</p> <p>Now I'm considering the offline scenario. I also want the user to save data if the mobile phone has currently not network connection. If the network connection is up again I want...
android
[4]
1,780,641
1,780,642
Display array in UITableView when in UIViewController
<p>I have a tableview in my viewcontroller. But i have an error which say that [tableview:numberofrowinsection:]:unrecongized selector sent to instance. Can someone please tell me how cna i solve this.</p>
iphone
[8]
5,762,119
5,762,120
How to connect to MSSQL in PHP using sqlsrv api?
<p>I am trying to connect to MSSQL in PHP using sqlsrv api. When I run <strong>phpinfo()</strong>, it shows an a section for <strong>sqlsrv</strong>. But while actually writing code, I cannot connect to MSSQL. I am using SQL Server R2. I connect to the database from the Management Studio using the specified hostname. H...
php
[2]
4,586,107
4,586,108
Replacing hyphen with space, but space hyphen space should not be replaced
<p>can we replace all hyphen with blank spaces but if space is followed by hypen and then another space it should not be removed, for example if i get "to-be-or-not - to-be" output should be "to be or not - to be" .is it possible</p>
php
[2]
2,061,549
2,061,550
C++ -- how to call user defined operator?
<p>I saw the following code snippet:</p> <pre><code>class WindowHandle { public: WindowHandle(WINDOW_HANDLE handle) : w(handle) {} ~WindowHandle() { destoryWindow(w); } operator WINDOW_HANDLE() { return w; } ... private: WINDOW_HANDLE w; ... } </code></pre> <p>Here is the question: how do I use operator...
c++
[6]
4,897,784
4,897,785
put the form information onclick to another page in android
<p>i am new in android i develop a demo project in it i want to create a form and the form information on click the mea new page open </p>
android
[4]
1,617,059
1,617,060
While accessing the assembly in otherAppdomain ,how to reflect the changes done in assembly in Other appdomain Referred
<p>I am accessing one assembly in other application by loading that assembly in Another Appdomain,its working fine.</p> <p>My Question is : If I make changes in the Assembly and build it,the changes are not getting reflected in the application where I have created the another appdomain for accessing it unless i build ...
c#
[0]
4,347,806
4,347,807
Javascript NULL Values
<p>I am getting the following javascript error:</p> <pre><code>'value' is null or not an object </code></pre> <p>Can someone please let me know what is the best way to check whether an object's value is NULL in javascript as I have been using:</p> <pre><code>if ((pNonUserID !== "") || (pExtUserID !== "")){ </code></...
javascript
[3]
3,881,237
3,881,238
Python: Obtain edge end points of the graph
<p>I need the edge end points from a graph. I have installed networkx. I have some idea how to proceed.</p> <p>networkx.Graph.edges_iter() returns all the edges in the graph</p> <pre><code>[e for e in G.edges_iter()] [(0, 1), (1, 2), (2, 3)] </code></pre> <p>What I want is a list [0,1,1,2,2,3]</p> <p>How do I get t...
python
[7]
3,558,802
3,558,803
PHP 'global variable'
<p>I am creating a game in PHP, and am having a problem with global variables. Depending on which button is pressed in my HTML page, a corresponding PHP script is run and a function is called depening on the <code>isset</code> function.</p> <p>My question is this: I want to keep a score variable, and I would like to h...
php
[2]
4,794,388
4,794,389
Error when using HttpContext.Current.Server.Execute more than one
<p>I have templates like cart.aspx, mail.aspx.I am passing them some variable and get the result view with this code</p> <p><code>MySession2.Current.customer = customer;</code></p> <p><code>StringWriter _writer = new StringWriter();</code></p> <p><code>HttpContext.Current.Server.Execute("mail.aspx", _writer);</code>...
asp.net
[9]
2,270,964
2,270,965
What constitutes "Proper use" of the javascript Eval feature?
<p>Eval is a notoriously controversial language feature. Douglas Crockford flat out rejects it. I'm wondering what specific risks Eval brings about. According to <a href="http://stackoverflow.com/questions/86513/why-is-using-javascript-eval-function-a-bad-idea">this</a> question, <code>Improper use of eval opens up y...
javascript
[3]
4,321,892
4,321,893
unable to display images from database via php array
<p>Learning php!</p> <p>I have a sql database which contains a table called 'images' which stores image paths that users would upload. The problem I am having is pulling the image paths from the database to a PHP array, then using the paths to display the images on the screen as a , list item. However when I run the p...
php
[2]
4,196,989
4,196,990
How to disable an item in a Spinner
<p>Is it possible to display particular entries in a Spinner list as disabled? i.e. I want to always display a spinner with 4 entries (North, South, East and West, say), but I want to be able to disable any one of these so that is appears greyed out and not selectable.</p> <p>Is this possible, or will I have to recrea...
android
[4]
4,119,273
4,119,274
Adding <tr> from repeater's ItemDataBound Event
<p>My repeater's templates generate a table, where each item is a table row.<br> When a very very specific condition is met (itemdata), I want to add an additional row to the table from this event.</p> <p>How can I do that? </p> <pre><code>protected void rptData_ItemDataBound(object sender, RepeaterItemEventArgs e) ...
asp.net
[9]
6,007,130
6,007,131
How do I define fire_event, undefined fire_event error
<p>I'm cleaning up all the errors in an old script and I'm getting one that says <code>undefined function fire_event</code>. How do I define fire_event. everything works fine but i've turned on error_reporting(E_ALL); to fix all hidden errors</p> <p><strong>Fatal error: Call to undefined function fire_event() in /home...
php
[2]
1,630,577
1,630,578
Getting info out of an array as a variable
<p>Basically i'm trying to get some IPTC data from an image when a user uploads it. </p> <p>Here's my code:</p> <pre><code> $size = getimagesize($image_file, $info); if(isset($info['APP13'])) { $iptc = iptcparse($info['APP13']); $iptc_description = $iptc['2#120']; ...
php
[2]
216,082
216,083
client-side application vs web application in WebView for android
<p>what is better approach in developing simple apps for android,</p> <p>simple apps - i mean apps like task managment or bug report.</p> <p>i found a good answer <a href="http://stackoverflow.com/questions/5092699/factors-to-consider-to-choose-among-client-side-application-or-web-application">here</a></p>
android
[4]
5,126,760
5,126,761
"this" in JavaScript
<p>I'm trying to understand the syntax of how to put together a JavaScript function as an object.</p> <p>Q: Is this the right way to do it?</p> <p>The reason why I ask is because I'm looking at it in Firebug and I was hoping to be able to drill down and see the value of myVar and myVariable, but instead Firebug only ...
javascript
[3]
3,169,986
3,169,987
C#- Console Program Ideas for Noob
<p>So, Im a beginning C# programmer. I know basic syntax and simple things like if statements and loops(methods and classes too). I've only used console apps right now havent bothered with windows forms yet. </p> <p>So any simple app ideas that introduce new things important for C# programming.</p> <p>Also, NO tutor...
c#
[0]
5,395,989
5,395,990
Pop-up bar on selected list item
<p>I'm trying to find out how I can create a pop-up menu bar, after I press on a checkbox item, so I can do multiple things like delete..</p> <p>I've taken this idea from the <a href="http://en.wikipedia.org/wiki/Android_%28operating_system%29" rel="nofollow">Android</a> videos:Google I/O 2009 -...Interaction &amp; Vi...
android
[4]
5,785,384
5,785,385
Error in formatting the POST URL,because of spaces inside the parameter
<p>Hi All I am building an URL which is stored as varible to be available for a tab on clicking as below.</p> <p>The parmeters of the URL are some constants and strings. So in one param the user has entered in the Textarea coulmn as</p> <pre><code>This is to be removed immediately </code></pre> <p>and so on build o...
javascript
[3]
3,731,822
3,731,823
working with dropdown controls
<p>i have dropdown controls in my application namely ddlmonth and ddlday respectively and i added months(january,february ect in ddlmonth) and days added to ddldays(1,2,.....31) when i run my page i display current month and date this is my code </p> <pre><code> public void getMonth() { ddlmonth.SelectedIndex ...
asp.net
[9]
5,195,554
5,195,555
i want to know what i need to create simple game 3D game?
<p>This is only worry!</p> <p>First question: I want to give a example Mario (simple or more simple). What we need create game similar to mario with java? And What i need for 3D games? </p> <p>Second question: Java have a swing library but i think this is not enough. <br/> Can we create web browser but web browser's...
java
[1]
1,837,676
1,837,677
Remove "empty" paragraphs with jQuery
<p>My writers have a bad habit of creating empty paragraphs. (I.e., paragraphs that have nothing inside them, like: </p> <pre><code>&lt;p&gt;&lt;/p&gt; </code></pre> <p>Is there a jQuery function that removes "empty" paragraphs. Here's what I've tried: </p> <pre><code>$('p').remove(":contains(' ')"); // nope! bad lo...
jquery
[5]
2,272,623
2,272,624
Programming for specific Android versions
<p>I have a question concerning Android programming. I intend to programm an application for Androiod 2.2 and above (including tablets). Problem, I am facing, is, that various version have different API news, e.g. Download Manager is fully implemented for the first time in 2.3, in 2.2 I have to programm it manually. I ...
android
[4]
3,421,506
3,421,507
Error received when updating the SDK with the SDK Manager
<p>I'm completely frustrated with the Android SDK Manager.</p> <p>I'm running Win 7 Home edition and have the SDK installed in its own top level directory on my D:\ drive. </p> <p>When I run SDK Setup.exe from the command line (and I've even opened the prompt as an administrator), I get an error when trying to updat...
android
[4]
5,800,673
5,800,674
long press event in grid view in android
<p>I am using gridview in my android project to show images. I use 15 columns in gridview to show 20x20 small image. I want to show animation on long press event on gridview item. When i press any image in gridview then similar big image show on screen on same position. </p>
android
[4]
2,652,736
2,652,737
How to call an Activity in Android
<p>I have the following scenario. I have 2 packages in my application. com.example.package1; org.otherexample.package2;</p> <p>I declare in manifest like this:</p> <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.package1" android:versionCode="1" android...
android
[4]
1,046,627
1,046,628
Purpose of char in java
<p>I'm seeing both char and short are two bytes each, also the following is valid:</p> <pre><code>char a = 'x'; int b = a; long c = a; </code></pre> <p>However when I do short d = a; I'm getting an error that cannot convert from char to short. even though both are two bytes.</p> <p>One use of char I can see is whe...
java
[1]
1,870,275
1,870,276
Is it bad form to return Arrays in C#? Should I return List<T>?
<p>I have a function which returns a variable number of elements, should I return an array or a List? The "collection's" size does not change once returned, ie for all purposes the collection is immutable. I would think to just return an array, but some people have said to not return variable sized arrays from a functi...
c#
[0]
2,694,995
2,694,996
Controller wrapping in panel
<p>I have a panel with buttons. my buttons are create dynamically. I want to have 4 rows with 4 buttons each. but I only get one row.</p> <pre><code> foreach (CategoriesDataSet.CategoriesRow category in DataRepository.Categories.Categories) { if (!category.CategoryName.Equals("ROOT")) {...
c#
[0]
833,655
833,656
Using PHP force download for all files
<p>My question is, is there a way to use the header download PHP method for all files type;</p> <pre><code> &lt;?php $fileid = $_GET['fid']; $filename = $_GET['fn']; $auth_code = $_GET['dlauth']; $folder = $_GET['fi']; echo $file = $folder."/".$filename; if (empty($fileid) || empty($filename) || empty($auth_code...
php
[2]
5,275,686
5,275,687
How to write message to client from server
<p>for example,in a website or software on the pc,you could write some news or other things,and then it will update in your android</p> <p>is there any example of this,or tutorial related about it</p>
android
[4]
5,164,133
5,164,134
PHP include practices
<p>Does anyone here know when PHP executes include and include_once calls?</p> <p>I'm wondering because I come from a Flash and Desktop development background where you have to import your classes at the beginning of each class.</p> <p>But now that I am starting to build more complex PHP code, it seems like it would ...
php
[2]
791,147
791,148
forse close when click button for open google map
<p>in my app when i click the button it opens a Google map it is running well when i open it in android emulator and when i install this application on my device after making .apk folder it install successful and also other functions are going well but when i click button of open Google map it force close.. <strong>is ...
android
[4]
4,545,849
4,545,850
A very simple error in subtraction program
<p>I am facing a very simple error in the following program at the last print statement. But I dont know the exact reason behind it. Even the logic is correct and syntax too.</p> <p>Please let me know the exact reason for the error.</p> <p>Thanks</p> <pre><code>import java.util.Scanner; public class main { public st...
java
[1]
1,044,769
1,044,770
Why is my jQuery generated dropdown not posting back the selected value?
<p>I think I'm missing something simple, but I'm just not seeing it. I have an ASP.NET MVC app that is dynamically building a dropdown based on the value of another dropdown. The dropdown list is being populated correctly but when the form posts back the value of the combo isn't posted back for some reason. </p> <pre>...
jquery
[5]
4,271,698
4,271,699
how do I restrict this loop to a specific number?
<p>how do I restrict this loop to get only 6 values?</p> <pre><code> $countries = array(); foreach ($my_data as $node) { foreach($node-&gt;getElementsByTagName('a') as $href) { $countries[] = strip_tags(trim($href-&gt;nodeValue)); } } </code></pre>
php
[2]
2,979,343
2,979,344
Python - 'import' or pass modules as paramaters?
<p>I was wondering if passing module objects to a class or object which requires it rather than using <code>import</code> might not be a bad idea, as it avoids hard dependencies on those modules.</p> <p>I was wondering if someone more aware of the Python Zen than I might be able to explain why this is a terrible/not t...
python
[7]
2,557,095
2,557,096
Initialize MediaScanner at Beginning of Android Program
<p>I have an Android program that starts off by loading some of the user's media. Occasionally the program crashes -- both on an emulator and on an actual phone. I've found this is because sometimes media only become available to the program after the activity has been running for a while. </p> <p>When this happens, h...
android
[4]
1,040,419
1,040,420
stripping the << tag for c++ in php
<p>I want to keep <code>&lt;&lt;</code> tag in string but because of strip_tags, it is also removed from string.</p> <pre><code>$str = "#include&lt;iostream&gt; using namespace std;int main () { int a, b=3; a = b; a-=10; cout&lt;&lt; a; return 0; }"; $newtext = htmlspecialchars((strip_tags(($str),'&lt;io...
php
[2]
4,744,748
4,744,749
splash screen gets error when going to the main activity
<p>My splash screen gets error and it is going to force close the app. in Logcat is says Permission Denied. What should i do to fix this problem. Can anyone help me with that matter, Thanks a lot</p> <pre><code>import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.Mo...
android
[4]
2,057,135
2,057,136
How do I get rid of the "u" from a decoded JSON object?
<p>I have a dictionary of dictionaries in Python:</p> <pre><code>d = {"a11y_firesafety.html":{"lang:hi": {"div1": "http://a11y.in/a11y/idea/a11y_firesafety.html:hi"}, "lang:kn": {"div1": "http://a11y.in/a11ypi/idea/a11y_firesafety.html:kn}}} </code></pre> <p>I have this in a JSON file and I encoded it using <code>jso...
python
[7]
919,369
919,370
iPhone-SDK:Thumbnail images in iPhone view controller view
<p>I have 8 images in my project which has 320 * 480 pixels(full screen image). I need to show all the images in thumbnail format in a view (same like how we see in built-in Cameral Roll). When user selects one, it should display that image with the same actual size (320 * 480) as background of my first view.</p> <p>M...
iphone
[8]