text stringlengths 8 267k | meta dict |
|---|---|
Q: Workflow for restarting a HTTP server from Clojure REPL A Clojure-based project of mine uses the netty (required by aleph) web server. I start the server, along with other components, in a web.clj file like this:
(ns myproject.web)
(def server (atom nil))
(defn initialize []
(if @server
(println "Warning: al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Are there mesh building helper classes in WPF or .NET 4.0? The mechanisms for building a mesh in WPF are quite low-level. For example you have to supply the vertexes and the indexes. Are there helpers in the WPF or anywhere in the .NET 4.0 framework I can use? Or do I have to resort to third party libraries?
A: He... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PDO Misunderstanding I am writing my PHP blog engine. I am using PDO for it. And now, when I am writing class Member - I have an error.
Fatal error: Call to a member function fetch() on a non-object in
/home/tucnak/Server/scripts/php/classes/Member.php on line 42
And source code of my Class:
public function auth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Having issues with execvp() So here is the bit of my code that's giving me problems:
void childProcessHandler(string command){
int argCounter = 0;
for(int i=0; i!=command.size(); i++)
argCounter+=( command.at(i) == ' ');
char * temp, *token;
char *childArgs[argCounter];
argCounter = 1;
temp = new char [comm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JMenuItems don't show in JDialog This is probably a dumb question, but I just can't see it! I have Swing app that uses a popup menu. It works fine, but I want to make the menu persistent (i.e. until I close it). I have basically changed the JPopupMenu to JDialog, and I am getting the JDialog panel, but the menu ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: a file is copied to a specific folder and renamed to x.txt how do i open x.txt and paste "X:" EDIT: regulus6633 has made a script that's a lot better than my outline below, it works perfectly IF you're template file isn't completely empty (I think this caused an error originally). Thanks!
This script is supposed to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error for the header file of goblin library in c++ I am trying to use Goblin library which is used for special network algorithms. This library provides some header files and objects in C/C++. So, you can easily add a header file to your program and use some special classes and functions.
Unfortunately, when I add t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is this the correct way to set an id for an element that doesn't have an id yet in jQuery? $("a[href*='http://www.google.com']").attr('id','newId');
Can only reference it by href.
A: Yes, that's the correct way to add an id attribute to an element that doesn't already have one.
However you should ensure that there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CCSprite runAction and Remove I have a ccLayer where I'm trying to make it rain.
On init i schedule the following:
[self schedule:@selector(throwRain) interval:0.1f];
And here is the rest of the code:
-(void) throwRain {
CCSprite *gota;
for (int i = 1; i <= 6; i++){
gota = [CCSprite spriteWi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there anyway to limit bundle version while updating? When I use update command in OSGi, the framework (Equinox) uses the file in update location in order to update the bundle. No matter if the bundle in the location has a higher version or not. for example the framework updated version 1.2.0 with 1.0.0.
is there ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Update with column name by parameter How can I pass a columns name by parameter,
follow an example
DataTable dt = new DataTable();
// Here I fill my datatable
for (int i = 0; i < dt.Rows.Count; i++)
{
for (int j = 0; j < dt.Columns.Count; j++)
{
string columnsname = dt.Rows[i][dt.columns[j].toSt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is FluorineFX mature enough to use for a large web application? I am in the planning stages of developing a large web application written in Flex and was wondering if anyone has actually used FluorineFX in a large production environment?
The documentation and online community makes it seem like it could be abandone... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Split a block of time if appointments occur within There are two types of time_block - free, appointment - each time_block has a start_time and end_time.
Say I have five appointment time_blocks and two free time_blocks.
I need to create actual free time_blocks that fill with free time between the appointments, like ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Clearing the State of Fields in InstallOptions pages I'm working on an NSIS installer. One of the requirements is to allow the user to input some information multiple times for multiple different entries (essentially, it allows them to enter server information for as many servers as they'd like). I'm currently rec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Banish unmatched top-level trees when performing tag search in Emacs Org Mode For the past year and a half, I've maintained a monolithic buffer in Org Mode for my engineering notes with my current employer. Despite containing mostly pointers to other documents, this file has become quite large by human standards (48... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: TortoiseSVN backup and restore I need to backup repository in TortoiseSVN and move it to a new PC. What are the steps to do create the back up?
I can't find backup option in the menu, the only thing I found was the command-line way:
svnadmin dump C:\SVN\MyProject > C:\tmp\MyProject.bak
I am assuming that C:\SVN\MyP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a way to #define a C macro that is only defined while in an Eclipse editor window? I'm using Eclipse Galileo with CDT for C development targeting embedded devices.
Like so many other compilers targeted at µcontrollers, the IAR compiler uses some non-standard variable types that Eclipse/CDT doesn't recognize... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How would I make a program to monitor another system's vitals with a remote connection? I'm looking to write a custom program in VB.NET / C++ / C# that would allow me to monitor a system's vitals over a Remote Desktop Connection.
I'm only looking for tips on how to implement a connection like this in code (eg. is it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Vtiger: I can't add a To Do event If I got to calendar, click on To Do, then try to add an event, the form pops up, I fill it out, press save, but no Event gets added.
In the SQL error log's I see an error like this:
2011-09-29 14:57:07 EDT ERROR: null value in column "visibility" violates not-null constraint
2011... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ std::string and string I don't suppose anyone tell me whats the difference between using the std::string and just the string data type in C++??
In what situation should the std::string should be used over the standard string??
Thanks.
A: They're both the same type. std::string specifies the namespace, while str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regex? Search Engine? I've read through some documentation on the re module that comes with built-in python, but I just can't seem to get a grasp on it. In fact, I'm not exactly sure that is what I'm looking for, so let me explain:
I have a huge dictionary. What I want is to be able to type in a search criteria, let... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sphinx indexer delta --rotate I have followed the sphinx manual here: http://sphinxsearch.com/docs/current.html#delta-updates on how to perform delta updates to your index.
my searchd is running of the correct config file.
the indexer was previously ran to create the main index.
when I run this command:
indexer -c ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Structural type in method type parameterization in Scala? Consider the following Scala code (e.g., in REPL)
object A{def foo:Unit = {}}
object B{def foo:Unit = {}}
def bar[T <: Any {def foo: Unit}](param: T*):Unit = param.foreach(x => x.foo)
bar(A, A) // works fine
bar(B, B) // works fine
bar(A, B) // gives err... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Windows EXE can run as service or application. How can I determine if it is running as a service or not? I am looking for a Win32 API call to return the runtime context of my process. I want to be able to programmatically test if I am running as a service or am I running as standard application process.
Several idea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I reorder a vector during a Thrust transformation? How could i transform this simple code to thrust code?
for (i=0;i<cA-rA;i++)
sn[i]=c[n_index[i]]-sn[i];
More Info:
cA and rA are const integers so we can concider as an 'n'= cA-rA
sn : array of float(n)
n_index : array of int(n)
c : array of float(cA)
My... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Notepad++ incrementally replace Lets say I want to have a 10 rows of data but I want a value to increment for each row or piece of data. How do I increment that value?
For example....If I have these rows, is there a regex way of replacing the id values to increment?
<row id="1" />
<row id="1" />
<row id="1" />
<row ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "100"
} |
Q: How do I set XAML Elements from C# code? So i have wpf application and my xaml looks like this:
<Window x:Class="MyTest"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:my="clr-namespace:MyTest.Layouts"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GetFileSizeEx fails for file mapping Im having trouble creating a named shared memory and inspecting its size. The function GetFileSizeEx fails when I call it in a function like this. Any ideas on how to debug this?
void test_getsize(const char* lpName, int size){
HANDLE handle = CreateFileMapping(
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS JS(maybe) Div scroll bars show and hide I have an autocomplete search that I want to be 40% of the screen then scroll the rest.
I have that part working fine, my problem is the scroll bar always shows, regardless if there is overflow. I want the vertical scroll to be hidden if there are only, say, 2 results retu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Galaxy Tab 10.1 usable screen resolution (- the menu bar) I know that the screen resolution is 1280×800px but Honeycomb's bottum menu bar makes this a tad smaller, but how much smaller?
Has google published the height of the menubar? (the one that can't be taken away as it has the home/back etc buttons)
I want to kn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How come the only value ever entered in the SQL Server field is 0? I have two tables csvtemp and leads in both tables i have a is_download field and i am moving data from one table to another
First i insert into the csvtemp table with this
CREATE TABLE CSVTemp
(id INT,
firstname VARCHAR(255),
lastname VARCHAR(255),
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Double loop with random sampling I wanted to generate score i (0:36) with frequency j. I wanted j loop to be random numbers. What I did was:
j<-1:70
for(i in 0:36) {
for (j in 1:sample(j)) {
print(i,j)
}
}
But I got error. Should have I put sample(j,1, replacement=TRUE) instead of just sample(j)?
thank you
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Fire comboBox SelectedIndexChanged only from user click I wrote a method to handle a comboBox's SelectedIndexChanged event.
In the constructor I populated the comboBox, and this activated my event-handling method. Which I don't want since nobody clicked on the comboBox.
Is there an easy way to get the comboBox not t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: View Hierarchy, UITabBarController, adding more views in certain tabs So I'm not sure what is the best way to do something, or the preferred way. Here's essentially what we are trying to do:
-UITabBarController as the root
-first tab is a FruitViewController
-FruitViewController can push an AppleViewController (not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery tmpl plugin The most annoying thing about tmpl is that you cant replace ${n} inside <> such as
<a href="details/?id=${id}">${name}</a>
the ${id} wouldnt get replaced..
Any ideas how to do that without having to use the <script> tags, cause that isnt a good way to do it.
or even how to check a checkbox..
My... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Allowing users to upload ANYTHING I'm building a file sharing site, and I'm thinking, I want my users to be able to upload and share anything.
Sounds dangerous, I know. But, is there a method to allow this to be possible? For example, forcing the download when the user requests the link with a mime type? Rather than... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Report 2005, How to sum within a specific time
Possible Duplicate:
How to average/sum data in a day in SQL Server 2005
I have a data base "Shift", where it is recorded every minute. I have to sum the data by shift.
And Night Shift starts from 7:15PM of the previous day to 7:15 AM of that day. I need to write ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Converting Large Dollar Values in C# I have an application that manages project costs from as little as a million to billions of dollars. Initially, users enter an estimate of the project: called an 'appropriation amount'.
The Issue Is:
The original value is not converting as expected. Some examples include:
The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing data in JavaScript Having a problem understanding what I will call a variable scope question for lack of a better description.
Say I have a page with two functions, one() and two(). The first function has a locally-scoped variable x with an object in it. This function builds an element, below, in the DOM a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Update column if another column contains a string I have a table that contains three columns.
column1 column2 column3
mytestdata test
myotherdata test
I want to insert 'somestring' into column3 if column1 contains the value in column2
The result would look like:
column1 column2 colum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Scaling entire screen in XNA Using XNA, I'm trying to make an adventure game engine that lets you make games that look like they fell out of the early 90s, like Day of the Tentacle and Sam & Max Hit the Road. Thus, I want the game to actually run at 320x240 (I know, it should probably be 320x200, but shh), but it sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Flushing Perl STDIN buffer Is there any way to clear the STDIN buffer in Perl? A part of my program has lengthy output (enough time for someone to enter a few characters) and after that output I ask for input, but if characters were entered during the output, they are "tacked on" to whatever is entered at the input ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Can an array or function lvalue be converted to an rvalue? According to C++ Standard 2003:
An lvalue (3.10) of a non-function, non-array type T can be converted to an rvalue.
What does it mean that array and function cannot be converted to rvalue?
A: Both function and array types are covered by later clauses (4.2,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to create a program that solves a Triangular Peg solitare - C++ / Java programming? Honestly, I only knew of such a game recently and I wonder how one can create a solving algorithm using the recursive search method?
There are 15 holes in total in the triangular board. Making that 14 pegs with a total of 13 move... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: building c++ config file parser using lex and yacc I am trying to build config file parser (c++ application)from scratch using tools like lex and yacc. The parser will be able to parse files like
# Sub group example
petName = Tommy
Owner = {
pet = "%petName%"
}
Is there any step by step guide/link to articles on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Passing HTML Form to JSP page via PHP/Curl... pass not happening I have an HTML form, being submitted to a PHP page. The PHP page needs to validate a captcha and then pass the form values to a JSP page. I have NO control over the JSP page. Captcha is working beautifully. Something is getting lost in my PHP page,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to list local commits difference in git I have a remote repository cloned locally, and over time, I have added local commits to that cloned repository.
Now, whenever I do git status, I see Your branch is ahead of 'origin/master' by xx commits message.
Q: How do I list only commits made locally, so that I can exa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: VS2008 Smart Device project to work with TFS 2010 I would like to check in my Visual Studio 2008 project (Smart Device Project) into TFS 2010.
Last time, I tried this grueling task, there were so many quirks and plugins and at the end of the day, it still failed to detect a change in the file....
so, at this day an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android ActioBar Style What styles are available for ActionBar? ( OR I will have to define it) The one I am using the defautlt one (a line below all the tabs) Can I change color of that line?
A: Are you using the native ActionBar in Android 3.0+ (Honeycomb, tablets only), or are you using a library like ActionBarS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Node.js - Nested array in Jade view Using Mongoose, I have a model Page with an embedded model of Feeds. When i go to /pages, the page.title shows up for each page, but feeds data does not. how should i modify this code to properly display the data from the feeds array? thanks a million
db.pages exmaple:
{ "title" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is relationship between App_Licenses.dll and licx? I am trying to understand how the licensing works in ASP.NET.
There is licx file, App_Licenses.dll file. And then there is a difference between how the licensing works for a WebSite and a WebApp project.
Any insight into these would be of great help.
Links, exp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Bash regex finding and replacing I don't know if this is possible, but can you dynamically alter a find/replace?
Basically I have something like this
<3 digit number> <data>
and what I want to do is if data matches the pattern
<word>:<4 digit number>
replace all instances (in the entire file) of <word>: with the l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Onload timeout preventing to use Curl I am trying to retrieve the content of a web page via cURL (let's say http://www.foo.com/bar.php).
When I load the website in the browser, an animation appears while the page is loading, and the page eventually shows up.
But with cURL, here is what is retrieved :
<html>
<he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: android pattern lock blocks internet access? My app transfers data to an internet server at regular intervals. It does this ok when locked with my phone which has the standard lock - no pin or pattern. I am testing with a friends phone which has a pattern lock and it seems that when locked with a pattern it does ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I reverse an array in place in assembly? I am supposed to reverse an array in place. I have been working on it for a while and this is what I have. Can anyone tell me what I'm doing wrong?
.data
array BYTE 10h, 20h, 30h, 40h
.code
main PROC
mov esi, 0
mov edi, 0
mov esi, OFFSET array
mov edi,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Git: Changing to a Remote Branch From a Clone I've got a git workflow question, and I don't fully understand all the terms to know what to google for.
The short version: Is it possible to "switch" your local git directory to a branch from a remote repository, when your local repositories started as clones of the rem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Temporarily Disabling Django Caching How do you disable Django caching on a per checkout basis?
Back before Django 1.3, I could disable caching for my local development checkout by specifying CACHE_BACKEND = None, in a settings_local.py imported by settings.py. The settings_local.py was ignored by SVN, so I could al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: How to retrieve resources from a dependency's bundle on iPhone? I've added the dependency project to my project. The dependency has a bundle with resources that I need. How to I get a path to those resources?
I tried the follow and get a NO. Any suggestions?
NSFileManager *fileManager = [[NSFileManager alloc] init... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WIF - Federated Provider MVC application or does it have to be Web Forms? I'm building my own FP STS application. The Visual Studio STS add in builds an asp.net web forms web site.
Is it possible to make the STS site an MVC application?
We would like to use a bunch of master pages we already have in the MVC wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java JLabel text in middle of vertical axis I have a JLabel that contains variable text in a certain location in my GUI. The problem is that the text gets displayed at the bottom of the space where the JLabel is located. This does not convey to the end user the relevant information about the other contents of the G... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I generate random numbers without rand() function? I want to generate (pseudo) random numbers between 0 and some integer. I don't mind if they aren't too random. I have access to the current time of the day but not the rand function. Can anyone think of a sufficiently robust way to generate these? Perhaps, di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Netbeans + Scala + play-framework : index.html isn't found I've just netbeansified a plain play project with scala. Netbeans has no problems with opening or editing the project but if I try to run it this happens:
@68095ke10 Application.index action not found
Action not found Action Application.index could not be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What aynchronous Ruby server to use? We're starting development of the new game project using Ruby. We decided to use one of the asynchronous Ruby servers, but we cannot decide which one to choose. Options are:
*
*Goliath
*Cramp + thin/rainbows
*rack-fiber_pool + rack + thin/rainbows
*eventmachine_httpserver
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Android NDK r6b Cross-compiling libfaac for android (linking libsupc++ problems) I'm trying to cross-compile libfaac to android for use with ffmpeg. I've gotten ffmpeg cross-compiled but libfaac is giving me major headaches.
This is the script I'm using to compile libfaac:
ANDROID_API=android-3
export ANDROID_NDK=${... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Enabling Disabling button asp .net - using javascript Currently in my application I am having a button and a text box. The user types something in the textbox and then presses the button. What I want is that:
The search button should should stay disabled when the page loads for the first time. I can achieve that by ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Load the all css & js for the page before downloading the "big list of images" I have a website that displays a list of around 20 auto-played slideshows(each containing 4-5 images) in a page. Now the problem is that this is taking up a long time to load the website(& ofcourse it would, since so many images) but I a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Approach for Automating localized Web application in Selenium using Java Bindings I am automating test cases for a web application using selenium 2.0 and Java. My application supports multiple languages. Some of the test cases require me to validate the text that appears in the UI like success/error messages etc.I a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adding and removing an element multiple times with jQuery I'm using jQuery to append a youtube video when a button is clicked.
onclick="$('#videogallery').append('<iframe width=725 height=398 src=http://www.youtube.com/embed/8Pi-dHJSkrk frameborder=0 allowfullscreen></iframe>');"
I'm then using jQuery again to rem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calculating the datetime for a future event timing I am creating a function that will set the date of an event, based on the current time.
I have an enumeration of events:
public enum EventTimings
{
Every12Hours, // 12pm and midnight
Weekly // sunday at midnight
}
public static DateTime CalculateEventTi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating a String[] from Guava's Splitter Is there a more efficient way to create a string array from Guava's Splitter than the following?
Lists.newArrayList(splitter.split()).toArray(new String[0]);
A: Probably not so much more efficient, but a lot clearer would be Iterables.toArray(Iterable, Class)
This pretty m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: SQL Server XML query using xquery with repeating relational data I have a questionnaire stored in a XML column that I want to store in a non-xml table format instead. The source table looks like this:
ID VERSION content
----------- ------- --------------------------------------------------------------------... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to Incorporate ISA & GS Segment Values into EDI XML generated by BizTalk 2009 I have a receive port setup in BizTalk 2009 to accept & disassemble X12837 EDI Files. There is also a send port that picks up disassembled EDI from the receive port and converts into EDI XML files. The send port is associated with a Pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does OpenFileDialog freeze WinForms app on a specific machine? I have a WinForms app deployed to multiple machines in the same office. Up until this Monday, all users in the office used the app without issue and used the OpenFileDialog to select files to import. One machine had lots of updates to other apps and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Return a pointer to an array Suppose you have a class with a private pointer to an array. How can you use a getter to access (or effectively copy the data) so you can access it in a different variable.
class MyClass
{
private:
double *x;
public:
myClass();
virtual ~MyClass();
double* ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How Override Yii Framework's config/console.php with Local Console Configuration File? Yii framework's config/main.php file can be overwritten by a local.php configuration file via an array_merge. This allows me to set different database connections and other parameters specific to production, QA, and development en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are the benefits of using JSF2 resources? Should I use JSF2 resources instead of plain html like <link href... or url(image.png)? What are the benefits? For me this is a bit annoying when web-designer creates layout with XHTML, CSS and all that stuff and I need to spend time to replace plain HTML paths and tags... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: aptana html highlighting not working well I just downloaded Aptana (v3.0.4) and I'm really liking it, much better for coding than Dreamweaver. The big problem I've found so far is that I can't get the HTML highlighting to work properly.
For example, I go to the Theme selector and choose one theme (in this case the D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7602995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: STL algorithm to delete all the objects in a container? Is there a STL utility/algorithm to do delete *the_object_iterator; on all the objects? So that I can clear() safely? The STL container is a set and the objects are pointers to C++ classes created with new.
Boost seems to be the best solution. My goal was to av... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: how to prevent sprockets from caching a .erb file? Sprockets gem caches .erb files even though the ruby code in those might evaluate differently on every compilation
For example: foo.js.erb
var foo = <%= Kernel.rand %>;
evaluates it once and caches forever. How do you prevent certain files like this from being cach... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: AdMob banner above Tabs in TabsActivity I am trying to set the AdMob banner ABOVE the Tabs in a TabsActivity:
public class FundsReportTabsActivity extends TabsActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AdView adView = new AdView(activi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can an emulator instance send msgs to another machine? Will an Android utility that sends/listens to messages via sockets be able to connect to another machine on the network from the emulator? IOW, what I want to do is send and receive messages from one XP machine to another.
A: You have network access, so you sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: EF-Code first complex type with a navigational property My Model:
public class Country
{
public int CountryId { get; set; }
public string Name { get; set; }
public virtual ICollection<User> Users { get; set; }
}
public class Location
{
public string Address { get; set; }
public virtual int Cou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Parse Apache log in PHP using preg_match I need to save data in a table (for reporting, stats etc...) so a user can search by time, user agent etc. I have a script that runs every day that reads the Apache Log and then insert it in the database.
Log format:
10.1.1.150 - - [29/September/2011:14:21:49 -0400] "GET /in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Updating Deployed SSIS Package I have a deployed SSIS package, with a schedule and everything. Now, I have made changes to this package. Do I have to re-deploy it, and setup the schedule for it again, or is there a way for an already deployed SSIS package to be updated with the latest build?
A: Yes, you need to red... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Loss of referenced dll in ClickOnce publish after signing main .exe I added a post-build step to use signtool on my executable using a pfx file. This happens successfully but something gets broken when I try to publish with ClickOnce. If I just build, my .exe.manifest will have an entry to install the reference. How... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Binding NSPopUpButton to NSArray I'm a little lost with bindings on NSPopUpButton. I have a custom class that holds an array of items that I'd like to display in a pop up. These items are subclasses of NSManagedObjects and they are contained in an NSArray. I don't want to use an NSArrayController since I've had lots... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Display Alert when element passes a certain left position? I have an element with a fixed position, it's animated with js and it's left position changes from 0 to 1000 randomly.
How can I display an alert each time the element crosses the 500px barrier?
I could only think of making an infinite loop that checks if le... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Determine which bit is set, for a date, using complex bit masks I have a bit shift mask that represents days in a week:
Sunday = 1
Monday = 2
Tuesday = 4
...
Saturday = 64
I'm using a bitmask because several (at least one) days may be set to 1.
The problem
Then I get a date. Any date. And based on the date.DayOfWee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to use LINQ (or TSQL) to group dataset but include top item and counts I'm struggling with how to approach this. I have your basic dataset returned by a TSQL (SQL2005) query where the data contains a list of master and detail items. Pretty vanilla, you have your master table joined to your detail table so you m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to download a file returned "indirectly"(??) from html form submission? (python, urllib, urllib2, etc.) EDIT: Problem solve. Ultimately it turned out to be a matter of "http:" instead of "https:" in the url (just a stupid mistake on my part). But it was the nice clean code example from cetver that helped me i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to change the position of the Map controller in MapView in android? How to change the position of the Map controller (zoon in/out) in MapView in android other than the default position in the bottom ?
A: zoomView = (LinearLayout) mapView.getZoomControls();
zoomView.setLayoutParams(new ViewGroup.LayoutParams
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RoR 3.1 - Loading associated objects when querying child with a where phrase I have the following structure
class List < ActiveRecord::Base
has_many :global_lists
end
class GlobalList < ActiveRecord::Base
set_table_name :globals_lists
belongs_to :list
end
and the following:
gl=GlobalList.find(1) #wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery chaining - Can I write cleaner code? i'm slowly getting my head around jQuery and learning more each day, however I wonder if I can create cleaner code. I have heard of 'chaining' but am not sure how I apply this.
Below is a piece of working jQuery i've written, but although it works, can I reduce it/make it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: change header content-type in php I am using this code
$query = mysql_query("SELECT Image, Col2, Col3 FROM table ");
$row = mysql_fetch_array($query);
$content = $row['Image'];
header('Content-type: image/jpg');
echo $content;
echo $row['Col2'];
echo $row['Col3'];
The problem is that once i do 'Content-type: imag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jboss start up with clustering works in one order not the other I have two clustered jboss nodes for this example I will call them A and B.
If i start node B first and then node A everything works fine and the servers start up in <45 seconds. If I switch the order I have problems. First problem is that it takes No... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Verification function for HTML form data I've created a function in JavaScript to verify an html form data, my code as below:
function checkPetitionForm_ff() {
if (document.petition_form.petition_firstname.value == "FIRST NAME" || document.petition_form.petition_firstname.value == "") {
alert("Please ent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: what is the latest Microsoft command line C/C++ compiler? What is the latest Microsoft command line C/C++ compiler?
Is it now free, what does it cost?
Looking for a link for it?
Thanks in advance,
Kevin Waite
A: Erm...
*
*download VS2010 Express
*install
*Launch VS2010 Command Line shell
*invoke cl.exe /? an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why am I getting NullPointerException in the CompilationUnit instances returned from ASTParser.createASTs() I am working on an Eclipse JDT plugin that requires parsing large numbers of source files,
so I am hoping to use the batch method ASTParser.createASTs(). The parsing executes without errors, but within the Com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hibernate: Using collection of complex objects throws exceptions I am looking into Hibernate and storing collections of complex types. But I run into exception.
I have the following persistent class:
public class Item {
private Long id;
private Set images = new HashSet();
private Collection<Data> da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create thumbnail of Word doc when it doesn’t have one saved? I want to create a COM dll that will take any Word file and generate an image file of the first page of the document. I have already done this using the IExtractImage functionality of the Windows SDK, but this only works if there is a thumbnail save... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7603104",
"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.