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 |
|---|---|---|---|---|---|
1,791,819 | 1,791,820 | Execute script only for newly added HTML | <p>i am creating this mini-module framework and what i'm trying to do is to reuse a module definition on a dynamically loaded HTML. it's like using the same weather widget script to power two or more weather widgets on screen, one loaded on page load, and the others loaded later. defining the module uses this format.</... | javascript | [3] |
1,569,625 | 1,569,626 | Parse date time from string of format ddMMMyyyy hhmm (with Month-Name) | <p>I am kind of stuck into an issue where, I am unable to find out the way to parse the data and time from a string which, I am reading from a text file. So, the string I am getting is in following format:</p>
<p><strong>05SEP1998 2400</strong></p>
<p>and I am trying to parse it through the following code:</p>
<pre>... | c# | [0] |
4,915,083 | 4,915,084 | Fatal error: Call to a member function bindParam() | <p>I am learning to work with PHP and have a simple problem.</p>
<pre><code><?php
ini_set('display_errors', 'On');
error_reporting(E_ALL);
$db = new PDO('sqlite:/usr/users2/mieic2009/ei09072/public_html/TP1/Delicious /Database.db');
$a = $_GET['linkRef'];
$b = $_GET['tagToAdd'];
$checkIdLink = $... | php | [2] |
3,789,003 | 3,789,004 | Python Arpabet phonetic transcription | <p>Is there a library in python that can convert words (mainly names) to Arpabet phonetic transcription?</p>
<p>BARBELS -> B AA1 R B AH0 L Z</p>
<p>BARBEQUE -> B AA1 R B IH0 K Y UW2</p>
<p>BARBEQUED -> B AA1 R B IH0 K Y UW2 D</p>
<p>BARBEQUEING -> B AA1 R B IH0 K Y UW2 IH0 NG</p>
<p>BARBEQUES -> B AA1 R B IH0 K Y ... | python | [7] |
5,037,853 | 5,037,854 | How to show Android webview loading dialog | <p>I'm trying to implement a loading dialog in my webview application but whatever I do it just won't work.... this is my code</p>
<p>public class AlTibbiWebViewActivity extends Activity {</p>
<pre><code>private WebView wv;
private Intent incomingIntent = null;
private WebViewClient wvc = new WebViewClient() {
@... | android | [4] |
4,129,490 | 4,129,491 | jQuery query string issue | <p>I am trying to initialize some jQuery to only run if a specific querystring is found. However I am having trouble matching the querystring in an IF statement. My code is below.</p>
<pre><code>$(document).ready(function(){
if($(window.location.search == '?uploaded=success')){
alert('test has work... | jquery | [5] |
4,632,056 | 4,632,057 | How to store and retrieve xml response in sqlite datadase | <p>i want to store xml response in sqlite and retrieve when data coming from server from it my response is following..</p>
<pre><code><soap:Envelope><soap:Body><Login_ValidateAuthenticatedUserResponse><Login_ValidateAuthenticatedUserResult><xs:schema id="NewDataSet"><xs:element name="... | android | [4] |
154,261 | 154,262 | Array of const char* | <p>I'm writing a C++ program that uses the RRD libraries that require an array of 'const char*' for their functions. I thought I could just declare the array, and then initialize each element of the array, but changing one, changes all of them. Obviously I'm missing something.
Here's an example similar to the code I am... | c++ | [6] |
2,800,591 | 2,800,592 | jQuery animated menu#hover function() | <p>I have a horizontal menu, which is animated by JQuery:</p>
<p><a href="http://jsfiddle.net/BTD2F/5/" rel="nofollow">http://jsfiddle.net/BTD2F/5/</a></p>
<p>The problem(s):
I a have a 'current' parent item, its ul shall be shown. If I hover another parent item, the ul which is currently shown, shall be hidden. That... | jquery | [5] |
762,855 | 762,856 | Expected ctor | <p>I am writing a delete member function for a Binary Search Tree. I have already written a boolean search function to return true/false based on whether it is in the BST. I have retooled it as a new function to return a Node* so that my delete function can call it and get a pointer directly to the correct Node.</p>
<... | c++ | [6] |
6,023,992 | 6,023,993 | How to get another variable type from sql query | <p>From this query...</p>
<pre><code>self.cur.execute("""SELECT pub FROM "20091229"
GROUP BY pub ORDER BY pub""")
</code></pre>
<p>I get the following list with tuples back.</p>
<pre><code>>>[(1,), (2,), (3,)]
</code></pre>
<p>But I need only a list or a list without decimal points in the tup... | python | [7] |
4,160,768 | 4,160,769 | Unable to cast object of type 'System.Single[]' to type 'System.Double[]', why? | <pre><code>double[] vTessTriangles = (double[])swFace.GetTessTriangles(true);
double VTTx2 = vTessTriangles[2];
</code></pre>
<p>Why I get this <code>InvalidCastExpection</code></p>
<blockquote>
<p>Unable to cast object of type 'System.Single[]' to type
'System.Double[]'.</p>
</blockquote>
| c# | [0] |
1,826,128 | 1,826,129 | question about string to file | <p>here is code </p>
<pre><code>#include <iostream>
#include <fstream>
#include <cstring>
using namespace std;
int main()
{
ofstream out("test", ios::out | ios::binary);
if(!out) {
cout << "Cannot open output file.\n";
return 1;
}
double num = 100.45;
char str[] = "www.j... | c++ | [6] |
1,135,483 | 1,135,484 | getRGB returns different value | <p>The first time I call getRGB it returns white, but the second time I call it, it returns black.</p>
<p>Why does BufferedImage's getRGB return a different value after the 2nd time I call it?</p>
| java | [1] |
2,616,340 | 2,616,341 | Hows does a windows color get calculated from ARGB | <p>Can anyone tell me how from an ARGB, the corresponding windows Color is calculated? I know there is a ColorTranslator.ToWin32() that does the calculation but how is it done?</p>
<p>Also, what is the difference between an OLE color and a windows (win32) color?</p>
<p>JD.</p>
| c# | [0] |
2,028,334 | 2,028,335 | Java : generic classes | <p>I read this code from my book:</p>
<pre><code>class B extends A {...}
class G<E> {
public E e;
}
G<B> gb = new G<B>();
G<A> ga = gb;
ga.e = new A();
B b = gb.e; // Error
</code></pre>
<p>Why <code>B b = gb.e;</code> arise an error? We didn't assign anything to b, and for that gb.e is from t... | java | [1] |
2,087,696 | 2,087,697 | jQuery kill link if li has children | <p>Given the following structure:</p>
<pre><code><ul>
<li><a href="example.com>1</a></li>
<li><a href="example.com>2</a></li>
<li><a href="example.com>3</a>
<ul>
<li><a href="example.com">3.1</a... | jquery | [5] |
2,785,623 | 2,785,624 | What is the meaning of php://input & php://output and when it needs to use? | <p>What is the meaning of <code>php://input</code> & <code>php://output</code> and when it needs to use?
Please explain with an example.</p>
| php | [2] |
2,885,506 | 2,885,507 | LinearLayout (horizontal) - Swapping button positions | <p>I have a horizontal <code>LinearLayout</code> which has 4 image buttons in it, all the same size with the same layout params. I would like the user to be able to swap the positions of buttons 2 and 3 over. I was thinking they could perhaps swipe over the buttons to swap them, or maybe have another small button betwe... | android | [4] |
3,940,198 | 3,940,199 | Java Pair<T,N> class implementation | <p>Is there available a proven Java Pair class implementation? </p>
<p>I mean readily available, widely accepted and tested, maybe part of a more extensive library such as Apache Commons or Guava.</p>
| java | [1] |
4,395,579 | 4,395,580 | List view customization issue while scrolling | <p>I have the below code which overrides the getView, What i want is always the first row should show some custom view and the item cell below this first will show regular cells. My code works fine without any errors, but when i scroll the first cell get repeat after continuos use of scroll upside down, Please refer th... | android | [4] |
4,574,788 | 4,574,789 | I have a syntax error in my PHP script? | <p>I am working on a project were I need to turn text in a table cell into a dynamic link and I am getting an error when escaping to HTML.</p>
<p>Here are the line of code I am trying to turn into a link. It works perfect before I try to make it a link.</p>
<pre><code>echo "<td><a>" . (isset($resultSetA... | php | [2] |
1,138,614 | 1,138,615 | How to open ppt file using Python | <p>I want to open a ppt file using Python on linux, (like python open a .txt file).
I know win32com, but I am working on linux.
So, What do I need to do? </p>
| python | [7] |
3,591,041 | 3,591,042 | page keeps reloading fast | <p>I have the following index file, but when load, it seems too keep reloading very fast like there is some kind of loop going on? <br>It makes it hard to click something, but i cannot find the problem. <br>Can anyone see why this happens?
I removed the <code>session _destroy</code> and all in the common file for sele... | php | [2] |
2,990,202 | 2,990,203 | Adds an empty directory in the archive | <p>i want to Adds an empty directory in the archive. </p>
<pre><code>ZipArchive::addEmptyDir
</code></pre>
<p>this function add it
but i the root only</p>
<p>assume i want add it in</p>
<pre><code>/dir/dir/
</code></pre>
<p>i cant</p>
<pre><code><?php
$zip = new ZipArchive;
if ($zip->open('test.zip') === TR... | php | [2] |
2,174,073 | 2,174,074 | Setting a number between tags as a variable | <p>I'm trying to get a number (<code>x</code>) inside tags, ie: <code><span id="Number">x</span></code> and set that as a variable.</p>
<p>Am I even on the right track with this? Not even close?</p>
<pre><code>var y = $('#Number').nextUntil('span');
</code></pre>
| jquery | [5] |
232,806 | 232,807 | Remove iphone 3G and ipod touch 3 from the target | <p>How does one remove the iphone 3G and the ipod touch 3 from the target?</p>
<p>I have an app that uses libraries that need armv6, so cannot remove that from the architectures. Is it possible to still exclude the iphone 3G and the ipod touch 3?</p>
<p>Thanks</p>
| iphone | [8] |
1,346,905 | 1,346,906 | How to refresh particular part of my web page? | <p>I want to refresh only a single part of my page not the whole.
How ?</p>
| asp.net | [9] |
4,028,366 | 4,028,367 | Droid X not connecting to adb on OS X | <p>I got a Droid X for development, and after setting it up just like all my other test devices, it showed nothing when I ran "adb devices". When I plugged it in each time, OS X complained that it could not connect to the mass storage device.</p>
<p>How can I fix this, and connect my Droid X to OS X for development?<... | android | [4] |
71,994 | 71,995 | Rewrite inline javascript into jQuery | <p>How do I rewrite this using jQuery instead of the onchange event?</p>
<pre><code><input name="PasswordName" type="password" id="passwordID">
<p>
<input type="checkbox" onchange="document.getElementById('passwordID').type = this.checked ? 'text' : 'password'"> Show Password
</p>
</code></pre>... | jquery | [5] |
3,301,976 | 3,301,977 | substr not working correctly? | <p>I am creating a forum, and currently working on the bbCode section. All the BBCode works, but I am also implementing an emoticon system. The syntax looks like this: [e]:)[/e]</p>
<p>I made this string for testing purposes:</p>
<pre><code>[b]hello world[/b] [i]i am having fun[/i] [e]:)[/e] how are you doing today?!... | php | [2] |
585,463 | 585,464 | c++ vectors and pointers | <p>As i understand if i dont store pointers, everything in c++ gets copied, which can lead to bad performance (ignore the simplicity of my example). So i thought i store my objects as pointers instead of string object inside my vector, thats better for performance right? (assumining i have very long strings and lots of... | c++ | [6] |
3,120,675 | 3,120,676 | how to make a pop-out for printing? | <p>Need to make a function that would open a popout with a div inheriting innerhtml from another div on that page.</p>
<p>For example, the initial div might have some sort of a table, therefor when the user presses the print button, this div would open in a new popout. :)</p>
<p>EDIT:</p>
<p>Thanks, got it working!<... | jquery | [5] |
2,843,578 | 2,843,579 | jQuery access element by id | <p>This may be a simple question.
I need to access an html element using jQuery in the following way:</p>
<pre><code>var element_ID = "my" + "name" +"xyz";
</code></pre>
<p>Now I want to access/manipulate the element whose ID I have stored in 'element_ID' as above.</p>
<p>This doesn't work : <code>$('#element_ID')</... | jquery | [5] |
2,138,226 | 2,138,227 | parent().filter(":first") doesn't work | <p>I have:</p>
<pre><code><td>firstTD</td>
<td>secondTD</td>
<td>thirdTD</td>
<td>
<img src="img/cross.png" onclick="alert($(this).parent().parent().filter('td:first').val());">
</td>
</code></pre>
<p>Why I didn't get an alert: "firstTD" ?</p>
| jquery | [5] |
3,251,285 | 3,251,286 | Filter data for last 24 hours using c#? | <p>Here i am calculating the server restart count.</p>
<p>i need the server restart count for last 24 hours.</p>
<pre><code>string logType = "System";
EventLog ev = new EventLog(logType, System.Environment.MachineName);
int count=0;
for (int i = ev.Entries.Count - 1; i >= 0; i--)
{
EventLogEntry CurrentEntry =... | c# | [0] |
4,106,785 | 4,106,786 | fix orientation | <p>Reading android.os.Build.VERSION.SDK_INT I need fix orientation of my app. So, if version < 3 I need fix orientation to portrait.
Using this code does not run. </p>
<pre><code>@Override
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.a... | android | [4] |
1,362,685 | 1,362,686 | How to get full screen size in Eee Pad using HoneyComb | <p>HI,
I have a question to want to be asked. </p>
<p>I have a Eee Pad TF101.
I make the screen size with following procedure yard, but I always get 320*480 </p>
<pre><code>DisplayMetrics dm = new DisplayMetrics();
getWindowManager() . getDefaultDisplay() . getMetrics(dm);
Map.screenWidth = dm.widthPixels;
Map.scree... | android | [4] |
495,399 | 495,400 | prevent dll's accompany xml file from being copied to output folder in visual studio | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://facebook.stackoverflow.com/questions/2011434/preventing-referenced-assembly-pdb-and-xml-files-copied-to-output">Preventing referenced assembly PDB and XML files copied to output</a> </p>
</blockquote>
<p>for example, I have a c# project wh... | c# | [0] |
160,344 | 160,345 | Facing Force Close and the problem is in InnerClasses attribute | <p>I built an API and facing a force close in it and this is the following waring that i am getting at console side.</p>
<pre><code>[2011-02-04 17:49:05 - RMALiteTesting] warning: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute. (This class wa... | android | [4] |
536,306 | 536,307 | python script that captures an image and compares it to another image | <p>Basically, I want to automate something. I would capture a 100x50 picture of a certain button, and have a script that takes a picture of the same area with the same size, and then compares the two pictures to see if they are different. If they are different, it would do nothing, if they are similar +/- a certain amo... | python | [7] |
1,958,107 | 1,958,108 | how to combine two dataset to one xml file | <p>how to combine two dataset to one xml file</p>
<p>and how to read this after ?</p>
<p>i have this:</p>
<pre><code>dsView1 = new DataSet("1");
SQL = "SELECT * FROM ConfTbl";
adp = new OleDbDataAdapter(SQL, Conn);
adp.Fill(dsView1, "ConfTbl");
adp.Dispose();
dsView2 = new DataSet("2");
SQL = "SELECT * FROM DipTbl"... | c# | [0] |
536,441 | 536,442 | Hide div when clicked anywhere but another div w/ jQuery | <p>I have the following function that hide s a certain div when I click anywhere on a page:</p>
<pre><code>$("html").click(function() {
$(".myDiv1").addClass("hidden");
});
</code></pre>
<p>I would like to add an exception to this function. If a click is within another div, ignore this hiding... The only way for ... | jquery | [5] |
413,111 | 413,112 | how to make sql server 2005 search in arabic language? | <p>I have a SQL Server 2005 database in which I have some tables contain Arabic text. The datatype for those fields is NVARCHAR(n).</p>
<p>The Arabic text inside the table is appearing properly, and when selecting using select clause, they appear properly.
The problem is that searching for Arabic text with where clau... | asp.net | [9] |
87,324 | 87,325 | how to increase the timeout in php? | <p>How to increase transaction timeout ? i want to upload videos, but large size of videos not uploaded? </p>
| php | [2] |
3,659,432 | 3,659,433 | UIImage unrecognized selector sent to instance | <p>I have the 'classic' error: </p>
<blockquote>
<p>unrecognized selector sent to instance.</p>
</blockquote>
<p>If I read through other comparable questions it should be memory related, however I can't find out what I'm doing wrong.</p>
<p>Here is what I try to do:</p>
<ul>
<li>crop an image</li>
<li>give the im... | iphone | [8] |
5,121,280 | 5,121,281 | get FilePath from drawble folder android | <p>Hello i want to re size bitmap image... so for that i am using below code</p>
<pre><code> BitmapFactory.Options bmOptions = new BitmapFactory.Options();
bmOptions.inJustDecodeBounds = true;
int photoW = bmOptions.outWidth;
int photoH = bmOptions.outHeight;
int scaleFactor = Math.min(photoW / 100, phot... | android | [4] |
5,986,317 | 5,986,318 | Javascript array access | <p>How do i the use document.write() in javascript to access this form of array?</p>
<pre><code>({"1":{"1":1,"2":1,"3":1},
"2":{"1":1,"2":1,"3":2},
"3":{"1":1,"2":2,"3":1},
"4":{"1":1,"2":2,"3":2},
"5":{"1":2,"2":1,"3":1,"4":1},
"6":{"1":2,"2":1,"3":1,"4":2},
"7":{"1":2,"2":1,"3":2},
"8":{"1":2,"2":2,"3"... | javascript | [3] |
2,590,585 | 2,590,586 | Possible to get mouse events fired when cursor is outside page? | <p>I'm creating a game in which one can hold the mouse button and drag it around to rotate an object. However, when the mouse position is outside the page bounds, all mouse events are not fired anymore. This means that the object isn't rotated anymore when the cursor is outside the page; moreover, when the user release... | javascript | [3] |
503,475 | 503,476 | How to make this cast implicit? | <p>I have</p>
<pre><code> class Wrapper : Base
{
Wrapper(WrappedObject& obj)
//...
};
void fun(Base& b);
</code></pre>
<p>I want to be able to directly call <code>fun</code> with a <code>WrappedObject</code> instance, is such an implicit conversion possible? how?</p>
<p>edit :
<a href="http://ideone.com/il... | c++ | [6] |
754,192 | 754,193 | Android RuntimeException: MotionEvent recycled twice. A Gingerbread issue? | <p>I am getting a rare but consistent error reported by a few users of my Android app. The user feedback is consistent with this web page that reports the error whenever a user of Android Gingerbread 2.3.1 touches the screen in the Tricorder program: </p>
<p><a href="http://code.google.com/p/moonblink/issues/detail?id... | android | [4] |
2,462,849 | 2,462,850 | html drop down list event | <p>I have a control and when the user select a value, it triggers a jquery event that sends an ajax postback. Its option values look like this:</p>
<pre><code><option value="select new month ... ">select new month ... </option>
<option value="____________________ ">____________________ </option... | jquery | [5] |
1,493,126 | 1,493,127 | Java Api for bugzilla to get details about the bug | <p>Am new to JAVA API can anyone help me with integrating bugzilla to my web application using JAVA API. For example when the user enters the bugid i need to fetch the detetails about bug say description about the bug from bugzilla. Can anyone help me with this?</p>
| java | [1] |
4,634,920 | 4,634,921 | Textview onclick bg color change in android | <p>If we click any of the Textview within a Listview, background color should have to change and onclick release, it should have to change to transparent color in android.Is there anyway?</p>
| android | [4] |
2,936,618 | 2,936,619 | Android: set Width of Toast | <p>Is there any easy way to <code>set width</code> of the <code>Toast</code> without <code>customizing</code> it?</p>
<p>Thanks,
Nital</p>
<p><strong>Update:</strong></p>
<p>der is no such method...
i finally customized it in this way...</p>
<p><a href="http://developer.android.com/guide/topics/ui/notifiers/toasts.... | android | [4] |
5,867,899 | 5,867,900 | SESSION destroys after POST | <p>I'm developing a site for someone where users can post problems to a website and the Admin of the company can view the problems and give a solution for it. I use one page that takes care of the login handling and a mysql db. The problem is that i can log in, it shows me another panel(userpanel), but whatever other b... | php | [2] |
140,189 | 140,190 | handling nulls in c# | <p>I have an object like this:</p>
<pre><code>class MyObject
{
public string Object.Prop1 { get; set; }
public string Object.Prop2 { get; set; }
}
</code></pre>
<p>I'm writing a custom JSON converter and I'm serializing this object like this:</p>
<pre><code>Dictionary<string, object> OutputJson = new D... | c# | [0] |
4,356,361 | 4,356,362 | How to make KmlLayer hidden? | <p>I added on a map KmlLayer. It works perfectly, I'm happy.
Now I want to make this KmlLayer hidden clicking on any button just using JavaScript abilities.
Which way I can do this?</p>
| javascript | [3] |
5,604,056 | 5,604,057 | How to download multiple files together from a database in PHP | <p>I know how to download a single file from a database in PHP. How can I download multiple files together from a database?</p>
| php | [2] |
3,367,015 | 3,367,016 | Set Value of PHP Switch case | <p>I have an PHP Switch case. How do I swt the value of "n" using the onclick of a button? </p>
<pre><code> switch (n)
{
case 1:
$result = mysql_query("select * from tblRestaurants order by RestName ASC");
break;
case 2:
$result = mysql_query("select * from tblCuisines or... | javascript | [3] |
5,889,013 | 5,889,014 | C# Trim string regardless of characters | <p>So here the situation.</p>
<p>I have multiple strings that begin and end with a random amount of spaces. The problem is the string contains multiple words so I can't just replace(" ","") so for example.</p>
<pre><code>" apple red "
' orange orange '
' pear grapes '
' turnship tur... | c# | [0] |
5,458,475 | 5,458,476 | move xcode project causes red text(missing files from project) | <p>When I move iphone project directory to a new path.
There are some red texts indicate the missing files from the project source codes.
How to aovoid these?</p>
<p>Welcome any comment</p>
<p>Thanks</p>
<p>interdev</p>
| iphone | [8] |
3,867,257 | 3,867,258 | Accessing custom control sub-controls via ID | <p>I am building a Custom Control for the first time, it is still in the making, but basically it is a composite custom control that contains a bunch of drop down menus and buttons. Thinking ahead, I got a problem, I will need to access some of these subcontrols via ID, but how will I know their ID? I cannot set them a... | asp.net | [9] |
398,996 | 398,997 | Which regular expression should I use for getting image link from text? | <p>I have following code:</p>
<pre><code><center><img src="http://trustedyouautocorrect.com/wp-content/uploads/2012/02/ixxx66134057.jpg" alt="daniel7531sarah" /></center><input id="gwProxy" type="hidden" />
<!--Session data--><input id="jsProxy" onclick="if(typeof(jsCall)=='function')... | php | [2] |
532,822 | 532,823 | javascript inside updatepanel | <p>im using javascript in asp.net gridview </p>
<pre><code><script type="text/javascript">
var currentRowId = 0;
function SelectRow()
{
if (event.keyCode == 40)
MarkRow(currentRowId+1);
else if (event.keyCode == 38)
MarkRow(currentR... | asp.net | [9] |
3,323,867 | 3,323,868 | Launch an activty from the browser by clicking a webpage link | <p>I need to make an android App that when the user navigates to my webpage with the browser and clicks on a specific link my App activity gets launched.</p>
<p>I try to achieve this using Intent filters but without success. I followed some samples like Notepad and PhotoStream but nothing works for me.</p>
| android | [4] |
792,196 | 792,197 | How to apply SMTP Authentication to my mail | <p>The code below is my mail code that send passsword to mail but it does not go to yahoo and gmail i want to add STMP authentication to it how can i do that.</p>
<pre><code> <?php
if(isset($_POST['submit'])){
If(empty($_POST['email'])) {
echo 'Please fill in the required fields!';
}else{
$ema... | php | [2] |
3,500,237 | 3,500,238 | Show last item in ListiView when you click on edit text | <p>currently I'm doing this to get the focus of the last item in a listview after clicking on an edit text:</p>
<pre><code> bodyText.setOnFocusChangeListener(new OnFocusChangeListener() {
public void onFocusChange(View v, boolean hasFocus) {
getListView().setSelection(getListView... | android | [4] |
1,007,431 | 1,007,432 | How to find whether current Cursor region is bullet or not | <p>I have an HTML code as below.</p>
<pre><code><html>
<body>
<div id="Editbox" contentEditable="true"
style="border: solid 1px red; width: 600px; height: 300px;
overflow-y: scroll; overflow-x: scroll;">
<ol style = "list-style-type:lower-alpha";>
<li&g... | javascript | [3] |
4,031,434 | 4,031,435 | Android,Problem to adjust size of my text in TextView | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2617266/how-to-adjust-text-font-size-to-fit-textview">How to adjust text font size to fit textview</a> </p>
</blockquote>
<p>hello,</p>
<p>I have a TextView that can have big or small word one word or few.</p>
... | android | [4] |
2,848,370 | 2,848,371 | Contact Fields in android | <p>I am building an Android application where I need to detect the contact format (fields like name, lastname, DOB etc) from the user's Android handset. How do I do it?</p>
| android | [4] |
131,667 | 131,668 | Is overflow of abs well defined? | <p>Is the behavior of the following code well defined?</p>
<pre><code>int32_t i = -0x80000000;
uint32_t u = abs(i);
</code></pre>
<p>There may be an overflow/underflow on the first line. But on platforms when that is ok, does the second line have defined behavior?</p>
| c++ | [6] |
3,371,196 | 3,371,197 | about C++ Libraries | <p>Simple question here, when i install an IDE like vb for example, it has c++ libraries.<br>
the question is, how to know the contents of a library(methods or manipulators) the way i am intended to do.<br>
where should a beginner find the contents formally? <br> i found them in Wikipedia, but i want to know the origin... | c++ | [6] |
1,581,190 | 1,581,191 | C# Ending Regex statement | <p>I have this code</p>
<pre><code>Regex.Match(contents, @"Security=(?<Security>\D+)").Groups["Security"].Value;
</code></pre>
<p>this makes the following:</p>
<blockquote>
<p>Security=SSPI;Database=Datab_ob </p>
</blockquote>
<p>How do I make the Regex cut off at ; so i would only get Security=SSPI</p>
| c# | [0] |
4,330,043 | 4,330,044 | Python Error: 'int' object is not subscriptable | <p>I just started teaching myself Python. I was trying a simple piece of code, get someone's name and age and let him/her know when they turn 21... not considering negatives and all that, just random. I keep getting this 'int' object is not subscriptable error... I realize this is a "newbie" question so I apologize for... | python | [7] |
4,490,656 | 4,490,657 | How is NSLocaleCountryCode determined? | <p>How is the NSLocaleCountryCode determined by the iPhone OS in versions greater than 3.0?</p>
<p>Can it be changed by the user?</p>
| iphone | [8] |
4,428,044 | 4,428,045 | Insert Null value In DB | <p>I need to insert NULL value when I donot upload image .I tried to do that but I find insert in table .Please any one help me</p>
<p></p>
<pre><code>protected void BtnSubmit_Click(object sender, EventArgs e)
{
int RowAffected = 0;
byte[] imageSize = new byte[FileUpload1.PostedFile.ContentLength];
... | c# | [0] |
1,699,710 | 1,699,711 | C#: get first key from Dictionary<string, string> | <p>I'm using a <code>System.Collections.Generic.Dictionary<string, string></code>.</p>
<p>I want to return the first key from this dictionary. I tried <code>dic.Keys[0]</code> but the only thing I have on the <code>Keys</code> property (which is a <code>KeyCollection</code> object) is an enumerator.</p>
<p>Do I... | c# | [0] |
2,690,592 | 2,690,593 | transporting crash log of my app to my server | <p>Is there a way to send take the crash logs of my app send it to my server ? If no is there a alternative mechanism to do this ?</p>
| iphone | [8] |
3,103,736 | 3,103,737 | Delay the execution of jQuery script for specific time . . | <p>I want to delay the execution of jQuery script for specific time.</p>
<p>For example, I have a user define function <code>ABC()</code> and i want to call this function after a few seconds.</p>
<p>my example code is below</p>
<pre><code><script type="text/javascript">
var i = $('#test').val();
//here i w... | jquery | [5] |
4,678,700 | 4,678,701 | How to work around the can't cast from parent to child issue | <p>i have read about the reason why you can't cast a parent to a child: you can't cast an ANIMAL to a DOG; it might be a CAT.</p>
<p>But here is my issue: </p>
<p>i receive a data object from my datalayer with 50 properties. Now i created a child object of this object, with only one more property.</p>
<p>And in my f... | c# | [0] |
3,714,207 | 3,714,208 | Get Image from Byte Aarray | <p>Hope You all are fine and also in one of your best of moods!!</p>
<p>Hope You all are Enjoying iPhone development.</p>
<p>I herewith one issue that i am not able to solve, may be i don't know the depth concept of iPhone.
So Its my humble requet to you to guide me or suggest or share your ideas.</p>
<p>I do find a... | iphone | [8] |
3,011,930 | 3,011,931 | PHP - call a function from a img src | <blockquote>
<p><strong>Possible Duplicates:</strong><br>
<a href="http://stackoverflow.com/questions/5239286/want-to-render-an-image-without-saving-it-to-disk-using-php-gd-libs">Want to render an image without saving it to disk using PHP GD libs</a><br>
<a href="http://stackoverflow.com/questions/3385982/the-ima... | php | [2] |
4,129,908 | 4,129,909 | Includes causing problems in c++. How to learn to do c++ right | <p>So I have made a complex project and now I have too many include files causing me headaches. How can I best manage these classes? Some classes need to use other classes. I also have a .h file containing a bunch of arrays of int. These stay the same through the application but I get the problem when the compiler comp... | c++ | [6] |
1,372,331 | 1,372,332 | FormView not updating with control events | <p>Time for my daily ASP.NET question.</p>
<p>One of my pages shows all of our customer information from a customer table. I want the user to choose whether to see all customer records, or select a specific record from a list. So, my webpage has two radio buttons (show all customers, show specific customer), a listb... | asp.net | [9] |
4,003,085 | 4,003,086 | Calendar App Suggestions | <p>I've been tasked to implement an appointments app, The main screen is to display the days of the current month and which year it is and the user can perform various tasks by selecting a day and pressing one of 6 buttons.</p>
<p>I'm a little lost as where to start on this. Should I create a view in xml or would it b... | android | [4] |
1,562,166 | 1,562,167 | Random selection of testimonials | <p>$message doesn't seem to be displaying anything.</p>
<p>I have the following code:</p>
<pre><code><?php
$files = glob("testimonials/*.txt");
$filename = $files[rand(0, count($files)-1)];
$lines = file($filename);
$author = array_shift($lines);
$message = explode("", $lines);
?>
<h1>Testimonial</h1&... | php | [2] |
4,582,832 | 4,582,833 | How to Convert List<user> to List<object> | <p>I have list of user class but now i have to return it as a list of object, I try to convert it but it gives me error like. Can not implicitly convert.</p>
| asp.net | [9] |
5,688,090 | 5,688,091 | how to create a program in java | <p>how to create a program that will sort the elements of array in ascending and descending order.
sample output:
Enter size: 4
Enter elements
11
26
8
30
Ascending
8
11
26
30
descending
30
26
11
8</p>
| javascript | [3] |
3,893,336 | 3,893,337 | How to get the application name of the APK programmatically (not installed) | <p>Based <a href="http://stackoverflow.com/questions/7802780/how-to-get-the-name-of-the-application-in-android">How to get the name of the application in android?</a>.</p>
<p>I have this snippet. `andPath| is the location of the APK.</p>
<pre><code>PackageInfo info = getPackageManager().getPackageArchiveInfo(andPath,... | android | [4] |
1,892,367 | 1,892,368 | this.Dispose() doesn't release memory used by Form after closing it. | <p>I have a Windows Form Application in which clicking certain buttons create objects from a 2nd Form. On closing this 2nd Form by the user, the memory used by this form is not released (according to Task Manager).</p>
<p>I tried using <code>this.dispose()</code> on exit button, <code>this.close()</code>, <code>form2 ... | c# | [0] |
2,238,896 | 2,238,897 | JQuery logic question | <p>How can I achieve the following affect with JQuery when I place my mouse over an image as in the following link <a href="http://www.360internetservices.com/templates.php?cPage=2" rel="nofollow">http://www.360internetservices.com/templates.php?cPage=2</a></p>
| jquery | [5] |
3,062,522 | 3,062,523 | C++ "class Foo return Bar" and "class Bar return Foo" possible? | <p>Is it possible to define C++ classes Foo and Bar s.t.</p>
<pre><code>class Foo {
Bar makeBar();
};
class Bar {
Foo makeFoo();
};
</code></pre>
<p>?</p>
<p>Thanks!</p>
| c++ | [6] |
241,163 | 241,164 | What is the best way to have kwh/year in a variable | <p>I wanted to know something like if i have a variable like 200kwh/year ..whats the best way to put into a variable.?</p>
| java | [1] |
2,328,022 | 2,328,023 | What is the proper way to close an Activity from a Service? | <p>Can finish() be used to close an activity from a service? If not, what is the proper way to end an activity from a Service? I've created an activity from my service and need to close it.</p>
| android | [4] |
122,505 | 122,506 | Can we initialize structure memebers through smart pointer in initialization list? | <pre><code>#include <boost/scoped_ptr.hpp>
class classA
{
protected:
struct StructB
{
int iAge;
double dPrice;
};
boost::scoped_ptr<StructB> m_scpStructB;
public:
classA(int age, double price)
: m_scpStructB(new StructB)
{
m_scpStructB->iAge = ag... | c++ | [6] |
3,047,134 | 3,047,135 | jquery thickbox | <p>I am using jquey thick box to popup a window to add records when i click on an add link.It popups the window but doesn't add the records to database.Although when i directly access this page to add records it's working fine.but in popup window it's not same for add and edit. when i click on save button the popup win... | jquery | [5] |
2,989,404 | 2,989,405 | Reference original array and double numbers PHP | <p>I am getting deeper into PHP and I am attempting to double the original values of a given array in PHP. Here is the code if it were to return a different array:</p>
<pre><code>$blandArray = array(1, 2, 3, 4);
function doubleNumbers($arr) {
$doubledArray = array();
for ($i=0; $i < count($arr); $i++) {... | php | [2] |
2,761,203 | 2,761,204 | Java tool for easy dependency management in eclipse | <p>Is there any tool for java that I can use to automatically download the jars for the frameworks I want to use and manage there dependencies in Eclipse. I have always admired Visual Studio and how easy it is to do stuff like that and I'm wonder if there is any capability like that for Eclipse. </p>
| java | [1] |
4,622,007 | 4,622,008 | New php user--trying to open .php file in test environment | <p>Using mac OS, installed MAMP. Everything seems to be running fine. Created a PHP file in the htdocs folder, tried to open it with Firefox but won't recognize PHP file. Asks me which program I want to use to open the file, when I choose firefox, blank screen comes up. </p>
| php | [2] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.