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
29,177
08/26/2008 23:23:05
2,729
08/24/2008 18:30:56
78
8
DoDragDrop and MouseUp
Is there an easy way to ensure that after a drag-and-drop fails to complete, the MouseUp event isn't eaten up and ignored by the framework? I have found a blog post describing [one mechanism][1], but it involves a good deal of manual bookkeeping, including status flags, MouseMove events, manual "mouse leave" checking, etc. all of which I would rather not have to implement if it can be avoided. [1]: http://sarangdatye.blogspot.com/2004/10/drag-drop-and-mouseup-mystery-solved.html
.net
winforms
events
drag-and-drop
null
null
open
DoDragDrop and MouseUp === Is there an easy way to ensure that after a drag-and-drop fails to complete, the MouseUp event isn't eaten up and ignored by the framework? I have found a blog post describing [one mechanism][1], but it involves a good deal of manual bookkeeping, including status flags, MouseMove events, manual "mouse leave" checking, etc. all of which I would rather not have to implement if it can be avoided. [1]: http://sarangdatye.blogspot.com/2004/10/drag-drop-and-mouseup-mystery-solved.html
0
29,242
08/27/2008 00:18:19
1,175
08/13/2008 10:21:54
744
81
Off-the-Shelf Hex Dump Code
I work a lot with network and serial communications software, so it is often necessary to display or log hex dumps of data packets. Every time I do this, I write yet another hex-dump routine from scratch. I'm about to do so again, but figured I'd ask here: Is there any good free hex dump code for C++ out there somewhere? Features I'd like: - N bytes per line (where N is configurable) - ASCII dump alongside the hex - configurable indentation, per-line prefixes, per-line suffixes, etc.
hexdump
c++
logging
null
null
null
open
Off-the-Shelf Hex Dump Code === I work a lot with network and serial communications software, so it is often necessary to display or log hex dumps of data packets. Every time I do this, I write yet another hex-dump routine from scratch. I'm about to do so again, but figured I'd ask here: Is there any good free hex dump code for C++ out there somewhere? Features I'd like: - N bytes per line (where N is configurable) - ASCII dump alongside the hex - configurable indentation, per-line prefixes, per-line suffixes, etc.
0
29,243
08/27/2008 00:21:35
1,638
08/17/2008 17:58:57
246
30
How do I create an xml document in python
It's my first time generating xml with python, and the python documentation, which is generally good, is really lacking for xml creation...here is my sample code: <pre> <code> from xml.dom.minidom import * def make_xml(): doc = Document(); node = doc.createElement('foo') node.innerText = 'bar' doc.appendChild(node) return doc if __name__ == '__main__': make_xml().writexml(sys.stdout) </code> </pre> when I run the above code I get this: <pre> <code> &lt?xml version="1.0" ?&gt &lt;foo/&gt; </code> </pre> I would like to get: <pre> <code> &lt?xml version="1.0" ?&gt &lt;foo&gt;bar&lt;/foo&gt; </code> </pre> I just guessed that there was an innerText property, it gives no compiler error, but does not seem to work...how do I go about creating a text node? Thanks!
python
xml
null
null
null
null
open
How do I create an xml document in python === It's my first time generating xml with python, and the python documentation, which is generally good, is really lacking for xml creation...here is my sample code: <pre> <code> from xml.dom.minidom import * def make_xml(): doc = Document(); node = doc.createElement('foo') node.innerText = 'bar' doc.appendChild(node) return doc if __name__ == '__main__': make_xml().writexml(sys.stdout) </code> </pre> when I run the above code I get this: <pre> <code> &lt?xml version="1.0" ?&gt &lt;foo/&gt; </code> </pre> I would like to get: <pre> <code> &lt?xml version="1.0" ?&gt &lt;foo&gt;bar&lt;/foo&gt; </code> </pre> I just guessed that there was an innerText property, it gives no compiler error, but does not seem to work...how do I go about creating a text node? Thanks!
0
29,244
08/27/2008 00:23:02
234
08/03/2008 20:25:38
2,355
161
HTML Select Tag with black background - dropdown triangle is invisible in Firefox 3
I have the following HTML (note the CSS making the background black and text white) <select id="opts" style="background-color: black; color: white;"> <option>first</option> <option>second</option> </select> Safari is smart enough to make the small triangle that appears to the right of the text the same color as the foreground text. Other browsers basically ignore the CSS, so they're fine too. Firefox 3 however applies the background color but leaves the triangle black, so you can't see it, like this ![example](http://farm4.static.flickr.com/3248/2800878559_40a573cf1d.jpg?v=0) I can't find out how to fix this - can anyone help? Is there a `-moz-select-triangle-color` or something obscure like that? Thanks
html
css
firefox
html-select
null
null
open
HTML Select Tag with black background - dropdown triangle is invisible in Firefox 3 === I have the following HTML (note the CSS making the background black and text white) <select id="opts" style="background-color: black; color: white;"> <option>first</option> <option>second</option> </select> Safari is smart enough to make the small triangle that appears to the right of the text the same color as the foreground text. Other browsers basically ignore the CSS, so they're fine too. Firefox 3 however applies the background color but leaves the triangle black, so you can't see it, like this ![example](http://farm4.static.flickr.com/3248/2800878559_40a573cf1d.jpg?v=0) I can't find out how to fix this - can anyone help? Is there a `-moz-select-triangle-color` or something obscure like that? Thanks
0
29,247
08/27/2008 00:29:30
327
08/04/2008 17:08:49
431
25
What versions of Visual Studio can be installed concurrently?
Are there any conflicts with having any combination of Visual Studio 2003, 2005 and/or 2008 installed? I noticed a related question [here][1] but wanted a more general answer. [1]: http://stackoverflow.com/questions/9693/visual-studio-2005-macros-stop-working-when-visual-studio-2008-is-installed
windows
visual-studio
microsoft
null
null
null
open
What versions of Visual Studio can be installed concurrently? === Are there any conflicts with having any combination of Visual Studio 2003, 2005 and/or 2008 installed? I noticed a related question [here][1] but wanted a more general answer. [1]: http://stackoverflow.com/questions/9693/visual-studio-2005-macros-stop-working-when-visual-studio-2008-is-installed
0
29,284
08/27/2008 01:03:22
2,684
08/24/2008 14:38:27
138
17
Windows Vista: Unable to load DLL 'x.dll': Invalid access to memory location. (DllNotFoundException)
I was testing on a customer's box this afternoon which has Windows Vista (He had home, but I am testing on a Business Edition with same results). We make use of a .DLL that gets the Hardware ID of the computer. It's usage is very simple and the sample program I have created works. The Dll is [This from AzSdk][1]. In fact, this works perfectly under Windows XP. However, for some strange reason, inside our project (way bigger), we get this exception: Exception Type: System.DllNotFoundException Exception Message: Unable to load DLL 'HardwareID.dll': Invalid access to memory location. (Exception from HRESULT: 0x800703E6) Exception Target Site: GetHardwareID I don't know what can be causing the problem, since I have full control over the folder. The project is a c#.net Windows Forms application and everything works fine, except the call for the external library. I am declaring it like this: (note: it's *not* a COM library and it doesn't need to be registered). [DllImport("HardwareID.dll")] public static extern String GetHardwareID(bool HDD, bool NIC, bool CPU, bool BIOS, string sRegistrationCode); And then the calling code is quite simple: private void button1_Click(object sender, EventArgs e) { textBox1.Text = GetHardwareID(cb_HDD.Checked, cb_NIC.Checked, cb_CPU.Checked, cb_BIOS.Checked, "*Registration Code*"); } When you create a sample application, it works, but inside my prj it doesn't. Under XP works fine. Any ideas about what should I do in Vista to make this work? As I've said, the folder and its subfolders have Full Control for "Everybody". Thanks in advance, [1]: http://www.azsdk.com/hardwareid.html
windows-vista
.net
dllnotfoundexception
c#
null
null
open
Windows Vista: Unable to load DLL 'x.dll': Invalid access to memory location. (DllNotFoundException) === I was testing on a customer's box this afternoon which has Windows Vista (He had home, but I am testing on a Business Edition with same results). We make use of a .DLL that gets the Hardware ID of the computer. It's usage is very simple and the sample program I have created works. The Dll is [This from AzSdk][1]. In fact, this works perfectly under Windows XP. However, for some strange reason, inside our project (way bigger), we get this exception: Exception Type: System.DllNotFoundException Exception Message: Unable to load DLL 'HardwareID.dll': Invalid access to memory location. (Exception from HRESULT: 0x800703E6) Exception Target Site: GetHardwareID I don't know what can be causing the problem, since I have full control over the folder. The project is a c#.net Windows Forms application and everything works fine, except the call for the external library. I am declaring it like this: (note: it's *not* a COM library and it doesn't need to be registered). [DllImport("HardwareID.dll")] public static extern String GetHardwareID(bool HDD, bool NIC, bool CPU, bool BIOS, string sRegistrationCode); And then the calling code is quite simple: private void button1_Click(object sender, EventArgs e) { textBox1.Text = GetHardwareID(cb_HDD.Checked, cb_NIC.Checked, cb_CPU.Checked, cb_BIOS.Checked, "*Registration Code*"); } When you create a sample application, it works, but inside my prj it doesn't. Under XP works fine. Any ideas about what should I do in Vista to make this work? As I've said, the folder and its subfolders have Full Control for "Everybody". Thanks in advance, [1]: http://www.azsdk.com/hardwareid.html
0
29,292
08/27/2008 01:11:16
1,175
08/13/2008 10:21:54
752
81
Version Control for Graphics
Say a development team includes (or makes use of) graphic artists who create all the images that go into a product. Such things include icons, bitmaps, screen backgrounds, button images, animations, etc. Obviously, everything needed to build a piece of software should be under some form of version control. Should the graphics people use the same version-control system and repository that the coders do? If not, what should they use, and what is the best way to keep everything synchronized?
version-control
graphics
versioning
null
null
null
open
Version Control for Graphics === Say a development team includes (or makes use of) graphic artists who create all the images that go into a product. Such things include icons, bitmaps, screen backgrounds, button images, animations, etc. Obviously, everything needed to build a piece of software should be under some form of version control. Should the graphics people use the same version-control system and repository that the coders do? If not, what should they use, and what is the best way to keep everything synchronized?
0
29,308
08/27/2008 01:20:29
2,785
08/25/2008 03:48:53
21
6
How to Track Queries on a Linq-to-sql DataContext
In the [herding code](http://herdingcode.com/) podcast 14 someone mentions that stackoverflow displayed the queries that were executed during a request at the bottom of the page. It sounds like an excellent idea to me. Every time a page loads I want to know what sql statements are executed and also a count of the total number of DB round trips. Does anyone have a neat solution to this problem? What do you think is an acceptable number of queries? I was thinking that during development I might have my application throw an exception if more than 30 queries are required to render a page.
asp.net
linq-to-sql
null
null
null
null
open
How to Track Queries on a Linq-to-sql DataContext === In the [herding code](http://herdingcode.com/) podcast 14 someone mentions that stackoverflow displayed the queries that were executed during a request at the bottom of the page. It sounds like an excellent idea to me. Every time a page loads I want to know what sql statements are executed and also a count of the total number of DB round trips. Does anyone have a neat solution to this problem? What do you think is an acceptable number of queries? I was thinking that during development I might have my application throw an exception if more than 30 queries are required to render a page.
0
29,311
08/27/2008 01:23:29
1,432
08/15/2008 15:33:54
953
42
Which 3D cards support full scene antialiasing?
Is there a list of 3D cards available that provide full scene antialiasing as well as which are able to do it in hardware (decent performance)?
opengl
antialasing
fullsceneantialiasing
null
null
null
open
Which 3D cards support full scene antialiasing? === Is there a list of 3D cards available that provide full scene antialiasing as well as which are able to do it in hardware (decent performance)?
0
29,323
08/27/2008 01:31:06
1,588
08/17/2008 01:05:22
191
7
Is there a "best way" to learn a new framework/library?
You see a lot of issues on TheDailyWorseThanFailure.com that all come down to people reinventing the wheel (poorly). How do you mitigate this? Is there a "best" approach to learning a new library/framework/etcetera?
framework
null
null
null
null
null
open
Is there a "best way" to learn a new framework/library? === You see a lot of issues on TheDailyWorseThanFailure.com that all come down to people reinventing the wheel (poorly). How do you mitigate this? Is there a "best" approach to learning a new library/framework/etcetera?
0
29,324
08/27/2008 01:32:15
145
08/02/2008 14:40:17
686
22
How Do I Create a Hash Table in Java?
What is the most straightforward way to create a hash table (or associative array...) in Java? My google-fu has turned up a couple examples, but is there a standard way to do this?
java
array
associative-array
hash-table
hash
null
open
How Do I Create a Hash Table in Java? === What is the most straightforward way to create a hash table (or associative array...) in Java? My google-fu has turned up a couple examples, but is there a standard way to do this?
0
29,335
08/27/2008 01:38:54
2,228
08/21/2008 02:56:29
111
4
Best practices for development environment and API dev?
My current employer uses a 3rd party hosted CRM provider and we have a fairly sophisticated integration tier between the two systems. Amongst the capabilities of the CRM provider is for developers to author business logic in a Java like language and on events such as the user clicking a button or submitting a new account into the system, have validation and/or business logic fire off. One of the capabilities that we make use of is for that business code running on the hosted provider to invoke web services that we host. The canonical example is a sales rep entering in a new sales lead and hitting a button to ping our systems to see if we can identify that new lead based on email address, company/first/last name, etc, and if so, return back an internal GUID that represents that individual. This all works for us fine, but we've run into a wall again and again in trying to setup a sane dev environment to work against. So while our use case is a bit nuanced, this can generally apply to any development house that builds APIs for 3rd party consumption: <b>what are some best practices when designing a development pipeline and environment when you're building APIs to be consumed by the outside world?</b> At our office, all our devs are behind a firewall, so code in progress can't be hit by the outside world, in our case the CRM provider. We could poke holes in the firewall but that's less than ideal from a security surface area standpoint. Especially if the # of devs who need to be in a DMZ like area is high. We currently are trying a single dev machine in the DMZ and then remoting into it as needed to do dev work, but that's created a resource scarcity issue if multiple devs need the box, let alone they're making potentially conflicting changes (e.g. different branches). We've considered just mocking/faking incoming requests by building fake clients for these services, but that's a pretty major overhead in building out feature sets (though it does by nature reinforce a testability of our APIs). This also doesn't obviate the fact that sometimes we really do need to diagnose/debug issues coming from the real client itself, not some faked request payload. What have others done in these types of scenarios? In this day and age of mashups, there have to be a lot of folks out there w/ experiences of developing APIs--what's worked (and not worked so) well for the folks out there?
api
development-environment
pipeline
null
null
null
open
Best practices for development environment and API dev? === My current employer uses a 3rd party hosted CRM provider and we have a fairly sophisticated integration tier between the two systems. Amongst the capabilities of the CRM provider is for developers to author business logic in a Java like language and on events such as the user clicking a button or submitting a new account into the system, have validation and/or business logic fire off. One of the capabilities that we make use of is for that business code running on the hosted provider to invoke web services that we host. The canonical example is a sales rep entering in a new sales lead and hitting a button to ping our systems to see if we can identify that new lead based on email address, company/first/last name, etc, and if so, return back an internal GUID that represents that individual. This all works for us fine, but we've run into a wall again and again in trying to setup a sane dev environment to work against. So while our use case is a bit nuanced, this can generally apply to any development house that builds APIs for 3rd party consumption: <b>what are some best practices when designing a development pipeline and environment when you're building APIs to be consumed by the outside world?</b> At our office, all our devs are behind a firewall, so code in progress can't be hit by the outside world, in our case the CRM provider. We could poke holes in the firewall but that's less than ideal from a security surface area standpoint. Especially if the # of devs who need to be in a DMZ like area is high. We currently are trying a single dev machine in the DMZ and then remoting into it as needed to do dev work, but that's created a resource scarcity issue if multiple devs need the box, let alone they're making potentially conflicting changes (e.g. different branches). We've considered just mocking/faking incoming requests by building fake clients for these services, but that's a pretty major overhead in building out feature sets (though it does by nature reinforce a testability of our APIs). This also doesn't obviate the fact that sometimes we really do need to diagnose/debug issues coming from the real client itself, not some faked request payload. What have others done in these types of scenarios? In this day and age of mashups, there have to be a lot of folks out there w/ experiences of developing APIs--what's worked (and not worked so) well for the folks out there?
0
29,346
08/27/2008 01:49:30
493
08/06/2008 10:25:05
2,321
154
Access files from network share in c# web app
I have a web application that needs to read (and possibly write) files from a network share. I was wondering what the best way to do this would be? I can't give the network service or aspnet accounts access to the network share. I could possibly use impersonation. The network share and the web application are both hosted on the same domain and I can create a new user on the domain specifically for this purpose however I'm not quite sure how to join the dots between creating the filestream and specifying the credentials to use in the web application.
c#
fileio
security
asp.net
webapp
null
open
Access files from network share in c# web app === I have a web application that needs to read (and possibly write) files from a network share. I was wondering what the best way to do this would be? I can't give the network service or aspnet accounts access to the network share. I could possibly use impersonation. The network share and the web application are both hosted on the same domain and I can create a new user on the domain specifically for this purpose however I'm not quite sure how to join the dots between creating the filestream and specifying the credentials to use in the web application.
0
29,357
08/27/2008 02:09:29
657
08/07/2008 15:05:02
226
22
Security For Voting Application
I have a project to build a voting desktop application for a class in Java. While security isn't the focus of the project, I would like to be as realistic as I can. What are some of the primary tools to integrate security into a Java application.
java
desktop
security
null
null
null
open
Security For Voting Application === I have a project to build a voting desktop application for a class in Java. While security isn't the focus of the project, I would like to be as realistic as I can. What are some of the primary tools to integrate security into a Java application.
0
29,360
08/27/2008 02:11:10
116
08/02/2008 05:51:57
4,046
206
What are the best progamming book series?
Which series do you really like? Which one, when it releases a new book, are you confident that it will be useful, well-written, etc?
books
null
null
null
null
11/28/2011 01:36:30
not constructive
What are the best progamming book series? === Which series do you really like? Which one, when it releases a new book, are you confident that it will be useful, well-written, etc?
4
29,370
08/27/2008 02:20:39
1,432
08/15/2008 15:33:54
963
44
SQL1159 Initialization error with DB2 .NET Data Provider, reason code 7, tokens 9.5.0.DEF.2, SOFTWARE\IBM\DB2\InstalledCopies
I am trying to get the DB2 data provider from a 32-bit .Net application to connect to DB2 running as a 32-bit application on Vista 64 (is that confusing enough yet)? Unfortunately, I am getting the following error: > SQL1159 Initialization error with DB2 .NET Data Provider, reason code 7, tokens 9.5.0.DEF.2, SOFTWARE\IBM\DB2\InstalledCopies There are several [IBM forum posts][1] mentioning it, but little useful guidance. Has anyone experienced this before? Or do you have better ideas for fixing it? [1]: http://www-128.ibm.com/developerworks/forums/thread.jspa?threadID=207638&tstart=45
.net
db2
vista64
null
null
null
open
SQL1159 Initialization error with DB2 .NET Data Provider, reason code 7, tokens 9.5.0.DEF.2, SOFTWARE\IBM\DB2\InstalledCopies === I am trying to get the DB2 data provider from a 32-bit .Net application to connect to DB2 running as a 32-bit application on Vista 64 (is that confusing enough yet)? Unfortunately, I am getting the following error: > SQL1159 Initialization error with DB2 .NET Data Provider, reason code 7, tokens 9.5.0.DEF.2, SOFTWARE\IBM\DB2\InstalledCopies There are several [IBM forum posts][1] mentioning it, but little useful guidance. Has anyone experienced this before? Or do you have better ideas for fixing it? [1]: http://www-128.ibm.com/developerworks/forums/thread.jspa?threadID=207638&tstart=45
0
29,382
08/27/2008 02:32:15
2,477
08/22/2008 13:21:51
134
14
Rails requires RubyGems >= 0.9.4. Please install RubyGems
I'm deploying to Ubuntu slice on slicehost, using Rails 2.1.0 (from gem) If I try mongrel_rails start or script/server I get error: > Rails requires RubyGems >= 0.9.4. Please install RubyGems When I type `gem-v` i have 1.2.0. Any quick tips on what to look at to fix?
ruby-on-rails
deployment
rubygems
null
null
null
open
Rails requires RubyGems >= 0.9.4. Please install RubyGems === I'm deploying to Ubuntu slice on slicehost, using Rails 2.1.0 (from gem) If I try mongrel_rails start or script/server I get error: > Rails requires RubyGems >= 0.9.4. Please install RubyGems When I type `gem-v` i have 1.2.0. Any quick tips on what to look at to fix?
0
29,383
08/27/2008 02:32:34
2,147
08/20/2008 15:14:13
182
28
Converting bool to text in C++
Maybe this is a dumb question, but is there any way to convert a boolean value to a string such that 1 turns to "true" and 0 turns to "false"? I could just use an if statement, but it would be nice to know if there is a way to do that with the language or standard libraries. Plus, I'm a pedant. :)
c++
string
boolean
null
null
null
open
Converting bool to text in C++ === Maybe this is a dumb question, but is there any way to convert a boolean value to a string such that 1 turns to "true" and 0 turns to "false"? I could just use an if statement, but it would be nice to know if there is a way to do that with the language or standard libraries. Plus, I'm a pedant. :)
0
29,399
08/27/2008 02:44:58
2,490
08/22/2008 13:52:54
21
2
Is obfuscator Javascript enough?
I'm working on building a development tool that is written in Javascript. This will not be an open source project and will be sold (hopefully) as a commercial product. I'm evaluating the best way to protect my investment. Is using an obfuscator (code mangler) enough to reasonably secure the code? Are there other alternatives that I am not aware of? (I'm not sure if obfuscator is the right word, it's one of the apps that takes your code and makes it very un-readable)
javascript
null
null
null
null
null
open
Is obfuscator Javascript enough? === I'm working on building a development tool that is written in Javascript. This will not be an open source project and will be sold (hopefully) as a commercial product. I'm evaluating the best way to protect my investment. Is using an obfuscator (code mangler) enough to reasonably secure the code? Are there other alternatives that I am not aware of? (I'm not sure if obfuscator is the right word, it's one of the apps that takes your code and makes it very un-readable)
0
29,406
08/27/2008 02:48:39
3,074
08/26/2008 14:40:40
1
1
Guidelines for writing a framework
I'm faced with writing a framework to simplify working with a large and complex object library ([ArcObjects][1]). What guidelines would you suggest for creating a framework of this kind? Are static methods preferred? How do you handle things like logging? How do you future proof your framework code from changes that a vendor might introduce? I think of all of the various wrappers and helpers I've seen for NHibernate, log4net, and code I've read from projects like NLog and [NetTopologySuite][2] and I see so many good approaches, but honestly I'm at a loss where to start. BTW - I'm working in C# 3.5 but honestly it's more about recommended approach rather than language. [1]: http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/ao_start.htm [2]: http://code.google.com/p/nettopologysuite/ "NetTopologySuite"
framework
null
null
null
null
null
open
Guidelines for writing a framework === I'm faced with writing a framework to simplify working with a large and complex object library ([ArcObjects][1]). What guidelines would you suggest for creating a framework of this kind? Are static methods preferred? How do you handle things like logging? How do you future proof your framework code from changes that a vendor might introduce? I think of all of the various wrappers and helpers I've seen for NHibernate, log4net, and code I've read from projects like NLog and [NetTopologySuite][2] and I see so many good approaches, but honestly I'm at a loss where to start. BTW - I'm working in C# 3.5 but honestly it's more about recommended approach rather than language. [1]: http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/ao_start.htm [2]: http://code.google.com/p/nettopologysuite/ "NetTopologySuite"
0
29,423
08/27/2008 03:02:00
1,220
08/13/2008 13:44:48
842
59
How Automated is too automated when it comes to deployment?
I have ci, so our staging environment builds itself. Should I have a script that not only builds production but does all the branching for it as well? When you have 1 code base on 2 different urls with skinning, should they be required to build at once?
build-automation
production
null
null
null
null
open
How Automated is too automated when it comes to deployment? === I have ci, so our staging environment builds itself. Should I have a script that not only builds production but does all the branching for it as well? When you have 1 code base on 2 different urls with skinning, should they be required to build at once?
0
29,426
08/27/2008 03:06:06
2,612
08/23/2008 15:44:45
3
0
Best GUI designer for eclipse?
I'm looking for a good GUI designer for swing in eclipse. My preference is for a free/open-source plugin.
java
eclipse
swing
gui-designer
null
09/11/2011 17:26:29
not constructive
Best GUI designer for eclipse? === I'm looking for a good GUI designer for swing in eclipse. My preference is for a free/open-source plugin.
4
29,456
08/27/2008 03:35:57
2,976
08/26/2008 09:42:25
70
6
Can you recommend a good book on zend framework.
Can anyone recommend a good book on zend framework. I got ZF up and running but I want a more complete reference with maybe something that talks about each module more in depth. Is there such a book. There seems to be real slim pickings on ZF books
books
zendframework
null
null
null
09/17/2011 22:45:46
not constructive
Can you recommend a good book on zend framework. === Can anyone recommend a good book on zend framework. I got ZF up and running but I want a more complete reference with maybe something that talks about each module more in depth. Is there such a book. There seems to be real slim pickings on ZF books
4
29,460
08/27/2008 03:38:10
493
08/06/2008 10:25:05
2,346
155
Stop the taskbar flashing
I know I can programatically make the taskbar item for a particular window start flashing when something changes, but is there any way I can stop it from flashing either programatically after a certain period of time or at least is there a keyboard shortcur I can give to my users to somehow stop the flashing?
c#
winforms
taskbar
null
null
null
open
Stop the taskbar flashing === I know I can programatically make the taskbar item for a particular window start flashing when something changes, but is there any way I can stop it from flashing either programatically after a certain period of time or at least is there a keyboard shortcur I can give to my users to somehow stop the flashing?
0
29,461
08/27/2008 03:40:05
3,030
08/26/2008 12:41:34
51
3
What is a MUST COVER in my Groovy presentation?
I'm working on getting an Introduction to Groovy presentation ready for my local Java User's Group and I've pretty much got it together. What I'd like to see is what you all think I just have to cover. Remember, this is an introductory presentation. Most of the people are experienced Java developers, but I'm pretty sure they have little to no Groovy knowledge. I won't poison the well by mentioning what I've already got down to cover as I want to see what the community has to offer. What are the best things I can cover (in a 1 hour time frame) that will help me effectively communicate to these Java developers how useful Groovy could be to them? thanks p.s. After I'm satisfied with the postings I'll share my presentation here for anyone interested.
groovy
presentations
java
null
null
05/05/2012 01:46:27
off topic
What is a MUST COVER in my Groovy presentation? === I'm working on getting an Introduction to Groovy presentation ready for my local Java User's Group and I've pretty much got it together. What I'd like to see is what you all think I just have to cover. Remember, this is an introductory presentation. Most of the people are experienced Java developers, but I'm pretty sure they have little to no Groovy knowledge. I won't poison the well by mentioning what I've already got down to cover as I want to see what the community has to offer. What are the best things I can cover (in a 1 hour time frame) that will help me effectively communicate to these Java developers how useful Groovy could be to them? thanks p.s. After I'm satisfied with the postings I'll share my presentation here for anyone interested.
2
29,482
08/27/2008 03:58:21
493
08/06/2008 10:25:05
2,346
155
Cast int to Enum in C#
What's a quick and easy way to cast an int to an enum in c#?
c#
enums
casting
null
null
null
open
Cast int to Enum in C# === What's a quick and easy way to cast an int to an enum in c#?
0
29,496
08/27/2008 04:08:39
648
08/07/2008 13:22:00
138
17
Automated script to zip IIS logs?
I'd like to write a script/batch that will bunch up my daily IIS logs and zip them up by month. ex080801.log which is in the format of ex*yymmdd*.log ex080801.log - ex080831.log gets zipped up and the log files deleted. The reason we do this is because on a heavy site a log file for one day could be 500mb to 1gb so we zip them up which compresses them by 98% and dump the real log file. We use webtrend to analyze the log files and it is capable of reading into a zip file. Does anyone have any ideas on how to script this or would be willing to share some code?
iis
batch
script
logging
zip
null
open
Automated script to zip IIS logs? === I'd like to write a script/batch that will bunch up my daily IIS logs and zip them up by month. ex080801.log which is in the format of ex*yymmdd*.log ex080801.log - ex080831.log gets zipped up and the log files deleted. The reason we do this is because on a heavy site a log file for one day could be 500mb to 1gb so we zip them up which compresses them by 98% and dump the real log file. We use webtrend to analyze the log files and it is capable of reading into a zip file. Does anyone have any ideas on how to script this or would be willing to share some code?
0
29,499
08/27/2008 04:11:18
337
08/04/2008 18:11:42
106
5
How do you troubleshoot character encoding problems?
If all you see is the ugly no-char boxes, what tools or strategies do you use to figure out what went wrong? (The specific scenario I'm facing is no-char boxes within a &lt;select&gt; when it should be showing Japanese chars.)
encoding
localization
null
null
null
null
open
How do you troubleshoot character encoding problems? === If all you see is the ugly no-char boxes, what tools or strategies do you use to figure out what went wrong? (The specific scenario I'm facing is no-char boxes within a &lt;select&gt; when it should be showing Japanese chars.)
0
29,505
08/27/2008 04:18:10
3,147
08/27/2008 01:00:22
11
1
Deserialize in a different language.
The log4j network adapter sends events as a serialised java object. I would like to be able to capture this object and deserialise it in a different language (python). Is this possible? *NOTE* The network capturing is easy; its just a TCP socket and reading in a stream. The difficulty is the deserialising part
java
serialization
log4j
null
null
null
open
Deserialize in a different language. === The log4j network adapter sends events as a serialised java object. I would like to be able to capture this object and deserialise it in a different language (python). Is this possible? *NOTE* The network capturing is easy; its just a TCP socket and reading in a stream. The difficulty is the deserialising part
0
29,511
08/27/2008 04:19:42
422
08/05/2008 15:11:55
383
26
Ruby - Convert Integer to String
I have some Ruby code I'm writing and when I give it the String "0123", I want to be able to print out the individual elements. But when I try to print out these elements, I'm seeing the ASCII values instead: >> a = "0123" => "0123" >> a[0] => 48 I've looked online but can't find any way to get the original "0" back out of it. I'm a little new to Ruby to I know it has to be something simple but I just can't seem to find it.
ruby
arrays
null
null
null
null
open
Ruby - Convert Integer to String === I have some Ruby code I'm writing and when I give it the String "0123", I want to be able to print out the individual elements. But when I try to print out these elements, I'm seeing the ASCII values instead: >> a = "0123" => "0123" >> a[0] => 48 I've looked online but can't find any way to get the original "0" back out of it. I'm a little new to Ruby to I know it has to be something simple but I just can't seem to find it.
0
29,516
08/27/2008 04:29:02
1,915
08/19/2008 14:11:04
43
3
Template Engines for Spring Framework
I've taken quite a shine to the Spring Framework and would like to get into it a bit more. I have noticed that aside from plain vanilla JSPs there are various template engines for use with Spring, such as [Velocity][1] and [Freemarker][2]. Are there others? Which one do you recommend? [1]: http://velocity.apache.org/engine/index.html [2]: http://freemarker.sourceforge.net/
java
spring-framework
template-engine
velocity
freemarker
null
open
Template Engines for Spring Framework === I've taken quite a shine to the Spring Framework and would like to get into it a bit more. I have noticed that aside from plain vanilla JSPs there are various template engines for use with Spring, such as [Velocity][1] and [Freemarker][2]. Are there others? Which one do you recommend? [1]: http://velocity.apache.org/engine/index.html [2]: http://freemarker.sourceforge.net/
0
29,525
08/27/2008 04:36:49
2,976
08/26/2008 09:42:25
70
7
Opcode cache impact on memory ussage
Can anyone tell me what is the memory usage overhead associated with PHP opcode cache? I've seen a lot of reviews of opcode cache but all of them only concentrate on the performance increace. I have a small entry level VPS and memory limits are a concern for me.
php
opcode-cache
null
null
null
null
open
Opcode cache impact on memory ussage === Can anyone tell me what is the memory usage overhead associated with PHP opcode cache? I've seen a lot of reviews of opcode cache but all of them only concentrate on the performance increace. I have a small entry level VPS and memory limits are a concern for me.
0
29,531
08/27/2008 04:43:00
404
08/05/2008 13:34:59
582
38
Using .NET CodeDOM to declare and initialize a field in one statement
I want to use CodeDOM to both declare and initialize my static field in one statement. How can I do this? // for example public static int MyField = 5; I can seem to figure out how to declare a static field, and I can set its value later, but I can't seem to get the above effect.
codedom
.net
null
null
null
null
open
Using .NET CodeDOM to declare and initialize a field in one statement === I want to use CodeDOM to both declare and initialize my static field in one statement. How can I do this? // for example public static int MyField = 5; I can seem to figure out how to declare a static field, and I can set its value later, but I can't seem to get the above effect.
0
29,539
08/27/2008 04:48:50
422
08/05/2008 15:11:55
423
28
Ruby - Exit Message
Since I got a quick response on the last Ruby [question][1] I asked, I have another one that's been bothering me. Is there a one line function call that quits the program and displays a message? I know in Perl its as simple as this: die("Message goes here") Essentially I'm just tired of typing this: puts "Message goes here" exit [1]: http://stackoverflow.com/questions/29511/ruby-convert-integer-to-string
ruby
null
null
null
null
null
open
Ruby - Exit Message === Since I got a quick response on the last Ruby [question][1] I asked, I have another one that's been bothering me. Is there a one line function call that quits the program and displays a message? I know in Perl its as simple as this: die("Message goes here") Essentially I'm just tired of typing this: puts "Message goes here" exit [1]: http://stackoverflow.com/questions/29511/ruby-convert-integer-to-string
0
29,555
08/27/2008 04:59:23
3,006
08/26/2008 11:39:18
55
0
GUI toolkit for rapid development?
I want to write the front end to the application written in c/c++. I use solaris 10 and plan to port app to other architectures also(Windows first).
gui
null
null
null
null
null
open
GUI toolkit for rapid development? === I want to write the front end to the application written in c/c++. I use solaris 10 and plan to port app to other architectures also(Windows first).
0
29,557
08/27/2008 05:01:30
1,644
08/17/2008 18:23:42
356
23
How to Ease TDD with MSTest / VS2008
I've read time and time again that TDD/test first is more difficult with MSTest than it is with other testing frameworks such as nUnit, MBUnit, etc... What are some suggested manual workarounds and/or 3rd party bits that you suggest when MSTest is the only option due to infrastructure policy? I'm mainly wondering about VS 2008 Team Suite, but I suppose tips for VS 2008 Pro on up would be suitable too since some MSTest functionality is now included with those versions as well.
vs2008
tdd
mstest
null
null
null
open
How to Ease TDD with MSTest / VS2008 === I've read time and time again that TDD/test first is more difficult with MSTest than it is with other testing frameworks such as nUnit, MBUnit, etc... What are some suggested manual workarounds and/or 3rd party bits that you suggest when MSTest is the only option due to infrastructure policy? I'm mainly wondering about VS 2008 Team Suite, but I suppose tips for VS 2008 Pro on up would be suitable too since some MSTest functionality is now included with those versions as well.
0
29,558
08/27/2008 05:02:33
276
08/04/2008 10:44:14
95
9
Split data access class into reader and writer or combine them?
This might be on the "discussy" side, but I would really like to hear your view on this. Previously I have often written data access classes that handled both reading and writing, which often led to poor naming, like FooIoHandler etc. The rule of thumb that classes that are hard to name probably are poorly designed suggests that this is not a good solution. So, I have recently started splitting the data access into FooWriter and FooReader, which leads to nicer names and gives some additional flexibility, but at the same time I kind of like keeping it together, if the classes are not to big. Is a reader/writer separation a better design, or should I combine them? If I should combine them, what the heck should I name the class? Thanks /Erik
oop
reader
writer
classdesign
null
null
open
Split data access class into reader and writer or combine them? === This might be on the "discussy" side, but I would really like to hear your view on this. Previously I have often written data access classes that handled both reading and writing, which often led to poor naming, like FooIoHandler etc. The rule of thumb that classes that are hard to name probably are poorly designed suggests that this is not a good solution. So, I have recently started splitting the data access into FooWriter and FooReader, which leads to nicer names and gives some additional flexibility, but at the same time I kind of like keeping it together, if the classes are not to big. Is a reader/writer separation a better design, or should I combine them? If I should combine them, what the heck should I name the class? Thanks /Erik
0
29,562
08/27/2008 05:03:07
2,908
08/25/2008 21:46:25
84
9
Python distutils - does anyone know how to use it?
I wrote a quick program in python to add a gtk GUI to a cli program. I was wondering how I can create an installer using distutils. Since it's just a GUI frontend for a command line app it only works in *nix anyway so I'm not worried about it being cross platform. my main goal is to create a .deb package for debian/ubuntu users, but I don't understand make/configure files. I've primarily been a web developer up until now. Thanks for your help!
python
installer
linux
distutils
null
null
open
Python distutils - does anyone know how to use it? === I wrote a quick program in python to add a gtk GUI to a cli program. I was wondering how I can create an installer using distutils. Since it's just a GUI frontend for a command line app it only works in *nix anyway so I'm not worried about it being cross platform. my main goal is to create a .deb package for debian/ubuntu users, but I don't understand make/configure files. I've primarily been a web developer up until now. Thanks for your help!
0
29,578
08/27/2008 05:16:26
2,908
08/25/2008 21:46:25
89
9
Python projects to hone your skills
Is there a place with little coding projects you can do to hone your skills? Preferably with answers to compare your code to and/or look at if you can't figure it out. a good example of such a site is <http://www.hackthissite.org>, which has little web security tutorials to help you learn about vulnerabilities and ways people might hack a (your) website. For me one of the biggest things when becoming familiar with new modules etc is trying to use them and looking at other people's code. Unfortunately many times there is no sample code in the documentation. **edit**: Here's what I've found so far, organized by difficulty... ##Absolute Beginner <a href="http://www.upriss.org.uk/python/PythonCourse.html">A Python Course - Uta Priss</a>
python
tutorials
development-practice
null
null
12/10/2011 05:59:42
not constructive
Python projects to hone your skills === Is there a place with little coding projects you can do to hone your skills? Preferably with answers to compare your code to and/or look at if you can't figure it out. a good example of such a site is <http://www.hackthissite.org>, which has little web security tutorials to help you learn about vulnerabilities and ways people might hack a (your) website. For me one of the biggest things when becoming familiar with new modules etc is trying to use them and looking at other people's code. Unfortunately many times there is no sample code in the documentation. **edit**: Here's what I've found so far, organized by difficulty... ##Absolute Beginner <a href="http://www.upriss.org.uk/python/PythonCourse.html">A Python Course - Uta Priss</a>
4
29,580
08/27/2008 05:21:23
2,293
08/21/2008 14:02:56
105
8
Why is pagination so resource-expensive?
It's one of those things that seems to have an odd curve where the more I think about it, the more it makes sense. To a certain extent, of course. And then it doesn't make sense to me at all. Care to enlighten me?
pagination
null
null
null
null
null
open
Why is pagination so resource-expensive? === It's one of those things that seems to have an odd curve where the more I think about it, the more it makes sense. To a certain extent, of course. And then it doesn't make sense to me at all. Care to enlighten me?
0
29,593
08/27/2008 05:35:58
2,375
08/21/2008 22:37:01
1
0
What does ServerVariables["APPL_MD_PATH"] retreives the metabase path for the Application for the ISAPI DLL mean?
I've trying to get an ASP.net (v2) app to work in the debugger and keep running into a problem because the value returned by HttpContext.Current.Request.ServerVariables["APPL_MD_PATH"].ToLower() is an empty string. I have found out that this "Retrieves the metabase path for the Application for the ISAPI DLL". Can anybody shed some light on what this means and why it might be empty? This code works in our live environment but I want it to work on my PC and be able to step through source code so I can look at another problem... Cheers Nigel
.net
asp.net
.net-2.0
debugging
visual-studio
null
open
What does ServerVariables["APPL_MD_PATH"] retreives the metabase path for the Application for the ISAPI DLL mean? === I've trying to get an ASP.net (v2) app to work in the debugger and keep running into a problem because the value returned by HttpContext.Current.Request.ServerVariables["APPL_MD_PATH"].ToLower() is an empty string. I have found out that this "Retrieves the metabase path for the Application for the ISAPI DLL". Can anybody shed some light on what this means and why it might be empty? This code works in our live environment but I want it to work on my PC and be able to step through source code so I can look at another problem... Cheers Nigel
0
29,615
08/27/2008 06:11:03
163
08/02/2008 20:40:09
369
17
Get current process cpu usage in C
On Windows I can do: HANDLE hProcess = GetCurrentProcess(); FILETIME ftCreation, ftExit, ftKernel, ftUser; GetProcessTimes(hProcess, &ftCreation, &ftExit, &ftKernel, &ftUser); SYSTEMTIME stKernel; FileTimeToSystemTime(&ftKernel, &stKernel); SYSTEMTIME stUser; FileTimeToSystemTime(&ftUser, &stUser); printf("Time in kernel mode = %uh %um %us %ums", stKernel.wHour, stKernel.wMinute, stKernel.wSecond, stKernel.wMilliseconds)); printf("Time in user mode = %uh %um %us %ums", stUser.wHour, stUser.wMinute, stUser.wSecond, stUser.wMilliseconds)); How can I do the same thing on *nix?
c
crossplatform
process-management
null
null
null
open
Get current process cpu usage in C === On Windows I can do: HANDLE hProcess = GetCurrentProcess(); FILETIME ftCreation, ftExit, ftKernel, ftUser; GetProcessTimes(hProcess, &ftCreation, &ftExit, &ftKernel, &ftUser); SYSTEMTIME stKernel; FileTimeToSystemTime(&ftKernel, &stKernel); SYSTEMTIME stUser; FileTimeToSystemTime(&ftUser, &stUser); printf("Time in kernel mode = %uh %um %us %ums", stKernel.wHour, stKernel.wMinute, stKernel.wSecond, stKernel.wMilliseconds)); printf("Time in user mode = %uh %um %us %ums", stUser.wHour, stUser.wMinute, stUser.wSecond, stUser.wMilliseconds)); How can I do the same thing on *nix?
0
29,621
08/27/2008 06:17:47
163
08/02/2008 20:40:09
369
17
Change own process priority in C
On Windows I can do: HANDLE hCurrentProcess = GetCurrentProcess(); SetPriorityClass(hCurrentProcess, ABOVE_NORMAL_PRIORITY_CLASS); How can I do the same thing on *nix?
c
crossplatform
process-management
null
null
null
open
Change own process priority in C === On Windows I can do: HANDLE hCurrentProcess = GetCurrentProcess(); SetPriorityClass(hCurrentProcess, ABOVE_NORMAL_PRIORITY_CLASS); How can I do the same thing on *nix?
0
29,624
08/27/2008 06:27:51
1,376
08/14/2008 22:26:57
1
1
How to Maintain Correct Javascript Event After Using cloneNode(true)
I have a form element that contains multiple lines of inputs. Think of each line as attributes of a new object that I want to create in my web application. And, I want to be able to create multiple new objects in one HTTP POST. I'm using Javascript's built-in cloneNode(true) method to clone each line. The problem is that each input-line also has a removal link attached to its onclick-event: // prototype based <div class="input-line"> <input .../> <a href="#" onclick="$(this).up().remove();" /> </div> When the cloned input-line's removal link is clicked, it also removes any input-lines that were cloned from the same dom object. Is it possible to rebind the "this" object to the proper anchor tag after using cloneNode(true) on the above DOM element?
prototype
javascript
clonenode
dom
events
null
open
How to Maintain Correct Javascript Event After Using cloneNode(true) === I have a form element that contains multiple lines of inputs. Think of each line as attributes of a new object that I want to create in my web application. And, I want to be able to create multiple new objects in one HTTP POST. I'm using Javascript's built-in cloneNode(true) method to clone each line. The problem is that each input-line also has a removal link attached to its onclick-event: // prototype based <div class="input-line"> <input .../> <a href="#" onclick="$(this).up().remove();" /> </div> When the cloned input-line's removal link is clicked, it also removes any input-lines that were cloned from the same dom object. Is it possible to rebind the "this" object to the proper anchor tag after using cloneNode(true) on the above DOM element?
0
29,626
08/27/2008 06:36:17
961
08/11/2008 07:02:46
123
8
Cannot access a disposed object - How to fix?
In a VB.NET WinForms project I get an exception "Cannot access a disposed object" when closing a form. It occurs very rarely and I cannot recreate it on demand. The stack trace looks like this: <br><br>`Cannot access a disposed object. Object name: 'dbiSchedule'. at System.Windows.Forms.Control.CreateHandle() at System.Windows.Forms.Control.get_Handle() at System.Windows.Forms.Control.PointToScreen(Point p) at Dbi.WinControl.Schedule.dbiSchedule.a(Boolean A_0) at Dbi.WinControl.Schedule.dbiSchedule.a(Object A_0, EventArgs A_1) at System.Windows.Forms.Timer.OnTick(EventArgs e) at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) `<br><br> The dbiSchedule is a schedule control from Dbi-tech. There is a timer on the form that updates the schedule on the screen every few minutes.<br> Any ideas what is causing the exception and how I might go about fixing it? or even just being able to recreate it on demand?
.net
winforms
vb.net
null
null
null
open
Cannot access a disposed object - How to fix? === In a VB.NET WinForms project I get an exception "Cannot access a disposed object" when closing a form. It occurs very rarely and I cannot recreate it on demand. The stack trace looks like this: <br><br>`Cannot access a disposed object. Object name: 'dbiSchedule'. at System.Windows.Forms.Control.CreateHandle() at System.Windows.Forms.Control.get_Handle() at System.Windows.Forms.Control.PointToScreen(Point p) at Dbi.WinControl.Schedule.dbiSchedule.a(Boolean A_0) at Dbi.WinControl.Schedule.dbiSchedule.a(Object A_0, EventArgs A_1) at System.Windows.Forms.Timer.OnTick(EventArgs e) at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) `<br><br> The dbiSchedule is a schedule control from Dbi-tech. There is a timer on the form that updates the schedule on the screen every few minutes.<br> Any ideas what is causing the exception and how I might go about fixing it? or even just being able to recreate it on demand?
0
29,630
08/27/2008 06:40:13
2,665
08/24/2008 06:43:24
1
3
What is the best way to package and distribute an Excel application.
I've writen an Excel-based, database reporting tool. Currentely, all the VBA code is associated with a single XLS file. The user generates the report by clicking a button on the toolbar. Unfortunately, unless the user has saved the file under another file name, all the reported data gets wiped-out. When I have created similar tools in Word, I can put all the code in a template (.dot) file and call it from there. If I put the template file in the Office startup folder, it will launch everytime I start Word. Is there a similar way, to package and distribute my code in Excel? I've tried using Add-ins, but I didn't find a way to call the code from the application window.
excel
vba
office
2003
null
null
open
What is the best way to package and distribute an Excel application. === I've writen an Excel-based, database reporting tool. Currentely, all the VBA code is associated with a single XLS file. The user generates the report by clicking a button on the toolbar. Unfortunately, unless the user has saved the file under another file name, all the reported data gets wiped-out. When I have created similar tools in Word, I can put all the code in a template (.dot) file and call it from there. If I put the template file in the Office startup folder, it will launch everytime I start Word. Is there a similar way, to package and distribute my code in Excel? I've tried using Add-ins, but I didn't find a way to call the code from the application window.
0
29,633
08/27/2008 06:43:43
2,976
08/26/2008 09:42:25
70
8
What is the important aspect of creating online communities?
What features do you think can help foster creating an online community. From my own observataion i think what is needed: 1. community involvement (let people contribute to the community by giving them control on the community, for example able to vote stuff up/down) 2. low entry barrier (for example, stackoverflow allow you to do stuff without even login.. so that people can involve in the community early) What other things do you thing that I need to do, is there any other important points that I am missing. I am working on a small, web commnunity and I want to start on the right footing...
online-community
null
null
null
null
null
open
What is the important aspect of creating online communities? === What features do you think can help foster creating an online community. From my own observataion i think what is needed: 1. community involvement (let people contribute to the community by giving them control on the community, for example able to vote stuff up/down) 2. low entry barrier (for example, stackoverflow allow you to do stuff without even login.. so that people can involve in the community early) What other things do you thing that I need to do, is there any other important points that I am missing. I am working on a small, web commnunity and I want to start on the right footing...
0
29,643
08/27/2008 06:58:51
380
08/05/2008 10:39:18
1,753
173
Which is a better approach in logging - files or DB?
Okay, here's the scenario. I have a utility that processes tons of records, and enters information to the Database accordingly. It works on these records in multi-threaded batches. Each such batch writes to the same log file for creating a workflow trace for each record. Potentially, we could be making close to a million log writes in a day. Should this log be made into a database residing on another server? Considerations: 1. The obvious disadvantage of multiple threads writing to the same log file is that the log messages are shuffled amongst each other. In the database, they can be grouped by batch id. 2. Performance - which would slow down the batch processing more? writing to a local file or sending log data to a database on another server on the same network. Theoretically, the log file is faster, but is there a gotcha here? Are there any optimizations that can be done on either approach? Thanks.
multithreading
logging
null
null
null
null
open
Which is a better approach in logging - files or DB? === Okay, here's the scenario. I have a utility that processes tons of records, and enters information to the Database accordingly. It works on these records in multi-threaded batches. Each such batch writes to the same log file for creating a workflow trace for each record. Potentially, we could be making close to a million log writes in a day. Should this log be made into a database residing on another server? Considerations: 1. The obvious disadvantage of multiple threads writing to the same log file is that the log messages are shuffled amongst each other. In the database, they can be grouped by batch id. 2. Performance - which would slow down the batch processing more? writing to a local file or sending log data to a database on another server on the same network. Theoretically, the log file is faster, but is there a gotcha here? Are there any optimizations that can be done on either approach? Thanks.
0
29,645
08/27/2008 07:00:43
51
08/01/2008 13:31:13
1,703
76
Set up Powershell Script for Automatic Execution
I have a few lines of PowerShell code that I would like to use as an automated script. The way I would like it to be able to work is to be able to call it using one of the following options: 1. One command line that opens PowerShell, executes script and closes PowerShell (this would be used for a global build-routine) 2. A file that I can double-click to run the above (I would use this method when manually testing components of my build process) I have been going through PowerShell documentation online, and although I can find lots of scripts, I have been unable to find instructions on how to do what I need. Thanks for the help.
powershell
scripting
command-line
null
null
null
open
Set up Powershell Script for Automatic Execution === I have a few lines of PowerShell code that I would like to use as an automated script. The way I would like it to be able to work is to be able to call it using one of the following options: 1. One command line that opens PowerShell, executes script and closes PowerShell (this would be used for a global build-routine) 2. A file that I can double-click to run the above (I would use this method when manually testing components of my build process) I have been going through PowerShell documentation online, and although I can find lots of scripts, I have been unable to find instructions on how to do what I need. Thanks for the help.
0
29,647
08/27/2008 07:05:07
432
08/05/2008 17:18:46
900
41
How do you get the filename of a tempfile to use in Linux?
Let's say I'm creating a program in C that needs to use a tempfile. Creating an ad hoc tempfile in /tmp is probably not a good idea. Is there a function or OS call to supply me with a tempfile name so that I can begin to write and read from it?
tempfile
linux
c
null
null
null
open
How do you get the filename of a tempfile to use in Linux? === Let's say I'm creating a program in C that needs to use a tempfile. Creating an ad hoc tempfile in /tmp is probably not a good idea. Is there a function or OS call to supply me with a tempfile name so that I can begin to write and read from it?
0
29,654
08/27/2008 07:11:46
2,660
08/24/2008 02:59:34
1
0
WinForms databinding and foreign key relationships
I'm developing a WinForms application (.Net 3.5, no WPF) where I want to be able to display foreign key lookups in a databound datagridview. An example of the sort of relationship is that I have a table of orderlines. Orderslines have a foreign key relationship to Products and Products in turn have a foreign key relationship to ProductTypes. I'd like to have a databound datagridview where each row represents an orderline, displaying the line's product and producttype. Users can add or edit orderlines direct to the grid and choose the product for the orderline from a comboBoxColumn - this should then update the producttype column, showing the producttype for the selected product, in the same row. The closest to a good fit I've found so far is to introduce a domain object representing an orderline then bind the datagridview to a collection of these orderlines. I then add properties to the orderline object that expose the product and the producttype, and raise relevant notifypropertychanged events to keep everything up to date. In my orderline repository I can then wire up the mappings between this orderline object and the three tables in my database. This works for the databinding side of things, but having to hand code all that OR-mapping in the repository seem bad. I thought nHibernate would be able to help with this wiring up but am struggling with the mappings through all the foreign keys - they seem to work ok (the foreignkey lookup for an orderline's product creates the correct product object based on the foreign key) until I try to do the databinding, I can't get the databound id columns to update my product or producttype objects. Is my general approach even in the right ballpark? If it is, what is a good solution to the mapping problem? Or, is there a better solution to databinding rows including foreign key lookups that I haven't even considered?
c#
.net
winforms
null
null
null
open
WinForms databinding and foreign key relationships === I'm developing a WinForms application (.Net 3.5, no WPF) where I want to be able to display foreign key lookups in a databound datagridview. An example of the sort of relationship is that I have a table of orderlines. Orderslines have a foreign key relationship to Products and Products in turn have a foreign key relationship to ProductTypes. I'd like to have a databound datagridview where each row represents an orderline, displaying the line's product and producttype. Users can add or edit orderlines direct to the grid and choose the product for the orderline from a comboBoxColumn - this should then update the producttype column, showing the producttype for the selected product, in the same row. The closest to a good fit I've found so far is to introduce a domain object representing an orderline then bind the datagridview to a collection of these orderlines. I then add properties to the orderline object that expose the product and the producttype, and raise relevant notifypropertychanged events to keep everything up to date. In my orderline repository I can then wire up the mappings between this orderline object and the three tables in my database. This works for the databinding side of things, but having to hand code all that OR-mapping in the repository seem bad. I thought nHibernate would be able to help with this wiring up but am struggling with the mappings through all the foreign keys - they seem to work ok (the foreignkey lookup for an orderline's product creates the correct product object based on the foreign key) until I try to do the databinding, I can't get the databound id columns to update my product or producttype objects. Is my general approach even in the right ballpark? If it is, what is a good solution to the mapping problem? Or, is there a better solution to databinding rows including foreign key lookups that I haven't even considered?
0
29,664
08/27/2008 07:18:54
2,231
08/21/2008 03:29:46
1
0
How to catch SQLServer timeout exceptions
I need to specifically catch SQL server timeout exceptions so that they can be handled differently. I know I could catch the SqlException and then check if the message string Contains "Timeout" but was wondering if there is a better way to do it? try { //some code } catch (SqlException ex) { if (ex.Message.Contains("Timeout")) { //handle timeout } else { throw; } }
c#
.net
sql-server
error-handling
null
null
open
How to catch SQLServer timeout exceptions === I need to specifically catch SQL server timeout exceptions so that they can be handled differently. I know I could catch the SqlException and then check if the message string Contains "Timeout" but was wondering if there is a better way to do it? try { //some code } catch (SqlException ex) { if (ex.Message.Contains("Timeout")) { //handle timeout } else { throw; } }
0
29,665
08/27/2008 07:20:38
3,175
08/27/2008 06:54:20
1
0
Free Wavetable Synthesizer?
I need to implement a [wavetable synthesizer][1] in an ARM Cortex-M3 core. I'm looking for any code or tools to help me get started. I'm aware of [this AVR implementation][2]. I actually converted it to a PIC a while back. Now I am looking for something similar, but a little better sounding. ANSI C code would be great. Any code snippets (C or C++), samples, tools, or just general information would be greatly appreciated. Thanks. [1]: http://en.wikipedia.org/wiki/Wavetable [2]: http://elm-chan.org/works/mxb/report.html
audio
microcontroller
arm
synth
null
null
open
Free Wavetable Synthesizer? === I need to implement a [wavetable synthesizer][1] in an ARM Cortex-M3 core. I'm looking for any code or tools to help me get started. I'm aware of [this AVR implementation][2]. I actually converted it to a PIC a while back. Now I am looking for something similar, but a little better sounding. ANSI C code would be great. Any code snippets (C or C++), samples, tools, or just general information would be greatly appreciated. Thanks. [1]: http://en.wikipedia.org/wiki/Wavetable [2]: http://elm-chan.org/works/mxb/report.html
0
29,668
08/27/2008 07:21:35
501
08/06/2008 12:11:33
227
11
Remote debugging accross domains
I have two machines in two different domanins. On both I have VS 2005 installed. I want remote debug between them. Without autentication it is possible but I want to debug managed code. I don't want to debug directly since it is really crappy machine. When I try to attach wiht debugger I get message "The trust relationship between this workstation and primary domain failed." Any idea how to overcome this ? I tried tricks with adding same local username on both machines but with no luck.
vs2005
remote
debugging
null
null
null
open
Remote debugging accross domains === I have two machines in two different domanins. On both I have VS 2005 installed. I want remote debug between them. Without autentication it is possible but I want to debug managed code. I don't want to debug directly since it is really crappy machine. When I try to attach wiht debugger I get message "The trust relationship between this workstation and primary domain failed." Any idea how to overcome this ? I tried tricks with adding same local username on both machines but with no luck.
0
29,677
08/27/2008 07:38:06
381
08/05/2008 10:39:26
1,373
26
How do I make the manifest of a .net assembly private ?
What should I do if I want to release a .net assembly but wish to keep its internals detailed in the manifest private (from a utility such as ildasm.exe) ?
.net
security
null
null
null
null
open
How do I make the manifest of a .net assembly private ? === What should I do if I want to release a .net assembly but wish to keep its internals detailed in the manifest private (from a utility such as ildasm.exe) ?
0
29,678
08/27/2008 07:38:29
298
08/04/2008 13:29:28
168
6
How to aggregate data from SQL Server 2005
I have about 150 000 rows of data written to a database everyday. These row represent outgoing articles for example. Now I need to **show a graph using [SSRS][1] that show the average number of articles per day over time**. **I also need to have a information about the actual number of articles from yesterday**. The idea is to have a aggregated view on all our transactions and have something that can indicate that something is wrong (that we for example send out 20% less articles than the average). My idea is to have yesterdays data moved into [SSAS][2] every night and there store the aggregated value of number of transactions and the actual number of transaction from yesterdays data. Using SSAS would hopefully speed up the reports. **Do you thing this is the right idea? Should I skip SSAS and have reports straight on the raw data? I know how use reporting services on raw data using standard SQL queries but how would this change when querying SSAS? I don't know [SSAS][2] - where do I start ...** [1]: http://www.microsoft.com/technet/prodtechnol/sql/2005/2005ssrs.mspx [2]: http://www.microsoft.com/sql/technologies/analysis/default.mspx
sql-server
ssas
reporting-services
null
null
null
open
How to aggregate data from SQL Server 2005 === I have about 150 000 rows of data written to a database everyday. These row represent outgoing articles for example. Now I need to **show a graph using [SSRS][1] that show the average number of articles per day over time**. **I also need to have a information about the actual number of articles from yesterday**. The idea is to have a aggregated view on all our transactions and have something that can indicate that something is wrong (that we for example send out 20% less articles than the average). My idea is to have yesterdays data moved into [SSAS][2] every night and there store the aggregated value of number of transactions and the actual number of transaction from yesterdays data. Using SSAS would hopefully speed up the reports. **Do you thing this is the right idea? Should I skip SSAS and have reports straight on the raw data? I know how use reporting services on raw data using standard SQL queries but how would this change when querying SSAS? I don't know [SSAS][2] - where do I start ...** [1]: http://www.microsoft.com/technet/prodtechnol/sql/2005/2005ssrs.mspx [2]: http://www.microsoft.com/sql/technologies/analysis/default.mspx
0
29,680
08/27/2008 07:40:01
830
08/09/2008 06:32:11
1
0
Suppress NTLM dialog box after unauthorized request
In a recent sharepoint project, I implemented an authentication webpart which should replace the NTLM authentication dialog box. It works fine as long as the user provides valid credentials. Whenever the user provides invalid credentials, the NTLM dialog box pops up in Internet Explorer. My javscript code which does the authentication via XmlHttpRequest looks like this: function Login() { var request = GetRequest(); // retrieves XmlHttpRequest request.onreadystatechange = function() { if (this.status == 401) { // unauthorized request -> invalid credentials // do something to suppress NTLM dialog box... // already tried location.reload(); and window.location = <url to authentication form>; } } request.open("GET", "http://myServer", false, "domain\\username", "password"); request.send(null); } I don't want the NTLM dialog box to be displayed when the user provides invalid credentials. Instead the postback by the login button in the authentication form should be executed. In other words, the browser should not find out about my unauthorized request. Is there any way to do this via Javascript?
asp.net
javascript
sharepoint
null
null
null
open
Suppress NTLM dialog box after unauthorized request === In a recent sharepoint project, I implemented an authentication webpart which should replace the NTLM authentication dialog box. It works fine as long as the user provides valid credentials. Whenever the user provides invalid credentials, the NTLM dialog box pops up in Internet Explorer. My javscript code which does the authentication via XmlHttpRequest looks like this: function Login() { var request = GetRequest(); // retrieves XmlHttpRequest request.onreadystatechange = function() { if (this.status == 401) { // unauthorized request -> invalid credentials // do something to suppress NTLM dialog box... // already tried location.reload(); and window.location = <url to authentication form>; } } request.open("GET", "http://myServer", false, "domain\\username", "password"); request.send(null); } I don't want the NTLM dialog box to be displayed when the user provides invalid credentials. Instead the postback by the login button in the authentication form should be executed. In other words, the browser should not find out about my unauthorized request. Is there any way to do this via Javascript?
0
29,686
08/27/2008 07:50:05
91
08/01/2008 17:55:22
5,385
232
Set ASP.net executionTimeout in code / "refresh" request
i'll have an ASP.net page that creates some Excel Sheets and sends them to the user. The problem is, sometimes I get Http timeouts, presumably because the Request runs longer than executionTimeout (110 Seconds per default). I just wonder what my options are to prevent this, without wanting to generally increase the executionTimeout in web.config? In PHP, [set_time_limit][1] exists which can be used in a function to extend its life, but I did not see anything like that in C#/ASP.net? How do you handle long-running functions in ASP.net? [1]: http://fr.php.net/manual/en/function.set-time-limit.php
c#
asp.net
null
null
null
null
open
Set ASP.net executionTimeout in code / "refresh" request === i'll have an ASP.net page that creates some Excel Sheets and sends them to the user. The problem is, sometimes I get Http timeouts, presumably because the Request runs longer than executionTimeout (110 Seconds per default). I just wonder what my options are to prevent this, without wanting to generally increase the executionTimeout in web.config? In PHP, [set_time_limit][1] exists which can be used in a function to extend its life, but I did not see anything like that in C#/ASP.net? How do you handle long-running functions in ASP.net? [1]: http://fr.php.net/manual/en/function.set-time-limit.php
0
29,689
08/27/2008 07:55:06
2,937
08/26/2008 08:25:36
11
3
Javadoc template generator
I have a large codebase without javadoc and I want to run a program to write a skeleton with the basic javadoc information (e.g. for each method's parameter write @param...) so I just have to fill the gaps left. Somebody knows a good solution for this?
java
javadoc
documentation
generation
null
null
open
Javadoc template generator === I have a large codebase without javadoc and I want to run a program to write a skeleton with the basic javadoc information (e.g. for each method's parameter write @param...) so I just have to fill the gaps left. Somebody knows a good solution for this?
0
29,694
08/27/2008 07:57:16
2,077
08/20/2008 07:26:21
148
3
How to work around unsupported unsigned integer field types in MS SQL?
Trying to make a MySQL-based application support MS SQL, I ran into the following issue: I keep MySQL's auto_increment as unsigned integer fields (of the appropriate size) in order to make use of the full range, as I know there will never be negative values. MS SQL does not support the unsigned attribute on all integer types, so I have to choose between ditching half the value range or creating some workaround. One very naive approach would be to put some code in the database abstraction code or in a stroed procedure that converts between negative values on the db side and values from the larger portion of the unsigned range. This would mess up sorting of course, and also it would not work with the auto-id feature. I can't think of a _good_ workaround right now, is there any? Or otherwise, is there a good argument why there never will be, so I can happily give up and just don't use half the range?
db-portability
mssql
null
null
null
null
open
How to work around unsupported unsigned integer field types in MS SQL? === Trying to make a MySQL-based application support MS SQL, I ran into the following issue: I keep MySQL's auto_increment as unsigned integer fields (of the appropriate size) in order to make use of the full range, as I know there will never be negative values. MS SQL does not support the unsigned attribute on all integer types, so I have to choose between ditching half the value range or creating some workaround. One very naive approach would be to put some code in the database abstraction code or in a stroed procedure that converts between negative values on the db side and values from the larger portion of the unsigned range. This would mess up sorting of course, and also it would not work with the auto-id feature. I can't think of a _good_ workaround right now, is there any? Or otherwise, is there a good argument why there never will be, so I can happily give up and just don't use half the range?
0
29,696
08/27/2008 07:59:21
2,253
08/21/2008 10:34:11
1
0
How do you stop the Designer generating code for public properties on a User Control?
How do you stop the designer from auto generating code that sets the value for public properties on a user control?
c#
winforms
null
null
null
null
open
How do you stop the Designer generating code for public properties on a User Control? === How do you stop the designer from auto generating code that sets the value for public properties on a user control?
0
29,699
08/27/2008 08:01:04
445
08/05/2008 19:37:25
115
6
How do I deal with quotes ' in SQL
I have a database with names in it such as John Doe etc. Unfortunately some of these names contain quotes like Keiran O'Keefe. Now when I try and search for such names as follows: SELECT * FROM PEOPLE WHERE SURNAME='O'Keefe' I (understandably) get an error. How do I prevent this error from occurring. I am using Oracle and PLSQL.
sql
oracle
null
null
null
null
open
How do I deal with quotes ' in SQL === I have a database with names in it such as John Doe etc. Unfortunately some of these names contain quotes like Keiran O'Keefe. Now when I try and search for such names as follows: SELECT * FROM PEOPLE WHERE SURNAME='O'Keefe' I (understandably) get an error. How do I prevent this error from occurring. I am using Oracle and PLSQL.
0
29,700
08/27/2008 08:01:42
2,976
08/26/2008 09:42:25
70
8
Can someone point me to some guides for WPF
I am having trouble finding good guides for WPF. I have experience in C# and .NET but I don't know anything about WPF except for the regular marketing-ish description of the technology as a whole. Can anyone point me to a good beginner's tutorial/guide on WPF.
wpf
tutorials
null
null
null
null
open
Can someone point me to some guides for WPF === I am having trouble finding good guides for WPF. I have experience in C# and .NET but I don't know anything about WPF except for the regular marketing-ish description of the technology as a whole. Can anyone point me to a good beginner's tutorial/guide on WPF.
0
29,709
08/27/2008 08:05:37
238
08/03/2008 21:42:37
1,138
48
How do I get the coordinates of the caret in text boxes?
I am using jQuery and trying to find a cross browser way to get the coordinates of the caret in text areas and input boxes such that I can place an absolutely positioned div around this location ? Is there some jQuery plugin? or javascript snippet to do just that ?
javascript
cross-browser
null
null
null
null
open
How do I get the coordinates of the caret in text boxes? === I am using jQuery and trying to find a cross browser way to get the coordinates of the caret in text areas and input boxes such that I can place an absolutely positioned div around this location ? Is there some jQuery plugin? or javascript snippet to do just that ?
0
29,731
08/27/2008 08:22:55
2,253
08/21/2008 10:34:11
1
1
What is the best way to sort a data bound combo box?
I have done a bit of research into this and it seems that the only way to sort a data bound combo box is to sort the data source itself (a DataTable in a DataSet in this case). If that is the case then the question becomes what is the best way to sort a DataTable?
c#
data-binding
null
null
null
null
open
What is the best way to sort a data bound combo box? === I have done a bit of research into this and it seems that the only way to sort a data bound combo box is to sort the data source itself (a DataTable in a DataSet in this case). If that is the case then the question becomes what is the best way to sort a DataTable?
0
29,733
08/27/2008 08:24:42
1,968
08/19/2008 15:59:21
1,351
115
Trackback/Pingback libraries for Python/Ruby?
I'm considering writing my own blog but I have had some issues deciding for an appropriate software. From my survey so far I have concluded that the easiest, most feature-rich, free software is [Wordpress][wordpress]. However, I would very much like to use several components written in either Python or Ruby, e.g. either [Pygments][pygments] or [CodeRay][coderay] as a source code formatter. I therefore consider the alternative of writing my own blogging software. The only missing part is the communication with other blogs using Trackback/Pingback. Does anyone know a good implementation in either Ruby or Python? [wordpress]: http://wordpress.org/ [pygments]: http://pygments.org/ [coderay]: http://coderay.rubychan.de/
python
ruby
blogs
null
null
null
open
Trackback/Pingback libraries for Python/Ruby? === I'm considering writing my own blog but I have had some issues deciding for an appropriate software. From my survey so far I have concluded that the easiest, most feature-rich, free software is [Wordpress][wordpress]. However, I would very much like to use several components written in either Python or Ruby, e.g. either [Pygments][pygments] or [CodeRay][coderay] as a source code formatter. I therefore consider the alternative of writing my own blogging software. The only missing part is the communication with other blogs using Trackback/Pingback. Does anyone know a good implementation in either Ruby or Python? [wordpress]: http://wordpress.org/ [pygments]: http://pygments.org/ [coderay]: http://coderay.rubychan.de/
0
29,734
08/27/2008 08:25:05
959
08/11/2008 05:23:02
33
7
Why stateless session beans are single threaded ?
As per my understanding stateless session beans are used to code the business logic. They can not store data in their instance variables because their instance is shared by multiple requests. So they seem to be more like Singleton classes. However the difference is contain creates (or reuses from pool) the separate instance of stateless session beans for every request. After googling I could find the reasoning that the JEE specifiaction says they are suppose to be single threaded. But I can't get the reason why the are specified to be **SINGLE THREADED** ? Thanks in advance.
java
ejb
null
null
null
null
open
Why stateless session beans are single threaded ? === As per my understanding stateless session beans are used to code the business logic. They can not store data in their instance variables because their instance is shared by multiple requests. So they seem to be more like Singleton classes. However the difference is contain creates (or reuses from pool) the separate instance of stateless session beans for every request. After googling I could find the reasoning that the JEE specifiaction says they are suppose to be single threaded. But I can't get the reason why the are specified to be **SINGLE THREADED** ? Thanks in advance.
0
29,736
08/27/2008 08:26:05
116
08/02/2008 05:51:57
4,189
209
What open source code repository should I use?
Sourceforge, Google Code, etc... - what else is out there? - which ones do you use? - what are their pros and cons? - how's your experience with them? - which would you recommend for a new project? etc...
repositories
open-source
version-control
bug-tracking
null
02/05/2012 17:06:54
not constructive
What open source code repository should I use? === Sourceforge, Google Code, etc... - what else is out there? - which ones do you use? - what are their pros and cons? - how's your experience with them? - which would you recommend for a new project? etc...
4
29,743
08/27/2008 08:33:18
116
08/02/2008 05:51:57
4,194
209
How to select an SQL database?
We're living in a golden age of databases, with numerous high quality commercial and free databases. This is great, but the downside is there's not a simple obvious choice for someone who needs a database for his next project. - What are the constraints/criteria you use for selecting a database? - How well do the various databases you've used meet those constraints/criteria? - What special features do the databases have? - Which databases do you feel comfortable recommending to others? etc...
sql
database
evaluation
null
null
null
open
How to select an SQL database? === We're living in a golden age of databases, with numerous high quality commercial and free databases. This is great, but the downside is there's not a simple obvious choice for someone who needs a database for his next project. - What are the constraints/criteria you use for selecting a database? - How well do the various databases you've used meet those constraints/criteria? - What special features do the databases have? - Which databases do you feel comfortable recommending to others? etc...
0
29,744
08/27/2008 08:36:37
116
08/02/2008 05:51:57
4,199
209
How do you manage schema upgrades to a production database?
This seems to be an overlooked area that could really use some insight. What are your best practices for: - making an upgrade procedure - backing out in case of errors - syncing code and database changes - testing prior to deployment - mechanics of modifying the table etc...
database
administration
installation
null
null
null
open
How do you manage schema upgrades to a production database? === This seems to be an overlooked area that could really use some insight. What are your best practices for: - making an upgrade procedure - backing out in case of errors - syncing code and database changes - testing prior to deployment - mechanics of modifying the table etc...
0
29,746
08/27/2008 08:40:50
115
08/02/2008 05:44:40
349
54
Directory Sizes on Remote Host
My hosting company does not provide an interface for me to see which folders are consuming the most ammount of space so what I'm looking for is something that will show me the size of each folder within my main folder recursively, I done know of anything on the net, and did a few searches however I came up with no results. This is a LAMP server with a CGI-Bin so most any PHP script should work or any thing that will work in the CGI-Bin. Something implementing graphs (GD/ImageMagik) would be best but not required.<br /> It appears that my host supports Perl only in the CGI-BIN, but I am going to call and verify that.
php
cgi
hosting
directory-size
null
null
open
Directory Sizes on Remote Host === My hosting company does not provide an interface for me to see which folders are consuming the most ammount of space so what I'm looking for is something that will show me the size of each folder within my main folder recursively, I done know of anything on the net, and did a few searches however I came up with no results. This is a LAMP server with a CGI-Bin so most any PHP script should work or any thing that will work in the CGI-Bin. Something implementing graphs (GD/ImageMagik) would be best but not required.<br /> It appears that my host supports Perl only in the CGI-BIN, but I am going to call and verify that.
0
29,751
08/27/2008 08:44:24
2,138
08/20/2008 14:23:45
13
1
Problems while submitting a UTF-8 form textarea with JQuery/AJAX
I am having problems submitting forms which contain UTF-8 strings with Ajax. I am developing a Struts web application which runs in a tomcat server. This is the environment i set up to work with UTF-8: - I have added to tomcat's **conf/server.xml** the attributes **URIEncoding="UTF-8" useBodyEncodingForURI="true"** into the **Connector** tag. - I have a **utf-8_general_ci** database - I am using the next filter to ensure my request and responses are encoded in UTF-8 package filters; import java.io.IOException; import javax.servlet.*; public class UTF8Filter implements Filter { public void destroy() {} public void doFilter(ServletRequest request,ServletResponse response, FilterChain chain) throws IOException, ServletException { request.setCharacterEncoding("UTF-8"); response.setContentType("text/html;charset=UTF-8"); chain.doFilter(request, response); } public void init(FilterConfig filterConfig) throws ServletException { } } - I use this filter in WEB-INF/web.xml - I am using the next code for my json responses: public static void populateWithJSON(HttpServletResponse response,JSONObject json) { String CONTENT_TYPE="text/x-json;charset=UTF-8"; response.setContentType(CONTENT_TYPE); response.setHeader("Cache-Control", "no-cache"); try { response.getWriter().write(json.toString()); } catch (IOException e) { throw new ApplicationException("Application Exception raised in RetrievedStories", e); } } Everything seems to work fine (content coming from the database is displayed properly and i am able to submit forms which are stored in UTF-8 in the database). The problem is that i am **not able to submit forms with AJAX**. I use JQuery and i thought the problem was the lack of contentType field in ajax request. But i was wrong. I have a really simple form to submit comments which contains of an id and a body. The body field can be in different languages such as spanish, german or whatever. If i submit my form with body textarea containing *contraseña*, firebug shows me: ### Request Headers - ***Host*** localhost:8080 - ***Accept-Charset*** ISO-8859-1, utf-8;q=0.7;*q=0.7 - ***Content-Type*** application/x-www-form-urlencoded; charset UTF-8 If i excecute in Firebug *Copy Location with parameters* the econding seems already wrong http://localhost:8080/Cerepedia/corporate/postStoryComment.do?&body=contrase%C3%B1a&id=88 This is my JQuery code: function addComment() { var comment_body = $("#postCommentForm textarea").val(); var item_id = $("#postCommentForm input:hidden").val(); var url = rooturl+"corporate/postStoryComment.do?"; $.post(url, { id: item_id, body: comment_body } , function(data){ /* Do stuff with the answer */ }, "json"); } A submission of a form with JQuery is causing the next error server side (Note i am using hibernate). **Any help or ideas is really appreciated.** javax.servlet.ServletException: org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.cerebra.cerepedia.security.AuthorizationFilter.doFilter(AuthorizationFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.cerebra.cerepedia.hibernate.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:30) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at filters.UTF8Filter.doFilter(UTF8Filter.java:14) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) Caused by: org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:249) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338) at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106) at com.cerebra.cerepedia.item.dao.ItemDAOHibernate.addComment(ItemDAOHibernate.java:505) at com.cerebra.cerepedia.item.ItemManagerPOJOImpl.addComment(ItemManagerPOJOImpl.java:164) at com.cerebra.cerepedia.struts.item.ItemAction.addComment(ItemAction.java:126) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269) at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:170) at org.apache.struts.actions.MappingDispatchAction.execute(MappingDispatchAction.java:166) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) ... 26 more Caused by: java.sql.BatchUpdateException: Incorrect string value: '\xF1a' for column 'body' at row 1 at com.mysql.jdbc.ServerPreparedStatement.executeBatch(ServerPreparedStatement.java:657) at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeBatch(NewProxyPreparedStatement.java:1723) at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:242) ... 44 more 26-ago-2008 19:54:48 org.apache.catalina.core.StandardWrapperValve invoke GRAVE: Servlet.service() para servlet action lanzó excepción java.sql.BatchUpdateException: Incorrect string value: '\xF1a' for column 'body' at row 1 at com.mysql.jdbc.ServerPreparedStatement.executeBatch(ServerPreparedStatement.java:657) at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeBatch(NewProxyPreparedStatement.java:1723) at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:242) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338) at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106) at com.cerebra.cerepedia.item.dao.ItemDAOHibernate.addComment(ItemDAOHibernate.java:505) at com.cerebra.cerepedia.item.ItemManagerPOJOImpl.addComment(ItemManagerPOJOImpl.java:164) at com.cerebra.cerepedia.struts.item.ItemAction.addComment(ItemAction.java:126) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269) at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:170) at org.apache.struts.actions.MappingDispatchAction.execute(MappingDispatchAction.java:166) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.cerebra.cerepedia.security.AuthorizationFilter.doFilter(AuthorizationFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.cerebra.cerepedia.hibernate.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:30) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at filters.UTF8Filter.doFilter(UTF8Filter.java:14) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) javax.servlet.ServletException: java.lang.NumberFormatException: null at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.cerebra.cerepedia.security.AuthorizationFilter.doFilter(AuthorizationFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.cerebra.cerepedia.hibernate.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:30) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at filters.UTF8Filter.doFilter(UTF8Filter.java:14) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NumberFormatException: null at java.lang.Long.parseLong(Unknown Source) at java.lang.Long.valueOf(Unknown Source) at com.cerebra.cerepedia.struts.item.ItemAction.addComment(ItemAction.java:120) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269) at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:170) at org.apache.struts.actions.MappingDispatchAction.execute(MappingDispatchAction.java:166) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) ... 26 more 26-ago-2008 20:13:25 org.apache.catalina.core.StandardWrapperValve invoke GRAVE: Servlet.service() para servlet action lanzó excepción java.lang.NumberFormatException: null at java.lang.Long.parseLong(Unknown Source) at java.lang.Long.valueOf(Unknown Source) at com.cerebra.cerepedia.struts.item.ItemAction.addComment(ItemAction.java:120) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269) at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:170) at org.apache.struts.actions.MappingDispatchAction.execute(MappingDispatchAction.java:166) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.cerebra.cerepedia.security.AuthorizationFilter.doFilter(AuthorizationFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.cerebra.cerepedia.hibernate.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:30) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at filters.UTF8Filter.doFilter(UTF8Filter.java:14) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source)
ajax
jquery
encoding
null
null
null
open
Problems while submitting a UTF-8 form textarea with JQuery/AJAX === I am having problems submitting forms which contain UTF-8 strings with Ajax. I am developing a Struts web application which runs in a tomcat server. This is the environment i set up to work with UTF-8: - I have added to tomcat's **conf/server.xml** the attributes **URIEncoding="UTF-8" useBodyEncodingForURI="true"** into the **Connector** tag. - I have a **utf-8_general_ci** database - I am using the next filter to ensure my request and responses are encoded in UTF-8 package filters; import java.io.IOException; import javax.servlet.*; public class UTF8Filter implements Filter { public void destroy() {} public void doFilter(ServletRequest request,ServletResponse response, FilterChain chain) throws IOException, ServletException { request.setCharacterEncoding("UTF-8"); response.setContentType("text/html;charset=UTF-8"); chain.doFilter(request, response); } public void init(FilterConfig filterConfig) throws ServletException { } } - I use this filter in WEB-INF/web.xml - I am using the next code for my json responses: public static void populateWithJSON(HttpServletResponse response,JSONObject json) { String CONTENT_TYPE="text/x-json;charset=UTF-8"; response.setContentType(CONTENT_TYPE); response.setHeader("Cache-Control", "no-cache"); try { response.getWriter().write(json.toString()); } catch (IOException e) { throw new ApplicationException("Application Exception raised in RetrievedStories", e); } } Everything seems to work fine (content coming from the database is displayed properly and i am able to submit forms which are stored in UTF-8 in the database). The problem is that i am **not able to submit forms with AJAX**. I use JQuery and i thought the problem was the lack of contentType field in ajax request. But i was wrong. I have a really simple form to submit comments which contains of an id and a body. The body field can be in different languages such as spanish, german or whatever. If i submit my form with body textarea containing *contraseña*, firebug shows me: ### Request Headers - ***Host*** localhost:8080 - ***Accept-Charset*** ISO-8859-1, utf-8;q=0.7;*q=0.7 - ***Content-Type*** application/x-www-form-urlencoded; charset UTF-8 If i excecute in Firebug *Copy Location with parameters* the econding seems already wrong http://localhost:8080/Cerepedia/corporate/postStoryComment.do?&body=contrase%C3%B1a&id=88 This is my JQuery code: function addComment() { var comment_body = $("#postCommentForm textarea").val(); var item_id = $("#postCommentForm input:hidden").val(); var url = rooturl+"corporate/postStoryComment.do?"; $.post(url, { id: item_id, body: comment_body } , function(data){ /* Do stuff with the answer */ }, "json"); } A submission of a form with JQuery is causing the next error server side (Note i am using hibernate). **Any help or ideas is really appreciated.** javax.servlet.ServletException: org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.cerebra.cerepedia.security.AuthorizationFilter.doFilter(AuthorizationFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.cerebra.cerepedia.hibernate.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:30) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at filters.UTF8Filter.doFilter(UTF8Filter.java:14) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) Caused by: org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:249) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338) at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106) at com.cerebra.cerepedia.item.dao.ItemDAOHibernate.addComment(ItemDAOHibernate.java:505) at com.cerebra.cerepedia.item.ItemManagerPOJOImpl.addComment(ItemManagerPOJOImpl.java:164) at com.cerebra.cerepedia.struts.item.ItemAction.addComment(ItemAction.java:126) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269) at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:170) at org.apache.struts.actions.MappingDispatchAction.execute(MappingDispatchAction.java:166) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) ... 26 more Caused by: java.sql.BatchUpdateException: Incorrect string value: '\xF1a' for column 'body' at row 1 at com.mysql.jdbc.ServerPreparedStatement.executeBatch(ServerPreparedStatement.java:657) at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeBatch(NewProxyPreparedStatement.java:1723) at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:242) ... 44 more 26-ago-2008 19:54:48 org.apache.catalina.core.StandardWrapperValve invoke GRAVE: Servlet.service() para servlet action lanzó excepción java.sql.BatchUpdateException: Incorrect string value: '\xF1a' for column 'body' at row 1 at com.mysql.jdbc.ServerPreparedStatement.executeBatch(ServerPreparedStatement.java:657) at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeBatch(NewProxyPreparedStatement.java:1723) at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:242) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338) at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106) at com.cerebra.cerepedia.item.dao.ItemDAOHibernate.addComment(ItemDAOHibernate.java:505) at com.cerebra.cerepedia.item.ItemManagerPOJOImpl.addComment(ItemManagerPOJOImpl.java:164) at com.cerebra.cerepedia.struts.item.ItemAction.addComment(ItemAction.java:126) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269) at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:170) at org.apache.struts.actions.MappingDispatchAction.execute(MappingDispatchAction.java:166) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.cerebra.cerepedia.security.AuthorizationFilter.doFilter(AuthorizationFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.cerebra.cerepedia.hibernate.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:30) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at filters.UTF8Filter.doFilter(UTF8Filter.java:14) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) javax.servlet.ServletException: java.lang.NumberFormatException: null at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.cerebra.cerepedia.security.AuthorizationFilter.doFilter(AuthorizationFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.cerebra.cerepedia.hibernate.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:30) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at filters.UTF8Filter.doFilter(UTF8Filter.java:14) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NumberFormatException: null at java.lang.Long.parseLong(Unknown Source) at java.lang.Long.valueOf(Unknown Source) at com.cerebra.cerepedia.struts.item.ItemAction.addComment(ItemAction.java:120) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269) at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:170) at org.apache.struts.actions.MappingDispatchAction.execute(MappingDispatchAction.java:166) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) ... 26 more 26-ago-2008 20:13:25 org.apache.catalina.core.StandardWrapperValve invoke GRAVE: Servlet.service() para servlet action lanzó excepción java.lang.NumberFormatException: null at java.lang.Long.parseLong(Unknown Source) at java.lang.Long.valueOf(Unknown Source) at com.cerebra.cerepedia.struts.item.ItemAction.addComment(ItemAction.java:120) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269) at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:170) at org.apache.struts.actions.MappingDispatchAction.execute(MappingDispatchAction.java:166) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.cerebra.cerepedia.security.AuthorizationFilter.doFilter(AuthorizationFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.cerebra.cerepedia.hibernate.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:30) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at filters.UTF8Filter.doFilter(UTF8Filter.java:14) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source)
0
29,760
08/27/2008 08:52:35
592
08/07/2008 00:51:32
91
6
stopping MSI from launching an EXE in the SYSTEM context
Ok, I've got a problem here with an MSI deployment that I'm working on (using Installshield) we have a program running in the background that needs to run per-user, this needs to start automatically without user intervention. The problem is with GPO/AD deployment the application is started in the SYSTEM context before anyone is logged in rather than as the user who is about to log in. The application can only run once per user, and it seems that the SYSTEM process prevents the USER process from starting. This means the PCs need to be rebooted twice before the software can be deployed to the users. Any ideas how to stop this? Basically the current workflow is: 1. Installation/upgrade runs... kill background app 2. install new files 3. Startup background application this works for Published applications and interactive MSI installations - it's only 'Assigned' applications that seem to have the problem. As step 3 happens in the SYSTEM context rather than the user context :( Ideally I'd have the development team patch the EXE to prevent launching in the SYSTEM context, but that's a release cycle away and I'm looking for an installer based solution for the interim. (Edit: I don't know Installscript... so I'm guessing VBscript is probably the way to if there's no native Installshield stuff I can use)
msi
installer
windows-installer
installshield
installation
null
open
stopping MSI from launching an EXE in the SYSTEM context === Ok, I've got a problem here with an MSI deployment that I'm working on (using Installshield) we have a program running in the background that needs to run per-user, this needs to start automatically without user intervention. The problem is with GPO/AD deployment the application is started in the SYSTEM context before anyone is logged in rather than as the user who is about to log in. The application can only run once per user, and it seems that the SYSTEM process prevents the USER process from starting. This means the PCs need to be rebooted twice before the software can be deployed to the users. Any ideas how to stop this? Basically the current workflow is: 1. Installation/upgrade runs... kill background app 2. install new files 3. Startup background application this works for Published applications and interactive MSI installations - it's only 'Assigned' applications that seem to have the problem. As step 3 happens in the SYSTEM context rather than the user context :( Ideally I'd have the development team patch the EXE to prevent launching in the SYSTEM context, but that's a release cycle away and I'm looking for an installer based solution for the interim. (Edit: I don't know Installscript... so I'm guessing VBscript is probably the way to if there's no native Installshield stuff I can use)
0
29,761
08/27/2008 08:54:50
2,954
08/26/2008 08:53:06
68
10
Good Git repository viewer for Mac
Can anyone recommend a good repository viewer for Git, similar to gitk, that works on Mac OS X Leopard? (I'm not saying gitk doesn't work) Of course I would like a native Mac application, but as I haven't found any, what are the best options to gitk? I know about gitview, but I'm looking forward to evaluate as many alternatives as possible. <http://sourceforge.net/projects/gitview>
git
osx
null
null
null
null
open
Good Git repository viewer for Mac === Can anyone recommend a good repository viewer for Git, similar to gitk, that works on Mac OS X Leopard? (I'm not saying gitk doesn't work) Of course I would like a native Mac application, but as I haven't found any, what are the best options to gitk? I know about gitview, but I'm looking forward to evaluate as many alternatives as possible. <http://sourceforge.net/projects/gitview>
0
29,775
08/27/2008 09:20:22
2,374
08/21/2008 22:14:30
88
8
Software Deployment in a Virtual Environment
I'm looking for a way to give out preview or demo versions of our software to our customers as easy as possible. The software we are currently developing is a pretty big project. It consists of a client environment, an application server, various databases, web services host etc. The project is developed incrementally and we want to ship the bits in intervals of one to two months. The first deliveries will not be used in production. They have the puropse of a demo to encourage the customers to give feedback. We don't want to put burden on the customers to install and configure the system. All in all we are looking for a way to ease the deployment, installation and configuration pain. What I thought of was to use a virtualizing technique to preinstall and preconfigure a virtual machine with all components that are neccessary. Our customers just have to mount the virtual image and run the application. I would like to hear from folks who use this technique. I suppose there are some difficulties as well. Especially, what about licensing issues with the installed OS? Perhaps it is possible to have the virtual machine expire after a certain period of time. Any experiences out there?
deployment
configuration
null
null
null
null
open
Software Deployment in a Virtual Environment === I'm looking for a way to give out preview or demo versions of our software to our customers as easy as possible. The software we are currently developing is a pretty big project. It consists of a client environment, an application server, various databases, web services host etc. The project is developed incrementally and we want to ship the bits in intervals of one to two months. The first deliveries will not be used in production. They have the puropse of a demo to encourage the customers to give feedback. We don't want to put burden on the customers to install and configure the system. All in all we are looking for a way to ease the deployment, installation and configuration pain. What I thought of was to use a virtualizing technique to preinstall and preconfigure a virtual machine with all components that are neccessary. Our customers just have to mount the virtual image and run the application. I would like to hear from folks who use this technique. I suppose there are some difficulties as well. Especially, what about licensing issues with the installed OS? Perhaps it is possible to have the virtual machine expire after a certain period of time. Any experiences out there?
0
29,777
08/27/2008 09:21:34
1,068
08/12/2008 08:44:09
-9
3
Visual Studio 2005 Project options
I have a solution in Visual Studio 2005(professional Edition) which in turn has 8 projects.I am facing a problem that even after i set the Command Arguments in the Project settings of the relevant project, it doesnt accept those command line arguments and it shows argc = 1, inspite of me giving more than 1 command arguments. Tried making the settings of this Solution similar to a working solution, but no success. Any pointers? -Ajit.
visual-studio-2005
null
null
null
null
null
open
Visual Studio 2005 Project options === I have a solution in Visual Studio 2005(professional Edition) which in turn has 8 projects.I am facing a problem that even after i set the Command Arguments in the Project settings of the relevant project, it doesnt accept those command line arguments and it shows argc = 1, inspite of me giving more than 1 command arguments. Tried making the settings of this Solution similar to a working solution, but no success. Any pointers? -Ajit.
0
29,782
08/27/2008 09:25:45
2,758
08/24/2008 22:12:45
120
9
Default Routes
I use my mobile phone for connection to the internet on my laptop, I also have a wired connection to a LAN which doesn't have internet conectivity, it just has our TFS server on it. The problem is that I can't use the internet (from the phone) with the LAN cable plugged in. Is there a way to set the default route to my phone?
networking
tcp
null
null
null
null
open
Default Routes === I use my mobile phone for connection to the internet on my laptop, I also have a wired connection to a LAN which doesn't have internet conectivity, it just has our TFS server on it. The problem is that I can't use the internet (from the phone) with the LAN cable plugged in. Is there a way to set the default route to my phone?
0
29,802
08/27/2008 09:38:37
1,116
08/12/2008 13:25:41
463
38
How do you do version a Web Application?
What are the strategies for versioning of a web application/ web site? I notice that here in the Beta there is an svn revision number in the footer and thats great for an application that uses svn over one repository. But what if you use externals or a different source control application that versions separate files? It seems easy with a Desktop app but I can't seem to find a suitable way of versioning for an asp.net web application.
versioning
version-control
null
null
null
null
open
How do you do version a Web Application? === What are the strategies for versioning of a web application/ web site? I notice that here in the Beta there is an svn revision number in the footer and thats great for an application that uses svn over one repository. But what if you use externals or a different source control application that versions separate files? It seems easy with a Desktop app but I can't seem to find a suitable way of versioning for an asp.net web application.
0
29,806
08/27/2008 09:40:00
982
08/11/2008 12:08:33
88
12
How to change Instantiated Objects Font Colour in Visual Studio
I know the colours are changed in Environment > Fonts and Colors but I haven't found out which Display Item the object is. Can someone please tell how I can colour the following code: > lblMessage.Text = "You have successfully answered my question!" I have the string coloured pink, I would like the lblMessage purple and the .Text a light green. For me the darker the colour the less it will "change". I won't often change object names, I'll more often change properties and am always changing strings - although I have another question about this that I'll post later. Thanks
colours
visual-studio-2005
environment
null
null
null
open
How to change Instantiated Objects Font Colour in Visual Studio === I know the colours are changed in Environment > Fonts and Colors but I haven't found out which Display Item the object is. Can someone please tell how I can colour the following code: > lblMessage.Text = "You have successfully answered my question!" I have the string coloured pink, I would like the lblMessage purple and the .Text a light green. For me the darker the colour the less it will "change". I won't often change object names, I'll more often change properties and am always changing strings - although I have another question about this that I'll post later. Thanks
0
29,810
08/27/2008 09:42:59
1,261
08/14/2008 01:09:20
19
3
Is version control (ie. Subversion) applicable in document tracking?
I am in charge of about 100+ documents (word document, not source code) that needs revision by different people in my department. Currently all the documents are in a shared folder where they will retrieve, revise and save back into the folder. What I am doing now is looking up the "date modified" in the shared folder, opened up recent modified documents and use the "Track Change" function in MS Word to apply the changes. I find this a bit tedious. So will it be better and easier if I commit this in a version control database?
version-control
tracking
null
null
null
null
open
Is version control (ie. Subversion) applicable in document tracking? === I am in charge of about 100+ documents (word document, not source code) that needs revision by different people in my department. Currently all the documents are in a shared folder where they will retrieve, revise and save back into the folder. What I am doing now is looking up the "date modified" in the shared folder, opened up recent modified documents and use the "Track Change" function in MS Word to apply the changes. I find this a bit tedious. So will it be better and easier if I commit this in a version control database?
0
29,814
08/27/2008 09:44:06
1,893
08/19/2008 07:03:51
1
1
How to do crossdomain calls from Silverlight?
What's needed to succesfully make a crossdomain call from Silverlight?
silverlight
null
null
null
null
null
open
How to do crossdomain calls from Silverlight? === What's needed to succesfully make a crossdomain call from Silverlight?
0
29,820
08/27/2008 09:48:00
142
08/02/2008 12:41:43
128
10
Java return copy
In Java, say you have a class that wraps an ArrayList (or any collection) of objects. How would you return one of those objects such that the caller will not see any future changes to the object made in the ArrayList? i.e. you want to return a deep copy of the object, but you don't know if it is cloneable.
java
null
null
null
null
null
open
Java return copy === In Java, say you have a class that wraps an ArrayList (or any collection) of objects. How would you return one of those objects such that the caller will not see any future changes to the object made in the ArrayList? i.e. you want to return a deep copy of the object, but you don't know if it is cloneable.
0
29,821
08/27/2008 09:49:08
2,594
08/23/2008 12:42:57
53
9
A Good, Scalable Webhost For PHP
I'm currently in the process of looking for a webhost for PHP that is feature rich (cheap is not a priority here), has excellent technical support and can scale along with the website. Essentially, is there anything like [Engine Yard][1] for PHP? [1]: http://www.engineyard.com "Engine Yard"
php
web-hosting
web-host
null
null
11/10/2011 07:57:03
off topic
A Good, Scalable Webhost For PHP === I'm currently in the process of looking for a webhost for PHP that is feature rich (cheap is not a priority here), has excellent technical support and can scale along with the website. Essentially, is there anything like [Engine Yard][1] for PHP? [1]: http://www.engineyard.com "Engine Yard"
2
29,838
08/27/2008 10:02:57
1,178
08/13/2008 11:15:35
123
13
Visual Source Safe --> TFS Migration
Around here we're working with a bunch of Visual Source Safe repositories since something like... well, 10 years or so. Yes, yes, I know... we are crazy :-) Well, actually we did not have any big problem with this situation, but now I want to get rid of sourcesafe and move on to **TFS**. Have you any hint on this migration? What are the things I have to be careful about most? And: this migration will for sure mean that our working habits have to be modified in some way. Do you think that this changes could be a problem for the organization? Think to a group of about 20 .net developers, in a single site. Thanks a lot Andrea
version-control
tfs
migration
visual-sourcesafe
null
null
open
Visual Source Safe --> TFS Migration === Around here we're working with a bunch of Visual Source Safe repositories since something like... well, 10 years or so. Yes, yes, I know... we are crazy :-) Well, actually we did not have any big problem with this situation, but now I want to get rid of sourcesafe and move on to **TFS**. Have you any hint on this migration? What are the things I have to be careful about most? And: this migration will for sure mean that our working habits have to be modified in some way. Do you think that this changes could be a problem for the organization? Think to a group of about 20 .net developers, in a single site. Thanks a lot Andrea
0
29,841
08/27/2008 10:05:02
1,039
08/11/2008 17:51:44
38
2
Thread not waking up from Thread.Sleep()
We have a Windows Service written in C#. The service spawns a thread that does this: private void ThreadWorkerFunction() { while(false == _stop) // stop flag set by other thread { try { openConnection(); doStuff(); closeConnection(); } catch (Exception ex) { log.Error("Something went wrong.", ex); Thread.Sleep(TimeSpan.FromMinutes(10)); } } } We put the Thread.Sleep in after a couple of times when the database had gone away and we came back to 3Gb logs files full of database connection errors. This has been running fine for months, but recently we've seen a few instances where it reports "System.InvalidOperationException: This SqlTransaction has completed; it is no longer usable" then never ever comes back. The service can be left running for days but nothing more will be logged. Having done some reading I know that Thread.Sleep is not ideal, but why would it simply never come back?
.net
multithreading
null
null
null
null
open
Thread not waking up from Thread.Sleep() === We have a Windows Service written in C#. The service spawns a thread that does this: private void ThreadWorkerFunction() { while(false == _stop) // stop flag set by other thread { try { openConnection(); doStuff(); closeConnection(); } catch (Exception ex) { log.Error("Something went wrong.", ex); Thread.Sleep(TimeSpan.FromMinutes(10)); } } } We put the Thread.Sleep in after a couple of times when the database had gone away and we came back to 3Gb logs files full of database connection errors. This has been running fine for months, but recently we've seen a few instances where it reports "System.InvalidOperationException: This SqlTransaction has completed; it is no longer usable" then never ever comes back. The service can be left running for days but nothing more will be logged. Having done some reading I know that Thread.Sleep is not ideal, but why would it simply never come back?
0
29,845
08/27/2008 10:12:08
1,090
08/12/2008 11:16:17
1
0
Dynamic reference to resource files in C#
I have an application on which I am implementing localization. I now need to dynamically reference a name in the resouce file. assume I have a resource file called Login.resx, an a number of strings: foo="hello", bar="cruel" and baz="world" normally, I will refer as: String result =Login.foo; and result=="hello"; my problem is, that at code time, I do not know if I want to refer to foo, bar or baz - I have a string that contains either "foo", "bar" or "baz". I need something like: Login["foo"]; Does anyone know if there is any way to dynamically reference a string in a resource file?
c#
localization
null
null
null
null
open
Dynamic reference to resource files in C# === I have an application on which I am implementing localization. I now need to dynamically reference a name in the resouce file. assume I have a resource file called Login.resx, an a number of strings: foo="hello", bar="cruel" and baz="world" normally, I will refer as: String result =Login.foo; and result=="hello"; my problem is, that at code time, I do not know if I want to refer to foo, bar or baz - I have a string that contains either "foo", "bar" or "baz". I need something like: Login["foo"]; Does anyone know if there is any way to dynamically reference a string in a resource file?
0
29,847
08/27/2008 10:13:16
1,075
08/12/2008 10:13:30
961
67
Get last item in a table - SQL
I have a History Table in SQL Server that basically tracks an item through a process. The item has some fixed fields that don't change throughout the process, but has a few other fields including status and Id which increment as the steps of the process increase. Basically I want to retrieve the last step for each item given a Batch Reference. So if I do a Select * from HistoryTable where BatchRef = @BatchRef It will return all the steps for all the items in the batch - eg <table> <tr><th width=25%>Id</th><th width=25%>Status</th><th width=25%>BatchRef</th><th width=25%>ItemCount</th></tr> <tr><td>1</td><td>1</td><td>Batch001</td><td>100</td></tr> <tr><td>1</td><td>2</td><td>Batch001</td><td>110</td></tr> <tr><td>2</td><td>1</td><td>Batch001</td><td>60</td></tr> <tr><td>2</td><td>2</td><td>Batch001</td><td>100</td></tr> </table> <br/> But what I really want is: <table> <tr><th width=25%>Id</th><th width=25%>Status</th><th width=25%>BatchRef</th><th width=25%>ItemCount</th></tr> <tr><td>1</td><td>2</td><td>Batch001</td><td>110</td></tr> <tr><td>2</td><td>2</td><td>Batch001</td><td>100</td></tr> </table>
sql
null
null
null
null
null
open
Get last item in a table - SQL === I have a History Table in SQL Server that basically tracks an item through a process. The item has some fixed fields that don't change throughout the process, but has a few other fields including status and Id which increment as the steps of the process increase. Basically I want to retrieve the last step for each item given a Batch Reference. So if I do a Select * from HistoryTable where BatchRef = @BatchRef It will return all the steps for all the items in the batch - eg <table> <tr><th width=25%>Id</th><th width=25%>Status</th><th width=25%>BatchRef</th><th width=25%>ItemCount</th></tr> <tr><td>1</td><td>1</td><td>Batch001</td><td>100</td></tr> <tr><td>1</td><td>2</td><td>Batch001</td><td>110</td></tr> <tr><td>2</td><td>1</td><td>Batch001</td><td>60</td></tr> <tr><td>2</td><td>2</td><td>Batch001</td><td>100</td></tr> </table> <br/> But what I really want is: <table> <tr><th width=25%>Id</th><th width=25%>Status</th><th width=25%>BatchRef</th><th width=25%>ItemCount</th></tr> <tr><td>1</td><td>2</td><td>Batch001</td><td>110</td></tr> <tr><td>2</td><td>2</td><td>Batch001</td><td>100</td></tr> </table>
0
29,855
08/27/2008 10:21:16
2,183
08/20/2008 19:42:13
203
7
Is there a wxWidgets framework for C?
My understanding is that [wxWidgets][1] is for a number of programming languages (C++, Python, Perl, and C#/.NET) but that does not include C. Is there a similar framework for the C programming language, or is this not something that C is used for? [1]: http://www.wxwidgets.org
c
gui
null
null
null
null
open
Is there a wxWidgets framework for C? === My understanding is that [wxWidgets][1] is for a number of programming languages (C++, Python, Perl, and C#/.NET) but that does not include C. Is there a similar framework for the C programming language, or is this not something that C is used for? [1]: http://www.wxwidgets.org
0
29,856
08/27/2008 10:22:09
3,147
08/27/2008 01:00:22
16
3
Install Python to match directory layout in OS X 10.5
The default Python install on OS X 10.5 is 2.5.1 with a fat 32 bit (Intel and PPC) client. I want to setup apache and mysql to run django. In the past I have run apache and mysql to match this install in 32 bit mode (even stripping out the 64 bit stuff from apache to make it work). I want to upgrade Python to 64 bit. I am completely comfortable with compiling it from source with one caveat. How to I match the way that the default install is laid out? Especially with regards to site-packages being in /Library/Python/2.5/ and not the one in buried at the top of the framework once I compile it.
python
osx
64bit
null
null
null
open
Install Python to match directory layout in OS X 10.5 === The default Python install on OS X 10.5 is 2.5.1 with a fat 32 bit (Intel and PPC) client. I want to setup apache and mysql to run django. In the past I have run apache and mysql to match this install in 32 bit mode (even stripping out the 64 bit stuff from apache to make it work). I want to upgrade Python to 64 bit. I am completely comfortable with compiling it from source with one caveat. How to I match the way that the default install is laid out? Especially with regards to site-packages being in /Library/Python/2.5/ and not the one in buried at the top of the framework once I compile it.
0
29,868
08/27/2008 10:41:30
572
08/06/2008 20:56:54
1,761
158
How important is it to choose and stick to a technology stack?
What I mean by that is saying "I'm going to use the Microsoft stack" and then sticking to IIS/MSSQL/ASP.NET/Silverlight. Now, it might not be the Microsoft technology stack. It could be a Linux/Apache/MySQL/PHP/JavaScript/Flash/Flex or Linux/Tomcat/PostgreSQL/Java/JavaScript. How important is it to make the choice on what to use for server, database, server-side code, and client-side code, and then stick to that?
technology-stack
null
null
null
null
null
open
How important is it to choose and stick to a technology stack? === What I mean by that is saying "I'm going to use the Microsoft stack" and then sticking to IIS/MSSQL/ASP.NET/Silverlight. Now, it might not be the Microsoft technology stack. It could be a Linux/Apache/MySQL/PHP/JavaScript/Flash/Flex or Linux/Tomcat/PostgreSQL/Java/JavaScript. How important is it to make the choice on what to use for server, database, server-side code, and client-side code, and then stick to that?
0
29,869
08/27/2008 10:41:44
274
08/04/2008 10:43:23
248
16
Regex to match all HTML tags except <p> and </p>
I need to match and remove all tags using a regular expression in Perl. I have the following: <\\??(?!p).+?> But this still matches with the closing `</p>` tag. Any hint on how to match with the closing tag as well?
regex
regexp
perl
null
null
null
open
Regex to match all HTML tags except <p> and </p> === I need to match and remove all tags using a regular expression in Perl. I have the following: <\\??(?!p).+?> But this still matches with the closing `</p>` tag. Any hint on how to match with the closing tag as well?
0
29,870
08/27/2008 10:43:53
1,384,652
08/01/2008 12:01:23
1,386
72
How to bring in a web app
I run a game and the running is done by hand, I have a few scripts that help me but essentially it's me doing the work. I am at the moment working on web app that will allow the users to input directly some of their game actions and thus save me a lot of work. The problem is that I'm one man working on a moderately sized (upwards of 20 tables) project, the workload isn't the issue, it's that bugs will have slipped in even though I test as I write. So my question is thus two-fold. 1. Beta testing, I love open beta's but would a closed beta be somehow more effective and give better results? 2. How should I bring in the app? Should I one turn drop it in and declare it's being used or should I use it alongside the normal construct of the game? Thanks for your time and help.
web-applications
beta
launching
null
null
null
open
How to bring in a web app === I run a game and the running is done by hand, I have a few scripts that help me but essentially it's me doing the work. I am at the moment working on web app that will allow the users to input directly some of their game actions and thus save me a lot of work. The problem is that I'm one man working on a moderately sized (upwards of 20 tables) project, the workload isn't the issue, it's that bugs will have slipped in even though I test as I write. So my question is thus two-fold. 1. Beta testing, I love open beta's but would a closed beta be somehow more effective and give better results? 2. How should I bring in the app? Should I one turn drop it in and declare it's being used or should I use it alongside the normal construct of the game? Thanks for your time and help.
0
29,882
08/27/2008 10:51:34
2,892
08/25/2008 19:39:36
6
0
What would be a good, windows and iis (http) based distributed version control system
At my job we make & sell websites. Usually we install our .NET C# based site on a customer's server and maintain and support it remotely. However, every once in a while, for bigger development works and just to make things simpler (and faster!), we will copy the site to a local server. This is great, but has one pain - moving the site back to the customer. Now, If nothing was change on the customer's copy - no problem. However, it is the sad truth that sometime (read more often than I would like) some fixes were needed to be applied on the production server. Either because the customer needed it NOW or simply because it was major bug. I know that you can easily apply those bug fixes to the local copy as well, but this is an error prone process. So I'm setting my hopes on a distributed version control to help synchronize the two copies. Here is what I need: <ul> <li>Easy to install - nothing else needed except the installer and admin rights.</li> <li>Can integrated in an existing website as a virtual directory and works on port 80 - no hassle with new DNS required.</li> <li>Excellent software</li> </ul> That's it. Any ideas?
http
version-control
distributed
null
null
null
open
What would be a good, windows and iis (http) based distributed version control system === At my job we make & sell websites. Usually we install our .NET C# based site on a customer's server and maintain and support it remotely. However, every once in a while, for bigger development works and just to make things simpler (and faster!), we will copy the site to a local server. This is great, but has one pain - moving the site back to the customer. Now, If nothing was change on the customer's copy - no problem. However, it is the sad truth that sometime (read more often than I would like) some fixes were needed to be applied on the production server. Either because the customer needed it NOW or simply because it was major bug. I know that you can easily apply those bug fixes to the local copy as well, but this is an error prone process. So I'm setting my hopes on a distributed version control to help synchronize the two copies. Here is what I need: <ul> <li>Easy to install - nothing else needed except the installer and admin rights.</li> <li>Can integrated in an existing website as a virtual directory and works on port 80 - no hassle with new DNS required.</li> <li>Excellent software</li> </ul> That's it. Any ideas?
0
29,883
08/27/2008 10:51:38
383
08/05/2008 10:46:37
2,046
191
Printing DOM Changes
What I am trying to do is change the background colour of a table cell &lt;td&gt; and then when a user goes to print the page, the changes are now showing. I am currently using an unobtrusive script to run the following command on a range of cells: element.style.backgroundColor = "#f00" This works on screen in IE and FF, however, when you go to Print Preview, the background colours are lost. Am I doing something wrong?
browsers
internetexplorer
firefox
null
null
null
open
Printing DOM Changes === What I am trying to do is change the background colour of a table cell &lt;td&gt; and then when a user goes to print the page, the changes are now showing. I am currently using an unobtrusive script to run the following command on a range of cells: element.style.backgroundColor = "#f00" This works on screen in IE and FF, however, when you go to Print Preview, the background colours are lost. Am I doing something wrong?
0
29,886
08/27/2008 10:53:22
373
08/05/2008 09:37:52
215
25
How to keep the browser history in sync when using Ajax?
I'm writing a simple photo album app using ASP.NET Ajax. The app uses async Ajax calls to pre-load the next photo in the album, without changing the URL in the browser. The problem is that when the user clicks the **back** button in the browser, the app doesn't go back to the previous photo, instead, it navigates to the home page of the application. Is there a way to trick the browser into adding each Ajax call to the browsing history?
asp.net
web
ajax
null
null
null
open
How to keep the browser history in sync when using Ajax? === I'm writing a simple photo album app using ASP.NET Ajax. The app uses async Ajax calls to pre-load the next photo in the album, without changing the URL in the browser. The problem is that when the user clicks the **back** button in the browser, the app doesn't go back to the previous photo, instead, it navigates to the home page of the application. Is there a way to trick the browser into adding each Ajax call to the browsing history?
0
29,890
08/27/2008 10:54:29
3,186
08/27/2008 10:39:28
1
0
How to get your own (local) IP-Address from an udp-socket (C/C++)
1. You have multiple network adapters. 2. Bind a UDP socket to an local port, without specifying an address. 3. Receive packets on one of the adapters. How do you get the ip address from the adapter which received the packet?
socket
c++
udp
null
null
null
open
How to get your own (local) IP-Address from an udp-socket (C/C++) === 1. You have multiple network adapters. 2. Bind a UDP socket to an local port, without specifying an address. 3. Receive packets on one of the adapters. How do you get the ip address from the adapter which received the packet?
0
29,925
08/27/2008 11:39:19
493
08/06/2008 10:25:05
2,361
156
Building morale in the dev team
What are some of the day to day things you do in your dev team that help build your team's morale?
management
teamwork
team
null
null
05/08/2012 17:51:17
not constructive
Building morale in the dev team === What are some of the day to day things you do in your dev team that help build your team's morale?
4
29,927
08/27/2008 11:42:05
1,755
08/18/2008 12:47:06
16
4
vmware-cmd causes "perl.exe - Ordinal Not Found" error
My automated script for staring and stopping VMWare Server virtual machines has stopped working. vmware-cmd has started raising the error: "The ordinal 3288 could not be located in the dynamic link library LIBEAY32.dll." I am not aware of any specific change or update when this started happening. I have found a bunch of other people reporting this problem (or very similar) but no solution. Do you know what caused this? and/or how to fix this?
vmware
null
null
null
null
null
open
vmware-cmd causes "perl.exe - Ordinal Not Found" error === My automated script for staring and stopping VMWare Server virtual machines has stopped working. vmware-cmd has started raising the error: "The ordinal 3288 could not be located in the dynamic link library LIBEAY32.dll." I am not aware of any specific change or update when this started happening. I have found a bunch of other people reporting this problem (or very similar) but no solution. Do you know what caused this? and/or how to fix this?
0
29,943
08/27/2008 11:56:50
184
08/03/2008 05:34:19
890
10
How to submit a form when the return key is pressed?
Can someone please tell me how to submit an HTML form when the return key is pressed and if there are no buttons in the form? The submit button is not there. I am using a custom div instead of that.
javascript
html
null
null
null
null
open
How to submit a form when the return key is pressed? === Can someone please tell me how to submit an HTML form when the return key is pressed and if there are no buttons in the form? The submit button is not there. I am using a custom div instead of that.
0
29,971
08/27/2008 12:20:48
2,267
08/21/2008 12:23:14
1
1
How is the best way to setup an integration testing server?
Setting up an integration server, I’m in doubts about the best approach regarding multiple tasks to complete the build. Is the best way set all in just one big-job or make small dependents ones?
integration-testing
continuous-integration
null
null
null
null
open
How is the best way to setup an integration testing server? === Setting up an integration server, I’m in doubts about the best approach regarding multiple tasks to complete the build. Is the best way set all in just one big-job or make small dependents ones?
0