text stringlengths 8 267k | meta dict |
|---|---|
Q: WP7: Convert Accelometer and Compass data to mock Motion API I'm writing a small sample application for the Windows Phone 7.1 (Mango) and want to use the Combined Motion API to display the motion of the device. I need to write mock classes to be able to test my application when using the emulator which does not supp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the most efficient way of storing data read from a socket to be read by another thread? So I have a class using high speed I/O completion port sockets. The protocol of the data I am receiving has a 17 byte header, and a variable data payload which is specified in the header, so instead of calling ReceiveAsyn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to accomplish property and control update in wpf? I have wpf application with 3 textboxes.
txb1 is for inserting text
txb2 displays certain value from inserted parsed text, it is int number
txb3 should display value from txb2 multiplyed by constant value
There is a class storing data.
class Data
{
private co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to scan hundreds of log files containing SSN, and change the files to mask out the SSNs without changing the reset of the contents I was asked this question on an interview and I couldn't came up with an efficient idea to solve this problem.
"How to scan hundreds of log files containing SSN, and change the file... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: linux kernel module memory management I'm experimenting with memory management in linux kernel modules and I was wondering why a thread does not see the same memory as the module's functions. What I mean is,
I have a int *x declared globally. I allocate space using kmalloc and assign 10 to it. Now when I try and acc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: getting xml file from a website and copying it to a server My question is very broad since I do not know exactly what I ought to do. It will be my first trial. I hope I can express my need adequately.
I want to read and than copy an xml file from a website and copy it to my amazon cloud server account. I want to wr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Component layering Java Swing, Layers showing on hover I have two JPanels layered on top of each other in the same container. I am using container.add(jpanel, 0); and container.add(otherjpanel, 1). It works fine however in order for the top layer to show I have to hover over the components with the mouse.
Here is s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to use commons-DBCP with Play! Framework How can I set up my Play! app to use a commons-dbcp connection pool instead of
the native one provided by C3P0?
UPDATE
I got some feedback from the Play! Framework forum and what I was asking is achievable accessing a configured commons-DBCP DataSource via JNDI, e.g. whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Google-API Calendar Feed for Java I'm currently using the new Google API 1.5 beta, and I can't find any examples for retrieving a calendar feed. The examples posted here only seem to provide a list of calendars per account and not their events. Is the old GData API the only way to retrieve a calendar feed right now?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the proper way to make it so core graphics does not lag? I use UIBezierPath for finger painting (my app). I create it using path = [UIBezierPath bezier path]; . It constantly lags on the iPad (and calling it from within drawrect did not change anything). I have been working on this for hours on end and have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MKCoordinateSpanMake: why specify longitude AND latitude delta? If the distance corresponding to one degree of longitude is a function of latitude, why do you have to specify longitudeDelta and latitudeDelta when calling MKCoordinateSpanMake in the iOS MapKit? Moreover, how am I supposed to know what the correct rat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Allegro5 and MS Visual Studio 2010 recently I treid to add Allegro5 library to Visual Studio 2010. I visited allegro.cc and downloaded package called: allegro-5.0.4-msvc-10.0 (following the name, I think it's correct one) and after extracxtion, and I copied:
/bin to C:\Program Files (x86)\Microsoft Visual Studio 10... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery Validate: Group Validation But Not Field Validation I'm using jquery validate and I've set up groups. However, I'm having trouble figuring out the best way to validate each group seperately from the individual fields that it contains.
To illustrate this:
I have city, state, and zip ( in that order ). If som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to sanitize SQL queries in C?
Possible Duplicate:
Preventing SQL Injection in C
I know PHP has some built in functions that help to sanitize queries, but does C have anything like that?
snprintf(&buff[0],1023,"UPDATE grades SET grade='%c' WHERE username='%s'",choice,&uname[0]);
if (mysql_query(connect,&buff[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: BaseHTTPServer thread does not work My code is simple. Using BaseHTTPServer and ThreadInMix I want to run
a python script (Script1.py) for every request made simultaneously.
My Code-
from subprocess import PIPE, Popen
from SocketServer import ThreadingMixIn
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHand... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When should I call rawurlencode and rawurldecode? I'm writing a basic file browser in PHP as a homework assignment. I've got the whole thing working nicely and haven't really run into any problems - it's pretty simple. Open a directory, show directories and up-one-level as links, show files as plain-old-text.
I've... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Disabling Rails middleware for some actions but not all It seems that ActionDispatch::ParamsParser is quite slow for some requests, in particular when there is a large JSON request body. I'd like to disable it for these requests, but for most of my application it works great. Is there a convenient way to disable the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python reading file in binary, binary data to string? I'm trying to learn Python and currently doing some exercises online. One of them involves reading zip files.
When I do:
import zipfile
zp=zipfile.ZipFile('MyZip.zip')
print(zp.read('MyText.txt'))
it prints:
b'Hello World'
I just want a string with "Hello World... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get text from an URL I want to get the plain text (that eventually is shown to the user) from an URL. I know how to extract all the contents, but what I get is all this html stuff, hidden stuff etc.
I just wat the plain text, without layout. Not really stripped all html tags from the content, but kind of parsed, and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: XCode: Checking and assigning split string values to textField So i have been trying to test this out; basically i have a text file included named rawData.txt, it looks like this:
060315512 Name Lastname
050273616 Name LastName
i wanted to split the lines and then split each individual line and check the fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to bind an Image's Source to an attached property? I created a custom control which contains an Image control.
I'd like to have the Source of the Image Control bound to an ImageSource Dependency Property.
The Dependency Property is created as such:
public static class ImageSourceProperty
{
public static read... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remove index key from Array for accessing to object? How do I remove Index key from array?
For example:
$getProduct = Product::find($product->ProductID);
and the array structure will look something like this:
Array
(
[0] => Product Object
(
[id] => 26552
[name] => Product Name On... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Nonblocking sleep in C#5.0 (like setTimeout in JavaScript) What is the analog of JavaScript's setTimeout(callback, milliseconds) for the C# in a new "async" style?
For example, how to rewrite the following continuation-passing-style JavaScript into modern async-enabled C#?
JavaScript:
function ReturnItAsync(message,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Send messages to a safari window in the dashboard with applescript I'm trying to send messages via applescript to a safari window in the dashboard. Sending messages to normal safari is simple enough, but no clue how to do it in the dashboard. Is this possible?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7629528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery Lightbox single image display Is there a way to make lightbox only show the image clicked on and not show an entire gallery.
I am not interested in giving the user the ability to see other images aside from the one they clicked on, but the documentation doesn't seem to reflect this functionality.
Any help or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Stopping all current played youtube videos Is there way to make function in Action Script, or any other language, to stop all currently played youtube videos in current Tab?
Here's example, There are 10 youtube video objects on the site, i wanna have one button, to simply make them stop playing.
So, is there way to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cannot retrieve values from result set (jdbc) After ResultSet rs = stmt.executeQuery(query); , the code does not execute. Thus, the variables do not get the values from the result set . Can anybody help me resolve this ?
public User storeTempDetails(String s1){
Statement stmt = null;
String query = "select usernam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Substract 1 month to update table SQL Server I need to update all the issuedat (date field) to be less than one month from the column paidat (date field)
ex:
if paidat = 01/02/2011 then issuedat should = 01/01/2011
UPDATE invoices SET invoices.issuedat = ????
A: UPDATE invoices SET invoices.issuedat = dateadd(MM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating python subclass issue I'm having some trouble with class inheritance in Python 3.1x that I am hoping to get some help with. I have a class called ClassA and I am trying to create another class called ClassB that inherits from ClassA. Here is the code I've written:
from myfile import ClassA
class ClassB(Cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL LIKE and MATCH results query Can someone explain why
column LIKE '%board%'
returns more results than
MATCH (column) AGAINST('board' IN BOOLEAN MODE)
is it because match against ignores words like 'Blackboard', 'Backboard' etc
Is there away to get MATCH AGAINST return Blackboard, backboard etc?
A: MATCH (c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Given rsync --link-dest, is it possible to determine which files were linked and which are new? I'm using rsync --link-dest to preform a differential back up of my computer. After each backup, I'd like to save out a log of the new/changed files. Is this possible? If so, how would I do it?
A: Answer from the rsync m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Python: super and __init__() vs __init__( self ) A:
super( BasicElement, self ).__init__()
B:
super( BasicElement, self ).__init__( self )
What is the difference between A and B? Most examples that I run across use A, but I am running into an issue where A is not calling the parent __init__ function, but B is. Wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Where should I put CMakeLists.txt files? We would like to develop a few dynamically-linked libraries in C, each for both Linux and Windows. We would like to use CMake.
How do we organize directories and where do we put those CMakeLists.txt files? (Or should we have just one?)
A: There is no single way that it must ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is there a way to call a class "New"? Maybe a stupid question, but anyway...
Is there a way to call a class "New"?
Class New
{
..
}
Won't work of course, is there another way?
A: new is a reserved word in php. a class with name "new" is not valid php
http://www.php.net/manual/en/reserved.keywords.php
A: You c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mobile site with codeigniter sharing resources I have a desktop version of a site built with codeigniter ,and am creating the mobile version.
I create a sub domain, m.xyz.com whose document root is public_html/m
I have also place an index.php file in the /m folder
and edited the $system_folder and $application_folde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to narrow a Rectangle within a Sprite to exclude transparent pixels? I have a Sprite that contains opaque objects surrounded by transparent pixels. I also have a Rectangle that represents a part of the Sprite that I want to render using BitmapData.draw().
The problem is that the Rectangle that I obtained also co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Opening New File using VBA on Mac I am using Excel 2011 for Mac and trying to open a new file.
However, I keep getting an error that file not found even though the file is there. The code I am using is below:
Dim theFile As String
theFile = "/Users/Dev/Desktop/RCM/test.xls"
Workbooks.Open FileName:=theFile
Any sug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Django custom tag: Inclusion tag with no context I've read through the custom tags and filters documentation, but I'm not seeing how this can be done. I want to make a custom tag that just renders a string. No context, just the same string literal every time. In this particular case, I would prefer this over putting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to terminate tracepath when no-reply is returned? I'm writing a shell script (in Linux) to try to find all the IP address from one machine to another. Right now I'm scanning the network by limit the range of the possible IP addresses, but it won't be 100% accurate. There will be times hitting IP address that doe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Focusing a window for scrolling I have some experience in Python and Java, but I dont really know the .NET framework and how to interact with Windows.
What I want to do is a little program/script (maybe I need a DLL?) that when I use the scrollwheel on my mouse, the program that is right under the pointer gets focus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iPad both orientations for graphics I am about to start developing an iPad app, and need to support both portrait and landscape orientations. What's the best way to approach the graphical part? As I need separate images for portrait and landscape orientations.
A: Ok, let's ignore your vagueness and tackle this from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it bad to have magic variables? Say I have a variable or object I want to pass from one class to another through a test class. Let's say I have a test class, a chef class, and a waiter class.
Is it bad to do this in the test class:
chef.makeFood();
waiter.deliverFood(chef.getFood())
On that same note, should I i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Manually Updating Model in Entity Framework I am new to .NET MVC (Learning). I have the following method in Controller(this is not clean code and I am learning)
[HttpPost]
public ActionResult Edit(ProductCategoryLocation viewModel)
{
if (ModelState.IsValid)
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Extract a string using regular expressions I'm probably not using the right search term, because I keep finding
'matching\validating' string with regex (returns boolean) while I want is to extract a string from an other string.
How can I extract some parts of a string using a regex pattern?
A: It's matching that y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: NSAutoreleasePool and class variables I'm getting what looks like a crash due to overreleasing but as far as I can tell I'm not doing anything wrong, however I may have the wrong idea about AutoreleasePools and class variables.
If I have a class variable:
UIImageView *imageView;
and I allocate it in a thread like s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I target every other iframe using css? I am trying to target every other iframe in the screenshot below.
Can I use nth-child for this? Maybe something like the code below (although this doesn't work)?
#main iframe:nth-child(2n+2)
A: With that exact HTML structure, you need this selector:
#main iframe:nth-c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: PHP AJAX Registration form submission tutorial Can anyone please help me in finding good tutorials for php/jquery/ajax form submission validating each of the fields from the php code(server side validation). I have seen many tutorials on the web, but most of them show validating errors as a group. I want each of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Fixing a style sheet for IE 7 8 9 I’m not sure if it’s acceptable to ask this kind of thing but since I have no idea how to solve it:
I created an HTML5 CSS3 layout from scratch and it looks exactly how I want in Firefox 5, Safari 5.1 and Chrome 12 for Mac.
But when I use https://browserlab.adobe.com/ for the same b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Localisation on a SAAS application Scenario
We have a SAAS product that has an Admin back-end with a public front-end. We want to give the user the option to change what language their front-end displays. There will be the option of 7+ different languages. Our product is built on C# and MVC3. The front-end only cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Different images in table View? I am quite new to the forum and id love some assistance. I have a table view and im able to add cells to it via different buttons on a seperate page. I want to have each button add a new cell but with a different image. So for example. Button 1 will add a cell and an image named @"but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Use EJB 3.1 Singleton Bean as Client to Multiple Remote Stateful Session Beans I'm very new to EJB 3.1 and am trying to solve a server side problem; perhaps someone could offer some guidance.
I have a state machine that represents the shared state of multiple users in my application. I'm attempting to model this st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Image flicker in a JFrame I'm very frustrated because I used knowledge I gained from a book on Java to set up and paint to a JFrame for my program, but it seems like no one else in the universe sets it up the same way and the only way to fix it would be a large amount of recoding. So help!
I get horrific image flic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Should displaying an unsigned char* & an signed char* output exactly the same result I am unsure if I am correctly translating/converting a unsigned char* to a regular signed char*?
The unsigned char* is a string that has been hashed. Does the following code correctly convert an unsigned char* to signed char*?
std::... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to interpret the function type in Haskell? My code is the following
data Tree a = Leaf a | Node (Tree a) (Tree a)
deriving (Show)
f x = x + 1
myTree = Node (Node (Leaf 2) (Leaf 3)) (Leaf 4)
maptree f (Leaf a)= Leaf (f a)
maptree f (Node xl xr ) = Node (maptree f xl) (maptree f xr)
which can add one to the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I set the camera preview size to fullscreen with Android API? I am very new to Android development, and I am trying to get a simple camera application setup. So far I have a working camera application that has "switch camera" and "take picture" buttons inside the menu which are working fine.
The only problem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Update MySQL tables with PHP checkboxes Here's my table:
id | name | check
------------------
1 | Paul | no
2 | Bob | no
3 | Tom | no
id is an INT, name and check TEXT.
Here's the script:
<?php
include("database.php");
$dbc= new dbClass();
$query = $dbc->dbRunSql("select * from names order by name");
whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Error 'Program.Number' is a 'type' but is used like a 'variable Error 'Program.Number' is a 'type' but is used like a 'variable
i keep geting the above error when i try to run this program what am i doing wrong
using System;
class Program
{
enum Number{ standard = 1, express = 2, same = 3};
const int A = 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Doctrine2 ManyToMany doesn't execute listener events I have the following db structure:
User > UserRole < Role
UserId UserRoleId RoleId
Name UserId Name
RoleId
Active
CreationDate
And my doctrine2 classes are defined like this:
/**
* @var Roles
*
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Turn a multidimensional PHP array into a bidimensional array I'm trying to achieve something I naively believed would be simple: flattening a multidimensional array (which could have many nested levels) but still having arrays as a result. Ideally I'm looking for a function that can iterate through 10+ nested levels... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: If domain specified not equal to then current URL apply this jQuery as well as pages with same domain The code below only shows <span> on http://example.com/ but wont show <span> on http://example.com/files/target.html so how can I get it to work on all pages with the specified domain? Please help.
<script type="tex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I validate the format of a MAC address? What's the best way to validate that an MAC address entered by the user?
The format is HH:HH:HH:HH:HH:HH, where each H is a hexadecimal character.
For instance, 00:29:15:80:4E:4A is valid while 00:29:804E4A is invalid.
A: If you mean just the syntax then this regexp sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How to select first value from array in a foreach loop when passing variable on same page? code:
$persons = array();
$tags = array();
while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
if(!isset($persons[$row["id"]])) {
$persons[$row["id"]]= $row;
$tags[ $row['id'] ] = array();
}
$tags[ $row... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: bulk loading data into a b+tree I have built a b+tree index of my own, with all the operations for insert/delete/search over the index. To accelerate the insertion of a huge dataset, I would like to implement bulk-loading as well to be able to experiment with large datasets.
What I have been trying to do is to sort... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Apple Mach-O Linker (Id) error !! not sure what to do first I know this question has been posted alot of times on internet, but everytime people seem to give different solutions, and I tried a few and none worked for me.
so when I build my app I get this error :
Ld /Users/ahoura/Library/Developer/Xcode/DerivedData... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Parsing a .txt file as different data types So I have a text file that reads as the following
-9
5.23
b
99
Magic
1.333
aa
When I try to read it in using the following code, the GetType() function outputs it as strings:
string stringData;
streamReader = new StreamReader(potato.txt);
while (streamReader.Peek() > 0)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ResourceBundle not found for MessageSource I'm not able to locate the message source in my app. I have set the following configuration
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
<property name="basenames">
<list><value>resources.dev</value></list>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Touch gesture recognition for phones without neural networks I'm developing a gesture recognition program for a phone. What I am trying to accomplish is for users to draw their own "patterns", and then afterwards have these patterns do different things.
Storing the pattern - the "pattern save" algorithm as I call it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: UIButton highlight state images I've a UIButton and I set it with:
UIButton *myButton = [UIButton buttonWithType:UIButtonTypeCustom];
UIImage *imageNormal = [UIImage imageNamed:@"normal.png"];
UIImage *imageNormalHover = [UIImage imageNamed:@"normalHover.png"];
UIImage *imageSelected = [UIImage imageNamed:@"selecte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GNU Gettext and wide characters I'm developing a game (actually I'm porting it from Gosu to SFML) in C++. I'm using GNU Gettext as the i18n system. As you know, gettext returns char * strings using the local encoding, usually UTF8. The problem is that I need to use wide strings for SFML to recognize the special char... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SQL compare two tables with common id Given the following tables stored in SQL database
Table person
id username phone
1 james 555-666-777
2 gabriel 666-555-777
3 Lucas 222-888-999
4 Marta 555-444-777
Table room_booking
id person_id room time
1 2 A2 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java Interface implements Object? Does any Java Interface implicitly implements java.lang.Object?
This question arose when I did something like this:
public static String[] sizeSort(String[] sa) {
Comparator<String> c = new Comparator<String>() {
public int compare(String a, String b) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Access to getImageData from Greasemonkey script I want to implement a Greasemonkey script which scan each image on a page and makes some action depending on the image content. I'm going to use getImageData method of Canvas object to get the image content.
When I test my userscript with FireFox I get 'Security Error'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Clustering a stateless Java EE application with Glassfish on Amazon AWS What's the best way to deploy a stateless Java EE 6 application in a distributed environment in order to achieve high availability and scalability? My application is stateless. Therefore, I don't need to replicate any session state (HTTP session... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Maven GAE/Datanucleus uncertainties I been spending some time today, trying to produce my first maven managed Google app engine 1.5.4 + GWT 2.4.0 build.
I'm finally at a stage where everything compiles, and the gae:run goal works. Which was more work that I had imagines, but hey, its all good fun.
Anyways, my questi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Change location if POST is 0 I got this variable:
$page = (int) $_REQUEST['page'];
I need some actions that will base on the above request. This will be used to the pagination script.
I mean:
if $page is 0 , then script will redirect the user to the another subpage.
The trick is that I need to redirect user ONLY in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does a Tool for the analyzation of JBoss log files exist? I have a JBoss 6 Server running which generates a big log file.
Does a tool exist, which allows me to analyse the log file (How often did a specific error occur? When did it occur? How many INFO / WARNING / ERROR messages are there, ...)?
I've heard of log4j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Converting .TTF files to .EOT using PHP I want to convert .TTF font files to .EOT with PHP to make script like http://www.kirsle.net/wizards/ttf2eot.cgi
I searched a lot and I've got "NONE"
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7629716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GLSL ES local variables crash? I'm trying to implement some shaders from online tutorials (lighthouse3d.com) in my OpenGL ES 2.0 engine.
The problem is that for some reason, ANY variables declared in the scope of main() causes the entire shader to fail. for example, this fails:
void main(){
vec4 color;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can a ListView item be complex? I have a set of views that I need to present in a list-like manner. Every view is rather complicated, but each is a clone of the previous, just with different data. Now, there is a lot of data on any given view, so is a ListView/ListActivity still the right thing to use here? Or are t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Joins vs multiple copies of the data: Performance I was just reading
http://s.niallkennedy.com/blog/uploads/flickr_php.pdf about Flickr's infrastructure
and this is what it said.
JOIN’s are slow
• Normalised data is for sissies
• Keep multiple copies of data around
• Makes searching faster
Is it true or its just th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dos command to move all files from all subdir to one folder i want to write 2 batch files.
1st:
move all files in subdirs to root dir.
eg:
Folder1
|_folder2
|___files.jpg
|_folder3
|___files.jpg
i want to move all files in folders of folder1 to folder1
2nd batch file is
eg:
Folder1
|_folder2
|___JPEG
|_____files.j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How a user can have multiple likes? Well lately I'm making a script application. People can post and share stuff (let's call them object for the purpose of the question). Thing is, that a user can "bookmark an object" in his profile.
I have a table for users with unique uid (primary key) and a table for objects wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL REPLACE statement to replace some numbers not all I am trying to use a T-SQL REPLACE statement to replace the middle 4 numbers under the DepartmentID column....
I understand the simple way of changing one set of DepartmentID numbers I want to be able to change all middle numbers under DepartmentID
SELECT REPLAC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Number of column in a table MySQL
Possible Duplicate:
Find the number of columns in a table
I would like to know what is the query which enables to count the number of columns in a table in MySQL.
Something like :
SELECT COUNTNUMBEROFCOLUMN(*) FROM mytable
A: http://dev.mysql.com/doc/refman/5.0/en/show-columns.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Conducting a diacritic sensitive search I've looked all over the web only to find ways to make searches insensitive to diacritic characters, but I need the opposite.
In my situation I need to be able to compare specifically symbols with superscript and subscript dots (i.e. ȧ & ạ) and some other more common acents (á... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: html/css : margin and padding values keep applying to entire div instead of just the text I'm having an issue trying to center a piece of text inside a grey box, every time I move the text the entire grey box moves. I can't seem to figure this out. The problem is with the "show-collections-box" and the link to the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a checklist on developing a web application from start to finish?
*
*Gather requirements
*Figure out which programming language/DB to use
*Ask mgr if it's okay
*Design the database tables
*Ask mgr if it looks okay
*Mgr says to work with DBA
*DBA says okay
*I code a prototype
*Senior developers, te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How to set the frame of an animation in cocos2d I have made a CCAnimationHelper class that performs the following. You give it a fileName, a frameCount, and a Delay and it will give you back an animation. The thing I want to know is how to set the frame of the animation so instead of starting at frame 1, it will sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Python HTTP Server available for Multiple Requests I have been doing a lot of studying of the BaseHTTPServer and found that its not that good for multiple requests. I went through this article
http://metachris.org/2011/01/scaling-python-servers-with-worker-processes-and-socket-duplication/#python
and I wanted to kno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: java send email using annotations and aop I want to send emails only if they have an annotation in the method, using spring AOP. But how do I get the values in objects using annotation. For example, I have the following method. By using AOP, I can track when placeOrder is called. But how do I get ordernumber, user e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I convert Hex values to 32-bit MIPS instructions? I need to convert these Hex values to MIPS instructions:
I converted them to binary first, but not sure if it is necessary.
Hex: 0x0000 0000 - Binary: 0000 0000 0000 0000 0000 0000 0000 0000
Hex: 0xAFBF 0000 - Binary: 1010 1111 1011 1111 0000 0000 0000 0000
He... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Wrapper functions for IndexedDB I need to build an offline HTML5 web app for a iPad/tablet device where the user can download a dataset (table of data) from the server and store it on the device. The user could then disconnect from the server and view/edit the data locally on the device. This is for people who work ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Dynamic Linking/Referencing of Classes at Runtime on Android I am wondering is there is a simple and clean way of achieving the desired functionality below:
I have a main APK that provides the core functionality of my application, which contains an abstract class to be extended. There are various other APKs, each co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get values of all checkboxes in child elements all im tryin to do is get the values of all checkboxes in child elements, i have seen this question: How to retrieve checkboxes values in jQuery but cant successfully get it working on child elements
My code is this:
<ul id="menu3" class="side_menu expandfirst noacc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Algorithm for finding intersections of straight lines there's this problem about line crossings I saw somewhere and was trying to solve.
There's a 64x64 grid of 8 bit pixels and it has a bunch of 1 pixel wide vertical and horizontal lines of different colors on it. All parallel lines have at least one space between... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to show my javascript counter result in 2 divs on the same page? I have a javascript counter (named clock because it counts seconds) where the results are displayed in a div:
<div id="right">Time: <input id="clock" type="text" value="00:00" style="text-align: left; background:transparent; border-style: none; col... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Representing Data Types With Variable Variables I am attempting to represent formulae with variables ranging over, for instance, either formulae or variables and constants:
R(a,b) -> Q [Q takes formulae as substitutions]
R(x,b) v P(b) [x takes constants or variables as substitutions]
Functions over formulae have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Assign Common ID to multiple row insert from MySQL array I have a PHP script that inserts rows into a table based on selected rows from a MySQL array.
the code to insert the rows into the new table is:
$sql="insert into loaddetails (CaseNo,GrossMass,CaseStatus,Customer)
select `case no`,`gross mass`,`case status`, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: validating parameters under script tag i need to include codes for "value must be nonnegative" when a negative number is entered. i have already included codes for "value must be a number."
<script type="text/javascript">
function test_ifinteger(testcontrol, nameoffield) {
var x = 0;
var isok = true;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to 'follow' foreign keys in a SQL client I am currently using Sequel Pro to view my database. I find much of my time spent on 'following' foreign keys. For example, if an entry in table A links to table B, I find myself writing down the id number, then clicking the other table, scrolling down to find that id, et... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7629772",
"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.