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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
22,779 | 08/22/2008 16:20:55 | 91 | 08/01/2008 17:55:22 | 6,204 | 286 | Is GDI+ actually still a "usable" technology? | I just wonder a bit whether or not GDI+ is still a technology worth using, especially in a .net sense.
Granted, GDI+ is still THE technology to handle Images in Windows, but it is also unmanaged code (obviously). Now, after discovering that GDI+ is actually not supported on ASP.net¹, I just wonder: Is it actually feasible to have Image Manipulation Libraries that run completely in Managed Code? XNA does it if i remember correctly, albeit it uses the graphics card for it.
Is there maybe even any .net Image Library that implements a sort of managed GDI+?
¹ [Source][1], also Microsoft just offered [something][2] for ASP.net that uses GDI+.
[1]: http://msdn.microsoft.com/en-us/library/system.drawing.imaging.aspx
[2]: http://www.hanselman.com/blog/ASPNETFuturesGeneratingDynamicImagesWithHttpHandlersGetsEasier.aspx | .net | gdi+ | null | null | null | null | open | Is GDI+ actually still a "usable" technology?
===
I just wonder a bit whether or not GDI+ is still a technology worth using, especially in a .net sense.
Granted, GDI+ is still THE technology to handle Images in Windows, but it is also unmanaged code (obviously). Now, after discovering that GDI+ is actually not supported on ASP.net¹, I just wonder: Is it actually feasible to have Image Manipulation Libraries that run completely in Managed Code? XNA does it if i remember correctly, albeit it uses the graphics card for it.
Is there maybe even any .net Image Library that implements a sort of managed GDI+?
¹ [Source][1], also Microsoft just offered [something][2] for ASP.net that uses GDI+.
[1]: http://msdn.microsoft.com/en-us/library/system.drawing.imaging.aspx
[2]: http://www.hanselman.com/blog/ASPNETFuturesGeneratingDynamicImagesWithHttpHandlersGetsEasier.aspx | 0 |
22,792 | 08/22/2008 16:26:31 | 1,463 | 08/15/2008 17:26:44 | 225 | 13 | Is there an open source SQL Server DB compare tool? | I'm working on an open source project that uses SQL Server 2005 as the data store. We need a DB compare tool to generate diff scripts to be able to upgrade a DB from one version to another.
Is there an open source or free SQL Server DB diff tool out there that generates a convert script? | sql-server | null | null | null | null | 05/20/2012 15:24:30 | not constructive | Is there an open source SQL Server DB compare tool?
===
I'm working on an open source project that uses SQL Server 2005 as the data store. We need a DB compare tool to generate diff scripts to be able to upgrade a DB from one version to another.
Is there an open source or free SQL Server DB diff tool out there that generates a convert script? | 4 |
22,795 | 08/22/2008 16:28:55 | 2,509 | 08/22/2008 15:36:54 | 1 | 2 | When to "Build your own compiler" | What is your decision procedure for "roll my own" versus "introduce a new dependency"?
The value of code reuse is widely touted, and for good reason, but it does not come for free. Joel's <A href="http://www.joelonsoftware.com/articles/fog0000000007.html">In Defense of Not-Invented-Here Syndrome</a> makes the point that you don't always want to be at the mercy of outside entities.
I work in big science. Most projects have a few custom software tools (DAQ systems, analyzers, simulations, etc.) which are generally built using pretty well organized processes and decent coding practices. They also come with a raft of little tools, which are often banged up by one scientist, and put into productions with little of no processes at all.
Each of these tools need to do some of:
* Process options
* Read configuration files
* Extract metadata from other files
* ...etc...etc...etc...
This is a diverse and non-standardized hardware and software environment, and a coder can't make many assumptions about what tool/libraries/compilers a colleague will have (much less what version of each), so adding a dependency is fraught with danger and portability costs.
But rolling your own takes time, risks introducing untold numbers of bugs, and guarantees no one else will understand the tool.
So what goes into this decision?
| language-agnostic | design | bestpractices | null | null | 07/20/2012 14:14:03 | off topic | When to "Build your own compiler"
===
What is your decision procedure for "roll my own" versus "introduce a new dependency"?
The value of code reuse is widely touted, and for good reason, but it does not come for free. Joel's <A href="http://www.joelonsoftware.com/articles/fog0000000007.html">In Defense of Not-Invented-Here Syndrome</a> makes the point that you don't always want to be at the mercy of outside entities.
I work in big science. Most projects have a few custom software tools (DAQ systems, analyzers, simulations, etc.) which are generally built using pretty well organized processes and decent coding practices. They also come with a raft of little tools, which are often banged up by one scientist, and put into productions with little of no processes at all.
Each of these tools need to do some of:
* Process options
* Read configuration files
* Extract metadata from other files
* ...etc...etc...etc...
This is a diverse and non-standardized hardware and software environment, and a coder can't make many assumptions about what tool/libraries/compilers a colleague will have (much less what version of each), so adding a dependency is fraught with danger and portability costs.
But rolling your own takes time, risks introducing untold numbers of bugs, and guarantees no one else will understand the tool.
So what goes into this decision?
| 2 |
22,798 | 08/22/2008 16:30:20 | 1,793 | 08/18/2008 15:34:34 | 330 | 6 | Drag and Drop an Email from MS Outlook to Eclipse RCP | Has anyone got a working solution without some Java/COM-bridge? E.g. process the Email as a file (.msg) rather than locating the data that is referenced in the Clipboard? | java | eclipse | desktop | microsoftoffice | integration | null | open | Drag and Drop an Email from MS Outlook to Eclipse RCP
===
Has anyone got a working solution without some Java/COM-bridge? E.g. process the Email as a file (.msg) rather than locating the data that is referenced in the Clipboard? | 0 |
22,801 | 08/22/2008 16:32:33 | 1,384,652 | 08/01/2008 12:01:23 | 1,254 | 73 | The difference between loops | It's about PHP but I've no doubt many of the same comments will apply to other languages.
Simply put, what are the differences in the different types of loop for PHP? Is one faster/better than the others or should I simply put in the most readable loop?
for ($i = 0; $i < 10; $i++)
{
# code...
}
foreach ($array as $index => $value)
{
# code...
}
do
{
# code...
}
while ($flag == false);
| php | loops | null | null | null | null | open | The difference between loops
===
It's about PHP but I've no doubt many of the same comments will apply to other languages.
Simply put, what are the differences in the different types of loop for PHP? Is one faster/better than the others or should I simply put in the most readable loop?
for ($i = 0; $i < 10; $i++)
{
# code...
}
foreach ($array as $index => $value)
{
# code...
}
do
{
# code...
}
while ($flag == false);
| 0 |
22,807 | 08/22/2008 16:35:19 | 2,526 | 08/22/2008 16:35:18 | 1 | 0 | Comparing effective dates in SQL | Wondering if there is a better why in the WHERE clause of choosing records when you need to look at effective start and end dates?
Currently this how I've done it in the past on MS SQL Server. Just worried about the date and not the time. I'm using SQL Server 2005.
AND CAST(CONVERT( CHAR(10), ep.EffectiveStartDate, 101) AS DATETIME) <= CAST( CONVERT( CHAR(10), GETDATE(), 101) AS DATETIME)
AND CAST(CONVERT( CHAR(10), ep.EffectiveEndDate, 101) AS DATETIME) >= CAST( CONVERT( CHAR(10), GETDATE(), 101) AS DATETIME)
| sql | null | null | null | null | null | open | Comparing effective dates in SQL
===
Wondering if there is a better why in the WHERE clause of choosing records when you need to look at effective start and end dates?
Currently this how I've done it in the past on MS SQL Server. Just worried about the date and not the time. I'm using SQL Server 2005.
AND CAST(CONVERT( CHAR(10), ep.EffectiveStartDate, 101) AS DATETIME) <= CAST( CONVERT( CHAR(10), GETDATE(), 101) AS DATETIME)
AND CAST(CONVERT( CHAR(10), ep.EffectiveEndDate, 101) AS DATETIME) >= CAST( CONVERT( CHAR(10), GETDATE(), 101) AS DATETIME)
| 0 |
22,814 | 08/22/2008 16:38:49 | 31,505 | 2008-09-01 | 409 | 17 | How to decode viewstate | I need to see the contents of the viewstate of an asp.net page. I looked for a viewstate decoder, found [Fridz Onion's ViewState Decoder][1] but it asks for the url of a page to get its viewstate. Since my viewstate is formed after a postback and comes as a result of an operation in an update panel, I cannot provide a url. I need to copy & paste the viewstate string and see what's inside. Is there a tool or a website exist that can help viewing the contents of viewstate?
[1]: http://www.testingreflections.com/node/view/3424 | asp.net | viewstate | null | null | null | null | open | How to decode viewstate
===
I need to see the contents of the viewstate of an asp.net page. I looked for a viewstate decoder, found [Fridz Onion's ViewState Decoder][1] but it asks for the url of a page to get its viewstate. Since my viewstate is formed after a postback and comes as a result of an operation in an update panel, I cannot provide a url. I need to copy & paste the viewstate string and see what's inside. Is there a tool or a website exist that can help viewing the contents of viewstate?
[1]: http://www.testingreflections.com/node/view/3424 | 0 |
22,816 | 08/22/2008 16:39:15 | 1,793 | 08/18/2008 15:34:34 | 330 | 6 | Libraries for pretty charts in SWT? | I know the following libraries for drawing charts in an SWT/Eclipse RCP application:
- [Eclipse BIRT Chart Engine][1] (Links to an article on how to use it)
- [JFreeChart][2]
Which other libraries are there for drawing pretty charts with SWT? Or charts in Java generally? After all, you can always display an image...
[1]: http://www.eclipse.org/articles/article.php?file=Article-BIRTChartEngine/index.html
[2]: http://www.jfree.org/jfreechart/ | java | eclipse | charts | swt | null | null | open | Libraries for pretty charts in SWT?
===
I know the following libraries for drawing charts in an SWT/Eclipse RCP application:
- [Eclipse BIRT Chart Engine][1] (Links to an article on how to use it)
- [JFreeChart][2]
Which other libraries are there for drawing pretty charts with SWT? Or charts in Java generally? After all, you can always display an image...
[1]: http://www.eclipse.org/articles/article.php?file=Article-BIRTChartEngine/index.html
[2]: http://www.jfree.org/jfreechart/ | 0 |
22,818 | 08/22/2008 16:39:40 | 2,528 | 08/22/2008 16:39:39 | 1 | 0 | Where to put your code - Database v/s Application? | I have been developing web/desktop applications for about 6 years now. During the course of my career, I have come across application that were heavily written in the database using stored procedures whereas a lot of application just had only a few basic stored procedures (to read, insert, edit and delete entity records) for each entity.
I have seen people argue saying that if you have paid for an enterprise database use its features extensively. Whereas a lot of "object oriented architects" told me its absolute crime to put anything more than necessary in the database and you should be able to drive the application using the methods on those classes?
Where do you think is the balance?
Thanks,
Krunal | database | application | design | null | null | null | open | Where to put your code - Database v/s Application?
===
I have been developing web/desktop applications for about 6 years now. During the course of my career, I have come across application that were heavily written in the database using stored procedures whereas a lot of application just had only a few basic stored procedures (to read, insert, edit and delete entity records) for each entity.
I have seen people argue saying that if you have paid for an enterprise database use its features extensively. Whereas a lot of "object oriented architects" told me its absolute crime to put anything more than necessary in the database and you should be able to drive the application using the methods on those classes?
Where do you think is the balance?
Thanks,
Krunal | 0 |
22,836 | 08/22/2008 16:47:55 | 277 | 08/04/2008 10:55:22 | 265 | 9 | Replacement in a perl String without Modification? | In perl, what is a good way to perform a replace on a string using a regular expression and store the value in a different variable, without changing the original?
I usually just copy the string to a new variable, and then bind it to the s// regex that does the replacement on the new string, but was wondering if there is a better way to do this?
$newstring = $oldstring;
$oldstring =~ s/foo/bar/g; | regex | perl | replacement | null | null | null | open | Replacement in a perl String without Modification?
===
In perl, what is a good way to perform a replace on a string using a regular expression and store the value in a different variable, without changing the original?
I usually just copy the string to a new variable, and then bind it to the s// regex that does the replacement on the new string, but was wondering if there is a better way to do this?
$newstring = $oldstring;
$oldstring =~ s/foo/bar/g; | 0 |
22,850 | 08/22/2008 16:52:58 | 2,528 | 08/22/2008 16:39:39 | 6 | 0 | Getting started with LISP | I have been fascinated towards LISP considering it's not so easy to read syntax and people's (read Paul Graham) claim of it being so awesomely awesome.
Out of curiosity, I tried to get my hands on it. However, after downloading LISP Studio, I haven't been able to get any further.
First, the IDE sucks...its no way near a professional environment to develop applications.
I tried to see if there are other environments available on windows but I haven't had much success.
I think this where the language lost it.
Could you suggest me something that would help me get into the fascinating mysterious world of LISP?
Thanks. | lisp | null | null | null | null | null | open | Getting started with LISP
===
I have been fascinated towards LISP considering it's not so easy to read syntax and people's (read Paul Graham) claim of it being so awesomely awesome.
Out of curiosity, I tried to get my hands on it. However, after downloading LISP Studio, I haven't been able to get any further.
First, the IDE sucks...its no way near a professional environment to develop applications.
I tried to see if there are other environments available on windows but I haven't had much success.
I think this where the language lost it.
Could you suggest me something that would help me get into the fascinating mysterious world of LISP?
Thanks. | 0 |
22,869 | 08/22/2008 16:58:07 | 1,344 | 08/14/2008 16:03:00 | 731 | 59 | ASP.NET - Building your own routing system | In a recent project, I built my own MVC framework in PHP. One of the things I implemented was a routing system. I used Apache's mod_rewrite to send all requests to index.php, and then parsed the URI to extract information and route the request.
I'm dabbling in ASP.NET now, and I'm wondering if/how I might perform something similar. Is there a way to route all requests (similar to the way WordPress does it) to one page where central route processing is performed? I'm aware of the MVC framework for ASP.NET, but I'd like to take a stab at this myself as I'm tinkering around and learning.
EDIT:
BTW, my hosting provider runs IIS 6 | asp.net | routing | url-rewriting | null | null | null | open | ASP.NET - Building your own routing system
===
In a recent project, I built my own MVC framework in PHP. One of the things I implemented was a routing system. I used Apache's mod_rewrite to send all requests to index.php, and then parsed the URI to extract information and route the request.
I'm dabbling in ASP.NET now, and I'm wondering if/how I might perform something similar. Is there a way to route all requests (similar to the way WordPress does it) to one page where central route processing is performed? I'm aware of the MVC framework for ASP.NET, but I'd like to take a stab at this myself as I'm tinkering around and learning.
EDIT:
BTW, my hosting provider runs IIS 6 | 0 |
22,873 | 08/22/2008 16:59:56 | 2,328 | 08/21/2008 16:45:54 | 137 | 8 | Language references/tutorials for popular languages | It wasn't that long ago that I was a beginning coder, trying to find good resources/tutorials on languages I wanted to learn. Even still, there are times I need to pick up a language relatively quickly for a new project I am working on. The point of this post is to document some of the best tutorials on the web for these languages. I will start the list with the best I can find, but hope you guys out there can help with better suggestions/new languages. Here is what I found:
C: [This][1] tutorial seems to pretty consise and thourough, looked over the material and seems to be pretty good. Not sure how friendly it would be to new programmers though.
C++: The tutorial on [cplusplus.com][2] seems to be the most complete. I found another tutorial [here][3] but it doesn't include topics like polymorphism, which I believe is essential. If you are coming from C, [this][4] tutorial might be the best for you.
Java: The official [Java tutorial][5] pages seem thourogh, but I am not a java expert. You guys know of any better ones?
Python: Don't know if there is anything better than the tutorials on the offical [python page]. If there are, please let me know.
Perl: I personally just used the perldoc perl and followed all the suggestions there, and I don't think you will be able to beat that. The best I found is [here][6].
Ruby: Found [this][7] site which gives a good description of 12 different ruby tutorials. Don't think I can do better than that.
Visual Basic: Found [this][8] site which seems to devote itself to visual basic tutorials. Not sure how good they are though.
php: Found a [simple tutorial][9] on the main php site. Each page allows for user comments, which I really like.
javascript: Found a decent tutorial [here][10] geared toward non-programmers. Found another more advanced one [here][11].
C#: The only decent one I could dig up was [this][12] one, but I am not a C# guy, so hopefully somone else has a better one.
What about you guys? I am totally off on some of there? Did I leave out your favorite language? I will take the best comments and modify the question with the suggestions.
[1]: http://www.physics.drexel.edu/students/courses/Comp_Phys/General/C_basics/
[2]: http://www.cplusplus.com/doc/tutorial/
[3]: http://www.intap.net/~drw/cpp/
[4]: http://www.4p8.com/eric.brasseur/cppcen.html
[5]: http://java.sun.com/docs/books/tutorial/
[6]: http://perldoc.perl.org/perl.html
[7]: http://www.digitalmediaminute.com/article/1816/top-ruby-on-rails-tutorials
[8]: http://www.vb6.us/
[9]: http://us3.php.net/tut.php
[10]: http://www.webteacher.com/javascript/
[11]: http://www.tizag.com/javascriptT/
[12]: http://www.csharp-station.com/Tutorial.aspx | tutorials | null | null | null | null | null | open | Language references/tutorials for popular languages
===
It wasn't that long ago that I was a beginning coder, trying to find good resources/tutorials on languages I wanted to learn. Even still, there are times I need to pick up a language relatively quickly for a new project I am working on. The point of this post is to document some of the best tutorials on the web for these languages. I will start the list with the best I can find, but hope you guys out there can help with better suggestions/new languages. Here is what I found:
C: [This][1] tutorial seems to pretty consise and thourough, looked over the material and seems to be pretty good. Not sure how friendly it would be to new programmers though.
C++: The tutorial on [cplusplus.com][2] seems to be the most complete. I found another tutorial [here][3] but it doesn't include topics like polymorphism, which I believe is essential. If you are coming from C, [this][4] tutorial might be the best for you.
Java: The official [Java tutorial][5] pages seem thourogh, but I am not a java expert. You guys know of any better ones?
Python: Don't know if there is anything better than the tutorials on the offical [python page]. If there are, please let me know.
Perl: I personally just used the perldoc perl and followed all the suggestions there, and I don't think you will be able to beat that. The best I found is [here][6].
Ruby: Found [this][7] site which gives a good description of 12 different ruby tutorials. Don't think I can do better than that.
Visual Basic: Found [this][8] site which seems to devote itself to visual basic tutorials. Not sure how good they are though.
php: Found a [simple tutorial][9] on the main php site. Each page allows for user comments, which I really like.
javascript: Found a decent tutorial [here][10] geared toward non-programmers. Found another more advanced one [here][11].
C#: The only decent one I could dig up was [this][12] one, but I am not a C# guy, so hopefully somone else has a better one.
What about you guys? I am totally off on some of there? Did I leave out your favorite language? I will take the best comments and modify the question with the suggestions.
[1]: http://www.physics.drexel.edu/students/courses/Comp_Phys/General/C_basics/
[2]: http://www.cplusplus.com/doc/tutorial/
[3]: http://www.intap.net/~drw/cpp/
[4]: http://www.4p8.com/eric.brasseur/cppcen.html
[5]: http://java.sun.com/docs/books/tutorial/
[6]: http://perldoc.perl.org/perl.html
[7]: http://www.digitalmediaminute.com/article/1816/top-ruby-on-rails-tutorials
[8]: http://www.vb6.us/
[9]: http://us3.php.net/tut.php
[10]: http://www.webteacher.com/javascript/
[11]: http://www.tizag.com/javascriptT/
[12]: http://www.csharp-station.com/Tutorial.aspx | 0 |
22,879 | 08/22/2008 17:02:14 | 1,874 | 08/19/2008 02:05:31 | 81 | 9 | How do you prevent leading zeros from being stripped when importing an excel doc using c# | I'm able to connect to and read an excel file no problem. But when importing data such as zipcodes that have leading zeros, how do you prevent excel from guessing the datatype and in the process stripping out leading zeros? | c# | asp.net | excel | ado.net | null | null | open | How do you prevent leading zeros from being stripped when importing an excel doc using c#
===
I'm able to connect to and read an excel file no problem. But when importing data such as zipcodes that have leading zeros, how do you prevent excel from guessing the datatype and in the process stripping out leading zeros? | 0 |
22,880 | 08/22/2008 17:02:26 | 1,341 | 08/14/2008 15:30:17 | 140 | 10 | What is the best way to prevent session hijacking? | Specifically this is regarding when using a client session cookie to identify a session on the server.
Is the best answer to use SSL/HTTPS encryption for the entire web site, and you have the best guarantee that no man in the middle attacks will be able to sniff an existing client session cookie?
And perhaps second best to use some sort of encryption on the session value itself that is stored in your session cookie?
If a malicious user has physical access to a machine, they can still look at the filesystem to retrieve a valid session cookie and use that to hijack a session? | session | cookies | secure | webdevelopment | null | null | open | What is the best way to prevent session hijacking?
===
Specifically this is regarding when using a client session cookie to identify a session on the server.
Is the best answer to use SSL/HTTPS encryption for the entire web site, and you have the best guarantee that no man in the middle attacks will be able to sniff an existing client session cookie?
And perhaps second best to use some sort of encryption on the session value itself that is stored in your session cookie?
If a malicious user has physical access to a machine, they can still look at the filesystem to retrieve a valid session cookie and use that to hijack a session? | 0 |
22,903 | 08/22/2008 17:09:14 | 419 | 08/05/2008 14:48:22 | 1,962 | 118 | How do I stop the Windows RDP client grabbing focus after a reconnect | I know this isn't strictly a programming question but y'all must have experienced this.
So...you have four or five RDP sessions open over the corp VPN, you're bashing away in your favourite IDE, your VPN to the data centre bounces briefly then recovers, all your RDP sessions start re-establishing their connections and whilst doing so sequentially keep grabbing focus, one after the other. Pretty bloody annoying and downright rude.
Any idea how to prevent this behaviour and just make the RDP client flash it's taskbar button instead of totally grabbing focus away from whatever you were doing?
Ta.
Kev
| rdp | terminalservices | null | null | null | null | open | How do I stop the Windows RDP client grabbing focus after a reconnect
===
I know this isn't strictly a programming question but y'all must have experienced this.
So...you have four or five RDP sessions open over the corp VPN, you're bashing away in your favourite IDE, your VPN to the data centre bounces briefly then recovers, all your RDP sessions start re-establishing their connections and whilst doing so sequentially keep grabbing focus, one after the other. Pretty bloody annoying and downright rude.
Any idea how to prevent this behaviour and just make the RDP client flash it's taskbar button instead of totally grabbing focus away from whatever you were doing?
Ta.
Kev
| 0 |
22,907 | 08/22/2008 17:10:30 | 1,228 | 08/13/2008 13:58:55 | 786 | 51 | Which is better: Ad hoc queries, or stored procedures? | Assuming you can't use Linq for whatever reason, is it a better practice to place your queries in stored procedures, or is it just as good a practice to execute ad hoc queries against the database (say, Sql Server for argument's sake)? | storedprocedures | sql | null | null | null | 10/07/2011 16:11:24 | not constructive | Which is better: Ad hoc queries, or stored procedures?
===
Assuming you can't use Linq for whatever reason, is it a better practice to place your queries in stored procedures, or is it just as good a practice to execute ad hoc queries against the database (say, Sql Server for argument's sake)? | 4 |
22,909 | 08/22/2008 17:10:59 | 184 | 08/03/2008 05:34:19 | 676 | 8 | Is there some way to show HTML content inside Flash? | I want to show HTML content inside FLASH. Is there some way to do this? | adobe | flash | html | null | null | null | open | Is there some way to show HTML content inside Flash?
===
I want to show HTML content inside FLASH. Is there some way to do this? | 0 |
22,935 | 08/22/2008 17:19:24 | 39,040 | 11/19/2008 17:53:34 | 1 | 0 | CSV (or sheet in XLS) to SQL create (and insert) statements with .Net? | Does anyone have a technique for generating SQL table create (and data insert) commands pragmatically from a CSV (or sheet in a .xls) file?
I've got a third party database system which I'd like to populate with data from a csv file (or sheet in a xls file) but the importer supplied can't create the table structure automatically as it does the import. My csv file has lots of tables with lots of columns so I'd like to automate the table creation process as well as the data importing if possible but I'm unsure about how to go about generating the create statement... | .net | sql | csv | xls | null | null | open | CSV (or sheet in XLS) to SQL create (and insert) statements with .Net?
===
Does anyone have a technique for generating SQL table create (and data insert) commands pragmatically from a CSV (or sheet in a .xls) file?
I've got a third party database system which I'd like to populate with data from a csv file (or sheet in a xls file) but the importer supplied can't create the table structure automatically as it does the import. My csv file has lots of tables with lots of columns so I'd like to automate the table creation process as well as the data importing if possible but I'm unsure about how to go about generating the create statement... | 0 |
22,943 | 08/22/2008 17:19:52 | 791 | 08/09/2008 00:37:47 | 477 | 60 | Does anybody know of existing code to read a mork file (Thunderbird Address Book)? | I have the need to read the Thunderbird address book on the fly. It is stored in a file format called Mork. Not a pleasant file format to read. I found a 1999 article explaining the file format. I would love to know if someone already has gone through this process and could make the code available. I found mork.pl by Jamie Zawinski, but I was hoping for a .NET solution.
I'm hoping StackOverflow will come to the rescue, because this just seems like a waste of my time to write something to read this file format when it should be so simple.
I love the comments that Jamie put in his [perl script][1]. Here is my favorite part:
# Let me make it clear that McCusker is a complete barking lunatic.
# This is just about the stupidest file format I've ever seen.
[1]: http://www.jwz.org/hacks/mork.pl
| .net | mork | thunderbird | file-format | null | null | open | Does anybody know of existing code to read a mork file (Thunderbird Address Book)?
===
I have the need to read the Thunderbird address book on the fly. It is stored in a file format called Mork. Not a pleasant file format to read. I found a 1999 article explaining the file format. I would love to know if someone already has gone through this process and could make the code available. I found mork.pl by Jamie Zawinski, but I was hoping for a .NET solution.
I'm hoping StackOverflow will come to the rescue, because this just seems like a waste of my time to write something to read this file format when it should be so simple.
I love the comments that Jamie put in his [perl script][1]. Here is my favorite part:
# Let me make it clear that McCusker is a complete barking lunatic.
# This is just about the stupidest file format I've ever seen.
[1]: http://www.jwz.org/hacks/mork.pl
| 0 |
22,968 | 08/22/2008 17:32:11 | 105 | 08/01/2008 23:29:32 | 106 | 9 | Pull image blob from table and convert to native format using SSIS | I have an .net webforms front end that allows admin users to upload two .xls files for offline processing. As these files will be used for validation (and aggregation) I store these in an image field in a table.
My ultimate goal is to create a SSIS package that will process these files offline. Does anyone know how to use SSIS to read a blob from a table into it's native (in this case .xls) format for use in a Data Flow task? | ssis | null | null | null | null | null | open | Pull image blob from table and convert to native format using SSIS
===
I have an .net webforms front end that allows admin users to upload two .xls files for offline processing. As these files will be used for validation (and aggregation) I store these in an image field in a table.
My ultimate goal is to create a SSIS package that will process these files offline. Does anyone know how to use SSIS to read a blob from a table into it's native (in this case .xls) format for use in a Data Flow task? | 0 |
22,976 | 08/22/2008 17:37:07 | 2,536 | 08/22/2008 17:37:07 | 1 | 0 | How to provide namespaces in JavaScript with instanced objects | I've got a JavaScript "object", built this way:
function foo()
{
this.length = 0;
}
foo.prototype.getLength = function()
{
return this.length;
}
...
I know how to emulate namespaces with singleton JavaScript objects, but what is the best way to "namepace" an object such as that above that will intanced?
I know that several JavaScript libraries have namepacing capabilities, but I'm using jQuery and would rather not add another library to the mix. I'd like to be able to provide my own, perhaps by exploiting jQuery, intrinsic namespacing scheme for the JS objects of mine that need to be instanced.
Thanks
rp | javascript | namespace | null | null | null | null | open | How to provide namespaces in JavaScript with instanced objects
===
I've got a JavaScript "object", built this way:
function foo()
{
this.length = 0;
}
foo.prototype.getLength = function()
{
return this.length;
}
...
I know how to emulate namespaces with singleton JavaScript objects, but what is the best way to "namepace" an object such as that above that will intanced?
I know that several JavaScript libraries have namepacing capabilities, but I'm using jQuery and would rather not add another library to the mix. I'd like to be able to provide my own, perhaps by exploiting jQuery, intrinsic namespacing scheme for the JS objects of mine that need to be instanced.
Thanks
rp | 0 |
22,979 | 08/22/2008 17:37:48 | 178 | 08/03/2008 02:21:57 | 8 | 5 | Detecting if SQL server is running | I'm looking for a way to poll different servers and check that SQL server is up and running. I'm writing my code in C#. I don't particularly care about individual databases, just that SQL server is running and responsive.
Any ideas? | c# | sql-server | null | null | null | null | open | Detecting if SQL server is running
===
I'm looking for a way to poll different servers and check that SQL server is up and running. I'm writing my code in C#. I don't particularly care about individual databases, just that SQL server is running and responsive.
Any ideas? | 0 |
22,980 | 08/22/2008 17:37:51 | 2,293 | 08/21/2008 14:02:56 | 3 | 5 | Acts-as-readable Rails plugin Issue | I'm using Intridea's [Acts as Readable][1] Rails plugin for a messaging system I'm currently building.
I've defined my message class accordingly:
class Post < ActiveRecord::Base
acts-as-readable
end
And everything seems to be working according to plan, but when trying to execute to show unread messages in my message view, I'm running into problems.
Their example: (I've changed underscores to hyphens due to formatting issues)
bob = User.find-by-name("bob")
bob.readings # => []
Post.find-unread-by(bob) # => [<Post 1>,<Post 2>,<Post 3>...]
Post.find-read-by(bob) # => []
Post.find(1).read-by?(bob) # => false
Post.find(1).read-by!(bob) # => <Reading 1>
Post.find(1).read-by?(bob) # => true
Post.find(1).users-who-read # => [<User bob>]
Post.find-unread-by(bob) # => [<Post 2>,<Post 3>...]
Post.find-read-by(bob) # => [<Post 1>]
bob.readings # => [<Reading 1>]
So it seems as though if I wanted to list the number of unread messages sitting in a mailbox (for example Inbox (39) ), I should be able to do something like:
<%= Post.find-unread-by(current-user).count %>
But to no avail. I always seem to get stuck on the simple view issues after everything's set.
Any ideas?
[1]: http://www.intridea.com/2008/2/29/acts-as-readable-drop-in-mark-as-read-functionality | ruby | ruby-on-rails | rubyonrails | actsasreadable | plugins | null | open | Acts-as-readable Rails plugin Issue
===
I'm using Intridea's [Acts as Readable][1] Rails plugin for a messaging system I'm currently building.
I've defined my message class accordingly:
class Post < ActiveRecord::Base
acts-as-readable
end
And everything seems to be working according to plan, but when trying to execute to show unread messages in my message view, I'm running into problems.
Their example: (I've changed underscores to hyphens due to formatting issues)
bob = User.find-by-name("bob")
bob.readings # => []
Post.find-unread-by(bob) # => [<Post 1>,<Post 2>,<Post 3>...]
Post.find-read-by(bob) # => []
Post.find(1).read-by?(bob) # => false
Post.find(1).read-by!(bob) # => <Reading 1>
Post.find(1).read-by?(bob) # => true
Post.find(1).users-who-read # => [<User bob>]
Post.find-unread-by(bob) # => [<Post 2>,<Post 3>...]
Post.find-read-by(bob) # => [<Post 1>]
bob.readings # => [<Reading 1>]
So it seems as though if I wanted to list the number of unread messages sitting in a mailbox (for example Inbox (39) ), I should be able to do something like:
<%= Post.find-unread-by(current-user).count %>
But to no avail. I always seem to get stuck on the simple view issues after everything's set.
Any ideas?
[1]: http://www.intridea.com/2008/2/29/acts-as-readable-drop-in-mark-as-read-functionality | 0 |
22,981 | 08/22/2008 17:37:54 | 2,527 | 08/22/2008 16:35:28 | 11 | 4 | ASP.Net: How to do pagination with a Repeater? | I'm using the Repeater control on my site to display data from the database. I need to do pagination ("now displaying page 1 of 10", 10 items per page, etc) but I'm not sure I'm going about it the best way possible.
I know the Repeater control doesn't have any built-in pagination, so I'll have to make my own. Is there a way to tell the DataSource control to return rows 10-20 of a much larger result set? If not, how do I write that into a query (SQL Server 2005)? I'm currently using the TOP keyword to only return the first 10 rows, but I'm not sure how to display rows 10-20. | asp.net | mssql | null | null | null | null | open | ASP.Net: How to do pagination with a Repeater?
===
I'm using the Repeater control on my site to display data from the database. I need to do pagination ("now displaying page 1 of 10", 10 items per page, etc) but I'm not sure I'm going about it the best way possible.
I know the Repeater control doesn't have any built-in pagination, so I'll have to make my own. Is there a way to tell the DataSource control to return rows 10-20 of a much larger result set? If not, how do I write that into a query (SQL Server 2005)? I'm currently using the TOP keyword to only return the first 10 rows, but I'm not sure how to display rows 10-20. | 0 |
22,988 | 08/22/2008 17:40:23 | 418 | 08/05/2008 14:46:44 | 1 | 0 | Form post doesn't contain textbox data [ASP.NET C#] | I have several "ASP:TextBox" controls on a form (about 20). When the form loads, the text boxes are populated from a database. The user can change the populated values, and when they submit the form, I take the values posted to the server and conditionally save them (determined by some business logic). All but 1 of the text boxes work as intended.
The odd box out, upon postback, does not contain the updated value that the user typed into the box. When debugging the application, it is clear that **myTextBox.Text** reflects the old, pre-populated value, not the new, user-supplied value. Every other box properly shows their respective user-supplied values.
I did find a workaround. My solution was to basically extract the text box's value out of the Request.Form object: **Request.Form[myTextBox.UniqueID]**, which does contain the user-supplied value.
What could be going on, here? As I mentioned, the other text boxes receive the user-supplied values just fine, and this particular problematic text box doesn't have any logic associated to it -- it just takes the value and saves it. The maindifference between this text box and the others is that this is a multi-line box (for inputting notes), which I believe is rendered as an HTML "textarea" tag instead of an "input" tag in ASP.NET. | c# | asp.net | null | null | null | null | open | Form post doesn't contain textbox data [ASP.NET C#]
===
I have several "ASP:TextBox" controls on a form (about 20). When the form loads, the text boxes are populated from a database. The user can change the populated values, and when they submit the form, I take the values posted to the server and conditionally save them (determined by some business logic). All but 1 of the text boxes work as intended.
The odd box out, upon postback, does not contain the updated value that the user typed into the box. When debugging the application, it is clear that **myTextBox.Text** reflects the old, pre-populated value, not the new, user-supplied value. Every other box properly shows their respective user-supplied values.
I did find a workaround. My solution was to basically extract the text box's value out of the Request.Form object: **Request.Form[myTextBox.UniqueID]**, which does contain the user-supplied value.
What could be going on, here? As I mentioned, the other text boxes receive the user-supplied values just fine, and this particular problematic text box doesn't have any logic associated to it -- it just takes the value and saves it. The maindifference between this text box and the others is that this is a multi-line box (for inputting notes), which I believe is rendered as an HTML "textarea" tag instead of an "input" tag in ASP.NET. | 0 |
23,001 | 08/22/2008 17:42:24 | 2,505 | 08/22/2008 15:18:00 | 1 | 0 | Any good tools to automate SQL Server management tasks? | I know I could write scripts and create jobs to run them, but at least some of what I'm wanting it to do is beyond my programming abilities for that to be an option.
What I'm imagining is something that can run on a regular schedule that will examine all the databases on a server and automatically shrink data and log files (after a backup, of course) when they've reached a file size that contains too much free space. It would be nice if it could defrag index files when they've become too fragmented as well.
I guess what I'm probably looking for is a DBA in a box!
Or it could just be that I need better performance monitoring tools instead. I know how to take care of both of those issues, but it's more that I forget to check for those issues until I start seeing performance issues with my apps. | sql-server | mssql | null | null | null | null | open | Any good tools to automate SQL Server management tasks?
===
I know I could write scripts and create jobs to run them, but at least some of what I'm wanting it to do is beyond my programming abilities for that to be an option.
What I'm imagining is something that can run on a regular schedule that will examine all the databases on a server and automatically shrink data and log files (after a backup, of course) when they've reached a file size that contains too much free space. It would be nice if it could defrag index files when they've become too fragmented as well.
I guess what I'm probably looking for is a DBA in a box!
Or it could just be that I need better performance monitoring tools instead. I know how to take care of both of those issues, but it's more that I forget to check for those issues until I start seeing performance issues with my apps. | 0 |
23,016 | 08/22/2008 17:47:27 | 580 | 08/06/2008 22:30:28 | 932 | 74 | Checklist for testing a new site | What are the most common things to test in a new site?
For instance to prevent exploits by bots, malicious users, massive load, etc.?
And just as importantly, what tools and approaches should you use? | testing | webdevelopment | null | null | null | null | open | Checklist for testing a new site
===
What are the most common things to test in a new site?
For instance to prevent exploits by bots, malicious users, massive load, etc.?
And just as importantly, what tools and approaches should you use? | 0 |
23,027 | 08/22/2008 17:53:24 | 1,965 | 08/19/2008 15:51:08 | 830 | 54 | CruiseControl.Net Build Publisher - Only publish compiled files | While setting up CruiseControl, I added a buildpublisher block to the publisher tasks:
<buildpublisher>
<sourceDir>C:\MyBuild\</sourceDir>
<publishDir>C:\MyBuildPublished\</publishDir>
<alwaysPublish>false</alwaysPublish>
</buildpublisher>
This works, but it copies the entire file contents of the build, I only want to copy the DLL's and .aspx pages, I don't need the source code to get published.
Does anyone know of a way to filter this, or do I need to setup a task to run a RoboCopy script instead? | cruisecontrol.net | .net | buildprocess | null | null | null | open | CruiseControl.Net Build Publisher - Only publish compiled files
===
While setting up CruiseControl, I added a buildpublisher block to the publisher tasks:
<buildpublisher>
<sourceDir>C:\MyBuild\</sourceDir>
<publishDir>C:\MyBuildPublished\</publishDir>
<alwaysPublish>false</alwaysPublish>
</buildpublisher>
This works, but it copies the entire file contents of the build, I only want to copy the DLL's and .aspx pages, I don't need the source code to get published.
Does anyone know of a way to filter this, or do I need to setup a task to run a RoboCopy script instead? | 0 |
23,031 | 08/22/2008 17:54:10 | 2,293 | 08/21/2008 14:02:56 | 3 | 5 | When to test? | Simple question, really.
I've mentioned already that I'm a novice developer, but as I get into the rhythm of my first professional project, I'm trying to make sure I develop good habits as soon as possible.
But I've found that I often forget to test, put it off, or do a whole bunch of tests at the end of a build instead of one at a time.
So I'm wondering what rhythm you guys like to get into when working on large projects, and where testing fits into it. | testing | null | null | null | null | null | open | When to test?
===
Simple question, really.
I've mentioned already that I'm a novice developer, but as I get into the rhythm of my first professional project, I'm trying to make sure I develop good habits as soon as possible.
But I've found that I often forget to test, put it off, or do a whole bunch of tests at the end of a build instead of one at a time.
So I'm wondering what rhythm you guys like to get into when working on large projects, and where testing fits into it. | 0 |
23,063 | 08/22/2008 18:07:38 | 1,946 | 08/19/2008 14:53:06 | 133 | 4 | Any capistrano comparable for windows/.net? | See title. | webdevelopment | windows | .net | null | null | null | open | Any capistrano comparable for windows/.net?
===
See title. | 0 |
23,064 | 08/22/2008 18:07:56 | 317 | 08/04/2008 15:43:28 | 253 | 13 | XML Collection Best Practices | I'm creating an application that will store a hierarchical collection of items in an XML file and I'm wondering about the industry standard for storing collections in XML. Which of the following two formats is preferred? (If there is another option I'm not seeing, please advise.)
**Option A**
<School>
<Student Name="Jack" />
<Student Name="Jill" />
<Class Name="English 101" />
<Class Name="Math 101" />
</School>
**Option B**
<School>
<Students>
<Student Name="Jack" />
<Student Name="Jill" />
</Students>
<Classes>
<Class Name="English 101" />
<Class Name="Math 101" />
</Classes>
</School>
| xml | bestpractices | null | null | null | null | open | XML Collection Best Practices
===
I'm creating an application that will store a hierarchical collection of items in an XML file and I'm wondering about the industry standard for storing collections in XML. Which of the following two formats is preferred? (If there is another option I'm not seeing, please advise.)
**Option A**
<School>
<Student Name="Jack" />
<Student Name="Jill" />
<Class Name="English 101" />
<Class Name="Math 101" />
</School>
**Option B**
<School>
<Students>
<Student Name="Jack" />
<Student Name="Jill" />
</Students>
<Classes>
<Class Name="English 101" />
<Class Name="Math 101" />
</Classes>
</School>
| 0 |
23,078 | 08/22/2008 18:14:45 | 2,539 | 08/22/2008 18:14:45 | 1 | 0 | How to solve the Single stepping problem with VS2008 SP1 | Debugging in visual studio seems to have been broken with sp1.
Single stepping randomly does not work and just starts to run. Sometimes breakpoints are ignored. It is unpredictable and unusable. It will generally hit the first break point but after that it is totally unpredictable.
Any idea what needs to be done to correct this behavior ? | c# | visualstudio2008 | sp1 | null | null | null | open | How to solve the Single stepping problem with VS2008 SP1
===
Debugging in visual studio seems to have been broken with sp1.
Single stepping randomly does not work and just starts to run. Sometimes breakpoints are ignored. It is unpredictable and unusable. It will generally hit the first break point but after that it is totally unpredictable.
Any idea what needs to be done to correct this behavior ? | 0 |
23,082 | 08/22/2008 18:16:39 | 290 | 08/04/2008 12:57:50 | 351 | 46 | How Did You Decide Between WISA and LAMP? | Did you ever have to choose between WISA or LAMP at the beginning of a web project?
While pros and cons are littered around the net, it would be helpful to know about your real experience in coming up w/ criteria, evaluating, deciding, and reflecting upon your decision to go w/ either platform. | architecture | web-application | lamp | platform | wisa | null | open | How Did You Decide Between WISA and LAMP?
===
Did you ever have to choose between WISA or LAMP at the beginning of a web project?
While pros and cons are littered around the net, it would be helpful to know about your real experience in coming up w/ criteria, evaluating, deciding, and reflecting upon your decision to go w/ either platform. | 0 |
23,083 | 08/22/2008 18:16:51 | 2,354 | 08/21/2008 19:55:59 | 31 | 3 | What's an alternative to GWL_USERDATA for storing an object pointer? | In the Windows applications I work on, we have a custom framework that sits directly above Win32 (don't ask). When we create a window, our normal practice is to put `this` in the window's user data area via `SetWindowLong(GWL-USERDATA, this)`, which allows us to have an MFC-like callback or a tightly integrated `WndProc`, depending. The problem is that this will not work on Win64, since LONG is only 32-bits wide. What's a better solution to this problem that works on both 32- and 64-bit systems? | winapi | win64 | windows | null | null | null | open | What's an alternative to GWL_USERDATA for storing an object pointer?
===
In the Windows applications I work on, we have a custom framework that sits directly above Win32 (don't ask). When we create a window, our normal practice is to put `this` in the window's user data area via `SetWindowLong(GWL-USERDATA, this)`, which allows us to have an MFC-like callback or a tightly integrated `WndProc`, depending. The problem is that this will not work on Win64, since LONG is only 32-bits wide. What's a better solution to this problem that works on both 32- and 64-bit systems? | 0 |
23,091 | 08/22/2008 18:18:56 | 2,528 | 08/22/2008 16:39:39 | 51 | 3 | How to write a spec that is productive? | I've seen different program managers write specs in different format. Almost every one has had his/her own style of writing a spec.
On one hand are those wordy documents which given to a programmer are likely to cause him/her missing a few things. I personally dread the word documents spec...I think its because of my reading style...I am always speed reading things which I think will cause me to miss out on key points.
On the other hand, I have seen this innovative specs written in Excel by one of our clients. The way he used to write the spec was kind of create a mock application in Excel and use some VBA to mock it. He would do things like on button click where should the form go or what action should it perform (in comments).
On data form, he would display a form in cells and on each data entry cell he would comment on what valid values are, what validation should it perform etc.
I think that using this technique, it was less likely to miss out on things that needed to be done. Also, it was much easier to unit test it for the developer. The tester too had a better understanding of the system as it 'performed' before actually being written.
Visio is another tool to do screen desing but I still think Excel has a better edge over it considering its VBA support and its functions.
Do you think this should become a more popular way of writing spec? I know it involves a bit of extra work on part of project manager(or whoever is writing the spec) but the payoff is huge...I myself could see a lot of productivity gain from using it. And if there are any better formats of specs that would actually help programmer.
| specs | null | null | null | null | null | open | How to write a spec that is productive?
===
I've seen different program managers write specs in different format. Almost every one has had his/her own style of writing a spec.
On one hand are those wordy documents which given to a programmer are likely to cause him/her missing a few things. I personally dread the word documents spec...I think its because of my reading style...I am always speed reading things which I think will cause me to miss out on key points.
On the other hand, I have seen this innovative specs written in Excel by one of our clients. The way he used to write the spec was kind of create a mock application in Excel and use some VBA to mock it. He would do things like on button click where should the form go or what action should it perform (in comments).
On data form, he would display a form in cells and on each data entry cell he would comment on what valid values are, what validation should it perform etc.
I think that using this technique, it was less likely to miss out on things that needed to be done. Also, it was much easier to unit test it for the developer. The tester too had a better understanding of the system as it 'performed' before actually being written.
Visio is another tool to do screen desing but I still think Excel has a better edge over it considering its VBA support and its functions.
Do you think this should become a more popular way of writing spec? I know it involves a bit of extra work on part of project manager(or whoever is writing the spec) but the payoff is huge...I myself could see a lot of productivity gain from using it. And if there are any better formats of specs that would actually help programmer.
| 0 |
23,094 | 08/22/2008 18:19:10 | 1,874 | 08/19/2008 02:05:31 | 93 | 11 | What's the best way to deal with cache and the browser back button? | What's the best way to handle a user going back to a page that had cached items in an asp.net app? Is there a good way to capture the back button (event?) and handle the cache that way? | asp.net | caching | backbutton | null | null | null | open | What's the best way to deal with cache and the browser back button?
===
What's the best way to handle a user going back to a page that had cached items in an asp.net app? Is there a good way to capture the back button (event?) and handle the cache that way? | 0 |
23,098 | 08/22/2008 18:20:35 | 346 | 08/04/2008 21:30:40 | 71 | 4 | Why the proliferation of open source licenses? | Is the proliferation of open source licenses just another example of programmers living NYI (Not Invented Here) syndrome? I know there are some big differences between some of the big licenses (e.g., GPL, Apache, BSD) but when you start looking to see many projects creating their own licenses. Why?
References:
[http://en.wikipedia.org/wiki/Open_source_licenses][1]<br>
[http://developer.kde.org/documentation/licensing/licenses_summary.html][2]
[1]: http://en.wikipedia.org/wiki/Open_source_licenses
[2]: http://developer.kde.org/documentation/licensing/licenses_summary.html | open-source | licensing | null | null | null | null | open | Why the proliferation of open source licenses?
===
Is the proliferation of open source licenses just another example of programmers living NYI (Not Invented Here) syndrome? I know there are some big differences between some of the big licenses (e.g., GPL, Apache, BSD) but when you start looking to see many projects creating their own licenses. Why?
References:
[http://en.wikipedia.org/wiki/Open_source_licenses][1]<br>
[http://developer.kde.org/documentation/licensing/licenses_summary.html][2]
[1]: http://en.wikipedia.org/wiki/Open_source_licenses
[2]: http://developer.kde.org/documentation/licensing/licenses_summary.html | 0 |
23,102 | 08/22/2008 18:22:09 | 580 | 08/06/2008 22:30:28 | 950 | 75 | What are comon exploits (web) i should know about? | I'm pretty green still when it comes to web programing, I've spent most of my time on client applications. So I'm curious about the common exploits I should fear/test for in my site. | webdevelopment | testing | null | null | null | null | open | What are comon exploits (web) i should know about?
===
I'm pretty green still when it comes to web programing, I've spent most of my time on client applications. So I'm curious about the common exploits I should fear/test for in my site. | 0 |
23,106 | 08/22/2008 18:22:39 | 828 | 08/09/2008 06:12:41 | 1 | 1 | Best method to parse various custom XML documents in Java | What is the best method to parse multiple, discrete, custom XML documents with Java? | java | xml | null | null | null | null | open | Best method to parse various custom XML documents in Java
===
What is the best method to parse multiple, discrete, custom XML documents with Java? | 0 |
23,124 | 08/22/2008 18:27:59 | 2,272 | 08/21/2008 12:35:55 | 109 | 24 | Need to test an ajax timeout condition | As the title mentions, I have a timeout callback handler on an ajax call, and I want to be able to test that condition but nothing is coming to mind immediately on ways I can force my application to hit that state, any suggestions? | asp.net | testing | ajax | null | null | null | open | Need to test an ajax timeout condition
===
As the title mentions, I have a timeout callback handler on an ajax call, and I want to be able to test that condition but nothing is coming to mind immediately on ways I can force my application to hit that state, any suggestions? | 0 |
23,166 | 08/22/2008 18:46:09 | 2,547 | 08/22/2008 19:10:02 | 1 | 0 | What's a good beginning text on functional programming? | I like to study languages outside my comfort zone, but I've had a hard time finding a place to start for functional languages. I heard a lot of good things about [Structure and Interpretations of Computer Programs][1], but when I tried to read through it a couple of years ago it just seemed to whiz over my head. I do way better with books than web sites, but when I visit the local book store the books on LISP look kind of scary.
So what's a good starting point? My goal is to be able to use a functional programming language to solve simple problems in 6 months or so, and the ability to move to more advanced topics, recognize when a functional language is the right tool for the job, and use the language to solve more problems over the course of 2-3 years. I like books that are heavy on examples but also include challenges to work through. Does such a thing exist for functional languages?
[1]: http://www.amazon.com/Structure-Interpretation-Computer-Programs-Second/dp/0070004846/ref=pd_bbs_7?ie=UTF8&s=books&qid=1219429954&sr=8-7 | functionalprogramming | lisp | scheme | gettingstarted | null | null | open | What's a good beginning text on functional programming?
===
I like to study languages outside my comfort zone, but I've had a hard time finding a place to start for functional languages. I heard a lot of good things about [Structure and Interpretations of Computer Programs][1], but when I tried to read through it a couple of years ago it just seemed to whiz over my head. I do way better with books than web sites, but when I visit the local book store the books on LISP look kind of scary.
So what's a good starting point? My goal is to be able to use a functional programming language to solve simple problems in 6 months or so, and the ability to move to more advanced topics, recognize when a functional language is the right tool for the job, and use the language to solve more problems over the course of 2-3 years. I like books that are heavy on examples but also include challenges to work through. Does such a thing exist for functional languages?
[1]: http://www.amazon.com/Structure-Interpretation-Computer-Programs-Second/dp/0070004846/ref=pd_bbs_7?ie=UTF8&s=books&qid=1219429954&sr=8-7 | 0 |
23,175 | 08/22/2008 18:50:52 | 1,490 | 08/15/2008 21:35:24 | 226 | 38 | Caching Schemes for Managed Langauges | This is mostly geared toward desktop application developers. How do I design a caching block which plays nicely with the GC? How do I tell the GC that I have just done a cache sweep and it is time to do a GC? How do I get an accurate measure of when it is time to do a cache sweep?
Are there any prebuilt caching schemes which I could borrow some ideas from? | caching | gc | null | null | null | null | open | Caching Schemes for Managed Langauges
===
This is mostly geared toward desktop application developers. How do I design a caching block which plays nicely with the GC? How do I tell the GC that I have just done a cache sweep and it is time to do a GC? How do I get an accurate measure of when it is time to do a cache sweep?
Are there any prebuilt caching schemes which I could borrow some ideas from? | 0 |
23,176 | 08/22/2008 18:50:54 | 1,821 | 08/18/2008 18:11:48 | 69 | 12 | Suggestions on Ajax development environment for PHP | I am a C/C++ programmer professionally, but I've created a couple of personal web sites using PHP and MySQL. They're pretty basic, and I'd like to jazz them up using Ajax, but I've never done any Ajax. I've done all the development so far manually, i.e. no IDE or anything like that.
Does anyone have suggestions on Ajax development environments that can help me? Shareware or freeware would be preferable as I'd find it hard to justify spending more than a minimal amount of money on this...
| php | ajax | ide | webdevelopment | null | null | open | Suggestions on Ajax development environment for PHP
===
I am a C/C++ programmer professionally, but I've created a couple of personal web sites using PHP and MySQL. They're pretty basic, and I'd like to jazz them up using Ajax, but I've never done any Ajax. I've done all the development so far manually, i.e. no IDE or anything like that.
Does anyone have suggestions on Ajax development environments that can help me? Shareware or freeware would be preferable as I'd find it hard to justify spending more than a minimal amount of money on this...
| 0 |
23,178 | 08/22/2008 18:52:14 | 1,632 | 08/17/2008 17:09:25 | 171 | 15 | "All Users" Folder | Is there a .net variable that returns the "All Users" directory? | .net | io | null | null | null | null | open | "All Users" Folder
===
Is there a .net variable that returns the "All Users" directory? | 0 |
23,190 | 08/22/2008 18:56:04 | 522 | 08/06/2008 14:24:03 | 265 | 35 | How Does One Sum Dimmensions of an Array Specified at Runt-Time? | I am working on a function to establish the entropy of a distribution. It uses a copula, if any are familiar with that. I need to sum up the values in the array based on which dimensions are "cared about."
Example: Consider the following array...
Dimension 0 (across)
_ _ _ _ _ _ _ _ _ _ _ _ _
|_ 0 _|_ 0 _|_ 0 _|_ 2 _| Dimension 1
|_ 1 _|_ 0 _|_ 2 _|_ 0 _| (down)
|_ 0 _|_ 3 _|_ 0 _|_ 6 _|
|_ 0 _|_ 0 _|_ 0 _|_ 0 _|
I "care about" dimension 0 only, and "don't care" about the rest (dim 1).
Summing this array with the above specifications will
"collapse" the "stacks" of dimension 1 down to a single 4 x 1 array:
_ _ _ _ _ _ _ _ _ _ _ _ _
|_ 1 _|_ 3 _|_ 2 _|_ 8 _|
This can then be summed, or have any operation performed.
I need to do this with an array of 'n' dimensions, which could feasibly be 20. Also, I need to be able to do this, caring about certain dimensions, and collapsing the rest. I am having an especially hard time with this because I cant visualize 20 dimensions :p . If anyone could help me set up some c/c++ code to do this, I would be very very grateful.
Thanks in advance | array | index | dynamic | c | c++ | null | open | How Does One Sum Dimmensions of an Array Specified at Runt-Time?
===
I am working on a function to establish the entropy of a distribution. It uses a copula, if any are familiar with that. I need to sum up the values in the array based on which dimensions are "cared about."
Example: Consider the following array...
Dimension 0 (across)
_ _ _ _ _ _ _ _ _ _ _ _ _
|_ 0 _|_ 0 _|_ 0 _|_ 2 _| Dimension 1
|_ 1 _|_ 0 _|_ 2 _|_ 0 _| (down)
|_ 0 _|_ 3 _|_ 0 _|_ 6 _|
|_ 0 _|_ 0 _|_ 0 _|_ 0 _|
I "care about" dimension 0 only, and "don't care" about the rest (dim 1).
Summing this array with the above specifications will
"collapse" the "stacks" of dimension 1 down to a single 4 x 1 array:
_ _ _ _ _ _ _ _ _ _ _ _ _
|_ 1 _|_ 3 _|_ 2 _|_ 8 _|
This can then be summed, or have any operation performed.
I need to do this with an array of 'n' dimensions, which could feasibly be 20. Also, I need to be able to do this, caring about certain dimensions, and collapsing the rest. I am having an especially hard time with this because I cant visualize 20 dimensions :p . If anyone could help me set up some c/c++ code to do this, I would be very very grateful.
Thanks in advance | 0 |
23,197 | 08/22/2008 18:58:28 | 2,146 | 08/20/2008 15:02:09 | 1 | 1 | Find out which process has an exclusive lock on a USB device handle | I have a library that reads/writes to a USB-device using CreateFile() API. The device happens to implement the HID-device profile, such that it's compatible with Microsoft's HID class driver.
Some other application installed on the system is opening the device in read/write mode with no share mode. Which prevents my library (and anything that consumes it) from working with the device. I suppose that's the rub with being an HID-compatible device -- other driver software (mice, controllers, PHIDGETS, etc) can be uncooperative.
Anyway, the device file path is of the form:
> "\\?\hid#hpqremhiddevice&col01#5&21ff20e7&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}".
>
> "\\?\hid#vid_045e&pid_0023#7&34aa9ece&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}".
>
> "\?\hid#vid_056a&pid_00b0&col01#6&5b05f29&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}".
And I'm trying to open it using code, like:
// First, open it with minimum permissions, this device may not be ours.
// we'll re-open it later in read/write
hid_device_ref = CreateFile(
device_path, GENERIC_READ,
0, NULL, OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL, NULL);
I've considered a tool like FileMon or Process Monitor from SysInternals. But I can't seem to get it to report usage on device file handles like the one listed above. | c++ | winapi | usb | devices | null | null | open | Find out which process has an exclusive lock on a USB device handle
===
I have a library that reads/writes to a USB-device using CreateFile() API. The device happens to implement the HID-device profile, such that it's compatible with Microsoft's HID class driver.
Some other application installed on the system is opening the device in read/write mode with no share mode. Which prevents my library (and anything that consumes it) from working with the device. I suppose that's the rub with being an HID-compatible device -- other driver software (mice, controllers, PHIDGETS, etc) can be uncooperative.
Anyway, the device file path is of the form:
> "\\?\hid#hpqremhiddevice&col01#5&21ff20e7&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}".
>
> "\\?\hid#vid_045e&pid_0023#7&34aa9ece&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}".
>
> "\?\hid#vid_056a&pid_00b0&col01#6&5b05f29&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}".
And I'm trying to open it using code, like:
// First, open it with minimum permissions, this device may not be ours.
// we'll re-open it later in read/write
hid_device_ref = CreateFile(
device_path, GENERIC_READ,
0, NULL, OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL, NULL);
I've considered a tool like FileMon or Process Monitor from SysInternals. But I can't seem to get it to report usage on device file handles like the one listed above. | 0 |
23,205 | 08/22/2008 19:02:09 | 1,490 | 08/15/2008 21:35:24 | 246 | 39 | Boundary Tests For a Networked App | Besides "no connection", what other failure modes should I test for? How do I simulate a high-latency link, an unreliable link, or all the other sorts of crazy stuff that will undoubtedly happen "in the wild"? How about wireless applications--how do I test the performance in a less-than-ideal WL environment? | testing | networking | wireless | null | null | null | open | Boundary Tests For a Networked App
===
Besides "no connection", what other failure modes should I test for? How do I simulate a high-latency link, an unreliable link, or all the other sorts of crazy stuff that will undoubtedly happen "in the wild"? How about wireless applications--how do I test the performance in a less-than-ideal WL environment? | 0 |
23,209 | 08/22/2008 19:03:52 | 1,322 | 08/14/2008 14:11:10 | 86 | 5 | C++ linker unresolved external symbols | I'm building an application against some legacy, third party libraries, and having problems with the linking stage. I'm trying to compile with Visual Studio 9. My compile command is:
> cl -DNT40 -DPOMDLL -DCRTAPI1=_cdecl
> -DCRTAPI2=cdecl -D_WIN32 -DWIN32 -DWIN32_LEAN_AND_MEAN -DWNT -DBYPASS_FLEX -D_INTEL=1 -DIPLIB=none -I. -I"D:\src\include" -I"C:\Program Files\Microsoft Visual Studio
> 9.0\VC\include" -c -nologo -EHsc -W1 -Ox -Oy- -MD mymain.c
The code compiles cleanly. The link command is:
> link -debug -nologo -machine:IX86
> -verbose:lib -subsystem:console mymain.obj wsock32.lib advapi32.lib
> msvcrt.lib oldnames.lib kernel32.lib
> winmm.lib [snip large list of
> dependencies] D:\src\lib\app_main.obj
> -out:mymain.exe
The errors that I'm getting are:
> app_main.obj : error LNK2019:
> unresolved external symbol
> "_\_declspec(dllimport) public: void
> __thiscall std::locale::facet::_Register(void)"
> (__imp_?_Register@facet@locale@std@@QAEXXZ)
> referenced in function "class
> std::ctype<char> const & __cdecl
> std::use_facet<class std::ctype<char>
> \>(class std::locale const &)" (??$use_facet@V?$ctype@D@std@@@std@@YAABV?$ctype@D@0@ABVlocale@0@@Z)
> app_main.obj : error LNK2019:
> unresolved external symbol
> "__declspec(dllimport) public: static
> unsigned int __cdecl
> std::ctype<char>::_Getcat(class
> std::locale::facet const * *)"
> (__imp_?_Getcat@?$ctype@D@std@@SAIPAPBVfacet@locale@2@@Z)
> referenced in function "class
> std::ctype<char> const & __cdecl
> std::use_facet<class std::ctype<char>
> \>(class std::locale const &)" (??$use_facet@V?$ctype@D@std@@@std@@YAABV?$ctype@D@0@ABVlocale@0@@Z)
> app_main.obj : error LNK2019:
> unresolved external symbol
> "__declspec(dllimport) public: static
> unsigned int __cdecl
> std::ctype<unsigned
> short>::_Getcat(class
> std::locale::facet const * *)"
> (__imp_?_Getcat@?$ctype@G@std@@SAIPAPBVfacet@locale@2@@Z)
> referenced in function "class
> std::ctype<unsigned short> const &
> __cdecl std::use_facet<class std::ctype<unsigned short> >(class
> std::locale const &)"
> (??$use_facet@V?$ctype@G@std@@@std@@YAABV?$ctype@G@0@ABVlocale@0@@Z)
> mymain.exe : fatal error LNK1120: 3
> unresolved externals
Notice that these errors are coming from the legacy code, not my code - app_main.obj is part of the legacy code, while mymain.c is my source. I've done some searching around, and what that I've read says that this type of error is caused by a mismatch with the -MD switch between my code and the library that I'm linking to. Since I'm dealing with legacy code, a solution has to come from my environment. It's been a long time since I've done C++ work, and even longer since I've used Visual Studio, so I'm hoping that this is just some ignorance on my part. Any ideas on how to get these resolved? | c++ | null | null | null | null | null | open | C++ linker unresolved external symbols
===
I'm building an application against some legacy, third party libraries, and having problems with the linking stage. I'm trying to compile with Visual Studio 9. My compile command is:
> cl -DNT40 -DPOMDLL -DCRTAPI1=_cdecl
> -DCRTAPI2=cdecl -D_WIN32 -DWIN32 -DWIN32_LEAN_AND_MEAN -DWNT -DBYPASS_FLEX -D_INTEL=1 -DIPLIB=none -I. -I"D:\src\include" -I"C:\Program Files\Microsoft Visual Studio
> 9.0\VC\include" -c -nologo -EHsc -W1 -Ox -Oy- -MD mymain.c
The code compiles cleanly. The link command is:
> link -debug -nologo -machine:IX86
> -verbose:lib -subsystem:console mymain.obj wsock32.lib advapi32.lib
> msvcrt.lib oldnames.lib kernel32.lib
> winmm.lib [snip large list of
> dependencies] D:\src\lib\app_main.obj
> -out:mymain.exe
The errors that I'm getting are:
> app_main.obj : error LNK2019:
> unresolved external symbol
> "_\_declspec(dllimport) public: void
> __thiscall std::locale::facet::_Register(void)"
> (__imp_?_Register@facet@locale@std@@QAEXXZ)
> referenced in function "class
> std::ctype<char> const & __cdecl
> std::use_facet<class std::ctype<char>
> \>(class std::locale const &)" (??$use_facet@V?$ctype@D@std@@@std@@YAABV?$ctype@D@0@ABVlocale@0@@Z)
> app_main.obj : error LNK2019:
> unresolved external symbol
> "__declspec(dllimport) public: static
> unsigned int __cdecl
> std::ctype<char>::_Getcat(class
> std::locale::facet const * *)"
> (__imp_?_Getcat@?$ctype@D@std@@SAIPAPBVfacet@locale@2@@Z)
> referenced in function "class
> std::ctype<char> const & __cdecl
> std::use_facet<class std::ctype<char>
> \>(class std::locale const &)" (??$use_facet@V?$ctype@D@std@@@std@@YAABV?$ctype@D@0@ABVlocale@0@@Z)
> app_main.obj : error LNK2019:
> unresolved external symbol
> "__declspec(dllimport) public: static
> unsigned int __cdecl
> std::ctype<unsigned
> short>::_Getcat(class
> std::locale::facet const * *)"
> (__imp_?_Getcat@?$ctype@G@std@@SAIPAPBVfacet@locale@2@@Z)
> referenced in function "class
> std::ctype<unsigned short> const &
> __cdecl std::use_facet<class std::ctype<unsigned short> >(class
> std::locale const &)"
> (??$use_facet@V?$ctype@G@std@@@std@@YAABV?$ctype@G@0@ABVlocale@0@@Z)
> mymain.exe : fatal error LNK1120: 3
> unresolved externals
Notice that these errors are coming from the legacy code, not my code - app_main.obj is part of the legacy code, while mymain.c is my source. I've done some searching around, and what that I've read says that this type of error is caused by a mismatch with the -MD switch between my code and the library that I'm linking to. Since I'm dealing with legacy code, a solution has to come from my environment. It's been a long time since I've done C++ work, and even longer since I've used Visual Studio, so I'm hoping that this is just some ignorance on my part. Any ideas on how to get these resolved? | 0 |
23,216 | 08/22/2008 19:10:51 | 726 | 08/08/2008 12:04:53 | 263 | 15 | Summary of differences in Regular Expression syntax for various tools and languages? | I can never remember the differences in regular expression syntax used by tools like `grep` and `awk`, or languages like Python and PHP. Generally, Perl has the most expansive syntax, but I'm often hamstrung by the limitations of even `egrep` ("extended" `grep`).
Anyone know of a site that lists the differences in a concise and easy-to-read fashion? | regex | grep | null | null | null | null | open | Summary of differences in Regular Expression syntax for various tools and languages?
===
I can never remember the differences in regular expression syntax used by tools like `grep` and `awk`, or languages like Python and PHP. Generally, Perl has the most expansive syntax, but I'm often hamstrung by the limitations of even `egrep` ("extended" `grep`).
Anyone know of a site that lists the differences in a concise and easy-to-read fashion? | 0 |
23,217 | 08/22/2008 19:10:56 | 1,680 | 08/17/2008 23:46:58 | 13 | 0 | What's the purpose (if any) of "javascript:" in event handler tags? | I'm a self-proclaimed javascript dunce. I can usually "make it work" when needed, but I'm sure I end up doing things less than optimally 99% of the time. I hope to pick a javascript lirbrary/framework and stick with it (i.e. jQuery), but that's not the topic of this question.
This is probably due in large part to the fact that anything I know about javascript has come from right-click -> "view source" and quick google searches. In doing this I've sometimes seen the "javascript:" prefix appended to the front of event handler attributes in HTML element tags. What's the purpose of this prefix? Basically, is there any appreciable difference between:
onchange="javascript: myFunction(this)"
and
onchange="myFunction(this)"
?
| javascript | null | null | null | null | null | open | What's the purpose (if any) of "javascript:" in event handler tags?
===
I'm a self-proclaimed javascript dunce. I can usually "make it work" when needed, but I'm sure I end up doing things less than optimally 99% of the time. I hope to pick a javascript lirbrary/framework and stick with it (i.e. jQuery), but that's not the topic of this question.
This is probably due in large part to the fact that anything I know about javascript has come from right-click -> "view source" and quick google searches. In doing this I've sometimes seen the "javascript:" prefix appended to the front of event handler attributes in HTML element tags. What's the purpose of this prefix? Basically, is there any appreciable difference between:
onchange="javascript: myFunction(this)"
and
onchange="myFunction(this)"
?
| 0 |
23,228 | 08/22/2008 19:15:08 | 2,361 | 08/21/2008 20:41:09 | 41 | 5 | Why is String.Format static? | Compare
String.Format("Hello {0}", "World");
with
"Hello {0}".Format("World");
Why .Net designers choose static method over instance method? What do you think? | .net | string | design | null | null | null | open | Why is String.Format static?
===
Compare
String.Format("Hello {0}", "World");
with
"Hello {0}".Format("World");
Why .Net designers choose static method over instance method? What do you think? | 0 |
23,250 | 08/22/2008 19:21:25 | 2,016 | 08/19/2008 19:49:14 | 84 | 9 | When do you use the "this" keyword? | This may be a silly question, but I was curious how other people use the **this** keyword. I tend to use it in constructors but may also use it throughout the class in other methods. Some examples:
In Constructor:
public Light(Vector v)
{
this.dir = new Vector(v);
}
Elsewhere
public void SomeMethod()
{
Vector vec = new Vector();
double d = (vec * vec) - (this.radius * this.radius);
}
| c# | c++ | codingstandards | null | null | 08/30/2011 20:39:27 | not constructive | When do you use the "this" keyword?
===
This may be a silly question, but I was curious how other people use the **this** keyword. I tend to use it in constructors but may also use it throughout the class in other methods. Some examples:
In Constructor:
public Light(Vector v)
{
this.dir = new Vector(v);
}
Elsewhere
public void SomeMethod()
{
Vector vec = new Vector();
double d = (vec * vec) - (this.radius * this.radius);
}
| 4 |
23,270 | 08/22/2008 19:28:00 | 466 | 08/06/2008 00:59:59 | 73 | 2 | How IE7 determines a site's Security Zone | Does anyone know how IE7 determines what Security Zone to use for a site? I see the basics for IE6 [here](http://www.microsoft.com/technet/prodtechnol/ie/reskit/6/default.mspx?mfr=true), but I can't find the equivalent for IE7. | internet-explorer-7 | security-zone | sercurity | null | null | null | open | How IE7 determines a site's Security Zone
===
Does anyone know how IE7 determines what Security Zone to use for a site? I see the basics for IE6 [here](http://www.microsoft.com/technet/prodtechnol/ie/reskit/6/default.mspx?mfr=true), but I can't find the equivalent for IE7. | 0 |
23,277 | 08/22/2008 19:29:45 | 572 | 08/06/2008 20:56:54 | 1,484 | 128 | What is the difference between procedural programming and functional programming? | I've read the Wikipedia articles for both [procedural programming][1] and [functional programming][2], but I'm still slightly confused. Could someone boil it down to the core?
[1]: http://en.wikipedia.org/wiki/Procedural_programming
[2]: http://en.wikipedia.org/wiki/Functional_programming | functional-programming | procedural-programming | programming-paradigms | null | null | null | open | What is the difference between procedural programming and functional programming?
===
I've read the Wikipedia articles for both [procedural programming][1] and [functional programming][2], but I'm still slightly confused. Could someone boil it down to the core?
[1]: http://en.wikipedia.org/wiki/Procedural_programming
[2]: http://en.wikipedia.org/wiki/Functional_programming | 0 |
23,287 | 08/22/2008 19:35:50 | 1,951 | 08/19/2008 15:06:09 | 597 | 42 | Prime factors | What is the best approach to calculating the largest prime factor of a number?
I'm thinking the most efficient would be the following:
1. Find lowest prime number that divides cleanly
2. Check if result of division is prime
3. If not, find next lowest
4. Go to 2.
I'm basing this assumption on it being easier to calculate the small prime factors. Is this about right? What other approaches should I look into? | language-agnostic | maths | primes | null | null | null | open | Prime factors
===
What is the best approach to calculating the largest prime factor of a number?
I'm thinking the most efficient would be the following:
1. Find lowest prime number that divides cleanly
2. Check if result of division is prime
3. If not, find next lowest
4. Go to 2.
I'm basing this assumption on it being easier to calculate the small prime factors. Is this about right? What other approaches should I look into? | 0 |
23,288 | 08/22/2008 19:36:06 | 1,287 | 08/14/2008 12:06:53 | 1 | 2 | Free ASP.Net and/or CSS Themes | Where can I get some decent looking free ASP.Net or CSS themes? | free | asp.net-themes | css-themes | null | null | null | open | Free ASP.Net and/or CSS Themes
===
Where can I get some decent looking free ASP.Net or CSS themes? | 0 |
23,310 | 08/22/2008 19:49:05 | 453,046 | 08/22/2008 10:55:53 | 8 | 2 | Source Control Beginners | What would be the best version control system to learn as a beginner to source control? | sourcecontrol | null | null | null | null | null | open | Source Control Beginners
===
What would be the best version control system to learn as a beginner to source control? | 0 |
23,319 | 08/22/2008 19:51:54 | 572 | 08/06/2008 20:56:54 | 1,484 | 129 | Should you bug the code used in code reviews? | After reading [this blog post][1], I'm thinking that it might be a good idea...occassionally.
[1]: http://coffeeghost.net/2008/08/22/bugging-your-code-reviews/ | code-review | null | null | null | null | null | open | Should you bug the code used in code reviews?
===
After reading [this blog post][1], I'm thinking that it might be a good idea...occassionally.
[1]: http://coffeeghost.net/2008/08/22/bugging-your-code-reviews/ | 0 |
23,370 | 08/22/2008 20:16:42 | 645 | 08/07/2008 12:58:41 | 101 | 10 | Notification of drop in drag-drop in Windows | My C# program has a list of files that can be dragged from it and dropped into another program. My requirements are that the file be copied to a different directory first.
So, can I be notified of the drop operation so that I can only copy the file if operation succeeds? I'd rather wait till I know it needs to be copied before actually performing the copy.
Also, is it possible to know what program the drop operation is occurring in? Ideally I'd like to alter the filepath based on who or what its being dropped.
The solution to this can be in any .NET language or C/C++ with COM. | c# | c++ | windows | winapi | com | null | open | Notification of drop in drag-drop in Windows
===
My C# program has a list of files that can be dragged from it and dropped into another program. My requirements are that the file be copied to a different directory first.
So, can I be notified of the drop operation so that I can only copy the file if operation succeeds? I'd rather wait till I know it needs to be copied before actually performing the copy.
Also, is it possible to know what program the drop operation is occurring in? Ideally I'd like to alter the filepath based on who or what its being dropped.
The solution to this can be in any .NET language or C/C++ with COM. | 0 |
23,372 | 08/22/2008 20:17:27 | 706 | 08/08/2008 06:06:11 | 6 | 2 | Painting javax.microedition.lcdui.Graphics on LWUIT Component | What would be the best method for getting a custom element (that is using J2ME native Graphics) painted on LWUIT elements?
The custom element is an implementation from mapping library, that paints it's content (for example Google map) to Graphics object. How would it be possible to paint the result directly on LWUIT elements (at the moment I am trying to paint it on a Component).
Is the only way to write a wrapper in LWUIT package, that would expose the internal implementation of it?
/JaanusSiim | java-me | lwuit | null | null | null | null | open | Painting javax.microedition.lcdui.Graphics on LWUIT Component
===
What would be the best method for getting a custom element (that is using J2ME native Graphics) painted on LWUIT elements?
The custom element is an implementation from mapping library, that paints it's content (for example Google map) to Graphics object. How would it be possible to paint the result directly on LWUIT elements (at the moment I am trying to paint it on a Component).
Is the only way to write a wrapper in LWUIT package, that would expose the internal implementation of it?
/JaanusSiim | 0 |
23,373 | 08/22/2008 20:18:12 | 1,409 | 08/15/2008 13:18:51 | 260 | 21 | Create an EXE from a SWF using Flex 3 without requiring AIR? | I have a simple little test app written in Flex 3 (MXML and some AS3). I can compile it to a SWF just fine, but I'd like to make it into an EXE so I can give it to a couple of my coworkers who might find it useful.
With Flash 8, I could just target an EXE instead of a SWF and it would wrap the SWF in a projector, and everything worked fine. Is there an equivalent to that using the Flex 3 SDK that doesn't end up requiring AIR?
Note: I don't have Flex Builder, I'm just using the free Flex 3 SDK. | flex | flash | actionscript-3 | swf | null | null | open | Create an EXE from a SWF using Flex 3 without requiring AIR?
===
I have a simple little test app written in Flex 3 (MXML and some AS3). I can compile it to a SWF just fine, but I'd like to make it into an EXE so I can give it to a couple of my coworkers who might find it useful.
With Flash 8, I could just target an EXE instead of a SWF and it would wrap the SWF in a projector, and everything worked fine. Is there an equivalent to that using the Flex 3 SDK that doesn't end up requiring AIR?
Note: I don't have Flex Builder, I'm just using the free Flex 3 SDK. | 0 |
23,375 | 08/22/2008 20:20:50 | 479 | 08/06/2008 08:37:10 | 159 | 11 | Anyone programming in Visual Foxpro out there? | Is anyone programming in Visual Foxpro out there?
I'm stuck supporting a legacy foxpro system. Wanted to know who else is out there is using Foxpro. | foxpro | null | null | null | null | 09/25/2011 05:35:19 | not constructive | Anyone programming in Visual Foxpro out there?
===
Is anyone programming in Visual Foxpro out there?
I'm stuck supporting a legacy foxpro system. Wanted to know who else is out there is using Foxpro. | 4 |
23,376 | 08/22/2008 20:21:39 | 2,188 | 08/20/2008 20:30:54 | 81 | 5 | Best/fastest compression format for (sqlserver) databases? | Has anyone found a good compression format for MS Sqlserver databases? If so, what do you use and are you pleased with how it performs?
My company frequently will compress a database snapshot from one of our clients and download it so we have a local copy for testing and dev purposes. We tried zip in the past, but once the database files crossed the 4Gb boundary we had to use rar (zip is 32-bit only). The problem is rar takes a lot of time to compress, and we don't know if it gives us the best compression ratio either.
This isn't a question about the compression utility so much as the compression format. We use WinRar, but are considering 7zip, which supports a number of formats.
| sql-server | mssql | compression | zip | null | null | open | Best/fastest compression format for (sqlserver) databases?
===
Has anyone found a good compression format for MS Sqlserver databases? If so, what do you use and are you pleased with how it performs?
My company frequently will compress a database snapshot from one of our clients and download it so we have a local copy for testing and dev purposes. We tried zip in the past, but once the database files crossed the 4Gb boundary we had to use rar (zip is 32-bit only). The problem is rar takes a lot of time to compress, and we don't know if it gives us the best compression ratio either.
This isn't a question about the compression utility so much as the compression format. We use WinRar, but are considering 7zip, which supports a number of formats.
| 0 |
23,382 | 08/22/2008 20:22:47 | 2,141 | 08/20/2008 14:38:34 | 88 | 2 | Scheduled Tasks for Web Applications | What are the different approaches for creating scheduled tasks for web applications, with or without a separate web/desktop application? | common-tasks | null | null | null | null | null | open | Scheduled Tasks for Web Applications
===
What are the different approaches for creating scheduled tasks for web applications, with or without a separate web/desktop application? | 0 |
23,388 | 08/22/2008 20:25:03 | 2,430 | 08/22/2008 08:58:27 | 1 | 0 | What do you do when you have to give a time estimate on fixing a bug, when initial investigation/debugging proves inconclusive? | Your project manager says you must fix this bug, and asks you how long it will take.
You spend some time tracing through your code, and inspecting it for defects, and don't manage to nail down any causes. Your project manager insists on a number from you, and won't take unknown for an answer. So what would you have said?
| estimation | null | null | null | null | null | open | What do you do when you have to give a time estimate on fixing a bug, when initial investigation/debugging proves inconclusive?
===
Your project manager says you must fix this bug, and asks you how long it will take.
You spend some time tracing through your code, and inspecting it for defects, and don't manage to nail down any causes. Your project manager insists on a number from you, and won't take unknown for an answer. So what would you have said?
| 0 |
23,391 | 08/22/2008 20:25:46 | 2,469 | 08/22/2008 12:41:47 | 1 | 1 | Increases Skills what should I learn? |
My path to a 'fulltime'- developer stated as a analyst using VBA with Excel, Access, and then onto C#. I went to college part time once I discovered I had a passion for coding not business.
I do about most of my coding in C#, but being an ASP.NET developer I also write in HTML, JavaScript, SQL etc. . . the usual suspects.
I like to keep moving forward find the edge that will get me to the next level, the next job, and of course more money. Most importantly I just want to learning something new and challenge me.
I have spent time recently learning LINQ, but was wondering what should I learn next? Something on the .NET Framework or a new language technology?
| c# | .net | experience | personaldevelopment | null | null | open | Increases Skills what should I learn?
===
My path to a 'fulltime'- developer stated as a analyst using VBA with Excel, Access, and then onto C#. I went to college part time once I discovered I had a passion for coding not business.
I do about most of my coding in C#, but being an ASP.NET developer I also write in HTML, JavaScript, SQL etc. . . the usual suspects.
I like to keep moving forward find the edge that will get me to the next level, the next job, and of course more money. Most importantly I just want to learning something new and challenge me.
I have spent time recently learning LINQ, but was wondering what should I learn next? Something on the .NET Framework or a new language technology?
| 0 |
23,397 | 08/22/2008 20:27:46 | 2,555 | 08/22/2008 20:27:46 | 1 | 0 | What's the best way to duplicate fork() in windows? | How do I implement some logic that will allow me to duplicate the functionality on windows that I have on linux with fork() using python?
| python | fork | windows | process | subprocess | null | open | What's the best way to duplicate fork() in windows?
===
How do I implement some logic that will allow me to duplicate the functionality on windows that I have on linux with fork() using python?
| 0 |
23,399 | 08/22/2008 20:28:38 | 1,470 | 08/15/2008 18:09:52 | 35 | 2 | is it better to structure an SQL table to have a match, or return no result | I've got an interesting design question. I'm designing the security side of our project, to allow us to have different versions of the program for different costs and also to allow Manager-type users to grant or deny access to parts of the program.
I'm using a simple Allow or Deny option for each 'Resource' or screen.
We're going to have a large number of resources, and the user will be able to set up many different groups to put users in to control access.
I've got two approaches to this in mind, and was curious which would be better for the SQL server
**Option A**
The presence of an entry in the table means access is allowed. This will not need a column in the database to store information. If no results are returned, then access is denied.
I think this will mean a smaller table, but would queries search the whole table to determine there is no match?
**Option B**
A bit column is included in the database that controls the Allow/Deny. This will mean there is always a result to be found, and makes for a larger table.
Thoughts? | sql | query | optimization | null | null | null | open | is it better to structure an SQL table to have a match, or return no result
===
I've got an interesting design question. I'm designing the security side of our project, to allow us to have different versions of the program for different costs and also to allow Manager-type users to grant or deny access to parts of the program.
I'm using a simple Allow or Deny option for each 'Resource' or screen.
We're going to have a large number of resources, and the user will be able to set up many different groups to put users in to control access.
I've got two approaches to this in mind, and was curious which would be better for the SQL server
**Option A**
The presence of an entry in the table means access is allowed. This will not need a column in the database to store information. If no results are returned, then access is denied.
I think this will mean a smaller table, but would queries search the whole table to determine there is no match?
**Option B**
A bit column is included in the database that controls the Allow/Deny. This will mean there is always a result to be found, and makes for a larger table.
Thoughts? | 0 |
23,402 | 08/22/2008 20:30:04 | 2,554 | 08/22/2008 20:23:30 | 1 | 1 | Are there any alternatives to Gigaspaces? | Anything thats as good and as stable and as feature-rich as gigaspaces? | java | java-ee | gigaspaces | null | null | null | open | Are there any alternatives to Gigaspaces?
===
Anything thats as good and as stable and as feature-rich as gigaspaces? | 0 |
23,439 | 08/22/2008 20:44:55 | 1,945 | 08/19/2008 14:49:22 | 1 | 1 | FLVPlayback component memory issues | My website is entirely flash based, it moves around a 3D model which was given to me as chunks of video that I've converted to FLV files. I'm using the FLVPlayback component to control the video inside of my program. While running memory checks using System.totalMemory I've noticed that whenever a video is loaded, it will eat up a chunk of memory and even when I remove all the event listeners from it(they are all weakly referenced), remove the component from its parent, stop the video and null the component instance, it still will not give that memory back.
This has been bothering me since I started working on this project because of the huge amount of video a user can potentially instantiate and load. Currently every video is loaded into a new FLVPlayback instance whenever it is required, but I have read that perhaps the best way to go about this problem is to simply have a global FLVPlayback instance and just reload the new video into the old instance, that way there would only be one FLVPlayback component in the application's memory.
Has anyone else run into this problem as well? Have you found a better solution than using a global instance that you just re-use for every new video? | flash | actionscript-3 | memory | video | swf | null | open | FLVPlayback component memory issues
===
My website is entirely flash based, it moves around a 3D model which was given to me as chunks of video that I've converted to FLV files. I'm using the FLVPlayback component to control the video inside of my program. While running memory checks using System.totalMemory I've noticed that whenever a video is loaded, it will eat up a chunk of memory and even when I remove all the event listeners from it(they are all weakly referenced), remove the component from its parent, stop the video and null the component instance, it still will not give that memory back.
This has been bothering me since I started working on this project because of the huge amount of video a user can potentially instantiate and load. Currently every video is loaded into a new FLVPlayback instance whenever it is required, but I have read that perhaps the best way to go about this problem is to simply have a global FLVPlayback instance and just reload the new video into the old instance, that way there would only be one FLVPlayback component in the application's memory.
Has anyone else run into this problem as well? Have you found a better solution than using a global instance that you just re-use for every new video? | 0 |
23,445 | 08/22/2008 20:47:16 | 2,551 | 08/22/2008 19:57:27 | 1 | 0 | How Best to Compare Two Collections in Java and Act on Them? | I have two collections of the same object, `Collection<Foo> oldSet` and `Collection<Foo> newSet`. The required logic is as follow:
- if `foo` is in(*) `oldSet` but not `newSet`, call `doRemove(foo)`
- else if `foo` is not in `oldSet` but in `newSet`, call `doAdd(foo)`
- else if `foo` is in both collections but modified, call `doUpdate(oldFoo, newFoo)`
- else if `!foo.activated && foo.startDate >= now`, call `doStart(foo)`
- else if `foo.activated && foo.endDate <= now`, call `doEnd(foo)`
(*) "in" means the unique identifier matches, not necessarily the content.
The current (legacy) code does many comparisons to figure out `removeSet`, `addSet`, `updateSet`, `startSet` and `endSet`, and then loop to act on each item.
The code is quite messy (partly because I have left out some spaghetti logic already) and I am trying to refactor it. Some more background info:
- As far as I know, the `oldSet` and `newSet` are actually backed by `ArrayList`
- Each set contains less than 100 items, most likely max out at 20
- This code is called frequently (measured in millions/day), although the sets seldom differ
My questions:
- If I convert `oldSet` and `newSet` into `HashMap<Foo>` (order is not of concern here), with the IDs as keys, would it made the code easier to read and easier to compare? How much of time & memory performance is loss on the conversion?
- Would iterating the two sets and perform the appropriate operation be more efficient and concise?
| java | collections | null | null | null | null | open | How Best to Compare Two Collections in Java and Act on Them?
===
I have two collections of the same object, `Collection<Foo> oldSet` and `Collection<Foo> newSet`. The required logic is as follow:
- if `foo` is in(*) `oldSet` but not `newSet`, call `doRemove(foo)`
- else if `foo` is not in `oldSet` but in `newSet`, call `doAdd(foo)`
- else if `foo` is in both collections but modified, call `doUpdate(oldFoo, newFoo)`
- else if `!foo.activated && foo.startDate >= now`, call `doStart(foo)`
- else if `foo.activated && foo.endDate <= now`, call `doEnd(foo)`
(*) "in" means the unique identifier matches, not necessarily the content.
The current (legacy) code does many comparisons to figure out `removeSet`, `addSet`, `updateSet`, `startSet` and `endSet`, and then loop to act on each item.
The code is quite messy (partly because I have left out some spaghetti logic already) and I am trying to refactor it. Some more background info:
- As far as I know, the `oldSet` and `newSet` are actually backed by `ArrayList`
- Each set contains less than 100 items, most likely max out at 20
- This code is called frequently (measured in millions/day), although the sets seldom differ
My questions:
- If I convert `oldSet` and `newSet` into `HashMap<Foo>` (order is not of concern here), with the IDs as keys, would it made the code easier to read and easier to compare? How much of time & memory performance is loss on the conversion?
- Would iterating the two sets and perform the appropriate operation be more efficient and concise?
| 0 |
23,446 | 08/22/2008 20:48:03 | 443 | 08/05/2008 19:27:20 | 95 | 1 | How do I format Visual Studio Test results file (.trx) into a more readable format? | Have just started using Visual Studio Professional's built-in unit testing features, which as I understand, uses MS Test to run the tests.
The .trx file that the tests produce is xml, but was wondering if there was an easy way to convert this file into a more "manager-friendly" format?
My ultimate goal is to be able to automate the unit-testing and be able to produce a nice looking document that shows the tests run and how 100% of them passed :) | visual-studio-2008 | unittesting | null | null | null | null | open | How do I format Visual Studio Test results file (.trx) into a more readable format?
===
Have just started using Visual Studio Professional's built-in unit testing features, which as I understand, uses MS Test to run the tests.
The .trx file that the tests produce is xml, but was wondering if there was an easy way to convert this file into a more "manager-friendly" format?
My ultimate goal is to be able to automate the unit-testing and be able to produce a nice looking document that shows the tests run and how 100% of them passed :) | 0 |
23,448 | 08/22/2008 20:48:14 | 2,015 | 08/19/2008 19:42:43 | 28 | 5 | DSL in Finance | does anyone here have ever worked with [DSLs (Domain Specific Languages)](http://www.google.com.br/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FDomain-specific_programming_language&ei=QyWvSIXcC4foebjSlHs&usg=AFQjCNFsZOnJm-AGmi5sxai8YI-0Al6wfA&sig2=6nX5EkUmNkEwiSKAkUeyZQ) in the finance domain ? I am planning to introduce some kind of DSL support in the application i'm working on and would like to share some ideas.
I am in a stage of identifying which are the most stable domain elements and selecting the feature which would be better implemented with the dsl. I haven't yet defined the syntax for this first feature.
I appreciate any advices
Gustavo | dsl | finance | null | null | null | null | open | DSL in Finance
===
does anyone here have ever worked with [DSLs (Domain Specific Languages)](http://www.google.com.br/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FDomain-specific_programming_language&ei=QyWvSIXcC4foebjSlHs&usg=AFQjCNFsZOnJm-AGmi5sxai8YI-0Al6wfA&sig2=6nX5EkUmNkEwiSKAkUeyZQ) in the finance domain ? I am planning to introduce some kind of DSL support in the application i'm working on and would like to share some ideas.
I am in a stage of identifying which are the most stable domain elements and selecting the feature which would be better implemented with the dsl. I haven't yet defined the syntax for this first feature.
I appreciate any advices
Gustavo | 0 |
23,472 | 08/22/2008 20:58:21 | 672 | 08/07/2008 16:18:07 | 73 | 9 | Resources for an Oracle beginner | Can anyone recommend some good resources that highlight the differences between Oracle and the AS/400 database?
I am trying to help someone with a lot of AS/400 experience implement an Oracle installation, and they need some guidance.
A book or online resource would be ideal. | oracle | ibm-midrange | null | null | null | null | open | Resources for an Oracle beginner
===
Can anyone recommend some good resources that highlight the differences between Oracle and the AS/400 database?
I am trying to help someone with a lot of AS/400 experience implement an Oracle installation, and they need some guidance.
A book or online resource would be ideal. | 0 |
23,490 | 08/22/2008 21:08:32 | 2,213 | 08/20/2008 22:31:55 | 141 | 11 | What is your best list of 'must have' developemnt tools? | I recently burned up my development laptop (it literally emitted smoke from the vents). After pulling the hd I was unable to get it to spin with a USB device attached to a home tower. Since I was on a deadline I had to rush and buy a new laptop (Turion 64 x2) running Vista.
After I installed my required applications VS2005/2008, Sql Server editions client tools, Adobe CS3, and source control clients: **I am wondering what list of “must haves” developer tools that are out there these days?** I’m a big fan of Fiddler and LinqPad, but I am wondering what I am missing? | developer-machine | windows-vista | softwaretools | geek-fun | null | 03/14/2012 12:17:23 | not constructive | What is your best list of 'must have' developemnt tools?
===
I recently burned up my development laptop (it literally emitted smoke from the vents). After pulling the hd I was unable to get it to spin with a USB device attached to a home tower. Since I was on a deadline I had to rush and buy a new laptop (Turion 64 x2) running Vista.
After I installed my required applications VS2005/2008, Sql Server editions client tools, Adobe CS3, and source control clients: **I am wondering what list of “must haves” developer tools that are out there these days?** I’m a big fan of Fiddler and LinqPad, but I am wondering what I am missing? | 4 |
23,503 | 08/22/2008 21:12:51 | 698 | 08/07/2008 23:31:56 | 23 | 5 | CruiseControl.NET and NAnt | I have a CC.NET project configured to call a common NAnt build file, which does some stuff, and then calls a child NAnt build file. The child build file name is specified by CC.NET to the command build file using a property.
The hurdle that I am trying to get over is that the common build file log gets overwritten by the child build file log, so I don't get the common build log in the CC.NET build log.
Anyone have any ideas on how to fix this?
I thought about changing the child build's log, but reading up on the NAnt <nant> task doesn't allow me to change the child's output log. | cruisecontrol.net | nant | null | null | null | null | open | CruiseControl.NET and NAnt
===
I have a CC.NET project configured to call a common NAnt build file, which does some stuff, and then calls a child NAnt build file. The child build file name is specified by CC.NET to the command build file using a property.
The hurdle that I am trying to get over is that the common build file log gets overwritten by the child build file log, so I don't get the common build log in the CC.NET build log.
Anyone have any ideas on how to fix this?
I thought about changing the child build's log, but reading up on the NAnt <nant> task doesn't allow me to change the child's output log. | 0 |
23,511 | 08/22/2008 21:16:45 | 1,954 | 08/19/2008 15:16:08 | 168 | 9 | Algorithm behind MD5Crypt | I'm working with Subversion based on Windows and would like to write an easy utility in .NET for working with the Apache password file. I understand that it uses a function referred to as MD5Crypt, but I can't seem to find a description of the algorithm beyond that at some point it uses MD5 to create a hash.
Can someone describe the MD5Crypt algorithm and password line format? | .net | md5 | crypt | apache | subversion | null | open | Algorithm behind MD5Crypt
===
I'm working with Subversion based on Windows and would like to write an easy utility in .NET for working with the Apache password file. I understand that it uses a function referred to as MD5Crypt, but I can't seem to find a description of the algorithm beyond that at some point it uses MD5 to create a hash.
Can someone describe the MD5Crypt algorithm and password line format? | 0 |
23,539 | 08/22/2008 21:24:37 | 2,312 | 08/21/2008 15:19:59 | 11 | 1 | Silverlight programatic access to Sony RZ30N Video Feed | I would like to bypass the web-server functionality of a **Sony SNC-RZ30N** network attached web cam and display the video feed in a Silverlight application.
I can't seem to find any examples of interfacing with the camera programatically.
Any leads would be much appreciated. Thx. | silverlight | video | webcam | streaming | null | null | open | Silverlight programatic access to Sony RZ30N Video Feed
===
I would like to bypass the web-server functionality of a **Sony SNC-RZ30N** network attached web cam and display the video feed in a Silverlight application.
I can't seem to find any examples of interfacing with the camera programatically.
Any leads would be much appreciated. Thx. | 0 |
23,564 | 08/22/2008 21:36:55 | 1,473,493 | 08/18/2008 20:04:30 | 21 | 1 | What WCF best practices do you follow in object model design? | I've noticed that a handful of WCF applications choose to "break" their objects apart; that is, a project might have a DataObjects assembly that contains DataContracts/Members in addition to a meaningful class library that performs business logic.
Is this an unnecessary level of abstraction? Is there any inherent evil associated with going through and tagging existing class libraries with DataContract information?
Also, as an aside, how do you handle error conditions? Are thrown exceptions from the service (InvalidOperation, ArgumentException and so on) generally accepted, or is there usually a level around that?
Thanks! | wcf | bestpractices | null | null | null | null | open | What WCF best practices do you follow in object model design?
===
I've noticed that a handful of WCF applications choose to "break" their objects apart; that is, a project might have a DataObjects assembly that contains DataContracts/Members in addition to a meaningful class library that performs business logic.
Is this an unnecessary level of abstraction? Is there any inherent evil associated with going through and tagging existing class libraries with DataContract information?
Also, as an aside, how do you handle error conditions? Are thrown exceptions from the service (InvalidOperation, ArgumentException and so on) generally accepted, or is there usually a level around that?
Thanks! | 0 |
23,566 | 08/22/2008 21:37:35 | 1,463 | 08/15/2008 17:26:44 | 235 | 13 | What does an IISReset do? | On IIS 6, what does an IIS Reset do?
Please compare to recycling an app pool and stopping and starting an ASP.NET web site.
If you replace a DLL or edit/replace the web.config on an ASP.NET web site is that the same as stopping and starting that web site? | asp.net | iis6 | null | null | null | null | open | What does an IISReset do?
===
On IIS 6, what does an IIS Reset do?
Please compare to recycling an app pool and stopping and starting an ASP.NET web site.
If you replace a DLL or edit/replace the web.config on an ASP.NET web site is that the same as stopping and starting that web site? | 0 |
23,569 | 08/22/2008 21:39:41 | 2,141 | 08/20/2008 14:38:34 | 98 | 2 | Calculating Distance Between 2 Cities | How do you calculate the distance between 2 cities? | calculation | algorithm | null | null | null | null | open | Calculating Distance Between 2 Cities
===
How do you calculate the distance between 2 cities? | 0 |
23,572 | 08/22/2008 21:40:40 | 2,141 | 08/20/2008 14:38:34 | 98 | 2 | Latitude Longitude Database | Where can one obtain an open source or licensable database of latitudes and longitudes for various cities? | untagged | null | null | null | null | null | open | Latitude Longitude Database
===
Where can one obtain an open source or licensable database of latitudes and longitudes for various cities? | 0 |
23,578 | 08/22/2008 21:41:58 | 2,374 | 08/21/2008 22:14:30 | 63 | 7 | What are the advantages and disadvantages of using the GAC? | And on top of that, are there cases where one has to use the global assembly cache or where one cannot use it? | .net | null | null | null | null | null | open | What are the advantages and disadvantages of using the GAC?
===
And on top of that, are there cases where one has to use the global assembly cache or where one cannot use it? | 0 |
23,592 | 08/22/2008 21:46:03 | 1,311 | 08/14/2008 13:43:09 | 466 | 42 | How do I search content, within audio files/streams? | I have always wondered how many different search techniques existed, for searching text, for searching images and even for videos.
However, I have never come across a solution that searched for content within audio files. <br>
**For example:** Let us assume that I have about 200 podcasts downloaded to my PC in the form of mp3, wav and ogg files. They are all named generically say podcast1.mp3, podcast2.mp3, etc. So, it is not possible to know what the content is, without actually hearing them. Lets say that, I am interested in finding out, which the podcasts talk about 'game programming'. I want the results to be shown as:
* Podcast1.mp3 - 3 result(s) at time index(es) - 0:16:21, 0:43:45, 1:12:31
* Podcast21.ogg - 1 result(s) at time index(es) - 0:12:01
**So my questions:**
* How could one approach this problem?
* Are there are suitable algorithms developed to do something like this?
One idea the cropped up in my mind was that, one could use a 'speech-to-text' software to get transcripts along with time indexes for each of the audio files, then parse the transcript to get the output.
I was considering this as one of my hobby projects.
Thanks! | speech-recognition | audio | search | speech-to-text | null | null | open | How do I search content, within audio files/streams?
===
I have always wondered how many different search techniques existed, for searching text, for searching images and even for videos.
However, I have never come across a solution that searched for content within audio files. <br>
**For example:** Let us assume that I have about 200 podcasts downloaded to my PC in the form of mp3, wav and ogg files. They are all named generically say podcast1.mp3, podcast2.mp3, etc. So, it is not possible to know what the content is, without actually hearing them. Lets say that, I am interested in finding out, which the podcasts talk about 'game programming'. I want the results to be shown as:
* Podcast1.mp3 - 3 result(s) at time index(es) - 0:16:21, 0:43:45, 1:12:31
* Podcast21.ogg - 1 result(s) at time index(es) - 0:12:01
**So my questions:**
* How could one approach this problem?
* Are there are suitable algorithms developed to do something like this?
One idea the cropped up in my mind was that, one could use a 'speech-to-text' software to get transcripts along with time indexes for each of the audio files, then parse the transcript to get the output.
I was considering this as one of my hobby projects.
Thanks! | 0 |
23,603 | 08/22/2008 21:51:24 | 112 | 08/02/2008 05:39:11 | 83 | 2 | Syncing library/project subversion respositories | I'm developing a library alongside several projects that use it, and I've found myself frequently modifying the library at the same time as a project (e.g., adding a function to the library and immediately using it in the project). As a result, the project would no longer compile with previous versions of the library.
So if I need to rollback a change or test a previous version of the project, I'd like to know what version of the library was used at check-in. I suppose I could do this manually (by just writing the version number in the log file), but it would be great if this could happen automatically. | subversion | synchronization | null | null | null | null | open | Syncing library/project subversion respositories
===
I'm developing a library alongside several projects that use it, and I've found myself frequently modifying the library at the same time as a project (e.g., adding a function to the library and immediately using it in the project). As a result, the project would no longer compile with previous versions of the library.
So if I need to rollback a change or test a previous version of the project, I'd like to know what version of the library was used at check-in. I suppose I could do this manually (by just writing the version number in the log file), but it would be great if this could happen automatically. | 0 |
23,610 | 08/22/2008 21:54:34 | 1,580 | 08/16/2008 20:34:26 | 51 | 9 | Windows / Active Directory - User / Groups | I'm looking for a way to find a the windows login associated with a specific group. I'm trying to add permissions to a tool that only allows names formatted like:
DOMAIN\USER
DOMAIN\GROUP
I have a list of users in active directory format that i need to add:
ou=group1;ou=group2;ou=group3
i've tried adding DOMAIN\Group1, but i get a 'user not found' error.
Thanks.
P.S. should also be noted that i'm not a Lan admin | windows | activedirectory | groups | null | null | null | open | Windows / Active Directory - User / Groups
===
I'm looking for a way to find a the windows login associated with a specific group. I'm trying to add permissions to a tool that only allows names formatted like:
DOMAIN\USER
DOMAIN\GROUP
I have a list of users in active directory format that i need to add:
ou=group1;ou=group2;ou=group3
i've tried adding DOMAIN\Group1, but i get a 'user not found' error.
Thanks.
P.S. should also be noted that i'm not a Lan admin | 0 |
23,612 | 08/22/2008 21:57:36 | 1,982 | 08/19/2008 16:54:34 | 137 | 5 | What is a quality real world example of TDD in action? | What is a quality real world example of TDD in action? What small-to-medium open source projects in .net are out there that show off best practice in TDD and might work as a reference for doing TDD right?
| tdd | opensource | bestpractice | null | null | null | open | What is a quality real world example of TDD in action?
===
What is a quality real world example of TDD in action? What small-to-medium open source projects in .net are out there that show off best practice in TDD and might work as a reference for doing TDD right?
| 0 |
23,614 | 08/22/2008 22:00:07 | 2,141 | 08/20/2008 14:38:34 | 103 | 2 | Reporting Systems for ASP.NET | What are the best open source (open source and commercial) reporting tools for ASP.NET similar to Crystal Reports for ASP.NET? | asp.net | report | null | null | null | null | open | Reporting Systems for ASP.NET
===
What are the best open source (open source and commercial) reporting tools for ASP.NET similar to Crystal Reports for ASP.NET? | 0 |
23,620 | 08/22/2008 22:03:03 | 2,527 | 08/22/2008 16:35:28 | 13 | 5 | What Javascript rich text editor will not break the browser's spellcheck? | I'm using TinyMCE in an ASP.Net project, and I need a spell check. The only TinyMCE plugins I've found use PHP on the server side, and I guess I could just break down and install PHP on my server and do that, but quite frankly, what a pain. I don't want to do that.
As it turns out, Firefox's built-in spell check will work fine for me, but it doesn't seem to work on TinyMCE editor boxes. I've enabled the gecko_spellcheck option, which is supposed to fix it, but it doesn't.
Does anybody know of a nice rich-text editor that doesn't break the browser's spell check? | javascript | spellchecking | null | null | null | null | open | What Javascript rich text editor will not break the browser's spellcheck?
===
I'm using TinyMCE in an ASP.Net project, and I need a spell check. The only TinyMCE plugins I've found use PHP on the server side, and I guess I could just break down and install PHP on my server and do that, but quite frankly, what a pain. I don't want to do that.
As it turns out, Firefox's built-in spell check will work fine for me, but it doesn't seem to work on TinyMCE editor boxes. I've enabled the gecko_spellcheck option, which is supposed to fix it, but it doesn't.
Does anybody know of a nice rich-text editor that doesn't break the browser's spell check? | 0 |
23,623 | 08/22/2008 22:04:48 | 2,476 | 08/22/2008 13:09:22 | 1 | 0 | What's the best way to configure my Ruby compilation in Debian? | When compiling from source, I never know which configure flags to use to optimize the compilation for my environment. Assume the following hardware/OS:
- Single Core, 2 GHz Intel
- 512MB Ram
- Debian 4
I usually just go with
`./configure --prefix=/usr/local`
Should I be doing anything else?
| debian | ruby | compilation | null | null | null | open | What's the best way to configure my Ruby compilation in Debian?
===
When compiling from source, I never know which configure flags to use to optimize the compilation for my environment. Assume the following hardware/OS:
- Single Core, 2 GHz Intel
- 512MB Ram
- Debian 4
I usually just go with
`./configure --prefix=/usr/local`
Should I be doing anything else?
| 0 |
23,640 | 08/22/2008 22:13:06 | 324 | 08/04/2008 16:46:29 | 60 | 2 | Free or Open Source Collaboration/eLearning Software | I am looking for open source or free data collaboration software. Specifically this is for a non-profit organization that wants to teach remote students how a foreign language. The idea is that an instructor would teach a class and there would be up to 10 students in the class at a time. The instructor would be able to post slides or other teaching material and the students would be able to see it on their computers remotely. Video is not required but audio is a must. Any recommendations? | elearning | collaboration | null | null | null | 12/10/2011 16:40:17 | not constructive | Free or Open Source Collaboration/eLearning Software
===
I am looking for open source or free data collaboration software. Specifically this is for a non-profit organization that wants to teach remote students how a foreign language. The idea is that an instructor would teach a class and there would be up to 10 students in the class at a time. The instructor would be able to post slides or other teaching material and the students would be able to see it on their computers remotely. Video is not required but audio is a must. Any recommendations? | 4 |
23,688 | 08/22/2008 22:44:55 | 1,541 | 08/16/2008 13:56:32 | 33 | 1 | Senior Developers and Unit Tests - Required? Are they allowed to use lackeys? | Should senior developers be exempt from unit testing - or should they be allowed to use lackeys to implement them? What's the best way to motivate people who are not used to using unit testing techniques to adopt them? | unittesting | testing | process | motivation | motivation-techniques | 10/28/2011 16:10:51 | off topic | Senior Developers and Unit Tests - Required? Are they allowed to use lackeys?
===
Should senior developers be exempt from unit testing - or should they be allowed to use lackeys to implement them? What's the best way to motivate people who are not used to using unit testing techniques to adopt them? | 2 |
23,689 | 08/22/2008 22:45:10 | 521 | 08/06/2008 14:16:34 | 593 | 33 | Natural language date/time parser for .NET? | Does anyone know of a .NET date/time parser similar to [Chronic for Ruby][1] (handles stuff like "tomorrow" or "3pm next thursday")?
Note: I do write Ruby (which is how I know about Chronic) but this project must use .NET.
[1]: http://chronic.rubyforge.org/ | .net | datetime | nlp | null | null | null | open | Natural language date/time parser for .NET?
===
Does anyone know of a .NET date/time parser similar to [Chronic for Ruby][1] (handles stuff like "tomorrow" or "3pm next thursday")?
Note: I do write Ruby (which is how I know about Chronic) but this project must use .NET.
[1]: http://chronic.rubyforge.org/ | 0 |
23,713 | 08/22/2008 23:06:00 | 227 | 08/03/2008 17:53:19 | 1,148 | 62 | .Net Security Policy change by standard users? | The .Net Security Policy can be changed from a script by using **CasPol.exe**. Say I will be distributing an application to several users on a local network. Most of those users will be unprivileged, standard accounts, so they will not have necessary permissions for the relevant command.
I think I shall be looking into domain logon scripts. Is there any alternative scenarios? Any solutions for networks without a domain? | .net | security | windows | null | null | null | open | .Net Security Policy change by standard users?
===
The .Net Security Policy can be changed from a script by using **CasPol.exe**. Say I will be distributing an application to several users on a local network. Most of those users will be unprivileged, standard accounts, so they will not have necessary permissions for the relevant command.
I think I shall be looking into domain logon scripts. Is there any alternative scenarios? Any solutions for networks without a domain? | 0 |
23,715 | 08/22/2008 23:06:43 | 2,321 | 08/21/2008 16:22:52 | 1 | 1 | Running Apache alongside another web server? | Has anyone had any success running two different web servers -- such as Apache and CherryPy -- alongside each other on the same machine? I am experimenting with other web servers right now, and I'd like to see if I can do my experiments while keeping my other sites up and running. You could say that this isn't so much a specific-software question as it is a general networking question.
- I know it's possible to run two web servers on different ports; but is there any way to configure them so that they can run on the *same port* (ie, they both run on port 80)?
- The web servers would *not* be serving files from the same domains. For example, Apache might serve up documents from foo.domain.com, and the other web server would serve from bar.domain.com.
I do know that this is not an ideal configuration. I'd just like to see if it can be done before I go sprinting down the rabbit hole. :) | linux | apache | server | null | null | null | open | Running Apache alongside another web server?
===
Has anyone had any success running two different web servers -- such as Apache and CherryPy -- alongside each other on the same machine? I am experimenting with other web servers right now, and I'd like to see if I can do my experiments while keeping my other sites up and running. You could say that this isn't so much a specific-software question as it is a general networking question.
- I know it's possible to run two web servers on different ports; but is there any way to configure them so that they can run on the *same port* (ie, they both run on port 80)?
- The web servers would *not* be serving files from the same domains. For example, Apache might serve up documents from foo.domain.com, and the other web server would serve from bar.domain.com.
I do know that this is not an ideal configuration. I'd just like to see if it can be done before I go sprinting down the rabbit hole. :) | 0 |
23,726 | 08/22/2008 23:18:26 | 2,568 | 08/22/2008 23:09:56 | 1 | 0 | What is the best way to setup memcached on CentOS to work with Apache and PHP | What is the simplest way to install memcached on CentOS for someone new to the world of Linux? What is the best way to enable it for Apache and PHP | php | linux | memcached | null | null | null | open | What is the best way to setup memcached on CentOS to work with Apache and PHP
===
What is the simplest way to install memcached on CentOS for someone new to the world of Linux? What is the best way to enable it for Apache and PHP | 0 |
23,737 | 08/22/2008 23:27:21 | 1,560 | 08/16/2008 17:17:39 | 48 | 1 | Do you have any tips to improve resharper and/or visual studio performance ? | I'm using visual studio 2008 and resharper 4 and it's kind of slow, my machine has 2gb of ram, dual core processor and a 7200 rpm hard disk. I know more ram and a faster hard disk could improve performance, but do you have any tips to improve resharper/visual studio performance? | #visualstudio | resharper | .net | null | null | null | open | Do you have any tips to improve resharper and/or visual studio performance ?
===
I'm using visual studio 2008 and resharper 4 and it's kind of slow, my machine has 2gb of ram, dual core processor and a 7200 rpm hard disk. I know more ram and a faster hard disk could improve performance, but do you have any tips to improve resharper/visual studio performance? | 0 |
23,738 | 08/22/2008 23:28:23 | 1,662 | 08/17/2008 20:30:20 | 88 | 8 | Why is Peer-to-Peer programming a hard topic to obtain good research for? | After reading a bit more about how Gnutella and other P2P networks function, I wanted to start my own peer-to-peer system. I went in thinking that I would find plenty of tutorials and language-agnostic guidelines which could be applied, however I was met with a vague simplistic overview.
I could only find very small, precise P2P code which didn't do much more than use client/server architecture on all users, which wasn't really what I was looking for. I wanted something like Gnutella, but there doesn't seem to be any articles out in the open for joining the network. | p2p | language-agnostic | networking | null | null | null | open | Why is Peer-to-Peer programming a hard topic to obtain good research for?
===
After reading a bit more about how Gnutella and other P2P networks function, I wanted to start my own peer-to-peer system. I went in thinking that I would find plenty of tutorials and language-agnostic guidelines which could be applied, however I was met with a vague simplistic overview.
I could only find very small, precise P2P code which didn't do much more than use client/server architecture on all users, which wasn't really what I was looking for. I wanted something like Gnutella, but there doesn't seem to be any articles out in the open for joining the network. | 0 |
23,745 | 08/22/2008 23:39:57 | 392 | 08/05/2008 12:29:07 | 572 | 34 | Does YUI Compressor GUI App Exist? | I recently discovered Yahoo's YUI Compressor software and started using it on my website.
What I'm disappointed about with the software is its lack of a GUI, as well as a lack of a way to combine files.
Does anyone know of a project which uses the YUI Compressor as a backend that provides a GUI front-end with the ability to combine files?
I want to create a GUI application based on the YUI Compressor, but if one already exists, I'd rather use that. | yahoo | null | null | null | null | null | open | Does YUI Compressor GUI App Exist?
===
I recently discovered Yahoo's YUI Compressor software and started using it on my website.
What I'm disappointed about with the software is its lack of a GUI, as well as a lack of a way to combine files.
Does anyone know of a project which uses the YUI Compressor as a backend that provides a GUI front-end with the ability to combine files?
I want to create a GUI application based on the YUI Compressor, but if one already exists, I'd rather use that. | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.