text stringlengths 8 267k | meta dict |
|---|---|
Q: Visual Studio 2005/2008: How can you share/force all developers to use the same formatting rules? I would like to have all developers on my team to use the same rules for formatting several types of code (ASPX, CSS, JavaScript, C#). Can I have visual studio look to a common place for these rules?
I would like to no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Namespace with Context.Handler and Server.Transfer? What .NET namespace or class includes both Context.Handler and Server.Transfer?
I think one may include both and my hunt on MSDN returned null.
A: System.Web.
HttpContext.Current.Handler
HttpContext.Current.Request.Server.Transfer
A:
Hmmmm, I talking about the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to upgrade TFS 2005 to TFS 2008? What is the best way to go about upgrading TFS 2005 to 2008? Also, what about the Team Build scripts ("Build Types"), are those compatible with Team Build 2008 or do they need converted/migrated somehow?
A: First and foremost - backup everything! The databases, the machine itsel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to add submenu items to the Windows Explorer context menu? I can create a menu item in the Windows Explorer context menu by adding keys in the registry to HKEY_CLASSES_ROOT\Folder\shell.
How can I create submenu items to the just created menu item?
A: I believe anything non-trival you'll have to create a Contex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Have you got a CascadingDropDown working with ASP.NET MVC? If so how?
Did you roll your own with jQuery or use the Microsoft AJAX toolkit?
Did you create a webservice or call an action?
EDIT : Please note that this question was asked before Microsoft announced that they were going to bundle jQuery in with VS/ASP.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Remote Debugging Server Side of a Web Application with Visual Studio 2008 So, I've read that it is not a good idea to install VS2008 on my test server machine as it changes the run time environment too much. I've never attempted remote debugging with Visual Studio before, so what is the "best" way to get line by li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Does git have anything like `svn propset svn:keywords` or pre-/post-commit hooks? Browsing through the git documentation, I can't see anything analogous to SVN's commit hooks or the "propset" features that can, say, update a version number or copyright notice within a file whenever it is committed to the repository.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Getting Configuration value from web.config file using VB and .Net 1.1 I have the following web config file. I am having some difficulty in retrieving the value from the "AppName.DataAccess.ConnectionString" key. I know I could move it to the AppSetting block and get it realtively easily but I do not wnat to dupli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TortoiseHg in Vista 64-bit not showing the context menu I installed TortoiseHg (Mercurial) in my Vista 64-bit and the context menu is not showing up when I right click a file or folder.
Is there any workaround for this problem?
A: Update: TortoiseHg 0.8 (released 2009-07-01) now includes both 32 and 64 bit shell e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Connection pooling in PHP Is it possible to cache database connections when using PHP like you would in a J2EE container? If so, how?
A: There is no connection pooling in php.
mysql_pconnect and connection pooling are two different things.
There are many problems connected with mysql_pconnect and first you should ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "88"
} |
Q: What does Google Chrome mean to web developers? From a web developer point of view, what changes are expected in the development arena when Google Chrome is released?
Are the developments powerful enough to make another revolution in the web? Will the way we see web programming change?
Or is it just another web brow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: What do you call the tags in Subversion and CVS that add automatic content? Things like $log$ and $version$ which add data upon check-in to the file. I'm interested in seeing the other ones and what information they can provide, but I can't get much info unless I know what they are called.
A: Both Subversion and CV... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is a GUID unique 100% of the time? Is a GUID unique 100% of the time?
Will it stay unique over multiple threads?
A:
Is a GUID unique 100% of the time?
Not guaranteed, since there are several ways of generating one. However, you can try to calculate the chance of creating two GUIDs that are identical and you get t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "647"
} |
Q: Encrypt data from users in web applications Some web applications, like Google Docs, store data generated by the users. Data that can only be read by its owner. Or maybe not?
As far as I know, this data is stored as is in a remote database. So, if anybody with enough privileges in the remote system (a sysadmin, for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Implementing a '20 Questions'-like Wizard in a Database I am looking to implement a data-driven wizard with the question tree stored in an Oracle database. What is the best schema to use to make the database portion flexible (i.e. easy to add new paths of questions) without sacrificing too much in terms of performa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I check job status from SSIS control flow? Here's my scenario - I have an SSIS job that depends on another prior SSIS job to run. I need to be able to check the first job's status before I kick off the second one. It's not feasible to add the 2nd job into the workflow of the first one, as it is already way to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I do multiple updates in a single SQL query? I have an SQL query that takes the following form:
UPDATE foo
SET flag=true
WHERE id=?
I also have a PHP array which has a list of IDs. What is the best way to accomplish this other than with parsing, as follows, ...
foreach($list as $item){
$querycondition ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Debugging an exception in an empty catch block I'm debugging a production application that has a rash of empty catch blocks sigh:
try {*SOME CODE*}
catch{}
Is there a way of seeing what the exception is when the debugger hits the catch in the IDE?
A: In Visual Studio - Debug -> Exceptions -> Check the box by "Comm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: HTML Help keyword location I'm writing a manual and some important keywords are repeated in several pages. In the project's index I defined the keywords like this:
<LI> <OBJECT type="text/sitemap">
<param name="Name" value="Stackoverflow">
<param name="Name" value="Overview">
<param name="Local" value="o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I create a base page in WPF? I have decided that all my WPF pages need to register a routed event. Rather than include
public static readonly RoutedEvent MyEvent= EventManager.RegisterRoutedEvent("MyEvent", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(BasePage));
on every page, I decided to cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Using C in a shared multi-platform POSIX environment I write tools that are used in a shared workspace. Since there are multiple OS's working in this space, we generally use Python and standardize the version that is installed across machines. However, if I wanted to write some things in C, I was wondering if maybe ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Embed a PowerPoint presentation into HTML Is it possible to embed a PowerPoint presentation (.ppt) into a webpage (.xhtml)?
This will be used on a local intranet where there is a mix of Internet Explorer 6 and Internet Explorer 7 only, so no need to consider other browsers.
I've given up... I guess Flash is the way... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: how do I import a class to use inside Flex application? I have an actionscript file that defines a class that I would like to use inside a Flex application.
I have defined some custom controls in a actionscript file and then import them via the application tag:
<mx:Application
xmlns:mx="http://www.adobe.com/2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to run gpg from a script run by cron? I have a script that has a part that looks like that:
for file in `ls *.tar.gz`; do
echo encrypting $file
gpg --passphrase-file /home/$USER/.gnupg/backup-passphrase \
--simple-sk-checksum -c $file
done
For some reason if I run this script manually, works perfectly ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: How do I model a chessboard when programming a computer to play chess? What data structures would you use to represent a chessboard for a computer chess program?
A: The simple approach is to use an 8x8 integer array. Use 0 for empty squares and assign values for the pieces:
1 white pawns
2 white knights
3 white bis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Why doesn't JavaScript support multithreading? Is it a deliberate design decision or a problem with our current day browsers which will be rectified in the coming versions?
A: Just as matt b said, the question is not very clear. Assuming that you are asking about multithreading support in the language: because it i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "326"
} |
Q: How To Write a Plug-In for IE The IE Developer Toolbar is a plugin that can dock or separate from the browser. I understand its much more difficult to do this in IE than in Firefox.
*
*How does one create an IE plugin?
*What languages are available for this task?
*How can I make a Hello World plugin?
A: See h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: VS.NET defaults to private class Why does Visual Studio declare new classes as private in C#? I almost always switch them over to public, am I the crazy one?
A: Private access by default seems like a reasonable design choice on the part of the C# language specifiers.
A good general design principle is to make all ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to use the SharePoint MultipleLookupField control? I want to use the MultipleLookupField control in a web page that will run in the context of SharePoint. I was wondering if anyone would help me with an example, which shows step by step how to use the control two display two SPField Collections.
A: I'm not ent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I remove an item from a stl vector with a certain value? I was looking at the API documentation for stl vector, and noticed there was no method on the vector class that allowed the removal of an element with a certain value. This seems like a common operation, and it seems odd that there's no built in way to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "158"
} |
Q: How do I set windows to perform auto login? Windows has a feature that allows an administrator to perform auto-logon whenever it is started. How can this feature be activated?
A: Based on the advice, moved the answer to the answers section:
There are tools out there that give you a GUI for setting this easily, but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Extra tables or non-specific foreign keys? There are several types of objects in a system, and each has it's own table in the database. A user should be able to comment on any of them. How would you design the comments table(s)? I can think of a few options:
*
*One comments table, with a FK column for each object... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Programmatically building htpasswd Is there a programmatic way to build htpasswd files, without depending on OS specific functions (i.e. exec(), passthru())?
A: .httpasswd files are just text files with a specific format depending on the hash function specified. If you are using MD5 they look like this:
foo:$apr1$y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How to fix native client error 'Connection is busy with results for another command'? I'm getting a Connection Busy With Results From Another Command error from a SQLServer Native Client driver when a SSIS package is running. Only when talking to SQLServer 2000. A different part that talks to SQLServer 2005 seems to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: PGP signatures from Python? What is the easiest way to create and verify PGP/GPG signatures from within a Python application?
I can call pgp or gpg using subprocess and parse the output, but I was looking for a way that didn't require an external program to be installed (my application is cross-platform mac/windows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Coupling and cohesion I'm trying to boil down the concepts of coupling and cohesion to a concise definition. Can someone give me a short and understandable explanation (shorter than the definitions on Wikipedia here and here)? How do they interact?
Thanks.
Anybody have a good, short example?
A: Coupling - A measure... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "76"
} |
Q: Javascript equivalent of Python's locals()? In Python one can get a dictionary of all local and global variables in the current scope with the built-in functions locals() and globals(). Is there some equivalent way of doing this in Javascript? For instance, I would like to do something like the following:
var foo ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: How are tags made in Subversion? I know how to use tags in subversion. I create a tag every time I get to a release milestone.
What I don't quite understand is how they work.
Is a tag just a copy, made from what ever revision I specify? Or is a tag more like a reference, where internally subversion just says GO TO ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Security implications of multi-threaded javascript Reading through this question on multi-threaded javascript, I was wondering if there would be any security implications in allowing javascript to spawn mutliple threads. For example, would there be a risk of a malicious script repeatedly spawning thread after threa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Improving performance with OPC tags I am working with a PC based automation software package called Think'n'Do created by Phoenix Contact It does real time processing, read inputs/ control logic / write outputs all done in a maximum of 50ms. We have an OPC server that is reading/writing tags from a PLC every 10ms. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Create new page in Webtop How do I create a new webpage in the Documentum front end Webtop?
A: The short answer is that it can not be done.
WebTop is Documentum's generic application for browsing their back-end content repository. Think of it as a web-based Windows Explorer on steroids. It's a tool for storing, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to update LINQ to SQL classes after database schema change I'm using LINQ to SQL classes in a project where the database design is still in a bit of flux.
Is there an easy way of synchronising the classes with the schema, or do I need to manually update the classes if a table design changes?
A: Here is an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "76"
} |
Q: Can the same Adobe AIR app run more than once? As the title says, is there a way to run the same Adobe AIR app more than once? I have a little widget I wrote that shows thumbnails from a couple of photo streams, and I'd like to fix it so I can look at more than one stream at a time. Thanks!
A: It seems that this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to find a normal vector pointing directly from virtual world to screen in Java3D? I think it can be done by applying the transformation matrix of the scenegraph to z-normal (0, 0, 1), but it doesn't work. My code goes like this:
Vector3f toScreenVector = new Vector3f(0, 0, 1);
Transform3D t3d = new Transform3D()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Mobile devices for developers I need to develop some programs for mobile devices but haven't decided the platform to build upon. I'm looking for Palm or Pocket PC devices that have Touch screen and Wi-Fi connection and are cheep because I'll need to buy several of them.
I don't really need camera, mp3 players, vide... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I read and write raw ip packets from java on a mac? What would be the easiest way to be able to send and receive raw network packets. Do I have to write my own JNI wrapping of some c API, and in that case what API am I looking for?
EDIT: I want to be able to do what wireshark does, i.e. record all incomming p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I create a database programmatically in SQL Server? How can I create a new database from my C# application?
I'm assuming once I create it, I can simply generate a connection string on the fly and connect to it, and the issue all the CREATE TABLE statements.
A: KB307283 explains how to create a database usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can I update in Linq an entity that is disconnected from database? Code below does not run correctly and throws InvalidOperationExcepiton.
public void Foo()
{
DataContext context = new DataContext();
LinqEntity item = new LinqEntity(){ Id = 1, Name = "John", Surname = "Doe"} ;
context.LinqEntities.Attach(item... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Generic Map/Reduce List Extensions in C# I am writing a few extensions to mimic the map and reduce functions in Lisp.
public delegate R ReduceFunction<T,R>(T t, R previous);
public delegate void TransformFunction<T>(T t, params object[] args);
public static R Reduce<T,R>(this List<T> list, ReduceFunction<T,R> r, R ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Is overloading the only way to have default function arguments in C#? Is it true that the only way to handle default function arguments is through function overloading?
For example, in PHP I can do this:
function foo($x, $y=0)
{
}
Would the best way to handle it in C# be this?
void foo(int x)
{
foo(x, 0);
}
void... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Using attributes to cut down on enum to enum mapping and enum/const to action switch statments I imagine everyone has seen code like:
public void Server2ClientEnumConvert( ServerEnum server)
{
switch(server)
{
case ServerEnum.One:
return ClientEnum.ABC
//And so on.
Instead of this b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there a way to get ms-access to display images from external files I've got an MS-Access app (1/10th MS-Acccess, 9/10ths MS-SQL) that needs to display photographs of some assets along with their specifications. Currently the images are stored in an MS-Access table as an OLE Object (and copy-n-pasted into the fiel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I install and use the ASP.NET AJAX Control Toolkit in my .NET 3.5 web applications? How do I get it to work with my project?
http://ajax.asp.net/
http://www.codeplex.com/AjaxControlToolkit/
A: Install the ASP.NET AJAX Control Toolkit
*
*Download the ZIP file
AjaxControlToolkit-Framework3.5SP1-DllOnly.zip
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How to find a Java Memory Leak How do you find a memory leak in Java (using, for example, JHat)? I have tried to load the heap dump up in JHat to take a basic look. However, I do not understand how I am supposed to be able to find the root reference (ref) or whatever it is called. Basically, I can tell that there ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "149"
} |
Q: Exceptions in Web Services My group is developing a service-based (.NET WCF) application and we're trying to decide how to handle exceptions in our internal services. Should we throw exceptions? Return exceptions serialized as XML? Just return an error code?
Keep in mind that the user will never see these excepti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Reading from a http-get presenting in Firefox bookmarks I'm trying to get a Firefox plugin to read data from a HTTP get, parse the results and present them as links in a bookmark-like drop-down menu.
My quesion then is: Does anyone have any sample code that will do this?
A: Having never developed one myself, I'm no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best way to pass a large number of arguments into a configuration dialog I've got a situation where I have a main form that pops up an advanced configuration form that just has half a dozen matched check boxes and combo boxes to select some advanced options (the check boxes to enable/disable, the combo to select a m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting Apache to modify static webpages on the fly I have been experimenting with woopra.com A web analytics tool. Which requires a piece of javascript code to be added to each page to function. This is easy enough with more dynamic sites with universal headers or footers but not for totally static html pages.
I at... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why do jQuery selectors sometimes not work in Internet Explorer I have a very strange problem. Under some elusive circumstances I fail to apply any jQuery selector on my pages under IE. It's OK under Firefox though. The jQuery function simply returns empty array.
Any suggestions?
Page is too complex to post it here... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How do you beta test an iphone app? How can you beta test an iPhone app? I can get it on my own device, and anyone that gives me a device, I can run it on theirs, but is there a way to do a limited release via the app store for beta testing?
Related: Also, see this question on getting your app onto phones without u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "469"
} |
Q: Does C# have built-in support for parsing page-number strings? Does C# have built-in support for parsing strings of page numbers? By page numbers, I mean the format you might enter into a print dialog that's a mixture of comma and dash-delimited.
Something like this:
1,3,5-10,12
What would be really nice is a solu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Is it okay to have a lot of database views? I infrequently (monthly/quarterly) generate hundreds of Crystal Reports reports using Microsoft SQL Server 2005 database views. Are those views wasting CPU cycles and RAM during all the time that I am not reading from them? Should I instead use stored procedures, tempora... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to compress JPEG images with ASP on Windows CE The ASP page gets data uses that to draw a graph, I then need to save the image created to JPEG to be displayed on the browser and also used in PDF and other format. What is the best way to compress the image? I am currently porting a JPEG compression library to ASP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Quick ls command I've got to get a directory listing that contains about 2 million files, but when I do an ls command on it nothing comes back. I've waited 3 hours. I've tried ls | tee directory.txt, but that seems to hang forever.
I assume the server is doing a lot of inode sorting. Is there any way to speed up th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: How to Compare Flags in C#? I have a flag enum below.
[Flags]
public enum FlagTest
{
None = 0x0,
Flag1 = 0x1,
Flag2 = 0x2,
Flag3 = 0x4
}
I cannot make the if statement evaluate to true.
FlagTest testItem = FlagTest.Flag1 | FlagTest.Flag2;
if (testItem == FlagTest.Flag1)
{
// Do something,
/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "162"
} |
Q: GUIDs as Primary Keys - Offline OLTP We are working on designing an application that is typically OLTP (think: purchasing system). However, this one in particular has the need that some users will be offline, so they need to be able to download the DB to their machine, work on it, and then sync back once they're on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the best way to migrate an existing messy webapp to elegant MVC? I joined a new company about a month ago. The company is rather small in size and has pretty strong "start-up" feel to it. I'm working as a Java developer on a team of 3 others. The company primarily sells a service to for businesses/business-t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to make a pipe loop in bash Assume that I have programs P0, P1, ...P(n-1) for some n > 0. How can I easily redirect the output of program Pi to program P(i+1 mod n) for all i (0 <= i < n)?
For example, let's say I have a program square, which repeatedly reads a number and than prints the square of that number, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: GUI/TUI linux library Is there any UI library that can be to build both a text user interface (ncurses) and graphical user interface (GTK? QT?) from the same source?
I know that debconf can be used with various frontends, I would like to build something similar but programmable.
A: The library that powers YaST inde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How many constructor arguments is too many? Let's say you have a class called Customer, which contains the following fields:
*
*UserName
*Email
*First Name
*Last Name
Let's also say that according to your business logic, all Customer objects must have these four properties defined.
Now, we can do this pretty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "162"
} |
Q: Finding the storage card path on WM6 Is there an easy way to find the storage card's path on a Windows Mobile device
when there is a storage card and a bluetooth ftp connection?
A: Keep in mind that "\Storage Card" is english oriented. A device made for a different region may have a different name. The name of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What's the best way to use SOAP with Ruby? A client of mine has asked me to integrate a 3rd party API into their Rails app. The only problem is that the API uses SOAP. Ruby has basically dropped SOAP in favor of REST. They provide a Java adapter that apparently works with the Java-Ruby bridge, but we'd like to ke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "91"
} |
Q: Redirecting ".local" subdomain to unicast DNS I regularly access Windows domains that have been set up to use a domain under the .local top level name. This conflicts with Bonjour/Zeroconf which reserves .local for it's own use. A number of platforms support Bonjour out of the box (including Mac OS, iPhone, and Ubun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Create object from database row Let's say I'm building a data access layer for an application. Typically I have a class definition for a each kind of object that is stored in the database. Of course, the actual data access retrieves data in the form of a datareader, typed or untyped dataset, or similar, usually wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Installer changes PATH variable, changes don't show up in Command Shell I added a custom install action to my installer to add one of my installation directories to the System PATH environment variable. After I run the installer, the PATH variable reflects the changes (when I access it through the Control Panel::Sys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Force unmount of NFS-mounted directory I have an NFS-mounted directory on a Linux machine that has hung. I've tried to force an unmount, but it doesn't seem to work:
$ umount -f /mnt/data
$ umount2: Device or resource busy
$ umount: /mnt/data: device is busy
If I type "mount", it appears that the directory is no lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "163"
} |
Q: I can't see "Report Builder" button in the Report Manager on SQL Server 2005 I am a member of all the roles (Browser, Content Manager, My Reports, Publisher, Report Builder). If I login with a Local Administrator account, I can see and use it fine. Any ideas?
A: Tried to do as was stated in the answer above. But di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to tell which disk Windows Used to Boot I'm need to find a method to programmatically determine which disk drive Windows is using to boot. In other words, I need a way from Windows to determine which drive the BIOS is using to boot the whole system.
Does Windows expose an interface to discover this? With how bi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What's the best way to work with SQL Server data non-programmatically? We have a SQL server database. To manipulate the data non-programmatically, I can use SQL Server Management Studio by right-clicking a table and selecting "Open Table". However this is slow for very large tables and sorting and filtering is cumbe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Coding magazines So, we have coding books, coding RSS feeds, and music to code by. Are there any coding magazines that anyone would recommend?
A: The Pragmatic Programmers' Pragmatic Bookshelf publishes a free magazine available online and for download in various formats:
Each month, our editor Michael Swaine
b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Whats the difference between RuntimeTypeHandle and Type? And why would I use one over the other in my code?
A: In .NET 4.0 Beta 1 RuntimeTypeHandle just wraps RuntimeType.
It seems all benefits of using it as a cheap Type proxy have gone.
Evidence for the above claim:
*
*Microsoft's Reference Source for the Sys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Can I create a value for a missing tag in XPath? I have an application which extracts data from an XML file using XPath. If a node in that XML source file is missing I want to return the value "N/A" (much like the Oracle NVL function). The trick is that the application doesn't support XSLT; I'd like to do this using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Maximum number of inodes in a directory? Is there a maximum number of inodes in a single directory?
I have a directory of over 2 million files and can't get the ls command to work against that directory. So now I'm wondering if I've exceeded a limit on inodes in Linux. Is there a limit before a 2^64 numerical limit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: How can you export the saved username and passwords in FireFox 2? I need to reformat my machine but I have so many user/passwords stored in FF2 that I just keep putting it off. Yes I know about backing up the entire profile and restoring it. But for some reason my profile has many issues and I want to start fresh wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Handle signals in the Java Virtual Machine Is it possible to handle POSIX signals within the Java Virtual Machine?
At least SIGINT and SIGKILL should be quite platform independent.
A: Perhaps Runtime#addShutdownHook ?
A: The JVM responds to signals on its own. Some will cause the JVM to shutdown gracefully, which ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What is the command to truncate a SQL Server log file? I need to empty an LDF file before sending to a colleague. How do I force SQL Server to truncate the log?
A: For SQL Server 2008, the command is:
ALTER DATABASE ExampleDB SET RECOVERY SIMPLE
DBCC SHRINKFILE('ExampleDB_log', 0, TRUNCATEONLY)
ALTER DATABASE Exam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "218"
} |
Q: How to traverse a maze programmatically when you've hit a dead end Moving through the maze forward is pretty easy, but I can't seem to figure out how to back up through the maze to try a new route once you hit a dead end without going back too far?
A: Use backtracking by keeping a stack of previous direction decisi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Autocomplete Dropdown with Linkbuttons - or "AJAX gone wild" Ok, so I want an autocomplete dropdown with linkbuttons as selections. So, the user puts the cursor in the "text box" and is greated with a list of options. They can either start typing to narrow down the list, or select one of the options on the list. As ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How would you implement Erlang-like send and receive in C++? Actually, this question seems to have two parts:
*
*How to implement pattern matching?
*How to implement send and receive (i.e. the Actor model)?
For the pattern matching part, I've been looking into various projects like App and Prop. These look pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: HTTP POST - I'm stuck I have to POST some parameters to a URL outside my network, and the developers on the other side asked me to not use HTTP Parameters: instead I have to post my key-values in HTTP Headers.
The fact is that I don't really understand what they mean: I tried to use a ajax-like post, with XmlHttp o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: sql missing rows when grouped by DAY, MONTH, YEAR If I select from a table group by the month, day, year,
it only returns rows with records and leaves out combinations without any records, making it appear at a glance that every day or month has activity, you have to look at the date column actively for gaps. How c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to get an array of distinct property values from in memory lists? I have a List of Foo.
Foo has a string property named Bar.
I'd like to use LINQ to get a string[] of distinct values for Foo.Bar in List of Foo.
How can I do this?
A: I'd go lambdas... wayyy nicer
var bars = Foos.Select(f => f.Bar).Distinct().ToA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are the differences between a HashMap and a Hashtable in Java? What are the differences between a HashMap and a Hashtable in Java?
Which is more efficient for non-threaded applications?
A: Note, that a lot of the answers state that Hashtable is synchronized. In practice this buys you very little. The synchro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4247"
} |
Q: Is Java "pass-by-reference" or "pass-by-value"? I always thought Java uses pass-by-reference. However, I read a blog post which claims that Java uses pass-by-value. I don't think I understand the distinction the author is making.
What is the explanation?
A: Java is always pass by value, not pass by reference
First ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7645"
} |
Q: Optimizing Conway's 'Game of Life' To experiment, I've (long ago) implemented Conway's Game of Life (and I'm aware of this related question!).
My implementation worked by keeping 2 arrays of booleans, representing the 'last state', and the 'state being updated' (the 2 arrays being swapped at each iteration). While t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Bug tracker setup with Git integration? I know I can do most of this by hacking Trac and using Git hooks, but I was wondering if someone has / knows of something ready.
Commenting on (and closing) tickets from commit messages would be nice, specially if the diff appears inline with the comment/closing remark.
sha1 h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Return function pointer to a nested function in C As the title already states, I'm trying to declare a nested function and return a pointer to that function. I want this function 'not' to return a new function pointer which will return the negation of whatever the original function was.
Here is what I have:
someType... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Call Functions within Function - Flash Actionscript 2.0 I'm trying to call a function after I load some XML into Actionscript, and I'm just wondering how I call that function. Example:
//Function Declarations
function parentFunction()
{
function callMe()
{
textField.text = "lawl";
}
}
Now, how do I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why should I use Feature Driven Development? Extreme Programming, Scrum and Test Driven Development definitely seem to be the most popular Agile methods at the moment. But someone recently suggested that I take a look at Feature Driven Development.
Have you ever used this method with any success? What are the advant... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Asp.Net MVC: How to determine if you're currently on a specific view I need to determine if I'm on a particular view. My use case is that I'd like to decorate navigation elements with an "on" class for the current view. Is there a built in way of doing this?
A: Here what i am using. I think this is actually gener... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.