text stringlengths 8 267k | meta dict |
|---|---|
Q: Seems like it should be easy: Landscape Scrolling Text Field I have a application that I am working on that is in landscape mode and does not rotate. However I can not get the text field to rotate. I have been putting in way to many hours so don't be to harsh if this is a easy answer...
A: Are you using Interface B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When should you not use automated testing for a web application? Assume I'm using an interpreted language to power a medium or large application, and that the application is tested by hand (no unit tests, not integration tests, etc). Support for said product will not be dropped any time in the foreseeable future, an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding related data with multiple LINQ to SQL DataContexts I'm developing a desktop application using Linq to SQL. From what I've gathered, it's better to keep DataContext objects short-lived, but I'm running into the following puzzle:
My application has lots of lookup-type data that I'd like to cache on the client... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: htdigest file format I'm trying to write some code to work with an htdigest password file. The documentation I can find seems to claim that the format of that file is:
user:realm:MD5(user:realm:pass)
If that is the case, then why doesn't this work for me? I created a file with the command line htdigest thus:
htdige... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: can an x64 computer have both the x86 and x64 .net runtime installed? can an x64 computer have both the x86 and x64 .net runtime installed?
If so, how can I ensure that a program runs on the x64 runtime and not the x86 runtime?
A: Unless you tell it not to, VS should build an assembly that targets any CPU (ie. is p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: F# on mono in leopard. Seq.cast error I came across this answered question, but I can't seem to compile the code. I'm getting the following error on Seq.cast:
error FS0039: The value, constructor, namespace or type 'cast' is not defined.
I'm using Mono 2.0.1_1 and F# 1.9.4.19 on leopard. Is there something funky w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: boost::filesystem::path for unicode file paths? Is there a way to use boost::filesystem::path with unicode file paths?
In particular I'd like to use it with std::wstring instead of std::string.
I'm working on the windows platform and I need to sometimes process a filepath that has a unicode char in it.
A: Looking... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Trouble sorting records on unique attributes Working with the following code, I need to return only records where the `point' attribute is unique. I can't seem to get there by myself.
uniques = Item.find_all_by_item_id(item_id)
uniques.sort! {|a, b| b.point <=> a.point } # how do I reject the equal points?
In othe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# - How to use a interface for a generic list when serializing I have a generic list say and I want to serialize it.
I want to use a interface for the generic list which can't be serialized
so you have to use the instance. Like this
MyClass implements IMyClass.
List<IMyClass> list = DeserializeMyClass(path); //C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Code Golf New Year Edition - Integer to Roman Numeral Write a program that take a single command line argument N and prints out the corresponding Roman Numeral.
Eg N = 2009 should print MMIX.
Let's say this should work for 0 < N < 3000.
(Had fun playing my first ever round of code golf with the Christmas edition, an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Is there any perfomormance differences between binary and XML serialization? in terms of both parsing (serializing, deserializing) and sending packets over the network is there any good estimation of performance differences between binary and xml serialization?
A: The biggest difference between BinaryFormatter and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Design By Contract and Test-Driven Development I'm working on improving our group's development process, and I'm considering how best to implement Design By Contract with Test-Driven Development. It seems the two techniques have a lot of overlap, and I was wondering if anyone had some insight on the following (rela... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Where to get User Interface Components as seen in Acrobat, Photoshop etc Does anyone know if you can obtain the following user interface components as seen in various adobe products for use in ones own product?
*
*Treeview (Adobe Acrobat)
*Collapsable Toolbars (Adobe Photoshop, Illustrator)
A: Are you building... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Space-filling ToolBar item in WPF How can I make an item inside a ToolBar fill all the remaining available space? Or, how to right-align some items, since that would give me the same effect in my case.
Note that solutions which involve nesting another container (like a Grid) inside the ToolBar don't work since that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Running JAR file on Windows I have a JAR file named helloworld.jar.
In order to run it, I'm executing the following command in a command-line window:
java -jar helloworld.jar
This works fine, but how do I execute it with double-click instead?
Do I need to install any software?
A: In Windows Vista or Windows 7, the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "290"
} |
Q: SDL or PyGame international input So basically, how is non-western input handled in SDL or OpenGL games or applications? Googling for it reveals http://sdl-im.csie.net/ but that doesn't seem to be maintained or available anymore. Just to view the page I had to use the Google cache.
To clarify, I'm not having any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can RowSets be used with PreparedStatements? I have just found RowSets for database querying with JDBC. They are stateless and cacheable, they look to be superior to ResultSets.
Can PreparedStatements be used with them though? PreparedStatements are a performance booster for querying very large databases, and not so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Haskell for a server? With regards to making a game server, it seems Erlang always comes up as a language that is "built for this kind of thing" with its scalability and concurrency features. I don't have experience in either Haskell nor Erlang, but on the surface they seem the same. Looking into Haskell's docs it s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Is there a clean way to handle two original git repositories that started with the same content? Say I have two repositories that were created from the same initial content. For example, if I were using git to manage my apache config files in /etc/apache2 and I ran git init on machine-a and machine-b separately.
I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: which tool to use to view memory layout of multiple inheritance Is there a tool that I can use to see the multiple inheritance memory layout of compiled C++ code?
A: I don't know what exactly you want to know. For this simple example
class classA { };
class classB { };
class classC : public classA, public classB ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What program can I use to remotely help clients? I have a lot of people that ask me to fix their computers. Usually it is "slow computer" or "my computer has pop-ups," etc. In other words they have viruses and spyware. I thought I could use a remote program to do it, instead of them brining their computer to me o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is an unhandled exception acceptable? After experiencing numerous problems with a certain media player, it got me thinking is it really acceptable to prompt the user to launch a debugger or terminate an application without any relevant information in this day and age?
A: Apparently. Did you uninstall the media pl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iGoogle widget for webcam? Does anyone know how I can best stream a webcam through an iGoogle widget?
My ideal is to actually be able to stream locally--that is, get a widget that allows me to display my computer's webcam. Is this possible?
(No, I'm not that vain. I'm using a webcam as a Security Camera, and I'd li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Implementing sessions in rails I'm doing a first pass at rolling my own authentication and sessions in rails and am not sure that I understand the session support that is present. (By first pass, I mean I'm initially authenticating via http, not https. Production code will use https.)
My understanding of secure sess... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MySQL DATETIME question I have a DATETIME field. I would like to select all the records that have been updated in the last week. Right now I'm using this query:
SELECT SUM(mins_spent) as time_sum FROM todos WHERE
lastUpdate >= '2008-12-22' AND lastUpdate <='2008-12-28'
But the results i get seem to be different d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: HTML Table cellspacing or padding just top / bottom Can you have cellpadding or spacing just on the top/ bottom as opposed to all (T, B, L, R) ?
A: CSS?
td {
padding-top: 2px;
padding-bottom: 2px;
}
A: This might be a little better:
td {
padding:2px 0;
}
A: There is css:
table { border-spacing: 40px 10px;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Multiple Connections With Same Connection String Under A Single Transaction, Elevated Transaction? When using ado.net, and creating multiple connections to a MS SQL Server database within a single transaction (using System.Transactions.TransactionScope), does System.Transactions elevate the transaction from the ligh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Must a Language that Implements Monads be Statically Typed? I am learning functional programming style. In Don't Fear the Monads, Brian Beckman gave a brilliant introduction about Monad. He mentioned that Monad is about composition of functions so as to address complexity.
A Monad includes a unit function that tra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: What's the best way to do javascript validation on ASP.Net page with Masterpage? I am implementing Javascript Validation on an ASP.Net page that is inside a Master Page. The control IDs are changing, so I can't use the original control IDs for validation. I looked on the Net and got the suggestion to build the scrip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Economics of software development Can anyone point me towards any references that attempt to formulate an economics of software development? In my own research, I discovered a book by Barry Boehm on this, but it seems very awkward and theoretical.
Dependency Structure Matrices seem to offer something worthwhile. C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: C# - How to determine if source is compiled successfully I am running the C# compiler in code, sort of my own IDE.
I create a batch file for the command line.
And run Process.Start() and wait till HasExited is true.
But how do know if the source compiled successfully?
Malcolm
A: Why are you using csc via the proces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Anyone know a code editor I can embed in a WPF window or Windows forms? I want create my own IDE but I want a code editor that would
syntax highlighting.
I want to embed it as a control into a WPF window.
Malcolm
A: The Sharp Develop IDE has a great code editor that can be used in your programs relatively easily (i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Is there an IDE for D with integrated debugger? Is there an IDE for D with integrated debugger?
A: Descent has the ability to use a debugger. Not exactly what you asked but...
A: The DDBG Win32 Debugger works with a few IDEs - http://ddbg.mainia.de/
A: Poseidon.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/394757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: C++ Inserting 2D array Object into another 2D array Object In using Dev C++, I a m trying to insert a smaller 2D array object into a larger 2D array object. While attempting to achieve that, I came into compilers errors which I do not know how to solve.
I attempt to insert the smaller Object by making it returning t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pointer Arithmetic Does anyone have any good articles or explanations (blogs, examples) for pointer arithmetic? Figure the audience is a bunch of Java programmers learning C and C++.
A: Here is where I learned pointers: http://www.cplusplus.com/doc/tutorial/pointers.html
Once you understand pointers, pointer arith... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: Override a method at instance level Is there a way in Python to override a class method at instance level?
For example:
class Dog:
def bark(self):
print "WOOF"
boby = Dog()
boby.bark() # WOOF
# METHOD OVERRIDE
boby.bark() # WoOoOoF!!
A: You need to use MethodType from the types module. The purpose of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "116"
} |
Q: What's the best way to get related data from their ID's in a single query? I have a table where each row has a few fields that have ID's that relate to some other data from some other tables.
Let's say it's called people, and each person has the ID of a city, state and country.
So there will be three more tables, ci... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Data Strategies in Windows Mobile I'm developing a C# application on Windows Mobile, and like most of my WM applications, I always get bogged down whenever I'm deciding on a serialization strategy. In the desktop world, I'm not too worried about it because i've already developed a pretty robust custom xml serializ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does Python have a ternary conditional operator? Is there a ternary conditional operator in Python?
A: You can index into a tuple:
(falseValue, trueValue)[test]
test needs to return True or False.
It might be safer to always implement it as:
(falseValue, trueValue)[test == True]
or you can use the built-in bool()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7650"
} |
Q: How to get parent process in .NET in managed way I was looking a lot for method to get parent process in .NET, but found only P/Invoke way.
A: This code provides a nice interface for finding the Parent process object and takes into account the possibility of multiple processes with the same name:
Usage:
Console.Wr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "98"
} |
Q: WCF: The request for security token could not be satisfied because authentication failed I have written a very simple WCF Service that sends and receives messages. I have tested the app through the VS 2008 default web server host and everything works fine. But when I deploy the WCF service to another computer's IIS ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Inno setup: hide files How can I hide the files while installing my application using an Inno Setup made package? It can be hidden by
"[files]
attribs : hidden"
but it again can be seen by activating the windows option
"Show hidden file"
How can I hide it permanently to avoid user tampering with EXE file?
A: Can't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSRF: can the JSON data returned by a POST request be stolen? Can the JSON data, returned by a POST request be stolen by a cross-site request forgery attack?
A: It cannot be done using JS, but I'm not sure about Flash's cross-domain request.
In JS POST request can be made via forms and XMLHTTPRequest. You can't see... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using untyped datasets in Crystal Reports I'm creating a runtime dataset in page load. In this dataset I'm adding columns like that:
CrystalDecisions.CrystalReports.Engine.ReportDocument orpt =
new CrystalDecisions.CrystalReports.Engine.ReportDocument();
DataTable table = new DataTable("DataSet1");
table.Colum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ 2DArray Objects; Pointers and Array Problems This problem is from a solved problem in my old question, which is from:
C++ Inserting 2D array Object into another 2D array Object
But also created a new problem for me. Please read the question and the solution in the link to understand my problem. The solution in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Invoking the print/save/email function of Adobe Reader plugin in browser I am looking for a way to invoke the print/save/email functions from the Adobe Reader plugin in the browser. To better explain, please open the following image in your browser:
http://stylephp.com/demo/pdf.png
In the image, you'll see a sample ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How I can get the calling methods in C#
Possible Duplicate:
How can I find the method that called the current method?
I need a way to know the name of calling methods in C#.
For instance:
private void doSomething()
{
// I need to know who is calling me? (method1 or method2).
// do something pursuant to who is c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: SQL INNER JOIN syntax the two bits of SQL below get the same result
SELECT c.name, o.product
FROM customer c, order o
WHERE c.id = o.cust_id
AND o.value = 150
SELECT c.name, o.product
FROM customer c
INNER JOIN order o on c.id = o.cust_id
WHERE o.value = 150
I've seen both styles used as standard at ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Silencing GCC warnings when using an "Uncopyable" class I have several classes that I don't want to be copyable, some of these classes have pointer data members. To make these classes uncopyable I privately inherit the following class template:
template <class T>
class Uncopyable
{
protected:
Uncopyable() {}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MVC in Java This is about a school assignment so I'm trying to do things by the book. I feel like I'm getting the grips of Java, but good programming practice, design patterns, etc. are all rather new to me.
I've made my model and it works fine. It contains a student class which contains a number of fields with stud... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Why doesn't my Perl curses window work? This might be a problem with my understanding with Curses more than with Perl, but please help me out. I'm using Curses.pm which works quite well except when I try to create a curses "window". Example code:
use Curses;
initscr;
$w=newwin(1,1,40,40);
$w->addstr(20,20,"Hello");
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do ASCII art image conversion algorithms work? There are some nice free "image to ASCII art" conversion sites like this one: ASCII-art.org
How does such an image conversion algorithm work?
,
. W ,
W W ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "62"
} |
Q: Passing data between forms I have the following scenario
I have a main form as MDI parent and MDI child form, the child form shows a new form (I called it mydialog).
I want to access specific function in the MDI child form from mydialog so I tried to set the Owner property in the mydialog object but exception occur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CD Ripping in Delphi Is there any example how to rip audio cd in delphi?
A: Commercial ActiveX, US$150:
CD Extractor Control
DLL, Free for freeware, 50 Euros for use in shareware:
Bass CD Ripper
A: If you just need to accomplish the task, then you could consider running an existing command line tool to perform th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET configuration tool doesn't work in folders with special characters it seems that I just solved my problem why I couldn't use the ASP.NET Configuration Tool in VS2008. It seems this tool doesn't work when the aps.net solution is located in a folder containing special characters - spaces for example. Actually,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python threads stack_size and segfaults A web crawler script that spawns at most 500 threads and each thread basically requests for certain data served from the remote server, which each server's reply is different in content and size from others.
i'm setting stack_size as 756K's for threads
threading.stack_size(756... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Double-checked locking in .NET I came across this article discussing why the double-check locking paradigm is broken in Java. Is the paradigm valid for .NET (in particular, C#), if variables are declared volatile?
A: Double-checking locking now works in Java as well as C# (the Java memory model changed and this is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "62"
} |
Q: How to write an automated test for thread safety I have a class which is not thread safe:
class Foo {
/* Abstract base class, code which is not thread safe */
};
Moreover, if you have foo1 and foo2 objects, you cannot call foo1->someFunc() until foo2->anotherFunc() has returned (this can happen with two threa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to determine if a certain key is pressed, knowing only its position on U.S. keyboards? Consider that, for a Windows video game, I need to determine if the key which generates the ` and ~ characters on the U.S. English keyboard layout (which is usually below the Escape key and left to 1) has been pressed. This ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Packet data structure? I'm designing a game server and I have never done anything like this before. I was just wondering what a good structure for a packet would be data-wise? I am using TCP if it matters. Here's an example, and what I was considering using as of now:
(each value in brackets is a byte)
[Packet lengt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Best way to call an instance method in Expression Trees? What is the best way to call an instance method within an Expression Tree? My current solution is something like this for an interface method "object GetRowValue(rowIndex)" of the interface IColumn.
public static Expression CreateGetRowValueExpression(
ICo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is it possible in .Net to call some code only from debug builds of client assemblies? I am writing a (very small) framework for checking pre- and postconditions of methods. Entry points are (they could be easily be methods; that doesn't matter):
public static class Ensures {
public static Validation That {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Flex: How does the compiler know about dependencies? I'm completely new to Flex and am just having a play with a sample application from the Mate framework. I'm hacking on Linux so I'm using the command prompt and a text editor rather than Flex Builder.
The sample app has two folders in its root directory lib & src.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Simple modal in jQuery I am using SimpleModal in jQuery, and I have one confirm dialog. If the result is Yes, I have to call my.php into this dialog. However, I have done the code, and I am still searching for ideas. How can I do it?
$(document).ready(function () {
$('#confirmDialog input.confirm, #confirmDialog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Versioned RDF store Let me try rephrasing this:
I am looking for a robust RDF store or library with the following features:
*
*Named graphs, or some other form of reification.
*Version tracking (probably at the named graph level).
*Privacy between groups of users, either at named graph or triple level.
*Human-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do you write your own View engine for ASP.NET MVC? I know that ASP.NET MVC will allow me to swap in various View engines that other people have created, but I am wondering how can I create my own View engine?
More info:
We have our own webforms based CMS and the main selling point about MVC is that it gives us c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why can Conway’s Game of Life be classified as a universal machine? I was recently reading about artificial life and came across the statement, "Conway’s Game of Life demonstrates enough complexity to be classified as a universal machine." I only had a rough understanding of what a universal machine is, and Wikipedi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: Tab key behavior in browser edit control Web browsers are good as thin clients for web applications.
But if the user has to enter some code (where tabs and formatting are important) in an edit box, inside a web browser, he navigates through the webpage controls every time he hits the "tab" key, instead of printing t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Download from EXPLOSM.net Comics Script [Python] So I wrote this short script (correct word?) to download the comic images from explosm.net comics because I somewhat-recently found out about it and I want to...put it on my iPhone...3G.
It works fine and all. urllib2 for getting webpage html and urllib for image.retr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ajax - Library or Plain Javascript I've been doing a lot of reading about AJAX, and wanted to know which is the better way to approach things: by using a library such as jQuery using their built-in methods or creating JavaScript without a library for AJAX?
A: Ajax has a lot of quirks when working with the XMLHttpRe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Best practice to run Linux service as a different user Services default to starting as root at boot time on my RHEL box. If I recall correctly, the same is true for other Linux distros which use the init scripts in /etc/init.d.
What do you think is the best way to instead have the processes run as a (static) user of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "142"
} |
Q: Gridview link button click event - Windows application How to handle click event of the linkbutton in gridview in vb.net (windows application )
Thanks
A: You need to consume the DataGridView.CellClick Event and just check that you've got the correct column index. You can do it with the following steps:
Create a ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/394989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Tools to enforce a coding style for Javascript I need to automatically check the style of javascript sources written by different people. Do you know of a good tool to do it? Integration with emacs would be a plus. Thank you in advance.
A: See EditorConfig. This tool is not limited to js though; You first install t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: how to make textarea same width in IE and Firefox? I want to have a textarea that's 500px, this is the CSS I use for the textarea:
width: 498px;
padding: 0px;
margin: 0px;
I noticed IE and Chrome have a 1px border by default, on the other hand FF have a 2px border which results the textarea to be 502px instead of 5... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Casting an array of Objects into an array of my intended class Just for review, can someone quickly explain what prevents this from working (on compile):
private HashSet data;
...
public DataObject[] getDataObjects( )
{
return (DataObject[]) data.toArray();
}
...and what makes this the way that DOES work:
pub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: How to prevent deep linking to files on my website I own a website which contain a lot of freeware stuff to download on it. The problem I'm facing is that people from around the world are taking the direct links
of the files (for example .zip files) and posting them on their websites and general forums. I am getti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Cross-site XMLHttpRequest I want to provide a piece of Javascript code that will work on any website where it is included, but it always needs to get more data (or even modify data) on the server where the Javascript is hosted. I know that there are security restrictions in place for obvious reasons.
Consider index.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: If innerHTML is evil, then what's a better way change the text of a link? I know innerHTML is supposedly evil, but I think it's the simplest way to change link text. For example:
<a id="mylink" href="">click me</a>
In JS you can change the text with:
document.getElementById("mylink").innerHTML = new_text;
And in P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: templatetags don't refresh I have two templatetags in my app which contain forms which show entries in db. When I alter data or add new entry to db, the forms show the old data. While in admin panel everything is correct (updated). When I restart the server (I mean manage.py runserver) forms show updated db entries... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to separate Business from Presentation Logic? I want to create a game that will work both locally and online.
My first thought was to create an interface that would have all the methods that will be needed by the GUI for the business logic and then have a network implementation and a local implementation.
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: PHP set_inlude_path and include best practises Where would
set_include_path("../../");
point to?
I am trying to run some PHP code on a standard XAMPP server. And put my stuff into the htdocs folder. The includes point to relative paths, But it does not work. Is there any best-practise for includes? The code has to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Extern keyword and unresolved external symbols I drew a little graph in paint that explains my problem:
But it doesn't seem to show up when I use the <img> tag after posting?
Graph:
A: The problem is the scope of the declaration of db. The code:
extern Database db;
really means "db is declared globally somewher... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using knockd to do stuff | Sending TCP/UPD Requests via PHP I was wondering, whether knockd http://www.zeroflux.org/cgi-bin/cvstrac.cgi/knock/wiki would be a good was to be able to restart apache without logging into ssh. But my programming question was whether there is a way to send tcp/udp packages via PHP so I ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Help with recursive query I've following problem, which I've not been able to do successfully. Your help will be appreciated. I'm using SQL 2005, and trying to do this using CTE.
Table has following 2 columns
DocNum DocEntry
1 234
2 324
2 746
3 876
3 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to force asp:label inside asp:table to always have the same width? I don't really FEEL CSS and it doesn't always work as I think it would.
This is one of these situations:
I have a simple (2 rows, 2 columns) asp:table generated dynamically. in the right column it contains a combo box (cell (0, 1)) and a label (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to programmatically capture a web page with forced updates I need to capture a web site and am looking for an appropriate library or program to do this. The website uses Java Script and pushes updates to the page and I need to capture these as well as the page itself. I am using curl to capture the page itself b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What benefits does creating an API give to your service? If I was a webservice, such as Twitter, how does creating an API for people to access my data help me? I can see that they are extending your service to areas that you might not have the resources to expand to (in a way extending your own service), but is it w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Save entire desktop state? I'd love to have a utility that would save and restore my current desktop state, much like sessions in Firefox. At best, it would freeze every application's state, open window positions, etc. and provide a scriptable interface to restore them at any time, just as you'd left them.
More rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Vim syntax coloring: How do I highlight long lines only? I would like vim to color "long" lines for me. Using 80 columns as an example, I would like to highlight lines that exceed that length. Here is roughly what I think the .vimrc file should contain, although it (1) doesn't work, and (2) uses Perl's regex synta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: RAII and smart pointers in C++ In practice with C++, what is RAII, what are smart pointers, how are these implemented in a program and what are the benefits of using RAII with smart pointers?
A: Smart pointer is a variation of RAII. RAII means resource acquisition is initialization. Smart pointer acquires a resourc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "210"
} |
Q: What should be considered when deciding between explicit vs implicit paging in a UI? When a list becomes very large, presenting it in a UI raises a design issue. Should the user get pages of items or should the user get a list control that pages items implicitly as it is scrolled?
In google search, paging of result... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Switching off optimization for a specific function in gcc 4.2.2 Is it possible to switch off optimization of a specific function?
A friend of mine has the problem that the gcc optimization makes some (unknown to me) µ-controller-code not work.
We know which functions it is, but we have no clue of the code itself so ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to perform a background load and scraping of a page with XUL/Firefox Extension I want to scrape the user pages of SO to give the owners of my toolbar the updated information on their questions/answers/etc...
This means I need to do this in the background, parse the pages, extract the content, compare it with the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Get css top value as number not as string? In jQuery you can get the top position relative to the parent as a number, but you can not get the css top value as a number if it was set in px.
Say I have the following:
#elem{
position:relative;
top:10px;
}
<div>
Bla text bla this takes op vertical space....
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "127"
} |
Q: Three Layered Web Application Is it OK - best practise wise - to use the second layer to redirect the user?
For example:
public static void ForceLogin()
{
HttpCookie cookie = HttpContext.Current.Request.Cookies[cookieName];
if (cookie != null)
{
if (Regex.IsMatch(cookie.Value, "^[0-9]+\\.[a-f0-9... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Using CMake to generate Visual Studio C++ project files I am working on an open source C++ project, for code that compiles on Linux and Windows. I use CMake to build the code on Linux. For ease of development setup and political reasons, I must stick to Visual Studio project files/editor on Windows (I can't switch t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "109"
} |
Q: Difference between .Owner property and ShowDialog(IWin32Window owner)? I presume a winform's owner can be set explicitly via the .Owner property OR by passing the owner in the overloaded method ShowDialog(IWin32Window owner)
I am unable to understand why these methods exhibit different behavior when working with MDI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Advantage of using NIO vs BIO in jetty? Any experience on the tradeoffs in terms of nio vs bio when having heap and computationally intensive process executed for every query with execution times in (100ms-900ms) range ?
A: The real issue is how many concurrent open connections do you want to be able to scale up to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WPF: How to specify units in Dialog Units? i'm trying to figure out how to layout a simple dialog in WPF using the proper dialog units (DLUs).
What's a dialog unit?
A dialog is a unit of measure based on the user's preferred font size.
A dialog unit is defined such that the average character is 4 dialog
units... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Preserving relational integrity with Mnesia I've been diving into Erlang recently, and I decided to use Mnesia to do my database work given it can store any kind of Erlang data structure without a problem, scale with ease, be used with list comprehensions, etc.
Coming from standard SQL databases, most rows can and s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/395198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.