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,232
2
null
13,647
0
null
If the problem is that you want to transition to PHP and you are happy to continue running on a windows server with .NET support you might consider wrapping your code using [swig](http://swig.sourceforge.net/). This can be used to generated stubs to execute from php and you can then go about rewriting the .NET code in...
null
CC BY-SA 2.5
null
2008-08-18T05:55:19.380
2008-08-18T05:55:19.380
null
null
1,675
null
14,234
2
null
1,679
2
null
Statistics is hard :-). After a year of reading and re-reading books and papers and can only say with confidence that I understand the very basics of it. You might wish to investigate ready-made libraries for whichever programming language you are using, because they are many gotcha's in math in general and statistics...
null
CC BY-SA 2.5
null
2008-08-18T06:01:11.973
2008-08-18T06:01:11.973
null
null
1,265
null
14,247
1
14,261
null
13
8,775
I've only done a bit of Flex development thus far, but I've preferred the approach of creating controls programmatically over mxml files, because (and , correct me if I'm wrong!) I've gathered that you can't have it both ways -- that is to say, have the class functionality in a separate ActionScript class file but have...
Flex: does painless programmatic data binding exist?
CC BY-SA 2.5
0
2008-08-18T06:15:08.840
2011-06-07T22:26:08.103
2008-08-30T16:51:01.843
1,109
266
[ "apache-flex", "actionscript-3", "data-binding", "mxml" ]
14,241
1
14,369
null
3
798
I know that will resolve to `App_Data` in an ASP.NET application but is that hard-coded or is there a generalized mechanism at work along the lines of ?
What's the deal with |Pipe-delimited| variables in connection strings?
CC BY-SA 3.0
null
2008-08-18T06:06:38.420
2013-07-05T09:00:29.520
2013-07-05T09:00:29.520
1,584,286
1,659
[ ".net", "ado.net", "syntax", "macros", "connection-string" ]
14,221
2
null
14,155
0
null
@Derek Park I also use VS for most of my coding needs, but use Notepad++ for all other plain text files. I was disappointed by VS one time when it failed to open a 500 meg text file that I was hoping to change a few characters in. Seeing as it has support for viewing files in hex (ie. binary data) I was hoping that it...
null
CC BY-SA 2.5
null
2008-08-18T05:40:15.883
2008-08-18T06:21:58.437
2008-08-18T06:21:58.437
1,621
1,621
null
14,264
1
14,265
null
11
16,649
What are the basic steps to compile an OpenGL application using under Visual C++ Express Edition?
Using GLUT with Visual C++ Express Edition
CC BY-SA 2.5
0
2008-08-18T07:00:21.057
2013-06-25T13:54:41.967
2008-12-14T03:14:34.383
370
1,630
[ "visual-studio", "visual-c++", "opengl", "glut" ]
14,245
2
null
14,155
0
null
@_l0ser > I also use VS for most of my coding needs, but use Notepad++ for all other plain text files. I was disappointed by VS one time when it failed to open a 500 meg text file that I was hoping to change a few characters in. Seeing as it has support for viewing files in hex (ie. binary data) I was hoping that it w...
null
CC BY-SA 2.5
null
2008-08-18T06:11:31.827
2008-08-18T06:11:31.827
null
null
872
null
14,237
2
null
5,982
0
null
Here is the code. It is basically a copy of BindingUtils.bindProperty that is setup for a ComboBox so that both the combo box and the model are updated when either of the two change. ``` public static function bindProperty2(site:Object, prop:String, host:Object, chain:Object, commitOnly:Boolean = false):ChangeWatcher {...
null
CC BY-SA 4.0
null
2008-08-18T06:03:49.627
2021-10-25T12:24:03.480
2021-10-25T12:24:03.480
17,169,050
22
null
14,263
1
14,795
null
5
4,383
We have some files on our website that users of our software can download. Some of the files are in virtual folders on the website while others are on our ftp. The files on the ftp are generally accessed by clicking on an ftp:// link in a browser - most of our customers do not have an ftp client. The other files are ac...
Best way to let users download a file from my website: http or ftp
CC BY-SA 2.5
0
2008-08-18T07:00:15.067
2008-09-17T07:58:17.633
2008-09-17T07:58:17.633
2,961
961
[ "http", "ftp", "download" ]
14,268
2
null
14,263
2
null
I think it doesn't matter really, because the ftp is also transparent nowdays. You don't have to know anything special, the browser handles all. I suggest that if they are downloading one file at one time, you can go to http. However if they have to download several files with one go, I prefer ftp, because it's much ...
null
CC BY-SA 2.5
null
2008-08-18T07:13:37.007
2008-08-18T07:13:37.007
null
null
968
null
14,266
2
null
14,263
4
null
If speed matters to your users, and they are technically inclined, http allows multiple connections for one file (if the client supports it. I use [DownThemAll](http://www.downthemall.net/)). Most browsers should handle ftp links just fine, though.
null
CC BY-SA 2.5
null
2008-08-18T07:07:29.077
2008-08-18T07:07:29.077
null
null
1,621
null
14,240
2
null
1,644
0
null
There's tons of tech podcasts. Some that I've subscribed to: Daily shows - [WebbAlert](https://miroguide.com/channels/3066)- [Loaded](https://www.miroguide.com/channels/5651) Non-Dailys - [Cranky Geeks](https://www.miroguide.com/channels/1014)- [DL.TV](https://www.miroguide.com/channels/1430) And as you can see,...
null
CC BY-SA 2.5
null
2008-08-18T06:05:15.847
2008-08-18T06:05:15.847
null
null
null
null
14,271
1
14,272
null
1
1,037
When the Boost library/headers is used with VC++ 9 compilers (Visual C++ 2008 Express Edition or Visual Studio 2008), a lot of benign warnings are generated. They are of 2 kinds: 1. Warning about the Wp64 setting. 2. Warning about the compiler version. How can I turn off these warnings?
Boost warnings with VC++ 9
CC BY-SA 2.5
null
2008-08-18T07:20:19.940
2009-01-15T05:29:05.007
2009-01-15T05:29:05.007
15,614
1,630
[ "c++", "visual-studio", "boost", "warnings" ]
14,270
2
null
14,087
2
null
I did something similar to your idea once and it was very successful, though I suspect it is really more of a system test than a unit test. As you suggest your random number generator must be seeded with the same value, and must produce an identical sequence each time. The game ran on 50hz cycles, so timing was not an ...
null
CC BY-SA 2.5
null
2008-08-18T07:18:24.233
2008-08-18T07:18:24.233
null
null
259
null
14,274
2
null
13,963
-1
null
Regardless of the persisted format, using a Regex would be the fastest way of parsing. In ruby it'd probably be a few lines of code. ``` \[KEY:(.*)\] \[SUBKEY:(.*)\] ``` These two would get you the Value and SubValue in the first group. Check out MSDN on how to match a regex against a string. This is something eve...
null
CC BY-SA 2.5
null
2008-08-18T07:22:11.950
2008-08-18T07:22:11.950
null
null
1,695
null
14,273
2
null
8,042
1
null
I see a lot of people advocating using a base class to share common functionality. Be careful with this - you should favor composition over inheritance. Inheritance should only be used for polymorphism, when it makes sense from a modelling point of view. It is not a good tool for code reuse. As for the question: Be wa...
null
CC BY-SA 2.5
null
2008-08-18T07:21:20.140
2008-08-18T09:20:41.727
2008-08-18T09:20:41.727
1,710
1,710
null
14,277
2
null
9,033
64
null
Events are really delegates under the hood and any delegate object can have multiple functions attached to it and detatched from it using the += and -= operators, respectively. Events can also be controlled with the add/remove, similar to get/set except they're invoked when += and -= are used: ``` public event Event...
null
CC BY-SA 2.5
null
2008-08-18T07:33:17.560
2008-11-06T17:46:05.313
2008-11-06T17:46:05.313
1,659
1,659
null
14,281
1
14,320
null
7
3,043
I have over a million text files compressed into 40 zip files. I also have a list of about 500 model names of phones. I want to find out the number of times a particular model was mentioned in the text files. Is there any python module which can do a regex match on the files without unzipping it. Is there a simple wa...
Is there a python module for regex matching in zip files
CC BY-SA 3.0
0
2008-08-18T07:41:09.010
2014-09-02T15:44:08.707
2014-09-02T15:44:08.707
1,812,471
1,448
[ "python", "regex", "zip", "text-processing" ]
14,272
2
null
14,271
1
null
1. Warning about the Wp64 setting. Turn off the /Wp64 setting which is set by default. You can find it in Project Properties -> C/C++ -> General. 2. Warning about the compiler version. Go to the Boost trunk (online) and get the latest boost\boost\config\compiler\visualc.hpp header file. Diff it with the current file a...
null
CC BY-SA 2.5
null
2008-08-18T07:20:33.373
2008-08-18T07:20:33.373
null
null
1,630
null
14,265
2
null
14,264
9
null
1. If you don't have Visual C++ Express Edition (VCEE), download and install VCEE. 2. The default install of Visual C++ Express Edition builds for the .Net platform. We'll need to build for the Windows platform since OpenGL and GLUT are not yet fully supported under .Net. For this we need the Microsoft Platform SDK. (...
null
CC BY-SA 2.5
null
2008-08-18T07:00:32.600
2008-08-18T07:08:50.773
2008-08-18T07:08:50.773
1,630
1,630
null
14,296
2
null
14,263
3
null
I think most users, even today, are more familiar with http than ftp and for that reason you should stick with http by default unless there's a compelling reason to use ftp. It's nit-picking, though.
null
CC BY-SA 2.5
null
2008-08-18T07:58:11.393
2008-08-18T07:58:11.393
null
null
null
null
14,282
2
null
14,278
20
null
The following code snippet (C#) constructs an instance of any concrete classes derived from `Base` found in class libraries (*.dll) in the application path and stores them in a list. ``` using System.IO; using System.Reflection; List<Base> objects = new List<Base>(); DirectoryInfo dir = new DirectoryInfo(Application....
null
CC BY-SA 2.5
null
2008-08-18T07:41:24.390
2008-08-21T09:58:38.537
2017-05-23T12:25:06.450
-1
891
null
14,287
1
14,290
null
52
78,652
In my C/C++ program, I'm using [OpenCV](http://opencvlibrary.sourceforge.net/) to capture images from my webcam. The camera ([Logitech QuickCam IM](http://en.wikipedia.org/wiki/Quickcam)) can capture at resolutions , and . But, for some strange reason, OpenCV gives me images of resolution only. Calls to change the re...
Increasing camera capture resolution in OpenCV
CC BY-SA 2.5
0
2008-08-18T07:45:33.057
2015-09-10T14:19:40.733
2008-08-31T01:40:53.287
305
1,630
[ "c", "image", "opencv", "webcam", "resolutions" ]
14,292
2
null
13,963
0
null
@Gishu Actually once I'd accommodated for escaped characters my regex ran slightly slower than my hand written top down recursive parser and that's without the nesting (linking sub-items to their parents) and error reporting the hand written parser had. The regex was a slightly faster to write (though I do have a bit...
null
CC BY-SA 2.5
null
2008-08-18T07:52:29.237
2008-08-18T07:52:29.237
null
null
214
null
14,286
2
null
14,278
3
null
Basically you can do it in two ways. The first is to import kernel32.dll and use LoadLibrary and GetProcAddress as you used it before: ``` [DllImport("kernel32.dll")] internal static extern IntPtr LoadLibrary(String dllname); [DllImport("kernel32.dll")] internal static extern IntPtr GetProcAddress(IntPtr hModule, ...
null
CC BY-SA 2.5
null
2008-08-18T07:44:55.757
2008-08-18T07:44:55.757
null
null
968
null
14,297
1
14,298
null
4
563
I'm using [FBO](http://en.wikipedia.org/wiki/Framebuffer_Object)s in my OpenGL code and I'm seeing compilation errors on `GL\_FRAMEBUFFER\_INCOMPLETE\_DUPLICATE\_ATTACHMENT\_EXT`. What's the cause of this and how do I fix it?
GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT errors
CC BY-SA 3.0
null
2008-08-18T07:59:07.617
2013-07-04T12:14:35.060
2013-07-04T12:14:35.060
1,584,286
1,630
[ "opengl", "fbo" ]
14,300
1
14,313
null
24
54,981
For example; with the old command prompt it would be: ``` cmd.exe /k mybatchfile.bat ```
How do I make Powershell run a batch file and then stay open?
CC BY-SA 3.0
0
2008-08-18T08:00:15.820
2013-11-18T23:31:24.863
2013-03-06T21:01:15.737
4,023
887
[ "powershell", "batch-file" ]
14,261
2
null
14,247
29
null
Don't be afraid of MXML. It's great for laying out views. If you write your own components then writing them in ActionScript may sometimes give you a little more control, but for non-reusable views MXML is much better. It's more terse, bindings are extemely easy to set up, etc. However, bindings in pure ActionScript ...
null
CC BY-SA 2.5
null
2008-08-18T06:56:22.250
2008-08-18T06:56:22.250
null
null
1,109
null
14,304
2
null
14,281
0
null
You could loop through the zip files, reading individual files using the zipfile module and running your regex on those, eliminating to unzip all the files at once. I'm fairly certain that you can't run a regex over the zipped data, at least not meaningfully.
null
CC BY-SA 2.5
null
2008-08-18T08:06:30.707
2008-08-18T08:06:30.707
null
null
242,853
null
14,305
2
null
14,278
28
null
As of .NET 3.5 there's a formalized, baked-in way to create and load plugins from a .NET application. It's all in the [System.AddIn](http://msdn.microsoft.com/en-us/library/system.addin.aspx) namespace. For more information you can check out this article on MSDN: [Add-ins and Extensibility](http://msdn.microsoft.com/en...
null
CC BY-SA 2.5
null
2008-08-18T08:07:21.047
2008-08-18T08:07:21.047
null
null
615
null
14,310
1
14,311
null
10
1,515
I'm having problems using textures that are larger than the OpenGL window or the display size as non-display render targets. What's the solution for this problem?
Using OpenGL textures larger than window/display size
CC BY-SA 3.0
null
2008-08-18T08:09:10.840
2013-07-04T12:14:20.293
2013-07-04T12:14:20.293
1,584,286
1,630
[ "opengl", "textures" ]
14,307
2
null
14,155
19
null
I'm a massive fan of Notepad2 - it is so quick! For quick simple editing of text for me it's close to perfect. It has syntax colouring for Xml and code and can be extended easily. We use Dreamweaver and Visual Studio for larger coding efforts.
null
CC BY-SA 2.5
null
2008-08-18T08:08:19.673
2008-08-18T13:41:21.293
2008-08-18T13:41:21.293
982
982
null
14,290
2
null
14,287
17
null
There doesn't seem to be a solution. The resolution can be increased to using [this hack](http://tech.groups.yahoo.com/group/OpenCV/message/28735) shared by . Here are the details reproduced: Add to : ``` #define CV_CAP_PROP_DIALOG_DISPLAY 8 #define CV_CAP_PROP_DIALOG_FORMAT 9 #define CV_CAP_PROP_DIALOG_SOURCE 10 #d...
null
CC BY-SA 2.5
null
2008-08-18T07:46:15.300
2008-08-18T07:46:15.300
null
null
1,630
null
14,306
2
null
8,747
1
null
I am not sure how much experience you have with version control systems, but for someone who has no prior knowledge about the concept I recommend reading the first few chapters of the [Subversion book](http://svnbook.red-bean.com/). Some of the things described there are specific to Subversion, but many of the concepts...
null
CC BY-SA 2.5
null
2008-08-18T08:08:04.930
2008-08-18T08:08:04.930
null
null
1,709
null
14,308
1
14,327
null
4
698
I'm currently working at a small web development company, we mostly do campaign sites and other promotional stuff. For our first year we've been using a "server" for sharing project files, a plain windows machine with a network share. But this isn't exactly future proof. SVN is great for code (it's what we use now), ...
What is the best way to handle files for a small office?
CC BY-SA 2.5
0
2008-08-18T08:08:39.983
2012-08-10T06:34:05.330
2012-08-10T06:34:05.330
246,246
914
[ "version-control", "versioning", "file-management" ]
14,278
1
14,282
null
27
15,061
I'd like to provide some way of creating dynamically loadable plugins in my software. Typical way to do this is using the [LoadLibrary](http://msdn.microsoft.com/en-us/library/ms684175(VS.85).aspx) WinAPI function to load a dll and calling [GetProcAddress](http://msdn.microsoft.com/en-us/library/ms683212(VS.85).aspx) t...
How to load plugins in .NET?
CC BY-SA 3.0
0
2008-08-18T07:34:56.917
2020-01-02T23:17:34.590
2013-12-07T18:06:43.120
759,866
1,534
[ ".net", "windows", "plugins", "add-in", "extensibility" ]
14,314
2
null
14,281
0
null
To access the contents of a zip file you have to unzip it, although the zipfile package makes this fairly easy, as you can unzip each file within an archive individually. [Python zipfile module](http://docs.python.org/lib/module-zipfile.html)
null
CC BY-SA 2.5
null
2008-08-18T08:10:57.577
2008-08-18T08:10:57.577
null
null
1,404
null
14,311
2
null
14,310
4
null
There's a simple solution. Assuming your (non-display) textures are and you are restricted to a window/display. ``` unsigned int WIN_WIDTH = 256; unsigned int WIN_HEIGHT = WIN_WIDTH; unsigned int TEX_WIDTH = 1024; unsigned int TEX_HEIGHT = TEX_WIDTH; ``` Use the to create your OpenGL window: ``` glutInitWindowS...
null
CC BY-SA 2.5
null
2008-08-18T08:09:23.990
2008-08-18T08:09:23.990
null
null
1,630
null
14,298
2
null
14,297
4
null
The cause of this error is an older version of NVIDIA's , which still has this definition. Whereas the most recent versions of [GLEW](http://glew.sourceforge.net/) don't. This leads to compilation errors in code that you had written previously or got from the web. The definition for FBO used to be present in the spec...
null
CC BY-SA 2.5
null
2008-08-18T07:59:23.763
2008-08-18T08:59:30.443
2008-08-18T08:59:30.443
1,630
1,630
null
14,313
2
null
14,300
35
null
Drop into a cmd instance (or indeed PowerShell itself) and type this: ``` powershell -? ``` You'll see that powershell.exe has a "-noexit" parameter which tells it not to exit after executing a "startup command".
null
CC BY-SA 2.5
null
2008-08-18T08:10:30.633
2011-03-18T08:15:40.177
2011-03-18T08:15:40.177
73,070
615
null
14,312
2
null
14,278
5
null
One tip is to load all plugins and such into an own AppDomain, since the code running can be potentially malicious. An own AppDomain can also be used to "filter" assemblies and types that you don't want to load. ``` AppDomain domain = AppDomain.CreateDomain("tempDomain"); ``` And to load an assembly into the applica...
null
CC BY-SA 2.5
null
2008-08-18T08:09:40.527
2008-08-18T08:09:40.527
null
null
936
null
14,316
2
null
2,658
0
null
@superjoe30 Yes, absoluteley. Once you start using version control you never go back. I use it for everything, even my "home" folder. @Orion Edwards Subversion does not require a server. You can access a local repository directly (via a client, of course), and there is no server process involved.
null
CC BY-SA 2.5
null
2008-08-18T08:17:01.603
2008-08-18T08:17:01.603
null
null
1,709
null
14,318
1
14,319
null
19
29,359
I'm writing a simple `OpenGL` application that uses `GLUT`. I don't want to roll my own font rendering code, instead I want to use the simple bitmap fonts that ship with `GLUT`. What are the steps to get them working?
Using GLUT bitmap fonts
CC BY-SA 3.0
0
2008-08-18T08:18:27.827
2014-02-08T18:55:12.440
2014-02-08T18:55:12.440
321,731
1,630
[ "opengl", "fonts", "bitmap", "glut" ]
14,321
2
null
13,881
1
null
I thought about facial recognition many years ago but my search only found a web API - no plugin api. My idea was to use an external facial recognition program to slowly index my entire catalogue of pictures and reliably tag them according to who was in them. It wouldn't need to be 100% accurate, but anything over 85% ...
null
CC BY-SA 2.5
null
2008-08-18T08:19:44.487
2008-08-18T08:19:44.487
null
null
342
null
14,330
1
14,331
null
21
26,398
How do I convert the RGB values of a pixel to a single monochrome value?
RGB to monochrome conversion
CC BY-SA 2.5
0
2008-08-18T08:27:32.910
2021-11-15T21:07:16.847
null
null
1,630
[ "colors", "rgb", "monochrome" ]
14,320
2
null
14,281
10
null
There's nothing that will automatically do what you want. However, there is a python zipfile module that will make this easy to do. Here's how to iterate over the lines in the file. ``` #!/usr/bin/python import zipfile f = zipfile.ZipFile('myfile.zip') for subfile in f.namelist(): print subfile data = f.re...
null
CC BY-SA 2.5
null
2008-08-18T08:19:06.390
2008-09-03T14:23:56.420
2008-09-03T14:23:56.420
116
116
null
14,327
2
null
14,308
7
null
SVN is great for binaries, too. If you're afraid you can't compare revisions, I can tell you that it is possible for Word docs, using Tortoise. But I do not know, what you mean with "expanding the versioning". SVN is no document management system. Edit: > but I feel it might be a bit overkill for our purposes If...
null
CC BY-SA 2.5
null
2008-08-18T08:24:48.157
2008-08-18T09:59:18.420
2008-08-18T09:59:18.420
1,069
1,069
null
14,333
2
null
9,091
3
null
I've recently used [Tag Lib Sharp](http://github.com/mono/taglib-sharp) to write some C# apps for cleaning up and maintaining my music library. I found the library very easy to use and although i've only used it for MP3's, it appears to support a range of other music/video formats.
null
CC BY-SA 3.0
null
2008-08-18T08:29:43.310
2011-12-02T01:32:18.127
2011-12-02T01:32:18.127
1,061
1,061
null
14,331
2
null
14,330
26
null
I found one possible solution in the [Color FAQ](http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html). The Y (from the ) captures what is most perceived by humans as color in one channel. So, use those coefficients: ``` mono = (0.2125 * color.r) + (0.7154 * color.g) + (0.0721 * color.b); ```
null
CC BY-SA 2.5
null
2008-08-18T08:27:43.830
2008-08-18T08:27:43.830
null
null
1,630
null
14,344
1
14,346
null
14
21,391
Is it possible to compile and run OpenGL programs from under Cygwin? If yes, how?
Starting off with OpenGL under Cygwin
CC BY-SA 2.5
0
2008-08-18T08:48:34.037
2021-06-21T21:26:36.107
null
null
1,630
[ "opengl", "cygwin" ]
14,339
2
null
14,330
6
null
[This MSDN article](http://msdn.microsoft.com/en-us/library/bb332387.aspx#tbconimagecolorizer_grayscaleconversion) uses `(0.299 * color.R + 0.587 * color.G + 0.114 * color.B);` [This Wikipedia article](http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale) uses `(0.3* color.R + 0.59 * color.G + 0.11 * c...
null
CC BY-SA 3.0
null
2008-08-18T08:40:50.403
2015-10-08T01:07:23.643
2015-10-08T01:07:23.643
67,579
1,659
null
14,343
2
null
14,061
1
null
Have you though of implementing the "Weak Event Pattern" instead of regular events? 1. Weak Event Pattern in WPF 2. Weak Event Patterns (MSDN)
null
CC BY-SA 2.5
null
2008-08-18T08:48:25.473
2008-08-18T08:48:25.473
null
null
936
null
14,345
2
null
14,087
1
null
If you are testing the rendering engine I guess you could render specific test scenes, do a screen captures and compare them to reference test renderings. That way you can detect if changes in the engine breaks anything, visually. You can write similar test for the sound engine, or even animation (by comparing a series...
null
CC BY-SA 2.5
null
2008-08-18T08:49:19.497
2008-08-18T08:49:19.497
null
null
1,709
null
14,319
2
null
14,318
29
null
Simple text display is easy to do in OpenGL using GLUT bitmap fonts. These are simple 2D fonts and are suitable for display your 3D environment. However, they're perfect for text that needs to be overlayed on the display window. Here are the sample steps to display Eric Cartman's favorite quote colored in green on a...
null
CC BY-SA 2.5
null
2008-08-18T08:18:38.433
2008-08-18T08:18:38.433
null
null
1,630
null
14,337
2
null
14,061
5
null
I do not agree DannySmurf Some WPF layout objects can clog up your memory and make your application really slow when they are not garbage collected. So I find the choice of words to be correct, you are leaking memory to objects you no longer use. You expect the items to be garbage collected, but they aren't, because t...
null
CC BY-SA 3.0
null
2008-08-18T08:39:35.507
2016-07-01T11:58:59.370
2016-07-01T11:58:59.370
254,882
900
null
14,356
2
null
14,308
1
null
We've just moved over to [Perforce](http://perforce.com/) and have been really happy with it. It's a commercial product, but it's so powerful and easy to use that it's worth the price per seat IMHO.
null
CC BY-SA 2.5
null
2008-08-18T09:00:35.790
2008-08-18T09:00:35.790
null
null
1,030
null
14,358
1
14,360
null
3
2,178
I need to access the (such as the MVP matrices) in my Cg shader program. I'm passing these values to my Cg shader program manually using calls such as `cgGLSetStateMatrixParameter()` in my C/C++ code. Is there an easier way to do this?
Accessing OpenGL state variables in Cg
CC BY-SA 3.0
0
2008-08-18T09:10:54.290
2013-07-04T12:15:02.157
2013-07-04T12:15:02.157
1,584,286
1,630
[ "opengl", "variables", "state", "cg" ]
14,351
2
null
14,308
0
null
You might want to consider using a Mac as your server and using [Time Machine](http://www.apple.com/macosx/features/timemachine.html) to backup your shared folders. Doing this gives you automatic backups and allows you to share through Samba so everyone can have a [network drive](http://support.microsoft.com/kb/308582)...
null
CC BY-SA 2.5
null
2008-08-18T08:55:07.813
2008-08-18T09:02:40.483
2008-08-18T09:02:40.483
680
680
null
14,352
2
null
10,443
4
null
I suggest using either a [Unix socket](http://en.wikipedia.org/wiki/Unix_domain_socket) or [D-Bus](http://en.wikipedia.org/wiki/D-Bus). Using a socket might be faster if you're familiar with Unix sockets programming and only want a few operations, whereas D-Bus might make it easier to concentrate on implementing the fu...
null
CC BY-SA 2.5
null
2008-08-18T08:55:41.417
2008-08-18T08:55:41.417
null
null
954
null
14,350
1
14,404
null
2
4,286
I have a Flex swf hosted at [http://www.a.com/a.swf](http://www.a.com/a.swf). I have a flash code on another doamin that tries loading the SWF: ``` _loader = new Loader(); var req:URLRequest = new URLRequest("http://services.nuconomy.com/n.swf"); _loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onLoaderFinish...
How do I call a Flex SWF from a remote domain using Flash (AS3)?
CC BY-SA 3.0
null
2008-08-18T08:53:39.423
2013-03-20T13:03:05.400
2013-03-20T13:03:05.400
249,690
1,228,206
[ "apache-flex", "flash", "actionscript-3", "security" ]
14,362
2
null
14,359
0
null
Basically, if you're putting your code on someone else's machine, there's no absolute guarantee of security. You can look at all kinds of security tricks, but in the end, the code is on their machine so it's out of your control. How much do you stand to lose if the end user loads an unauthorised plugin?
null
CC BY-SA 2.5
null
2008-08-18T09:14:30.973
2008-08-18T09:14:30.973
null
null
49
null
14,359
1
14,362
null
1
638
What recommendations can you give for a system which must do the following: Load Plugins (and eventually execute them) but have 2 methods of loading these plugins: - - And we need to be reasonably secure that the authorized plugins are the real deal (unmodified). However all plugins must be in seperate assemblies. ...
.Net Dynamic Plugin Loading with Authority
CC BY-SA 2.5
null
2008-08-18T09:10:56.427
2009-04-25T12:12:01.637
2009-04-25T11:26:13.367
49,246
1,111
[ "c#", ".net", "plugins", "assemblies", "dynamics-crm" ]
14,364
1
14,365
null
4
5,469
How and at what stage is a valid OpenGL context created in my code? I'm getting errors on even simple OpenGL code.
Valid OpenGL context
CC BY-SA 3.0
0
2008-08-18T09:17:17.693
2015-05-30T22:16:38.540
2015-05-30T22:16:38.540
4,370,109
1,630
[ "opengl", "glut" ]
14,346
2
null
14,344
13
null
It is possible to compile and run OpenGL programs under Cygwin. I illustrate the basic steps here: 1. I assume you know OpenGL programming. If not, get the Red Book (The OpenGL Programming Guide). It is mandatory reading for OpenGL anyway. 2. I assume you have Cygwin installed. If not, visit cygwin.com and install it...
null
CC BY-SA 2.5
null
2008-08-18T08:50:35.327
2008-08-18T08:50:35.327
null
null
1,630
null
14,367
2
null
14,359
0
null
> How much do you stand to lose if the end user loads an unauthorised plugin? Admittedly this won't happen often, but when/if it does happen we lose a lot and I although I understand we will produce nothing 100% secure, I want to make it enough of a hindrance to put people off doing it. The annoying thing about going...
null
CC BY-SA 2.5
null
2008-08-18T09:20:43.910
2008-08-18T09:20:43.910
null
null
1,111
null
14,360
2
null
14,358
4
null
If you are on any fairly recent ( and later), your Cg shader programs can in fact access the OpenGL state (MVP matrices, material and light settings) directly. This makes writing those programs less painful. Here are some of the state variables which can be accessed: MVP matrices of all types: ``` state.matrix.mvp ...
null
CC BY-SA 2.5
null
2008-08-18T09:11:13.117
2008-08-18T09:11:13.117
null
null
1,630
null
14,370
1
14,371
null
7
18,235
Is it easy to create GLUT pop-up menus for my OpenGL application? If yes, how?
GLUT pop-up menus
CC BY-SA 2.5
0
2008-08-18T09:22:49.833
2016-03-02T20:24:28.667
null
null
1,630
[ "opengl", "glut", "menu" ]
14,378
1
14,379
null
34
55,515
I want to use the mouse scrollwheel in my OpenGL GLUT program to zoom in and out of a scene? How do I do that?
Using the mouse scrollwheel in GLUT
CC BY-SA 2.5
0
2008-08-18T09:29:34.593
2018-11-14T18:15:05.720
null
null
1,630
[ "opengl", "glut", "scrollwheel" ]
14,373
1
14,411
null
6
2,352
I am converting from existing CVS repository to SVN repository. CVS repository has few brances and I'd like to rename branches while converting. Wanted conversion is like this: ``` CVS branch SVN branch HEAD -> branches/branchX branchA -> trunk branchB -> branches/branchB branchC ...
CVS to SVN conversion and reorganizing branches
CC BY-SA 2.5
0
2008-08-18T09:26:17.487
2009-01-27T19:06:10.587
2009-01-27T19:06:10.587
1,431
1,431
[ "svn", "cvs" ]
14,369
2
null
14,241
5
null
From the MSDN [Smart Client Data Blog](https://blogs.msdn.com/smartclientdata/archive/2005/08/26/456886.aspx): > In this version, the .NET runtime added support for what we call the DataDirectory macro. This allows Visual Studio to put a special variable in the connection string that will be expanded at run-...
null
CC BY-SA 2.5
null
2008-08-18T09:22:47.383
2008-08-18T09:22:47.383
null
null
51
null
14,371
2
null
14,370
13
null
Creating and using pop-up menus with GLUT is very simple. Here is a code sample that creates a pop-up menu with 4 options: ``` // Menu items enum MENU_TYPE { MENU_FRONT, MENU_SPOT, MENU_BACK, MENU_BACK_FRONT, }; // Assign a default value MENU_TYPE show = MENU_BACK_FRONT; // Menu handl...
null
CC BY-SA 3.0
null
2008-08-18T09:23:11.627
2016-03-02T20:24:28.667
2016-03-02T20:24:28.667
369
1,630
null
14,382
2
null
14,373
1
null
Subversion branches are directories, so you could just move the branches after the import has finished and no history will be lost.
null
CC BY-SA 2.5
null
2008-08-18T09:34:19.373
2008-08-20T07:33:51.730
2008-08-20T07:33:51.730
954
954
null
14,381
2
null
14,375
0
null
Try this: ``` using System.Data.Linq.Mapping; public partial class MyEntity: IEntity { [Column(Storage="IDfield", DbType="int not null", IsPrimaryKey=true)] public int ID { get { return this.IDfield; } set { this.IDfield=value; } } } ```
null
CC BY-SA 2.5
null
2008-08-18T09:33:29.610
2008-08-18T09:33:29.610
null
null
1,659
null
14,383
2
null
14,373
5
null
It's been a while since I've done a CVS -> SVN conversion, and probably even longer since I did one with a nontrivial branch structure. Since SVN can move around directory trees fairly easily, you could do the whole conversion first, then sort out the trunk/branches structure entirely within SVN later. If you do get t...
null
CC BY-SA 2.5
null
2008-08-18T09:34:58.280
2008-08-18T09:34:58.280
null
null
893
null
14,365
2
null
14,364
4
null
From the posts on `comp.graphics.api.opengl`, it seems like most newbies burn their hands on their first OpenGL program. In most cases, the error is caused due to OpenGL functions being called even before a valid OpenGL context is created. OpenGL is a state machine. Only after the machine has been started and humming i...
null
CC BY-SA 3.0
null
2008-08-18T09:17:46.193
2013-01-22T10:39:46.087
2013-01-22T10:39:46.087
1,410,342
1,630
null
14,384
2
null
14,350
0
null
Mayhaps [System.Security.allowDomain](http://livedocs.adobe.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentation&file=00001750.htm) is what you need?
null
CC BY-SA 2.5
null
2008-08-18T09:36:26.063
2008-08-18T09:36:26.063
null
null
266
null
14,375
1
null
null
10
2,970
I'm using repository pattern with LINQ, have IRepository.DeleteOnSubmit(T Entity). It works fine, but when my entity class has interface, like this: ``` public interface IEntity { int ID {get;set;} } public partial class MyEntity: IEntity { public int ID { get { return this.IDfield; } set { th...
LINQ, entity that implements Interface and exception in mapping
CC BY-SA 3.0
null
2008-08-18T09:28:22.520
2015-11-25T12:54:19.620
2015-11-25T12:53:23.737
168,175
1,407
[ "c#", "linq", "repository" ]
14,393
2
null
14,308
7
null
If you have a windows 2003 server, you can have a look at Sharepoint Services 3.0 ([http://technet.microsoft.com/en-us/windowsserver/sharepoint/bb684453.aspx](http://technet.microsoft.com/en-us/windowsserver/sharepoint/bb684453.aspx)). It can do version control for documents, and has a nice integration with Office, st...
null
CC BY-SA 2.5
null
2008-08-18T09:46:45.807
2008-08-18T09:46:45.807
null
null
971
null
14,390
2
null
12,374
2
null
You can also try [Visual Studio for Database Professionals](http://msdn.microsoft.com/en-gb/vsts2008/products/bb933747.aspx). It's mainly about change management but also has tools for generating test data and unit tests. It's pretty expensive tho.
null
CC BY-SA 2.5
null
2008-08-18T09:41:19.873
2008-08-18T09:41:19.873
null
null
1,073
null
14,379
2
null
14,378
25
null
Note that venerable [Nate Robin's GLUT](http://www.xmission.com/~nate/glut.html) library doesn't support the scrollwheel. But, later implementations of GLUT like [FreeGLUT](http://freeglut.sourceforge.net/) do. Using the scroll wheel in FreeGLUT is dead simple. Here is how: Declare a callback function that shall be c...
null
CC BY-SA 2.5
null
2008-08-18T09:29:49.010
2008-08-18T09:29:49.010
null
null
1,630
null
14,394
2
null
11,043
0
null
I always use aliases when writing queries. Generally I try and abbreviate the table name to 1 or 2 representative letters. So Users becomes u and debtor_transactions becomes dt etc... It saves on typing and still carries some meaning. The shorter names makes it more readable to me as well.
null
CC BY-SA 2.5
null
2008-08-18T09:47:16.757
2008-08-18T09:47:16.757
null
null
1,073
null
14,387
2
null
14,386
137
null
It looks like Microsoft has deprecated lots of calls which use buffers to improve code security. However, the solutions they're providing aren't portable. Anyway, if you aren't interested in using the secure version of their calls (like ), you need to place a definition of before your included header files. For exampl...
null
CC BY-SA 2.5
null
2008-08-18T09:39:16.510
2008-08-18T09:39:16.510
null
null
1,630
null
14,389
1
14,391
null
31
17,163
I have a script that parses the filenames of TV episodes (show.name.s01e02.avi for example), grabs the episode name (from the www.thetvdb.com API) and automatically renames them into something nicer (Show Name - [01x02].avi) The script works fine, that is until you try and use it on files that have Unicode show-names ...
Regex and unicode
CC BY-SA 2.5
0
2008-08-18T09:41:14.273
2018-12-06T11:30:33.877
2012-03-29T18:10:10.003
471,272
745
[ "python", "regex", "unicode", "character-properties" ]
14,399
2
null
14,389
0
null
\X seems to be available as a generic word-character in some languages, it allows you to match a single character disregarding of how many bytes it takes up. Might be useful.
null
CC BY-SA 2.5
null
2008-08-18T09:53:13.860
2008-08-18T09:53:13.860
null
null
914
null
14,386
1
14,387
null
74
191,944
With the , I get the following warning when my code uses the `fopen()` and such calls: ``` 1>foo.cpp(5) : warning C4996: 'fopen' was declared deprecated 1> c:\program files\microsoft visual studio 8\vc\include\stdio.h(234) : see declaration of 'fopen' 1> Message: 'This function or variable may be unsafe. ...
fopen deprecated warning
CC BY-SA 4.0
0
2008-08-18T09:38:58.913
2022-11-08T05:51:37.607
2022-11-08T05:51:37.607
10,669,875
1,630
[ "visual-c++", "fopen", "deprecated" ]
14,391
2
null
14,389
20
null
Use a subrange of `[\u0000-\uFFFF]` for what you want. You can also use the `re.UNICODE` compile flag. [The docs](http://docs.python.org/lib/re-syntax.html) say that if `UNICODE` is set, `\w` will match the characters `[0-9_]` plus whatever is classified as alphanumeric in the Unicode character properties database. ...
null
CC BY-SA 4.0
null
2008-08-18T09:43:10.493
2018-12-06T11:30:33.877
2018-12-06T11:30:33.877
5,997,596
1,659
null
14,398
1
15,428
null
14
10,760
Does anybody use the Class Designer much in Visual Studio? I have downloaded the Modeling Power Toys for 2005 and have been impressed with what I've seen so far. The MSDN Class Designer Blog doesn't seem to have been updated for a while but it still looks quite useful. Is the Class Designer a quick way to build the b...
Class Designer in Visual Studio - is it worth it?
CC BY-SA 2.5
0
2008-08-18T09:51:36.763
2019-06-13T19:47:17.067
2010-06-17T08:05:19.860
982
982
[ "visual-studio", "class-design", "class-designer" ]
14,400
2
null
14,398
6
null
Short answer: No. Longer answer: No, not at all. There's a reason it hasn't been updated. [EDIT] @ MrBrutal - Sorry - do you mean to generate code or just represent a design? Because I took your question as to generate code for you.
null
CC BY-SA 2.5
null
2008-08-18T09:54:12.157
2008-08-18T10:12:07.630
2008-08-18T10:12:07.630
1,122
1,122
null
14,405
2
null
14,373
0
null
I am especially interested in preserving commit history. If I rename and move branches around in SVN after the conversion, will the history be preserved?
null
CC BY-SA 2.5
null
2008-08-18T09:59:53.130
2008-08-18T09:59:53.130
null
null
1,431
null
14,402
1
14,403
null
34
40,163
In my simple OpenGL program I get the following error about exit redefinition: ``` 1>c:\program files\microsoft visual studio 8\vc\include\stdlib.h(406) : error C2381: 'exit' : redefinition; __declspec(noreturn) differs 1> c:\program files\microsoft visual studio 8\vc\platformsdk\include\gl\glut.h(146) : see de...
GLUT exit redefinition error
CC BY-SA 2.5
0
2008-08-18T09:55:29.457
2011-12-30T14:27:21.393
null
null
1,630
[ "opengl", "glut" ]
14,395
1
null
null
3
1,922
For my own project at home, I'm using the rather excellent managed subversion hosting from [CVSDude](http://cvsdude.com/). As it's only me working on the code right now, I'm not using CruiseControl.net, however I expect this will change in the next couple of months and will want a full build process to kick off upon c...
Managed Source Control Hosting and Continuous Integration with CVSDude and CruiseControl.net
CC BY-SA 2.5
null
2008-08-18T09:49:56.440
2009-10-16T10:48:35.820
2008-08-23T20:49:29.500
2,134
1,122
[ "svn", "version-control", "build-process", "cruisecontrol.net" ]
14,407
2
null
14,398
0
null
I have tried it out couple of times, mainly for viewing existing classes. If it would show all the relationships, it would be more usefull. Now it only shows inheritation.
null
CC BY-SA 2.5
null
2008-08-18T10:01:36.433
2008-08-18T10:01:36.433
null
null
1,703
null
14,403
2
null
14,402
75
null
The which ships with the recent versions of Visual Studio has a different (and conflicting) definition of the function. It clashes with the definition in . Override the definition in glut.h with that in stdlib.h. Place the stdlib.h line above the glut.h line in your code. ``` #include <stdlib.h> #include <GL/gl...
null
CC BY-SA 2.5
null
2008-08-18T09:55:45.883
2008-08-18T09:55:45.883
null
null
1,630
null
14,408
2
null
14,398
0
null
I find it useful sometimes, more often for documentation afterwards. It's a new little utility, but I don't think you get the full functionality in VS Pro - I think you need Architect's Edition.
null
CC BY-SA 2.5
null
2008-08-18T10:02:04.153
2008-08-18T10:02:04.153
null
null
905
null
14,397
1
14,441
null
7
2,658
Currently we have a project with a standard subversion repository layout of: ./trunk ./branches ./tags However, as we're moving down the road of OSGi and a modular project, we've ended up with: ./trunk/bundle/main ./trunk/bundle/modulea ./trunk/bundle/moduleb ./tags/bundle/main-1.0.0 ./tags/bundle/main-1.0.1 ./tags/...
When should a multi-module project to split into separate repository trees?
CC BY-SA 2.5
0
2008-08-18T09:51:18.153
2013-11-26T04:29:07.617
2009-07-21T18:47:50.057
123,582
1,720
[ "java", "svn", "osgi" ]
14,410
1
14,489
null
32
11,811
Pretty much every other editor that isn't a vi descendant (vim, cream, vi-emu) seems to use the emacs shortcuts (+ to delete back a word and so on)
Why are there so few modal-editors that aren't vi*?
CC BY-SA 3.0
0
2008-08-18T10:08:09.447
2019-08-01T22:56:00.723
2015-04-21T15:52:52.057
3,906,965
745
[ "vim", "editor", "vi" ]
14,406
2
null
11,043
5
null
I suppose the only thing that really speaks against them is excessive abstraction. If you will have a good idea what the alias refers to (good naming helps; 'a', 'b', 'c' can be quite problematic especially when you're reading the statement months or years later), I see nothing wrong with aliasing. As others have said...
null
CC BY-SA 2.5
null
2008-08-18T10:00:42.597
2008-08-18T10:00:42.597
null
null
1,600
null
14,413
1
14,414
null
16
16,844
I want to use the functions exposed under the OpenGL extensions. I'm on Windows, how do I do this?
Using OpenGL extensions On Windows
CC BY-SA 2.5
0
2008-08-18T10:11:45.600
2015-01-16T11:57:24.310
2008-09-26T05:51:18.883
1,630
1,630
[ "opengl", "glew" ]
14,411
2
null
14,373
9
null
> Yes. Subversion also keeps track of changes to the directory structure, and all version history is preserved even if a file is moved in the tree. I recommend converting the repository with [cvs2svn](http://cvs2svn.tigris.org/), including branches and tags. Once the repository is in Subversion you can move the bra...
null
CC BY-SA 2.5
null
2008-08-18T10:08:26.090
2008-08-18T10:08:26.090
null
null
1,709
null
14,412
2
null
6,658
18
null
TestNG's biggest draw cards for me include its support test groups, and more importantly - test group dependencies (marking a test as being dependent of a group causes the tests to simply skip running when the dependent group fails). TestNG's other big draw cards for me include test parameters, data providers, annotat...
null
CC BY-SA 2.5
null
2008-08-18T10:09:42.563
2008-08-18T10:09:42.563
null
null
1,720
null