text stringlengths 8 267k | meta dict |
|---|---|
Q: How does Tomcat maintain session integrity? HttpServletRequest's getSession(boolean) method mentions session integrity. How does Tomcat maintains session integrity? What rules does it use? What method? What is happening under the hood precisely?
EDIT
How and when is a specific session ID is created? Does Tomcat rely... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Get and Setfocus of an element What I am trying to do is get the last focus element before doing a refresh on my BO and set it back to the last focus value.
the idea is something like below:
//get last focus element
var x = Keyboard.FocusedElement;
//refresh my businessobject here
CallMethod();
//set the focus to my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to design a Tag table from another tables? I'm designing a software that will use tags to identify posts similar to StackOverflow, but with some differences.
The tags must be loaded dinamically (like here), but come from various different tables because it will be used for identification.
Example: the tag Brazil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ext.Net LoadMode Merge due to lack of documentation about this feature i can't find a way to do this. I am trying to use autoLoad with merge mode. I have a TabPanel in which each tab is supposed to open autoloading another page using merge mode.
i am aware that plain HTML does render, but pages including Ext.net com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: IBrokers request Historical Futures Contract Data? I tried to request historical futures data but for a beginner the ibrokers.pdf document is not well enough documented.
example Gold Miny Contract Dec11 NYSELIFFE:
goldminy<-twsFuture("YG","NYSELIFFE","201112",multiplier="33.2")
reqHistoricalData(conn,
Contract= "gol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Common stack for some public variables Someone in stack-overflow answered "stack is attached to a thread, so when the thread exits the stack is reclaimed." But what about public variables how they are managed once thread execution is completed.
For Ex. Declared public variable like
public partial class Form1 : For... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to determine file's extended attributes and resource forks with their size on Mac OSX? I had written a small utility for creating xml for any folder structure and comparison of folders via generated xml that supports both win and Mac as platforms. However on Mac, recursively calculating folder size don't adds up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Problem with encoding i have written my HTML code with the meta datas of
meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"
meta http-equiv="Content-Type" content="text/html; charset=utf-8"
meta http-equiv="cache-control" content="NO-CACHE"
meta http-equiv="content-language" content="pt"
it is in UTF-8 forma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OpenCL: multiple clEnqueueNDRangeKernel() calls I'm confused about how clEnqueueNDRangeKernel() works when called multiple times. Let's say I enqueue 10 times (for example, with a for loop), each time with global_work_size = 32. Let's say the kernel takes a global argument that it populates with get_global_id(0).
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's a good way to mimic Web Forms RadioButtonList in ASP.NET MVC? I have View Model List like this:
public class PersonViewModel
{
int PersonId
bool LikesIceCream
}
The View will display a list of people and their preference to ice cream - like it or don't.
I'm not sure how to construct the html in a way tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .NET 2.0 App.Config connection strings includes unwanted SQLExpress default I'm using a connectionStrings section within an app.config file in a .NET 2.0 project. The config section contains two connection strings I have defined.
When I retrieve the ConnectionStringSettingsCollection it has a count of 3. The 0th ent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: XSLT Help getting Distinct values I have an XML document (shown below), what I need to do is get a list of all the unique Type @ID values, regardless of where they are below SizeRanges
So for this document I need to get 10,8,6,5 into something I can use for-each upon.
Ultimately, I'm trying to show each SizeRange in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is Cache-Control:must-revalidate obliging to validate all requests, or just the stale ones? I have a mess with this header, I have read that Cache-Control:must-revalidate oblige to validate all requests with the source before serving a cached item, but just the stale ones? or all no matter if stale or fresh? I have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: RSACryptoServiceProvider - Value cannot be null - rgb My DNN module encrypts some data using my public key and presents it to the user. The user submits this data to me for processing. I decrypt the data with my private key and use it. I use the .Net RSACryptoServiceProvider for encryption/decryption. This has worke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Apache POI - background colours not as expected Thanks for looking.
Im using Apache POI to read an excel file. I want to use conditional logic that will use background colour. But I don't understand the results Im getting.
Why does following code show different results for same colours?
Code:
XSSFCell cell = (XSSFCe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I set up TinyMCE so that it won't allow inline data images? I have a TinyMCE installation on a CMS and the users have been pasting in images which are of the inline data type. This kind of thing:
<img src="data:image/gif;base64,R0lGODlhEAAOALMAAOazToeHh0tLS/7LZv/0jvb29t/f3//Ub/
/ge8WSLf/rhf/3kdbW1mxsbP//mf//... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Copy to clipboard without System.Windows.Forms.Clipboard? Well the question is that. Is there anyway to copy text and/or files to the Windows clipboard WITHOUT using Clipboard Class from .NET?
A: Depends on if I am answering the question in the title or in the text... you can access System.Windows.Clipboard withou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: EXC_BAD_ACCESS on calling drawRect on a retained UIImage I have a bit of a weird problem. I create a UIImage with imageNamed extract colour data from it and then set it to another class.
Then from that class when I do a drawRect I get an EXC_BAD_ACCESS when doing the drawRect.
Here is where I load the image:
UIImag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: is there a free php forum with pluggable encryption, or something better than just an md5 hash? it seems like phpbb, mybb, and vbulletin and others i come across all use md5. i'd like to do integration with my main site's authentication with something more secure (sha or just the builtin crypt('password', "$salt"))... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Div to show and stay on mouse hover - Stays up even when mouseout I've been playing around with several ways of hover divs, but most of the methods I tested only stay up when the mouse is hovering over the link.
What I want to achieve is for the div to appear on hover of another div, but stays up even when the mouse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: KeyEvent.KEYCODE_MEDIA_NEXT not received unless audio is playing I've paired with a Bluetooth headset. When audio is playing, KeyEvent.KEYCODE_MEDIA_NEXT and KeyEvent.KEYCODE_MEDIA_PREVIOUS are received fine in my BroadcastReceiver. When audio is not playing, my receiver does not get called for these key events.
In ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Seg Fault while trying to fill in a matrix contained in a struct I've got a structure for a matrix :
struct Matrice{
int nblig;
int nbcol;
int **mat;
};
And my program's got a seg fault when i try to fill the matrix :
void initMat(Matrice *M)
{
int j, i;
srand(time(0));
M->nbcol = (rand()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dynamic Content into mail() $message I'm just trying to put together a simple HTML email confirming an order to my database.
My $message looks a little like:
$message = "
<html>
<head>
<title>Whatever</title>
</head>
<body>
etc etc
</body>
</html>
";
What i want to do within the $message HTML is make a call to my ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Changing cursor when rendering a JList I've achieved what I'm trying to do, but I can't help but to think there is a more efficient way...allow me to illustrate.
In short, the question I'm asking is if there's a way to determine when a component has finished it's initial rendering.
I have a JList, which is hooked up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to make session/cookies work in all subdomains in Yii I have several subdomains like 'a.domain.com','b.domain.com' but I found that if i login at subdomain a, session/cookies won't work in b, and i have to login again in 'b.domain.com'
How do I make login session work in all subdomains?
Update:
I found each sub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Private _Accessors don't build with MSBUILD I have a build script (.bat) that invokes MSBUILD (C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\msbuild.exe) that used to work for a while but stopped working after I installed VS11 Developer Preview. Now, the build is not able to rebuild projects that include MSTest unit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to check if mysql_query returned anything or not
Possible Duplicate:
mysql_fetch_array() expects parameter 1 to be resource, boolean given in select
So I am trying to check if the following query returns any result or not
$numUsersSameRatingQuery="SELECT * `user ratings` WHERE category='$category' AND cate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: datepicker in jade template I'm new to Jade and express and need to add datepicker from jquery UI to one of my layered popup.I have tried inline script and header javascript with onload without any luck.
script(src='/javascripts/jquery-1.4.4.js')
script(src='/javascripts/jquery-ui.js')
script(type='text/javascript')... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Execute a function on the first element matching selection using jQuery I know $('.test').each(testFunction); invokes the testFunction for all matching .test elements on the page. How do I tell it to do just the first matching one.
I tried $('.test:first').each(testFunction); and it still seems to run for all of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I pass the multi-line output of a function to a grep? I'm new to UNIX and having trouble with what is probably a very simple concept. I would like to take the output of an awk designed to return a single column of data (in this case, it's a couple of lines containing FC WWNs) and use that as a search paramet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: self join in a table CustID Name ReferredBy
1 Neeta Sayam
2 Dolly Dilly 1
3 Meena Kimi 2
Find the names of all customers who are referred by others.
the output should be dolly dilly and meena kimi.
I have succesfully found out for customers who have reffr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: left outer join with a where in sql query i have a sql query like this:
select something
from
(
inner query here - outputs is correct: eg 2000 datasets
) as a
left outer join tableA
on tableA.id=innerQuery.id
where someYear = -----------> had to change this "and" to "where"
(
select max(tableYear)
from tableC
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Data binding - Visual Studio 2010 I am working with Visual Studio 2010.
Scenario:
I have 2 comboboxes.
Contents of first combobox:
PC
DB...
Contents of Second combobox:
Password reset
Hardware problem
SQL
My question:
When I select 'PC' in the first combo box I want 'Password Reset' and 'Hardware Problem' to show u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# converting .xls to .csv without Excel Need to convert a .xls or .xlsx to a .csv without the use of Excel in an C#/ASP.net web app. The application is currently using the NPOI.dll for some functionality but I do not see any info on the codeplex wiki for NPOI for that particular functionality. Does anyone have any ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: llvm Attribute::NoUnwind i'm running inside http://llvm.org/demo the following snippet:
class X { public: ~X() __attribute((nothrow)); };
void a(X* p);
void nothr() throw();
void b() { try { X x; a(&x); } catch (X* foo) { nothr(); } }
I see that some of the calls, (for instance, to func_llvm_eh_typeid_for) have the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: javascript resize with mouse I'd like to let my users resize a div from the 4 corners or the 4 sides with the mouse.
I whish to use just Javascript, no JQ library please...
A tiny little resize image in the right bottom corner would be a plus!
Thanks
A: Use CSS3 resize: both;, as seen here: http://dhtmlexamples.com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best/easiest method of creating a site from mysql tables and PHP? I am new to PHP and this will be my first site using PHP and MySQL... please help me with my issue.
Basically, I am beginning to create a site from scratch where there are 10 states and 8 regions in each state. I need to make pages for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Code completion C/C++ on Aptana doesn't work I'm using aptana studio 3 with C code and when I'm writting an acces to an structure it suggests in each position what variables I can use, but for simple variables it doesn't suggests anything without press control+space.
Any idea how to change that?
A: Aptana Studio do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Facebook Login w/ Java Web I'm trying to implement a Facebook login for my site and am having a world of trouble. I understand the difference between the client (JavaScript SDK) and server-side implementations, but am confused as to which is the correct approach. What I need is to store the user's info in my databas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: HtmlUnit, how to post form without clicking submit button? I know that in HtmlUnit i can fireEvent submit on form and it will be posted. But what If I disabled javascript and would like to post a form using some built in function?
I've checked the javadoc and haven't found any way to do this. It is strange that th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: What is the computational model of ICON and SNOBOL I try to found computation model of programming languages like Icon and Snobol but i can't found the information about these programming languages...!
I want know What the computational model of ICON and SNOBOL is?
A: Snobol is functional and logic model (see the r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Open A New Layout, Then Return to the Previous I have my main.xml layout. From here, the user fills in information, and is to click a button that should bring them to another describe.xml layout.
The question is: how do I get it so that you can press a button on main.xml to open up describe.xml, then when you hit ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iPhone browser: Checking if iPhone app is installed from browser I have web page where I have Button that either opens app (if it installed) or directs to App store if app isn't installed.
It all works if App is installed (I call into "MYAPP://"). However, if app is not installed Safari shows error message "Can not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Custom Splash Screen - Android Currently my android application shows a black screen with a loading wheel as it processes the user's request i:e as it gets content from the server. I would like to modify this screen to include an icon (image) that fades in and out continuously instead of the loading wheel. Is there ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is this email regex complete I'm following these specifications from wikipedia.
[^\.]([a-zA-Z\d\!\#\$%&\'\*\+\-\/\=\?\^_`\{|\}\~]|[^\.][\.]{1})+[^\.]@[a-zA-Z\d\-\_]+(\.[a-z]{2,5}){1,2}
How can it be improved/shortened?
PS:
I know there are multitudes of email validators already made, this is strictly for my own lea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make website compatible with every browser I am trying to make new website and I would like to know how to make it compatible with cross-browser as now I am able to view my website perfectly with Google chrome and when I see the same with Firefox 7.0 it's looking very ugly and with IE 8 its looking better.So ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using one search form to search multiple models I am working a simple rails app and i would like to know how possible it is to use one search form to search inside multiple models. like i have a story model and a book model. this search form should be able to search the both models with a single parameter.
<%= for_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Variable number of function arguments Lua 5.1 In my Lua script I'm trying to create a function with a variable number of arguments. As far as I know it should work like below, but somehow I get an error with Lua 5.1 on the TI-NSpire (global arg is nil). What am I doing wrong? Thanks!
function equation:init(...)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Can a foreign key be NULL and/or duplicate? Please clarify two things for me:
*
*Can a Foreign key be NULL?
*Can a Foreign key be duplicate?
As fair as I know, NULL shouldn't be used in foreign keys, but in some application of mine I'm able to input NULL in both Oracle and SQL Server, and I don't know why.
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "437"
} |
Q: Why member can't sign in when migrate membership database from ASP.NET MVC3 to MVC4 I manually migrate data from ASP.NET membership database to new membership structure in ASP.NET MVC4. (table name has changed from aspnet_users to Users, aspnet_membership to Memberships, and so forth)
But when try to sign in using A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: css div height expender i'm trying to put an textarea expander on a div and i can't find the right element to set , here explanation of what i'm trying to do :
in the textarea input tags in the bottom corner there is expander for the user to set the size he wants hes textarea to be
my question is , is there a way to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery: Hide div with no ID How can I hide a div with no ID? I have an application which creates few stickies. Some of them have no ID and some of the do have. How can I hide the ones with no ID?
The position is not always the same.
This is what I get in the HTML where I want to hide the last one.
Is it possible I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Add an excel column header to single header using c sharp I am attempting to add a couple of new columns to an excel file. I can add the column pretty easily, but I can't figure out how to add a column header to the excel file. How on earth do you add a column header to a newly added column? Here is how I add 3 n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Change python source while running Is it possible to change python source file while running an application and have this changes reflected immediately in the application?
Let say I have a foo.py file with a class Foo. In other module I'm calling functions on the Foo on user action. Now, I would like to change sourc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Choosing the right MySQL connection for PHP There seem to be a lot of choices for MySQL connection from PHP. I guess they all offer different feature sets. I just want to run a simple query, and so I'm attracted to the simplicity of mysql_connect(). Is this OK or are there any considerations I'm missing
Thhanks
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing arguments to ForeignKey class I am using stdimage to auto resize my images, I have something like that :
class Image(models.Model):
image = stdimage.StdImageField(upload_to="images/uploads/", size=(width, height))
class Nevermind(models.Model):
w, h = 300, 150
image = models.ForeignKey(Image)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check if a string is an object's instance variable or not? I have one question about the variables of an object, I would like to know if I can check if a string is an object's instance variable or not?
Below, an example to illustrate my issue :
I have an object - MyObject.h :
@interface MyObject : NSObject ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS Table Columns not lining up I have the following Table example here: http://jsfiddle.net/Lu9y3/
Which is based on the Telerik example here: http://demos.telerik.com/aspnet-mvc/Grid/Paging?theme=vista which is a UI component I am using in an app I am building.
As you can see they use two separate tables to achiev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to receive POST data in django I've been trying to integrate a payment gateway into my site in django.
I'm having trouble getting the response data from the payment gateway.
The payment gateway has sample docs for php which looks like this :
$ErrorTx = isset($_POST['Error']) ? $_POST['Error'] : ''; ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Stopping increment at specific height I am animating images within a logo in a slot-machine type of animation. I need it to stop animating once it gets to the top of the image (and send a callback if possible).
Currently, this is how I'm accomplishing the animation:
window.setInterval(function() {
$('#title-1 im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jquery click function not working jQuery is not working with the pop-up div. What happens is when i click on any of the Click Me text, the pop-up div is shown. Then i click on either one or two and nothing happens!? If i click on one, two should disappear and vice versa.
Copy the code below and try for yourself. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: track software DOWNLOAD I have a simple question here. Let say you have a website on which you have a software with links to download and install it on your computer. Is it possible to find out who or how many people have DOWNLOAD the software on their computer with something like Google Analytics for example? If we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: General Runtime Error being displayed instead of stack trace sharepoint 2010 I am trying to add a GridView to the aspx page ,but when I add it I get the error
I have enabled debugging on the web.config file , but still I get this below error. Since a day I have been trying to add the gridview to the page, it does'n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS or HTML help to set maximum width , height of a Image I have a block in a table, where profile pictures of the users shows. but to maintain design space, I have made the block size 200px in width and 300px in height. Now I set the below CSS style on the pictures of the users:
.max{
max-width:200px;
max-height:30... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Toast didnt work I have android project v.2.1.
and I have a code, in the code I have Toast, but it doesn't work. Why?
public void click(){
TextView color = (TextView) findViewById(R.id.text);
switch(i){
case 1: table.setBackgroundColor(Color.RED); color.setText("Красный");
break;
case... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to pass data from context menu to alert dialog in Android? The method below happens when an item in a ListActivity is long pressed. The idea is to delete that item from the database and for that I need to call mNotesAdapter.deleteNote(ID). Which works fine if I don't use an AlertDialog; but I should use one for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: android multi table adapters queries I've been reading about having multiples tables in a SQLite database in Android.
One approach is to have 1 adapter class for each table, and each adapter will implement CRUDs methods for each table.
My questions are:
*
*Is this the best aproach to handling differents tables i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Executor thread keeps running after hot deploy Is there any way to know when a war is being hot deployed so I can shutdown the old executor that is running scheduled tasks? I'm using jboss 6 and I have a scheduled thread pool that is updating data periodically in the background. When I hot deploy that thread pool ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jquery spritefy pause and restart I'm useing this plugin: http://www.spritely.net/
Can anyone tell me why the variable $sprite doesn't re-execute?
function animate_header() {
var $sprite = $('#header')
.sprite({
fps: 30,
no_of_frames: 4,
// the following are optional... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Anchor property won't save on Windows Form I have an existing solution with various windows forms. I went through to make some cosmetic changes to controls on the forms (resize, anchoring buttons), but for some reason the changes I am making to the Anchor property of buttons do not get saved (Save button anchor is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pointer arithmetic with shared memory I don't understand what exactly happens in the following lines:
*
*unsigned char *membershipChanged = (unsigned char *)sharedMemory; and
*float *clusters = (float *)(sharedMemory + blockDim.x);
I assume that in #1 sharedMemory is effectively renamed into membershipChanged, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jquery dialog best approach My scenario is:
1. I have a link in my page that opens a dialog.
2. Inside this dialog may have another link that opens another dialog, and so on..
What is the best approach to resolve this problem?
Where this dialogs will be created?
--
I tried this:
In my page I declare a div to be the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: C++ template help, using a template for integrations Hi i'm following a tutorial and video i found online , im trying to make a template to preform a numerical integration of a function where a user can decide which form of integration to preform, im trying to keep it to one file as not to use headers and not use ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Silverlight out of browser in SharePoint webpart I have an issue with my Silverlight webpart in a SharePoint 2010 site. The Silverlight app works great in the site and even out of browser. The issue I'm having is how to autoupdate the out of browser app. I currently have this:
if (Application.Current.IsRunni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Include my own mb_string functions or use PHP's defaults? For a public app - do you think it's a good idea to assume the mb_string extension is enabled on all servers (or almost all, like 95%)?
Are there hosts out there that disable this extension?
A: I think most have it enabled by default but I've known a few hos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Silverlight 4: how to show ToolTip on keyboard focus (revised) My original question:
Is there an easy way for a ToolTip to be shown when an item gets keyboard focus, not just mouse over? We have a list of items with tooltips that users will probably tab through, and the desired behavior is for a tooltip to be shown... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get list of network printers silverlight I want to get the list of network printers through silverlight. I have seen a few examples of using WMI, but they are not available in Silverlight, so, I was wondering if there are any alternatives to find network printers through silverlight or at least the installed printer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Set progress bar value according to the unknown length of text file I currently have a program which reads from a text file and then writes to a database after each line it reads, the size of the text file is undetermined, some days the file could be more or less lines than other days.
I already have a swing worker... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Replace spaces but not when between parentheses I guess I can do this with multiple regexs fairly easily, but I want to replace all the spaces in a string, but not when those spaces are between parentheses.
For example:
Here is a string (that I want to) replace spaces in.
After the regex I want the string to be
Her... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: support multiple OS versions incrementally I'd like to support Android 2.1 devices, but also would like to enable users to move my app to the SD card if they have Android 2.2+
The attribute for that is android:installLocation="auto"
How can I still support 2.1 while enable this attribute for 2.2+?
EDIT: I've set it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Search algorithm - Java I am finding it a little bit difficult to get a search algorithm to work properly in Java. Basically, the program has an array initialized. The user is supposed to enter a number via the keyboard, and Java will them print out the all the indexes where this number is found. My main problem ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Doctrine 2 ORM creates classes with hateful CamelCase I created yaml configuration for Doctrine. When I'm trying doctrine orm:generate-entities, it creates php files with getters and setters in camel case. So, is_public field transforms into setIsPublic and getIsPublic methods. It's owful. How can I get set_is_publi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I find out when the last party fires Phaser.arrive()? Given:
Executor executor = ...;
Phaser phaser = new Phaser(n);
for (int i=0; i<n; ++i)
{
Runnable task = new Runnable()
{
public void run()
{
phaser.arriveAndDeregister();
if (lastTask)
doSomething(this);
}
}
// run... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: decimal numbers for padding and margin Can I use decimal numbers (18.9 or 75.5) for padding, margin or other styles? all browsers (such as IE5, IE6) support it?
Thanks.
A: As long as it's an EM measurement, I don't see why not. Not sure about IE5, but I'm pretty sure IE6 is supported for decimals. Any browser tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Creating SQL Server login via script using variable I am trying to create a SQL Server login following the creation of a database through script.
The login is local to the host PC and this script will be run on multiple hosts.
What I want to do is the following:
USING MyDatabase
CREATE MyUser FOR LOGIN USER <compute... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to specify generic type argument in XAML I have a BaseView for my MVP - PRISM WPF application. Now for some reason we thought to make the _presenter as a Templated field in the BaseView.
earlier i had the view xaml representation as
<base:BaseView xamlns:base="clr address of the dll which had BaseView" >
</ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Ruby not properly understand what gems are installed when running from Jenkins? I have a Jenkins job that is supposed to run.
The job description is as follows:
SVN update the workspace repository
Run the following Windows batch command "ruby -d tester.rb"
When I run this command from the command line on the maste... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Error with Intents (Android) So this is supposed to be really really simple, since I'm just in the beginning stages of this app. Remember, I'm a beginner so excuse the noob code :p
The app crashes (force close) whenever I click the button to go on to the next page. Code is given below:
Button b = (Button) findVi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Update ASP.NET Page after GridView DataBind EDIT:
Apparently, part of the problem is that while an ASP:GridView has an OnDataBound() event (which you can use in the code-behind), the corresponding HTML table that is produced does NOT, so you can attach that event to JavaScript. (Did I get that right?) So, that's why... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: NSBox background image How can I set background image a for an NSBox? I know we can put a color, but what about background image?
A: Check out +NSColor colorWithPatternImage:.
[myNSBox somehowSetBackgroundColor: [NSColor colorWithPatternImage: myImage]];
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7573720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can i display an array outside the for each loop? So I have a shopping cart that works fine, but I want to display the results of the shopping cart inside a contact form outside of the for each loop.
The problem I am having is whenever I try to display $Ptitle it just displays the last addition to the shopping c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django template get custom attribute from request OR "refresh" radio buttons I currently have a template containing an html form, with the lines:
{% for r in q1.responseoption_set.all %}
<span class="r"><input type="{{ q1.answer_type }}" name="r{{ r.id }}" id="r{{ forloop.counter }}"/>
<label {% if q1.answ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Method of checking that INNER / LEFT join doesn't duplicate rows Is there a good or standard SQL method of asserting that a join does not duplicate any rows (produces 0 or 1 copies of the source table row)? Assert as in causes the query to fail or otherwise indicate that there are duplicate rows.
A common probl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Ryan Dahl's Node Chat Can someone explain in details the Node Chat written by Ryan Dahl. It used the core Node.js methods without using the Socket.io. I've searched a lot for the documented version. I couldn't find one. Can someone please help me with that.
A: Even I've been looking for such a solution. The best on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Looking for guidance on multi-part graphical gesture recognition I'm trying to research existing works in the area of recognizing complex graphical gestures, but struggling to find good search terms or clear documents in the field.
For example, I might want to recognize an arbitrary shape drawn by a mouse as a path,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Javascript null coalescing help, how can I incorporate a threshold value? a = b || c but if b > d, choose c I want to assign a value to a variable in javascript
var a = b || c; //however if b > 200 choose c
Is there a simple way to do this?
var a = (b && b <= 200) ? b : c;
Thanks for any tips or advice. Just tryin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Google maps and shadowbox I'm building a javascript function that load google maps inside shadowbox, this is quite easy using this code (I used the plugin calld GeoPlugin to get latitude and longitude, because I don't now how to get my lat and long automatically):
function initGeoLocationOnDemand() {
$('a.btnIn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery find() until? I'm going through a form checking values but I need to stop before a specific element (#before)
$('#before').closest('form').find('.reqd').each(function() {
//chacks input
});
I need this to stop before or even better after it reaches #before. I read about nextUntil() but it seems only to w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Selecting values from one column based on a different columns value Having trouble stating my problem succinctly here, so I'll just give an example.
Let's say I have a DB2 table about Students:
Name Class Grade
Billy J Econ A
Sarah S Maths B
Greg X Computes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use CAPI's CryptImportKey with PEM encode public key from OpenSSL? How do I get the Microsoft's CryptoAPI CryptImportKey function to import a PEM encoded key? It actually works but CryptDecrypt returns an error.
// 1. Generate a Public/Private RSA key pair like so:
openssl genrsa -out private.pem 2048
openss... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7573754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.