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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14,415 | 2 | null | 14,410 | 9 | null | Um... maybe there isn't much of a need for one, given that Vi/Vim is pretty much available everywhere and got the whole modal thing right? :)
| null | CC BY-SA 2.5 | null | 2008-08-18T10:12:49.280 | 2008-08-18T10:12:49.280 | null | null | 266 | null |
14,416 | 2 | null | 14,410 | 2 | null | I believe Eclipse has Vi bindings and there is a Visual Studio plugin/extension, too (which is called Vi-Emu, or something).
| null | CC BY-SA 2.5 | null | 2008-08-18T10:13:17.407 | 2008-08-18T10:13:17.407 | null | null | 1,633 | null |
14,420 | 2 | null | 14,389 | 4 | null | In Mastering Regular Expressions from Jeffrey Friedl (great book) it is mentioned that you could use \p{Letter} which will match unicode stuff that is considered a letter.
| null | CC BY-SA 2.5 | null | 2008-08-18T10:17:35.340 | 2008-08-18T10:17:35.340 | null | null | 1,633 | null |
14,426 | 2 | null | 14,422 | 3 | null | This answer isn't going to be very helpful but, as a developer I hate doing documentation. This being a opensource project, it's hard to find people to do documentation.
| null | CC BY-SA 2.5 | null | 2008-08-18T10:27:20.173 | 2008-08-18T10:27:20.173 | null | null | 1,602 | null |
14,409 | 2 | null | 14,350 | 2 | null | You'll need a crossdomain.xml policy file on the server that has the file you load, it should look a something like this:
```
<?xml version="1.0"?>
<!-- http://www.foo.com/crossdomain.xml -->
<cross-domain-policy>
<allow-access-from domain="www.friendOfFoo.com" />
<allow-access-from domain="*.foo.com" />
<allow-... | null | CC BY-SA 2.5 | null | 2008-08-18T10:03:36.630 | 2008-08-18T10:03:36.630 | null | null | 914 | null |
14,424 | 2 | null | 14,398 | 1 | null | I've used it a couple of times to get some decent looking class diagrams to put in presentations/blogposts etc. But thats about it...
Any suggestions on other simple UML/class diagram tools that is easy to use and create some nice looking diagrams? Must be able to generate diagrams from .NET code.
| null | CC BY-SA 2.5 | null | 2008-08-18T10:23:56.340 | 2008-08-18T10:23:56.340 | null | null | 1,199,387 | null |
14,417 | 2 | null | 13,607 | 1 | null | For more information about "immediate mode" GUI, I can recommend the [Molly Rocket forums](https://mollyrocket.com/forums/viewtopic.php?t=134). There's a good video presentation of the thinking behind IM-GUI, along with lots of discussion.
I recently hacked together a very quick IM-GUI system based on presentation on ... | null | CC BY-SA 2.5 | null | 2008-08-18T10:13:45.660 | 2008-08-18T10:19:23.137 | 2008-08-18T10:19:23.137 | null | null | null |
14,430 | 2 | null | 6,926 | 1 | null | I haven't used XNA or DirectX. But, for getting to know the basics of shader programming with Cg, the [Cg Tutorial](http://developer.nvidia.com/object/cg_tutorial_home.html) is the best book I've found.
| null | CC BY-SA 2.5 | null | 2008-08-18T10:34:11.453 | 2008-08-18T10:34:11.453 | null | null | 1,630 | null |
14,427 | 2 | null | 14,397 | 6 | null | This is very much up to personal preference, but I find the following structure suitable for large projects consisting of many modules:
I have also often used the structure in large repositories containing many projects, because keeping all projects in the same repository makes cross-referencing projects and sharing... | null | CC BY-SA 2.5 | null | 2008-08-18T10:27:55.473 | 2008-08-18T10:27:55.473 | null | null | 1,709 | null |
14,429 | 2 | null | 14,308 | 1 | null | A decent folder structure and naming scheme?
VCS don't really handle images and such very well - would it be possible to have the code in a VCS (SVN/Git/Mercurial etc), along-side a sensible folder structure for the binary-assets (source photos, Photoshop PSD files, Illustrator files and so on)?
It wouldn't handle sy... | null | CC BY-SA 2.5 | null | 2008-08-18T10:30:21.787 | 2008-08-18T10:30:21.787 | null | null | 745 | null |
14,435 | 1 | null | null | 4 | 484 | What software do you use when designing classes and their relationship, or just pen and paper?
| Software to use when designing classes | CC BY-SA 4.0 | 0 | 2008-08-18T10:40:52.437 | 2022-03-31T19:44:21.490 | 2022-03-31T19:44:21.490 | 5,446,749 | 1,703 | [
"editor",
"class-design"
] |
14,422 | 1 | 14,507 | null | 17 | 4,312 | For example, [http://developer.apple.com/cocoa/pyobjc.html](http://developer.apple.com/cocoa/pyobjc.html) is still for OS X 10.4 Tiger, not 10.5 Leopard.. And that's the official Apple documentation for it..
The official PyObjC page is equally bad, [http://pyobjc.sourceforge.net/](http://pyobjc.sourceforge.net/)
It's... | Why is the PyObjC documentation so bad? | CC BY-SA 2.5 | 0 | 2008-08-18T10:23:22.113 | 2013-08-20T12:56:44.553 | 2013-08-20T12:56:44.553 | null | 745 | [
"python",
"macos",
"cocoa",
"pyobjc"
] |
14,436 | 2 | null | 14,422 | 3 | null | Tom says it all really. Lots of open source projects have dedicated developers and few who are interested in documenting. It isn't helped by the fact that goalposts can shift on a daily basis which means documentation not only has to be created, but maintained.
| null | CC BY-SA 2.5 | null | 2008-08-18T10:41:41.547 | 2008-08-18T10:41:41.547 | null | null | 770 | null |
14,432 | 1 | 14,462 | null | 10 | 3,845 | I know that `.NET` is `JIT` compiled to the architecture you are running on just before the app runs, but does the JIT compiler optimize for 64bit architecture at all?
Is there anything that needs to be done or considered when programming an app that will run on a `64bit system`? (i.e. Will using Int64 improve perfo... | 64bit .NET Performance tuning | CC BY-SA 3.0 | 0 | 2008-08-18T10:35:14.913 | 2016-08-01T14:41:19.210 | 2016-08-01T14:41:19.210 | 4,311,889 | 194 | [
".net",
"performance",
"optimization",
"64-bit",
"jit"
] |
14,445 | 2 | null | 14,435 | 1 | null | Pen and paper for the first draft. Umlet to digitalize it. It's very minimal but it does what I need
| null | CC BY-SA 2.5 | null | 2008-08-18T10:46:29.727 | 2008-08-18T10:46:29.727 | null | null | 1,812 | null |
14,438 | 2 | null | 14,435 | 0 | null | Mostly pen and paper, although I occasionally break out Visio and just do some rough diagrams.
Would be nice to have a fancy tool I guess, but it would just be another thing to learn.
| null | CC BY-SA 2.5 | null | 2008-08-18T10:42:57.783 | 2008-08-18T10:42:57.783 | null | null | 770 | null |
14,446 | 2 | null | 14,435 | 0 | null | When doing an initial design I like a whiteboard and 1 - 3 other developers to bounce ideas off of. That's usually enough to catch any glaring errors/fix any tricky situations that may arise without dropping the s/n ratio by too much.
| null | CC BY-SA 2.5 | null | 2008-08-18T10:47:07.823 | 2008-08-18T10:47:07.823 | null | null | 512 | null |
14,440 | 2 | null | 14,435 | 5 | null | I find pen and paper very useful, and I try to get as far away from a computer as possible. If I do it on the compy, I'm always too tempted to start programming the solution. That inevitably leads to me changing things later that I would have spotted in the planning phase had I actually spent a good measure of time on ... | null | CC BY-SA 2.5 | null | 2008-08-18T10:44:30.527 | 2008-08-18T10:44:30.527 | null | null | 1,344 | null |
14,449 | 2 | null | 14,435 | 0 | null | I find pen and paper, a whiteboard and possibly some [CRC cards](http://en.wikipedia.org/wiki/Class-Responsibility-Collaboration_card) to be very useful. Most of the time I think a whiteboard and some stickers or cards with the class and/or module names written on them work best when doing planning and designing as a g... | null | CC BY-SA 2.5 | null | 2008-08-18T10:49:57.753 | 2008-08-18T10:49:57.753 | null | null | 1,709 | null |
14,448 | 2 | null | 14,359 | 0 | null | you can broaden your question : "how can I protect my .net assemblies from reverse engineering ?"
the answer is - you can not. for those who havent seen it yet, just look up "reflector", and run it on some naive exe.
(by the way, this is always the answer for code that is out of your hands, as long as you do not hav... | null | CC BY-SA 2.5 | null | 2008-08-18T10:48:55.947 | 2008-08-18T10:56:35.167 | 2008-08-18T10:56:35.167 | 195 | 195 | null |
14,441 | 2 | null | 14,397 | 7 | null | The Subversion book contains two sections on this:
- [Repository Layout](http://svnbook.red-bean.com/en/1.4/svn.branchmerge.maint.html#svn.branchmerge.maint.layout)- [Planning Your Repository Organization](http://svnbook.red-bean.com/en/1.4/svn.reposadmin.planning.html#svn.reposadmin.projects.chooselayout)
A blog ent... | null | CC BY-SA 3.0 | null | 2008-08-18T10:45:46.640 | 2013-11-26T04:29:07.617 | 2013-11-26T04:29:07.617 | 1,102,512 | 1,600 | null |
14,447 | 2 | null | 580 | 7 | null | Don't forget Microsoft's solution to the problem: [Visual Studio 2008 Database Edition](http://msdn.microsoft.com/en-gb/vsts2008/products/bb933747.aspx). Includes tools for deploying changes to databases, producing a diff between databases for schema and/or data changes, unit tests, test data generation.
It's pretty ... | null | CC BY-SA 2.5 | null | 2008-08-18T10:47:50.613 | 2009-02-18T09:08:08.863 | 2009-02-18T09:08:08.863 | 1,073 | 1,073 | null |
14,452 | 2 | null | 14,432 | 0 | null | Performance bottlenecks will be the same regardless of whether the architecture is 32- or 64-bit. Performance problems tend to be the result of sub-optimal algorithms — the choice between 32- and 64-bit types won't significantly affect performance.
Most importantly, don't try to improve the performance of something be... | null | CC BY-SA 2.5 | null | 2008-08-18T10:57:09.130 | 2008-08-18T10:57:09.130 | null | null | 954 | null |
14,456 | 2 | null | 14,435 | 2 | null | I usually start with a empty interface then start writing tests. I then generate the members using refactoring tools. For me unit testing is part of the design.
| null | CC BY-SA 2.5 | null | 2008-08-18T11:02:34.470 | 2008-08-18T11:02:34.470 | null | null | 1,725 | null |
14,453 | 1 | 19,672 | null | 5 | 598 | I'm needing to access Excel workbooks from .Net. I know all about the different ways of doing it (I've written them up in a [blog post](http://blog.functionalfun.net/2008/06/reading-and-writing-excel-files-with.html)), and I know that using a native .Net component is going to be the fastest. But the question is, which ... | Does anyone have .Net Excel IO component benchmarks? | CC BY-SA 2.5 | 0 | 2008-08-18T10:58:45.007 | 2017-11-06T10:55:06.500 | null | null | 1,727 | [
"c#",
"excel",
"components"
] |
14,460 | 2 | null | 14,435 | 1 | null | I use pen and paper.
For all planning purposes, it's the fastest way.
I get lost in layout and finetuning when I use a UML package.
But that is my burden.. :-)
| null | CC BY-SA 2.5 | null | 2008-08-18T11:05:14.930 | 2008-08-18T11:05:14.930 | null | null | 1,729 | null |
14,451 | 1 | 14,472 | null | 19 | 33,787 | What is the best way to make a delphi application (delphi 2007 for win32 here) go completely full screen, removing the application border and covering windows task bar ?
I am looking for something similar to what IE does when you hit F11.
I wish this to be a run time option for the user not a design time decision by ... | What is the best way to make a Delphi Application completely full screen? | CC BY-SA 3.0 | 0 | 2008-08-18T10:56:42.623 | 2018-11-09T13:46:27.903 | 2014-05-19T08:52:08.853 | 1,737 | 1,724 | [
"delphi",
"delphi-2007"
] |
14,461 | 2 | null | 10,313 | 19 | null | Using a batch file, you can both log on to the resource and copy the file:
The Batch File would contain the following:
```
net use \\{dest-machine}\{destfolder} {password} /user:{username}
copy {file} \\{dest-machine}\{destfolder}
```
e.g.
```
net use \\Development\myfolder mypassword /user:Administrator
copy ne... | null | CC BY-SA 2.5 | null | 2008-08-18T11:06:03.683 | 2008-08-18T11:06:03.683 | null | null | 1,726 | null |
14,465 | 2 | null | 14,435 | 1 | null | Go for PENCIL and paper, or a whiteboard. Anything permenant-marking like a pen and you'll have a pretty messy design!
| null | CC BY-SA 2.5 | null | 2008-08-18T11:20:39.097 | 2008-08-18T11:20:39.097 | null | null | 1,693 | null |
14,466 | 2 | null | 14,464 | 3 | null | Could an Enum with the Flags Attribute help maybe? See here:
[What does the [Flags] Enum Attribute mean in C#?](https://stackoverflow.com/questions/8447/enum-flags-attribute#8460)
| null | CC BY-SA 2.5 | null | 2008-08-18T11:23:21.027 | 2008-08-18T11:23:21.027 | 2017-05-23T11:54:47.663 | -1 | 91 | null |
14,464 | 1 | 14,591 | null | 85 | 115,338 | I have a structure which I need to populate and write to disk (several actually).
An example is:
```
byte-6
bit0 - original_or_copy
bit1 - copyright
bit2 - data_alignment_indicator
bit3 - PES_priority
bit4-bit5 - PES_scrambling control.
bit6-bit7 - reserved
```
In C I might do something like the follo... | Bit fields in C# | CC BY-SA 3.0 | 0 | 2008-08-18T11:19:28.367 | 2021-08-21T07:04:05.053 | 2015-12-17T06:53:34.677 | 15,168 | 1,006 | [
"c#",
"bit-fields"
] |
14,462 | 2 | null | 14,432 | 14 | null | The [64bit JIT is different](http://blogs.msdn.com/davbr/pages/tail-call-jit-conditions.aspx) from the one for 32bit, so I would expect some differences in the output - but I wouldn't switch to 64bit just for that, and I wouldn't expect to gain much speed (if any) in CPU time by switching to 64bit.
You will notice a ... | null | CC BY-SA 3.0 | null | 2008-08-18T11:11:31.767 | 2011-12-01T23:48:30.063 | 2011-12-01T23:48:30.063 | 1,367 | 1,367 | null |
14,470 | 2 | null | 14,435 | 2 | null | [OmniGraffle](http://www.omnigroup.com/applications/omnigraffle/) (Visio-esque app for Mac OS X), sometimes. Otherwise, just pen and paper will do.
| null | CC BY-SA 2.5 | null | 2008-08-18T11:27:23.937 | 2008-08-18T11:27:23.937 | null | null | 1,600 | null |
14,467 | 2 | null | 14,435 | 0 | null | Pen and Paper and/or Whiteboards for drafting, a more comprehensive tool for documentation purposes.
I mainly use Class Diagrams and a few sketches with Sequence Diagrams to get most of the relationships right.
About the tools: At work I use [Enterprise Architect](http://www.sparxsystems.com.au/) but personally I fin... | null | CC BY-SA 2.5 | null | 2008-08-18T11:23:31.150 | 2008-08-18T11:23:31.150 | null | null | 1,830 | null |
14,404 | 2 | null | 14,350 | 6 | null | This is all described in [The Adobe Flex 3 Programming ActionScript 3 PDF](http://livedocs.adobe.com/flex/3/progAS_flex3.pdf) on page 550 (Chapter 27: Flash Player Security / Cross-scripting):
> If two SWF files written with ActionScript 3.0 are served from different domains—for example, [http://siteA.com/swfA.swf](ht... | null | CC BY-SA 2.5 | null | 2008-08-18T09:59:50.697 | 2008-08-18T09:59:50.697 | null | null | 1,109 | null |
14,474 | 2 | null | 5,544 | 4 | null | What @MattMitchell said is probably the reason you're seeing this error.
If you want to know ; it is because when you pass null as the controlData parameter when using RenderUserControl(), the framework will try to pass the view data from the current view context onto the user control instead (see UserControlExtension... | null | CC BY-SA 3.0 | null | 2008-08-18T11:31:39.730 | 2012-07-22T13:00:29.490 | 2012-07-22T13:00:29.490 | 364 | 1,710 | null |
14,472 | 2 | null | 14,451 | 28 | null | Well, this has always worked for me. Seems a bit simpler...
```
procedure TForm52.Button1Click(Sender: TObject);
begin
BorderStyle := bsNone;
WindowState := wsMaximized;
end;
```
| null | CC BY-SA 2.5 | null | 2008-08-18T11:30:00.310 | 2008-08-18T11:30:00.310 | null | null | 1,737 | null |
14,471 | 2 | null | 9,435 | 1 | null | I would highly recommend you check out [Cameron Molls'](http://www.cameronmoll.com) book [Mobile Web Design](http://mobilewebbook.com/). Its not so much a technical how-to for building mobile optimised sites but makes you think about the various options available and summarises each ones pros and cons. Will definately ... | null | CC BY-SA 2.5 | null | 2008-08-18T11:28:26.413 | 2008-08-18T11:28:26.413 | null | null | 270 | null |
14,477 | 2 | null | 9,629 | 0 | null | What is the return value when the sound does not play? If you get MMSYSERR_NOERROR that points to the driver incorrectly reporting to the OS that the buffer was processed.
Has the WAV file itself changed? This [blog entry](http://blogs.msdn.com/larryosterman/archive/2007/07/24/playsound-is-failing-on-vista-what-s-wron... | null | CC BY-SA 2.5 | null | 2008-08-18T11:33:56.293 | 2008-08-18T11:33:56.293 | null | null | 1,042 | null |
14,458 | 2 | null | 14,451 | 3 | null | Maximize the form and [hide the title bar](http://delphi.about.com/cs/adptips2000/a/bltip0100_5.htm). The maximize line is done from memory, but I'm pretty sure WindowState is the property you want.
There's also [this](http://www.delphicorner.f9.co.uk/articles/forms5.htm) article, but that seems too complicated to me... | null | CC BY-SA 2.5 | null | 2008-08-18T11:03:14.263 | 2008-08-18T13:45:42.160 | 2008-08-18T13:45:42.160 | 672 | 672 | null |
14,475 | 2 | null | 14,464 | 24 | null | You want [StructLayoutAttribute](http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.structlayoutattribute(VS.71).aspx)
```
[StructLayout(LayoutKind.Explicit, Size=1, CharSet=CharSet.Ansi)]
public struct Foo
{ [FieldOffset(0)]public byte original_or_copy;
[FieldOffset(0)]public byte copyright;
... | null | CC BY-SA 2.5 | null | 2008-08-18T11:32:53.143 | 2009-11-23T14:55:57.273 | 2009-11-23T14:55:57.273 | 52,444 | 1,659 | null |
14,482 | 2 | null | 11,782 | 1 | null | It's certainly possible to send binary files via web services (eg. SOAP), but you usually have to do some kind of encoding such as base64, which increases the amount of data to send. One of the most efficient ways to send an arbitrary binary file is via an HTTP PUT operation, since there is no encoding overhead. Not al... | null | CC BY-SA 2.5 | null | 2008-08-18T11:42:22.500 | 2008-08-18T11:42:22.500 | null | null | 893 | null |
14,485 | 2 | null | 4,511 | 1 | null | Has anyone tried either patching SSMS not to check the version (perhaps try looking at the binary differences between CTP 6 and RTM?), or patching SS 2005 to pretend to be 2008?
Unclean, I know, but I don't see any other way.
| null | CC BY-SA 2.5 | null | 2008-08-18T11:53:18.703 | 2008-08-18T11:53:18.703 | null | null | 1,600 | null |
14,483 | 2 | null | 14,435 | 2 | null | It's easy, while in the paper-and-pen (or whatever non-code equivalent you prefer) stage, to overstay, falling prey to the dreaded [YAGNI](http://en.wikipedia.org/wiki/You_Ain%27t_Gonna_Need_It) syndrome. How many of us have carefully designed in some "sexy" feature that ended up never being used? (Raises hand. Hands.)... | null | CC BY-SA 2.5 | null | 2008-08-18T11:47:26.563 | 2009-12-09T08:46:01.667 | 2009-12-09T08:46:01.667 | 1,060 | 1,060 | null |
14,479 | 2 | null | 14,422 | 7 | null | Tom's and Martin's response are definitely true (in just about any open source project, you'll find that most contributors are particularly interested in, well, ; not so much in semi-related matters such as documentation), but I don't think your particular question at the end would fit well inside PyObjC documentation.... | null | CC BY-SA 2.5 | null | 2008-08-18T11:38:51.480 | 2008-08-18T11:38:51.480 | null | null | 1,600 | null |
14,492 | 2 | null | 14,491 | 14 | null | ```
AfxGetMainWnd()->PostMessage(WM_CLOSE);
```
| null | CC BY-SA 3.0 | null | 2008-08-18T12:04:20.240 | 2012-07-03T14:44:32.127 | 2012-07-03T14:44:32.127 | 142,162 | 1,743 | null |
14,488 | 2 | null | 1,508 | 0 | null | some day I work in a company that use VSS (and in other companies that use other less unknow [SCM](http://en.wikipedia.org/wiki/Source_Code_Management)) but i prefer use SVN (someday I'll try GIT) for active development, for me and my group.
First of all, this situation it's only good idea, if commit to VSS are few ove... | null | CC BY-SA 4.0 | null | 2008-08-18T11:59:44.290 | 2021-10-25T11:45:51.297 | 2021-10-25T11:45:51.297 | 17,169,050 | 1,713 | null |
14,478 | 2 | null | 11,782 | 0 | null | I'm not a master in "webservice", but if you develop the webservice (and the client), you always can convert the binary file to [BASE64](http://en.wikipedia.org/wiki/Base64) in the client (can do in java... and i soupose in ajax too) and transfer as "string", in the other side, in the webservice encode to binary from B... | null | CC BY-SA 2.5 | null | 2008-08-18T11:35:32.187 | 2008-08-18T11:35:32.187 | null | null | 1,713 | null |
14,480 | 2 | null | 14,451 | 10 | null | A Google search turned up the following, additional methods:
(though I think I'd try Roddy's method first)
## Manually fill the screen (from: About Delphi)
```
procedure TSomeForm.FormShow(Sender: TObject) ;
var
r : TRect;
begin
Borderstyle := bsNone;
SystemParametersInfo
(SPI_GETWORKAREA, 0, @r,0)... | null | CC BY-SA 2.5 | null | 2008-08-18T11:41:42.113 | 2008-08-18T11:41:42.113 | null | null | 1,037 | null |
14,494 | 2 | null | 13,362 | 7 | null | Using a loop to iterate over a jQuery of one element is quite inefficient. When selecting an ID, you can just retrieve the first and unique element of the jQuery using get() or the [] notation.
```
var div = $("#thediv")[0];
// certain browsers have a bug such that scrollHeight is too small
// when content does not f... | null | CC BY-SA 2.5 | null | 2008-08-18T12:09:39.047 | 2008-08-18T12:09:39.047 | null | null | 268 | null |
14,496 | 2 | null | 3,234 | 10 | null | This is ugly, but the best way is to look at the file and set the content type as appropriate:
```
switch ( fileExtension )
{
case "pdf": Response.ContentType = "application/pdf"; break;
case "swf": Response.ContentType = "application/x-shockwave-flash"; break;
case "gif": Response.ContentType = "image/... | null | CC BY-SA 2.5 | null | 2008-08-18T12:10:43.100 | 2008-08-18T12:10:43.100 | null | null | 905 | null |
14,489 | 2 | null | 14,410 | 50 | null | Early software was often modal, but usability took a turn at some point, away from this style.
VI-based editors are total enigmas -- they're the only real surviving members of that order of software.
Modes are a no-no in usability and interaction design because we humans are fickle mammals who cannot be trusted to ... | null | CC BY-SA 3.0 | null | 2008-08-18T12:03:03.380 | 2012-02-03T04:27:56.797 | 2012-02-03T04:27:56.797 | 49 | 49 | null |
14,495 | 1 | 14,773 | null | 23 | 13,070 | I see in the MATLAB help (`matlab -h`) that I can use the `-r` flag to specify an `m`-file to run. I notice when I do this, MATLAB seems to start the script, but immediately return. The script processes fine, but the main app has already returned.
Is there any way to get MATLAB to only return once the command is finis... | How can I stop MATLAB from returning until after a command-line script completes? | CC BY-SA 3.0 | 0 | 2008-08-18T12:10:38.450 | 2012-11-13T13:53:36.847 | 2012-11-13T13:53:36.847 | 957,997 | 1,741 | [
"command-line",
"matlab"
] |
14,501 | 2 | null | 12,794 | 1 | null | As markpasc stated, a PRE element inside CODE element is not allowed in HTML. The best solution is to change your HTML code to use <pre><code> (which means a preformatted block that contains code) directly in your HTML for code blocks.
| null | CC BY-SA 2.5 | null | 2008-08-18T12:13:36.557 | 2008-08-18T12:13:36.557 | null | null | 268 | null |
14,500 | 2 | null | 14,155 | 6 | null | EditPlus is my editor of choice. All the features you'd need, and no more.
| null | CC BY-SA 2.5 | null | 2008-08-18T12:13:31.283 | 2008-08-18T12:13:31.283 | null | null | 974 | null |
14,504 | 1 | 14,513 | null | 12 | 2,378 | I would really like to see a proportional font IDE, even if I have to build it myself (perhaps as an extension to Visual Studio). What I basically mean is MS Word style editing of code that sort of looks like the typographical style in [The C++ Programming Language book](http://www.research.att.com/~bs/3rd.html).
I wa... | Proportional font IDE | CC BY-SA 3.0 | 0 | 2008-08-18T12:17:12.337 | 2014-09-02T22:36:24.707 | 2012-01-15T18:01:49.360 | 600,500 | 1,659 | [
"ide",
"fonts",
"tabs",
"text-editor"
] |
14,498 | 2 | null | 13,981 | 0 | null | Thanks for the tip. You're right - `ParseTree` seems to be the only code out there with any manipulation of the AST going on, except that it's actually written in RubyInline.
So, it's a strange mixture between Ruby and C code. Very interesting reading, though.
The other reference of course is eval.c from Ruby itself... | null | CC BY-SA 3.0 | null | 2008-08-18T12:11:19.837 | 2015-08-11T07:46:15.140 | 2015-08-11T07:46:15.140 | 2,227,834 | 14,446 | null |
14,506 | 2 | null | 14,386 | 31 | null | Well you could add a:
```
#pragma warning (disable : 4996)
```
before you use fopen, but have you considered using fopen_s as the warning suggests? It returns an error code allowing you to check the result of the function call.
The problem with just disabling deprecated function warnings is that Microsoft may remo... | null | CC BY-SA 3.0 | null | 2008-08-18T12:18:13.647 | 2014-09-18T13:40:40.200 | 2014-09-18T13:40:40.200 | 1,078 | 1,078 | null |
14,497 | 1 | 49,653 | null | 2 | 943 | I've recently started work on the Compact Framework and I was wondering if anyone had some recommendations for unit testing beyond what's in VS 2008. MSTest is , but debugging the tests is a nightmare and the test runner is slow.
I see that NUnitLite on codeplex is an option, but it doesn't look very active; it's als... | Has anyone used NUnitLite with any success? | CC BY-SA 2.5 | 0 | 2008-08-18T12:10:52.897 | 2008-09-24T15:29:13.907 | 2008-09-24T15:29:13.907 | 12,870 | 631 | [
"unit-testing",
"windows-mobile",
"compact-framework",
"nunit"
] |
14,505 | 1 | 14,525 | null | 2 | 4,684 | In the Full .NET framework you can use the Color.FromArgb() method to create a new color with alpha blending, like this:
```
Color blended = Color.FromArgb(alpha, color);
```
or
```
Color blended = Color.FromArgb(alpha, red, green , blue);
```
However in the Compact Framework (2.0 specifically), neither of those ... | Alpha blending colors in .NET Compact Framework 2.0 | CC BY-SA 2.5 | null | 2008-08-18T12:17:16.113 | 2012-06-18T22:03:05.387 | 2011-03-15T20:08:42.830 | 77,914 | 194 | [
"c#",
".net",
"graphics",
"compact-framework"
] |
14,510 | 2 | null | 14,504 | 1 | null | When I last looked at Eclipse (some time ago now!) it allowed you to choose any installed font to work in. Not so sure whether it supported the notion of indenting using tab stops.
It looked cool, but the code was definitely harder to read...
| null | CC BY-SA 2.5 | null | 2008-08-18T12:21:23.343 | 2008-08-18T12:21:23.343 | null | null | 1,389 | null |
14,513 | 2 | null | 14,504 | 17 | null | I'd still like to see a popular editor or IDE implement [elastic tabstops](http://nickgravgaard.com/elastictabstops/).
| null | CC BY-SA 2.5 | null | 2008-08-18T12:24:55.987 | 2008-08-18T12:24:55.987 | null | null | 1,600 | null |
14,511 | 2 | null | 13,471 | 1 | null | An other great source for Delphi component is torry.net. [Searching there](http://www.torry.net/quicksearchd.php?String=mind+map&Title=No) I found an interesting looking component: [Drawing objects](http://angusj.com/delphi/).
| null | CC BY-SA 2.5 | null | 2008-08-18T12:23:18.520 | 2008-08-18T12:23:18.520 | null | null | 1,265 | null |
14,515 | 2 | null | 14,497 | 0 | null | We use NUnitLite, although I think we did have had to add some code to it in order for it to work.
One of the problems we found is that if you are using parts of the platform that only exist in CF, then you can only run those tests in NUnitLite on an emulator or Windows Mobile device, which makes it hard to run the t... | null | CC BY-SA 2.5 | null | 2008-08-18T12:25:34.817 | 2008-08-18T12:25:34.817 | null | null | 1,078 | null |
14,491 | 1 | 8,768,957 | null | 11 | 13,548 | What is the proper way for an MFC application to cleanly close itself?
| How can an MFC application terminate itself? | CC BY-SA 2.5 | 0 | 2008-08-18T12:04:06.233 | 2016-01-05T15:38:04.167 | 2008-09-16T11:11:48.923 | 3,853 | 1,743 | [
"c++",
"visual-c++",
"mfc"
] |
14,520 | 2 | null | 14,504 | 1 | null | Soeren: That's kind of neat, IMO. But do people really line comments up like that? For my end of line comments, I always use a single space then // or /* or equivalent, depending on language I'm using. I never try to line up declarations or comments or anything, and the only place I've ever seen that is in textbooks.
| null | CC BY-SA 2.5 | null | 2008-08-18T12:27:56.277 | 2008-08-18T12:27:56.277 | null | null | 572 | null |
14,521 | 2 | null | 14,155 | 2 | null | Another vote for Textpad here. I tried Notepad++, but was annoyed that it didn't notify me when an open file had been updated (which is a pain when looking at active log files).
| null | CC BY-SA 2.5 | null | 2008-08-18T12:28:04.873 | 2008-08-18T12:28:04.873 | null | null | null | null |
14,517 | 2 | null | 14,464 | 26 | null | By using an enum you can do this, but will look awkward.
```
[Flags]
public enum PESHeaderFlags
{
IsCopy = 1, // implied that if not present, then it is an original
IsCopyrighted = 2,
IsDataAligned = 4,
Priority = 8,
ScramblingControlType1 = 0,
ScramblingControlType2 = 16,
ScramblingControl... | null | CC BY-SA 2.5 | null | 2008-08-18T12:25:51.697 | 2008-08-18T12:25:51.697 | null | null | 267 | null |
14,519 | 2 | null | 14,504 | 4 | null | i expected you'll get down-modded and picked on for that suggestion, but there's some real sense to the idea.
The main advantage of the traditional 'non-proportional' font requirement in code editors is to ease the burden of performing code formatting.
But with all of the interactive automatic formatting that occur... | null | CC BY-SA 2.5 | null | 2008-08-18T12:26:12.740 | 2008-08-18T12:26:12.740 | null | null | 49 | null |
14,503 | 2 | null | 13,471 | 3 | null | You might want to have a look at TMS Software's [Diagram Studio](http://www.tmssoftware.com/site/diagram.asp), not specifically a mind-mapping component but it does offer diagramming functionality in your delphi app. and a developer license does come with source code.
| null | CC BY-SA 2.5 | null | 2008-08-18T12:15:27.677 | 2008-08-18T12:15:27.677 | null | null | 1,461 | null |
14,524 | 2 | null | 14,410 | 1 | null | Though not really answering your question, there used to be a "modal like" way to write Japanese on cell phones before :
The first letter you hit was a conson let's say K, and then, and then the next key you would hit would have the role of a conson. (Having two conson in a row is impossible in Japanese)
Though it was... | null | CC BY-SA 2.5 | null | 2008-08-18T12:30:07.257 | 2008-08-18T12:30:07.257 | null | null | 446,497 | null |
14,529 | 2 | null | 14,505 | 0 | null | > Apparently, it's not quite that
simple, but still possible, if you
have Windows Mobile 5.0 or newer.
Wow...definitely not worth it if I have to put all that code in (and do native interop!)
Good to know though, thanks for the link.
| null | CC BY-SA 2.5 | null | 2008-08-18T12:37:45.557 | 2008-08-18T12:37:45.557 | null | null | 194 | null |
14,525 | 2 | null | 14,505 | 1 | null | Apparently, it's not quite that simple, but [still possible](http://blogs.msdn.com/chrislorton/archive/2006/04/07/570649.aspx), if you have Windows Mobile 5.0 or newer.
| null | CC BY-SA 2.5 | null | 2008-08-18T12:33:02.273 | 2008-08-18T12:33:02.273 | null | null | 1,600 | null |
14,532 | 2 | null | 14,155 | 4 | null | My personal favorite is [EditPad Pro](http://www.editpadpro.com/). Not because it is superior in any way, but because it was the one I started to use.
| null | CC BY-SA 2.5 | null | 2008-08-18T12:44:02.627 | 2008-08-18T12:44:02.627 | null | null | 1,542 | null |
14,531 | 2 | null | 14,530 | 64 | null | Linq to Sql.
Sql server will cache the query plans, so there's no performance gain for sprocs.
Your linq statements, on the other hand, will be logically part of and tested with your application. Sprocs are always a bit separated and are harder to maintain and test.
If I was working on a new application from scratc... | null | CC BY-SA 2.5 | null | 2008-08-18T12:40:52.447 | 2008-08-18T12:46:04.603 | 2008-08-18T12:46:04.603 | 905 | 905 | null |
14,527 | 1 | 16,414 | null | 7 | 11,136 | I need to be able to find the last occurrence of a character within an element.
For example:
```
<mediaurl>http://www.blah.com/path/to/file/media.jpg</mediaurl>
```
If I try to locate it through using `substring-before(mediaurl, '.')` and `substring-after(mediaurl, '.')` then it will, of course, match on the first ... | Reverse Find in a string | CC BY-SA 3.0 | 0 | 2008-08-18T12:35:42.050 | 2014-03-21T16:05:59.273 | 2014-03-21T16:05:59.273 | 1,987,598 | 274 | [
"xml",
"xslt"
] |
14,534 | 2 | null | 14,453 | 1 | null | Can't help you with your original question, but are you aware that you can access Excel files using an OleDbConnection, and therefore treat it as a database? You can then read worksheets into a DataTable, perform all the changes you need to the data in your application, and then save it all back to the file using an Ol... | null | CC BY-SA 2.5 | null | 2008-08-18T12:44:54.637 | 2008-08-18T12:44:54.637 | null | null | null | null |
14,537 | 2 | null | 14,530 | 14 | null | The best code is no code, and with stored procedures you have to write at least some code in the database and code in the application to call it , whereas with LINQ to SQL or LINQ to Entities, you don't have to write any additional code beyond any other LINQ query aside from instantiating a context object.
| null | CC BY-SA 2.5 | null | 2008-08-18T12:45:13.140 | 2008-08-18T12:45:13.140 | null | null | 1,659 | null |
14,528 | 2 | null | 13,589 | 1 | null | I've evaluated the [Telerik](http://www.telerik.com/) grid as well as [Infragistics](http://www.infragistics.com/Default.aspx) version. In the end we took an approach similar to what tags2k suggested. We just wrote our own javascript and called [.Net PageMethods](http://www.singingeels.com/Articles/Using_Page_Methods... | null | CC BY-SA 2.5 | null | 2008-08-18T12:36:57.960 | 2008-08-18T12:36:57.960 | null | null | 225 | null |
14,540 | 2 | null | 14,464 | 3 | null | A flags enum can work too, I think, if you make it a byte enum:
```
[Flags] enum PesHeaders : byte { /* ... */ }
```
| null | CC BY-SA 2.5 | null | 2008-08-18T12:47:49.873 | 2008-08-18T12:47:49.873 | null | null | 1,659 | null |
14,533 | 2 | null | 14,530 | 3 | null | I'm assuming you mean Linq To Sql
For any CRUD command it's easy to profile the performance of a stored procedure vs. any technology. In this case any difference between the two will be negligible. Try profiling for a 5 (simple types) field object over 100,000 select queries to find out if there's a real difference.
... | null | CC BY-SA 2.5 | null | 2008-08-18T12:44:12.300 | 2008-08-18T12:44:12.300 | null | null | 372 | null |
14,538 | 2 | null | 14,155 | 4 | null | UltraEdit it my favorite text editor. Too bad I have to pay for it. You can't beat the ability to highlight vertically vs. horizontally.
| null | CC BY-SA 2.5 | null | 2008-08-18T12:47:09.110 | 2008-08-18T12:47:09.110 | null | null | null | null |
14,547 | 2 | null | 14,527 | 0 | null | How about tokenize with "/" and take the last element from the array ?
```
Example: tokenize("XPath is fun", "\s+")
Result: ("XPath", "is", "fun")
```
Was an XSLT fiddler sometime back... lost touch now. But HTH
| null | CC BY-SA 2.5 | null | 2008-08-18T12:55:43.680 | 2008-08-18T12:55:43.680 | null | null | 1,695 | null |
14,530 | 1 | 28,992 | null | 191 | 112,495 | I took a look at the "Beginner's Guide to LINQ" post here on StackOverflow ([Beginners Guide to LINQ](https://stackoverflow.com/questions/8050/beginners-guide-to-linq)), but had a follow-up question:
We're about to ramp up a new project where nearly all of our database op's will be fairly simple data retrievals (there... | LINQ-to-SQL vs stored procedures? | CC BY-SA 2.5 | 0 | 2008-08-18T12:37:57.553 | 2019-03-21T06:46:15.633 | 2017-05-23T11:55:10.850 | -1 | 1,683 | [
"linq",
"linq-to-sql",
"stored-procedures"
] |
14,545 | 1 | null | null | 5 | 550 | What I mean by autolinking is the process by which wiki links inlined in page content are generated into either a hyperlink to the page (if it does exist) or a create link (if the page doesn't exist).
With the parser I am using, this is a two step process - first, the page content is parsed and all of the links to wik... | How should I handle autolinking in wiki page content? | CC BY-SA 2.5 | null | 2008-08-18T12:52:53.887 | 2011-09-01T00:26:20.517 | null | null | 14,446 | [
"html",
"database",
"wiki",
"hyperlink"
] |
14,549 | 2 | null | 14,530 | 80 | null | I am generally a proponent of putting everything in stored procedures, for all of the reasons DBAs have been harping on for years. In the case of Linq, it is true that there will be no performance difference with simple CRUD queries.
But keep a few things in mind when making this decision: using any ORM couples you t... | null | CC BY-SA 2.5 | null | 2008-08-18T12:59:51.457 | 2008-10-10T15:40:11.473 | 2008-10-10T15:40:11.473 | 1,219 | 1,219 | null |
14,556 | 2 | null | 14,530 | 40 | null | For basic data retrieval I would be going for Linq without hesitation.
Since moving to Linq I've found the following advantages:
1. Debugging my DAL has never been easier.
2. Compile time safety when your schema changes is priceless.
3. Deployment is easier because everything is compiled into DLL's. No more managing... | null | CC BY-SA 2.5 | null | 2008-08-18T13:08:31.190 | 2008-08-18T13:08:31.190 | null | null | 493 | null |
14,560 | 2 | null | 11,194 | 1 | null | I had a similar requirement recently and eventually found this in he MSDN.
[CSharp Samples for Visual Studio 2008](http://code.msdn.microsoft.com/csharpsamples)
The classes included in the DynamicQuery sample of the download allow you to create dynamic queries at runtime in the following format:
```
var query =
db.Cu... | null | CC BY-SA 2.5 | null | 2008-08-18T13:12:06.440 | 2008-08-18T13:12:06.440 | null | null | 1,762 | null |
14,566 | 2 | null | 14,155 | 0 | null | Notepad++ is probably the one I use the most, though I use GVIM whenever I need to do repetitive changes.
We got a company license for UltraEdit recently, and it seems to work quite well as well. I've been using that for doing quick edits to java or C++ code when I didn't have the full IDE running and didn't want to ... | null | CC BY-SA 2.5 | null | 2008-08-18T13:19:38.437 | 2008-08-18T13:19:38.437 | null | null | 1,409 | null |
14,552 | 1 | 14,703 | null | 0 | 5,644 | My scheduled reports in SQL server won't run. I checked the logs and found the job that was failing. The error message in the log was:
> 'EXECUTE AS LOGIN' failed for the requested login 'NT AUTHORITY\NETWORK
SERVICE'. The step failed.
I'm using SQL authentication for the report so it shouldn't be issues with the... | SSRS scheduled reports not working | CC BY-SA 2.5 | null | 2008-08-18T13:02:27.037 | 2016-03-13T07:19:46.767 | 2016-03-13T07:19:46.767 | 4,211,866 | 1,545 | [
"sql-server",
"reporting-services",
"ssrs-2008"
] |
14,507 | 2 | null | 14,422 | 21 | null | I agree that that tutorial is flawed, throwing random, unexplained code right in front of your eyes. It introduces concepts such as the autorelease pool and user defaults without explaining why you would want them ("Autorelease pool for memory management" is hardly an explanation).
That said…
> basically all I want t... | null | CC BY-SA 2.5 | null | 2008-08-18T12:18:52.600 | 2008-08-18T12:18:52.600 | null | null | 1,600 | null |
14,571 | 2 | null | 14,435 | 1 | null | Whiteboard for the first 35 or 40 drafts. UML is nice after that, but not particularly necessary. The best documentation after you've hashed out the details is clean code.
| null | CC BY-SA 2.5 | null | 2008-08-18T13:21:56.247 | 2008-08-18T13:21:56.247 | null | null | 1,190 | null |
14,570 | 1 | 14,595 | null | 0 | 476 | I don't know when to add to a dataset a tableadapter or a query from toolbox. Does it make any difference?
I also dont know where to create instances of the adapters.
- `Page_Load`- -
This doesn't seem very important, but every time I create a query a little voice on my brain asks me these questions.
| How to organize dataset queries to improve performance | CC BY-SA 3.0 | null | 2008-08-18T13:21:45.670 | 2013-07-04T12:16:34.210 | 2013-07-04T12:16:34.210 | 1,584,286 | 1,013 | [
"asp.net",
"database",
"performance"
] |
14,574 | 2 | null | 13,607 | 0 | null | I'll second Qt. It's cross platform, and I found it easier to work with than the built in Visual Studio GUI stuff. It's dual-licensed, so if you don't want your code to be GPL you could purchase a license instead.
| null | CC BY-SA 2.5 | null | 2008-08-18T13:23:17.603 | 2008-08-18T13:23:17.603 | null | null | 1,409 | null |
14,582 | 1 | 14,630 | null | 25 | 13,437 | I've been using Subversion for code control with TortoiseSVN to interface with the server for the past few months, and in general it's been going great! However, occasionally my FoxPro IDE will change the case of a file extension without warning where "" becomes "") TortoiseSVN apparently takes this to mean the first... | Can I make Subversion + TortoiseSVN case-insensitive for Windows? | CC BY-SA 2.5 | 0 | 2008-08-18T13:27:00.653 | 2020-01-14T11:34:32.863 | 2010-10-18T12:45:15.877 | 53,158 | 1,339 | [
"windows",
"svn",
"tortoisesvn"
] |
14,568 | 2 | null | 5,916 | 1 | null | The [Coding Horror](https://blog.codinghorror.com/the-problem-with-code-folding/) article actual got me thinking about this as well.
Generally, I large classes I will put a region around the member variables, constants, and properties to reduce the amount of text I have to scroll through and leave everything else outs... | null | CC BY-SA 4.0 | null | 2008-08-18T13:20:24.190 | 2018-10-21T12:01:52.487 | 2018-10-21T12:01:52.487 | 1,033,581 | 1,185 | null |
14,576 | 2 | null | 14,504 | 2 | null | @Thomas Owens
> But do people really line comments up
like that? ... I never try to
line up declarations or comments or
anything, and the only place I've ever
seen that is in textbooks.
Yes people do line up comments and declarations and all sorts of things. Consistently well formatted code is easier to read... | null | CC BY-SA 2.5 | null | 2008-08-18T13:24:39.847 | 2008-08-18T13:24:39.847 | null | null | 1,254 | null |
14,588 | 1 | 14,621 | null | 14 | 1,004 | I've found SVN to be extremely useful for documentation, personal files, among other non-source code uses.
What other practical uses have you found to version control systems in general?
| Do you use version control other than for source code? | CC BY-SA 2.5 | 0 | 2008-08-18T13:30:21.283 | 2009-06-09T00:54:06.593 | 2008-08-18T13:42:18.420 | 55 | 1,492 | [
"svn",
"version-control",
"cvs"
] |
14,581 | 2 | null | 10,825 | 3 | null |
One of the quickest and neatest ways to do this is using
```
DATEADD(dd, DATEDIFF( dd, 0, @DAY ), 0)
```
It avoids the CPU busting "convert the date into a string without the time and then converting it back again" logic.
It also does not expose the internal implementation that the "time portion is expressed as a... | null | CC BY-SA 2.5 | null | 2008-08-18T13:26:53.617 | 2009-05-18T15:52:40.150 | 2009-05-18T15:52:40.150 | 993 | 993 | null |
14,583 | 2 | null | 14,504 | 1 | null | @Brian Ensink: I don't find code formatted like that easier to read.
```
int var1 = 1 //Comment
int longerVar = 2 //Comment
int anotherVar = 4 //Command
```
versus
```
int var2 = 1 //Comment
int longerVar = 2 //Comment
int anotherVar = 4 //Comment
```
I find the first lines easier to read than the second l... | null | CC BY-SA 2.5 | null | 2008-08-18T13:27:14.647 | 2008-08-18T13:27:14.647 | null | null | 572 | null |