text stringlengths 8 267k | meta dict |
|---|---|
Q: Multiple statements in a for loop (1084 error) I'm trying to do a binary search in a for loop. However, flash does not like the following for loop.
for(var select:int = Math.floor((min + max / 2)), var turns:int = 0; turns < input.length / 2 + 1; turns++, select= Math.floor((min + max / 2))){
if(input[select] > ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Interface with different parameter types and number I wanted to create a generic interface with a method I could use to convert objects ...
Let me explain.
In GWT, using GWT-Platform, the presenters have an inner interface that extends View. This interface is implemented by the class that builds the screen (the pres... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NSString out of scope I used the codes below to set a NSString
#import <Foundation/Foundation.h>
@interface AppController : NSObject
{
NSString *myString;
}
@property (nonatomic, retain) NSString *myString;
@end
#import "AppController.h"
@implementation AppController
@synthesize myString;
- (void)appli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to determine the remaining wait time of thread in Java I understand that there is no specific method in the Thread class that allows a program to check how many remaining time a thread has before it wakes up. But in case you need such feature, how would you implement it?
For example I have:
Thread A - at a certa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find and replace with regular expression in Visual Studio 10 For example I have the following strings :
abc Edit worksheet xyz
abc Edit contract xyz
abc Edit xyz
Now I want to replace only string "Edit" into "Detail", "Edit worksheet" "Edit contract" still remain the same. The result should be:
abc Edit worksheet ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Saving a photo from photo library I have some part of application that save user data like name, address and photo. I have solve problem to take a photo from photo library.
Because that's only small database, I use NSUserDefaults to save data.
But I don't know how to save photo from photo library that I put in UIIma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: (PHP) specific array sort I hope anyone can help me to fix a little problem. After getting a clear mind I still stuck and can't find a solution. I guess it is something obviously simple.
I stuck to an array structure and need to sort them. Here is a small example of the array:
$brand["BRAND_1"]["name"] = 'Brand Name... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Build Error:Undefined symbols for architecture x86_64: I am completely new in programming with c++ using the Xcode IDE. What I do is I created a Hashtable myself, and clicked the build button, and I got compilation errors as such. Does anyone have ideas about what is going wrong?
This is the error:
Undefined sym... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I use CSS to vertically center the text in an anchor, within a LI? Variations on this question have been asked many times. Vertical centering with CSS is a challenge.
I have a particular scenario, dealing with a list displayed horizontally. The markup is like this:
<ul id='ul1' class='c'>
<li><a href... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Passing a generic definition of a collection as a type parameter - or how to use "List<>" as a type parameter I'll try to be as straight-forward as possible.
I want to be able to do something like this:
var mylookup = new ModifiableLookup<MyClass, int, List<> >();
var myhashlookup = new ModifiableLookup<MyClass, int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Array As Grid, How to Move Diagonally? I have an array of size n^2 representing a square grid of size nxn.
I want to get from any square (0 to (n^2)-1) to the top-right most square you can get to moving diagonally in a straight line.
I already figured out that to get to the top-left most square is to take the curren... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: NSCountedSet - get count of items in set I have a array of info that has multiple Names that I want to match and count then move to a table view such as you would see on a messages app.
I have reached to this point. Where I can log and see what I want but simply can not find any solution pulling that info from the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is the right way to initialize an object that invoke an instance method of its mother? The question is as of the title. Say I have a simple example below:
class Vehicle
attr_accessor :wheels
end
class Car < Vehicle
def initialize
self.wheels = 4
end
end
class Truck < Vehicle
def initialize
@wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: branching team project I have the following at Source Control Explorer
TFSServer/teamCollection
+ teamproject
Is is possible to branch /teamproject to /teamproject-dev? The output should be
TFSServer/teamCollection/
+ teamproject-dev
I tried and it gave me error:
TF10175: The team project folder $/teamproject-dev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Spring properties file -Conditional Properties true/false I have a properties file with a boolean key say trueFlag.
dev.properties
trueflag=true
I want it to be used in my application context in two places
<property name="autoStartup" value="${trueflag}"></property>
and another
Note: the negation
<property ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ClassNotFoundException: Main Class in JAR file via ANT build Basically I'm attempting to run a JAR file which I've created using an ANT buildfile. The program needs to use an external jar in order to compile correctly. I've included it in the class-path of the JAR manifest. Upon running it spits out a stack trace le... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to select form elements under a using jquery? There are form elements under a div, I do not know the type. It might be checkboxes or radios or select. how to select form elements without specifying the element type under a using jquery?
A: Use the :input selector:
$(':input')
Which is basically short hand fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ruby mixin: extend or include? I have following code:
module CarHelper
def call_helpline
puts "Calling helpline..."
end
end
class Car
extend CarHelper
end
class Truck
class << self
include CarHelper
end
end
# Test code
Car.call_helpline
Truck.call_helpline
In fact both 2 lines of test codes wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How get touchs size In android is possible get size and pressure of a touch. In iOS I know that isn't possible get pressure. But, at least the touch size, some how?
A: I search a little more and I conclude:
There is no support for that according to this another Q&A
I little more and even private API couldn't help. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: read, highlight, save PDF programmatically I'd like to write a small script (which will run on a headless Linux server) that reads a PDF, highlights text that matches anything in an array of strings that I pass, then saves the modified PDF. I imagine I'll end up using something like the python bindings to poppler b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: HTML and CSS works fine in Chrome and Firefox but not IE7 I am developing a site at the moment for Google Sites, and am looking to embed the HTML below as a gadget to display my own custom menu bar.
I'm not a HTML or CSS expert so I took this sample code from a tutorial and attempted to use it myself.
The problem is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create base dn on Open ds Im using OPEN ds 2.2 as my LDAP server currently i want a create a base dn like dc=esamurdhiint,dc=lk
i create following ldif file and run and i, having error on that
my ldif file
dn: dc=esamurdhiint,dc=lk
objectClass: domain
objectClass: top
dc: esamurdhiint
my command id
ldapm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Using schemaextender to extend the ATEvent class I have used schemaextender to extend ATEvents so that they include a checkbox for toggling the time and iCal display for events.
It works fine on an existing site but when I try and create a new site i get an error "ValueError: nextPreviousEnabled.default_method is ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I migrate facebook comments from my old site A to site B? I have an iFrame Facebook Tab application that uses the fb:comments module. I am migrating to a new domain name.
How do I get my old comments on where the new domain will be?
So I want to move my comments from domainA.com to domainB.com
A: There is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting number as Int from a key press I'm trying to get an integer from the number keys on the keyboard. For example, I want to press 5 and get the int 5.
I am using the KeyDown event and have the following:
private void listBox1_KeyDown(object sender, KeyEventArgs e)
{
int rating = (int)e.Key... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Really Slow Performance Reading from Access 2007 (accdb) file from C# I am writing an application on Visual Studio 2008 with C#. The application reads data from an access file and then generates a txt file. I was doing some tests with a mdb file with 1.000.000 records and almost 1GB size.
The code is like this and t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Java HTTP request message In Java, how can I construct an HTTP request message to get a resource specified by a request URI that a user inputs after I've opened up a socket to connect with a server?
If anyone could just point me to an article with the general tools I would need, that would be cool too. Thank you!
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL insert once for each subquery result I want to execute a MYSQL query:
INSERT INTO taskattempts (taskID) VALUES (_);
which I want to execute multiple times, once for each result of the query:
SELECT id FROM tasks WHERE stageID = 1;
using the resultant id from the second query as the value of taskID in the fir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Warning: mysqli_error() expects exactly 1 parameter, 0 given error I get the following error
Warning: mysqli_error() expects exactly 1 parameter, 0 given
The problem is with this line of the code:
$query = mysqli_query($myConnection, $sqlCommand) or die (mysqli_error());
The whole code is
session_start();
re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How to have colors in the output of SQL result In SQL Developer can I get the result of a SQL query in color?
For example:
Select * from Employee;
If EmployeeID = 100 I want the name column to be displayed in green color. If EmployeeID = 200 I want the name column to be displayed in red color.
All other fields (g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I uninstall xdebug on Debian? I have to use the Zend Optimizer. After 3 days I figured it doesn't get along with xdebug and now I want to uninstall it. How do I do that on Debian?
My server:
PHP 5.2.6-1+lenny9 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug 4
2010 03:25:57)
A: I removed the binary (searc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Cookie syntax for django 1.0 I m using the fllowing code to set cookie in django 1.1 But the cookie get deleted every time the page refresh or during post in Ie 7 , Ie 8 and safari.For Firefox and chrome It works fine.
expiry_date=datetime.date.today()+datetime.timedelta(days=1)
resp.set_cookie('appl_keyVal', 40, ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Cocos2d-iPhone or Sparrow for first time 2D iOS game development? I've just gotten basic UIKit down. I've made several personal apps and such, but now I'm ready to move on to a game with some other developers. Both of these frameworks look powerful and have tons of bells and whistles.
Does anyone have a preference? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I build an instance of a Subclass knowing some property value of that subclass I have a hierarchy of so named Attribute classes, that represents single properties of my Domain Model. Each of this Attribute classes has a unique String id property.
I Also have an AttributeFactory that has a method to retrieve inst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Regex negative lookbehind in Ruby doesn't seem to work Making an argument parser. I want to split a string into an array where the delimiter is ", " except when preceded by "|". That means string
"foo, ba|, r, arg"
should result in
`["foo", "ba|, r", "arg"]`
I'm trying to use this regex: (?<!\|), which works in ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to clear django modules caching? When running via local Apache+wsgi got something like:
ImportError at /link/to/new-app
No module named views
/usr/lib/python2.6/dist-packages/django/utils/importlib.py in import_module
35. __import__(name)
/usr/lib/python2.6/dist-packages/site/apps/new-app/urls.py in <module>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cmp and je not working when comparing equal values [Homework disclaimer]
I'm working on the binary bomb lab. Basically, I have to use the objdump of a "bomb" executable to find the right input strings to disarm the "bomb." Currently I've solved 5/7 phases and am working on the 6th phase which contains this assembly:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: inputing hex and reading hex with C++ I'm trying to read and write hex but I'm having trouble inputting hex and reading hex back as hex not ascii. Whats getting me is printing the addresses, and values correctly I'm not quite sure I'm doing it right. any hints as to what I'm doing wrong? ok its working so far now ju... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ProgressBar not updating correctly after return to Activity MyBookshelf extends Activity and implements an Interface called by asynchronous download and unzip processes.
The asynchronous download process periodically calls onBookDownloadPercent(float) from the Interface. My Activity definition includes:
public clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to do the same feature/function in jquery from mootools //new tmp element that contains the new div
var tmpDiv = new Element('div',{html:'<div id="video"><iframe title="YouTube video player" width="370" height="208" src="'+video+'" frameborder="0" allowfullscreen></iframe></div>'});
//new div (first child of my ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the best approach to dynamically display a single product from the database? I am trying to practice programming and I have decide to place some effect on the login page. Since I am working on an online store I would want to display some random products somewhere in the login page that changes after every few... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Passing a List to Python From Command Line I would like to make my python script run from the command line when supplies with some arguments. However, one of the arguments should be a list of options specific to one segment of the script. Would string parsing be the only way to do this by actually constructing the l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Why some ARM instructions do not use barrel shifter? I am curious about why there are some ARM instuctions (like MUL and QADD) does not use barrel shifter. I would like to know the rational behind the limit. Thanks!
A: It's not that the barrel shifter isn't used; it's that you aren't able to specify how it's used... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Rakismet duplicate posts not being flagged as spam? I'm currently using the Rakismet gem for anti spam in my app and it's doing a great job filtering out certain buzz words like "viagra" and "porn", but it's not flagging duplicate comments no matter how many times I submit them.
My Post model has the line "include R... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unable to parse JSON with jQuery, returning [object Object] I suspect my problem is due to the structure of my JSON string. It seem to have a JSON object within a JSON object.
This is the format of my JSON:
[
{"subject":{"title":"java","id":"1","desc":"Basic java programming"},
{"subject":{"title":"objective c","i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Replace iteration's fetch to BULK COLLECT There is an object type and table consists of that objects.
So here we go:
create or replace type lpu.someobj_o as object
(
name VARCHAR2(75),
enroll_date DATE,
id NUMBER(12)
)
CREATE OR REPLACE TYPE lpu."SOMEOBJ_T" IS TABLE OF someobj_o;
There's also PL/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Constant item width in horizontal ItemControl I need a horizontally-organized ItemsControl that constrains all of its items to the same width. The items I'm using are UserControls and builds an auto-sized TextBlock showing an int value (contained in a dependency property) with a Border around it. The trouble is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to assure that websocket was opened from my webpage So, the question is:
Is there a way to be sure that the client who is trying to connect to my websocket server, is doing this from the webpage that I provide, and not from any other page, or script?
A: A malicious user/program can connect to this websocket and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JQUERY, Dynamically text box id assign to focusout function $(document).ready(function(){
var CurrentTextBoxID = "";
var shifton = false;
var IsCapsLockOn = false;
// toggles the keyboard to show or hide when link is clicked
$(":text").focus(function(e) {
CurrentTextBoxID = this.id;
var top... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "???" symbols when saving unicode files in C# I'm having some issues, when saving configuration - unicode text is saved as "???". But problem appears only on Windows 2003 with .Net Framework v 2 . When I test my code on WinXP with .Net 4 it works fine, despite it's targeted on .Net Framework v2 in settings.
I tried ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Firebird SQL: StoredProc return null instead of assigned values I have a Firebird StoredProc run from a trigger before Insert and before update and also return 3 values. Those 3 values update 3 fields directly in the same table
I put a check at the SP beginning if the check is true I want to skip that SP so I used "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Distinct DateTime field without Time in HQL I'm trying to select Distinct DateTime field in HQL.
select distinct CreatedDate from ClaimFile order by CreatedDate DESC
Any Idea how can I get distinct dates without time. right now it can't be distinct with time.
Thanks
A: I can only think of a couple of options:
*
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Format CURRENT_TIMESTAMP to AM & PM Today im working with PHP and MySQL and i store Dates in an Timestamp Field into MySQL, But by default is in 24/h Format, If anyone Know how can i Determine this hour to AM or PM Example:
14:05 -> 2:05PM
02:05 -> 2:05AM
Many Thanks for your time.
A: You can use DATE_FORMAT()
SEL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can't stop a service started with alarmManager I'm having problems to cancel an alarm and a service started with it.
I set the alarm in a activity:
public class AlarmStarter extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to clone an instance of oneself , like Chromium does? When i launch chromium again when it's already started , i can see the following:
%> chromium-browser
Created new window in existing browser session.
Is there any general way in C++ to do a similar thing ? Or is it like just "new" function in C++ , simply... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android (get current speed) after getting my distance (using GPS, lat and long), is there any method that I can also get my current speed (using distance and time) , accelerometer are not advised. Thank you :)
A: Given a start position and an end position and time dt which is the time it took to move between the tw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Clustered vs Non-Clustered My lower level knowledge of SQL (Server 2008) is limited, and is now being challanged by our DBAs. Let me explain (I have mentioned obvious statements in the hope that I am right, but if you see something wrong, please tell me) the scenario:
We have a table which holds 'Court Orders' for p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "100"
} |
Q: Eclipse + Java - SplashWindow I would like develop a basic application with splashWindow.
this should stay for 5 seconds, when user press any key, the time is need reset, and redefine the time() for 5 seconds again.
If user dont press any key, the splashWindow close.
public class SplashWindow extends JWindow impleme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python: Optimal algorithm to avoid downloading unchanged pages while crawling I am writing a crawler which regularly inspects a list of news websites for new articles.
I have read about different approaches for avoiding unnecessary pages downloads, basically identified 5 header elements that could be useful to deter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create a WCF REST/JSON service in IIS without svc file? This page (MSDN) says in the first step:
Alternatively, you can also use configuration to add an AJAX endpoint.
I'm unable to access my service endpoint following their example exactly. (VS2010, .NET 4.0, Win7) I always come back with 404-not found whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Query Needed ( based on the column value, row value should be loaded ) My Sql query is,
Select CustomerName,ProjectID,ProjectDesc from dbo.projects
The Output is:
CustomerName ProjectID ProjectDesc
A3 Consulting FZ, LLC. 277 A3
A3 Consulting FZ, LLC. 278 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Retain release count, confirmation needed Just because i pass a reference to a newly alloc init(ed) object to another class does not mean that class retained it in a constructor, right?
As i understand it, in order for a class to retain something, it actually needs to send retain message to an object. Is this correc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to write query in ormlite when the condition generated using for loop I'm writing a query in ormlite as below
Where<Advertisement, Integer> where = queryBuilder.where();
where.and(
where.between("latitude", pLatitude - APPOXIMATION_FACTOR,
pLatitude + APPOXIMATION_FACTOR),
where.between("longitud... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP and Javascript error I am trying to do something like this.
<script type="text/javascript">
$(window).load(function(){
<?php
if(isset($_SESSION['tagname']))
{
?>
var t = <?php echo $_SESSION['tagname'] ?>;
$('.tag span').html(t);
<?php
}
else
{
?>
$('.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: perl parsing specific value from xml file based on condition Can someone show me how to parse out specific information from an xml file? Am I suppose to use a regex?
I am using XML::Simple to view my test.xml file.
For example, I want to search for the string test-out-00000, if it exists then give me/print the size... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change the language of datepicker I am trying to build a function that changes the language of date picker
$(function(){
txtDate = $("#txtDate");
var minDate = new Date(2011, 1 - 1, 15);
var maxDate = new Date(2011, 6 - 1, 15);
txtDate.date
txtDate.dateEntry({
defaultDate: maxDate,
minDate: m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: asp.net cshtml can't run asp.net code I'm following the tutorial at asp.net mvc3 at
http://www.asp.net/mvc/tutorials/getting-started-with-mvc3-part3-cs
@{
ViewBag.Title = "Welcome";
}
<h2>Welcome</h2>
<ul>
@for (int i=0; i < ViewBag.NumTimes; i++) {
<li>@ViewBag.Message</li>
}
</ul>
the hellow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java Marshalling and UnMarshalling Employee.xsd
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jxb="http://java.sun.com/xml/ns/jaxb" jxb:version="1.0" elementFormDefault="qualified">
<xsd:include schemaLocation="Family.xsd"/>
<xsd:element na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Accessing a standalone PHP file How would you reference an actual file in a Drupal project?
I have a flash app that needs to talk to a php script, but I can't just say "http://{domain}/{filepath}/{file}" or even "http://{domain}/{file}" assuming there was some assumed pathing structure.
To be more specific, the file... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Do JavaScript Static Variables stay present once control leaves the script? I have a question about static variables in JavaScript. Do they only last during the scope of the script? What I mean is what if control leaves the script and goes back to the html code, are the static variables still there?
A: I assume tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.net MVC 3 Unobtrusive Client Validations in JQuery Modal Pop up Issue When I tried to implement ASP.net MVC 3 Unobtrusive Client Validations in the application, the rendered html didn't generate the span tags which are generated by JQuery.
I have only got following rendering html and I used JQuery modal popup as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Group entries by date and time from timestamps I'm building a booking system and have opted to use timestamps to store the bookings in my mysql database. The user can book 2 or 3 slots consequtively however, for example:
9:00 - 9:30
9:30 - 10:00
10:00 - 10:30
or they can just book single slots.
I want to show the b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dojo multiple popup windows? Can some one tell me how to open multiple popup windows without freezing the parent window. Actually what I want to do is this: I have implemented a Dojo grid. If some one clicks on a cell I want to open a popup window with information in the cell. I have already done that. But the probl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Assigning a variable to a wrapper set in jQuery doesn't make the code work I am trying to cache or to assign my selector $('#img-grp-wrap .img-wrap img:first-child') to a variable because I used it a lot of times in the code and I kept on repeating myself. But for some reason, when I assigned my selection to a varia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ColdFusion unit test frameworks As a related sub-question - are there any CF unit test frameworks that support or make it easier to use mocks/stubs?
The 2 that I spotted in a quick google that look the most promising are MXUnit and CFUnit. Are there others, and which one(s) have the widest adoption and active devel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Submitting HTML Form with AJAX I've got a form:
<form action="#" method="post" id="hubForm">
<label class="labelText">Expiration Date:</label>
<input class="datBox" type="text" id="cal" name="date">
<div class="clr"></div>
<div class="clr"></div>
<label class="labelText">Hub Name</label>
<inp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android: NoClassDefFoundError upon Android JUnit Test JUnit trace:
java.lang.NoClassDefFoundError: com.sample.Functions$Floor
at com.sample.test.FunctionsTest.testValidateLocation(FunctionsTest.java:289)
at java.lang.reflect.Method.invokeNative(Native Method)
at android.test.AndroidTestRunner.runTest(AndroidTestRunn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need a query to put certain mySQL database columns into a row I need to join this mySQL table:
TABLE1
id pagetitle
1 remodeling
2 handywork
3 aesthetics
With this one:
TABLE2
id contentid tmplvarid value
1 1 1 Jaime
2 1 2 img/remodeling.jpg
3 2 1 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C++ std::list of pointer to a struct I believe it's a very easy question but I'm quite confused.
What I am doing wrong ?:
std::list<curvesdata *> curvelist;
curvesdata * curve = new curvesdata;
curvelist.pop_back(curve);
---> no matching function for call to 'std::list<curvesdata*>::pop_back(curvesd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: splitting a string based on multiple char delimiters I have a string "4,6,8\n9,4"
I want to split this based on ,and \n
Output array should be
4
6
8
9
4
Edit :
Now i am reading string from console , when i enter a string as above in console , in the code behind i get as "4,6,8\\n9,4" . Now that i want to split usi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "87"
} |
Q: VB.net list(of T) not returning indexed object I'm working on a small game that is based on a map of grid squares. I have a class (clsGrid) that stores a few properties for each grid square. The grid square objects are organized into a list(of clsGrid).
A loop and stream reader are successfully reading properties ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trying to 'merge' partial data in 2 or more rows with MySql I have a database with three tables, one with titles, one with authors and a join table that combines the two. Most of the titles have one author, but some have more than one. I am able to return the rows I want, but the titles with more than one author ret... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Xcode Array to TableView I was making a simple application that has a button. When clicked, it moves to another ViewController. As I load the new ViewController with a table view in it, I access the server that outputs a string that I place into an array. In the did load function, the Array was successfully read. BU... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Pointer Memory Allocation Issue Trying to allocate memory for the bobby array but it's not working. Why?
I expected the bobby pointer to be allocated for 5 spaces but when I run and look in local it only has one.
#include "queue.h"
#include <iostream>
using namespace std;
int main()
{
// Create the queue
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Including external C library with Xcode I have a built C static library (the Antlr 3 C library). It is installed properly and works (i.e., I can run gcc -o parser lexer.c parser.c -lantlr3c just fine).
In Xcode, however, I get an error. I've added -lantlr3c in the "other linker flags" build setting.
ld: library no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What Delphi components ship with unit tests? Given the popularity of unit testing, and the inclusion of DUnit with Delphi, has this been embraced by any component vendors who have released their source along with a suite of unit tests?
I'm looking for examples to share with other developers.
A: DWScript ships with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to Add Listeners to RadioButtons in EXTJS4 I'm very new to ExtJs and I wanted to display an alert box on clicking one of the radio buttons, but it does not seem to work. Could anyone guide me through this step? The listener does not seem to work.
{
xtype: 'radiogroup',
fieldLabel: 'Does Nodes have DHCP I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: mongodb mongoose unit of maxDistance In my application, I am trying to use,
RentModel.find({prop_location : { $near : [msg.lat, msg.lng],
$maxDistance : 500}}, function(err, docs){}
I have only one value in the database with latitude, longitude of san
francisco.
Now,
*
*
*
*When there is no maxDistance => I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: execute mail function automatically on specified time, php-jquery I've a page with php script to list viewers info like browser,time they were viewing etc and save those details into a info.txt file which is stored in the server. I'd prefer to collect all the details from info.txt and mail me every day at specified ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Prevent File Now Available Popup Excel I have a problem here that I've been working on for hours.
I'm importing an Excel file, and I use this code to do it:
Dim objExcel As Excel.Application
Dim objWorkBook As Excel.Workbook
Dim totalWorkSheets As Excel.Worksheet
Dim ExcelSheetName As Stri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: springSecurityService is null in base controller This is a rather weird problem and I been at it for a while so I am going nuts.
I have a controller extending another controller so I can have multiple controllers inheriting a method and they go something like this:
class EventController extends EventAwareController ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Ensuring that memory cache is properly invalidated So I have a piece of code that looks like the following:
uint8_t *buffer = <16 MB memory region>
uint32_t count = 1024;
uint32_t position = 0;
uint8_t *get_data() {
uint8_t *region = buffer + position * 16;
position += 1;
position %= count;
do {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a shorter code to join the keys and values for a dictionary? Is there a shorter or better snippet that accomplishes the following:
>>> h = { 'apple' : 'ipad' , 'amazon': 'kindle' }
>>> [' '.join(item) for item in zip( h.keys(), h.values())]
[ 'apple ipad', 'amazon kindle' ]
A: >>> [' '.join(item) for item... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to virtualize config file I have a PHP script that is encrypted with Ion Cube. Since I don't want to violate the license, I can't modify anything in the script.
The script makes calls to an XML based config file.
I want to create a database to store the config data and then feed it to the encrypted script based ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to pass sql transaction to methods in different classes? I'm working with ASP.NET(VB.NET), SQL 2008 Project. I need to write data to more than one table with methods in different classes. I have to ensure all the data is written using one transaction so I'm using the older method (not a TransactionScope) So do i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Query for time attendance : min and max hours group by day Somebody can help me.
I have eventime field type datetime in mysql
ex. eventime record:
2011-09-01 10:29:37
2011-09-01 10:50:04
2011-09-01 17:10:45
2011-09-02 08:30:01
2011-09-02 .....
2011-09-02 .....
2011-09-03 .....
2011-09-03 .....
2011-09-03 .....
........ | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to load photos from photo gallery and store it into application project? I'm working on an application that is almost the same as the sample codes i found here. But the method i want to do is different from the sample codes.
Link: PhotoLocations
The first screen will have an ImageView and 2 buttons (Choose Photo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Preprocessor macro value to Objective-C string literal I have a preprocessor macro defined in build settings
FOO=BAR
That value I want to massage into an Objective-C string literal that can be passed to a method. The following #define does not work, but it should demonstrate what I am trying to achieve:
#define F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: running FxCop in NAnt on VS 2010 project I'm trying to set up a CI tool using NAnt.
I have managed to have NAnt build the project
I've created the .FxCop file for the project, but when I inserted the FxCop commands in the Nant Build configuration, I received
[exec] Loading C:\projects\BuildingSolution\BuildingSolut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is the tableview being scrolled after adding into a uialertview and seting pagingEnabled as NO? I add a UITableview into a UIAlertview, and set the pagingEnabled as NO, but when I dragged the table, it is still scrolling/paging left or right! Why? I found that in iPhone 3GS, it can not to be scrolled/paged, but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7605865",
"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.