text stringlengths 8 267k | meta dict |
|---|---|
Q: Sending images from gallery to Web Service using SOAP I have trawled the net and can't find any documentation on sending images (or any attachments) to a Web Service using SOAP.
I have been sending text data fine but I now need to send images from the gallery along with the text data, which poses another problem - m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: how to remove a blank line after removing an unwanted line in perl? For example, I want to remove unwanted line with bbbb
aaaa
bbbb
cccc
dddd
I use the following perl regular expression to accomplish this.
$_ =~ s/bbbb//g;
The problem here is that a blank line is stays, for example
aaaa
cccc
dddd
I need to remov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP DomDocument removing an element scrambles HTML I am having issues removing a node using PHP DomDocument.
I have some HTML like so:
<!DOCTYPE HTML "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Test</title>
<script id="fr21" type="text/javascript" src="jquery.min.js"></script>
</head>
<body>
</bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to use regular expression to extract bit in middle of a string Using PHP PCRE regular expressions I want to extract the centre part of a string where the parts either side may or may not occur. I.e.
n bedroom property type in some town
I want to extract 'property type' using one regular expression. I do not kno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: multiple amount of asynchronous calls to web service in Silverlight, bind response to request I want to send multiple asynchronous calls to different web services with silverlight and be able to match the responses to each request.
Lets say i have a list with n items in it. Every item represents a string URL of a we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does this code segfault on 64-bit architecture but work fine on 32-bit? I came across the following C puzzle:
Q: Why does the following program segfault on IA-64, but work fine on IA-32?
int main()
{
int* p;
p = (int*)malloc(sizeof(int));
*p = 10;
return 0;
}
I know that the size o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "126"
} |
Q: CodeIgniter word_wrap and I code So, I have this problem that when I word_wrap the text field. But when I word_wrapped, it didn't get the </i> so, it ended up with whole website got italic text.
<?php echo word_limiter($news_item['text'], 10); ?>
How do I fix that?
... Now i just realized that every tag HTML (i beg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is this script safe enough from sql injections? Is this script safe enough from sql injections? Or is it possible to improve it more efficiently?
Because i am going to use it in public and don't know about this line
"mysql_real_escape_string($_GET['user_id']);" Perhaps its possible to improve it more.
<?
$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Why there is no error raised by compiler? I just found my compiler allowed me to write below code and did not raised any compile time error. Could anyone please enlighten me!
double y = arcToFindPointOn.getCenterXY().y - arcToFindPointOn.getRadius()*Math.sin(theta);;
Weird thing about above code line is semi-colon ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error when using JDBC Driver- java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver I am trying to use the Microsoft SQL Server 2008 Type 4 JDBC Driver in a java desktop application.
However when I run the program I get the following error--
java.lang.ClassNotFoundException: com.microsoft.sq... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting a string representation of a template parameter I want to be able to create a method in a templated class that returns the name of the type subsituted in the template parameter.
eg:
template <typename T>
class CPropertyValueT
{
std::string GetTypeName()
{
return #T;
}
}
This is possible with a pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How Does Case 5 executed in this Switch statement? I have a following code(which is taken from a C book):
#include<stdio.h>
int main( )
{
int k=4,j=0;
switch(k)
{
case 3:
j=300;
case 4:
j=400;
case 5:
j=500;
}
printf("%d",j);
}
When i run the above code, I get output as 500, but I e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Undefined symbols for armv7 on iOS 5: _aes_icm_advance_ismacryp I have one app I built with Xcode 4.2 for iOS 4.3, and I want to build it on Xcode 4.2 + iOS 5 beta 7 for Snow Leopard but I get the error below:
Apple Mach-O Linker (Id) Error
Undefined symbols for architecture armv7
"_aes_icm_advance_ismacryp", refere... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Python class inheriting multiprocessing, trouble with accessing class members In short, say I have the following:
import multiprocessing
class Worker(multiprocessing.Process):
def __init__(self):
multiprocessing.Process.__init__(self)
print "Init"
self.value = None
def run(self):
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to use 2 php handlers on one server? I am new to apache, PHP on linux. I have a server with PHP handler set as "CGI" I mean in phpinfo page where it says "SERVER API".
Now I have to install new script on server and the script requires PHP handler as "APACHE 2 HANDLER" i.e. DSO if i am not wrong.
There are scrip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: AudioServicesCreateSystemSoundID not playing mp3 files Can anyone answer how to play mp3 files using AudioServicesCreateSystemSoundID()? I tried but not working.
I have used the following code snippet for playing mp3
NSURL *soundURL = [[NSBundle mainBundle] URLForResource:fileName withExtension:extension];
soun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Improve SQL query using functions I am trying to improve query readability by using a function in SQL Server Express 2008.
Here is a sample of what I'm trying to do.
I have a table where we store a max temperatures reading per hour of the day, then I want to select all days where the max temperature between 8-10AM w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Buffer caache usage for symbolic link on linux when we create a symbolic link to a different file then an inode is used to store the filepath to the original file. So in this context if we create a symbolic link towards a large size file which is already in buffer cache then reading from symbolic link will find the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to escape html? Im using jQuery Markitup to allow users to input html... So they can input stuff like:
<h1>Foo</h1>
<p>Foobar</p>
However, I was watching http://railscasts.com/episodes/204-xss-protection-in-rails-3 and decided to try this piece of code into the input:
<script>alert('test');</script>
To my ama... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: size of array in c a simple question that bugs me.
Say I have an array defined in main like so int arr[5]. Now, if I'm still inside main and I set int i = sizeof(arr)/sizeof(arr[0]) then I is set to be 5, but if I pass the array as a function parameter and do the exact same calculation in this function, I get a diff... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Strange error message when a class method is missing
Possible Duplicate:
GCC C++ Linker errors: Undefined reference to 'vtable for XXX', Undefined reference to 'ClassName::ClassName()'
I have been banging my head against a wall for a long time because of a strange ld error.
So I reproduced it in a small test case... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Changing the hashing function on a pre-existing database I'm doing a bit of reading on hashing for passwords. I've seen that SHA-256 > MD5.
This got me thinking about how an app may deal with changing from one hashing function to another. What happens if someone implements an app that hashes their passwords using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using sprite images with setDragImage I'm trying to implement HTML5 Drag and Drop with a custom drag image, which appears behind the cursor. This can be done with setDragImage and works great with standalone images, i.e. created with new Image.
However, to improve page loading speed, I'd like to combine those images... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Thread interference with each other in their execution (using Handler) in Android In my App code I've extended the Button view (say it as DigiButton ) and overridden the onDraw() method. In onDraw() method I am setting the button text to some counter value. This counter value is decremented by 1 for every 500 ms by ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Measuring Java method refactoring performance I was given a weird task. I have to refactor certain methods in a huge code base (the easy part) and provide performance gain reports. I should focus on speed of execution and memory usage. They want know the performance improvement by method!
So I have a method like thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OData Linq problem I've created an application that exposes a self-hosted OData web service. The web service exposes a collection of objects named "Main". Each of these Main objects has a reference to a releated "Details" object, which is very large (many properties, nearly a hundred).
I now use LinqPad to test my w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating Animated Launch Image I was wondering how one could create an animated launch image when the user opens up an iPhone app as opposed to using a simple Default.png I would like to make a small animation appear when the user opens the app.
An example of this, is the Jamie Oliver app - the launch screen is anim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Convert .vsd file to .vdx How can I convert Visio binary file (.vsd extension) to Visio xml file(.vdx extension) in programming?
Does Microsoft provide such C/C++ library ?
A: Option 1: Use Visio application programmatically
Any .NET language can control Visio through it's COM automation interfaces and use its Save... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: HTML file fetched using 'wget' reported as binary by 'less' If I use wget to download this page:
wget http://www.aqr.com/ResearchDetails.htm -O page.html
and then attempt to view the page in less, less reports the file as being a binary.
less page.html
"page.html" may be a binary file. See it anyway?
These are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Regex to check if a path go only down I want to test if a path given by the user go down like:
my/down/path
at the opposite of:
this/path/../../go/up
for security reasons.
I already made this:
return (bool)preg_match('#^([a-z0-9_-])+(\/[a-z0-9_-])*$#i', $fieldValue);
But the user should be allowed to use the '.' in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Adding scroll bar in subplots within GUI How can I add scrollbar to the subplots?
I have gone through many tutorials but they seem quite difficult to understand (ex: Scrolling Figure Demo)
Any easier method to implement?
My code looks like the following. It creates two figures ,one for multiple plots and one for su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Perl form-mail script that is not working I have been given the task through school to institute a comments form on my website. I got all of what I thought would be the hard things done, but have now hit a major stumbling block. I was given a perl script called form-mail2 to put in the cgi-bin of my web server and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: background color problem in an access form I have a form containing a textbox "Text20". I have put some code in the OnCurrent event of the form:
Option Compare Database
Private Sub Form_Current()
Text20.BackColor = vbRed
End Sub
It does nothing when I display the form whereas it should color my textbox. Do you see... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: add characters to end of line How do I add </in> to the end of each line?
A String contain:
<ch>13</ch><in>Item 13(mono)
<ch>14</ch><in>Item 14(mono)
<ch>15</ch><in>Item 15(mono)
A: To replace each line break with </in> and a line break, you could try something like this:
myString = myString.replace(/\n/g, "</in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Converting Zend Framework default htaccess to Lighttpd I've been looking through the subject a couple of times, but nothing I found is quite what I need, and/or outdated as hell.
I built a website using Zend Framework (and its default htaccess file), and tested it locally on MAMP, works perfectly. The live web serve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I have the only column of my NSTableView take all the width of the TableView? I am currently trying to learn a bit of Cocoa (using the book Cocoa Programming for Mac OS X). In one of the exercises, we set up a NSTableView with only one column, to act as a list of things.
What annoys me is that in Interface ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: mutex problem in windows I have problem with mutexes
I have this code and I dont any idea why it doesn't work correctly...
#include <windows.h>
#include <process.h>
#include <stdio.h>
HANDLE mutex;
unsigned _stdcall t(void*){
printf(":D:D:D\n");
return NULL;
}
int main(){
mutex=CreateMutex(NULL,FALSE,NULL);
WaitForS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to Create sample movie ( mini movie) with ffmpeg? Is it possible to create a mini movie ( if i have a movie which is 1 hour - i want 3 seconds of it) with ffmpeg ?
How do i do it ?
A: This command will copy the first 3 seconds of input.avi to output.avi.
ffmpeg -ss 0 -t 3 -i input.avi -codec copy out... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Call variable inside a function AS3.0 I'm trying to pass a variable through a function, but I'm getting it's value 0
Here's my code:
thumbLoader.addEventListener(MouseEvent.CLICK, goToCategory);
function goToCategory(e:MouseEvent) {
trace(c);
gotoAndStop(2);
doSMTH(0);
}
this trace gives me value of 0.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: os.walk() strips polish characters So what I'm trying to do is fix some id3tags of mp3 files. It all works, except for files with any kind of accent, because os.walk seems to strip them.
For example, I have the file 01.Co Słychać.mp3, which in this code:
for root, dirs, files in os.walk(folder):
print files
Sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Move data from one table to another This question seems to be answered multiple times. However none match the criteria I need.
Is it possible to select (and insert them in another table) and delete rows from the original table in Mysql without running the selected criteria twice?
For example I could do this:
INSERT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Binding nested model with MVC3 on HttpPost I am new to MVC3.
I have a submit button on a form and I want to bind a model which has 2-3 nested object models with many properties inside.
Is there a way to bind these nested objects without using EditorFor; so that when I submit the form I will take on ActionResult(Obje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: flash dynamic text field I want to make auto width text area. Using xml to pull the data, I would like to expand as data comes in.
menu_item_group["menu_item" + i].item_label = nodes[i].attributes.item_label;
For example:
enlarged according to the context menus in this example, the background
http://webscripts.so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: log file viewer for java applications All,
I was exploring if there can be a tool that helps me to this:
*
*View a log file in reverse chronological order i.e. I want to see the latest log statements being written to a log file at the top of the screen and not scroll all the way down every time log file is update... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Which of these two dimensional array are advantageous to use and why? In a facebook group, I saw a question like :
If a row dominated two dimensional array in the following which one is advantage and why?
a) for(i=0;i<1000;i++)
for(j=0;j<1000;j++)
temp=temp+a[i][j];
b) for(j=0;j<1000;j++)
fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Alternatives to multicast I'm currently developing a server (using Java) that has to send quite often (every 10-30 seconds) a few bytes to multiple clients (10 - 100). At first, I thought of using UDP multicast datagrams (java.net.MulticastSocket), but I thought of this not being a good solution because of the bad s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Validating XMLs with "free" elements using XML Schemas Is there a way to define an XML schema that allows elements not defined in the schema?
I have an XML file that needs validation only on part of the file. like so:
<?xml version="1.0"?>
<xml>
<ValidatedElement type="PositiveInteger">123</ValidatedElement>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Transparent background for Facebook "like" button I need the background for the Facebook "like" button to be transparent.
I've achieved this one time but I don't remember how I did it.
allowTransparency="true" in the iframe version of the button doesn't work either.
Any ideas?
A: allowTransparency="true" with ifram... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cocoa Touch: parsing XML, should I use NSXMLParser or a Dom parser? I need to parse a XML file storing events. I just need to process events with ending date later than actual date, so no many of them will used in the app.
The application will need to sort then before displaying, and then the user will resort and fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Find all connected components given the connections in a graph (Java) I'm building a program in Java that simulates a network of moving nodes. When nodes collide there is a certain probability that they will establish a connection. I'm trying to store all the nodes in the graph in a way that makes the connected comp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to make NSURL form string I'm trying to read a a file in my project. I first create a string with the path and then turn it into a NSURL, and that's where I get into trouble:
NSString *sndPath = [[NSBundle mainBundle] pathForResource:@"vader" ofType:@"caf"];
NSURL *url = [NSURL URLWithString:sndPath]; //url i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Deleted the apk key by mistake I have put up an app in the market..but I have to update the app..but my mistake i deleted the old apk and have made changes to the code and when I try uploading the app it says I must have the same key..what should I do now?
A: There is absolutely no way to update your application. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Has the ::-webkit-selection selector ever been supported? There are a few references on the internet to ::-webkit-selection, a WebKit-specific version of the ::selection selector.
See e.g. http://www.quirksmode.org/css/selection.html (Edit: PPK has since removed ::-webkit-selection from that page.)
However, I haven’... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Location of variables in the memory, C I'm looking at exams in C from past years, and I'm came across a question I didn't fully understand. They've supplied a simple piece of code, and asked about the location of different variables in the memory. The options were heap stack and unknows.
I know that automatic variab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Make a button ADD a number to a label I'm fairly new to coding with Objective-C/Xcode, so I'm just trying my luck with the easy stuff, making sure I get it before moving on to something harder.
What I am trying at the moment is to make a calculator. I've done one of those simple ones where there are two text boxes a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I use Java 7 with Eclipse Indigo 3.7.1 From what I understand Eclipse Indigo 3.7.1 should now have support for Java 7.
I downloaded Eclipse 3.7.1. and JDK 1.7.0 and added JRE7 in the settings in Eclipse. Then I created a new project using JRE7 and wrote a short Java 7 program:
public class Test7 {
publi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Access denied for user 'root'. PHP/MYSQL/XAMPP I have been using XAMPP for a while now, but this morning seems like something kinda went wrong.
I am using XP with XAMPP 5.3.5.
I develop at home, and I use my other computer as a server. running PHP/APACHE/MYSQL on XAMPP.
I am using phpMyAdmin to manage my db.
I notic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Textarea add rare symbols I have problems with my textarea. When someone copy text from an html or .txt and paste it in my textarea, the post have rare symbols like: =20, =space, =3D...
Anyone have some idea about my problem?? And how could I fix it?
My textarea is:
<textarea id="id_message" cols="40" name="message... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get the argument for promise::set_exception(x)? I found in several places on how a promise should be used references to copy_exception, but I can not find it in the current FDIS. Is there an alternative way on how to use set_exception() since those blogs?
For example here
void asyncFun(promise<int> intPromise... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Setting a form field's default value from a request variable In Django, is it possible to set the default value of a form field to be tied to a request variable. e.g. request.META['REMOTE_ADDR'].
This is just an example, it'd like to be use any of the headers available in the request variable without passing it expl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to launch a new process with different program in Unix? I heard that the Unix fork will copy current process. Does it mean exactly same program and state will be spawned in a new child process? I can't understand why it work in that way. Because it looks inefficient.
*
*What's the being copied?
*And why do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Giving users unique ids in the form of an auto_increment Let me explain, take an inventory system. You have items and you have rooms. If I have a table for items, that means everyone's data gets inserted into the same table. Hence, the primary key (item_id) is auto_incremented by 1. So "John" signs up two weeks late... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: vb.net looping through several passed parameters with same name i am passing paramters from one page to another all witht he same name...how do i look through them?
dim sHtmlBody
sHtmlBody = ""
for i=0 to Request.QueryString("name").Count
sHtmlBody = "<html><body onload=""window.print();"">"
sHtmlBody = sHtmlBody &... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Session clearing issue with PHP I'm using a Facebook Connect application. Imagine it's a kind of application, where users come to my site, clicks connect button, logs in to Facebook and comes back to my site and wait for another user to connect.
I'm using the offline_access parameter when connecting. Once the user i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Regressive python counter i was doing a small weekend project, kind of a music player, in python (console). I'm done in all the part of selecting music, parsing ID3 tags, playing and blablabla. I just think i need something like a counter to show the music's total time and played time.
Basically what i need is to pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I see what the current android layout looks like for debugging purposes? In my android application, I frequently add and remove parts of my layout. Is there a way I can log or capture the layout at specific points? I want to see the way my buttons and layouts are nested to ensure it is as I want it to be at ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MotionEvent Issues I was wondering how to get accurate, get(x) and get(y) values for a MotionEvent? What is happening is that when I touch a specific area on the screen, I tell an action to happen.
The problem is that once I touch the screen and take my finger off, it still thinks my finger is at the same location (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Do you know of any project that has redefined the native types of PHP as objects? Is it feasible? Do you know of any project that has redefined the native types of PHP (string, array, ints, floats, bools, etc.) as objects? I'm not sure how feasible it would be but i was just thinking that it would be nice to have th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Risk of users editing any field in Lotus Notes document In designing forms in Lotus Notes I've always been under the assumption that if the user does not have designer (or manager) access they can only interact with the documents via the forms I provide.
This means for example I can have a non-editable field for the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Making JQuery extension $.fn.extension I'm writing a plugin that will display a little helper when called for. It's supposed to be initiated like this:
$(el).santasLittleHelper([options])
The plugin then have some "events" just like the jquery UI has and they should be triggered like this:
$(el).santasLittleHelper(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to add a contact with first name and last name via intent I am trying to launch the android native "add or edit contact" activity with some data already in the form. This is the code I am using currently:
Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT);
intent.setType(ContactsContract.Contacts.CONTENT_I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: how to post a message on a friends facebook wall facebook c# sdk using facebook c# sdk, I'm able to post to my wall but when I try to do it on my friend's wall, it just does not show, any ideas why this could be happening?
client.Post("me/feed", parameters); ----works
client.Post("friends id/feed", parameters);--doe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pass a variable argument list I would like to create a subclass of UIActionSheet that uses blocks instead of delegation. So I created the following class:
#import <UIKit/UIKit.h>
// Public Interface
typedef void (^FJActionSheetCompletion)(int buttonIndex);
@interface FJActionSheet : UIActionSheet
- (id)initWithTi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Transform a data.frame, while filling missing values I have the data frame
data<-data.frame(id=c("A","A","B","B"), day=c(5,6,1,2), duration=c(12,1440,5,6), obs.period=c(60, 60,100,100))
showing Subject ID, day of event, duration of event, and observation period of Subject
I want to transform the data set to that it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do i add text to span using jquery I am trying to add the selected value of combo box to its preceding span. but it failed too sad.
I am trying with following code:
<span></span><select multiple ="multiple" ondblclick="$(this).css('display','none').prev().css('display','inline').addClass('sss').html($(this).val(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: encodeURIComponent in c sharp I've tried to use HttpUtility.UrlEncode in order to simulate the javscript's encodeURIComponent, but had some issues (instead of getting "%20" i got "+")
then I've replaced the string, but i see that the problem is not only in these two signs, in some places the encoded string (by UrlEn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Jquery plugin for user mappings? I am building a web application using asp.net, which has three types of user's admin, dealers, and employees (under dealers). The employees can be associated with more than one dealers and which can be done only by the "admin".
So what i need is to make a neat employee and dealers ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery custom tabs with next/prev links I am convert the jquery-ui tabs into a more basic version that is easily customisable although I have come across a couple of problems:
*
*How would I change the code into a reusable plugin/function that I can then use in the next/prev links on click?
*Also I have a probl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Table cell fixed height and border issue in Firefox I have a table displaying some data and I need the table cell <td> to have a fixed height and a bottom border. The problem is that Firefox is rendering the cell height differently than Chrome or IE8. For example I have the following css rules:
table {
width: 10... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: parent.location.reload in iframe not working IE I need refresh in parent site / refresh my browser when I click testing. I have source index.php:
<iframe id="test" src="/careertest/q.php"></iframe>
and in q.php:
<a href="#" onclick="parent.location.reload(true);">testing</a>
Its working in FF LAtest version + Chro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL cut results from table I have the following query:
SELECT cust_id,cust_name,SUM(calls.duration) as duration
FROM
calls, telephone
WHERE calls.from_t_no = telephone.t_no
AND
calls.duration <=60
group by telephone.cust_id, telephone.cust_name
Which give the following results;
cust_id cust_n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create multidimensional array Can anyone give me a sample/example of JavaScript with a multidimensional array of inputs? Hope you could help because I'm still new to the JavaScript.
Like when you input 2 rows and 2 columns the output of it will be 2 rows of input and 2 columns of input.
Like this:
[input][inp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "159"
} |
Q: JSON parsing error with CouchDB design document: unclosed string due to indentation whitespaces? I use the following CouchDB design document for testing purposes. I use carriage return \n and tabs \t to indent my Javascript code. As far as I understand JSON, I think that whitespaces in those places are OK. But Ruby ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: problem with "multiple definition" Say I have a very little header file like so:
#ifndef A_H_
#define A_H_
void print();
int getInt()
{ //ERROR HERE
return 5;
}
#endif /* A_H_ */
And a source file implementing print like so:
#include "a.h"
void print()
{
printf("%d\n",getInt()); //WARNING HERE
}
And my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQLAlchemy: Re-saving model's unique field after trying to save non-unique value In my SQLAlchemy app I have the following model:
from sqlalchemy import Column, String
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import scoped_session, sessionmaker
from zope.sqlalchemy import ZopeTrans... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Changing class of object to subclass (& general questions on inheritance) Suppose I have a class clubMember and a class user. Only club members can be users, users have login data additional to other club member vars, and club members’ characteristics influence what rights as users they have, so user extends clubMem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Returning a result I want a JavaScript function that posts to a php, and returns the value, so that calling the function from another function in JavaScript gives me the value. To illustrate better please look at my current code:
function sumValues(number1, number2) {
var return_val;
$.post("sum_values.php",... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Job scheduling using standard Java libraries As mentioned in the tags, this is homework, using only standard java libraries.
The task is to create a program that schedules orders (which consist of pizzas) to be cooked in different ovens. Orders have a dealine, which must be met and pizzas have a cook time and a coo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating a User control in dispatcher and add it to a control in the UI I have a long time processing operation, and for that it has to be done in the backGround, But the problem is:
*
*When I create the user control, and then add it to the UI, (listView) control, WPF doesn't show the UC (user control), but the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How concurrency implementation in Nhibernat 3.1 I have a project by nhibernate 3.1 .
I need to concurrency implementation in project.
I Add "Version" to hbm file :
<class name="Person" table="Person_Person" >
<id name="Id" type="Int64" unsaved-value="0" >
<generator class="native" />
</id>
<ver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a CPAN module for converting seconds to English? Is there a CPAN module that can convert a number of seconds to a human-readable English description of the interval?
secToEng( 125 ); # => 2 min 5 sec
secToEng( 129_600 ); # => 1 day 12 h
The format isn't important as long as it's human-readable.
I know that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: git: work with git-svn when there are merges As far as I understand, git-svn does not support pushing merge commits.
Is there a way to make it work with such commits?
We have tried to use rebase to create a linear history. However, this fails with conflicts on whitespace errors. Is there a way of linearizing the his... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Setting Grid border in WP7 I'm trying to create grid with borders but with this code, only the first cell has border:
<Grid Margin="24,96,24,288" d:LayoutOverrides="GridBox">
<Grid.RowDefinitions>
<RowDefinition Height="0.150*"/>
<RowDefinition Height="0.150*"/>
<RowDefinition Height="0.1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: how to sort multiple sorted data set from DB in C#? I have a partitioned table in SQL SERVER, there is a clustered index on ID, and the table is partitioned by period_key. The ID is unique inside partition, but not unique cross partitions. What I need is to find all the unique ID. The simplest way is just use
selec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Swapping li elements between multiple un-ordered lists using jQuery I'm trying to allow the user to move the 'post-it' notes from one un-ordered list of tasks to another. Ideally when the user drags the task it should be removed from its current container and appended to the new list.
Pseudo HTML
<ul class="task-buc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sharing Methods Between Child Objects I'm trying to share methods between objects that belong to a parent object.
I have a main object, which has child objects that handle different tasks. These are created using the main objects constructor:
class engine {
public function __construct() {
$this->db = new db(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: issues requiring files in php from multiple locations I have a single PHP file that i require in many different php files.
The PHP file stores DB info and also requires another file called something.php....
Now, say I stored the PHP file (with db info) called my_db_info.php in a folder called config.
I then have ano... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# 'as' Keyword and Derived Classes I am working my way through "Sams Teach Yourself C# in 21 Days", obviously, this makes me a novice programmer. Please don't be too harsh. So far, being objective, I've feel I've done quite well understanding the topics. I am not looking for the answer, but hopefully be pointed in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: android: Google APIs (Android API 13) I am trying to install Third party add-ons using Android SDK. Below is what I am trying to install.
Android SDK >> Available packages >> Third party Add-ons >> Google Inc. >> Google APIs by Google Inc., Android API 13, revision 1
It gives me error like this.
Downloading Google A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to use array.push on array with a defined index? How do I use array.push to add an object with a custom index in an array?
I have this script but it doesnt work. Chrome's Javascript console is not outputting errors
var tempList = new Array();
$('#add').click(function(){
var split = $('#itemid').val().split('_'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7545688",
"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.