text stringlengths 8 267k | meta dict |
|---|---|
Q: Xcode auto-completion - replace text keystroke? Say we have a TestClass with the 2 methods, -getSomeString and -getAnotherString, and we are editing the following code and the cursor is in the location shown:
NSString *aString = [TestClass get<cursorIsHere>SomeString];
Say I want to change it to use -getAnotherStri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Ajax based Dashboard On LargeData I am working on some sort of CRM application which has huge sales data with all the customer leads etc (ASP.NET 2.0/Ajax)
I want to create a dashboard which will have four separate data containers each container will have different sort of data and each container has to update it s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JUnit gives no information regarding "errors" I'm using Junit 4.4 and Ant 1.7. If a test case fails with an error (for example because a method threw an unexpected exception) I don't get any details about what the error was.
My build.xml looks like this:
<target name="test" depends="compile">
<junit printsummary="w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Why is it not advisable to use JavaScript in JSP? Why is it not advisable to use JavaScript in JSP? One rationale that I can think of is turning off the feature in browser would stop the code from executing. Is there any other reason behind this?
A: Afaik, there is no problem in using javascript in jsp, and many si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: setNeedsDisplay not working? I have a problem redrawing a custom view in simple cocoa application. Drawing is based on one parameter that is being changed by a simple NSSlider. However, although i implement -setParameter: and -parameter methods and bind slider's value to that parameter in interface builder i cannot ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Does it make sense to convert DB-ish queries into Rails ActiveRecord Model lingo? mysql> desc categories;
+-------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------+-------------+------+-----+---------+----------------+
| id | int(11) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MATLAB "C" DLL Errors I'm compiling some MATLAB functions into a C DLL. The exported mlf functions return a boolean value representing whether the function succeeded or not. When the return value is false, I want to find out the error information. I couldn't find a way to do that! (other than compiling and exporting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Lock free constructs in .net I am new to .net and would like to know whether .net has the java equivalent of AtomicInteger, ConcurrentLinkedQueue, etc?
I did a bit of search and couldnt come up with anything.
The lock free algorithms need some sort of a CAS instruction, which is provided through the undocumented Uns... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I add a form in an Excel sheet? How can I add an input form in an Excel sheet. I want to insert values into an Excel cell using the form.
A: ALT+F11 starts the VBA editor in Excel. In there you can create UserForms (Insert | UserForm) which you can bind into their own modules or attach to worksheets.
I su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Online exam web application I am developing an online exam using JSP/Servlets which is nearing completion. I'm planning to add timer function for the entire exam that shows elapsed time in minutes. How do I implement this with a fool-proof technique to implement this, because using javascript would mean that the use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: join two tables into one big table I have two tables with the same columns, and I need to copy one table's rows to the other table's rows to create one big table with all the values from both tables. Right now I am doing this query to return the same thing:
SELECT col1, col2, col3 from Table1
union
SELECT col1, col... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: PPC breakpoints How is a breakpoint implemented on PPC (On OS X, to be specific)?
For example, on x86 it's typically done with the INT 3 instruction (0xCC) -- is there an instruction comparable to this for ppc? Or is there some other way they're set/implemented?
A: With gdb and a function that hexdumps itself, I g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Benchmark problems for testing concurency For one of the projects I'm doing right now, I need to look at the performance (amongst other things) of different concurrent enabled programming languages.
At the moment I'm looking into comparing stackless python and C++ PThreads, so the focus is on these two languages, bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is a good CSS strategy? We have a large ASP.Net website that has a single css stylesheet which is getting out of control.
I am thinking of using the following strategy (taken from http://www.techrepublic.com/article/developing-a-css-strategy/5437796/) which seems logical to me...
you might have one CSS file dev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: What is the difference between find-grep and grep-find? What is the difference between find-grep and grep-find in Emacs?
A: They seem the same. See the manual
A: You can use M-x describe-function (or C-h f with default keybindings) to answer this question, here's the output for find-grep:
find-grep is an alias fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Microsoft Virtual Server from C#: CoSetProxyBlanket does nothing I'm attempting to write a couple of NAnt tasks for interacting with Microsoft Virtual Server 2005 R2 SP1, and I've lifted the code found on "Virtual PC Guy's WebLog", in the "Controlling Virtual Server through PowerShell" post.
It doesn't work: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: "The handle is invalid" when running .net console via java I'm trying to run dot net console application via Java:
process = Runtime.getRuntime().exec(commandLine);
I get the following output:
Detecting
The handle is invalid.
when running it directly via the console (windows) there is no problem:
Detecting
100%
Do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How do you prefer to switch between buffers in Vim? I've tried MiniBufExplorer, but I usually end up with several windows showing it or close it altogether. What I'd like is something like LustyJuggler with incremental search, the way I switch between buffers in Emacs. Surely there is a script like this?
A: I used ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "98"
} |
Q: Can Windows key be mapped in Vim? Using Windows key as Meta is very useful in Emacs, is there the way to do it in Vim?
A: Sorry for answering so ancient question, but solution is really simple: it is impossible to use Win key in the terminal, but it is possible to use it with Gvim. Just pass it as modifier T. For e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Using Capistrano to deploy (a non-Rails site) via FTP? How would I go about this?
I have a mostly static site, which is being hosted on a cheap web-host, which only allows FTP access to the hosting. The site is tracked in git. I am using OS X.
I would like to upload a new version of the site by simply doing cap depl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: What's the best way to calculate date difference in Javascript I doing a function in Javascript like the VisualBasic DateDiff.
You give two dates and the returning time interval (Seconds, Minutes, Days, etc...)
DateDiff(ByVal Interval As Microsoft.VisualBasic.DateInterval, _
ByVal Date1 As Date, ByVal Date2 As Dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Forcing threads in a service to wait for another thread to finish I'm writing a service that has five different methods that can take between 5 seconds and 5 minutes to run.
The service will schedule these different methods to run at different intervals.
I don't want any of the methods to run concurrently, so how do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Windows Server 2008 as development machine - step by step I have found many tutorials about using Windows Server 2003 as a development machine, and very little information about Windows Server 2008 for the same purpose.
For a nicer experience, I have followed the steps from Convert your Windows Server 2008 to a Work... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: About scoping in JavaScript I need to have some information about the scoping in JavaScript. I know that it supports lexical (static) scoping, but, does not it support dynamic scoping as well?
A: I think you're confused because Javascript uses static scoping but at function-level, not at block level like usual stru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: logging for web application I'm in the middle of building a pretty big site using asp.net (forms if it's of any interest), and I'm wondering if i need a logging framework such as log4net.
I've used such frameworks before, but i don't see how i could put it to any use in this type of project.
usually i think logging ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: which open source project(s) uses the castle activerecord? Rather than the demos can you suggest any open source projects using castle activerecord for code study?
A: There are quite a few on google code. Some of them are:
*
*winecellarmanager
*mr-blogengine
*storyverse
*gaia-sprint
*Storm the Castle
*Issue... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SDL_event KEYDOWN behavior problem Here is the problem, I have written an event loop to detect keydown and keyup events. The problem I am running into is that a keydown event is generating a keydown and a keyup event when the key is pressed and held down. I am using the arrow keys to move an object and then to sto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: storing unbound python functions in a class object I'm trying to do the following in python:
In a file called foo.py:
# simple function that does something:
def myFunction(a,b,c):
print "call to myFunction:",a,b,c
# class used to store some data:
class data:
fn = None
# assign function to the class for storage... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Terminate and Suspend activity in Windows workflow Foundation I need to stop the execution Is there any procedures for using terminate and suspend activity
A: This sample at the microsoft website should help you with the suspend and terminate Activity
http://msdn.microsoft.com/en-us/library/ms742189.aspx
A: It dep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Help I have problem with select query in JPA i have problem i want to
select name_magazine from magazine
and i already import all library needed
and
Query q = EntityManger.createQuery ("SELECT name_magazine FROM Magazine");
List results = (List) q.getResultList ();
For(Sting s : result)
System.out.println(s);
bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Return ADODB.Recordset type from .NET to Classic ASP I have a DAL that I want to return an ADODB.recordset when executed from a classic asp. The object is exposed as a com object and I have a complete dal workin but I am not sure how to return an object that is a recordset that .net can use.
Any help would be aprcit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why was validate request taken out of ASP.net MVC? In standard ASP.net applications ASP.net offered some protection from XSS attacks with validateRequest throwing detect dangerous input errors if some one tried to. This functionality seems to have been taken out of MVC any idea why?
A: I know this question is old b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: batch file to keep one of ten lines I have a file with n lines. (n above 100 millions)
I want to output a file with only 1 of 10 lines, I can't split the file in ten part and keep only one part, as it must be a little more random. later I have to do a statistical analysis I can't afford to create a strong bias in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: The best way to change the innerHTML of a certain type of Elements I've a HTML page with several Div's that will show the time difference between now and each given date.
<div class="dated" onEvent="calculateHTML(this, 'Sat Jun 09 2007 17:46:21')">
30 Minutes Ago</div>
I want that time difference to be dynamic (cal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: autocomplete user/password in firefox I've created a login submit form in HTML but for some reason user/password autocompletion does not work like I expect in firefox.
This is what happens in Firefox:
*
*I give username and password and click on the login button
*Firefox prompts me if I would like to remember th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fuzzy string search library in Java I'm looking for a high performance Java library for fuzzy string search.
There are numerous algorithms to find similar strings, Levenshtein distance, Daitch-Mokotoff Soundex, n-grams etc.
What Java implementations exists? Pros and cons for them? I'm aware of Lucene, any other solu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: SecurityException in ASP.net application I have a web app which queries a Lucene index and it works just fine in a W2K3 server in my network. Now I got my azure code so I wanted to test the service uploading the app. In order to do that I had to install Vista (I did it in a Virtual machine) cause the Azure SDK won'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Link security trimming in asp.net mvc I would like to show some links only to authenticated users in an asp.net mvc web application.
*
*I use the template for an asp.net mvc web application in Visual Studio 2008 that came with the beta release of asp.net mvc.
*I use forms authentication.
*I would like to add so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I optimize code that has 3 for loops and 4 ifs? i made another post
here where I asked how to create the 26 neighbors of a cubic-voxel-node in 3-d space. I got a very good answer and implemented it.
To that I added some MIN MAX Position checking.
I would like to know if there is way, in relationship to the 3 fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Storing and updating lists in Python dictionaries: why does this happen? I have a list of data that looks like the following:
// timestep,x_position,y_position
0,4,7
0,2,7
0,9,5
0,6,7
1,2,5
1,4,7
1,9,0
1,6,8
... and I want to make this look like:
0, (4,7), (2,7), (9,5), (6,7)
1, (2,5), (4,7), (9,0), (6.8)
My plan ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Strange floating-point behaviour in a Java program In my program I have one array with 25 double values 0.04
When I try to sum these values in a loop I get following results:
0.0 + 0.04 = 0.04
0.04 + 0.04 = 0.08
0.08 + 0.04 = 0.12
0.12 + 0.04 = 0.16
0.16 + 0.04 = 0.2
0.2 + 0.04 = 0.24000000000000002
0.24000000000000... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What Vim features are missing in Emacs with Viper and Vimpulse? There are important features of Emacs which are missing in Vim, such as the comint mode, and there are no scripts/plugins which can replace them.
There are also benefits of Vim over Emacs, such as modal editing and generally better default shortcuts. Ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Table design Into nested datalist I use codes below to see a result like picture 1, but a result like picture 2 is coming. What should be done to solve it?
aspx code:
<asp:datalist id="dtlUrun" runat="server" RepeatDirection="Horizontal">
<ItemTemplate>
<table class="dtlTable">
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a library similar to pyparsing in Java? I need to quickly build a parser for a very simplified version of a html-like markup language in Java. In python, I would use pyparsing library to do this. Is there something similar for Java? Please, don't suggest libraries already out there for html parsing, my appl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: MySQL stored procedure vs. multiple selects Here's my scenario:
I've got a table of (let's call them) nodes. Primary key on each one is simply "node_id".
I've got a table maintaining a hierarchy of nodes, with only two columns: parent_node_id and child_node_id.
The hierarchy is maintained in a separate table becaus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C++ - passing references to std::shared_ptr or boost::shared_ptr If I have a function that needs to work with a shared_ptr, wouldn't it be more efficient to pass it a reference to it (so to avoid copying the shared_ptr object)?
What are the possible bad side effects?
I envision two possible cases:
1) inside the func... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "116"
} |
Q: How do you plot bar charts in gnuplot? How do you plot bar charts in gnuplot with text labels?
A:
plot "data.dat" using 2: xtic(1) with histogram
Here data.dat contains data of the form
title 1
title2 3
"long title" 5
A: I would just like to expand upon the top answer, which uses GNUPlot to create a bar graph,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "113"
} |
Q: Running XUnit.net Tests with TestDriven.net I've used NUnit for years and I wanted to try XUnit. So I installed XUnit and ran the executable that allowed you to run XUnit via TD.net.
I can't seem to run more than one test at a time. With NUnit + TD.net, I could click on the filename in the solution and run all th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Advanced Windows Application UI (MDI Tabbed Group) I would like to be able to create an MDI UI layout that extends the behavior of MDI Tabbed Groups in the following way. Within a pane for a split tabbed group, I'd like to create a nested tab group with the opposite directional alignment. For instance, given a hor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to fight against really big controllers . . I have an winforms application that was built using MVC. The controller is subscribing to all of the events from the view (button clicks, etc) and connects multiple views with the model.
The problem is that the controller is now about 3000 lines of (hard to unit tes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Suggestion to implement a text Menu without switch case I'm giving my first steps on Python. I saw that we don't have switch case statement,
so I would you guys implement a text Menu in python?
Thanks
A: Generally if elif will be fine, but if you have lots of cases, please consider using a dict.
actions = {1: doSo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Unlock a file with unlocker from a WinForms App? I am trying to unlock a file from a C# program, using unlocker.
In my UI, I put a button to unlock the file the app couldn't delete. When the user pushes the button, I want unlocker (the famous app) to be opened.
I have read about in the Unlocker web, and there is som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Posting base64 encoded files to an asp.net 1.1 page We are making an automated patching application and would like to post files on production server through asp.net page (or maybe a web service), since we can only access production server via http. The page should accept files and store them to appropriate location... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hosting, deploying and running web applications in the cloud So far I've read some blog articles about cloud computing and services for hosting applications in the grid.
If I'd wanted to have a web application running in the cloud for as little cost as possible, what would be the best solution?
Let's assume the fol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Include binary file with GNU ld linker script I have a working linker script. I want to add another data section whose contents is pulled directly from a file (ld shouldn't parse it and extract the sections and so on). How can I do that?
OUTPUT_FORMAT("elf32-i386")
ENTRY(start)
SECTIONS
{
.text 0x100000 : {
*(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Scrape a price off a website I'm trying to scrape a price from a web page using PHP and Regexes. The price will be in the format £123.12 or $123.12 (i.e., pounds or dollars).
I'm loading up the contents using libcurl. The output of which is then going into preg_match_all. So it looks a bit like this:
$contents = cur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calculate time period using C How do I calculate the time period between 2 dates in C (any library, etc.)?
The program should take two (local) dates as input and provide the duration period between them as output.
For example,
startDate = OCT-09-1976 and endDate = OCT-09-2008
should show a duration of 32 years.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OpenGL and monochrome texture Is it possible to pump monochrome (graphical data with 1 bit image depth) texture into OpenGL?
I'm currently using this:
glTexImage2D( GL_TEXTURE_2D, 0, 1, game->width, game->height, 0, GL_LUMINANCE, GL_UNSIGNED_BYTE, game->culture[game->phase] );
I'm pumping it with square array of 8 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to do drop-down box like "More action" in gmail I see the "More Action" drop-down box in gmail inbox page.
It has levels and some disabled item in the list.
How to do that in HTML+CSS?
Thank you
A: In response to Rob, the reason not to use disabled is IE.
The reason why this is not a good idea is that IE still ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Moving to generics . I am migrating a 1.1 winforms app to 2.0. what are the main things i should immediately change because of generics. Here what i have so far:
*
*Replace all hashtables with generic dictionaries
*Replace all arraylists with List<>
*Replace all CollectionBase derive classes with : List<>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: WMI invalid Class error (trying to uninstall a software on remote pc) All,
I am trying to uninstall a software remotely, it is working fine in the test machines, but i got problem in production servers.
test machines i have used windows xp, windows 2003 server,
production machine : windows server 2003.
what c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hashtable to Dictionary<> syncroot . Hashtables have a syncroot property but generic dictionaries don't. If I have code that does this:
lock (hashtable.Syncroot)
{
....
}
How do I replicate this if I am removing the hashtable and changing to generic dictionaries?
A: The new thinking behind SyncRoot is that it wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Specifying An Alternative JRE In Eclipse For An Application Launched From Eclipse I am trying to specify an alternative jre (my default is 1.6 and i need to run with jdk 1.4.2) in Eclipse, for an application that i shall launch from eclipse. I am not sure if I am doing the right thing in the following code:
Path jre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Slow MSAccess disk writing I'm trying to write a VB.Net program that saves 1-2 million 5-field records (plus an indexed ID) to an MSAccess table every day. The saving process currently takes 13-20 hours, which obviously can't be right.
Its a flat table with minimal indexing, currently only 156MB. Except for one do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Mac OS X Terminal: Map option+delete to "backward delete word" Tried to map it from Preferences -> Settings -> Keyboard, but the "key" combo box has only "forward delete" but no "delete". My keyboard on the other hand has only "delete" and no "forward delete"!
Is there some other way to do it except from the prefere... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "306"
} |
Q: Convert wide character strings to boost dates I need to convert several million dates stored as wide strings into boost dates
The following code works. However, it generates a horrible compiler warning and does not seem efficient.
Is there a better way?
#include "boost/date_time/gregorian/gregorian.hpp"
using names... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to add words to an already loaded grammar using System.Speech and SAPI 5.3 Given the following code,
Choices choices = new Choices();
choices.Add(new GrammarBuilder(new SemanticResultValue("product", "<product/>")));
GrammarBuilder builder = new GrammarBuilder();
builder.Append(new SemanticResultKey("options", ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Method for displaying "loading" message I am using jquery and the getJSON method and I am wondering if there is a way to display a message saying loading before it loads my content. i know with the jquery ajax calls there is the before submit callbacks where you can have something but the getJSON only has like three... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using fadein and append I am loading JSON data to my page and using appendTo() but I am trying to fade in my results, any ideas?
$("#posts").fadeIn();
$(content).appendTo("#posts");
I saw that there is a difference between append and appendTo, on the documents.
I tried this as well:
$("#posts").append(content).fade... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: Is there a way to read binary data in JavaScript? I would like to inject binary data into an object in JavaScript. Is there a way to do this?
i.e.
var binObj = new BinaryObject('101010100101011');
Something to that effect. Any help would be great.
A: You can use parseInt:
var bin = parseInt('10101010', 2);
The se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: How to dynamically generate a pdf from Google's appengine? I'd like to create an application that would run on Google's appengine.
However, this application needs to be able to generate PDFs dynamically.
How could I do this?
A: To overcome the number-of-files limit in google appengine, you could package your report... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Common Design Patterns for use in MVC Web Applications I am trying to coach some guys on building web applications. They understand and use MVC, but I am interested in other common patterns that you use in building web apps.
So, what patterns have you found to fit nicely into a properly MVC app. Perhaps something ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: AJAX and forms? I have some forms that communicate with server using AJAX for real reasons: cascade combos, suggestions, multiple correlated selections (e.g. I have {elementary} knowledge of {French} [add], and {good} knowledge of {German} [add]...). I also have some regular fields that I handle trough get.
Thing i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to list physical disks? How to list physical disks in Windows?
In order to obtain a list of "\\\\.\PhysicalDrive0" available.
A: #WMIC
wmic is a very complete tool
wmic diskdrive list
provide a (too much) detailed list, for instance
for less info
wmic diskdrive list brief
#C
Sebastian Godelet mentions in the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "87"
} |
Q: NAnt and VS2008 (.NET 3.5) - Solution format of file Solution.sln is not supported I'm trying to get NAnt 0.86b1 running with VS2008 SP1 and x64 XP.
I have a basic build file (below) which gives the error
Solution format of file 'Solution.sln' is not supported.
<property name="nant.settings.currentframework" valu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: GQL query to effectively span entity relationships I'm in a situation where I need to span Google App Engine entity relationships in a query like in the Django database model. I'm using ListPropertys for one-to-many relationships, like so:
class Foo(db.Model): bars = db.ListProperty(db.Key)
class Bar(db.Model): eggs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best design for an inquiry system (email to database) automatically filtered by some category? We are working on an inquiry management system using J2EE. We're looking at a feature, allowing users to send inquiries to particular mail-id and entering into the database. Catch is to automatically allocate i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can we have the table name as "option" in MySQL? I am very, very new to MYSQL.I tried to create a table named "option".
My SQL Query is :
create table option(
id int not null primary key auto_increment,
choice varchar(30)
)
While executing this query it shows the following error
Error Code : 1064
You have an error ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do you handle exceptional cases This is often situation, but here is latest example:
Companies have various contact data (addresses, phone numbers, e-mails...) when they make job ad, they have checkboxes where they choose how they want to be contacted. It is basically descriptive data. User when reading an ad s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Wildcards in Java PreparedStatements Here's my current SQL statement:
SEARCH_ALBUMS_SQL = "SELECT * FROM albums WHERE title LIKE ? OR artist LIKE ?;";
It's returning exact matches to the album or artist names, but not anything else. I can't use a '%' in the statement or I get errors.
How do I add wildcards to a pre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Embed XML configuration directly in Spring application context I have a Java object which is able to configure itself given an XML configuration description (it takes other descriptions as well, but I'm interested in the XML at the moment). I'm wondering if I can embed the XML description directly into a Spring appl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Read the last lineof the file Imagine I have a file with
Xpto,50,30,60
Xpto,a,v,c
Xpto,1,9,0
Xpto,30,30,60
that txt file can be appended a lot of times and when I open the file I want only to get the values of the last line of the txt file... How can i do that on python? reading the last line?
A: I think my answe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: sqlplus access and email access using shell script I am fairly beginner level at shell scripts and following are the details..
Am looking for the best way to fire sql queries and and carry out some logic based on that data. I've used the following snippet..
shellvariable=sqlplus $user/$passwd <<END
select count(1) f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it unreasonable to assign a MySQL database to each user on my site? I'm creating a user-based website. For each user, I'll need a few MySQL tables to store different types of information (that is, userInfo, quotesSubmitted, and ratesSubmitted). Is it a better idea to:
a) Create one database for the site (that is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How would you compare Apache Tomcat & Glassfish as production servers? I have a J2EE-based system which is running currently on Apache Tomcat. We are in discussions to move our production servers to the Glassfish server.
Can someone share their experiences with either of them?
A: Big question is: why? What do you t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How does IIS compare in terms of performance and scalability to weblogic and websphere for enterprise web applications? A common argument against using .NET for high volume, transactional enterprise systems is that IIS does not compare to the likes of Weblogic and websphere for java. Is this true? Unfortunately for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why do I get E_ACCESSDENIED calling a COM+ method from a proxy? Sorry if this is a bit long whinded... consider this:
I have a COM+ application in a namespace called Company that exposes an object called Server which has the following methods:
bool Server.Execute(IOptions options)
IOptions Server.CreateOptions()
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Django equivalent for count and group by I have a model that looks like this:
class Category(models.Model):
name = models.CharField(max_length=60)
class Item(models.Model):
name = models.CharField(max_length=60)
category = models.ForeignKey(Category)
I want select count (just the count) of items for ea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "95"
} |
Q: Struts 2 & Dojo files are too heavy and affect site's performance.. Any remedies? Well.. we've developed a j2ee application using struts2 ajax capabilities. We find that the dojo implementation is quite slow. We did the following things:
1. Custom build of the dojo library. (increased dojo.js from 240kb to 350kb)
2.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can you do "math" within WPF Styles that are data-bound I have a button control style and I want to change the padding from whatever the data-bound version is to adjust for a glyph that needs a 2 pixel offset. I'll use SimpleButton from SimpleStyles.xaml as an example (... shows where the trigger code was removed f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: multi file C program, how best to implement optional logging? I have a multi file C program. I'd like the user to be able to specify different debugging levels at run time.
What is the best way to implement this?
I was thinking of having a debug(level, "message") type function exported and used everywhere. Any bette... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: remote machine IIS management using commandline help me to manage IIS (what i am trying to do is create virtual directory, set properties
of virtual directory) on a remote PC/Server.
and check iis is runnning, and a particular virtual directory exists.
iisvdir.vbs helps to manage iis on local system, how can i use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can you databind to CornerRadius via WPF Styles? I have a Button style and can't seem to property databind the border's CornerRadius property to the template. This is a dependency property, so it should be data bindable. I wonder if I'm missing the right XAML syntax to use?
<Style TargetType="{x:Type Button}" Base... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Flex Mxml and property as string, escaping ?? Help A simple problem: If i use escape characters for a property such as
<mx:Image id="img" toolTip="\\foo{\\bar}"
It wont validate toolTip and therefore not compile.
What is the solution ?
A: You can use ActionScipt for example in a creationComplete event handler and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Image Classification Algorithms Using Java My goal is to implements different image classification methods to show how they function and the advantages and disadvantages behind such methods. The ones I want to try and implement using Java include;
Minimum distance classifier
k-nearest neighbour classifier.
I was wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I sort an array of strings? I have a list of input words separated by comma. I want to sort these words by alphabetical and length. How can I do this without using the built-in sorting functions?
A: Create a console application and paste this into the Program.cs as the body of the class.
public static voi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: is there any tool or program to generate database incremental script for oracle db release any tool to generate incremental release script for oracle database.
like Redgate DBComparer for SQLServer.
A: See here.
Other links, tools:
http://www.sqlmanager.net/de/products/oracle/dbcomparer
http://www.sqldelta.com/orac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Shared file storage for a Rails Application I have a rails app that accepts file uploads and I wanted to know the best way to have common storage between servers. Since we have a number of windows applications we have used samba in the past, but as we build pure linux apps I would like to do this the best possible ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: FXCop Rule for "If X = Nothing" when X is a nullable integer 1 Dim x as Integer? = Nothing
2 If x = Nothing Then
3 'this is what I think will happen
4 Else
5 'this is what really happens
6 End If
The proper way to write that is "If x Is Nothing".
Is there a FXCop rule that checks for this? Or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: THotkey with win-key support? Is there anyway to get the THotkey component in delphi to support the windows key?
Or does anyone know of a component that can do this?
Thanks heaps!
A: IMHO it is a good thing THotKey does not support this.
Don't use the windows key for keyboard shortcuts in your program, the "Windows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/327880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.