text stringlengths 8 267k | meta dict |
|---|---|
Q: Kill parent process without administrator rights How can I kill the parent process without administrator rights? Process A creates process B, and in process B I need to kill process A.
A: Check this:
Taskkill
Ends one or more tasks or processes. Processes can be killed by
process ID or image name. Syntax
taskkil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: is this linux serial port configured the same as the windows one I am trying to port a program to linux but i cannot get the serial port working.
this is the windows code
if( (idComDev[i] = CreateFile(ComStr,GENERIC_READ | GENERIC_WRITE,0,0,OPEN_EXISTING,0,0)) != INVALID_HANDLE_VALUE )
{
SetupComm(idCo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: compare java lists in the loop , I make some actions then get and add string to the list1
after loop: list1 contains 2 strings : OK
now, in another loop I get value on each iteration which return me a string and I would like to check that strings in list1 aren't available in the second:
for(inti=0;i<nb;i++){
valu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: objective c cocoa updating gui from a separate thread I have a thread which is incrementing the value of the variable "int count" . I want to update my UI with the new value of "int count" until I stop the increment by pressing the stop button. I've manage to update the UI but the memory footprint keep on growing.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Layer-backed OpenGLView redraws only if window is resized I have a window with a main view of type NSView and a subview which is a subclass of NSOpenGLView whose name is CustomOpenGLView.
The subclass of NSOpenGLView is obtained through a Custom View in Interface Builder and by setting its class to CustomOpenGLView.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to be warned when overriding a virtual method with wrong visibility When overriding a virtual method, I noticed that when I make a mistake in the visibility (protected method overridden as a public method), I'm not warned by the compiler.
It is valid C++, but usually it is a mistake.
For example:
#include <iostr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to retrive all comments for a specific post? Having a bit of block trying to get comments for a specific post. Working with MVC 3 and VBNET. A post url looks like /Blog/Post/1. I can display the post without problem but need to get the comments for PostId=1 from the Comments table. I tried a Linq inner join stat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Lightswitch Organizational Chart Situation:
*
*I have an application that have Employee information
*Each Employee has a Manager field (that refers to another employee)
*To enhance the experience, I was thinking of placing an organization chart based on the inputted information.
Question:
*
*Is there a way... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Use PHP to convert JPEGs to transparent PNG I have a lot of JPEG images that I want to convert to PNG images using PHP.
The JPEGs are going to be uploaded by clients so I can't trust them to make sure they are in the right format.
I also want to make their white backgrounds transparent.
Does PHP have any functions I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Simple Collision Detection - Android I want to do really simple collision detection in a pong like game.
The ball is a square and the paddle (bats) is rectangles.
I have two entities coming in where I can get the current X and Y position, and the bitmap height and width. Which is the simplest way to do this?
I have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Display on page ready First of all sorry for my poor english. Do not hesitate to tell me if the problem I will try to describe is not clear...
I have a menu like this :
<ul class="menu">
<li>
<a href="#">Label 1</a>
<ul class="sub-menu">
<li>
<a href="#">Label 1</a>
</li>
</ul>
</li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting image in Alert dialog which comes from other activity I have an alert dialog, in that i have a button and an image view, on click of button an activity is fired which contains a gallery in which there are pictures, when clicked on a picture i have to show it in that image view. please guide.
A: Use startAct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: One to one mapping using primary key I have two simple tables: Item and ItemDetail
Table Item has following columns: id, name
Table ItemDetail has following columns: itemId, color, size
An ItemDetail never exists without an Item. An Item can exist without any ItemDetail. For every Item there is at most one ItemDetai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does gettext translate an empty string to the .po header text? I've got gettext setup within PHP5. After some struggling with the charactersets and the like, I've managed to translate some basic strings. Now I've ran into a problem. When translating an empty string I expect to get the untranslated (empty) string... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to map Int to int8 by default? I have an existing model implementation that needs to work with a new database.
Can i configure Hibernate to map int variables to int8 instead of int4 by default?
A: Created a new Dialect for my specific Database type as proposed in a comment.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7610151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The opposite of Hungarian Notation? Most programmers know of a thing called 'Hungarian Notation', each variable has a nice prefix to denote its data type, i.e.
bIsExciting = false; // Boolean
strName = "Gonzo"; // String
iNumber = 10; // Integer
While this style of notation has fallen out of favor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Convert PIL Image to Cairo ImageSurface I'm trying to create a cairo ImageSurface from a PIL image, the code I have so far is:
im = Image.open(filename)
imstr = im.tostring()
a = array.array('B', imstr)
height, width = im.size
stride = cairo.ImageSurface.format_stride_for_width(cairo.FORMAT_RGB24, width)
return cair... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Thread ending using java.util.concurrent API I am working with threads, and decided to use the most modern API (java.util.concurrent package).
Here's what I want to do (pseudocode):
//List of threads
private ScheduledExecutorService checkIns = Executors.newScheduledThreadPool(10);
//Runnable class
private class Te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET SQL Server insert error So I've these two statements:
string insertUserData = "INSERT INTO W711_User_Data(Network_ID, F_Name, M_Name, L_NAME, Badge, Telephone, Org_Code, Org_Name, Req_Head_Network_ID)Values(@networkID1, @firstName1, @middleName1, @lastName1, @badgeNumber1, @telephone1, @orgCode1, @o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Simple functions giving me a crash on Objective-C I'm coding a simple calculator and I want to make an unique function for all 4 arithmetic buttons. I got here:
-(IBAction)simbolo1:(UIButton*)sender{
if (isNumeric(campo1.text)) {
NSString *str=campo1.text;
campo2.text=str;
int S=1;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it legal to create a recursive background handler in iphone?(processing when app enters the background) If I register an app for background app in did enter background and make a background handler with approximately 10 mins to finish the task, after the time is over the handler will call finishing block and in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ContentProvider Problems with Phone.DISPLAY_NAME See code to get all contacts on phone:
public ContactInfo[] getContactList(String selection, String[] selectionargs) {
String[] projection = new String[] {
Contacts._ID,
Contacts.DISPLAY_NAME,
};
String sortOrder = Phone.DISPLAY_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are there better alternatives to db triggers? I have two databases. I want to keep one table in sync. Let's call it the user table.
When one row in a table changes using a trigger I need to update the second database and the other way around.
*
*Is this safe?
*Is there a better way to do this?
It's not a direc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: IE8 fixed position top & bottom resize bug Based on my CSS, all Browsers including IE7 show my bottom bar correct and fixed, all the time.
.bottom-fixed {
position: fixed;
bottom: 0;
margin-left: -235px;
min-width: 1160px;
max-width: 130em;
width: 100%;
}
However there is something strange i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Hyperlink vs Anchor When to use HyperLink and when to use Anchor?
When using HyperLink how to handle clicks?
com.google.gwt.user.client.ui.Hyperlink.addClickHandler(ClickHandler) is deprecated
com.google.gwt.user.client.ui.Hyperlink.addClickListener(ClickListener) is deprecated as well.
Doc suggests to use Anchor#... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: JSON - Access field named '*' asterisk I am trying to access a JSON field that has the key '*':
{
"parse": {
"text": {
"*": "text i want to access"
}
}
}
Neither myObject.parse.text.* nor myObject.parse.text[0] works.
I have searched for an hour but haven't found any hint that an asterisk has s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Refactoring in Android Programming Please, if someone could write the meaning of refactoring in android, how it is done and what is its use in android programming. I am using Eclipse.
Thanks
A: Refactoring means making small changes to improve the structure of a program without affecting its operation. So, for exam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Set absolute height (offsetHeight) of HTML containers that use CSS padding, margin and border by Javascript I want to do something like setting offsetHeight (offsetHeight is a read only property) - fit 3 div ("d1", "d2", "d3") into one container ("c"):
<!DOCTYPE HTML>
<html>
<body>
<style type="text/css">
.c {
bac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Eclipse Glassfish 3.1 CREDENTIAL ERROR I get the error "credential error" in eclipse indigo 3.7 with glassfish 3.1 when I try to start the server on Win xp. Glassfish starts normally from command line. When I start GS from eclipse I get:
[#|2011-09-29T17:30:58.386+0200|SEVERE|glassfish3.1.1|javax.enterprise.system.t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to debug tsql stored procedure? How do I debug a tsql Stored procedure. I have tried the following link.
http://msdn.microsoft.com/en-us/library/ms241871(v=vs.80).aspx
But I am unable to hit the break point. Is there a better way to debug. My environment is
Sql Express 2008, Visual Studio 2010
A: I have found ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Display multidimensional array elements in smarty
Possible Duplicate:
Display array elements in smarty
I have merged two mysql results :
while($rs_1 = mysql_fetch_array($r1)) {
$arr1[] = $rs_1;
}
while($rs_2 = mysql_fetch_array($r2)) {
$arr2[] = $rs_2;
}
$resN = array_merge($arr1,$arr2);
var_dump($resN) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: InfoPath form closes and redirects to deleted SharePoint library? When a user clicks submit for the first time, the form closes and they are redirected to an old library that I deleted. But if they were to go back and edit their form then submit again, it will redirect to the correct library. Why does it redirect to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What can you do in FQL that you cannot with the Graph API I'm trying to figure out what are the cases where FQL has features which the Graph API doesn't.
I tried to find the answer in the docs, but as many others have pointed out, they aren't the clearest or the most complete. To make things more difficult, a lot of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Handling Ambiguous Column Names Im in a position where I cannot alter the table structure of my database and I have Ambiguous Column Names in [table1] and [table2]. I do not need to use any fields from [table2] but its existence is necessary to relate to another table. Is there a way that I handle this?
A: Every ti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get AppID for fan page? All my old fan pages appear in Apps on FB dev site. How to force a newly created fan page to appear there to get AppID and App Secret?
Thanks
A: Page isn't an application. If you create new application, you'll get page and new appid with appsecret.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7610232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Classic ASP xsl date conversion I have the following code that reads a rss feed into my page, but I would like to have the pubDate convert into a more human readable date if alt all possible.
<?xml version="1.0" encoding="iso-8859-1"?><!-- DWXMLSource="mm_news.xml" -->
<!DOCTYPE xsl:stylesheet]>
<xsl:output me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Apache Httpd in front of Tomcat for faster SSL processing? Does placing Apache httpd in front of Tomcat facilitate faster SSL processing? Does the overall throughput go up or down when using both servers?
A: Installing Apache to an other machine will increase the latency (the request has to go through one more mac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: j2me audio player I created a audio player using following code.
try {
InputStream is = getClass().getResourceAsStream("bell.wav");
player = Manager.createPlayer(is, "audio/X-wav");
player.realize();
player.prefetch();
player.start();
}
catch (IOException ex) {
ex.printStackTrace();
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IE: How to display absolute positioned divs under a relative positioned div currently I'm creating a layout, which requires a div having background graphics and the top and the bottom. My mark-up which I created works fine in FF and looks like this:
#wrapper {
width: 520px;
padding: 2px;
position: relative;
float: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Transforming XML so that all its elements and attributes effectively become "minOccurs 1" I would like to transform a complex XML element so that its structure becomes "regular" - all subelements and attributes present in this element anywhere will be present in 100% of its nodes.
It's probably easier to show what I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Display contacts in Blackberry Application I had retrieved the contacts from the phone book and displayed the contacts in pop up of Blackberry Simulator. It runs well in simulator, but not running in Blackberry Device. I stuck on this. Please help me.
Thank you.
A: There is a difference between simulator environmen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: IllegalStateException: get field slot from row 0 col 3 My app always crash at the beginning the error is in the log
My Code:
private void onCreateDBAndDBTabled() {
myDB = this.openOrCreateDatabase(MY_DB_NAME, MODE_PRIVATE, null);
//myDB.execSQL("DROP TABLE " + MY_DB_TABLE);
myDB.execSQL("... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: touches ended/After dragging is completed, i need to check, if the dragged image frame touches any of my 100 images frame i have 100 UIViews in UIViewController class . i am dragging a separate imageView over my 100 UIviews.
when touches ended/dragging completed, i need to check, if the dragged image frame touches a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP MySQL utf 8 encoding My trying to make an Ajax call to a PHP function that pulls out data from my database. I've run into a problem though.
My query looks like this
$query = "SELECT * FROM mytable WHERE field LIKE '%$string%'"
I then check on the number of rows returned by the query, but when i type in æ ø å th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Storing the state of checkbox in listview while using custom BaseAdapter in android? i have a listview which is having image, text and checkbox i have inflated this using BaseAdapter. i want to send only those images which are selected but how to store the state of checkbox ?
may be i am wrong as i am using baseadap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Not able to upload image to the server in android I have used some code from the internet for uploading image
public class ActUpload extends Activity {
InputStream is;
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
Bitmap bitmapOrg = BitmapFactory.decodeResource(getRes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Show all pictures from database in a GridView I have stored stored some links from pictures with a text to it in my database, with this:
int drawableID = context.getResources().getIdentifier("devil", "drawable", getPackageName());
iv.setImageResource(drawableID);
String info = String.valueOf(drawableID)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android SharedPreferences Limit I am searching for the maximum Android SharedPreferences key, value pairs but cannot find any good answer. Secondly, I want to ask that if I have a key what is its String value limit. How many character can put into it. If I need a choice for a value change frequently, should I use SQ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JSON:How to handle JSON response like this? Here is the Response
I wonder how can I handle a JSON Response like this?
This a JSONArray, but didn't have a name
Here is the response:
[[84,"sinat","qq357068756@163.com"],[88,"msn","qq357068756@hotmail.com"],[89,"163t","qq357068756@hotmail.com"],[90,"mail","qq357068756@h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Expose Member Data Through Read-only Iterator I have a class 'MyClass' which contains some data stored in std::maps. The standard maps contain pointers to objects, e.g.
private:
std::map<int,Object*> m_data;
I want to expose the data to the outside world but I do not want other classes/functions to be able to mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Fetching a file from a PHP file in Google App Engine I need to know if there is anyway that I can use file_get_html or any equivalent function in php on GAE? I know it has something called URLFetch() but I am not able to understand how I will call that from a php file.
Any help?
A: You cannot run PHP on Google App ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Moving a Drupal 6.x site to MediaTemple and getting the WSOD I'm trying to move a Drupal site over to a MediaTemple (DV) account and keep getting the WSOD. If I move the site over, using the same procedures, to a MediaTemple (GS) account everything works just fine.
I've tried pouring through the WSOD docs to pinpoi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I specify site after I have built the deployment package with Microsoft Web Deploy? Currently I do the following:
*
*Create package using
msbuild something.csproj /P:Configuration:Some /T:Package
*After that I go to the Package folder under obj\Some\Package and run the following
something.csproj.deploy.cmd /... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Simple library in Android : Boolean in "1" or "0" Simple library is great and i already parsed many
different XML from soap servers since last 3 days, but i encountered
boolean attributes with "0" or "1" :
<list mybool1="0" mybool2="1" attr1="attr" attr2="attr">
<page mybool3="1">
...
</page>
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Saving 500/404 errors in Ruby on Rails to a database? Is there a way to save the 500/404 etc errors to your database so you can check them to see if there are any bugs on the site?
I thought you could send an JS AJAX request from the 500.html page. e.g.
/errors/create/?message=error_message&ip=123&browser=ie9
But I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How could I send JSON object and get in return js code in rails 3.1? I have a list of html input items in my html page each representing different model. On click of the submit button, I would like to send all the details as a json object to the controller. From the controller, I would like to return the js code to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Difference between extern int a; extern int a=42; While I was reading the answers of Use of 'extern' keyword while defining the variable
One of the user answered these way
extern int a; // not a definition
extern int a = 42; // definition
I was expecting both are not definitions but declarations. I wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is it possible to spoof a value for a hardware profile in IO/Kit on OS X? As an exercise in OS X IO/Kit manipulation, I am looking to return a different UUID, Serial, Boot ROM version, perhaps even number of cores and processor type (just any value) to the System Profiler as well as any other program that asks.
From... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ Delete Operator I'm relatively new to C++ and I have an issue which I really do not understand. My code creates a linked list. It is actually longer than this, but I chopped it down for the purpose of this question.
When I run the code, it adds three nodes and then when it goes to delete the node with the URI b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RunTimeException in running timerTask in android In my android service I am running a simple timer but android throws exception...
My code as follows
public class MyService extends Service{
private Timer timer = new Timer();
public void onStart(Intent intent, int startId) {
super.onStart(intent, start... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Connecting DB using `HTML5` is possible? Is it possible to connect to a DATABASE which is in WEBSERVER through HTML5 only without using ASP.NET, JSP etc.
A: Html5 is a browser display language. It has no inherent methods or capabilities to connect to server side technology. You will always need a server side techn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Assigning a jQuery progressbar value from SQL using jQuery/C# Asynchronously I have a SQL server that does a back-end function that updates a field on a table with progress-percentage. I would like to efficiently update the value of the progressbar dynamically.
The webpage is a C# .aspx page and the progressbar is c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: find with exec : how to perform multistep conditional action on each file I have bunch of php files in directory structure say /mylibs
I want to run a simple php -l $file on each php file which checks for syntax errors
find /mylibs -type f -iname "*.php" -exec php -l {} &>/dev/null \;
thats step one, the &>/dev/n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Magento: can't set the default value of custom order attribute using installation script I've added custom attribute to orders using mysql4-install-1.0.0.php in my module:
$installer = $this;
$installer->startSetup();
$installer->addAttribute('order', 'custom_status', array(
'type' => 'varchar',
'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to deal with huge queries to the Facebook Graph? I'd like to get every status update for every friend. Given I have say 500 friends, each with 200 statuses, this could be 100,000 statuses. How would you approach this from the query point of view?
What query would you write? Would Facebook allow this much data ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NUnit & testing log4net dynamic log file location I'm writing an application where the user can change (at runtime) the directory where the log4net log is stored. The directory string is stored in the app.config.
When I want to test if the log file is created in the right directory with NUnit, the logfile (and the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the name of this jQuery form validation plugin? (Screenshot included) I am looking for a good jquery plugin for form validation. I have found many related plugins but not of them matches the one I'm after. Below is a screenshot of what I'm looking for. Can anyone provide me with a link or the name of the plu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How I know when a class is a Helper or a Service? i'm using DDD architecture in my project and I need to create a class to generate a GUID to use in another class.
This class that generate my GUID is a Infrastructure Service or a Infrastructure Helper?
How I know when a class is a Helper or a Service?
A: Service ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to simulate virtuality for method template I have a class hierarchy where I want to introduce a method template that would behave like if it was virtual. For example a simple hierarchy:
class A {
virtual ~A() {}
template<typename T>
void method(T &t) {}
};
class B : public A {
template<typename T>
vo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Font in Android Library At the follow link
Android Dev Guide
is write:
Library projects cannot include raw assets
The tools do not support the use of raw asset files (saved in the assets/ directory) in a library project. Any asset resources used by an application must be stored in the assets/ directory of the applic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to convert NSString value @"3.45" into float? How to convert NSString value @"3.45" into float. 3.45
float fCost = [[NSDecimalNumber decimalNumberWithString:@"3.45"]floatValue] ;
A: float number = [string floatValue];
A: NSString *val = @"3.45";
float fCost = [val floatValue];
A: NSString's: - (float)float... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: How do I handle multiple web.config transforms for different instances when dealing with multiple publish targets? I have an Asp.NET MVC site that I manage multiple instances of. Each instance uses it's own database but the code base is all the same. To facilitate this I have several build configurations with matc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I access files on a c$ resource from C# I'm using an example like this:
System.IO.File.Copy("\\host\c$\folder\file.end", "c:\file.end", true);
But I'm only getting a DirectoryNotFoundException with the description
Could not find a part of the path '\host\c$\folder\file.end'
What do I have to do to access ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Share on CRM2011 with XRM services? I'm new to CRM 2011. How to Share (create share record contact between team) on CRM2011 with XRM services? I can't find on SDK and I don't know to where shared record on MSCRM db.
A: You're looking for the GrantAccessRequest class. Here's the SDK article.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7610366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't set value of hidden input to comma seperated list in ASP VB.net Hi I've run into a really annoying problem, I'm trying to set the value of a hidden input to a comma seperated list taken from a database but in pure CSV format it won't set the value.
The input tag and ul tag looks like this (I am aware of asp:hi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to sort an NSArray of float values? I have an NSArray like this:
how to sort NSarray float with value like this:122.00,45.00,21.01,5.90
A: try this it work for me
NSArray *array=[[NSArray alloc] initWithObjects:[NSNumber numberWithFloat:12.01],[NSNumber numberWithFloat:13.01],[NSNumber numberWithFloat:10.01],[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does DotNetNuke 6 support Ajax Control Toolkit? Does anybody have successfully working module in DNN 6 with the Ajax Control Toolkit?
My modules stopped working when we migrated from DNN 5.x to to 6.x.
Modules compile without errors but I am getting client side script error:
'AjaxControlToolkit requires ASP.NET Aja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Rails 3, Devise, Multiple Roles Sharing Same Views I'm writing a trading system and I have 3 models/roles: Buyers, Sellers and Administrators. I have generated the devise views for each of the models but I would like to use the same sign in, forgotten password pages etc. for them, rather than maintaining 3 sets of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cannot create an object through actionscript I created MovieClip, "Exported it for ActionScript" with the same name. It's okay when I create an object visually, by dragging it to the stage but when using var smth:* = new myClass() an error occurs. There is an error because I have some code in the MovieClip I exporte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET 3.5 application running a .NET 4.0 API We have a few applications that are under the .net 3.5 framework. We have a code API (library for reusable access to central database information) that is distributed. We have moved that piece of the site to that .net 4.0 framework.
My question is; how can we make the api ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Deriving a random long value from random integers I have a method int randInt(int min, int max) that generates a random integer between min and max inclusive. It interfaces with an external system that has a good source of entropy.
The external system only generates 32-bit integers, while I need to get a 64-bit long... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to setup SSL on a local django server to test a facebook app? I've configured my local machine's HOSTS configuration to access the local server ( @ 127.0.0.1 ) whenever I hit http://www.mydomain.com on the browser.
And I was using this to interact with facebook's graph api to build my app. But now facebook requi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Sorting ArrayList data within table I have a TreeTable and would like to perform the sort by number and alphabetically when clicking on header.
Example:
*
*On a first click, I have to check that the column content is sorted by number
*If I click on another column that contains String data, I have to check that co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ffmpeg unsupported video codec I tried to convert a .flv into an mpeg with this code:
ffmpeg -i my.flv -target ntsc-dvd -aspect 4:3 my.mpg
And I get a lot of these here:
[flv @ 0x5597b8]Unsupported video codec (7)
and then:
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Unsupported codec (id=0) fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Making the jqueryUI theme picker widget work with localhost versions of css files The jQueryUI theme picker widget is awesome and I would really like to use it for a project in ASP.NET. But the theme picker loads the files from the jQuery website which isn't necessary because I have a copy of it. I did look into the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: On div hover with some class, find the last class and add class to a link element with the same last class. How in jQuery? How to add a class to an element(link) when hovering a div with the last class? Here is what I mean:
I have this code:
<a href="http://google.com" class="menu nice menu-2">Google</a>
<a href="ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .htacess Redirect & Secure Browsing on my Facebook Page I use the following Code on my Facebook page to check if user is FAN or NOT FAN. After this the users get different contents. It works fine but if I use Secure Browsing in Facebook I always see just: "You don't like this page yet."
<?php
require_once 'facebook-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to include .resource files into an assembly? I have a couple of compiled resource files (myProg.en_US.resource, myProg.de_DE.resource and so on) which are currently loaded during runtime using ResourceManager.CreateFileBasedResourceManager().
I want to modify that and embed the resources into the assembly. How ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: post decrement in c
Possible Duplicate:
Undefined Behavior and Sequence Points
pre fix and post fix increment in C
Please explain how this program goes on to print i=2
#include<stdio.h>
void main()
{
int i=1;
i=i+2*i--;
printf("%d",i);
}
By the logic it should evaluate the value 3 because -- 1+2*1=3
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: how display html body part content from web url protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.details);
Bundle bundle = this.getIntent().getExtras();
WebView detailsLink=(WebView)findViewByI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: My app was rejected becasue In App Purchase does not have binary I submitted an App with an In App Purchase. The app is free and In App Purchase unleashes some of the features already programmed by setting a flag in user defaults.
However, my app was just rejected because they said they need a binary update for In ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UIText Field with backgroung image i have a UITextfield with background image(TextBox.png) in IBoutlet...every thing working fine but the problem is cursor blinking inside,cursor is not visible up to two characters,can any one help me to solve this
so i tried to solve this in the way that
i have added a image View w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: what php modules my website uses? I have to move fairly complex PHP website (which was not developed by me) to another server, but I'm quite sure it uses some non-default PHP modules. Is it possible to find out what those modules are without drilling through thousands of lines of code? I can get the whole list of PH... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to achieve the lowest usage of server resources for this PHP/MySQL issue? I'm creating a system where users get paid to click advertisements and I need to keep track of the amount of advertisements a user has clicked for the last 7 days. To do this I figured 2 ways:
*
*For each advertisement clicked, there wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to include plugins to Eclipse install using a script? If you try to use Eclipse for too many purposes you'll end-up with what I call Eclipzilla.
In order to overcome this you may want to have several Eclipse installation and use the one that has the proper plugins installed.
Now the question is how can I add the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: CherryPy Returning Status 301 on nsIXMLHttpRequest (but works fine for firefox HTTP request) I am developing a web API in using CherryPy. The intent is that it is accessed by JavaScript through nslXMLHttpRequest. When I access the API through Firefox (as though it were an ordinary-variety URL), the following appears... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Reading an entire file into a hash in Perl I have some problems reading a file into a hash in Perl.
Chr1_supercontig_000000000 1 500
PILOT21_588_1_3_14602_59349_1
Chr1_supercontig_000000001 5 100
PILOT21_588_1_21_7318_90709_1
PILOT21_588_1_43_18803_144592_1
PILOT21_588_1_67_13829_193943_1
P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Issue Tracker for Building applications We currently have an existing issue tracker, which the service management team utilise for logging user reported issues.
What I would like to do is create a server based (probably web-ui) system that can query the issue tracker for bugs assigned to the dev team and if the Impa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the importance of setting `IList` capacity? What is the importance of setting a lists capacity at creation?
For example, say I know for sure that my list will only contain n items throughout its lifetime.
A: Whenever a list needs to exceed its current capacity, reallocations of memory and moving around of s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Unable to iterate over ManyToMany - how do I calculate the sum? My models look like this:
class Article(models.Model):
name = models.CharField(max_length=50)
description = models.TextField()
price = models.FloatField()
def __unicode__(self):
return "%s - %s" % (self.name, self.price)
class Order(models.Model):... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.