text stringlengths 8 267k | meta dict |
|---|---|
Q: Validate account number SQL table I'd like to select data from a table with the following rule, but I'm having trouble writing the query. I'm using PostgreSQL and I can't create a UDF. The table looks like this:
id | user_id | account_number
-------------------------------
1 | 1 | 12345671
2 | 4 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Groovy way of finding largest matching list member based on members property Is there a better way to find closest object with lesser marker?
class Prop implements Comparable {
BigDecimal marker
String value
int compareTo(other) {
return marker <=> other.marker
}
}
def props = [new Prop(marker: 0G, va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How in SQL Server Management Studio 2008 to rollback easily? I'm used to setting Oracle's tools to not auto-commit, run statements, then click a 'rollback' button if I'm not happy with the result. I'm hoping I'm overlooking something in Microsoft's tool...
A: As far as I remember, you can do it by SET IMPLICIT_TRAN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any way to access GAE dev app server in the local network? If I access my web site via http://localhost:8080 from the same Win 7 PC, where server is running, then it works well.
If I try to access that from another PC (with usage of my internal PC's ip http://192.168.1.98:8080), then it doesn't work. Moreov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: changing number format with php I have numbers like these...
1.235,45
100,00
5,5678
25.321,10
But I need those numbers in the following format:
1235.45
100
5.5678
25321.1
A: $number = str_replace('.', '', $number);
$number = str_replace(',', '.', $number);
$number = (float)$number;
Should do the trick.
A: funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sort a PHP array by another array order and date Was wondering if there is a way to sort (usort or equiv) an array based on key order of another array and date. I know how to do basic date sorting with usort, but was wondering if you could do both in one shot.
$cats = array(1,6,3,4,7,2);
$prods = array(
array('cat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: django urls optimization urls with 2 request params:
/prefix1/1/
/prefix2/2/
/prefix1/1/prefix2/2
/prefix2/2/prefix1/1
url( ur'^prefix1/(?P<p1>\d+)/$', 'app.views.view' ),
url( ur'^prefix2/(?P<p2>\d+)/$', 'app.views.view' ),
url( ur'^prefix1/(?P<p1>\d+)/prefix2/(?P<p2>\d+)/$', 'app.views.view' ),
url( ur'^prefi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google Maps API JS: Show map of a certain town Isn't it any longer possible in Google Maps API V3 (JavaScript) to display a marker at a setted/given town name? This is my code:
google.maps.event.addDomListener(window, 'load', function() {
var myOptions = {
zoom: 8,
center: new google.maps.LatLng(-34.397, 150.644... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: xcode iphone UIPickerView My UIPickerView hits the didSelectRow method without actually clicking on the item in the list. All you have to do is flick the list to scroll and when it list stops scrolling it automatically fires this method. How can I fix this?
A: As herz said, this is simply how the UIPickerView beh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CoreData inverse question My understanding of an inverse relationship in CoreData is that these two statements should be equivalent:
[department addEmployee:employee];
[employee setDepartment:department];
and that you only need to do one of them.
However, if I do this:
[department addEmployee:employee];
NSLog(@"%@"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java PipedInputStream available() method return value I am trying to write a piece of unblocking code to read from a PipedInputStream. It basically checks if there is anything to be read before calling the blocking read API:
int n = 0;
if ((n = pipedInputStream_.available()) > 0) {
pipedInputStream_.read(...)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Jquery Event Handling Question Say I have this code:
$(document).ready(function()
{
$(".foo").click(processFooClick);
}
Once the document has loaded, then via javascript I dynamically add a new div with foo class to the document:
$("body").append( "<div class='foo'>click..</div>");
Would this new div also have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Silverlight DoubleAnimation: Set KeyProperties from Codebehind? Hi I define my Storyboard as Resource in XAML:
<Storyboard x:Name="vor">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="master">
<EasingDouble... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using sub-query inside "IN" operator? I'm extending a basic shopping cart system and need a way to show all invoices in which a given product was purchased. I'm not sure a SELECT can be done this way, but I could a boost.
The problem is that invoice IDs correspond to shopping cart entries which identify the product ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error Processor type not supported after project converted from Visual Studio 2008 to 2010 The solution, which retains an installer project, was recently converted from 2008 project to 2010.
However, attempts to run the .msi that is created returns the error
"Processor type not supported....
If you run the setu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Facebook Like Button for multiple posts on one page: is it possible? I've been able to properly implement the Facebook Like Button for my WordPress single.php pages, where the link and a thumbnail from the post is correctly referred.
I've also been able to get the FB Like button to reference the correct link on a li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the difference between Eclipse for Java and RCP? Do I have to download and install them separately? Or just the RCP package? Kinda confused.
A: The Eclipse RCP includes Eclipse for Java plus all tools needed to create eclipse plugins and Rich Client or Rich Ajax Applications (RCP+RAP). With RCP you can use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Flex DateTimeAxis not showing labels I have a chart that uses a DateTimeAxis for the x-axis and a renderer defined for it. I also have a function defined for the label on the axis but I am not able to get the labels to show.
Trying to print out a static time to test working.
private function timeAxisLabelFunction(o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: After each times click an increasing number? I want after each times click value 2011 an increasing number, how is it?
Example:
$('button').click(function() {
var num = '2011';
var out = num ++1;
alert(num); // i want this output: 2012
});
A: var num = 2011;
$('button').click(function() {
num++;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Pivot Table Report I am trying to create a pivot table with data from a SQL database. The pivot table is basically a process capability report that requires certain information. I have created an Excel file that sort of does what we are trying to accomplish, but I don't think my calculations are quite accurate. I kn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Allow only numbers/year between rounded brackets For a website I want to allow only the year of production between rounded brackets with a RegEx.
Allowed:
Movie 1 (2010)
Disallowed:
Movie 2 (2010 English)
Movie 2 (01-01-2010)
What I want is a RegEx that will detect when letters are between the brackets or a combi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: External Interface Problem: Error calling method on NPObject Making a flash video streaming web-app using Actionscript 3's external Api. I am at a very rudimentary phase of the project where we're just experimenting with external interface. Right now i just have a flash object and 3 buttons each to play pause and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: difference between int bar[10] vs int (*bar)[10] int bar[10]; /* bar is array 10 of int, which means bar is a pointer to array 10 of int */
int (*bar)[10]; /* bar is a pointer to array 10 of int */
According to me they both are same, am I wrong? Please tell me.
Edit: int *bar[10] is completely different.
Thanks
R... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Images being requested multiple times from CSS Any idea what would make a stylesheet(s) load images multiple times? The images are the same URL, nothing fancy going on.
EDIT: Only happens in safari (5.0.3) in both iPhone "mode" and default "mode" - i cannot reproduce the problem in FF or IE.
Apache_access_log says... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Powershell - how to create network adapter (loopback)? I want to create a loopback network adapter with powershell.
I can get an adapter using code like this.
$networkAdapter = Get-WMIObject win32_NetworkAdapter | where{$_.ServiceName -eq 'msloop'}
However, I cannot seem to find how to create an adapter. The onl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Interesting tree/hierarchical data structure problem Colleges have different ways of organizing their departments. Some schools go School -> Term -> Department. Others have steps in between, with the longest being School -> Sub_Campus -> Program -> Term -> Division -> Department.
School, Term, and Department are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: The click event is not working Can someone point me in the right direction in figuring out why the event in the code below is not working. I tried using firefox but not sure how to troubleshooting this problem using firefox.
When I click on the button, nothing happens. I don't see the alert box
<script type="text/j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why am I getting a '.class' expected error? Simple Array script My program is creating an array and allowing the user to input 10 double precision numbers. Then the program will sort them in order from lowest to highest. I have the following but receive .class expected error upon compiling. Any ideas on why this is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Should project that will always use MySQL use PDO? I have created a project which uses a MySQL-database in a very basic way. This means I only use SELECT, INSERT, UPDATE and DELETE. No joins, no table creation. Most queries are SELECTs and most of the time I only select some rows of one record.
I'm also quite sure t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Landscape mode without a ViewController I have a project based on a window-template, so it doesn't have a viewController. Now I'm trying to make this work in landscape only, and I have set the "supported device orientations" to "Landscape (right home button)" only, just the way I want it. The app actually launches i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android - will users trust embedded webview for twitter authorization? Will users trust if I use an embedded webview to authorize my app with twitter? I could obviously be providing a fake page to catch their login. Or do they expect me to launch a browser so they can see the url etc? If I do that, is there any way ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I require a library newer than the one required by the Play! Framework? I need a newer version than 1.5 of the oval framework, so I try to add it to the dependencies but play requires 1.5 which overrides my dependency. How do I force play to let me use a newer version? (I know technically I could change it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do $_REQUEST two fields and post them together on another page? I have a form that inserts data into mySQL. It works fine.
After the submission, I have a success page that displays 'part_no'. I need to also show 'add_qty', as well.
How do i alter my post script to show two field data's on the success page?
H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XML Generate Columns by Group using XSLT I am trying to generate a 4 column directory, grouped by the 4 disciplines in my department. One XML file contains the entire group. Each element has a department tag. The construction of the directory would be the following:
Group each entry by discipline.
For each group, cy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I communicate with a printer via USB using java in windows platform How can I communicate with a printer via USB using java in windows platform? I don't want to use JNI. I want to use jsr80 or libusb-win32 if any experienced have work with that please share his/her knowledge with some code. I think in libusb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: android ImageButton click I have just a little problem
in my layout
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:weightSum="1">
<ImageButton android:id="@+id/startLog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to correctly read Javascript hash in custom affiliate URL? I'm creating a custom affiliate program. I want my links to be as SEO friendly as possible, so I will use a Javascript hash appended to the URL to send the affiliate id, read the affiliate id, store the click, and then 301 re-direct to the page they were... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error recording to movie file with AVFoundation This is a strange problem. I have not changed any code involving this in my project but my video recording has randomly stopped working. When I try to save to a movie to a file I get the following error:
Error Domain=NSOSStatusErrorDomain Code=-12780 "The operation ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can one make internal links work within a client-side-generated HTML page? Situation: for various reasons (mainly, that it will be used at times in situations where the Internet is not availble), some JavaScript-heavy HTML I am building has to be able to run at times strictly on the client, with no server involved. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: X marks along the direction I have never worked with Google maps API.
For the school project I am working on; I need to get a direction between two locations (this is easy part and I think I can do this),
However I also need to put an X mark; at every 10 miles along the way.
Is this even possible?
Thank You.
A: O... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Force MP3 files to download instead of opening in the browser with Quicktime OK I have a website that serves podcasts in MP3 format. There is a .htaccess that routes requests for MP3 files to a download script, and that is as follows:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule (.*.mp3)$ download.php?fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NoMethodError in Users#new I started getting this error:
NoMethodError: undefined method `has_key?' for nil:NilClass
in the process of nearly finishing Hartl's excellent Rails Tutorial. It looks like I must have left out a method, but I have idea where, and am new to debugging in Rails.
Here's the full stack trace... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to restrict motion to vertical in box2d I have a box2d body that has a fixture of a ball. It just bounces up and down on top of a rectangular box. Sometimes it will fall off of the box for no apparent reason. I there a way to restrict gravity to only vertical so that I can solve this problem?
A: Or you could us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dynamically adding child field on form as described in Railscast 197 does not use :child_index parameter to generate html name attribute I have an application where I am trying to add records as shown in the Railscast number 197. My objects are more simple, as I only have one level of Parent/child relationships: P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to post file to remote url? I followed another question about posting a file to a remote url: Upload files with HTTPWebrequest (multipart/form-data)
It is making the remote url crash in my HttpHandler with: "Unable to cast object of type 'System.String' to type 'System.Web.HttpPostedFile'." Is the method posting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: css selector specificity conflicts due to multiple stylesheets Ok, I've been reading through stackoverflow css selectors. on the thread here what is the differences in this syntax? What does the ^= mean? What is it selecting? all?
[class^='Rating']
and
div.Rating0_5
Also, there's a statement here that reads:
N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unable to include resource file in program I was trying ICZELION's tutorials and this is my asm program:
.386
.model flat,stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\masm32.inc
include \masm32\include\user32.inc
includelib \masm32\li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Casting and Performance in C# I'm writing a code that selects data from a database, store it in a DataTable, do some hard math, and updates the database back.
The main issue is that it requires a lot of casting due to DataRow collections returns columns as the object type, forcing me to do float.parse() every single... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Chrome closing connection on handshake with Java SSL Server There are several questions that are similar to this, but none address this specific issue. If there is one and I missed it, please direct me to the relevant solution.
Now for my issue. I wrote a test SSL Server in Java:
import java.io.FileInputStream;
im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: WinRT's WriteableBitmap no longer allows random access to pixel data? One of the changes in WinRT's WriteableBitmap class is that, instead of exposing a Pixels property as an array, it now has a PixelBuffer of type IBuffer.
The problem is that IBuffer doesn't have any way to do random access to the data. I can creat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: help with this query It shows repeated records and It is not working? I am trying to write a sql statement to retrieve all the messages with user_id_user = '3' and status = '2' but I get repeated records I dont know why, I am stuck with it
My tables are this
message
id_message title content d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to generically create a thumbnail corresponding to a given RSS feed's article So I'm brainstorming right now and would like to hear your thoughts on this.
So you know the news app, pulse?
As you can see it pulls thumbnails from virtually any news source.
I'm curious as to how they gather the title and image fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: image saving, resizing I have one basic question. I have project where I need more sizes of one picture.
Yes... During uploading you make thumbnails... and so on... I know this story ... performance vs. storing possibilities.
So I save original img, a make 2 thumbnails copies for example max width 100px and maxwidh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I verify that a swt text widget is a decimal value In swt, text widget allow any string.
But What is the most appropriate SWT widget in which to enter a Decimal value?
I found two answers :
*
*First, implement the VerifyKeyListener and VerifyListener, work for french decimal notation, but simple and easy ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: My android app "stops unexpectedly" I have recently got into writing android apps and have hit a brick wall very early on that I can't figure out, and i'm sure it's mind numbingly simple.
Everytime I run it in my emulator, I get the "Stopped unexpectedly" error :/
Files
The main ".java" file and the main.xml are in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JQuery DataTables .Net Server Side Pagination Issues I'm working on a bug fix right now for an application at work where the prior developer (since gone) didn't bother to paginate the data results on a page meant specifically for listing out data results.
This of course has reared it's ugly head as users are startin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Windows Service output not showing up in Event Log I am trying to follow this walkthrough.
I'm using Visual Studio 2010 Premium.
The only events I see in Server Explorer or in Event Viewer are "Service started successfully." and "Service stopped successfully."
Here is the service code:
namespace MyNewService
{
p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: If I @Ignore a test class in JUnit4, does @BeforeClass still run? Quick background: I've been hunting down a Maven / Surefire test-running problem for days now, and I've narrowed it down to a small number suspect of tests. The behavior I'm seeing is insane. I start with mvn clean test: 250 tests run, 0 skipped. N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How does threading or Multiprocessing work with recursions? Background
I'm a bit new to developing and had a general python/programming question. If you have a method that is a recursion, what is involved to enabling multiple threads or multiprocessing? I've done some light reading and a few examples but they seem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ImportError; and zipimporters disappeared from pkgutil.iter_importers() I have a Django instance that's mysteriously incapable of import memcache ... after (some unknown event that happens after a period of running just fine.)
LAMP configuration:
*
*RHEL 5.7
*Apache 2.2.3
*mod_wsgi 2.3 (dynamically linked to Py... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS3 animation issue with z-index I have two elements in this jsFiddle. Each expands on mouseover with a :hover transition.
I want the blue animation to match the red one. Right now the red one expands over top of the blue one on mouseover, but the blue one expands under the red one. I would like each to animate ove... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When to use a key/value store such as Redis instead/along side of a SQL database? I have read great things about key/value stores such as Redis but I can't seem to figure out when it's time to use it in an application.
Say I am architecting a web-based application; I know what stack I am going to use for the front-e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "204"
} |
Q: cmake set_property on SOURCE files with COMPILE_FLAGS I'm using CMake 2.8.1 (tried this on CMake 2.8.5 too). I'm using the Visual Studio generator for VS2008. I would like to selectively apply compile flags on some some source files differently than for other files, and all of these files are going into the same st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to return an encoded JSON string to jQuery call? I do something like this in my PHP AJAX:
$rows = array();
while($r = mysql_fetch_assoc($sth))
{
$rows[] = $r;
}
print json_encode($rows);
My calling JavaScript code is like this:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Help with format string in scanf Here's the statement:
int i;
scanf("%d ",&i);
Why does the space at the end of the format string causes scanf to accept two inputs instead of 1?
A: The space at the end of the format string tells scanf to eat whitespace after the first integer. It's not actually accepting a second... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Core Data / Range Update Here is a simple mySQL request :
UPDATE myTable SET X=X-1 WHERE (X>100)
Now my question goes like this.
How would I write a similar request in Core Data ?
I am starting to find out my way in Core Data; but the last part of the above SQL order gives me problems in Core Data.
In other word : ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to disable just vertical scrolling in a UIScrollView? UIScrollView has a property scrollEnabled to disable all scrolling, but I want to disable only the vertical scrolling.
Is that possible? Thanks.
A: If the scrollView's contentSize.height is less than its bounds.size.height it won't scroll vertically.
Try se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: GoogleAppEngine: how to prevent image resize failure for big images I've got to manage some images taken from the client.
Up to now, my code is the following:
Image oldImage = null;
try {
oldImage = ImagesServiceFactory.makeImage(imageBuf);
} catch (Exception e) {
log.severe("Cannot make... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MySQL two different groupings required in one query Struggling to do this with one query:
scores
==========
| child_name | week | behaviour_score | test | test_score |
+---------------------------------------------------------+
| jo | 1 | 75 | 1 | 55 |
| jo | 1 | 75 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: unQL and Django? sorry if this is too earlier to speak about that, but it seems that NoSQL and SQL has made something between them called UnQL (Sqlite and CouchDB), maybe i dident understand the concept, but if that UnQL will be aviable, so Django will behave with him as what? as an SQL or as a NoSql? since they sai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Make a component fill all available space on screen I want something like this:
But I don't know how to resize the TextView so it gets all the available space on screen which is not ocuppied by the EditText or the Buttons. May I do it in the code, or in the xml?
At XML I tried putting the TextView into a FrameLayo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adding View to Relative Layout behind an existing view causes screen flicker I'm trying to insert a View behind another view that is taking up the full screen and then later removing the view in the front to reveal the only remaining view. Functionally, everything is working as expected but the problem is that when ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: unmarshalling complex types with Jaxb2 Hi I have following XML and java classes when I unmarshall using JAXB2 processor using Spring OXM framework I am getting all null values. Any idea?
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name="AuthentXML",n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Exception while creating mssql database jndi resource in Tomcat I am trying to create a Tomcat JNDI resource for MSSQL database.
This is how my resource string looks in tomcat context.xml file
<Resource
name="jdbc/FI/SD"
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.microsoft... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How I can Call Javascript prototype functions? This is the Javascript code to call
the Function Alerts it is from Stage6 that I will fully rebuild to bring it back to live :)
// Alerts (in the header)
function Alerts(total) {
this.current_page = 1;
this.last_page = Math.ceil(total / 4);
i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Count users from table 2 in request to table 1 I have table with positions
tbl_positions
id position
1 Driver
2 Lobby
3 Support
4 Constructor
and in other table i have users
tbl_workers
id name position
1 John 2
2 Mike 3
3 Kate 2
4 Andy 1
i do request of posit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Save only 10 Records but delete all others by ID Huge Database I need a solution to remove all records but save last 10 by ID_URL not BY UNIQUE ID (primary Key)..
MY Database Structure and Records View..
I need to save last 10 ITEM of EVERY URL_ID..
EDIT: Maybe most or are you confused what I am asking about.. actu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Converting dynamic, nicely formatted tabular data in Python to str.format() I have the following Python 2.x code, which generates a header row for tabular data:
headers = ['Name', 'Date', 'Age']
maxColumnWidth = 20 # this is just a placeholder
headerRow = "|".join( ["%s" % k.center(maxColumnWidth) for k in headers] ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: HtmlUnit is throwing Out Of Memory and maybe leaking memory I use Selenium with HtmlUnitDriver with javascript enabled and I get Out Of Memory errors (I use Java). I just browse the same page. I am only using a single GET command. Which is the solution to overcome the situation?
A: I've had a similar issue. It ende... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Gaussian connection pattern between 2 different layers of neurons of different size I have code to solve the following problem, but it seems too slow to use (I think O(n^4)). Help a python beginner turn correct code into usable code!
A neuron can be specified by its layer, and a 2 dimensional index. For example, N{0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ETL sync in every sixth hour I need to make a ETL sync to add new data from relational database to the database DW in SSIS. It should take place in every sixth hour.
*
*How do I do it?
*What component do I need?
*Where can I find more material about it in the Internet?
A: You'll need to build a SSIS Pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: maven build with war and jar pushing odd artifacts to internal repo I have a maven project where I am building a war file, but I am also using the maven-jar-plugin to build a jar in the same project.
--DISCLAIMER--
I know this is not the 'correct' way to do this, but there are some other issues occurring when splitt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Foursquare userless search iOS is there a way to fetch the venues search in iOS without the user entering his password or showing some foursquare oauth website?
I don't think that this oAuth makes any sense for this kind of request, it should be just an REST api like so "https://api.foursquare.com/v2/venues/search?l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Tying Model to Query Result in CodeIgniter? Here is what their documentation says
You can also pass a string to result() which represents a class to
instantiate for each result object (note: this class must be loaded)
$query = $this->db->query("SELECT * FROM users;");
foreach ($query->result('User') as $user) { ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SDL and aalib: No SDL_KEYUP event? I have my small project in which I use SDL, and I was playing around with the different available drivers. I came across the aalib driver, and I realized the SDL_KEYUP event was never called.
This, however, happens only in certain conditions. The event is sent when using the X driv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: SQL Query to find Parent-Child Child-Parent relationships? o_O
If I have the following records in a table:
Parent Child
1 2 <--
2 1 <--
3 2
3 4
etc...
And I want to identify records that are both the parent of their child AND the child of their parent such as the 2 records id... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Writing formatted XML with XmlWriter I'm trying to write to an XML file to the isolated storage but I would like to format it like this:-
<SampleData>
<Item Property1="AliquaXX" />
<Item Property1="Integer" />
<Item Property1="Quisque" />
<Item Property1="Aenean" />
<Item Property1="Mauris" />
<Item Prop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Obj-c let me change the class of a variable, and its bad: How hunt it? Well, in obj-c have the ability of change the class of a declared var. So if I declare myVar as a NSString, is possible to get back later a NSNUmber.
I have this problem now, but I can't find where in my code is the identity swap... exist a way ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Template Type input used as Template Type for Member Property C++ So I am trying to have one template class be a container (that will later operate on) a set of contained classes, also generated from a template, and stored in a vector.
The abstracted form of what I'm trying to do would look like this:
template <typ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Make Xcode ignore LLVM build warnings in 3rd party project I have a third party project in my Xcode workspace (it's a dependency for my main project) and I want Xcode to ignore all build warnings from that third party project.
Preferably I'd like to ignore all build warnings for the Vendor/* group in my project sinc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Object prototype being included in array I'm working on a function that pulls the lat/lng from an MVCArray of markers. The function is below. However, each object in the mapData array contains the prototype of the native object, along with lat/lng. I have played around with hasOwnProperty, but without much luck. Am ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to format numbers to significant digits using STL I'm trying to format numbers to a specific number of significant digits using C/C++ and preferably STL. I've seen examples of doing this in Javascript (toPrecision()) and .Net, but I can't find anything on doing this in C/C++. I want to create a function someth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: From CObArray to ArrayList I have some pieces of C++ code that store objects in CObArray. I want to re-code the same pieces in Java using ArrayList to store the same objects. Will there be any difference in the overall efficiency?
So is ArrayList the exact correspondent class for CObArray?
A: I didn't know what a C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: css element margin for Firefox with Linux OS I designed this website, and I have been unable to place an the element ( div#endinglogo ) in a way that renders properly for firefox / Linux operating system users.
http://motivacionenlinea.com/
I am working with all browsers in windows 7, and although the design appears... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: CSS browser detection for radial gradient? I'm using a radial gradient as the background for a website. It works great on Safari, Chrome, and Firefox 3.5+, but Opera and Internet Explorer have problems. So, I made a background image to show on those browsers to give the same look. Right now, I'm detecting the browse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there an opposite command to git archive for importing zip files Our local workflow tends to use a sequence of zip files as the local 'source control' before major revisions are formalised into the 'big' company SCM system. I'm trying to introduce git as a better local SCM method. The current workflow is quite ef... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Change KEyBoard Layout via flash ( web )? Is it possible to activate alt+shift ( change language) Via JS and some Flash
like copy to clipboard plugin etc. ( via flash).
A: No. Only the user can change the active keyboard layout.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7535316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to replace " \ " with " \\ " in java I tried to break the string into arrays and replace \ with \\ , but couldn't do it, also I tried String.replaceAll something like this ("\","\\");.
I want to supply a path to JNI and it reads only in this way.
A: Don't use String.replaceAll in this case - that's specified in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How to set up htaccess rewrite for multiple variables? I originally created SEO friendly links for my site. I wanted my links for my coupon code site to look like:
http://www.mydomain.com/site/bodybuilding.com
So I did a rewrite in the htaccess that worked:
RewriteRule ^site/(.*)$ retailertest3.php?linklabel=$1
No... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Need help posting to my own wall in Facebook with PHP The code below is not working for some reason:
require './facebook.php';
$facebook = new Facebook(array(
'appId' => 'working_app_id',
'secret' => 'working_secret'
));
// Get User ID
$user = $facebook->getUser();
$token = $facebook->getAccessToken();
print... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7535325",
"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.