text stringlengths 8 267k | meta dict |
|---|---|
Q: How to align an element always center in div without giving width to its parent div? I am trying to align a element center in a div where i am not giving any width to parent div becouse it will spread according to screen size , there is total 3 element in div :
*
*Buttons
*Heading
*Logo
buttons will always a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: multicolumn combobox just like a combobox in winforms i have developed a user control for winforms in C#.Net framework 3.5, it is multi-column combo, named 'DataCombo'.
i have created it with the help of Textbox and DataGridView, it looks like a combobox, and also behave as it, cursor jump on textbox list will appea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Redcarpet/Bluecloth not allowing headers? Is there a way to use either Redcarpet or Bluecloth such that when it interpolates the markdown it won't make any headers?
For example:
#header 1
yields:
header 1
header 1 (preferred)
And:
##header 2
yields:
header 2
header 2 (preferred)
A: Well, you can escape charac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: automatically move the focus of next text field if the length of the text field is equal to max range hi i have to text fields i want to move the focus from first text field to another textfield automatically
for this i am using the following code
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to run my game for different screen resolution using andengine I am developing a game using andeninge. I fixed camera width and height
private static final int CAMERA_WIDTH = 480;
private static final int CAMERA_HEIGHT = 320;
@Override
public Engine onLoadEngine(){
this.mCamera = new Camera(0, 0, CAMER... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Table border-collapse: mixing settings I'd like to have a group of table entries using the collapse setting but to have it separate from other groups. Do I have to make a new table for each of these "zones"? I tried that and they don't line up. And they don't collapse together the right way when I just apply border-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Splitting, enriching and putting back together I have a message carrying XML (an order) containing multiple homogenous nodes (think a list of products) in addition to other info (think address, customer details, etc.). I have to enrich each 'product' with details provided by another external service and return the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Prevent scrolling to top when using jQuery .load I have three buttons on the site and when you click each one, they use .load to add different things to a DIV. The problem I'm having is whenever you click a button, it sends you back to the top of the page. I've tried using preventDefault() and return false but it di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: break from asynchronous task android I would like to stop my asynchronous thread on back click of user.
Could you please suggest if there is any way to stop asynchronous thread in android.
Please forward your suggestions.
A: If you're talking about AsyncTask then you can call its cancel() method. If you pass true... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to differentiate between programmatically scrolling list view and manually doing so? I need to differentiate between programmatically scrolling a list view and manually scrolling a list view. I am not quite sure how to do it. Any idea ?
Thanks.
A: I guess a way would be to do something like add onscrollchanged ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to fadeIn an image using tag instead of a using jQuery? I'm trying out some jQuery for the first time. My first goal is for one image on the page to fade into a different image. I've figured out how to do this with a couple of divs that have background-image set to the different image files (see code below).... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get a part of the URL to be assigned to a string? the url on my local project is :-
http://localhost/mysite/KB/Type-1/General-Article
and on server it is:-
http://www.mysite.com/KB/Type-1/General-Article
from both the urls, I want to fetch the URL part until Type-1 without slash
ie from localhost website ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Understanding Recursion to generate permutations I find recursion, apart from very straight forward ones like factorial, very difficult to understand. The following snippet prints all permutations of a string. Can anyone help me understand it. What is the way to go about to understand recursion properly.
void permut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: Interface Builder: determine which element has the initial focus I have a Cocoa app with a table view and a few other controls. When the app launches and the window is shown, a blue focus ring is drawn around the table view.
How can I get rid of that focus ring? I'd like nothing to have the focus when the window fir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: three20 actively developed Is three20 still actively being developed? From the three20.info site, I see no new features/UI elements since earlier this year when I looked into it.
Besides three20, is there another good framework out there?
A: As far as i know, Three20 is only maintained by community (bug fixes). J... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: StringBuilder Class OutOfMemoryException I have written following function
public void TestSB()
{
string str = "The quick brown fox jumps over the lazy dog.";
StringBuilder sb = new StringBuilder();
int j = 0;
int len = 0;
try
{
for (int i = 0; i < (10000000 * 2); i++)
{
j = i;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: paypal ipn problem, url malformed (sandbox works, paypal doesn't) I have an IPN file that works perfectly in sandbox. It returns valid or not and executes the code correctly. However if I try real live payments it tells me the url is malformed
This is the error with live payments:
bool(false) string(15) " malformed"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to pull data in the Map/Reduce functions? According to the Hadoop : The Definitive Guide.
The new API supports both a βpushβ and a βpullβ style of iteration. In both APIs, key-value record pairs are pushed to the mapper, but in addition, the new API allows a mapper to pull records from within the map() method. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Setuptools / distutils: Installing files into the distribution's DLLs directory on Windows I'm writing a setup.py which uses setuptools/distutils to install a python package I wrote.
It need to install two DLL files (actually a DLL file and a PYD file) into location which is available for python to load. Thought thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to upload files to DropBox in blackberry I want to upload files either text file or video file to Drop Box in blackberry. So how can I proceed?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7537803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: executing operation for each list element in swi-prolog and others How do I do an operation for each element of a list, in order?
Based on these two resources:
*
*http://www.swi-prolog.org/pldoc/doc/swi/library/lists.pl
*http://www.swi-prolog.org/pldoc/doc_for?object=foreach/2
I imagine I can always rely on:
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Proper way to program in Lisp? I'm new to Common Lisp, and found myself taking advantage of way functions returns values. The following are to two trivial examples:
(defun safe-avg (a b)
(and (numberp a) (numberp b) (/ (+ a b) 2)))
(defun safe-div (a b)
(and (numberp a) (numberp b) (> b 0) (/ a b)))
But I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to set different properties from objects which are returned by the Factory pattern? I was wondering on how to set properties on which objects which are returned by the concrete factory. The factory can return objectA with properties A and B, but it can also return objectB with properties X, Y, Z.
Since the clie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Sencha Touch Remote and Local Storage Combined I am trying to learn Sencha Touch and am working on an app which is helping me a lot to learn it. I have a situation where there is a News tab and it returns news from RSS using proxy of XML datatype. It works so far.
I am loading those RSS at the tab activate event an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I make a vector/array of System::Windows::Forms::Checkbox^ Couldn't find any answer to this problem, or not even any questions asked.
So what I'm trying to do, is a std::vector, maybe just a normal array, of Checkboxes.
std::vector< System::Windows::Forms::CheckBox^ >m_items;
m_items.push_back( myCheckbox );
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: function declaration scope Most people seem to declare functions outside the code block that's using them like this:
void doSomething();
void doStuff()
{
doSomething();
}
I'm wondering if it's considered a good habit to do instead like this:
void doStuff()
{
void doSomething();
doSomething();
}
The s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you concatenate two strings?
Possible Duplicate:
How do I concatenate multiple C++ strings on one line?
How would I take:
string test1 = "Hello ";
string test2 = "World!";
and concatenate them to make one string?
A: How about
string test3 = test1 + test2;
Or maybe
test1.append(test2);
A: You could do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Looking for a convenient way to call Java from C++ It seems most documentation or helper libraries relating to JNI (Java Native Interface) are concerned with calling native code from Java. This seems to be the main use of it, even though it is capable of more.
I want to mostly work in the opposite direction: modify ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Convert an SQL expression if it has a LENGTH function with SUBSELECT query to SQLite I know that in SQLite, we use the LENGTH function instead of len. But when I want to use the LENGTH function with a subquery like so:
select length(select name from tblNames where name=1)
I receive an error. Here is the Microsoft S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Getting an error while Updating WCF Service Reference I got an error like this.
There was an error downloading http://localhost:5705/UserService.svc
Unable to connect Remote Server No Connection could be made because
the target machine actively refused 127.0.0.1:5705 Metadata contains a
reference that cant be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: List of open browser tabs programmatically Is there a way to programmatically obtain a list of open tabs in a browser by index?
For example, suppose Google Chrome is open with two tabs.
In the program, a line something like:
tabs_list = list_tabs(hwnd)
...where hwnd is the handle to the window for the overall Chrom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: FileReader for text file in Android Good times!
My Android app is trying to read simple text file, using usual Java combination
FileReader fr = new FileReader("file:///android_asset/example.txt");
BufferedReader bfr = new BufferedReader(fr);
But what ever I do, I'm getting File not Found exeption, although there is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can I configure JSch to automatically reconnect on connection failures? I am using the JSch API for Java for SFTP connections. Sometimes the server may be down for a second or the connection may be busy. In these cases I would need to re-connect to the server three times at least before I decide the connection has f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Testing concurrent/parallel execution I'm currently writing a small framework for demand-driven workflows. The API is now stable and I am working on improving tests. It's easy to show that computations are correct (which is a good start), however, the main interest of the framework is to launch subtasks in parallel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# - Converting KeyPress to scancode/scancode to key name I have a WinForm application where I need to capture a KeyPress and fetch the scancode for it. Along with that I need to convert existing scancodes int key names (by converting to virtual keys beforehand perhaps?) Is there any way to accomplish this?
A: The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Valgrind program is crashing Bad permissions for mapped region at address I am trying to run my program to check memory leaks in my program but whenever I start my program I am getting
==3476== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==3476== Bad permissions for mapped region at... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP exec function not working I am trying to execute a command from php script using php exe function.
The script calls .exe file located in program files whereas my xampp is intalled in E:
I m trying the following command C:\\Program Files\\GPStill\\pstill.exe its not working.But if i manually open cmd prompt and s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the case that requires nested transaction? Even a transaction is nested, it won't be updated until outmost transaction commits. So what's the meaning of nested transaction and what's the specific situation that requires the feature?
A: for example assume such a situation:
Class A
{
/// props
save();
}
cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to initialize properties in Javascript constructor I am playing with html5 canvas to create bouncing balls. I have this all working but I have to call an initialise function to set certain properties. How can I do this automatically in the constructor without having the initializer firing when the properties are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iOS: Place UIView on top of UITableView in fixed position I need to put a UIView (for ads) on top of a UITableView in my iphone app. The problem is that when I scroll the table to the bottom the added UIView is scrolling with the table. What I want is for it to be fixed on the bottom of the screen. Is there a way... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Android plist xml parsing issue I have to parse a plist file in Android application. Plist is similar to xml given on following url:
http://pastie.org/2583229
Will I be able to parse to display data in the app? Which parser is good for this purpose?
Please help me here by giving me some suggestions.
A: Below I have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to apply styling on the parent container of a:visited? I need to style my divs(that're parent container of links) differently when the links have been visited. Can I do that using pure CSS, or I need to resort to JS ?
A: You can not do this using pure CSS, not even in the latest CSS3 specification. You can do i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to serialize .NET Table Adapter I need to serialize a .NET table adapter. Serializing a data adapter and the data set is not a problem but i seem unable to serialize the table adapter. Looking at the type its typically specific to whatever you name it..like if i create a Invoice Table Adapter..the type will be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Send value on onsubmit I want to send document.getElementById('source').value onsubmit. How can i send? thanks
this value document.getElementById('source').value working fine. But I want to call this on submit. Because some time user could change the value.
new AjaxUpload(btnUpload, {
action: 'upload-file.ph... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android FrameLayout and TextView - why does LayoutParams work where setGravity() does not? I'm using a FrameLayout to display (on demand) some text on the screen. I want the text to be in a certain place, so I thought setGravity() would do the job... but no, it seems to have no effect whatsoever on where the text go... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you convert an int into a string in c++ I want to convert an int to a string so can cout it. This code is not working as expected:
for (int i = 1; i<1000000, i++;)
{
cout << "testing: " + i;
}
A: Use std::stringstream as:
for (int i = 1; i<1000000, i++;)
{
std::stringstream ss("testing: ");
ss <... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Intent and Bundle Relation While using Intent object we can put different types of data directly using its putExtra(). We can also put these extra data into a Bundle object and add it to Intent. So why do we need Bundle if we can do so using Intent directly?
A: Sometimes you need to pass only a few variables or val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Eclipse RCP Fast View in Horizontal Orientation I do know how to register a View in the Fast views bar within a RCP Eclipse application (using plugin.xml). It opens in Vertical orientation. Does anybody know how to tell this view to open in Horizontal orientation per default?
Thanks a lot for your help.
A: Not sure... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to enable shell_exec() function in CentOS 5.6? I am using CentOS 5.6.
When I google to find the answer about how to enable shell_exec() in CentOS 5.6 they answer as the following:
# nano /etc/php.ini
remove shell_exec from the disable_functions list. But in my php.ini file shows the following:
disable_functions... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: if i call a non synchronized method from my synchronized method is non synchronized method thread safe? I i make a call to noonsynchronized method from within my synchronized method is it thread safe?
I have 2 methods as follows:
public class MyClass{
void synchronized doSomething1(){
doSomething2();
}
void... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Clone variable in Word VBA Given the range with revisions in it, I need to reconstruct the original text and the modified text. The first solution was to:
Sub OriginalText (ByVal Rng as Range)
Rng.Revisions.RejectAll
OriginalText = Rng.Text
End sub
Yet it turned out that ByVal is not really ByVal. the moment Reject... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Properly Saving to file with a file name ofstream myfile;
string s=r->str_name+".txt";
myfile.open (s);
where r->str_name is a string. If r->str_name was "animals" , would it save the file as animals.txt if i concatenate like this?
A: Close. It does do as you expect in that r->str_name will be "animals.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: not evaluation doubles Okay so I am sending doubles value to this and its not parsing them as doubles instead it is completely ignoring the decimal values. here is my code if I enter 2.0 + 5.0 it makes it 2 0 5 0 +. =(
import java.beans.Expression;
import java.util.ArrayList;
import java.util.Scanner;
import java.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: django render_to_string not working I am trying to implement an ajax view to create an object and then return it and insert it into the template. It is almost working except I cannot seem to get render_to_string() to work to render the html to insert. The object is being created and html is being returned and insert... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to POST when slider's value is changed/button is pressed with jQuery mobile? I have 1 slider and 1 button:
<div data-role="fieldcontain">
<input type="range" name="slider" id="slider" value="0" min="0" max="100" />
</div><br><br>
<div data-role="fieldcontain">
<select name="slider" id="slider" dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to set password for Redis? I'm working with redis on my local machine so I dont really need to set up a password to connect to the server with my php client (I'm using predis as a client). However, I'm moving my app to a live server, so I want to set up a password to connect to my redis server.
I have few quest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "140"
} |
Q: Why output data are not corresponding to it's column in Union All query Here's a piece of the output
array(7) { ["type"]=> string(16) "new post comment" ["book_id"]=> string(1) "1" ["name"]=> string(9) "whatever" ["author_id"]=> string(4) "test" ["content"]=> string(19) "2011-07-16 03:20:01" ["create_time"]=> string... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JQuery ~ How to keep moving the object when keydown In JQuery ~
I hope to make a simple character moving, Stop > Left || right.
This script make #moveCharacter turn left walk 10px once.
How can I keydown keep turn left walking,when keyup stop walking (like a character)??
// Left moving
$(document).keydown(function(e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SWI Prolog interpret/compile from command line I am using Windows, and i want to interpret/compile a prolog file with cmd, is any method to do that?. The purpose is to make a shell to the interpreter/compiler prolog to a file like:
gplc -output C:\a.output -input C:\a.pl
And in the output file to be the answers fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Magento - Magmi PHP errors I'm currently trying to implement Magmi on our Magento setup but getting the following errors on the first Magmi page, this is just going to the first page and not running anything yet (obviously direct path has been replaced in the below info):
Notice: require_once() [function.require-onc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to delete folders in sdcard of file explorer? I created several folders in the sdcard (Eclipse) by running an Android application in the emulator. Now I want to delete the folders which I have created on the sdcard.
I am able to delete files in the folders but I could not delete the folders in the sdcard.
How ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Get line which contains string I'm trying to get a line from a textfile that contains a certain sequence of characters :
my input :
<tr><td>lucas.vlan77.be</td> <td><span style="color:green;font-weight:bold">V</span></td> <td><span style="color:green;font-weight:bold">V</span></td> <td><span style="color:green... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fast scanning of SD card on Android I am trying to write an algorithm for fastest scanning of whole SD card. What I try to achieve is something in the line with QuickPic, which has "normal speed" initial scanning of SD card, but any subsequent refresh is incredibly fast.
I have tried several things, and I have some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to implement Network Triangulation? I am developing an application in android 2.2 to identify location of user by Network:
1) First:
location= (GsmCellLocation)tm.getCellLocation();
cellId= location.getCid();
lac= location.getLac();
2) Second
wonder "http://www.google.com/glm/mmap" to get latitude and longitu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generate all ways of selection of n items
Possible Duplicate:
How to find all possible subsets of a given array?
How can all ways of selection of items be generated efficiently using C++?
For example, if there are there items A, B and C.
[A,B,C] => [A], [B], [C], [A,B], [B,C], [A,C], [A, B, C]
A: Essentially, y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SelectedValue property for a Autocomplete User Control First off, forgive my English, my attempt, I am creating a autocomplete user control, to replace drop downs, I have created the user control, and its working fine. Now for simplicity sake, I need to provide a public property in my User Control to get the selecte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Documents/Inbox folder for opening file from another App I registered my app to associate some filetypes. so when the file comes in the mail attachment, I use my app to open the file. My app will automatically create a "Inbox" folder inside my Documents folder, and save the file in "Inbox". This Inbox is special, be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jqGrid set cells data while inline edit active I think it's a stupid question but I can not find a solution.
I created a table with jqGrid and I enabled inline editing
On each line I added a button that enables or disables editing
I wanted to add a second button active only during editing that would allow you to loa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In Java, how can I create an equivalent of an Apache Avro container file without being forced to use a File as a medium? This is somewhat of a shot in the dark in case anyone savvy with the Java implementation of Apache Avro is reading this.
My high-level objective is to have some way to transmit some series of avro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Default non indexer properties in C# How can you create a default - non indexer - property in C#?
What I mean by this is I can see that I can create indexer default properties as illustrated on this MSDN page.
This allows me to do things like
Widgets widgets = new Widgets();
Widget result = widgets[1];
But what i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: what is the corresponding matplotlib code of this matlab code I'm trying to go away from matlab and use python + matplotlib instead. However, I haven't really figured out what the matplotlib equivalent of matlab 'handles' is. So here's some matlab code where I return the handles so that I can change certain properti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: backup/restore from-to Gmail? I would like to implement in my app, written in Lua,the option to save a backup file to Gmail and restore it from there.
I just need how to save one file and restore that from the same account again.
Several apps use that feature now ( i guess using the Gmail as HD Feature).
Any ideas? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to schedule tests and store the tests reports? I have a few integration tests (java classes), which test a server application. (the tests just send requests, receive responses and verify them). Now I would like to run the tests periodically (e.g. nightly), store the test reports somehow in a database, and run q... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Record voice and save it to mp3 file Is it possible to record (5 seconds) a voice with the microphone and save it as a mp3 file WITHOUT sending data to the server? I would like to save the file with FileReference (some times ago I did an experiment saving a bitmap and it worked).
A: You can use MicRecorder class fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why to use Spring not JSF (Advantages of spring over JSF)? i don't know JSF very well, and i have a friend who is using only JSF
and he asked me a very open question, why do you use spring not jsf ?
and because of there are a lot of things about spring in my mind
i wasn't able to give some straight answers
so what a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Recursion vs For loops - Factorials, Java Which of these two methods of getting a factorial (loop vs recursive) is more efficient/faster? and if that one can be improved, how so?
Language: Java
private static long factrecur(int n) {
if (n == 0) {
return 1;
}
else {
return n * factrecur(n-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Facebook: Invite to application without using Facebook's dialogue box I have made a custom invite screen in my Flash application, when the send button is clicked I want all the selected facebook Ids to be sent, ideally without a dialogue window popping up.
Cheers.
A: User to user app requests must use the requests ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In an Android application,can more than one Main Activity exist I hope someone will help. In Android manifest file, can we specify more than one activity as the main activity?
A: Yes you can. But you should define one as default by CATEGORY_DEFAULT. Without default main activity if you have two activities, Android... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to detect all cursor movements and key presses on a Mac? What is the best method to detect all cursor movements and key presses on a Mac using objective-c on OSX Lion?
A: I did it by installing an event monitor
- (void)monitorEvents
{
// Monitor all events
NSUInteger eventMasks = NSLeftMouseDownMask | ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: html reload without javascript I'm writing a hobby project and i was wondering if I can implement the following functionality:
If the browser has JS disabled, the page reloads every X seconds.
If the browser has JS enabled, the page receives some JS event from somewhere and reloads. But the page does not reload e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7537997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to create .help file for mac application help? I am trying to make the help support for my mac application. I made the XHTML, HTML and the .helpIndex file. But I dont know how to make the .help file. My question is what is .help file? and how to make the .help file?
I am studying in the apple classreference ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7538002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Unable to drag my scroll bar The below is chat script. When ever I try to drag up the scroll bar is pulling down. How to allow dragging in my below code.
Is there any other way to make my code better and to allow scrolling.
default.aspx
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7538005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Prevent Windows shutdown with custom message VMWare Workstation does something quite cool when I try to shutdown Windows while a Virtual Machine is running:
Normally, we'd see a "This program is preventing Windows from shutting down" message instead of the new "1 Virtual Machine is in use".
How does VMWare do this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7538006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: What does _beginthread's second argument stack_size mean? In function _beginthread, what does the second argument (stack_size) mean?
Stack size of where? And what does the default value (0) mean?
A: The stack size of where?
The call stack is a stack that maintains information about active function calls of executi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7538008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Properly running binaries on runtime with safety (seteuid etc) So if I want to run a binary using exec() on a child process after fork, but want to restrict its file access to a certain directory only, how does one safely do that?
Does this involve of creating a new user in unix/linux, and then setting the uid to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7538011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Problem looping audio on android app Due to login confusion, i'm repeating this question. If any moderator sees this, i'd like to keep this one current, as I no longer can access my former login.
A bit of a problem has presented itself to me. I am trying to play a sound continously looping in my android app.
With M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7538013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to inspect a method using reflection public void foo(){
throw new Exception("foo");
}
public void bar(){
foo();
}
Is it possible to inspect the method bar() in order to know that foo() is called without a try catch inside bar()?
A: You may be interested in wrapping the whole class inside a Proxy and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7538020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I shrink the drawable on a button? how can I make the drawable on a button smaller? The icon is too big, actually higher than the button. This is the code I am using:
<Button
android:background="@drawable/red_button"
android:drawableLeft="@drawable/s_vit"
android:id="@+id/ButtonTest"
andr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7538021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "88"
} |
Q: Show only a part of SlidingDrawer? I want to have the SlidingDrawer show in 2 parts. On the first swipe up it shows only 1 button. and in the other swipe up, it shows the second button.
How can I do this? Thanks.
A: You could always have a counter in the SlidingDrawer that counts how many times the user have opened... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7538027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to get user's facebook pages and apps list after authentication? After a user install my application to his/her facebook page,I want to get his/her facebook pages and apps list.
I have read these documents:
http://developers.facebook.com/docs/reference/fql/application/
http://developers.facebook.com/docs/referen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7538028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: register new xmpp account with node-xmpp ( node.js ) I'm looking at 'XEP-0077 in-band registration' about how to register a new XMPP account. Here is my code. I use node-xmpp to connect my node.js application to an ejabberd server.
var net = require('net');
var xmpp = require('node-xmpp');
var cache = new Object(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7538030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Receiving a Sharing Violation Opening a File Code 32 I have been trying the following piece of code that does not work. What I am trying to do is to start executing my exe (one that I created a simple dialog based application using VC6.0) then from inside this application modify its own contents stored on the hard d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7538031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can i detect multiLanguages in string? I have a string in c#
How can i detect if this string contains Chars from Different Languages ?
i.e : a person fills his english name in text box and also his local language name.
I want to disallow that.
something like this :
"check the language table of the chars in the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7538036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Ajaxify will_paginate in rails 3.1 I am trying to ajaxify will_paginate result in rails 3.1. I have gone through the example of railscasts episode #174 but it is not working for rails 3.1.
Is there a simple way to ajaxify will_paginate result in rails3.1?
Here is index.js.erb code for loading the user partial (this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7538043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: list all defined constants from a file in php I have some php files that includes some language constants
define("_SEARCH","Search");
define("_LOGIN","Login");
define("_WRITES","writes");
define("_POSTEDON","Posted on");
define("_NICKNAME","Nickname");
now I need to read each file and list all constants and their v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7538049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Error if i declare constant with #define or const in my C program I use gcc version 4.3.2 (Debian 4.3.2-1.1).
I wrote a simple program in C to implement and test a integer stack. Stack is implemented by the STACK structure. I used a constant named STACKSIZE to define the STACK's size.
My program code looks like this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7538053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Return customized UIButton in method? I have a method that takes a UIButton, modifies its properties and returns a UIButton. However, it doesn't ever seem to be initialized. I'm sure I'm doing something wrong with the memory management here, but don't exactly know how to fix it. No runtime errors occur.
It is called... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7538054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .htaccess rewrite url with parameter I want to change my url with only the parameter. As I am passing only one parameter, so I want the sub url should be changed with my parameter name. I want change the url as the following type-
From:
http://www.xyz.com/cat.php?slag=season
to
http://www.xyz.com/season
Can anyone ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7538056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does boost::variant work with std::string? I've written a simple program in C++ with use of boost::variant. Program's code is presented below.
#include <string>
#include <iostream>
#include <boost/variant.hpp>
int main (int argc, char** argv)
{
boost::variant<int, std::wstring> v;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7538062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Installing Higher Versions of existing Windows Service in VS 2008 I am installing a Windows Service on my Desktop with a particular version.
Then I revise my service and make some changes in the service.I upgrade my installer version.I also make the property RemovePreviousVersion true.When I start to Install the
up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7538064",
"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.