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
35,789
2
null
3,180
1
null
Yea FogBugz is great for process-light, quick and easy task management. It seems especially well suited for soloing, where you don't need or want a lot of complexity in that area. By the way, if you want to keep track of what you're doing at the computer all day, check out TimeSprite, which integrates with FogBugz....
null
CC BY-SA 2.5
null
2008-08-30T08:40:48.697
2008-08-30T08:40:48.697
null
null
3,710
null
35,788
2
null
35,748
2
null
No, there is not any facility to enumerate named events. You could enumerate all objects in the respective object manager directory using ZwOpenDirectoryObject and then filter for events. But this routine is undocumented and therefore should not be used without good reason. Why not use a separate mechanism to share th...
null
CC BY-SA 2.5
null
2008-08-30T08:39:48.373
2008-08-30T08:39:48.373
null
null
null
null
35,787
2
null
35,541
1
null
Or ``` find . -name '*.as' -or -name '*.mxml' | xargs wc -l ``` Or if you use zsh ``` wc -l **/*.{as,mxml} ``` It won't give you what fraction of those lines are comments, or blank lines, but if you're only interested in how one project differs from another and you've written them both, it's a useful metric.
null
CC BY-SA 2.5
null
2008-08-30T08:35:57.307
2008-08-30T08:35:57.307
null
null
1,109
null
35,782
1
35,784
null
3
1,268
I need to produce a calculation trace file containing tabular data showing intermediate results. I am currently using a combination of the standard ascii pipe symbols (|) and dashes (-) to draw the table lines: E.g. ``` Numerator | Denominator | Result ----------|-------------|------- 6 | 2 | ...
Formatting tabular data using unicode characters
CC BY-SA 2.5
null
2008-08-30T08:26:43.630
2020-05-24T02:16:01.933
2019-01-26T19:48:04.887
6,697,764
1,131
[ "unicode", "format", "special-characters", "non-ascii-characters" ]
35,793
2
null
35,785
0
null
If you're talking about automatic XML serialization of objects, check out [Castor](http://www.castor.org/): > Castor is an Open Source data binding framework for Java[tm]. It's the shortest path between Java objects, XML documents and relational tables. Castor provides Java-to-XML binding, Java-to-SQL persistence, and...
null
CC BY-SA 2.5
null
2008-08-30T08:49:34.433
2008-08-30T08:49:34.433
null
null
1,109
null
35,777
2
null
35,753
23
null
You'll find mostly two answers to that – the religous one (Yes! Of course! It's the best language ever!) and the other religious one (you gotta be kidding me! Python? No... it's not mature enough). I will maybe skip the last religion (Python?! Use Ruby!). The truth, as always, is far from obvious. : it's easy, readab...
null
CC BY-SA 2.5
null
2008-08-30T08:21:24.907
2008-08-30T08:21:24.907
null
null
3,105
null
35,796
2
null
35,785
71
null
[XStream](http://x-stream.github.io/) is pretty good at serializing object to XML without much configuration and money! (it's under BSD license). We used it in one of our project to replace the plain old java-serialization and it worked almost out of the box.
null
CC BY-SA 3.0
null
2008-08-30T08:55:00.350
2015-11-25T12:32:43.063
2015-11-25T12:32:43.063
1,701,600
1,651
null
35,800
2
null
35,722
1
null
[Tracker](https://wiki.ubuntu.com/Tracker) ships with Ubuntu 8.04 -- it was a significant switch from Beagle which users believed was too resource (CPU) intensive and didn't yield good enough results. It indexes both pdf and chm and according to [this bug report](http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=460260)...
null
CC BY-SA 2.5
null
2008-08-30T08:59:56.063
2008-08-30T08:59:56.063
null
null
3,594
null
35,802
2
null
35,721
0
null
I use the [GeSHi Syntax Highlighter Plugin](http://qbnz.com/highlighter/index.php) in [my blog](http://blog.cdleary.com) and I find it works well. Which highlighter you use tends to depend on which languages you use most frequently and how good the support is for them. [Edit] I forgot that GeSHi is the highlighter ass...
null
CC BY-SA 2.5
null
2008-08-30T09:03:07.647
2008-08-30T09:08:57.850
2008-08-30T09:08:57.850
3,594
3,594
null
35,803
2
null
35,798
2
null
I thought most of the virus scanners nowadays use [sandbox techniques](http://www.norman.com/Virus/Sandbox/20374/en) to check for "bad" behavior. Therefore the polymorphic virusses will also be detected. of course these detection techniques are also known to virus creators, and can easily be bypassed using a bunch of r...
null
CC BY-SA 2.5
null
2008-08-30T09:11:31.713
2008-08-30T09:11:31.713
null
null
46
null
35,804
2
null
10,499
5
null
There is another place where the TNS location is stored: If you're using Windows, open `regedit` and navigate to `My HKEY Local Machine/Software/ORACLE/KEY_OraClient10_home1` where `KEY_OraClient10_home1` is your Oracle home. If there is a string entry called `TNS_ADMIN`, then the value of that entry will point to the ...
null
CC BY-SA 2.5
null
2008-08-30T09:12:33.723
2008-08-30T09:12:33.723
null
null
2,822
null
35,807
2
null
246
7
null
Perhaps you could use an XSL transformation to convert the XSD into SQL table definitions. Likewise, I can't find any prior examples of this, but I'd have thought it would be possible. I'd imagine a generic XSLT for XSD->SQL, once written, could be applied to any such scenario (and would be cross-platform too). Perhap...
null
CC BY-SA 2.5
null
2008-08-30T09:14:30.083
2008-08-30T09:14:30.083
null
null
null
null
35,791
2
null
35,304
1
null
I see nothing wrong with using the async version. I can agree that the second version is shorter, but I'm not sure that I think it's easier to follow. The test does a lot of things that you wouldn't normally do, whereas the first example is more true to how you would use the component outside the test environment. Als...
null
CC BY-SA 2.5
null
2008-08-30T08:47:12.397
2008-08-30T08:47:12.397
null
null
1,109
null
35,810
2
null
35,722
1
null
Note that djvu is an image compression format (optimized to compress 'pictures of text', typically the results of scanning). As such, you won't be able to search for text, except in the metadata -this is what the link sent by cdleary refers to-, if you first use OCR on the document to convert it into text. The same i...
null
CC BY-SA 2.5
null
2008-08-30T09:17:23.477
2008-08-30T09:17:23.477
null
null
2,638
null
35,805
1
35,823
null
37
5,568
If I create a class `A` as follows: ``` class A: def __init__(self): self.name = 'A' ``` Inspecting the `__dict__` member looks like `{'name': 'A'}` If however I create a class `B`: ``` class B: name = 'B' ``` `__dict__` is empty. What is the difference between the two, and why doesn't `name` sh...
Why is my instance variable not in __dict__?
CC BY-SA 3.0
0
2008-08-30T09:12:41.367
2013-02-05T05:28:27.900
2011-08-12T06:33:50.663
91,962
3,154
[ "python" ]
35,819
2
null
13
17
null
If you happen to be using [OpenID](http://openid.net/) for authentication, [Simple Registration Extension](http://openid.net/specs/openid-simple-registration-extension-1_0.html) would solve the problem for authenticated users (You'll need to convert from tz to numeric). Another option would be to infer the time zone f...
null
CC BY-SA 2.5
null
2008-08-30T09:29:39.377
2008-09-02T15:14:02.220
2008-09-02T15:14:02.220
3,583
3,583
null
35,820
2
null
35,721
0
null
WP-Syntax uses GeSHi to do the highlighting, the WordPress Syntax Highlighter uses the [Javascript SyntaxHighlighter](http://code.google.com/p/syntaxhighlighter/wiki/Overview)
null
CC BY-SA 2.5
null
2008-08-30T09:31:06.080
2008-08-30T09:31:06.080
null
null
2,975
null
35,823
2
null
35,805
46
null
`B.name` is a class attribute, not an instance attribute. It shows up in `B.__dict__`, but not in `b = B(); b.__dict__`. The distinction is obscured somewhat because when you access an attribute on an instance, the class dict is a fallback. So in the above example, `b.name` will give you the value of `B.name`.
null
CC BY-SA 3.0
null
2008-08-30T09:33:00.990
2013-02-05T05:28:27.900
2013-02-05T05:28:27.900
3,207
3,207
null
35,817
1
35,857
null
142
112,171
When using os.system() it's often necessary to escape filenames and other arguments passed as parameters to commands. How can I do this? Preferably something that would work on multiple operating systems/shells but in particular for bash. I'm currently doing the following, but am sure there must be a library functio...
How to escape os.system() calls?
CC BY-SA 3.0
0
2008-08-30T09:27:24.640
2022-08-02T13:37:11.913
2017-12-17T15:26:56.927
355,230
3,715
[ "python", "shell", "escaping" ]
35,831
2
null
35,817
4
null
I believe that os.system just invokes whatever command shell is configured for the user, so I don't think you can do it in a platform independent way. My command shell could be anything from bash, emacs, ruby, or even quake3. Some of these programs aren't expecting the kind of arguments you are passing to them and ev...
null
CC BY-SA 2.5
null
2008-08-30T09:43:50.123
2008-08-30T09:43:50.123
null
null
755
null
35,821
2
null
35,785
84
null
The "Official" Java API for this is now JAXB - Java API for XML Binding. See [Tutorial by Oracle](http://docs.oracle.com/javase/tutorial/jaxb/TOC.html). The reference implementation lives at [http://jaxb.java.net/](http://jaxb.java.net/) Note that [the Java EE and CORBA Modules are deprecated in SE in JDK9 and to b...
null
CC BY-SA 4.0
null
2008-08-30T09:31:57.530
2018-07-11T13:10:05.997
2018-07-11T13:10:05.997
1,820
1,820
null
35,841
2
null
35,753
3
null
Refactoring is inevitable on larger codebases and the lack of static typing makes this much harder in python than in statically typed languages.
null
CC BY-SA 2.5
null
2008-08-30T09:53:02.970
2008-08-30T09:53:02.970
null
null
755
null
35,837
1
35,845
null
726
644,283
I've been using git for some time now on Windows (with msysGit) and I like the idea of distributed source control. Just recently I've been looking at Mercurial (hg) and it looks interesting. However, I can't wrap my head around the differences between hg and git. Has anyone made a side-by-side comparison between git a...
What is the Difference Between Mercurial and Git?
CC BY-SA 2.5
0
2008-08-30T09:48:27.520
2012-06-25T09:03:52.710
2012-01-31T20:07:55.410
110,204
3,713
[ "git", "version-control", "mercurial", "comparison", "dvcs" ]
35,838
2
null
35,753
0
null
I know I'm probably stating the obvious, but don't forget that the quality of the development team and their familiarity with the technology will have a major impact on your ability to deliver. If you have a strong team, then it's probably not an issue if they're familiar. But if you have people who are more 9 to 5'r...
null
CC BY-SA 2.5
null
2008-08-30T09:49:27.003
2008-08-30T09:49:27.003
null
null
2,422
null
35,834
1
null
null
3
398
Without resorting to PInvoke, is there a way in .net to find out what windows are open? This is slightly different than asking what applications are running in memory. For example, Firefox could be running, but could be more than one window. Basically, I just want to be privy to the same information that the taskbar...
Get a list of current windows, and give one of them focus, in .Net
CC BY-SA 3.0
null
2008-08-30T09:46:06.840
2017-08-09T20:15:32.350
2017-08-09T20:15:32.350
1,836,618
1,493
[ ".net", "windows" ]
35,842
1
35,885
null
409
337,227
How do I get the id of my Java process? I know there are several platform-dependent hacks, but I would prefer a more generic solution.
How can a Java program get its own process ID?
CC BY-SA 3.0
0
2008-08-30T09:53:25.420
2023-02-12T01:01:45.550
2018-02-24T03:52:37.370
1,592,191
3,583
[ "java", "pid" ]
35,843
2
null
34,717
0
null
Have you tried manually modifying the XSL in order to generate HTML which embedds your audio file? I don't think there is a way to do this using the InfoPath Designer, but if it ends up in the XSL; it may just get passed through to the web enabled form.
null
CC BY-SA 2.5
null
2008-08-30T09:55:14.603
2008-08-30T09:55:14.603
null
null
211,367
null
35,839
2
null
3,748
28
null
As others have said SQL 2008 comes with a Filestream type that allows you to store a filename or identifier as a pointer in the db and automatically stores the image on your filesystem which is a great scenario. If you're on an older database, then I'd say that if you're storing it as blob data, then you're really not...
null
CC BY-SA 2.5
null
2008-08-30T09:50:23.850
2008-08-30T09:50:23.850
null
null
3,717
null
35,846
2
null
17,434
174
null
At work we , extensively. It means we can provide proper encapsulation and information hiding for the main application code. But also we can have separate test code that uses friends to inspect internal state and data for testing. Suffice to say I wouldn't use the friend keyword as an essential component of your desig...
null
CC BY-SA 3.0
null
2008-08-30T09:59:53.063
2017-02-12T10:37:11.760
2017-02-12T10:37:11.760
1,593,077
3,719
null
35,852
2
null
35,848
0
null
I think the VB6 units are not the same with the VB.Net one. So you have to do a conversion.
null
CC BY-SA 2.5
null
2008-08-30T10:03:46.550
2008-08-30T10:03:46.550
null
null
718
null
35,844
2
null
35,837
4
null
I'm currently in the process of migrating from SVN to a DVCS (while blogging about my findings, my first real blogging effort...), and I've done a bit of research (=googling). As far as I can see you can do most of the things with both packages. It seems like git has a few more or better implemented advanced features, ...
null
CC BY-SA 2.5
null
2008-08-30T09:55:25.990
2008-08-30T09:55:25.990
null
null
909
null
35,845
2
null
35,837
345
null
These articles may help: - [Git vs. Mercurial: Please Relax](http://importantshock.wordpress.com/2008/08/07/git-vs-mercurial/)- [The Differences Between Mercurial and Git](http://www.rockstarprogrammer.org/post/2008/apr/06/differences-between-mercurial-and-git/) : Comparing Git and Mercurial to celebrities seems to b...
null
CC BY-SA 3.0
null
2008-08-30T09:57:01.963
2011-11-29T11:36:50.483
2011-11-29T11:36:50.483
15,649
718
null
35,853
1
35,873
null
21
3,973
What's the of [Mono](http://www.mono-project.com/)'s Platform Invoke implementation on `Linux` and on `Solaris`?
P/Invoke in Mono
CC BY-SA 4.0
0
2008-08-30T10:04:55.407
2019-12-23T10:26:42.467
2019-12-23T10:26:42.467
11,383,441
3,583
[ ".net", "linux", "mono", "pinvoke", "solaris" ]
35,849
1
35,892
null
12
1,699
So we've discussed logging in passing at my place of work and I was wondering if some of you guys here could give me some ideas of your approaches? Typically our scenario is, no logging really at all, and mostly .NET apps, winforms/WPF clients talking through web services or direct to a db. So, the real question is, ...
What logging is good logging for your app?
CC BY-SA 2.5
0
2008-08-30T10:02:20.063
2013-05-27T16:54:16.053
null
null
3,717
[ ".net", "logging", "client-applications" ]
35,854
2
null
35,837
5
null
Sometime last year I evaluated both git and hg for my own use, and decided to go with hg. I felt it looked like a cleaner solution, and worked better on more platforms at the time. It was mostly a toss-up, though. More recently, I started using git because of git-svn and the ability to act as a Subversion client. This...
null
CC BY-SA 2.5
null
2008-08-30T10:08:37.473
2008-08-30T10:08:37.473
null
null
893
null
35,860
2
null
3,748
2
null
I'm the lead developer on an enterprise document management system in which some customers store hundreds of gigabytes of documents. Terabytes in the not too distant future. We use the approach for many of the reasons mentioned on this page plus another: archiving. Many of our customers must conform to industry spec...
null
CC BY-SA 2.5
null
2008-08-30T10:15:53.227
2008-08-30T10:15:53.227
null
null
470
null
35,866
2
null
35,834
0
null
I'm afraid there is no way you can do it without PInvoke. To give focus to some window you should call SetForegroundWindow function, see [this](http://www.codeproject.com/KB/cs/windowhider.aspx) article for details.
null
CC BY-SA 2.5
null
2008-08-30T10:29:17.487
2008-08-30T10:29:17.487
null
null
1,196
null
35,862
2
null
35,849
1
null
As a quick answer I would say to come up with a series of categories and have switchable logging levels, e.g. info, warning, error, critical, etc. Then make it easy to set the logging level to tune the level of detail that you need. Typically, set the logging level in a config file and stop and restart the app. I wou...
null
CC BY-SA 3.0
null
2008-08-30T10:20:11.143
2013-05-27T16:54:16.053
2013-05-27T16:54:16.053
1,012,641
2,974
null
35,858
2
null
35,817
63
null
Perhaps you have a specific reason for using `os.system()`. But if not you should probably be using the [subprocess module](https://docs.python.org/library/subprocess.html). You can specify the pipes directly and avoid using the shell. The following is from [PEP324](http://www.python.org/dev/peps/pep-0324/): > ``` Re...
null
CC BY-SA 3.0
null
2008-08-30T10:15:02.403
2016-11-15T11:38:59.663
2016-11-15T11:38:59.663
6,761,868
3,363
null
35,857
2
null
35,817
90
null
This is what I use: ``` def shellquote(s): return "'" + s.replace("'", "'\\''") + "'" ``` The shell will always accept a quoted filename and remove the surrounding quotes before passing it to the program in question. Notably, this avoids problems with filenames that contain spaces or any other kind of nasty shel...
null
CC BY-SA 3.0
null
2008-08-30T10:13:11.503
2015-11-30T19:25:15.243
2015-11-30T19:25:15.243
20,146
893
null
35,870
1
35,872
null
12
5,812
I have a list of more than 15 thousand latitude and longitude coordinates. Given any X,Y coordinates, what is the fastest way to find the closest coordinates on the list?
Comparison of Lat, Long Coordinates
CC BY-SA 2.5
0
2008-08-30T10:34:05.383
2008-12-30T15:35:39.240
null
null
3,725
[ "sorting", "comparison" ]
35,877
2
null
22,873
5
null
- [Free Ruby on Rails Training Online Course by Sang Shin](http://www.javapassion.com/rubyonrails/)
null
CC BY-SA 2.5
null
2008-08-30T10:55:13.023
2008-08-30T10:55:13.023
null
null
3,720
null
35,872
2
null
35,870
6
null
You will want to use a geometric construction called a [Voronoi diagram](http://mathworld.wolfram.com/VoronoiDiagram.html). This divides up the plane into a number of areas, one for each point, that encompass all the points that are closest to each of your given points. The code for the exact algorithms to create the ...
null
CC BY-SA 2.5
null
2008-08-30T10:41:35.147
2008-08-30T11:39:59.623
2008-08-30T11:39:59.623
893
893
null
35,873
2
null
35,853
29
null
Working, usable and stable. It's well tested since quite a lot of mono's own low-level functionality has to be marshaled through it to the underlying operating system. There are some [P/Invoke extensions](http://www.mono-project.com/Interop_with_Native_Libraries) when compared to Microsoft .Net implementation (after a...
null
CC BY-SA 2.5
null
2008-08-30T10:45:40.393
2008-08-30T10:45:40.393
null
null
3,205
null
35,867
2
null
35,507
0
null
For , specifically, you can put a persistence unit in a separate JAR, which you can deploy separately from your web application WAR, or both together in an EAR archive, depending on what your application server supports. For example, the JBoss manual describes this as [Deploy EAR with EJB3 JAR](http://www.jboss.org/fil...
null
CC BY-SA 2.5
null
2008-08-30T10:30:48.480
2008-08-30T10:30:48.480
null
null
2,670
null
35,848
1
null
null
3
8,450
I have a VB6.0 project and I want to convert it in VB.Net. In my VB6.0 application some of the MDI Child form’s height is 17000 and width is 13000. Now I want to set the same form size in VB.Net forms, but it allows maximum form width = 1036, height = 780 for resolution 1024x768. How can I increase form size with sam...
VB.NET form Height Question
CC BY-SA 2.5
null
2008-08-30T10:01:31.420
2018-07-15T05:01:21.137
2008-08-30T16:34:26.483
832
2,528
[ "vb.net", "winforms" ]
35,879
1
35,891
null
65
142,805
I am building an open search add-on for Firefox/IE and the image needs to be Base64 Encoded so how can I base 64 encode the favicon I have? I am only familiar with PHP
Base64 Encoding Image
CC BY-SA 2.5
0
2008-08-30T11:01:31.887
2020-11-28T11:52:37.790
null
null
115
[ "php", "encoding", "base64", "opensearch" ]
35,878
2
null
35,707
0
null
> The server must analyze all of this info to determine the health of these computers That is probably the biggest clue so far explaning what your application is kinda about. Are you able to provide a more elaborate briefing on what this application is seeking to achieve in this distributed environment? We do not ...
null
CC BY-SA 2.5
null
2008-08-30T10:59:35.040
2008-08-30T10:59:35.040
null
null
2,663
null
35,881
2
null
35,879
0
null
Google led me to [this](http://fr.php.net/base64_encode) solution (base64_encode). Hope this helps!
null
CC BY-SA 2.5
null
2008-08-30T11:06:37.350
2008-08-30T11:06:37.350
null
null
2,638
null
35,880
2
null
35,699
4
null
You can do it in jQuery really simple, but I am not sure JS should be used for such things. The best way is to do it with pure css. 1. Take a look at faux columns or even Fluid Faux Columns 2. Also another technique(doesn't work on the beautiful IE6) is to position:relative the parent container. The child container(t...
null
CC BY-SA 2.5
null
2008-08-30T11:04:10.523
2008-08-30T11:04:10.523
null
null
3,718
null
35,893
1
83,939
null
10
4,731
Do you know any grid control compatible with .NET and Mono? DataGridView seems to be quite buggy on Mono, and GTK# controls depends on GTK+ so you need to install it in windows machines where, usually, it's not present.
Grid controls compatible with .NET and Mono?
CC BY-SA 2.5
0
2008-08-30T11:22:42.677
2015-05-13T12:57:17.403
null
null
3,730
[ "c#", "datagrid", "controls", "mono" ]
35,885
2
null
35,842
408
null
There exists no platform-independent way that can be guaranteed to work in all jvm implementations. `ManagementFactory.getRuntimeMXBean().getName()` looks like the best (closest) solution, and typically includes the PID. It's short, and works in every implementation in wide use. On linux+windows it returns a value lik...
null
CC BY-SA 4.0
null
2008-08-30T11:11:17.277
2022-01-06T01:00:43.913
2022-01-06T01:00:43.913
32,453
3,432
null
35,799
2
null
35,748
1
null
[ProcessExplorer](http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx) is able to enumerate all the named events held by some specific process. You could go over the entire process list and do something similar although I have now clue as to what API is used to get the list...
null
CC BY-SA 2.5
null
2008-08-30T08:59:10.400
2008-08-30T08:59:10.400
null
null
1,651
null
35,894
2
null
34,848
4
null
I did it this way (ZF 1.5): ``` $name = new Zend_Form_Element_Text('name'); $name->setLabel('Full Name: ') ->setRequired(true) ->addFilter('StripTags') ->addFilter('StringTrim') ->addValidator($MyNotEmpty); ``` so, the addValidator() is the interesting part. The Message is set in an "Errormessage...
null
CC BY-SA 2.5
null
2008-08-30T11:26:57.207
2008-08-30T11:26:57.207
null
null
1,462
null
35,875
2
null
35,849
1
null
For a typical desktop app, I'd store everything on the current session, and maybe store info messages for the past n sessions or up to x in size. I'm assuming that your messages are organized. We use 4 categories; errors, warnings, info, and trace. We're still figuring out what goes at which level. As I'm getting used...
null
CC BY-SA 2.5
null
2008-08-30T10:47:06.320
2008-08-30T10:47:06.320
null
null
3,436
null
35,895
2
null
35,849
2
null
> Is it better to go all the way and log everything across multiple attempts/days, or log only what you need to (given hdd is cheap). The fact harddrives are cheap really isn't a good reason to verbosely log everything possible, for a few reasons.. For one, with a very busy application, you really don't want to slow i...
null
CC BY-SA 2.5
null
2008-08-30T11:31:42.000
2008-08-30T11:31:42.000
null
null
745
null
35,883
2
null
35,224
36
null
If you don't need the default item to be selectable you can use the `prompt` property of `ComboBox` and set the `selectedIndex` to -1. That will show the string you set `propmt` to as the selected value until the user chooses another. It will not appear in the list of options, however.
null
CC BY-SA 2.5
null
2008-08-30T11:07:33.947
2008-08-30T16:33:49.857
2008-08-30T16:33:49.857
1,109
1,109
null
35,798
1
35,803
null
3
1,945
What techniques can be applied to detect [Polymorphic](http://en.wikipedia.org/wiki/Computer_virus#Polymorphic_code) and [Metamorphic](http://en.wikipedia.org/wiki/Computer_virus#Metamorphic_code) viruses? How difficult is to implement these techniques? Are these techniques being applied in modern day anti-virus sof...
Techniques to detect Polymorphic and Metamorphic viruses?
CC BY-SA 2.5
0
2008-08-30T08:55:43.543
2011-04-29T06:54:57.713
null
null
184
[ "antivirus", "virus" ]
35,892
2
null
35,849
10
null
The key thing for logging is good planning. I would suggest that you look into the enterprise library exception and logging application block ([http://msdn.microsoft.com/en-us/library/cc467894.aspx](http://msdn.microsoft.com/en-us/library/cc467894.aspx)). There is a wee bit of a learning curve but it does work quite we...
null
CC BY-SA 2.5
null
2008-08-30T11:20:54.727
2008-08-30T11:40:40.217
2008-08-30T11:40:40.217
2,422
2,422
null
35,897
2
null
35,870
0
null
Even if you create a voronoi diagram, that still means you need to compare your x, y coordinates to all 15 thousand created areas. To make that easier, the first thing that popped into my mind though was to create some sort of grid over the possible values, so that you can easily place and x/y coordinate into one of th...
null
CC BY-SA 2.5
null
2008-08-30T11:34:12.120
2008-08-30T11:34:12.120
null
null
3,197
null
35,902
2
null
35,893
0
null
Which version did you try? Perhaps you should give [Mono 2.0 preview](http://mono.ximian.com/monobuild/preview/download-preview/) a go, it might work for you (no, the Data* controls are not yet perfect, but they have improved greatly). From my experience GTK# controls on Windows are not that great either...
null
CC BY-SA 2.5
null
2008-08-30T11:48:13.507
2008-08-30T11:48:13.507
null
null
3,205
null
35,904
2
null
35,849
3
null
[This post on highscalability.com](http://highscalability.com/log-everything-all-time) provides a good perspective on logging in a large scale distributed system. (And coincidentally it starts out by mentioning a post on the JoelOnSoftware).
null
CC BY-SA 2.5
null
2008-08-30T11:52:52.013
2008-08-30T11:52:52.013
null
null
2,168
null
35,905
1
35,924
null
1
6,859
I've created a few `autorun` script files on various USB devices that run `bash` scripts when they mount. These scripts run "in the background", how do I get them to run in a terminal window? (Like the "Application in Terminal" gnome Launcher type.)
How do I autorun an application in a terminal in Ubuntu?
CC BY-SA 2.5
0
2008-08-30T11:53:01.777
2014-02-07T03:09:39.397
null
null
3,715
[ "bash", "ubuntu", "gnome", "autorun" ]
35,891
2
null
35,879
81
null
As far as I remember there is an xml element for the image data. You can use this [website](http://www.motobit.com/util/base64-decoder-encoder.asp) to encode a file (use the upload field). Then just copy and paste the data to the XML element. You could also use PHP to do this like so: ``` <?php $im = file_get...
null
CC BY-SA 3.0
null
2008-08-30T11:20:50.513
2014-04-20T08:50:25.080
2014-04-20T08:50:25.080
null
2,025
null
35,896
1
36,050
null
19
10,507
Is there a portable, not patent-restricted way to play compressed sound files in C# / .Net? I want to play short "jingle" sounds on various events occuring in the program. [System.Media.SoundPlayer](http://msdn.microsoft.com/en-us/library/system.media.soundplayer.aspx) can handle only WAV, but those are typically to b...
How can I play compressed sound files in C# in a portable way?
CC BY-SA 3.0
0
2008-08-30T11:33:55.787
2012-10-08T21:23:54.097
2011-08-02T10:32:52.520
3,205
3,205
[ "c#", ".net", "mono", "audio", "oggvorbis" ]
35,899
2
null
35,646
66
null
I've worked with both techniques and I would say that developing on the trunk and branching off stable points as releases is the best way to go. Those people above who object saying that you'll have: > - - have probably not used continuous integration techniques. It's true that if you don't perform several test bu...
null
CC BY-SA 3.0
null
2008-08-30T11:42:35.860
2013-03-05T17:58:17.637
2013-03-05T17:58:17.637
142,162
2,974
null
35,907
1
null
null
6
7,609
I have a .Net compact framework application with a frankly unimpressive UI. My win32 app uses Dev Express components and looks great, but I can't find anything similar for the compact framework. Can anyone recommend components that will jazz up my UI? Does such a thing exist, oram I going to have to owner draw my co...
3rd Party UI components for .net Compact Framework?
CC BY-SA 2.5
0
2008-08-30T11:57:41.110
2013-03-12T21:48:17.750
2008-09-24T15:26:19.827
12,870
3,732
[ ".net", "user-interface", "compact-framework" ]
35,911
2
null
871
3
null
Thanks to the fact it doesn't need to communicate with a central server constantly, pretty much every command runs in less than a second (obviously git push/pull/fetch are slower simply because they have to initalise SSH connections). Branching is far far easier (one simple command to branch, one simple command to merg...
null
CC BY-SA 2.5
null
2008-08-30T12:01:09.527
2008-08-30T12:01:09.527
null
null
745
null
35,909
2
null
9,304
0
null
@Domenic : I don't get it.. can't you do this with auto-properties?: ``` public string Title { get; } ``` or ``` public string Title { get; private set; } ``` Is this what you are referring to?
null
CC BY-SA 2.5
null
2008-08-30T11:59:37.067
2008-08-30T11:59:37.067
null
null
1,796
null
35,908
2
null
35,748
1
null
Do not mix up the user mode ZwOpenDirectoryObject with the kernel mode ZwOpenDirectoryObject -- the kernel mode API ([http://msdn.microsoft.com/en-us/library/ms800966.aspx](http://msdn.microsoft.com/en-us/library/ms800966.aspx)) indeed seems to available as of XP only, but the user mode version should be available at l...
null
CC BY-SA 2.5
null
2008-08-30T11:58:22.887
2008-08-30T11:58:22.887
null
null
null
null
35,916
2
null
5,251
0
null
+1 [flot](http://code.google.com/p/flot/), requires jQuery though, so might not play well with GWT, I haven't used that.
null
CC BY-SA 2.5
null
2008-08-30T12:12:55.117
2008-08-30T12:12:55.117
null
null
3,715
null
35,918
2
null
35,907
2
null
[OpenNETCF](http://www.opennetcf.com/) is a large collection of classes, components and controls for the compact framework. I'm not sure that they have anything that'll jazz up your UI, but it'd be worth a look.
null
CC BY-SA 2.5
null
2008-08-30T12:14:34.440
2008-08-30T12:14:34.440
null
null
615
null
35,913
2
null
27,695
3
null
To remove a file entirely from a git repository (Say you commited a file with a password in it, or accidently commited temporary files) ``` git filter-branch --index-filter 'git update-index --remove filename' HEAD ``` Then I think you have to commit, and push -f if it's in remote branches (remember it might annoy p...
null
CC BY-SA 2.5
null
2008-08-30T12:08:48.743
2008-08-30T12:08:48.743
null
null
745
null
35,915
2
null
35,870
0
null
[Premature optimization is the root of all evil.](http://c2.com/cgi/wiki?PrematureOptimization) 15K coordinates aren't that much. Why not iterate over the 15K coordinates and see if that's really a performance problem? You could save a lot of work and maybe it never gets too slow to even notice.
null
CC BY-SA 2.5
null
2008-08-30T12:12:50.327
2008-08-30T12:12:50.327
null
null
3,730
null
35,912
2
null
35,870
3
null
The general concept you're describing is [nearest-neighbour search](http://en.wikipedia.org/wiki/K-nearest_neighbor_algorithm), and there are a whole raft of techniques which deal with solving these types of queries, either exactly or approximately. The basic idea is to use a spatial partitioning technique to reduce th...
null
CC BY-SA 2.5
null
2008-08-30T12:01:48.870
2008-08-30T12:01:48.870
null
null
2,246
null
35,898
2
null
35,785
2
null
[XMLBeans](http://xmlbeans.apache.org/) works great if you have a schema for your XML. It creates Java objects for the schema and creates easy to use parse methods.
null
CC BY-SA 2.5
null
2008-08-30T11:39:16.880
2008-08-30T11:39:16.880
null
null
3,535
null
35,903
2
null
35,837
11
null
Nothing. They both do the same, both perform about equally. The only reason you should choose one over the other is if you help out with a project that already uses one.. The other possible reason for choosing one is an application or service which only supports one of the system.. For example, I pretty much chose to ...
null
CC BY-SA 2.5
null
2008-08-30T11:48:33.240
2008-08-30T11:48:33.240
null
null
745
null
35,919
2
null
35,893
2
null
I tried mono 1.9.1 (Mono 2.0 beta) and had some problems with sorting, generated columns, and some nasty exceptions.
null
CC BY-SA 2.5
null
2008-08-30T12:15:53.330
2008-08-30T12:15:53.330
null
null
3,730
null
35,923
2
null
35,870
1
null
You didn't specify what you meant by fastest. If you want to get the answer quickly without writing any code, I would give the [gpsbabel radius filter](http://www.gpsbabel.org/htmldoc-1.3.3/filter_radius.html) a go.
null
CC BY-SA 2.5
null
2008-08-30T12:19:15.817
2008-08-30T12:19:15.817
null
null
3,715
null
35,921
2
null
35,907
3
null
A number of vendors provide controls for the Windows Mobile environment. [Component One Mobile](http://www.componentone.com/SuperProducts/StudioMobile/) [Pocket PC Controls](http://www.pocketpccontrols.com/) [Resco Mobile Forms Toolkit](http://www.resco.net/developer/mobileformstoolkit/overview.aspx)
null
CC BY-SA 2.5
null
2008-08-30T12:17:41.330
2008-08-30T12:17:41.330
null
null
3,479
null
35,928
2
null
35,914
2
null
If you query the registry, you can retrieve the data about the registered file type and then call the app directly passing the command line arguments. See [Programmatically Checking and Setting File Types](http://www.blackwasp.co.uk/ProgrammaticFileTypes.aspx) for an example of retrieving shell information for a file ...
null
CC BY-SA 2.5
null
2008-08-30T12:29:07.183
2008-08-30T12:29:07.183
null
null
3,479
null
35,924
2
null
35,905
5
null
Run them as a two stage process with your "autorun" script calling the second script in a new terminal eg ``` gnome-terminal -e top --title Testing ``` Would run the program "top" in a new gnome terminal window with the title "Testing" You can add additional arguments like setting the geometry to determine the size ...
null
CC BY-SA 3.0
null
2008-08-30T12:23:17.307
2014-02-07T03:09:39.397
2014-02-07T03:09:39.397
1,854,985
3,720
null
35,926
2
null
35,922
1
null
I've used [Glade](http://glade.gnome.org/) with some success, though I didn't manage to wrap my head around creating anything really complex. It has a nice GUI builder and stores the forms as xml files that are loaded dynamically. Kind of like XAML afiak.
null
CC BY-SA 2.5
null
2008-08-30T12:25:25.927
2008-08-30T12:25:25.927
null
null
3,715
null
35,922
1
35,935
null
19
10,874
I've played around with GTK, TK, wxPython, Cocoa, curses and others. They are are fairly horrible to use.. GTK/TK/wx/curses all seem to basically be direct-ports of the appropriate C libraries, and Cocoa basically mandates using both PyObjC and Interface Builder, both of which I dislike.. The Shoes GUI library for Rub...
Are there any "nice to program" GUI toolkits for Python?
CC BY-SA 2.5
0
2008-08-30T12:19:01.933
2016-03-30T14:12:16.597
null
null
745
[ "python", "user-interface" ]
35,932
2
null
34,194
7
null
Since you can't modify IIS settings to map .mvc to ASP.Net, you can use a different extension that's already mapped to ASP.Net. For example, you could use {controller}.ashx/{action} and it should work out of the box on IIS 6.
null
CC BY-SA 2.5
null
2008-08-30T12:31:04.447
2008-08-30T12:31:04.447
null
null
729
null
35,930
2
null
35,914
4
null
Using my code from [this](https://stackoverflow.com/questions/24954/windows-list-and-launch-applications-associated-with-an-extension#24974) answer you can get command associated with xls extension. Then you can pass this command to `Process.Start` method.
null
CC BY-SA 3.0
null
2008-08-30T12:29:30.643
2013-05-27T17:21:23.503
2017-05-23T10:33:14.293
-1
1,196
null
35,933
2
null
35,707
2
null
In a client-server setting, if you care about security, you should always program on the assumption that the client may have been compromised. Even if it hasn't, there is always the risk of somebody using an old version of the client, using a competing or modified version of the client, or just of the net connection be...
null
CC BY-SA 2.5
null
2008-08-30T12:31:54.133
2008-08-30T12:31:54.133
null
null
1,000
null
35,937
2
null
35,292
0
null
Are you using Apache? If so you could have a look at [mod_log_spread](http://www.schlossnagle.org/~george/mod_log_spread/) Though you may have too big an infrastructure to make it maintainable. The other option is to look at "broadcasting" or "multicasting" your log messages and having dedicated logging servers subscri...
null
CC BY-SA 2.5
null
2008-08-30T12:39:55.253
2008-08-30T12:39:55.253
null
null
3,720
null
35,934
2
null
35,870
2
null
It rather depends how many times you want to do it, and what resources are available - if you're doing the test once, then the O(log N) techniques are good. If you're doing it a thousand times on a server, constructing a bitmap lookup table would be faster, either giving the result directly or as a first stage of. 2GB ...
null
CC BY-SA 2.5
null
2008-08-30T12:33:04.943
2008-08-30T12:33:04.943
null
null
1,527
null
35,936
2
null
35,834
1
null
You could check out the new [UI Automation](http://msdn.microsoft.com/en-us/library/ms747327.aspx) stuff in .NET 3.5. It is supposed to mask a whole lot of the PInovke stuff and works with web and WPF applications. I haven't used it yet, so I don't have a more specific place to direct you, but it might fit the bill.
null
CC BY-SA 2.5
null
2008-08-30T12:36:24.077
2008-08-30T12:36:24.077
null
null
1,233
null
35,938
2
null
35,922
2
null
Seconding [PyQt](http://www.riverbankcomputing.co.uk/software/pyqt/intro). Coupled with the book [Rapid GUI Programming with Python and Qt](http://www.qtrac.eu/pyqtbook.html), it's really easy to learn.
null
CC BY-SA 2.5
null
2008-08-30T12:48:34.407
2008-08-30T12:48:34.407
null
null
null
null
35,943
1
35,961
null
3
1,345
I want to keep logs of some things that people do in my app, in some cases so that it can be undone if needed. Is it best to store such logs in a file or a database? I'm completely at a loss as to what the pros and cons are except that it's another table to setup. Is there a third (or fourth etc) option that I'm not ...
Logging in a PHP webapp
CC BY-SA 2.5
null
2008-08-30T13:08:07.697
2008-10-15T13:21:23.700
null
null
1,384,652
[ "php", "logging" ]
35,914
1
35,930
null
5
1,162
Here's the situation: I am trying to launch an application, but the location of the .exe isn't known to me. Now, if the file extension is registered (in Windows), I can do something like: ``` Process.Start("Sample.xls"); ``` However, I need to pass some command line arguments as well. I couldn't get this to work ...
Launch a file with command line arguments without knowing location of exe?
CC BY-SA 3.0
null
2008-08-30T12:10:50.580
2013-05-27T17:42:23.363
2013-05-27T17:42:23.363
897,326
2,258
[ "c#", ".net", "vb.net" ]
35,952
2
null
35,943
1
null
I'd use a database simply for maintainability - also multiple edits on a file may cause some getting missed out.
null
CC BY-SA 2.5
null
2008-08-30T13:25:09.980
2008-08-30T13:25:09.980
null
null
2,025
null
35,925
2
null
35,905
1
null
``` xterm -e shellscript.sh ``` or (if `xterm` isn't installed) ``` gnome-terminal -e shellscript.sh ``` or (if you're using kubuntu / kde) ``` konsole -e shellscript.sh ```
null
CC BY-SA 3.0
null
2008-08-30T12:24:09.020
2011-07-17T02:57:56.883
2011-07-17T02:57:56.883
3,715
3,660
null
35,939
2
null
35,849
7
null
Being an admin, I really appreciate apps that log to the Event Log (preferably their own, otherwise the application log) for all logging but trace logs. By logging to the event log, you make it much more likely that warnings or errors can be found and addressed by the admin staff before they become a major problem (if...
null
CC BY-SA 2.5
null
2008-08-30T12:49:37.337
2008-08-30T12:49:37.337
null
null
1,233
null
35,955
2
null
35,950
0
null
I that an unordered_map and hash_map are more or less the same thing. The difference is that the STL doesn't officially have a hash_map (what you're using is probably a compiler specific thing), so unordered_map is the fix for that omission. unordered_map is just that... unordered. You can't depend on it preserving a...
null
CC BY-SA 2.5
null
2008-08-30T13:31:42.163
2008-08-30T13:31:42.163
null
null
3,738
null
35,946
2
null
35,870
8
null
I did this once for a web site. I.e. find the dealer within 50 miles of your zip code. I used the [great circle calculation](http://en.wikipedia.org/wiki/Great-circle_distance) to find the coordinates that were 50 miles north, 50 miles east, 50 miles south, and 50 miles west. That gave me a min and max lat and a min...
null
CC BY-SA 2.5
null
2008-08-30T13:11:16.643
2008-12-30T15:18:19.837
2008-12-30T15:18:19.837
15,168
3,657
null
35,950
1
35,965
null
4
15,634
I need an associative container that makes me index a certain object through a string, but that also keeps the order of insertion, so I can look for a specific object by its name or just iterate on it and retrieve objects in the same order I inserted them. I think this [hybrid of linked list and hash map](http://www.d...
I don't understand std::tr1::unordered_map
CC BY-SA 3.0
0
2008-08-30T13:20:42.643
2012-08-02T02:07:12.460
2011-10-26T03:30:16.687
17,174
3,373
[ "c++", "tr1", "unordered-map" ]
35,948
1
50,425
null
38
29,480
I'm using Google App Engine and Django templates. I have a table that I want to display the objects look something like: ``` Object Result: Items = [item1,item2] Users = [{name='username',item1=3,item2=4},..] ``` The Django template is: ``` <table> <tr align="center"> <th>user</th> {% for item in re...
Django templates and variable attributes
CC BY-SA 3.0
0
2008-08-30T13:20:02.740
2016-07-17T22:35:02.673
2016-07-17T22:35:02.673
2,291,321
3,117
[ "python", "django", "google-app-engine" ]