Id
int64
4
8.51M
PostTypeId
int64
1
7
AcceptedAnswerId
int64
7
75.5M
ParentId
int64
4
41.8M
Score
int64
-208
27.7k
ViewCount
int64
11
12.4M
Body
stringlengths
0
45k
Title
stringlengths
2
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
225
CreationDate
stringdate
2008-07-31 21:42:52
2011-12-14 18:48:47
LastActivityDate
stringdate
2008-08-01 12:19:17
2023-03-05 04:40:26
LastEditDate
stringdate
2008-08-01 13:54:25
2023-03-05 03:12:45
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
-1
21.1M
Tags
listlengths
1
6
4,683
2
null
4,519
1
null
I had nothing but problems with Xming. When I could get it to work it was extremely slow (this is over a VPN). IMO X is not designed to run over slow connections its too chatty. And by slow connection I mean anything less then a LAN connection. My solution was to use x11vnc. It lets you access your existing X11 sessio...
null
CC BY-SA 3.0
null
2008-08-07T13:05:26.993
2015-08-20T22:12:41.130
2015-08-20T22:12:41.130
7,226
486
null
4,682
2
null
4,670
1
null
EDIT: Perhaps add a "dvcs", "distrubutedversioncontrol", "distrubuted" I've used Mercurial on Windows with no problems. You can use TortoiseHG or just use the command line. Mercurial does require Python, but that is easy to install in Windows as well. [Mercurial Binary Packages](http://www.selenic.com/mercurial/wiki/...
null
CC BY-SA 2.5
null
2008-08-07T13:05:01.783
2008-08-07T13:05:01.783
null
null
287
null
4,678
2
null
4,665
1
null
The normal way is to compute a [hash](http://en.wikipedia.org/wiki/Hash_function) of the two files and compare that. MD5 and SHA1 are typical hash algorithms. md5sum should be installed by default on most unix type machines, and Wikipedia's [md5sum](http://en.wikipedia.org/wiki/Md5sum) article has links to some windows...
null
CC BY-SA 2.5
null
2008-08-07T13:00:17.940
2008-08-07T13:00:17.940
null
null
588
null
4,684
1
4,706
null
21
3,373
I'm currently experimenting with build script, and since I have an ASP.net Web Part under source control, my build script should do that at the end: 1. Grab the "naked" Windows 2003 IIS VMWare or Virtual PC Image from the Network 2. Boot it up 3. Copy the Files from the Build Folder to the Server 4. Install it 5. Do ...
Automating VMWare or VirtualPC
CC BY-SA 2.5
0
2008-08-07T13:05:38.040
2016-01-09T11:15:36.843
null
null
91
[ "vmware", "virtualization" ]
4,686
2
null
4,677
8
null
Use the singleton module: ``` class Clazz include Singleton end ``` See [http://www.ruby-doc.org/stdlib/libdoc/singleton/rdoc/index.html](http://www.ruby-doc.org/stdlib/libdoc/singleton/rdoc/index.html) for more info.
null
CC BY-SA 2.5
null
2008-08-07T13:06:34.777
2008-08-07T13:06:34.777
null
null
410
null
4,694
2
null
4,689
51
null
I use Consolas for everything, including Notepad++, SQL Studio, Eclipse, etc. I wish there was a Mac version. Also, if you notice, the text area field on Stack Overflow uses Consolas, so we have some other fans out there as well :p
null
CC BY-SA 2.5
null
2008-08-07T13:12:46.527
2008-08-07T13:12:46.527
null
null
26
null
4,689
1
4,704
null
182
249,098
What fonts do you use for programming, and for what language/IDE? I use [Consolas](http://www.microsoft.com/downloads/details.aspx?familyid=22e69ae4-7e40-4807-8a86-b3d36fab68d3&displaylang=en) for all my Visual Studio work, any other recommendations?
Recommended Fonts for Programming?
CC BY-SA 2.5
0
2008-08-07T13:08:44.070
2017-02-03T15:43:43.503
2010-01-02T23:47:39.170
21,234
637
[ "fonts", "development-environment" ]
4,687
2
null
4,665
3
null
The only 100% way to figure out if two files are equal is to do a binary comparison of the two. If you can live with the risk of false positives (ie. two files which aren't 100% identical but your code says they are), then the digest and checksum algorithms can be used to lessen the work, particularly if the files liv...
null
CC BY-SA 2.5
null
2008-08-07T13:07:12.747
2008-08-07T13:07:12.747
null
null
267
null
4,698
2
null
4,689
7
null
Adding a vote for Consolas. It feels very easy on my eyes.
null
CC BY-SA 2.5
null
2008-08-07T13:14:34.293
2008-08-07T13:14:34.293
null
null
309,844
null
4,701
2
null
4,689
7
null
I never found a reason to stray from Courier New. I don't think I'd have a problem with any font so long as it's sans-serif. Mono-spaced fonts are nice for coding, too.
null
CC BY-SA 2.5
null
2008-08-07T13:15:48.517
2008-08-07T13:15:48.517
null
null
557
null
4,695
2
null
4,689
15
null
I don't use Consolas, though it does look good on LCD, but sometimes I'm not on LCD, like when I'm giving presentations and then it looks crap. My current font of choice for programming is the [Liberation Mono](http://www.press.redhat.com/2007/05/09/liberation-fonts/) font. Oh man, just discovered why the text on Sta...
null
CC BY-SA 2.5
null
2008-08-07T13:12:58.057
2008-08-07T13:16:41.013
2008-08-07T13:16:41.027
267
267
null
4,700
2
null
4,689
3
null
+1 for Consolas, together with a proper [Color Scheme](http://www.codinghorror.com/blog/archives/000682.html) (I use the white one at the first screenshot)
null
CC BY-SA 2.5
null
2008-08-07T13:15:42.247
2008-08-07T13:15:42.247
null
null
91
null
4,692
2
null
2,630
2
null
I wrote a PowerShell provider to give me access to IE7's RSS feed store, and had lots of fun with it. It lets me `cd` to a drive called `feed:` and navigate around folders and feeds using `cd` and `dir`. It even lets you add or remove feeds from the command line. See this post on my blog as an example: [Getting the ...
null
CC BY-SA 3.0
null
2008-08-07T13:11:06.657
2012-11-04T08:08:41.123
2012-11-04T08:08:41.123
902,217
615
null
4,697
2
null
4,689
23
null
For UltraEdit and anything for that matter, I use the good old [alt text http://www.identifont.com/samples/microsoft/CourierNew.gif](http://www.identifont.com/samples/microsoft/CourierNew.gif) I've found Consolas to difficult to read with it's over anti-aliasing.
null
CC BY-SA 2.5
null
2008-08-07T13:14:06.697
2008-08-07T13:25:26.080
2008-08-07T13:25:26.080
383
383
null
4,696
2
null
4,670
4
null
I use [msys-git](http://code.google.com/p/msysgit/) on windows every single day. Works fast and flawlessly. Although the newer build has some problems with git-svn, [this build (Git-1.5.5-preview20080413.exe)](http://msysgit.googlecode.com/files/Git-1.5.5-preview20080413.exe) has a working git-svn.
null
CC BY-SA 2.5
null
2008-08-07T13:13:37.367
2008-08-07T13:13:37.367
null
null
309,844
null
4,691
2
null
4,519
5
null
Chances are it's either X authentication, the X server binding to an interface, or your DISPLAY variable. I don't use Xming myself but there are some general phenomenon to check for. One test you can do to manually verify the DISPLAY variable is correct is: 1. Start your VPN. Run ipconfig to be sure you have the two ...
null
CC BY-SA 2.5
null
2008-08-07T13:11:03.067
2008-08-07T13:11:03.067
null
null
360
null
4,707
2
null
4,689
10
null
I use [Inconsolata](http://www.levien.com/type/myfonts/inconsolata.html) with UltraEdit on Windows. With TextMate (on the Mac) I prefer Monaco (it's the default font).
null
CC BY-SA 2.5
null
2008-08-07T13:32:14.897
2008-08-07T13:32:14.897
null
null
341
null
4,704
2
null
4,689
197
null
Either Consolas [(download)](http://www.microsoft.com/downloads/details.aspx?familyid=22e69ae4-7e40-4807-8a86-b3d36fab68d3&displaylang=en) or Andale Mono [(download)](http://prdownloads.sourceforge.net/corefonts/andale32.exe?download). I mostly use Andale Mono. I wrote an article about programming fonts [a long time ag...
null
CC BY-SA 2.5
null
2008-08-07T13:28:17.040
2009-01-27T20:54:43.597
2009-01-27T20:54:43.597
3,043
556
null
4,703
2
null
4,665
3
null
Hashing is very good. But the other, slightly lower tech alternative is to run a diff tool like WinMerge or TextWrangler and compare the two versions of each file. Boring and there's room for human error. Best of all, use version control to ensure the files you're testing are the files you edited and the ones you're g...
null
CC BY-SA 2.5
null
2008-08-07T13:17:45.673
2008-08-07T13:17:45.673
null
null
137
null
4,702
2
null
104
6
null
Also keep in mind that .NET has two heaps, one being the large object heap. I believe objects of roughly 85k or larger are put on this heap. This heap has a different lifetime rules than the regular heap. If you are creating large memory structures (Dictionary's or List's) it would prudent to go lookup what the exact ...
null
CC BY-SA 3.0
null
2008-08-07T13:17:27.547
2012-01-26T15:52:26.423
2012-01-26T15:52:26.423
231,716
645
null
4,712
2
null
4,617
1
null
The users outside the network can make [patches](http://hgbook.red-bean.com/hgbookch12.html#x16-26800012.1), and/or use [email](http://hgbook.red-bean.com/hgbookch14.html#x18-32100014.4) to send the updates to the main repo or someone, like yourself to merge them. The other internal people can have local copies, like y...
null
CC BY-SA 2.5
null
2008-08-07T13:37:30.300
2008-08-07T13:37:30.300
null
null
157
null
4,706
2
null
4,684
21
null
With VMWare, there is the [Virtual Machine Automation APIs (VIX API)](http://www.vmware.com/support/developer/vix-api/). You can find the reference guide [here](http://pubs.vmware.com/vix-api/ReferenceGuide/). It works with VMWare Server and WorkStation, but AFAIK it's not available for ESX Server. From the main pag...
null
CC BY-SA 2.5
null
2008-08-07T13:31:29.733
2008-08-07T13:31:29.733
null
null
206
null
4,724
1
4,755
null
130
59,980
I really feel that I should learn [Lisp](http://en.wikipedia.org/wiki/Lisp_(programming_language)) and there are plenty of good resources out there to help me do it. I'm not put off by the complicated syntax, but where in "traditional commercial programming" would I find places it would make sense to use it instead of...
Why should I learn Lisp?
CC BY-SA 3.0
0
2008-08-07T13:54:03.137
2020-06-20T10:02:12.567
2014-12-16T18:33:31.480
314,291
381
[ "functional-programming", "lisp" ]
4,716
2
null
4,689
28
null
+1 for Monaco, although [this blog post](http://thinkingdigitally.com/archive/ditching-monaco/) is making me think about switching to [Inconsolata](http://www.levien.com/type/myfonts/inconsolata.html). I'm curious as to what point size y'all use, I use the [TextMate](http://macromates.com/) default size of 12pt.
null
CC BY-SA 2.5
null
2008-08-07T13:40:17.703
2008-08-07T13:40:17.703
null
null
444
null
4,736
1
null
null
166
148,068
I don't really understand regular expressions. Can you explain them to me in an easy-to-follow manner? If there are any online tools or books, could you also link to them?
Learning Regular Expressions
CC BY-SA 3.0
0
2008-08-07T14:05:23.677
2022-11-11T14:30:45.603
2015-01-07T14:39:54.033
16,587
1,384,652
[ "regex" ]
4,733
2
null
4,724
3
null
Complicated syntax? The beauty of lisp is that it has a ridiculously simple syntax. It's just a list, where each element of the list can be either another list or an elementary data type. It's worth learning because of the way it enhances your coding ability to think about and use functions as just another data type....
null
CC BY-SA 2.5
null
2008-08-07T14:01:59.687
2008-08-07T14:01:59.687
null
null
390
null
4,717
2
null
4,052
2
null
All I needed to get full-text indexing to work was the... > CREATE FULLTEXT CATALOG [myFullText] WITH ACCENT_SENSITIVITY = ON After that I could run a CREATE FULLTEXT INDEX query or use the Manage FullText Index in MSSQL Management Studio.
null
CC BY-SA 3.0
null
2008-08-07T13:40:21.307
2017-12-14T09:48:20.193
2017-12-14T09:48:20.193
3,817,004
576
null
4,725
2
null
4,724
48
null
?? The syntax for lisp is . Killer app written in lisp: [emacs](http://www.gnu.org/software/emacs/). Lisp will allow you to extend emacs at will to do almost anything you can think of that an editor might do. , you should only learn lisp if you to, and you may never get to use at work ever, but it is still awesom...
null
CC BY-SA 2.5
null
2008-08-07T13:56:51.430
2008-08-07T23:29:05.283
2008-08-07T23:29:05.283
92
92
null
4,730
2
null
4,724
3
null
I agree that Lisp is one of those languages that you may never use in a commercial setting. But even if you don't get to, learning it will definitely expand your understanding of programming as a whole. For example, I learned Prolog in college and while I never used it after, I gave me a greater understanding of many...
null
CC BY-SA 2.5
null
2008-08-07T14:01:22.623
2008-08-07T14:01:22.623
null
null
194
null
4,729
2
null
4,724
26
null
I can't answer from first-hand experience but you should read what [Paul Graham](http://en.wikipedia.org/wiki/Paul_Graham) wrote [on Lisp](http://www.paulgraham.com/lisp.html). As for the "killer-app" part, read [Beating the averages](http://www.paulgraham.com/avg.html).
null
CC BY-SA 2.5
null
2008-08-07T14:00:39.473
2008-08-07T14:00:39.473
null
null
341
null
4,732
2
null
4,689
12
null
I like [Fixedsys](http://en.wikipedia.org/wiki/Fixedsys) in Visual Studio. It's a classic. No anti-aliasing blur. ![Fixedsys Typeface](https://upload.wikimedia.org/wikipedia/commons/2/23/Fixedsys_Basic.png)
null
CC BY-SA 2.5
null
2008-08-07T14:01:32.200
2008-08-07T14:01:32.200
2017-02-08T14:00:18.347
-1
83
null
4,746
2
null
4,738
130
null
Try this: ``` System.Configuration.ConfigurationFileMap fileMap = new ConfigurationFileMap(strConfigPath); //Path to your config file System.Configuration.Configuration configuration = System.Configuration.ConfigurationManager.OpenMappedMachineConfiguration(fileMap); ```
null
CC BY-SA 2.5
null
2008-08-07T14:14:44.187
2008-08-07T14:14:44.187
null
null
227
null
4,738
1
4,746
null
131
110,531
I'm developing a data access component that will be used in a website that contains a mix of classic ASP and ASP.NET pages, and need a good way to manage its configuration settings. I'd like to use a custom `ConfigurationSection`, and for the ASP.NET pages this works great. But when the component is called via COM in...
Using ConfigurationManager to load config from an arbitrary location
CC BY-SA 3.0
0
2008-08-07T14:07:21.033
2022-10-04T11:29:03.450
2013-03-19T20:33:40.473
1,518,087
205
[ "asp.net", "configuration", "asp-classic" ]
4,744
2
null
4,724
3
null
Okay, I might be weird but I really don't like Paul Graham's essays that much & on Lisp is a really rough going book if you don't have some grasp of Common Lisp already. Instead, I'd say go for Siebel's [Practical Common Lisp](http://www.gigamonkeys.com/book/). As for "killer-apps", Common Lisp seems to find its plac...
null
CC BY-SA 4.0
null
2008-08-07T14:12:15.563
2020-06-20T10:02:12.567
2020-06-20T10:02:12.567
9,780,149
634
null
4,753
2
null
4,689
18
null
I use Consolas on my mac, BTW; [here's a link to download the consolas TTF files](http://pastrana.co.uk/consolas/) if you want to install this (Mac/Win/Linux). /mp
null
CC BY-SA 2.5
null
2008-08-07T14:22:34.453
2008-08-07T14:22:34.453
null
null
547
null
4,782
1
70,009
null
21
1,742
How much database performance overhead is involved with using C# and LINQ compared to custom optimized queries loaded with mostly low-level C, both with a SQL Server 2008 backend? I'm specifically thinking here of a case where you have a fairly data-intensive program and will be doing a data refresh or update at least...
How much database performance overhead when using LINQ?
CC BY-SA 2.5
null
2008-08-07T14:38:59.723
2008-12-17T04:43:06.463
2008-08-08T16:51:25.237
177
177
[ "sql-server", "linq", "performance", "linq-to-sql" ]
4,755
2
null
4,724
58
null
One of the main uses for Lisp is in Artificial Intelligence. A friend of mine at college took a graduate AI course and for his main project he wrote a "[Lights Out](http://en.wikipedia.org/wiki/Lights_Out_(video_game))" solver in Lisp. Multiple versions of his program utilized slightly different AI routines and testin...
null
CC BY-SA 3.0
null
2008-08-07T14:22:36.603
2011-11-13T18:45:44.007
2011-11-13T18:45:44.007
102,937
271
null
4,794
1
4,919
null
20
8,435
I've written (most of) an application in Flex and I am concerned with protecting the source code. I fired up a demo of [Trillix swf decompiler](http://www.flash-decompiler.com/) and opened up the swf file that was installed to my Program Files directory. I saw that all of the actionscript packages I wrote were there. I...
Flex / Air obfuscation
CC BY-SA 2.5
0
2008-08-07T14:41:42.883
2014-01-12T17:31:28.873
null
null
26
[ "apache-flex", "actionscript-3", "air", "obfuscation" ]
4,816
1
4,821
null
30
6,402
How do you resolve a domain name to an IP address with .NET/C#?
How do you resolve a domain name to an IP address with .NET/C#?
CC BY-SA 2.5
null
2008-08-07T14:56:59.797
2019-12-27T07:06:30.937
2012-07-18T17:17:40.483
1,453,461
390
[ "c#", ".net", "dns", "reverse-dns" ]
4,823
2
null
4,816
1
null
Try using the [System.Net.Dns](https://learn.microsoft.com/en-us/dotnet/api/system.net.dns) class
null
CC BY-SA 4.0
null
2008-08-07T15:00:08.027
2019-12-27T07:06:30.937
2019-12-27T07:06:30.937
5,407,188
51
null
4,768
2
null
4,519
0
null
You may have better luck doing [X11 Forwarding](http://tldp.org/HOWTO/XDMCP-HOWTO/ssh.html) through SSH rather than fiddling with your DISPLAY variable directly. X11 Forwarding with SSH is secure and uses the existing SSH connection to tunnel, so working through a VPN should be no problem. Fortunately this is fairly ...
null
CC BY-SA 2.5
null
2008-08-07T14:31:09.207
2008-08-07T20:01:24.737
2008-08-07T20:01:24.737
462
462
null
4,821
2
null
4,816
20
null
``` using System.Net; foreach (IPAddress address in Dns.GetHostAddresses("www.google.com")) { Console.WriteLine(address.ToString()); } ```
null
CC BY-SA 3.0
null
2008-08-07T14:59:15.517
2013-05-01T16:38:15.217
2013-05-01T16:38:15.217
427,309
275
null
4,752
1
97,256
null
16
3,415
We've been having some issues with a SharePoint instance in a test environment. Thankfully this is not production ;) The problems started when the disk with the SQL Server databases and search index ran out of space. Following this, the search service would not run and search settings in the SSP were not accessible. Re...
MOSS SSP Issue - Failed database logons from deleted SSP
CC BY-SA 3.0
null
2008-08-07T14:21:10.087
2018-04-10T19:37:29.113
2014-12-09T13:39:52.677
2,641,576
636
[ "sql-server", "database", "sharepoint", "search", "ssp" ]
4,785
1
null
null
15
14,080
In a installation of WebSphere Application Server with Network Deployment, a node is: 1. a physical machine 2. an instance of operative system 3. a logical set of WAS instances that is independent of physical machine or OS instance
What is called a Node in a WebSpere Network Deployment
CC BY-SA 2.5
0
2008-08-07T14:39:25.243
2015-09-08T21:43:45.943
2012-07-02T10:26:48.037
97,160
527
[ "deployment", "websphere", "cluster-computing" ]
4,828
2
null
4,782
2
null
Thanks Stu. Bottom line seems to be that LINQ to SQL probably doesn't have a significant database performance overhead with the newer versions if you are able to use a compiled select, and the slower functions of updating are likely to be faster unless you have a REALLY sharp expert doing most of the coding.
null
CC BY-SA 2.5
null
2008-08-07T15:02:49.707
2008-08-07T15:02:49.707
null
null
177
null
4,829
2
null
4,824
0
null
If you are not totally tied to pure C and can use string.h there is strchr() [See here](http://www.cplusplus.com/reference/clibrary/cstring/strchr.html)
null
CC BY-SA 2.5
null
2008-08-07T15:04:16.100
2008-08-07T15:04:16.100
null
null
194
null
4,824
1
4,838
null
46
101,509
Is there a C library function that will return the index of a character in a string? So far, all I've found are functions like strstr that will return the found char *, not it's location in the original string.
String.indexOf function in C
CC BY-SA 2.5
0
2008-08-07T15:00:34.530
2018-01-15T14:38:31.557
null
null
75
[ "c", "string" ]
4,817
2
null
1,644
0
null
1. Podcasts from Dr.Dobbs Journal ITConversations SE-Radio Channel 9
null
CC BY-SA 2.5
null
2008-08-07T14:58:20.353
2008-08-08T09:12:21.223
2008-08-08T09:12:21.223
123
123
null
4,833
2
null
4,824
13
null
EDIT: strchr is better only for one char. Pointer aritmetics says "Hellow!": ``` char *pos = strchr (myString, '#'); int pos = pos ? pos - myString : -1; ``` strchr () returns NULL if no string is found
null
CC BY-SA 2.5
null
2008-08-07T15:05:07.877
2010-10-24T12:51:05.770
2010-10-24T12:51:05.770
501
501
null
4,832
2
null
4,824
39
null
`strstr` returns a pointer to the found character, so you could use pointer arithmetic: (Note: this code not tested for its ability to compile, it's one step away from pseudocode.) ``` char * source = "test string"; /* assume source address is */ /* 0x10 for example */ c...
null
CC BY-SA 2.5
null
2008-08-07T15:04:47.440
2010-10-24T23:33:33.030
2010-10-24T23:33:33.030
102
102
null
4,777
2
null
4,661
23
null
I think each site that implements OpenID would have to build their software to allow multiple entries for your OpenID credentials. However, just because a site doesn't allow you to create multiple entries doesn't mean you can't swap out OpenID suppliers. ## How to turn your blog into an OpenID STEP 1: Get an Open...
null
CC BY-SA 3.0
null
2008-08-07T14:36:06.890
2016-02-07T14:24:47.220
2016-02-07T14:24:47.220
2,921,691
519
null
4,834
2
null
4,824
4
null
You can use strstr to accomplish what you want. Example: ``` char *a = "Hello World!"; char *b = strstr(a, "World"); int position = b - a; printf("the offset is %i\n", position); ``` This produces the result: ``` the offset is 6 ```
null
CC BY-SA 2.5
null
2008-08-07T15:07:47.730
2008-08-07T15:07:47.730
null
null
658
null
4,852
2
null
4,839
0
null
The default CSS and HTML editors for Eclipse are really good. The default javascript editor does an OK job, but it needs a little work. I just tested this in Eclipse 3.3.2 ``` function test(){ } te<CTRL+SPACE> ``` and it completed the method for me as did this: ``` var test = function(){ }; te<CTRL+SPACE> ```...
null
CC BY-SA 2.5
null
2008-08-07T15:24:12.847
2008-08-07T15:24:12.847
null
null
309,844
null
4,854
2
null
4,661
3
null
> @prakeshAs long as you associate all of them to the same email address, i would think it would lead you to same account.But whats your experience? When I tried it out I got a whole new account with 0 rep and no steenkin badges. So at the moment SO does not allow multiple OpenID's to be associated with the one ...
null
CC BY-SA 2.5
null
2008-08-07T15:27:55.177
2008-08-07T15:27:55.177
null
null
274
null
4,838
2
null
4,824
14
null
I think that > size_t strcspn ( const char * str1, const char * str2 ); is what you want. Here is an example pulled from [here](http://www.cplusplus.com/reference/clibrary/cstring/strcspn.html): ``` /* strcspn example */ #include <stdio.h> #include <string.h> int main () { char str[] = "fcba73"; char keys[] = "...
null
CC BY-SA 2.5
null
2008-08-07T15:09:30.973
2008-08-07T15:09:30.973
null
null
309,844
null
4,869
2
null
4,689
1
null
I have to agree with Kevin Kenny, Proggy fonts all the way, though I prefer Proggy Clean. But either way you have to go with a font that clearly shows the difference between the number 0 and the letter O. Which the preview font here doesn't really show that.
null
CC BY-SA 2.5
null
2008-08-07T15:43:02.027
2008-08-07T15:43:02.027
null
null
657
null
4,850
1
5,026
null
25
9,552
I am new to C# and am doing some work in an existing application. I have a DirectX viewport that has components in it that I want to be able to position using arrow keys. Currently I am overriding ProcessCmdKey and catching arrow input and send an OnKeyPress event. This works, but I want to be able to use modifiers()....
C# and Arrow Keys
CC BY-SA 3.0
0
2008-08-07T15:23:28.883
2014-02-24T06:25:15.813
2014-02-24T06:25:15.813
2,096,990
41
[ "c#", "user-interface", "directx" ]
4,849
1
null
null
18
1,018
I have a WinForms program written on .NET 2 which hosts a webbrowser control and renders asp.net pages from a known server. I would like to be able to drag, say, a tree node from a treeview in my winforms app into a specific location in the hosted web page and have it trigger a javascript event there. Currently, I can...
Drag and Drop to a hosted Browser control
CC BY-SA 3.0
0
2008-08-07T15:22:40.167
2011-09-09T09:51:48.833
2011-09-09T09:51:48.833
213,550
618
[ "c#", "browser" ]
4,860
1
17,014
null
12
564
We have a question with regards to XML-sig and need detail about the optional elements as well as some of the canonicalization and transform stuff. We're writing a spec for a very small XML-syntax payload that will go into the metadata of media files and it needs to by cryptographically signed. Rather than re-invent ...
Authoritative source on XML-sig
CC BY-SA 3.0
null
2008-08-07T15:33:59.223
2014-09-10T20:14:22.060
2014-09-10T20:14:22.060
2,974,754
661
[ "xml", "xml-signature" ]
4,839
1
4,877
null
8
3,521
My dream IDE does full code hints, explains and completes PHP, Javascript, HTML and CSS. I know it exists! so far, [Zend studio 6](http://www.zend.com/en/products/studio/features), under the Eclipse IDE does a great job at hinting PHP, some Javascript and HTML, any way I can expand this? edit: a bit more information:...
How do I configure eclipse (zend studio 6) to hint and code complete several languages?
CC BY-SA 3.0
null
2008-08-07T15:12:10.530
2013-02-12T11:55:21.800
2013-02-12T11:55:21.800
1,201,415
547
[ "zend-studio", "code-completion" ]
4,885
2
null
4,880
4
null
I agree with you in that it is quite an annoyance to me (I also copy and paste my address into the second input). That being said, for less savvy users, it is probably a good idea. Watching my mother type is affirmation that many users do not look at the screen when they type (when she's using her laptop she resembles...
null
CC BY-SA 2.5
null
2008-08-07T15:58:31.717
2008-08-07T15:58:31.717
null
null
271
null
4,886
2
null
4,880
11
null
I would just use one input box. The "Confirm" input is a remnant form the "Confirm Password" method. With passwords, this is useful because they are usually typed as little circles. So, you can't just look at it to make sure that you typed it correctly. With a regular text box, you can visually check your input. So...
null
CC BY-SA 2.5
null
2008-08-07T16:00:04.847
2008-08-07T16:00:04.847
null
null
106
null
4,888
2
null
4,880
3
null
I agree with Justin, while most technical folks will use the copy, paste method, for the less savvy users it is a good practice. One more thing that I would add is that the second field should have the auto-complete feature disabled. This ensures that there is human input from either method on at least one of the fie...
null
CC BY-SA 2.5
null
2008-08-07T16:02:00.663
2008-08-07T16:02:00.663
null
null
312
null
4,883
2
null
4,870
1
null
Without doing detailed analysis, I'd guess that it's faster because of the question marks. These allow the regular expression to be "lazy," and stop as soon as they have enough to match, rather than checking if the rest of the input matches. I'm not entirely happy with this answer though, because this mostly applies t...
null
CC BY-SA 3.0
null
2008-08-07T15:57:16.133
2013-02-06T05:53:21.500
2013-02-06T05:53:21.500
938,024
55
null
4,880
1
null
null
27
4,047
My organization has a form to allow users to update their email address with us. It's suggested that we have two input boxes for email: the second as an email confirmation. I always copy/paste my email address when faced with the confirmation. I'm assuming most of our users are not so savvy. Regardless, is this consi...
Is a "Confirm Email" input good practice when user changes email address?
CC BY-SA 2.5
0
2008-08-07T15:54:22.537
2010-05-21T08:27:07.290
2008-08-23T18:04:58.350
2,134
323
[ "html", "email", "forms", "confirm" ]
4,877
2
null
4,839
2
null
I think the JavaScript and CSS need to be in separate files for this to work. Example of CSS autocomplete in Eclipse: Starting to type `border` > ![css example in eclipse](https://i.stack.imgur.com/h4Sj9.png) Then setting thickness > ![autocompleting border thickness](https://i.stack.imgur.com/mmaEe.png) Then cho...
null
CC BY-SA 3.0
null
2008-08-07T15:47:35.420
2012-03-28T19:54:48.593
2012-03-28T19:54:48.593
122,607
309,844
null
4,891
1
4,908
null
11
1,010
When developing whether its Web or Desktop at which point should a developer switch from SQLite, MySQL, MS SQL, etc
What point should someone decide to switch Database Systems
CC BY-SA 3.0
null
2008-08-07T16:06:33.947
2019-07-22T14:38:24.287
2012-05-03T14:06:32.257
1,280,410
567
[ "sql", "database" ]
4,910
2
null
2,328
2
null
If you're already shuffling the ViewState around anyway, you might as well use an UpdatePanel. Its partial postbacks update the page's ViewState automatically.
null
CC BY-SA 2.5
null
2008-08-07T16:19:34.683
2008-08-07T16:19:34.683
null
null
60
null
4,884
1
13,918
null
20
1,995
I have a custom built ajax [div] based dynamic dropdown. I have an [input] box which; `onkeyup`, runs an Ajax search which returns results in `div`s and are drawn back in using `innerHTML`. These `div`s all have highlights `onmouseover` so, a typical successful search yields the following structure (pardon the semi-c...
How to keyboard down or up between dropdown "options"?
CC BY-SA 4.0
0
2008-08-07T15:58:10.313
2019-01-18T08:01:20.077
2019-01-18T08:01:20.077
567,854
547
[ "javascript", "events", "dom", "keyboard" ]
4,913
1
4,924
null
48
33,397
Using VS2008, C#, .Net 2 and Winforms how can I make a regular Button look "pressed"? Imagine this button is an on/off switch. `ToolStripButton` has the Checked property, but the regular Button does not.
How to make a button appear as if it is pressed?
CC BY-SA 3.0
0
2008-08-07T16:21:59.280
2017-12-22T10:09:05.793
2017-12-22T10:09:05.793
3,804,420
626
[ "c#", ".net", "winforms", "user-interface", "button" ]
4,903
2
null
4,880
1
null
I'd say that this is ok but should only be reserved for forms where the email is essential. If you mistype your email for your flight booking then you have severed the two-way link between yourself and the other party and risk not getting the confirmation number, here on StackOverflow it would only mean your Gravatar w...
null
CC BY-SA 2.5
null
2008-08-07T16:16:37.607
2008-08-07T16:16:37.607
null
null
199
null
4,897
2
null
4,884
1
null
Off the top of my head, I would think that you'd need to maintain some form of a data structure in the JavaScript that reflects the items in the current dropdown list. You'd also need a reference to the currently active/selected item. Each time `keyup` or `keydown` is fired, update the reference to the active/selecte...
null
CC BY-SA 3.0
null
2008-08-07T16:11:58.413
2016-02-10T16:10:51.103
2016-02-10T16:10:51.103
92,701
20
null
4,908
2
null
4,891
4
null
It depends on what you are doing. You might switch if: - - - - - - There are many more reasons for switching and it all depends on your requirements and the attributes of the databases.
null
CC BY-SA 4.0
null
2008-08-07T16:19:10.753
2019-07-22T14:38:24.287
2019-07-22T14:38:24.287
636
636
null
4,870
1
null
null
16
5,033
I'm writing a Telnet client of sorts in C# and part of what I have to parse are ANSI/VT100 escape sequences, specifically, just those used for colour and formatting (detailed [here](http://www.termsys.demon.co.uk/vtansi.htm#colors)). One method I have is one to find all the codes and remove them, so I can render the t...
Why is this regular expression faster?
CC BY-SA 2.5
null
2008-08-07T15:43:11.467
2013-02-06T05:53:21.500
2008-09-17T21:18:19.503
483
483
[ "regex", "ansi" ]
4,911
1
5,057
null
33
32,140
So in my simple learning website, I use the built in ASP.NET authentication system. I am adding now a user table to save stuff like his zip, DOB etc. My question is: 1. In the new table, should the key be the user name (the string) or the user ID which is that GUID looking number they use in the asp_ tables. 2. If ...
Should I use the username, or the user's ID to reference authenticated users in ASP.NET
CC BY-SA 3.0
0
2008-08-07T16:19:40.487
2015-12-17T11:59:36.797
2015-12-17T11:59:36.797
5,550,041
350
[ "asp.net", "authentication" ]
4,918
2
null
4,911
35
null
You should use some unique ID, either the GUID you mention or some other auto generated key. However, this number should never be visible to the user. A huge benefit of this is that all your code can work on the user ID, but the user's name is not really tied to it. Then, the user can change their name (which I've f...
null
CC BY-SA 2.5
null
2008-08-07T16:26:40.910
2008-08-07T16:26:40.910
null
null
122
null
4,915
2
null
4,870
3
null
The reason why #1 is slower is that [\d;]+ is a greedy quantifier. Using +? or *? is going to do lazy quantifing. See [MSDN - Quantifiers](http://msdn.microsoft.com/en-us/library/3206d374(VS.80).aspx) for more info. You may want to try: ``` "(\e\[(\d{1,2};)*?[mz]?)?" ``` That may be faster for you.
null
CC BY-SA 2.5
null
2008-08-07T16:24:02.570
2008-08-07T16:47:48.027
2008-08-07T16:47:48.027
309,844
309,844
null
4,924
2
null
4,913
94
null
One method you can used to obtain this option is by placing a "CheckBox" object and changing its "Appearance" from "Normal" to "Button" this will give you the same functionality that I believe you are looking for.
null
CC BY-SA 2.5
null
2008-08-07T16:30:46.953
2008-08-07T16:30:46.953
null
null
567
null
4,929
2
null
4,880
2
null
As long as a field is viewable, you do not need a confirm box. As long as you do some form validation to be sure that it is at least in valid format for an email address let the user manage the rest of the issues.
null
CC BY-SA 2.5
null
2008-08-07T16:34:49.350
2008-08-07T16:34:49.350
null
null
673
null
4,923
1
5,156
null
68
24,162
I'm using `ColdFusion` to populate a template that includes HTML unordered lists (`<ul>`s). Most of these aren't that long, but a few have ridiculously long lengths and could really stand to be in 2-3 columns. Is there an HTML, ColdFusion or perhaps JavaScript (I'm accepting jQuery solutions) way to do this easily? ...
Wrapping lists into columns
CC BY-SA 4.0
0
2008-08-07T16:30:45.613
2019-07-11T14:02:06.903
2019-07-11T14:02:06.903
10,221,765
666
[ "javascript", "jquery", "html", "css", "cfml" ]
4,931
2
null
4,880
18
null
I've seen plenty of people type their email address wrong and I've also looked through user databases full of invalid email address. The way I see it you've got two options. Use a second box to confirm the input, or send an authentication/activation email. Both are annoyances so you get to choose which you think wil...
null
CC BY-SA 2.5
null
2008-08-07T16:36:19.953
2008-08-07T16:36:19.953
null
null
666
null
4,930
1
null
null
20
4,966
I'm developing a Sharepoint application and use .NET AjaxControlToolkit library, we are adding a custom aspx page to the Sharepoint. Sharepoint 2007 run in quirks mode so I've made some modification to the AJAX library to make it behave like it normally should. The problem is, the other team already uses the AJAX libra...
How to reference to multiple version assembly
CC BY-SA 4.0
0
2008-08-07T16:35:33.060
2020-02-24T11:02:21.587
2020-02-24T11:02:21.587
7,014,431
668
[ "c#", ".net", "sharepoint", "assemblies" ]
4,932
2
null
4,922
5
null
Yes it is, try it out in a test. You will see "long" printed. It is widening because Java will choose to widen the int into a long before it chooses to autobox it to an Integer, so the hello(long) method is chosen to be called. Edit: [the original post being referenced](https://stackoverflow.com/questions/4242/why-c...
null
CC BY-SA 2.5
null
2008-08-07T16:36:25.447
2008-08-07T16:41:42.020
2017-05-23T12:31:55.937
-1
122
null
4,919
2
null
4,794
12
null
Here's what I would do. - Compile your application to a SWF file. Then encrypt the SWF using AES.- Make a "wrapper" application that loads the encrypted SWF into a ByteArray using URLLoader- Use the [as3crypto](http://code.google.com/p/as3crypto/) library to decrypt the swf at runtime.- Once decrypted, use Loader.load...
null
CC BY-SA 2.5
null
2008-08-07T16:28:34.337
2008-08-07T16:28:34.337
null
null
22
null
4,936
2
null
4,911
0
null
I agree with Mike Stone. I would also suggest only using a GUID in the event you are going to be tracking an enormous amount of data. Otherwise, a simple auto incrementing integer (Id) column will suffice. If you do need the GUID, .NET is lovely enough that you can get one by a simple... ``` Dim guidProduct As Guid =...
null
CC BY-SA 2.5
null
2008-08-07T16:38:08.827
2008-08-07T16:38:08.827
null
null
71
null
4,934
2
null
3,666
2
null
If your willing to force the user to also install another application, you could write a small C# or C++ windows service that simply opens a Socket that provides some kind of protocol for accessing the registry. Then in AIR you can use the Socket class to send messages to/from the C# service that would return results t...
null
CC BY-SA 2.5
null
2008-08-07T16:37:02.557
2008-08-07T16:37:02.557
null
null
22
null
4,940
2
null
3,666
0
null
You could theoretically modify the actual registry files, but I would highly discourage that idea.
null
CC BY-SA 2.5
null
2008-08-07T16:39:35.690
2008-08-07T16:39:35.690
null
null
574
null
4,922
1
5,091
null
31
4,572
I saw this in [an answer to another question](https://stackoverflow.com/a/4384/697449), in reference to shortcomings of the Java spec: > There are more shortcomings and this is a subtle topic. Check [this](http://kiranthakkar.blogspot.com/2007/05/method-overloading-with-new-features-of.html) out:``` public class method...
Is this really widening vs autoboxing?
CC BY-SA 3.0
null
2008-08-07T16:30:32.180
2018-04-24T20:33:39.063
2020-06-20T09:12:55.060
-1
670
[ "java", "primitive", "autoboxing" ]
4,939
1
5,098
null
18
2,520
LINQ to SQL allows table mappings to automatically convert back and forth to Enums by specifying the type for the column - this works for strings or integers. Is there a way to make the conversion case insensitive or add a custom mapping class or extenstion method into the mix so that I can specify what the string sho...
LINQ to SQL strings to enums
CC BY-SA 2.5
0
2008-08-07T16:38:51.820
2012-02-27T21:15:42.390
null
null
193
[ "linq-to-sql" ]
4,937
2
null
2,756
13
null
[Vim](http://en.wikipedia.org/wiki/Vim_(text_editor)) (or Emacs varying on religion) will always be my first answer to this question, over any point-and-click IDE. As they write in [The Pragmatic Programmer](http://en.wikipedia.org/wiki/Pragmatic_Programmer) > Choose an editor, know it thoroughly, and use it for all ed...
null
CC BY-SA 2.5
null
2008-08-07T16:38:30.950
2008-08-07T16:38:30.950
2020-06-20T09:12:55.060
-1
613
null
4,902
2
null
4,046
14
null
My Environment: Fedora 8; WAS 6.1 (as installed with Rational Application Developer 7) The documentation is very poor in this area and there is a dearth of practical examples. To run as described here, you need to run them from your server bin directory using the or commands. ``` <?xml version="1.0"?> <project ...
null
CC BY-SA 3.0
null
2008-08-07T16:16:00.010
2014-04-29T05:58:20.757
2014-04-29T05:58:20.757
1,540,450
304
null
4,956
2
null
4,949
0
null
Each of you could run it locally, or on your own dev server (or even the same one with a different port...).
null
CC BY-SA 2.5
null
2008-08-07T16:49:36.870
2008-08-07T16:49:36.870
null
null
26
null
4,942
1
4,978
null
14
1,447
When asked to create system XYZ and you ask to do it in Python over PHP or Ruby, what are the main features you can mention when they require you to explain it?
How to sell Python to a client/boss/person
CC BY-SA 3.0
0
2008-08-07T16:43:21.937
2017-01-27T11:22:24.910
2017-01-27T11:22:24.910
7,453,178
1,384,652
[ "php", "python", "ruby-on-rails", "ruby" ]
4,949
1
4,965
null
36
8,622
We have a PHP project that we would like to version control. Right now there are three of us working on a development version of the project which resides in an external folder to which all of our Eclipse IDEs are linked, and thus no version control. What is the right way and the best way to version control this? We ...
Version control PHP Web Project
CC BY-SA 4.0
0
2008-08-07T16:46:32.507
2019-01-18T10:58:13.427
2019-01-18T10:58:13.427
567,854
673
[ "php", "svn", "version-control", "cvs" ]
4,954
1
4,972
null
11
3,289
I have worked for 5 years mainly in java desktop applications accessing Oracle databases and I have never used regular expressions. Now I enter Stack Overflow and I see a lot of questions about them; I feel like I missed something. For what do you use regular expressions? P.S. sorry for my bad english
What are good regular expressions?
CC BY-SA 2.5
0
2008-08-07T16:48:42.270
2009-09-17T09:00:25.187
2008-10-23T16:06:07.513
21,632
518
[ "regex" ]
4,959
2
null
4,954
0
null
> A regular expression (regex or regexp for short) is a special text string for describing a search pattern. You can think of regular expressions as wildcards on steroids. You are probably familiar with wildcard notations such as `*.txt` to find all text files in a file manager. The regex equivalent is `.*\.txt$`. A g...
null
CC BY-SA 2.5
null
2008-08-07T16:50:51.487
2008-08-25T11:25:46.907
2008-08-25T11:25:46.907
572
22
null
4,965
2
null
4,949
27
null
We were in a similar situation, and here's what we ended up doing: - - - You can also set up individual development servers for each of the team members, on their workstations. I find that it speeds things up a bit, although you do have some more setup time. We had to use a single development server, because we wer...
null
CC BY-SA 2.5
null
2008-08-07T16:56:03.330
2008-08-07T16:56:03.330
null
null
676
null
4,958
2
null
4,942
3
null
Focus on the shorter time needed for development/prototype and possibly easier maintenance (none of this may apply against Ruby).
null
CC BY-SA 2.5
null
2008-08-07T16:50:43.997
2008-08-07T16:50:43.997
null
null
613
null
4,968
2
null
4,949
0
null
One possible way (there are probably better ways): Each of you should have your own checked out version of the project. Have a local copy of the server on your computer and test it there throughout the day. Then at the end of each day (or whenever), you merge together whatever you are ready to test, and you check it...
null
CC BY-SA 2.5
null
2008-08-07T16:57:58.960
2008-08-07T16:57:58.960
null
null
58
null
4,978
2
null
4,942
13
null
This is one of those cases that really boil down to personal preference or situational details. If you're more comfortable and experienced with Python, then say so. Are they asking you to justify it because they're more comfortable with one of the other environments? After you're done, will the system be passed off to ...
null
CC BY-SA 2.5
null
2008-08-07T17:04:25.810
2008-08-07T17:04:25.810
null
null
676
null