PostId int64 4 11.8M | PostCreationDate stringlengths 19 19 | OwnerUserId int64 1 1.57M | OwnerCreationDate stringlengths 10 19 | ReputationAtPostCreation int64 -55 461k | OwnerUndeletedAnswerCountAtPostTime int64 0 21.5k | Title stringlengths 3 250 | BodyMarkdown stringlengths 5 30k ⌀ | Tag1 stringlengths 1 25 ⌀ | Tag2 stringlengths 1 25 ⌀ | Tag3 stringlengths 1 25 ⌀ | Tag4 stringlengths 1 25 ⌀ | Tag5 stringlengths 1 25 ⌀ | PostClosedDate stringlengths 19 19 ⌀ | OpenStatus stringclasses 5
values | unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
20,731 | 08/21/2008 18:35:57 | 25 | 08/01/2008 12:15:23 | 933 | 59 | In C++, how do you clear a stringstream variable? | I've tried several things already,
std::stringstream m;
m.empty();
m.clear();
both of which don't work. | c++ | c | null | null | null | null | open | In C++, how do you clear a stringstream variable?
===
I've tried several things already,
std::stringstream m;
m.empty();
m.clear();
both of which don't work. | 0 |
20,734 | 08/21/2008 18:37:15 | 2,286 | 08/21/2008 13:42:59 | 48 | 6 | Red-Black Trees | I've seen binary trees and binary searching mentioned in several books I've read lately, but as I'm still at the beginning of my studies in Computer Science, I've yet to take a class that's really dealt with algorithms and data structures in a serious way.
I've checked around the typical sources (Wikipedia, Google) ... | algorithms | binary-tree | null | null | null | null | open | Red-Black Trees
===
I've seen binary trees and binary searching mentioned in several books I've read lately, but as I'm still at the beginning of my studies in Computer Science, I've yet to take a class that's really dealt with algorithms and data structures in a serious way.
I've checked around the typical sources... | 0 |
20,735 | 08/21/2008 18:37:31 | 2,328 | 08/21/2008 16:45:54 | 61 | 2 | Useful Vim features | Vim is my editor of choice, and I feel I am above average is my use of it. I do recognize, though, that the feature list of vim is huge. With this in mind, I was wondering what features you vim users out there use on a regular basis. | softwaretools | vim | text-editor | vimtips | null | null | open | Useful Vim features
===
Vim is my editor of choice, and I feel I am above average is my use of it. I do recognize, though, that the feature list of vim is huge. With this in mind, I was wondering what features you vim users out there use on a regular basis. | 0 |
20,744 | 08/21/2008 18:42:14 | 1,215 | 08/13/2008 13:32:36 | 31 | 1 | SQL Reporting Services viewer for webpage - can you move the View Report button? | Using the viewer control for display of SQL Reporting Services reports on web page (Microsoft.ReportViewer.WebForms), can you move the View Report button? It defaults to the very right side of the report, which means you have to scroll all the way across before the button is visible. Not a problem for reports that fit ... | asp.net | reportviewer | sqlreportingservices | null | null | null | open | SQL Reporting Services viewer for webpage - can you move the View Report button?
===
Using the viewer control for display of SQL Reporting Services reports on web page (Microsoft.ReportViewer.WebForms), can you move the View Report button? It defaults to the very right side of the report, which means you have to scrol... | 0 |
20,762 | 08/21/2008 18:47:49 | 2,029 | 08/19/2008 21:21:52 | 16 | 5 | How do you remove invalid hexedecimal characters from an XML-based data source prior to constructing an XmlReader or XPathDocument that uses the data? | Is there any easy/general way to clean an XML based data source prior to using it in an XmlReader so that I can gracefully consume XML data that is non-conformant to the hexadecimal character restrictions placed on XML?
*Background:*
I need to consume an XML-based data source that conforms to a specific format (t... | xml | null | null | null | null | null | open | How do you remove invalid hexedecimal characters from an XML-based data source prior to constructing an XmlReader or XPathDocument that uses the data?
===
Is there any easy/general way to clean an XML based data source prior to using it in an XmlReader so that I can gracefully consume XML data that is non-conformant t... | 0 |
20,765 | 08/21/2008 18:49:01 | 1,194 | 08/13/2008 12:27:52 | 83 | 9 | XRef Relationships in dbml | So I have a database schema like this:
**Users**<br>
UserId
**RoleUserXRef**<br>
RoleUserId<br>
RoleId<br>
UserId<br>
**Roles**<br/>
RoleId<br/>
Name<br/>
With foreign keys defined between User & RoleUserXRef and RoleUserXRef & Role. Basically, I have a one to many relationship betwe... | linq-to-sql | null | null | null | null | null | open | XRef Relationships in dbml
===
So I have a database schema like this:
**Users**<br>
UserId
**RoleUserXRef**<br>
RoleUserId<br>
RoleId<br>
UserId<br>
**Roles**<br/>
RoleId<br/>
Name<br/>
With foreign keys defined between User & RoleUserXRef and RoleUserXRef & Role. Basically, I have ... | 0 |
20,782 | 08/21/2008 18:55:15 | 1,360 | 08/14/2008 18:11:31 | 29 | 4 | Call Project Server Interface web method from an msi installer | I'm using a Visual Studio web setup project to install an application that extends the functionality of Project Server. I want to call a method from the PSI (Project Server Interface) from one of the custom actions of my setup project, but every time a get a "401 Unauthorized access" error. What should I do to be able ... | msi | methods | action | null | null | null | open | Call Project Server Interface web method from an msi installer
===
I'm using a Visual Studio web setup project to install an application that extends the functionality of Project Server. I want to call a method from the PSI (Project Server Interface) from one of the custom actions of my setup project, but every time a... | 0 |
20,787 | 08/21/2008 18:57:59 | 381 | 08/05/2008 10:39:26 | 1,194 | 23 | When to use stl bitsets instead of separate variables | In what situation would it be more appropriate for me to use a bitset (stl container) to manage a set of flags rather than having them declared as a number of separate (bool) variables ?
Will I get a significant performance gain if I used a bitset for 50 flags rather than using 50 separate bool variables ? | c++ | performance | stdlib | null | null | null | open | When to use stl bitsets instead of separate variables
===
In what situation would it be more appropriate for me to use a bitset (stl container) to manage a set of flags rather than having them declared as a number of separate (bool) variables ?
Will I get a significant performance gain if I used a bitset for 50 fla... | 0 |
20,788 | 08/21/2008 18:58:51 | 2,134 | 08/20/2008 13:58:24 | 94 | 8 | What tools do you use for static code analysis? | [This question][1] on [Cyclomatic Complexity][2] made me think more about [static code analysis][3]. Analyzing code complexity and consistency is occasionally useful, and I'd like to start doing it more. What tools do you recommend (per language) for such analysis? [Wikipedia][4] has a large list of tools, but which... | complexity | code-analysis | null | null | null | null | open | What tools do you use for static code analysis?
===
[This question][1] on [Cyclomatic Complexity][2] made me think more about [static code analysis][3]. Analyzing code complexity and consistency is occasionally useful, and I'd like to start doing it more. What tools do you recommend (per language) for such analysis?... | 0 |
20,791 | 08/21/2008 19:00:04 | 2,348 | 08/21/2008 19:00:04 | 1 | 0 | How do I set up a test cert for an SSL connection in .NET? | I would like to create an SSL connection for generic TCP communication. I think I figured out how to do it in the code, using the info here: http://msdn.microsoft.com/en-us/library/system.net.security.sslstream.aspx
What I'm having trouble with is creating a cert so I can test this out. I tried makecert.exe testCert... | .net | null | null | null | null | null | open | How do I set up a test cert for an SSL connection in .NET?
===
I would like to create an SSL connection for generic TCP communication. I think I figured out how to do it in the code, using the info here: http://msdn.microsoft.com/en-us/library/system.net.security.sslstream.aspx
What I'm having trouble with is creati... | 0 |
20,794 | 08/21/2008 19:00:52 | 1,892 | 08/19/2008 06:17:29 | 92 | 7 | Find broken symlinks with Python. | If I call os.stat() on a broken symlink, python throws an OSError exception. This makes it useful for finding them. However, there are a few other reasons that os.stat() might throw a similar exception. Is there a more precise way of detecting broken symlinks with Python under Linux? | python | linux | null | null | null | null | open | Find broken symlinks with Python.
===
If I call os.stat() on a broken symlink, python throws an OSError exception. This makes it useful for finding them. However, there are a few other reasons that os.stat() might throw a similar exception. Is there a more precise way of detecting broken symlinks with Python under Lin... | 0 |
20,797 | 08/21/2008 19:01:28 | 1,048 | 08/11/2008 19:34:31 | 40 | 8 | How to split a byte array | I have a byte array in memory, read from a file. I would like to split the byte array at a certain point(index) without having to just create a new byte array and copy each byte at a time, increasing the in memory foot print of the operation. What I would like is something like this:
>byte[] largeBytes = [1,2,3,4,5,6... | array | split | null | null | null | null | open | How to split a byte array
===
I have a byte array in memory, read from a file. I would like to split the byte array at a certain point(index) without having to just create a new byte array and copy each byte at a time, increasing the in memory foot print of the operation. What I would like is something like this:
>b... | 0 |
20,811 | 08/21/2008 19:05:20 | 1,340 | 08/14/2008 15:25:59 | 11 | 2 | Automate Syncing Oracle Tables With MySQL Tables | The university I work at uses Oracle for the database system. We currently have programs we run at night to download what we need into some local Access tables for our testing needs. Access is getting to small for this now and we need something bigger. Also, the nightly jobs require constant maintance to keep working (... | database | mysql | oracle | null | null | null | open | Automate Syncing Oracle Tables With MySQL Tables
===
The university I work at uses Oracle for the database system. We currently have programs we run at night to download what we need into some local Access tables for our testing needs. Access is getting to small for this now and we need something bigger. Also, the nig... | 0 |
20,814 | 08/21/2008 19:05:34 | 1,490 | 08/15/2008 21:35:24 | 123 | 22 | How to move a item from one menu to another? | In the Visual Studio designer, how do you move a menu item from one menu to another? I would assume DnD would work, but it seems to only work within a menu for me.
I usually resort to editing the .Designer.cs files by hand. | c# | winforms | vs2005 | null | null | null | open | How to move a item from one menu to another?
===
In the Visual Studio designer, how do you move a menu item from one menu to another? I would assume DnD would work, but it seems to only work within a menu for me.
I usually resort to editing the .Designer.cs files by hand. | 0 |
20,821 | 08/21/2008 19:08:01 | 1,363 | 08/14/2008 18:24:19 | 38 | 2 | SQL 2005 Reporting Services custom controls - what are the limits? | Reading MSDN (and other sources) about custom controls for reporting services 2005. It looks like I'm limited to generating a bitmap. Not even with some mapping overlay for detecting mouse clicks on it. Is there away to go around this? There are two things I would like to do:
- Embed HTML directly into the report,... | mssql | reporting-services | sqlreportingservices | null | null | null | open | SQL 2005 Reporting Services custom controls - what are the limits?
===
Reading MSDN (and other sources) about custom controls for reporting services 2005. It looks like I'm limited to generating a bitmap. Not even with some mapping overlay for detecting mouse clicks on it. Is there away to go around this? There are tw... | 0 |
20,840 | 08/21/2008 19:12:59 | 357 | 08/05/2008 01:29:23 | 887 | 59 | SQL Server - Dirty Reads Pros & Cons | Why should I or shouldn't I use dirty reads:
set transaction isolation level read uncommitted
in SQL Server? | sql | sql-server | null | null | null | null | open | SQL Server - Dirty Reads Pros & Cons
===
Why should I or shouldn't I use dirty reads:
set transaction isolation level read uncommitted
in SQL Server? | 0 |
20,841 | 08/21/2008 19:13:00 | 179 | 08/03/2008 02:38:27 | 89 | 5 | DCOM: CoCreateInstanceEx returns E_ACCESSDENIED | I'm working on a DCOM application with the server and client on two machines, both of which are running WinXP with Service Pack 2. On both machines, I'm logged in with the same username and password.
When the client on one machine calls CoCreateInstanceEx, asking the other machine to start up the server application,... | dcom | security | winxp | null | null | null | open | DCOM: CoCreateInstanceEx returns E_ACCESSDENIED
===
I'm working on a DCOM application with the server and client on two machines, both of which are running WinXP with Service Pack 2. On both machines, I'm logged in with the same username and password.
When the client on one machine calls CoCreateInstanceEx, asking ... | 0 |
20,850 | 08/21/2008 19:16:27 | 1,120 | 08/12/2008 13:45:53 | 241 | 13 | How to Stop NTFS volume auto-mounting on OS X | I'm a bit newbieish when it comes to the deeper parts of OSX configuration and am having to put up with a fairly irritating niggle which while I can put up with it, I know under Windows I could have sorted in minutes.
Basically, I have an external disk with two volumes:
One is an HFS+ volume which I use for Time... | osx | hardware | null | null | null | null | open | How to Stop NTFS volume auto-mounting on OS X
===
I'm a bit newbieish when it comes to the deeper parts of OSX configuration and am having to put up with a fairly irritating niggle which while I can put up with it, I know under Windows I could have sorted in minutes.
Basically, I have an external disk with two volu... | 0 |
20,852 | 08/21/2008 19:16:51 | 1,164,871 | 08/17/2008 19:40:24 | 11 | 5 | Cross platform file-access tracking | I'd like to be able to track file read/writes of specific program invocations. No information about the actual transactions is required, just the file names involved.
Is there a cross platform solution to this? What are various platform specific methods? On linux I know there's strace/ptrace (if there are faster ... | filesystems | crossplatform | ptrace | null | null | null | open | Cross platform file-access tracking
===
I'd like to be able to track file read/writes of specific program invocations. No information about the actual transactions is required, just the file names involved.
Is there a cross platform solution to this? What are various platform specific methods? On linux I know th... | 0 |
20,853 | 08/21/2008 19:16:55 | 2,260 | 08/21/2008 11:39:22 | 47 | 4 | DarwinPorts or Fink? | Which do you use?
I am just in the process of installing sqlite3 from DarwinPorts (mac version is 3.1.3 and python 2.5 seems to be linked to a newer version, fileformat is new...) and have to download all the tools I'm sure fink allready knows about *again* = so far I have allways found everything with fink...
W... | mac | osx | null | null | null | null | open | DarwinPorts or Fink?
===
Which do you use?
I am just in the process of installing sqlite3 from DarwinPorts (mac version is 3.1.3 and python 2.5 seems to be linked to a newer version, fileformat is new...) and have to download all the tools I'm sure fink allready knows about *again* = so far I have allways found ev... | 0 |
20,856 | 08/21/2008 19:18:05 | 459 | 08/05/2008 21:54:42 | 58 | 12 | How do you recommend implementing tags or tagging | I've heard of a few ways to implement tagging; using a mapping table between TagID and ItemID (makes sense to me, but does it scale?), adding a fixed number of possible TagID columns to ItemID (seems like a bad idea), Keeping tags in a text column that's comma separated (sounds crazy but could work). I've even heard so... | tags | null | null | null | null | null | open | How do you recommend implementing tags or tagging
===
I've heard of a few ways to implement tagging; using a mapping table between TagID and ItemID (makes sense to me, but does it scale?), adding a fixed number of possible TagID columns to ItemID (seems like a bad idea), Keeping tags in a text column that's comma sepa... | 0 |
20,861 | 08/21/2008 19:19:47 | 1,436 | 08/15/2008 15:43:19 | 380 | 19 | Automated Web Service Testing | I would like to do some integration testing of my web services from NUnit or MBUnit. I haven't delved into this too deeply yet, but the problem seems to be that I would have to spin up WebDev.WebServer.exe within the "unit test" to do this. (I know it's not really a unit test).
I can test the underlying objects the ... | unittesting | integration-testing | webservices | null | null | null | open | Automated Web Service Testing
===
I would like to do some integration testing of my web services from NUnit or MBUnit. I haven't delved into this too deeply yet, but the problem seems to be that I would have to spin up WebDev.WebServer.exe within the "unit test" to do this. (I know it's not really a unit test).
I c... | 0 |
20,880 | 08/21/2008 19:26:44 | 75 | 08/01/2008 15:54:25 | 310 | 22 | Java JPanel redraw issues | I have a Java swing application with a panel that contains three JComboBoxes that do not draw properly. The combox boxes just show up as the down arrow on the right side, but without the label of the currently selected value. The boxes will redraw correctly if the window is resized either bigger or smaller by even on... | java | swing | null | null | null | null | open | Java JPanel redraw issues
===
I have a Java swing application with a panel that contains three JComboBoxes that do not draw properly. The combox boxes just show up as the down arrow on the right side, but without the label of the currently selected value. The boxes will redraw correctly if the window is resized eith... | 0 |
20,882 | 08/21/2008 19:26:48 | 1,946 | 08/19/2008 14:53:06 | 86 | 3 | How do I interpret 'netstat -a' output | Some things look strange to me:
- What is the distinction between 0.0.0.0, 127.0.0.1, and [::]?
- How should each part of the foreign address be read (part1:part2)?
- What does a state Time_Wait, Close_Wait mean?
- etc.
Could someone give a quick overview of how to interpret these results? | netstat | networking | administration | null | null | null | open | How do I interpret 'netstat -a' output
===
Some things look strange to me:
- What is the distinction between 0.0.0.0, 127.0.0.1, and [::]?
- How should each part of the foreign address be read (part1:part2)?
- What does a state Time_Wait, Close_Wait mean?
- etc.
Could someone give a quick overview of ... | 0 |
20,899 | 08/21/2008 19:29:47 | 1,042 | 08/11/2008 18:02:48 | 259 | 32 | My VMware ESX server console volume went readonly. How can I save my VMs? | Two RAID volumes, VMware kernel/console running on a RAID1, vmdks live on a RAID5. Entering a login at the console just results in SCSI errors, no password prompt. Praise be, the VMs are actually still running. We're thinking, though, that upon reboot the kernel may not start again and the VMs will be down.
We have... | vmware | recovery | esx | null | null | null | open | My VMware ESX server console volume went readonly. How can I save my VMs?
===
Two RAID volumes, VMware kernel/console running on a RAID1, vmdks live on a RAID5. Entering a login at the console just results in SCSI errors, no password prompt. Praise be, the VMs are actually still running. We're thinking, though, that ... | 0 |
20,910 | 08/21/2008 19:34:00 | 1,226 | 08/13/2008 13:55:55 | 91 | 8 | Silverlight vs Flex | My company develops several types of applications. A lot of our business comes from doing multimedia-type apps, typically done in Flash. However, now that side of the house is starting to migrate towards doing Flex development.
Most of our other development is done using .NET. I'm trying to make a push towards do... | silverlight | flex | .net | c# | flash | null | open | Silverlight vs Flex
===
My company develops several types of applications. A lot of our business comes from doing multimedia-type apps, typically done in Flash. However, now that side of the house is starting to migrate towards doing Flex development.
Most of our other development is done using .NET. I'm trying ... | 0 |
20,912 | 08/21/2008 19:34:47 | 1,372 | 08/14/2008 21:03:27 | 1 | 1 | Veritas Backup Exec 11d RALUS Communications Error | I'm trying to do a file system backup of a RedHat Enterprise Linux v4 server using Symantec Backup Exec 11d (Rev 7170). The backup server is Windows Server 2003.
I can browse the target server to create a selection list, and when I do a test run it completes successfully.
However, when I run a real backup, the j... | backup | backupexec | redhat | symantec | null | null | open | Veritas Backup Exec 11d RALUS Communications Error
===
I'm trying to do a file system backup of a RedHat Enterprise Linux v4 server using Symantec Backup Exec 11d (Rev 7170). The backup server is Windows Server 2003.
I can browse the target server to create a selection list, and when I do a test run it completes s... | 0 |
20,922 | 08/21/2008 19:39:43 | 1,782 | 08/18/2008 14:30:58 | 329 | 27 | Do you comment your code? | I usually comment "ifs" and write in "human language" what it means, like "checks if it's A or B".
I find it's better for junior programmers that read teh code to read what it means first and then analyse the statement (also for me when I'm checking old code)
What do you do? What about other scenarios? Pros? Cons... | comments | null | null | null | null | null | open | Do you comment your code?
===
I usually comment "ifs" and write in "human language" what it means, like "checks if it's A or B".
I find it's better for junior programmers that read teh code to read what it means first and then analyse the statement (also for me when I'm checking old code)
What do you do? What ab... | 0 |
20,923 | 08/21/2008 19:39:44 | 636 | 08/07/2008 12:32:33 | 278 | 22 | VBScript/IIS - How do I automatically set ASP.NET version for a particular website | I need to script the creation of app pools and websites on IIS 6.0. I have been able to create these using adsutil.vbs and iisweb.vbs, but don't know how to set the version of ASP.NET for the sites I have just created to 2.0.50727.0.
Ideally I would like to adsutil.vbs to update the metabase. How do I do this? | iis | aspnet | vbscript | sysadmin | administration | null | open | VBScript/IIS - How do I automatically set ASP.NET version for a particular website
===
I need to script the creation of app pools and websites on IIS 6.0. I have been able to create these using adsutil.vbs and iisweb.vbs, but don't know how to set the version of ASP.NET for the sites I have just created to 2.0.50727.0... | 0 |
20,926 | 08/21/2008 19:41:07 | 2,078 | 08/20/2008 08:00:36 | 43 | 8 | Nesting HTML- anchor tags | Today I was working on a tab navigation for a webpage. I tried the [Sliding Doors][1] approach which worked fine. Then I realized that I must include an option to delete a tab (usually a small X in the right corner of each tab).
I wanted to use a nested anchor, which didn't work because it is [not][2] allowed. Then... | html | anchor | tabs | null | null | null | open | Nesting HTML- anchor tags
===
Today I was working on a tab navigation for a webpage. I tried the [Sliding Doors][1] approach which worked fine. Then I realized that I must include an option to delete a tab (usually a small X in the right corner of each tab).
I wanted to use a nested anchor, which didn't work becau... | 0 |
20,927 | 08/21/2008 19:41:57 | 1,914 | 08/19/2008 14:10:15 | 61 | 6 | updating an auto_now DateTimeField in a parent model w/ Django | I've got two models: Message and Attachment. Each attachment is attached to a specific message, using a ForeignKey on the Attachment model. Both models have an auto_now DateTimeField called updated. I'm trying to make it so that when any attachment is saved, it also sets the updated field on the associated message to n... | database | orm | django | null | null | null | open | updating an auto_now DateTimeField in a parent model w/ Django
===
I've got two models: Message and Attachment. Each attachment is attached to a specific message, using a ForeignKey on the Attachment model. Both models have an auto_now DateTimeField called updated. I'm trying to make it so that when any attachment is ... | 0 |
20,952 | 08/21/2008 19:49:31 | 2,338 | 08/21/2008 17:23:25 | 1 | 0 | Is there a way to get a System.Configuration.Configuration instance based on arbitrary xml? | I'm trying to unit test a custom ConfigurationSection I've written, and I'd like to load some arbitrary configuration XML into a [System.Configuration.Configuration](http://msdn.microsoft.com/en-us/library/system.configuration.configuration.aspx) for each test (rather than put the test configuration xml in the Tests.dl... | c# | .net | testing | configuration | configurationmanager | null | open | Is there a way to get a System.Configuration.Configuration instance based on arbitrary xml?
===
I'm trying to unit test a custom ConfigurationSection I've written, and I'd like to load some arbitrary configuration XML into a [System.Configuration.Configuration](http://msdn.microsoft.com/en-us/library/system.configurat... | 0 |
20,958 | 08/21/2008 19:50:42 | 437 | 08/05/2008 18:13:45 | 1,356 | 42 | List of standard lengths for database fields | I'm designing a database table and once again asking myself the same stupid question: **How long should the firstname field be?**
Does anyone have a list of reasonable lengths for the most common fields, such as first name, last name, and email address? | database | standards | null | null | null | null | open | List of standard lengths for database fields
===
I'm designing a database table and once again asking myself the same stupid question: **How long should the firstname field be?**
Does anyone have a list of reasonable lengths for the most common fields, such as first name, last name, and email address? | 0 |
20,959 | 08/21/2008 19:50:44 | 1,490 | 08/15/2008 21:35:24 | 123 | 22 | Determine Loaded Assemblies | How can I determine all of the assemblies that my .NET desktop application has loaded? I'd like to put them in the about box so I can query customers over the phone to determine what version of XYZ they have on their PC.
It would be nice to see both managed and unmanaged assemblies. I realize the list will get lon... | .net | winforms | dll | assembly | null | null | open | Determine Loaded Assemblies
===
How can I determine all of the assemblies that my .NET desktop application has loaded? I'd like to put them in the about box so I can query customers over the phone to determine what version of XYZ they have on their PC.
It would be nice to see both managed and unmanaged assemblies.... | 0 |
20,981 | 08/21/2008 19:56:58 | 2,134 | 08/20/2008 13:58:24 | 124 | 9 | How many lines of code is too many? | One thing that occasionally drives me crazy is reading another person's functions that span 5 vertical monitor lengths, or .cpp files that are over 2000 lines long. For readability, wouldn't it be better to break a 1000 line function into many smaller sub-functions called by one function? Shouldn't a class implementa... | codingstyle | bestpractices | language-agnostic | rant | null | 06/26/2011 18:36:15 | not constructive | How many lines of code is too many?
===
One thing that occasionally drives me crazy is reading another person's functions that span 5 vertical monitor lengths, or .cpp files that are over 2000 lines long. For readability, wouldn't it be better to break a 1000 line function into many smaller sub-functions called by on... | 4 |
20,993 | 08/21/2008 19:59:57 | 1,610 | 08/17/2008 14:28:50 | 1 | 0 | Storing logged in user details | When creating a web application, and lets say you have a User object denoting a single user, what do you think is the best way to store that the user has logged in?
Two ways I've thought about have been:
* Stored the user database id in a session variable
* Stored the entire user object in a session variable
... | bestpractices | web-application | null | null | null | null | open | Storing logged in user details
===
When creating a web application, and lets say you have a User object denoting a single user, what do you think is the best way to store that the user has logged in?
Two ways I've thought about have been:
* Stored the user database id in a session variable
* Stored the entire u... | 0 |
20,998 | 08/21/2008 20:00:59 | 76 | 08/01/2008 15:56:38 | 86 | 6 | Cannot Add a Sql Server Login | When I try to create a SQL Server Login by saying
CREATE LOGIN [ourdomain\SQLAccessGroup] FROM WINDOWS;
I get this error
The server principal 'ourdomain\SQLAccessGroup' already exists.
However, when I try this code
DROP LOGIN [ourdomain\SQLAccessGroup]
I get this error
Cannot drop the login 'ourd... | sql-server-2005 | administration | null | null | null | null | open | Cannot Add a Sql Server Login
===
When I try to create a SQL Server Login by saying
CREATE LOGIN [ourdomain\SQLAccessGroup] FROM WINDOWS;
I get this error
The server principal 'ourdomain\SQLAccessGroup' already exists.
However, when I try this code
DROP LOGIN [ourdomain\SQLAccessGroup]
I get this... | 0 |
21,027 | 08/21/2008 20:07:59 | 2,277 | 08/21/2008 12:56:17 | 1 | 1 | Changing ctrl+tab behavior for moving between document in Visual Studio | Is it possible to change how **ctrl+tab** and **shift+ctrl+tab** work in Visual Studio? I have disabled the popup navigator window because I only want to switch between items in the tab control. My problem is the inconsistency of what switching to the next and previous document do.
Every other program that uses a t... | visual-studio | workenvironment | null | null | null | null | open | Changing ctrl+tab behavior for moving between document in Visual Studio
===
Is it possible to change how **ctrl+tab** and **shift+ctrl+tab** work in Visual Studio? I have disabled the popup navigator window because I only want to switch between items in the tab control. My problem is the inconsistency of what switchin... | 0 |
21,052 | 08/21/2008 20:20:22 | 392 | 08/05/2008 12:29:07 | 546 | 32 | "using" namespace equivalent in ASP.NET markup | When I'm working with DataBound controls in ASP.NET 2.0 such as a Repeater, I know the fastest way to retrieve a property of a bound object (instead of using Reflection with the Eval() function) is to cast the DataItem object to the type it is and then use that object natively, like the following:
<%#((MyType)Co... | asp.net | null | null | null | null | null | open | "using" namespace equivalent in ASP.NET markup
===
When I'm working with DataBound controls in ASP.NET 2.0 such as a Repeater, I know the fastest way to retrieve a property of a bound object (instead of using Reflection with the Eval() function) is to cast the DataItem object to the type it is and then use that object... | 0 |
21,060 | 08/21/2008 20:22:50 | 1,782 | 08/18/2008 14:30:58 | 364 | 30 | Is there any way to configure windows to not change the focus? | I'm tired of being typing something, having a pop-up with a question appear, and hitting enter before reading it... (it also happens with some windows that are not pop-ups)
Do you know if there's some setting I could touch for this not to happen? | windows | tips-and-tricks | null | null | null | null | open | Is there any way to configure windows to not change the focus?
===
I'm tired of being typing something, having a pop-up with a question appear, and hitting enter before reading it... (it also happens with some windows that are not pop-ups)
Do you know if there's some setting I could touch for this not to happen? | 0 |
21,078 | 08/21/2008 20:27:15 | 2,358 | 08/21/2008 20:22:15 | 1 | 0 | What's the best string concatenation method using C#? | What's the most efficient way to concatenate strings? | c# | efficiency | concatenation | null | null | null | open | What's the best string concatenation method using C#?
===
What's the most efficient way to concatenate strings? | 0 |
21,091 | 08/21/2008 20:29:48 | 1,793 | 08/18/2008 15:34:34 | 198 | 3 | Do you use MDA/MDD/MDSD, any kind of model-driven approach? Will it be the future? | Programming languages had several (r)evolutionary steps in their history. Some people argue that model-driven approaches will be The Next Big Thing. There are tools like openArchitectureWare, AndroMDA, Sculptor/Fornax Platform etc. that promise incredible productivity boosts. However, I made the experience that it is e... | paradigms | model-driven | null | null | null | null | open | Do you use MDA/MDD/MDSD, any kind of model-driven approach? Will it be the future?
===
Programming languages had several (r)evolutionary steps in their history. Some people argue that model-driven approaches will be The Next Big Thing. There are tools like openArchitectureWare, AndroMDA, Sculptor/Fornax Platform etc. ... | 0 |
21,133 | 08/21/2008 20:40:38 | 305 | 08/04/2008 14:04:19 | 446 | 33 | Simplest way to profile a PHP script | What's the easiest way to profile a PHP script?
I'd love tacking something on that shows me a dump of all function calls and how long they took but I'm also OK with putting something around specific functions.
I tried experimenting with the [microtime](http://us3.php.net/manual/en/function.microtime.php) function... | profiling | php | null | null | null | null | open | Simplest way to profile a PHP script
===
What's the easiest way to profile a PHP script?
I'd love tacking something on that shows me a dump of all function calls and how long they took but I'm also OK with putting something around specific functions.
I tried experimenting with the [microtime](http://us3.php.net/... | 0 |
21,137 | 08/21/2008 20:43:29 | 1,875 | 08/19/2008 02:23:09 | 195 | 15 | ASP.Net MVC and nUnit | - I have nUnit installed.
- I have VS2008 Team Edition installed.
- I have ASP.Net MVC Preview 4 (Codeplex) installed.
How do make Visual Studio show me nUnit as a testing framework when creating a new MVC project? At this point I still only have the Microsoft Testing Framework as a choice. | asp.net-mvc | nunit | visual-studio | null | null | null | open | ASP.Net MVC and nUnit
===
- I have nUnit installed.
- I have VS2008 Team Edition installed.
- I have ASP.Net MVC Preview 4 (Codeplex) installed.
How do make Visual Studio show me nUnit as a testing framework when creating a new MVC project? At this point I still only have the Microsoft Testing Framework as... | 0 |
21,174 | 08/21/2008 21:01:52 | 1,759 | 08/18/2008 12:54:01 | 85 | 3 | FOSS tools for Flash development | I'm looking into doing some development for Flash. Do I need to buy expensive commercial tools or are there some FOSS tools out there I can get started with? | flash | actionscript | opensource | null | null | null | open | FOSS tools for Flash development
===
I'm looking into doing some development for Flash. Do I need to buy expensive commercial tools or are there some FOSS tools out there I can get started with? | 0 |
21,184 | 08/21/2008 21:03:39 | 83 | 08/01/2008 16:31:56 | 808 | 70 | How do I use Linq for paging a generic collection? | I've got a System.Generic.Collections.List(Of MyCustomClass) type object.
Given integer varaibles pagesize and pagenumber, how can I query only any single page of MyCustomClass objects? | linq | .net | paging | null | null | null | open | How do I use Linq for paging a generic collection?
===
I've got a System.Generic.Collections.List(Of MyCustomClass) type object.
Given integer varaibles pagesize and pagenumber, how can I query only any single page of MyCustomClass objects? | 0 |
21,207 | 08/21/2008 21:12:01 | 1,562 | 08/16/2008 17:21:33 | 1 | 0 | db4o experiences | I'm currently trying out db4o (the java version) and I pretty much like what I see. But I cannot help wondering how it does perform in a real live (web-)environment. Does anyone have any experiences (good or bad) to share about running db4o? | java | db4o | null | null | null | null | open | db4o experiences
===
I'm currently trying out db4o (the java version) and I pretty much like what I see. But I cannot help wondering how it does perform in a real live (web-)environment. Does anyone have any experiences (good or bad) to share about running db4o? | 0 |
21,211 | 08/21/2008 21:13:37 | 2,197 | 08/20/2008 20:58:04 | 11 | 6 | Get application name from Windows XP cut and paste? | This is a bit of a long shot, but if anyone can figure it out, you guys can...
In Windows XP, is there any meta-data that comes with a cut and paste action, from which I can ascertain the application that provided the clipboard contents?
Bonus question... if there is such information, is there any way I can acces... | windows-xp | null | null | null | null | null | open | Get application name from Windows XP cut and paste?
===
This is a bit of a long shot, but if anyone can figure it out, you guys can...
In Windows XP, is there any meta-data that comes with a cut and paste action, from which I can ascertain the application that provided the clipboard contents?
Bonus question... i... | 0 |
21,229 | 08/21/2008 21:28:20 | 1,344 | 08/14/2008 16:03:00 | 719 | 54 | Visual Web Developer (Express): Setting Document Root for Dev Environment | I'm developing a site in Visual Web Dev Express, and when I run/debug, I'd like to be able to set my application's document root so that I can use safer paths, like "/css/style.css' instead of "css/style.css". How would I accomplish this? | c# | asp.net | serverconfiguration | visual-web-developer | null | null | open | Visual Web Developer (Express): Setting Document Root for Dev Environment
===
I'm developing a site in Visual Web Dev Express, and when I run/debug, I'd like to be able to set my application's document root so that I can use safer paths, like "/css/style.css' instead of "css/style.css". How would I accomplish this? | 0 |
21,232 | 08/21/2008 21:30:21 | 83 | 08/01/2008 16:31:56 | 808 | 70 | How do I page a generic collection without Linq? | I've got a System.Generic.Collections.List(Of MyCustomClass) type object.
Given integer varaibles pagesize and pagenumber, how can I collect only any single page of MyCustomClass objects?
This is what I've got. How can I improve it?
'my given collection and paging parameters
Dim AllOfMyCustomClassObj... | .net | collections | vb | paging | null | null | open | How do I page a generic collection without Linq?
===
I've got a System.Generic.Collections.List(Of MyCustomClass) type object.
Given integer varaibles pagesize and pagenumber, how can I collect only any single page of MyCustomClass objects?
This is what I've got. How can I improve it?
'my given collectio... | 0 |
21,243 | 08/21/2008 21:38:43 | 484 | 08/06/2008 09:04:41 | 10 | 2 | Anyone have a link to a technical discussion of anything akin to the Facebook news feed system? | I'm looking for a presentation, PDF, blog post, or whitepaper discussing the technical details of how to filter down and display massive amounts of information for individual users in an intelligent (possibly machine learning) kind of way. I've had coworkers hear presentations on the Facebook news feed but I can't find... | facebook | information | whitepaper | null | null | null | open | Anyone have a link to a technical discussion of anything akin to the Facebook news feed system?
===
I'm looking for a presentation, PDF, blog post, or whitepaper discussing the technical details of how to filter down and display massive amounts of information for individual users in an intelligent (possibly machine le... | 0 |
21,262 | 08/21/2008 21:46:07 | 1,692 | 08/18/2008 01:51:48 | 1 | 0 | How do I create a mapping table in SQL Server Management Studio? | I'm learning about table design in SQL and I'm wonder how to create a mapping table in order to establish a many-to-many relationship between two other tables?
I think the mapping table needs two primary keys - but I can't see how to create that as it appears there can only be 1 primary key column?
I'm using the ... | sql-server-2005 | null | null | null | null | null | open | How do I create a mapping table in SQL Server Management Studio?
===
I'm learning about table design in SQL and I'm wonder how to create a mapping table in order to establish a many-to-many relationship between two other tables?
I think the mapping table needs two primary keys - but I can't see how to create that a... | 0 |
21,265 | 08/21/2008 21:47:24 | 2,328 | 08/21/2008 16:45:54 | 115 | 4 | Comparing IEEE floats and doubles for equality | What is the best method for comparing IEEE floats and doubles for equality? I have heard of several methods, but I wanted to see what the community thought. | floating-point | variables | inequality | null | null | null | open | Comparing IEEE floats and doubles for equality
===
What is the best method for comparing IEEE floats and doubles for equality? I have heard of several methods, but I wanted to see what the community thought. | 0 |
21,280 | 08/21/2008 21:54:56 | 2,147 | 08/20/2008 15:14:13 | 56 | 12 | Am I missing something about LINQ? | I seem to be missing something about LINQ. To me, it looks like it's taking some of the elements of SQL that I like the least and moving them into the C# language and using them for other things.
I mean, I could see the benefit of using SQL-like statements on things other than databases. But if I wanted to write S... | c# | sql | null | null | null | null | open | Am I missing something about LINQ?
===
I seem to be missing something about LINQ. To me, it looks like it's taking some of the elements of SQL that I like the least and moving them into the C# language and using them for other things.
I mean, I could see the benefit of using SQL-like statements on things other tha... | 0 |
21,294 | 08/21/2008 21:59:31 | 1,341 | 08/14/2008 15:30:17 | 120 | 9 | How can you (reliably) dynamically load a javascript file? (Like C's #include) | How can you reliably and dynamically load a javascript file? Basically what I want to accomplish is implement a module or component that when you 'initialize' the component it will dynamically load all needed javascript library scripts on demand.
So the client that uses the component isn't required to load all the ... | javascript | null | null | null | null | null | open | How can you (reliably) dynamically load a javascript file? (Like C's #include)
===
How can you reliably and dynamically load a javascript file? Basically what I want to accomplish is implement a module or component that when you 'initialize' the component it will dynamically load all needed javascript library script... | 0 |
21,303 | 08/21/2008 22:02:58 | 1,556 | 08/16/2008 16:41:03 | 301 | 11 | In C++ constructor and destructor can be inline function? | VC++ makes function which are implemented within class declaration as inline function.
If I declared Foo class as following, then is CONSTRUCTOR and DESTRUCTOR inline function?
class Foo
{
int* p;
public:
Foo() { p = new char[0x00100000]; }
~Foo() { delete [] p; }
};
... | c++ | constructor | destructor | null | null | null | open | In C++ constructor and destructor can be inline function?
===
VC++ makes function which are implemented within class declaration as inline function.
If I declared Foo class as following, then is CONSTRUCTOR and DESTRUCTOR inline function?
class Foo
{
int* p;
public:
Foo() { p = new... | 0 |
21,306 | 08/21/2008 22:04:04 | 2,362 | 08/21/2008 20:46:43 | 1 | 0 | Generic design for packaging of user changes for deployment | OK a real question - I'd like to add the ability for users of a system I developed to make package a set of changes together so that they can deploy their package of changes to an acceptance testing environment, do their testing, and then at a later point (if testing was successful) deploy that package of changes to a ... | design | deployment | packaging | null | null | null | open | Generic design for packaging of user changes for deployment
===
OK a real question - I'd like to add the ability for users of a system I developed to make package a set of changes together so that they can deploy their package of changes to an acceptance testing environment, do their testing, and then at a later point... | 0 |
21,347 | 08/21/2008 22:28:59 | 2,313 | 08/21/2008 15:27:23 | 6 | 0 | windowsmobile | Is therу broad way to handle Bluetooth [Audio/Video Remote Control Profile (AVRCP)][1] events on WM device? I especialy interested in Comact Framework way but would be happy with just simple P/Invoke API.
[1]: http://en.wikipedia.org/wiki/Bluetooth_profile#Audio.2FVideo_Remote_Control_Profile_.28AVRCP.29 | windows-mobile | null | null | null | null | null | open | windowsmobile
===
Is therу broad way to handle Bluetooth [Audio/Video Remote Control Profile (AVRCP)][1] events on WM device? I especialy interested in Comact Framework way but would be happy with just simple P/Invoke API.
[1]: http://en.wikipedia.org/wiki/Bluetooth_profile#Audio.2FVideo_Remote_Control_Profile_... | 0 |
21,353 | 08/21/2008 22:36:15 | 708 | 08/08/2008 06:10:02 | 333 | 12 | Batch file to "Script" a Database | Is it possible to somehow use a .bat file to script the schema and/or content of a SQL Server database? I can do this via the wizard, but would like to streamline the creation of this file for source control purposes.
I would like to avoid the use of 3rd party tools - just limiting myself to the tools that come with... | sql-server | script | batch-file | null | null | null | open | Batch file to "Script" a Database
===
Is it possible to somehow use a .bat file to script the schema and/or content of a SQL Server database? I can do this via the wizard, but would like to streamline the creation of this file for source control purposes.
I would like to avoid the use of 3rd party tools - just limi... | 0 |
21,355 | 08/21/2008 22:38:06 | 2,313 | 08/21/2008 15:27:23 | 6 | 0 | Mocking and IQueriable<T> | I've ran into a problem while trying to test following IRepository<T> based on NHibernate:
public class NHibernateRepository<T>: Disposable, IRepository<T>
where T : IdentifiableObject
{
...
public IQueryable<T> Query()
{
return NHibernateSession.Linq<T>();
}
}
How on the Hell to mock r... | linq | null | null | null | null | null | open | Mocking and IQueriable<T>
===
I've ran into a problem while trying to test following IRepository<T> based on NHibernate:
public class NHibernateRepository<T>: Disposable, IRepository<T>
where T : IdentifiableObject
{
...
public IQueryable<T> Query()
{
return NHibernateSession.Linq<T>();
}
... | 0 |
21,388 | 08/21/2008 23:01:30 | 2,363 | 08/21/2008 20:55:49 | 21 | 3 | Represent Ordering in a Relational Database | I have a collection of objects in a database. Images in a photo gallery, products in a catalog, chapters in a book, etc. Each object is represented as a row. I want to be able to arbitrarily order these images, storing that ordering in the database so when I display the objects, they will be in the right order.
F... | sql | db | null | null | null | null | open | Represent Ordering in a Relational Database
===
I have a collection of objects in a database. Images in a photo gallery, products in a catalog, chapters in a book, etc. Each object is represented as a row. I want to be able to arbitrarily order these images, storing that ordering in the database so when I display t... | 0 |
21,404 | 08/21/2008 23:13:05 | 1,747 | 08/18/2008 12:12:28 | 101 | 5 | Source Control in Visual Studio Isolated Shell | I am developing an **Isolated Shell** that caters to "**designers/special content creators**" performing specific tasks, using the Shell. As they operate on files, they need to be able to use TFS for source control. This is mainly due to the fact that Developers will also operate on the same files from TFS but using Vi... | visual-studio | visualstudioextensibility | vsx | null | null | null | open | Source Control in Visual Studio Isolated Shell
===
I am developing an **Isolated Shell** that caters to "**designers/special content creators**" performing specific tasks, using the Shell. As they operate on files, they need to be able to use TFS for source control. This is mainly due to the fact that Developers will ... | 0 |
21,411 | 08/21/2008 23:17:41 | 1,693 | 08/18/2008 02:25:37 | 344 | 14 | PHP sleep() silently hogs CPU | I'm running Apache on Linux within VMWare. One of the PHP pages I'm requesting does a sleep(), and I find that if I attempt to request a second page whilst the first page is sleep()'ing, the second page hangs, waiting for the sleep() from the first page to finish.
Has anyone else seen this behaviour? I know that PHP... | php | performance | hang | sleep | null | null | open | PHP sleep() silently hogs CPU
===
I'm running Apache on Linux within VMWare. One of the PHP pages I'm requesting does a sleep(), and I find that if I attempt to request a second page whilst the first page is sleep()'ing, the second page hangs, waiting for the sleep() from the first page to finish.
Has anyone else s... | 0 |
21,422 | 08/21/2008 23:23:52 | 2,050 | 08/20/2008 00:32:49 | 11 | 1 | How to address semantic issues with tag-based web sites? | Tag-based web sites often suffer from the delicacy of language such as synonyms, homonyms, etc. For programmers looking for information, say on SO, concrete examples are:
- Subversion or SVN (or svn, with case-sensitive tags)
- .NET or Mono
- [Will add more]
The problem is that we *do* want to preserver o... | stackoverflow | tags | del.icio.us | null | null | null | open | How to address semantic issues with tag-based web sites?
===
Tag-based web sites often suffer from the delicacy of language such as synonyms, homonyms, etc. For programmers looking for information, say on SO, concrete examples are:
- Subversion or SVN (or svn, with case-sensitive tags)
- .NET or Mono
- [Wil... | 0 |
21,437 | 08/21/2008 23:36:14 | 1,975 | 08/19/2008 16:30:04 | 46 | 11 | Preventing a visitor from saving an image from my site. | What are some effective strategies for preventing the use of my proprietary images?
I'm talking about saving them, direct linking to them etc...
Presently I have a watermark on the image, but I'd rather not.
.NET platform preferred, but if there's a strategy that's on another platform that integrates with my e... | image | null | null | null | null | null | open | Preventing a visitor from saving an image from my site.
===
What are some effective strategies for preventing the use of my proprietary images?
I'm talking about saving them, direct linking to them etc...
Presently I have a watermark on the image, but I'd rather not.
.NET platform preferred, but if there's a ... | 0 |
21,448 | 08/21/2008 23:42:39 | 2,375 | 08/21/2008 22:37:01 | 1 | 0 | Accessing Excel data source running SSIS package on 64 bit server | I have an SSIS package that exports data to a couple of Excel files for transfer to a third party. To get this to run as a scheduled job on a 64 bit server I understand that I need to set the step up as a CmdExec type and call the 32 bit version of DTExec. But I don't seem be able to get the command right to pass in th... | excel | ssis | sql-server | connection-manager | null | null | open | Accessing Excel data source running SSIS package on 64 bit server
===
I have an SSIS package that exports data to a couple of Excel files for transfer to a third party. To get this to run as a scheduled job on a 64 bit server I understand that I need to set the step up as a CmdExec type and call the 32 bit version of... | 0 |
21,449 | 08/21/2008 23:42:44 | 2,045 | 08/19/2008 23:50:05 | 1 | 0 | Types of endianness | What is the difference between the following types of endianness?
- byte (8b) invariant big and little endianness
- half-word (16b) invariant big and little endianness
- word (32b) invariant big and little endianness
- double-word (64b) invariant big and little endianness
Are there other types/variatio... | endian | null | null | null | null | null | open | Types of endianness
===
What is the difference between the following types of endianness?
- byte (8b) invariant big and little endianness
- half-word (16b) invariant big and little endianness
- word (32b) invariant big and little endianness
- double-word (64b) invariant big and little endianness
Are t... | 0 |
21,454 | 08/21/2008 23:48:08 | 2,019 | 08/19/2008 20:18:31 | 146 | 13 | Specifying a mySQL ENUM in a Django model | The title more or less says it all. How do I go about specifying and using an ENUM in a Django model? | mysql | django | null | null | null | null | open | Specifying a mySQL ENUM in a Django model
===
The title more or less says it all. How do I go about specifying and using an ENUM in a Django model? | 0 |
21,460 | 08/21/2008 23:51:10 | 2,019 | 08/19/2008 20:18:31 | 146 | 13 | Does Hostmonster support Django | I know Hostmonster allows Python. Has anyone successfully run Django on there? Any problems? | django | hostmonster | null | null | null | null | open | Does Hostmonster support Django
===
I know Hostmonster allows Python. Has anyone successfully run Django on there? Any problems? | 0 |
21,461 | 08/21/2008 23:51:23 | 1,343 | 08/14/2008 15:46:01 | 189 | 18 | What Predefined #if symbos does c# have? | #if SYMBOL
//code
#endif
what values does C# predefine for use? | c# | null | null | null | null | null | open | What Predefined #if symbos does c# have?
===
#if SYMBOL
//code
#endif
what values does C# predefine for use? | 0 |
21,464 | 08/21/2008 23:53:36 | 2,305 | 08/21/2008 15:05:48 | 1 | 0 | Recommended iPhone Development Resources | This is my first post here and I wanted to get some input from people doing iPhone development. Other than the Apple DevCenter, where are there good sites to learn iPhone developement?
I know Apple has a tough NDA but there has to be people talking about writing applications for the iPhone.
Thank you,
Rob B... | iphone | null | null | null | null | null | open | Recommended iPhone Development Resources
===
This is my first post here and I wanted to get some input from people doing iPhone development. Other than the Apple DevCenter, where are there good sites to learn iPhone developement?
I know Apple has a tough NDA but there has to be people talking about writing applica... | 0 |
21,489 | 08/22/2008 00:13:06 | 2,281 | 08/21/2008 13:07:52 | 21 | 3 | Grouping runs of data | SQL Experts,
Is there an efficient way to group runs of data together using SQL? Or is it going to be more efficient to process the data in code. For example if I have the following data:
ID|Name
01|Harry Johns
02|Adam Taylor
03|John Smith
04|John Smith
05|Bill Manning
06|John Sm... | sql | null | null | null | null | null | open | Grouping runs of data
===
SQL Experts,
Is there an efficient way to group runs of data together using SQL? Or is it going to be more efficient to process the data in code. For example if I have the following data:
ID|Name
01|Harry Johns
02|Adam Taylor
03|John Smith
04|John Smith
05|B... | 0 |
21,514 | 08/22/2008 00:29:05 | 2,383 | 08/22/2008 00:17:14 | 1 | 0 | Enumerate Windows user group members on remote system using c# | Within c#, I need to be able to
- Connect to a remote system, specifying username/password as appropriate
- List the members of a localgroup on that system
- Fetch the results back to the executing computer
So for example I would connect to \\SOMESYSTEM with appropriate creds, and fetch back a list of loc... | c# | windows | user | groups | usersgroup | null | open | Enumerate Windows user group members on remote system using c#
===
Within c#, I need to be able to
- Connect to a remote system, specifying username/password as appropriate
- List the members of a localgroup on that system
- Fetch the results back to the executing computer
So for example I would connect ... | 0 |
21,547 | 08/22/2008 00:58:55 | 369 | 08/05/2008 08:33:43 | 284 | 27 | In MSSQL, how do I generate a CREATE TABLE statement for a given table? | I've spent a good amount of time coming up with solution to this problem, so in the spirit of [this post][1], I'm posting it here, since I think it might be useful to others.
If anyone has a better script, or anything to add, please post it.
[1]: http://stackoverflow.com/questions/21245/questions-vs-conveyin... | mssql | dynamicsql | scripting | null | null | null | open | In MSSQL, how do I generate a CREATE TABLE statement for a given table?
===
I've spent a good amount of time coming up with solution to this problem, so in the spirit of [this post][1], I'm posting it here, since I think it might be useful to others.
If anyone has a better script, or anything to add, please post i... | 0 |
21,558 | 08/22/2008 01:13:15 | 1,556 | 08/16/2008 16:41:03 | 315 | 11 | In C++ virtual base class? | I think you might dislike C++ crappy features but I just want to know what is virtual base class and what it means:
Let me show an example:
class Foo
{
public:
void DoSomething() { /* ... */ }
};
class Bar : public virtual Foo
{
public:
void DoSpecific() { /* ... | c++ | null | null | null | null | null | open | In C++ virtual base class?
===
I think you might dislike C++ crappy features but I just want to know what is virtual base class and what it means:
Let me show an example:
class Foo
{
public:
void DoSomething() { /* ... */ }
};
class Bar : public virtual Foo
{
public:
... | 0 |
21,560 | 08/22/2008 01:16:26 | 1,630 | 08/17/2008 17:03:19 | 445 | 42 | How to enable multisampling for a wxWidgets OpenGL application? | **[Multisampling][1]** is a way of applying **full screen anti-aliasing** (FSAA) in 3D applications. I need to use multisampling in my OpenGL application, which is currently embedded in a **wxWidgets** GUI. Is there a way to do this? Please respond only if you know the detailed steps to achieve this.
I'm aware that ... | opengl | wxwidgets | multisampling | null | null | null | open | How to enable multisampling for a wxWidgets OpenGL application?
===
**[Multisampling][1]** is a way of applying **full screen anti-aliasing** (FSAA) in 3D applications. I need to use multisampling in my OpenGL application, which is currently embedded in a **wxWidgets** GUI. Is there a way to do this? Please respond on... | 0 |
21,564 | 08/22/2008 01:24:34 | 156 | 08/02/2008 17:36:27 | 143 | 8 | Is there a Unix utility to prepend timestamps to lines of text? | I ended up writing a quick little script for this in Python, but I was wondering if there was a utility you could feed text into which would prepend each line with some text -- in my specific case, a timestamp. Ideally, the use would be something like:
$ cat somefile.txt | prepend-timestamp
(Before you answe... | unix | shell | sed | null | null | null | open | Is there a Unix utility to prepend timestamps to lines of text?
===
I ended up writing a quick little script for this in Python, but I was wondering if there was a utility you could feed text into which would prepend each line with some text -- in my specific case, a timestamp. Ideally, the use would be something lik... | 0 |
21,574 | 08/22/2008 01:32:54 | 757 | 08/08/2008 15:38:57 | 1 | 2 | What is the difference between Ruby 1.8 and Ruby 1.9 | I'm not clear on the differences between the "current" version of Ruby (1.8) and the "new" version (1.9). Is there an "easy" or a "simple" explanation of the differences and why it is so different? | ruby | language | null | null | null | null | open | What is the difference between Ruby 1.8 and Ruby 1.9
===
I'm not clear on the differences between the "current" version of Ruby (1.8) and the "new" version (1.9). Is there an "easy" or a "simple" explanation of the differences and why it is so different? | 0 |
21,583 | 08/22/2008 01:35:33 | 1,266 | 08/14/2008 06:27:57 | 128 | 18 | Unit-Testing Databases | This past summer I was developing a basic ASP.NET/SQL Server CRUD app, and unit testing was one of the requirements. I ran into some trouble when I tried to test against the database. To my understanding, unit tests should be:
* stateless
* independent from each other
* repeatable with the same results i.e. no p... | database | unit-testing | transactions | xtunit | null | null | open | Unit-Testing Databases
===
This past summer I was developing a basic ASP.NET/SQL Server CRUD app, and unit testing was one of the requirements. I ran into some trouble when I tried to test against the database. To my understanding, unit tests should be:
* stateless
* independent from each other
* repeatable wit... | 0 |
21,589 | 08/22/2008 01:39:05 | 1,328 | 08/14/2008 14:38:29 | 39 | 3 | Is it possible to share a transaction between a .Net application and a COM+ object? | I did some tests a while ago and never figured out how to make this work.
The ingredients:
- COM+ transactional object (developed in VB6)
- .Net web application (with transaction) that...
makes a call to the COM+ component
updates a row in a SQL database
Testing:
Run the .Net application and fo... | .net | com | null | null | null | null | open | Is it possible to share a transaction between a .Net application and a COM+ object?
===
I did some tests a while ago and never figured out how to make this work.
The ingredients:
- COM+ transactional object (developed in VB6)
- .Net web application (with transaction) that...
makes a call to the COM+ co... | 0 |
21,593 | 08/22/2008 01:40:06 | 2,399 | 08/22/2008 01:36:28 | 1 | 0 | what is the difference between #include <filename> and #include "filename" | in the programming language C, what is the difference between #include <filename> and #include "filename" | c | include | difference | null | null | null | open | what is the difference between #include <filename> and #include "filename"
===
in the programming language C, what is the difference between #include <filename> and #include "filename" | 0 |
21,635 | 08/22/2008 02:13:38 | 361 | 08/05/2008 04:20:27 | 245 | 13 | Pushing out MSI files | I have a product which has been traditionally shipped as an MSI file. It is deployed through some sort of SMS push to thousands of desktops by our various clients. The software we use to create these installers is getting long in the tooth and we are looking to replace it. We have already standardized on InstallAnyw... | deployment | installer | msi | null | null | null | open | Pushing out MSI files
===
I have a product which has been traditionally shipped as an MSI file. It is deployed through some sort of SMS push to thousands of desktops by our various clients. The software we use to create these installers is getting long in the tooth and we are looking to replace it. We have already ... | 0 |
21,640 | 08/22/2008 02:18:28 | 4,258 | 09/02/2008 14:41:31 | 1 | 1 | .NET - Get protocol, host, and port | Is there a simple way in .NET to quickly get the current protocol, host, and port? For example, if I'm on the following URL:
http://www.mywebsite.com:80/pages/page1.aspx
I need to return:
http://www.mywebsite.com:80
I know I can use Request.Url.AbsoluteUri to get the complete URL, and I know I can use Reque... | .net | asp.net | url | uri | authority | null | open | .NET - Get protocol, host, and port
===
Is there a simple way in .NET to quickly get the current protocol, host, and port? For example, if I'm on the following URL:
http://www.mywebsite.com:80/pages/page1.aspx
I need to return:
http://www.mywebsite.com:80
I know I can use Request.Url.AbsoluteUri to get the... | 0 |
21,647 | 08/22/2008 02:21:07 | 1,630 | 08/17/2008 17:03:19 | 445 | 44 | C++: Reading from text file until EOF repeats last line | The following **C++** code uses a **ifstream** object to read integers from a text file (which has one number per line) until it hits **EOF**. Why does it read the integer on the last line twice? How to fix this?
**Code:**
#include <iostream>
#include <fstream>
using namespace std;
int ma... | c++ | fstream | iostream | null | null | null | open | C++: Reading from text file until EOF repeats last line
===
The following **C++** code uses a **ifstream** object to read integers from a text file (which has one number per line) until it hits **EOF**. Why does it read the integer on the last line twice? How to fix this?
**Code:**
#include <iostream>
#... | 0 |
21,651 | 08/22/2008 02:26:26 | 2,261 | 08/21/2008 11:41:31 | 1 | 2 | Adobe AIR: Handling JSON objects from server | I have a script that retrieves objects from a remote server through an Ajax call. The server returns objects in JSON notation.
However, in Adobe AIR, there is a restriction on using [eval()][1] for security reasons. So I'm able to get replies from the remote server, but can't turn them back into Javascript objects. ... | javascript | ajax | air | json | null | null | open | Adobe AIR: Handling JSON objects from server
===
I have a script that retrieves objects from a remote server through an Ajax call. The server returns objects in JSON notation.
However, in Adobe AIR, there is a restriction on using [eval()][1] for security reasons. So I'm able to get replies from the remote server, ... | 0 |
21,652 | 08/22/2008 02:47:44 | 1,666 | 08/17/2008 21:07:18 | 273 | 20 | Do you write your own specific Exceptions? | I have some code that gives a user id to a utility that then send email to that user.
emailUtil.sendEmail(userId, "foo");
public void sendEmail(String userId, String message) throws MailException {
/* ... logic that could throw a MailException */
}
`MailException` could be thrown for a nu... | java | exception | null | null | null | null | open | Do you write your own specific Exceptions?
===
I have some code that gives a user id to a utility that then send email to that user.
emailUtil.sendEmail(userId, "foo");
public void sendEmail(String userId, String message) throws MailException {
/* ... logic that could throw a MailException */
... | 0 |
21,669 | 08/22/2008 03:02:34 | 1,448 | 08/15/2008 16:16:35 | 121 | 15 | Complexity of Regex substitution | I didn't get the answer to this anywhere. What is the runtime complexity of a Regex substitution? | regex | complexity | null | null | null | null | open | Complexity of Regex substitution
===
I didn't get the answer to this anywhere. What is the runtime complexity of a Regex substitution? | 0 |
21,697 | 08/22/2008 03:12:59 | 1,894 | 08/19/2008 07:05:25 | 66 | 7 | How Do You Communicate Service Layer Messages/Errors to Higher Layers Using MVP? | I'm currently writing an ASP.Net app from the UI down. I'm implementing an MVP architecture because I'm sick of Winforms and wanted something that had a better separation of concerns.
So with MVP, the Presenter handles events raised by the View. Here's some code that I have in place to deal with the creation of user... | c# | asp.net | exception | mvp | n-tier | null | open | How Do You Communicate Service Layer Messages/Errors to Higher Layers Using MVP?
===
I'm currently writing an ASP.Net app from the UI down. I'm implementing an MVP architecture because I'm sick of Winforms and wanted something that had a better separation of concerns.
So with MVP, the Presenter handles events raise... | 0 |
21,698 | 08/22/2008 03:13:07 | 1,306 | 08/14/2008 13:22:40 | 11 | 3 | What are the naming conventions of an AS3 class? | I'm trying to write a RegEx to determine a proper class or package name of an AS3 class.
I know
- Must start with a letter (capital or otherwise)
- any other digit can be alphanumeric
- cannot have spaces
Is there anything else? | actionscript-3 | convention | naming | null | null | null | open | What are the naming conventions of an AS3 class?
===
I'm trying to write a RegEx to determine a proper class or package name of an AS3 class.
I know
- Must start with a letter (capital or otherwise)
- any other digit can be alphanumeric
- cannot have spaces
Is there anything else? | 0 |
21,715 | 08/22/2008 03:25:09 | 1,965 | 08/19/2008 15:51:08 | 642 | 36 | List<BusinessObject> or BusinessObjectCollection? | Prior to C# generics, everyone would code collections for their business objects by creating a collection base that implemented IEnumerable
IE:
public class CollectionBase : IEnumerable
and then would derive their Business Object collections from that.
public class BusinessObjectCollection : Collect... | c# | collections | generics | null | null | null | open | List<BusinessObject> or BusinessObjectCollection?
===
Prior to C# generics, everyone would code collections for their business objects by creating a collection base that implemented IEnumerable
IE:
public class CollectionBase : IEnumerable
and then would derive their Business Object collections from that.... | 0 |
21,738 | 08/22/2008 03:43:41 | 1,471 | 08/15/2008 18:26:14 | 166 | 17 | Problems running Swing application with IDEA 8M1 | Is anyone else having trouble running Swing applications from IntelliJ IDEA 8 Milestone 1? Even the simplest application of showing an empty JFrame seems to crash the JVM. I don't get a stack trace or anything, it looks like the JVM itself crashes and Windows shows me a pop-up that says the usual "This process is no ... | java | ide | swing | ideas | jvm | null | open | Problems running Swing application with IDEA 8M1
===
Is anyone else having trouble running Swing applications from IntelliJ IDEA 8 Milestone 1? Even the simplest application of showing an empty JFrame seems to crash the JVM. I don't get a stack trace or anything, it looks like the JVM itself crashes and Windows show... | 0 |
21,749 | 08/22/2008 03:51:42 | 2,219 | 08/21/2008 00:28:05 | 1 | 0 | Multiple form Delphi applications and dialogs | I have a Delphi application that has two views of a document (e.g. a WYSIWYG HTML edit might have a WYSIWYG view and a source view). They can be opened in separate windows, or docked into tabs in the main window.
If I open a dialog from one of the separate forms, the main form is brought to the front, and is shown a... | delphi | null | null | null | null | null | open | Multiple form Delphi applications and dialogs
===
I have a Delphi application that has two views of a document (e.g. a WYSIWYG HTML edit might have a WYSIWYG view and a source view). They can be opened in separate windows, or docked into tabs in the main window.
If I open a dialog from one of the separate forms, th... | 0 |
21,753 | 08/22/2008 03:58:10 | 2,418 | 08/22/2008 03:32:43 | 1 | 0 | How to use BITS to download from a UNC path? | Whats the best way to distribute files to users in remote offices, using [BITS][1] with a UNC path or BITS with HTTP? I have a VB.NET project which downloads from a HTTP path currently but there is added complexity involved (having a web server, etc).
Or is there a better way to do this? Low bandwith usage is more ... | vb.net | bits | null | null | null | null | open | How to use BITS to download from a UNC path?
===
Whats the best way to distribute files to users in remote offices, using [BITS][1] with a UNC path or BITS with HTTP? I have a VB.NET project which downloads from a HTTP path currently but there is added complexity involved (having a web server, etc).
Or is there a ... | 0 |
21,766 | 08/22/2008 04:20:07 | 2,424 | 08/22/2008 04:09:40 | 1 | 0 | Open source rules engine with decent interface for writing rules | I'm trying to locate an open source business rules engine that has a decent interface for building the rules.
OR at least one that works well on the .Net platform and has been updated sometime in the past 12 months.
Thanks, | ruleengine | null | null | null | null | null | open | Open source rules engine with decent interface for writing rules
===
I'm trying to locate an open source business rules engine that has a decent interface for building the rules.
OR at least one that works well on the .Net platform and has been updated sometime in the past 12 months.
Thanks, | 0 |
21,817 | 08/22/2008 05:16:43 | 2,238 | 08/21/2008 05:51:27 | 33 | 3 | Why can't I declare static methods in an interface? | The topic says the most of it - what is the reason for the fact that static methods can't be declared in an interface?
public interface ITest {
public static String test();
}
The code above gives me the following error (in Eclipse, at least): "Illegal modifier for the interface method ITest.test... | java | interface | methods | static | null | null | open | Why can't I declare static methods in an interface?
===
The topic says the most of it - what is the reason for the fact that static methods can't be declared in an interface?
public interface ITest {
public static String test();
}
The code above gives me the following error (in Eclipse, at leas... | 0 |
21,848 | 08/22/2008 05:39:54 | 2,427 | 08/22/2008 05:39:54 | 1 | 0 | Switch branch names in git | There may be more than one way to ask this question, so here's a desciption of the problem. I was working on master and committed some stuff and then decided I wanted to put that work on hold. I backed up a few commits and then branched from before I started my crap work. Practically this works fine, I just now have a ... | git | branch | null | null | null | null | open | Switch branch names in git
===
There may be more than one way to ask this question, so here's a desciption of the problem. I was working on master and committed some stuff and then decided I wanted to put that work on hold. I backed up a few commits and then branched from before I started my crap work. Practically thi... | 0 |
21,857 | 08/22/2008 05:47:10 | 2,056 | 08/20/2008 01:28:00 | 39 | 2 | When do you know it's time to rewrite an application | This is humbling, but probably something most can relate to. I am currently adding functionality to a PHP application I wrote for a client 2 years ago. In the interest of full disclosure, this was the first "real" application I ever built from the ground up, in the sense that I actually met with clients to determine ... | php | mysql | rewrite | refactor | billing | null | open | When do you know it's time to rewrite an application
===
This is humbling, but probably something most can relate to. I am currently adding functionality to a PHP application I wrote for a client 2 years ago. In the interest of full disclosure, this was the first "real" application I ever built from the ground up, i... | 0 |
21,869 | 08/22/2008 06:04:43 | 861 | 08/09/2008 19:00:40 | 64 | 3 | What skills do you need for proper UI/Interaction/Functional design in Web Apps? | When you to develop web applications from scratch, what are the skills needed, to produce usable and interaction-rich products?
Do you do UI Prototype first?
Do you use User Stories?
Some agile methodology or best practice you'd recommend or actively advocate?
In short: _**What skills make you transcend fr... | bestpractices | project-management | web-applications | null | null | null | open | What skills do you need for proper UI/Interaction/Functional design in Web Apps?
===
When you to develop web applications from scratch, what are the skills needed, to produce usable and interaction-rich products?
Do you do UI Prototype first?
Do you use User Stories?
Some agile methodology or best practice y... | 0 |
21,870 | 08/22/2008 06:07:29 | 150 | 08/02/2008 16:09:34 | 446 | 12 | System.Web.Caching vs. Enterprise Library Caching Block | For a .NET component that will be used in both web applications and rich client applications, there seem to be two obvious options for caching: System.Web.Caching or the Ent. Lib. Caching Block.
- What do you use?
- Why?
## [System.Web.Caching](http://msdn.microsoft.com/en-us/library/system.web.caching.aspx)
... | caching | .net-2.0 | enterpriselibrary | null | null | null | open | System.Web.Caching vs. Enterprise Library Caching Block
===
For a .NET component that will be used in both web applications and rich client applications, there seem to be two obvious options for caching: System.Web.Caching or the Ent. Lib. Caching Block.
- What do you use?
- Why?
## [System.Web.Caching](http://... | 0 |
21,877 | 08/22/2008 06:14:06 | 932 | 08/10/2008 18:44:53 | 1 | 0 | Dynamically Rendering asp:Image from BLOB entry in ASP.NET | What I want to achieve is this. I want to give the user the ability to upload an image file, store the image in BLOB in SQL Server, and then use this image as a logo in other pages of the site.
I have done this by using
Response.Clear();
Response.ContentType = "image/pjpeg";
Response... | asp.net | null | null | null | null | null | open | Dynamically Rendering asp:Image from BLOB entry in ASP.NET
===
What I want to achieve is this. I want to give the user the ability to upload an image file, store the image in BLOB in SQL Server, and then use this image as a logo in other pages of the site.
I have done this by using
Response.Clear()... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.