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
79,774
09/17/2008 03:49:15
14,871
09/17/2008 03:41:03
1
1
Dealing with Date only dates across timezones in .Net
Ok - a bit of a mouthful. So the problem I have is this - I need to store a Date for expiry where *only* the date part is required and I don't want any timezone conversion. So for example if I have an expiry set to "08 March 2008" I want that value to be returned to any client - no matter what their timezone is. The problem with remoting it as a DateTime is that it gets stored/sent as "08 March 2008 00:00", which means for clients connecting from any timezone West of me it gets converted and therefore flipped to "07 March 2008" Any suggestions for cleanly handling this scenario ? Obviously sending it as a string would work. anything else ? thanks, Ian
.net
date
null
null
null
null
open
Dealing with Date only dates across timezones in .Net === Ok - a bit of a mouthful. So the problem I have is this - I need to store a Date for expiry where *only* the date part is required and I don't want any timezone conversion. So for example if I have an expiry set to "08 March 2008" I want that value to be returned to any client - no matter what their timezone is. The problem with remoting it as a DateTime is that it gets stored/sent as "08 March 2008 00:00", which means for clients connecting from any timezone West of me it gets converted and therefore flipped to "07 March 2008" Any suggestions for cleanly handling this scenario ? Obviously sending it as a string would work. anything else ? thanks, Ian
0
79,780
09/17/2008 03:49:47
14,877
09/17/2008 03:43:35
1
0
Parsing HTTP Headers
I've had a new found interest in building a small, efficient web server in C and have had some trouble parsing POST methods from the HTTP Header. Would anyone have any advice as to how to handle retrieving the name/value pairs from the "posted" data? POST /yeah HTTP/1.1 Host: cor.cs.uky.edu:7017 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://cor.cs.uky.edu:7017/cs316post.html Cookie: __utma=43166241.217413299.1220726314.1221171690.1221200181.16; __utmz=43166241.1220726314.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none) Cache-Control: max-age=0 Content-Type: application/x-www-form-urlencoded Content-Length: 25 field1=asfd&field2=a3f3f3 <-- This I see no tangible way to retrieve the bottom line as a whole and ensure that it works every time. I'm not a fan of hard-coding in anything. Thanks in advance!
c
http
post
header
null
null
open
Parsing HTTP Headers === I've had a new found interest in building a small, efficient web server in C and have had some trouble parsing POST methods from the HTTP Header. Would anyone have any advice as to how to handle retrieving the name/value pairs from the "posted" data? POST /yeah HTTP/1.1 Host: cor.cs.uky.edu:7017 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://cor.cs.uky.edu:7017/cs316post.html Cookie: __utma=43166241.217413299.1220726314.1221171690.1221200181.16; __utmz=43166241.1220726314.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none) Cache-Control: max-age=0 Content-Type: application/x-www-form-urlencoded Content-Length: 25 field1=asfd&field2=a3f3f3 <-- This I see no tangible way to retrieve the bottom line as a whole and ensure that it works every time. I'm not a fan of hard-coding in anything. Thanks in advance!
0
79,787
09/17/2008 03:51:16
14,874
09/17/2008 03:42:34
1
0
screen scraping a command window using .net managed code
I am writing a program in dot net that will execute scripts and command line programs using the framework 2.0's Process object. I want to be able to access the screen buffers of the process in my program. I've investigated this and it appears that I need to access console stdout and stderr buffers. Anyone know how this is accomplished using managed code?
dotnet
console
buffer
screen-scraping
null
null
open
screen scraping a command window using .net managed code === I am writing a program in dot net that will execute scripts and command line programs using the framework 2.0's Process object. I want to be able to access the screen buffers of the process in my program. I've investigated this and it appears that I need to access console stdout and stderr buffers. Anyone know how this is accomplished using managed code?
0
79,789
09/17/2008 03:51:32
9,867
09/15/2008 20:16:14
1
0
Elegant method for drawing hourly bar chart from time-interval data?
I have a list of timesheet entries that show a start and stop time. This is sitting in a MySQL database. I need to create bar charts based on this data with the 24 hours of the day along the bottom and the amount of man-hours worked for each hour of the day. For example, if Alice worked a job from 15:30 to 19:30 and Bob worked from 12:45 to 17:00, the chart would look like this: ![Example Excel Chart][1] I have a WTFey solution right now that involves a spreadsheet going out to column DY or something like that. The needed resolution is 15-minute intervals. [1]: http://i35.tinypic.com/rbk6ee.png I'm assuming this is something best done in the database then exported for chart creation. Let me know if I'm missing any details. Thanks.
sql
excel
charts
null
null
null
open
Elegant method for drawing hourly bar chart from time-interval data? === I have a list of timesheet entries that show a start and stop time. This is sitting in a MySQL database. I need to create bar charts based on this data with the 24 hours of the day along the bottom and the amount of man-hours worked for each hour of the day. For example, if Alice worked a job from 15:30 to 19:30 and Bob worked from 12:45 to 17:00, the chart would look like this: ![Example Excel Chart][1] I have a WTFey solution right now that involves a spreadsheet going out to column DY or something like that. The needed resolution is 15-minute intervals. [1]: http://i35.tinypic.com/rbk6ee.png I'm assuming this is something best done in the database then exported for chart creation. Let me know if I'm missing any details. Thanks.
0
79,797
09/17/2008 03:52:42
3,715
08/30/2008 09:17:39
233
24
How do I convert local time to UTC in Python?
How do I convert a datetime string in local time to a string in UTC time? I'm sure I've done this before, but can't find it and SO will hopefully help me (and others) do that in future.
python
datetime
utc
null
null
null
open
How do I convert local time to UTC in Python? === How do I convert a datetime string in local time to a string in UTC time? I'm sure I've done this before, but can't find it and SO will hopefully help me (and others) do that in future.
0
79,816
09/17/2008 03:55:36
14,907
09/17/2008 03:54:31
1
0
Need javascript code for button press and hold.
I'd like a short smallest possible javascript routine that when a mousedown occurs on a button it first responds just like a mouseclick and then if the user keeps the button pressed it responds as if the user was continously sending mouseclicks and after a while with the button held down acts as if the user was accelerating their mouseclicks...basically think of it like a keypress repeat with acceleration in time. i.e. user holds down mouse button (x=call function) - x___x___x___x__x__x_x_x_x_xxxxxxx
javascript
mouse
button
press
click
null
open
Need javascript code for button press and hold. === I'd like a short smallest possible javascript routine that when a mousedown occurs on a button it first responds just like a mouseclick and then if the user keeps the button pressed it responds as if the user was continously sending mouseclicks and after a while with the button held down acts as if the user was accelerating their mouseclicks...basically think of it like a keypress repeat with acceleration in time. i.e. user holds down mouse button (x=call function) - x___x___x___x__x__x_x_x_x_xxxxxxx
0
79,825
09/17/2008 03:58:16
3,966
09/01/2008 03:51:27
7
3
Can anyone recommend a IOC Container for C++?
I miss dependency injection more than all the raindrops in the ocean.
c++
inversion-of-control
dependency-injection
null
null
null
open
Can anyone recommend a IOC Container for C++? === I miss dependency injection more than all the raindrops in the ocean.
0
79,829
09/17/2008 03:58:40
10,433
09/15/2008 23:06:36
74
7
Why pay for JIRA when I can use Bugzilla for free?
We've always used Bugzilla for issue/bug/enhancement tracking, but I keep thinking about switching to JIRA. However I would need to convince the boss that it's worth paying for something when a seemingly equivalent product is free of charge. So sell me! What about JIRA makes it worth paying for, compared to a free system like Bugzilla? If you're an employee of Atlassian, please disclose that fact! :-)
bug-tracking
bugzilla
jira
null
null
null
open
Why pay for JIRA when I can use Bugzilla for free? === We've always used Bugzilla for issue/bug/enhancement tracking, but I keep thinking about switching to JIRA. However I would need to convince the boss that it's worth paying for something when a seemingly equivalent product is free of charge. So sell me! What about JIRA makes it worth paying for, compared to a free system like Bugzilla? If you're an employee of Atlassian, please disclose that fact! :-)
0
79,843
09/17/2008 04:02:00
14,893
09/17/2008 03:49:45
1
0
What is the best way to load a Hibernate object graph before using it in a UI?
The situation is this: - You have a Hibernate context with an object graph that has some lazy loading defined. - You want to use the Hibernate objects in your UI as is without having to copy the data somewhere. - There are different UI contexts that require different amounts of data. - The data is too big to just eager load the whole graph each time. What is the best means to load all the appropriate objects in the object graph in a configurable way so that they can be accessed without having to go back to the database to load more data?
java
hibernate
null
null
null
null
open
What is the best way to load a Hibernate object graph before using it in a UI? === The situation is this: - You have a Hibernate context with an object graph that has some lazy loading defined. - You want to use the Hibernate objects in your UI as is without having to copy the data somewhere. - There are different UI contexts that require different amounts of data. - The data is too big to just eager load the whole graph each time. What is the best means to load all the appropriate objects in the object graph in a configurable way so that they can be accessed without having to go back to the database to load more data?
0
79,850
09/17/2008 04:02:53
10,708
09/16/2008 01:12:33
11
5
How do you design data models for Bigtable/Datastore (GAE) ?
Since the Google App Engine Datastore is based on [Bigtable][1] and we know that's not a relational database, how do you design a ***database schema*/*data model*** for applications that use this type of database system? [1]: http://labs.google.com/papers/bigtable.html
python
databases
appengine
gae
bigtable
null
open
How do you design data models for Bigtable/Datastore (GAE) ? === Since the Google App Engine Datastore is based on [Bigtable][1] and we know that's not a relational database, how do you design a ***database schema*/*data model*** for applications that use this type of database system? [1]: http://labs.google.com/papers/bigtable.html
0
79,853
09/17/2008 04:03:17
2,590
08/23/2008 12:23:18
977
34
Network Map Algorithm that Detects Unmanaged Layer 2 Switches?
I've inherited a network spread out over a warehouse/front office consisting of approximately 50 desktop PCs, various servers, network printers, and routers/switches. The "intelligent" routers live in the server room. As the company has grown, we've annexed additional space and not very elegantly run various lengths of CAT5 thru the ceilings etc. I've been finding various hubs and switches in the ceilings -- none of which is labeled or documented in any way. Of course, das blinken-lights tell me that *someone* is connected to these devices, I just have no way of finding out *who*. I can run traditional network map tools (there are tons of these things) and it shows me the IP-based things in the network. That's nice, but information I already have. What I need to know is the network topology -- how the switches (bridges) are interconnected etc.. And since they are off-the-shelf linksys unmanaged-types, they don't respond to SNMP so I can't use that... What's the best/cheapest tool out there that I can use to analyze and detect things like hubs and switches in the network that don't respond to SNMP? If there's no tool that you're aware of -- what generalized algorithm would you suggest to find this out? My guess would be that I could look at the ARP tables for the devices (switches, desktops, etc.) and build a chain that way, but I don't know if it's possible to get that from an unmanaged switch (let alone a hub). (This patent has some neat ideas but I can't find any software built with it: http://www.freepatentsonline.com/6628623.html) Thanks!!
networking
topology
null
null
null
null
open
Network Map Algorithm that Detects Unmanaged Layer 2 Switches? === I've inherited a network spread out over a warehouse/front office consisting of approximately 50 desktop PCs, various servers, network printers, and routers/switches. The "intelligent" routers live in the server room. As the company has grown, we've annexed additional space and not very elegantly run various lengths of CAT5 thru the ceilings etc. I've been finding various hubs and switches in the ceilings -- none of which is labeled or documented in any way. Of course, das blinken-lights tell me that *someone* is connected to these devices, I just have no way of finding out *who*. I can run traditional network map tools (there are tons of these things) and it shows me the IP-based things in the network. That's nice, but information I already have. What I need to know is the network topology -- how the switches (bridges) are interconnected etc.. And since they are off-the-shelf linksys unmanaged-types, they don't respond to SNMP so I can't use that... What's the best/cheapest tool out there that I can use to analyze and detect things like hubs and switches in the network that don't respond to SNMP? If there's no tool that you're aware of -- what generalized algorithm would you suggest to find this out? My guess would be that I could look at the ARP tables for the devices (switches, desktops, etc.) and build a chain that way, but I don't know if it's possible to get that from an unmanaged switch (let alone a hub). (This patent has some neat ideas but I can't find any software built with it: http://www.freepatentsonline.com/6628623.html) Thanks!!
0
79,856
09/17/2008 04:03:38
10,630
09/16/2008 00:32:30
1
1
What is the most efficient way to count the results of a stored procedure, from another stored procedure?
In a stored procedure, I need to get the count of the results of another stored procedure. Specifically, I need to know if it returns any results, or an empty set. I could create a temp table/table variable, exec the stored procedure into it, and then run a select count on that data. But I really don't care about the data itself, all I need is the count (or presence/absence of data). I was wondering if there is a more efficient way of getting just that information. I don't want to just copy the contents of the other stored procedure and rewrite it as a select count. The stored procedure changes too frequently for that to be workable.
sql-server
tsql
null
null
null
null
open
What is the most efficient way to count the results of a stored procedure, from another stored procedure? === In a stored procedure, I need to get the count of the results of another stored procedure. Specifically, I need to know if it returns any results, or an empty set. I could create a temp table/table variable, exec the stored procedure into it, and then run a select count on that data. But I really don't care about the data itself, all I need is the count (or presence/absence of data). I was wondering if there is a more efficient way of getting just that information. I don't want to just copy the contents of the other stored procedure and rewrite it as a select count. The stored procedure changes too frequently for that to be workable.
0
79,875
09/17/2008 04:07:25
13,348
09/16/2008 18:31:08
1
3
C# utility to create a CA
I'd like to create a utility in C# to allow someone to easily create a Certificate Authority (CA) in Windows. Any ideas/suggestions? I know I can use OpenSSL to do this. In the end, I'll want this utility to do more than just generate a CA. I'd also like to avoid requiring the installation of OpenSSL in order to run my utility.
c#
certificate
openssl
authority
ca
null
open
C# utility to create a CA === I'd like to create a utility in C# to allow someone to easily create a Certificate Authority (CA) in Windows. Any ideas/suggestions? I know I can use OpenSSL to do this. In the end, I'll want this utility to do more than just generate a CA. I'd also like to avoid requiring the installation of OpenSSL in order to run my utility.
0
79,880
09/17/2008 04:07:48
14,843
09/17/2008 03:22:32
1
1
ActiveRecord#save_only_valid_attributes
I'm looking for a variation on the #save method that will only save attributes that do not have errors attached to them. So a model can be updated without being valid overall, and this will still prevent saving invalid data to the database. By "valid attributes", I mean those attributes that give nil when calling @model_instance.errors.on(:attribute) Anyone have an idea of how to accomplish this?
rubyonrails
ruby-on-rails
null
null
null
null
open
ActiveRecord#save_only_valid_attributes === I'm looking for a variation on the #save method that will only save attributes that do not have errors attached to them. So a model can be updated without being valid overall, and this will still prevent saving invalid data to the database. By "valid attributes", I mean those attributes that give nil when calling @model_instance.errors.on(:attribute) Anyone have an idea of how to accomplish this?
0
79,891
09/17/2008 04:10:54
13,812
09/16/2008 20:56:34
6
0
What is the best testing tool for Swing-based applications?
While we try to set up as many unit tests as time allows for our applications, I always find the amount of UI-level tests lacking. There are many options out there, but I'm not sure what would be a good place to start. What is your preferred unit testing tool for testing Swing applications? Why do you like it? Thanks!
swing
testing
null
null
null
null
open
What is the best testing tool for Swing-based applications? === While we try to set up as many unit tests as time allows for our applications, I always find the amount of UI-level tests lacking. There are many options out there, but I'm not sure what would be a good place to start. What is your preferred unit testing tool for testing Swing applications? Why do you like it? Thanks!
0
79,892
09/17/2008 04:11:04
10,703
09/16/2008 01:08:24
245
12
How does vxWorks deal with two tasks at the same priority?
We have two tasks (T1 and T2) in our vxWorks embedded system that have the same priority (110). How does the regular vxWorks scheduler deal with this if both tasks are ready to run? Which task executes first?
embedded
vxworks
rtos
null
null
null
open
How does vxWorks deal with two tasks at the same priority? === We have two tasks (T1 and T2) in our vxWorks embedded system that have the same priority (110). How does the regular vxWorks scheduler deal with this if both tasks are ready to run? Which task executes first?
0
79,896
09/17/2008 04:12:02
14,921
09/17/2008 03:59:31
1
0
What else does one need on top of programming skillz to be a good Technical Lead?
I work in a team that was decent until about 3 months ago when a senior programmer, coleague of mine, was officialy appointed "tech lead". He is a great programmer but he basically sucks at leading. We all respect him and think he would be great as an architect or something along theat line but he needs a lot more of "something" to be a tech lead. I would love to help him because I can see he realizes he doesn't do the best job and he looks like drowning. What kind of suggestions would you make in this situation and how? We need a decent way of making him improve his act while he can save face. Stepping down is not an option for him since management will see this as a failure. But we need to do something before he manages to make a real mess. Thanks.
tech-lead
leader
technical-lead
leadership
team-building
04/05/2012 13:06:47
not constructive
What else does one need on top of programming skillz to be a good Technical Lead? === I work in a team that was decent until about 3 months ago when a senior programmer, coleague of mine, was officialy appointed "tech lead". He is a great programmer but he basically sucks at leading. We all respect him and think he would be great as an architect or something along theat line but he needs a lot more of "something" to be a tech lead. I would love to help him because I can see he realizes he doesn't do the best job and he looks like drowning. What kind of suggestions would you make in this situation and how? We need a decent way of making him improve his act while he can save face. Stepping down is not an option for him since management will see this as a failure. But we need to do something before he manages to make a real mess. Thanks.
4
79,898
09/17/2008 04:12:14
9,611
09/15/2008 19:21:17
208
14
mspdbsrv.exe living forever?
Is there a way to prevent mspdbsrv.exe from continuing to run after finishing the compilation? or even after I terminate visual studio? or perhaps even prevent it from even spawning in the first place? what is this guy good for anyway? using vs2005
visual-studio
null
null
null
null
null
open
mspdbsrv.exe living forever? === Is there a way to prevent mspdbsrv.exe from continuing to run after finishing the compilation? or even after I terminate visual studio? or perhaps even prevent it from even spawning in the first place? what is this guy good for anyway? using vs2005
0
79,918
09/17/2008 04:17:18
13,940
09/16/2008 21:22:57
21
2
Configuring static analysis tools for uniformity?
How are folks integrating various static analysis tools such as PMD, Checkstyle, and FindBugs so that they are used together in some uniform way? In particular, I'm interested in generating a single uniform report that includes warnings from all tools. Also, I want to be able to mark-up my code with reasonably consistent looking warning suppressions. My question here is not meant to address tool "overlap" where, say, PMD and Checkstyle are looking for the same things. That is another issue. Please see some of my <a href="http://stackoverflow.com/questions/4080/what-code-analysis-tools-do-you-use-for-your-java-projects#79845"> thoughts on the matter in an answer</a> to <a href="http://stackoverflow.com/questions/4080/what-code-analysis-tools-do-you-use-for-your-java-projects">a related question</a>.
java
static-analysis
null
null
null
null
open
Configuring static analysis tools for uniformity? === How are folks integrating various static analysis tools such as PMD, Checkstyle, and FindBugs so that they are used together in some uniform way? In particular, I'm interested in generating a single uniform report that includes warnings from all tools. Also, I want to be able to mark-up my code with reasonably consistent looking warning suppressions. My question here is not meant to address tool "overlap" where, say, PMD and Checkstyle are looking for the same things. That is another issue. Please see some of my <a href="http://stackoverflow.com/questions/4080/what-code-analysis-tools-do-you-use-for-your-java-projects#79845"> thoughts on the matter in an answer</a> to <a href="http://stackoverflow.com/questions/4080/what-code-analysis-tools-do-you-use-for-your-java-projects">a related question</a>.
0
79,923
09/17/2008 04:18:06
13,161
09/16/2008 17:25:30
1
0
What and where are the stack and heap
Programming language books usually explain that value types are created on the stack, and reference types created on the heap, without really explaining what these two things are. With my only programming experience being in high level languages, I haven't read a clear explanation of this. I mean I understand what _a stack_ is, but where and what are they relative the to the physical memory of a real computer? * To what extent are they controlled by the OS or languange runtime? * What is their scope? * What determines the size of each of them? * What makes one faster?
memory-management
stack
heap
null
null
null
open
What and where are the stack and heap === Programming language books usually explain that value types are created on the stack, and reference types created on the heap, without really explaining what these two things are. With my only programming experience being in high level languages, I haven't read a clear explanation of this. I mean I understand what _a stack_ is, but where and what are they relative the to the physical memory of a real computer? * To what extent are they controlled by the OS or languange runtime? * What is their scope? * What determines the size of each of them? * What makes one faster?
0
79,929
09/17/2008 04:19:22
1,327
08/14/2008 14:37:22
530
42
What was the name of the Mac (68000) assembler?
I'm sure there were several, but the one I was thinking of would display a nice text screen when you crashed the computer thoroughly. The Text was "Well smoke me a kipper."
osx
assembler
68000
null
null
null
open
What was the name of the Mac (68000) assembler? === I'm sure there were several, but the one I was thinking of would display a nice text screen when you crashed the computer thoroughly. The Text was "Well smoke me a kipper."
0
79,935
09/17/2008 04:20:05
14,948
09/17/2008 04:20:05
1
0
Perl Robot?
Is there an equivalent to Java's Robot class (java.awt.Robot) for Perl?
java
perl
awt
bot
robot
null
open
Perl Robot? === Is there an equivalent to Java's Robot class (java.awt.Robot) for Perl?
0
79,949
09/17/2008 04:22:01
6,359
09/14/2008 18:52:09
11
2
Best way of store only date on datetime field?
Scenario: A stored procedure receives from code a DateTime with, let's say DateTime.Now value, as a datetime parameter. The stored procedure needs to store only the date part of the datetime on the row, but preserving all date related arithmetics for, to say, do searches over time intervals and doing reports based on dates. I know there is a couple of ways, but what is the better having in mind performance and wasted space?
database
tsql
null
null
null
null
open
Best way of store only date on datetime field? === Scenario: A stored procedure receives from code a DateTime with, let's say DateTime.Now value, as a datetime parameter. The stored procedure needs to store only the date part of the datetime on the row, but preserving all date related arithmetics for, to say, do searches over time intervals and doing reports based on dates. I know there is a couple of ways, but what is the better having in mind performance and wasted space?
0
79,953
09/17/2008 04:23:32
8,543
09/15/2008 16:18:08
111
5
Reporting with db4o
I've used db4o with much success on many projects in the past. Over time it seems to have evolved greatly, and with modern trends like LINQ on everyone's tongue it has peaked my interest again, especially now that I know that it is starting to support transparent activation and persistence which intrigue quite a bit, but a friend posed a very good question to me when I first mentioned db4o and, even with modern innovation, I'm still not sure how to answer it. What are the best/fastest/most common methods to generate reports similar to the large cross-table complex constraint reports that can be done so effectively on platforms such as SQL? I understand quite well how much time, effort and development time are saved and even many of the performance gains, especially over ORMs, but some applications require complex reports that I'm not sure how to express using objects and object queries and I am also concerned about performance, since it can be overwhelming to optimize and maintain complex reports even on systems designed specifically for that purpose.
design-patterns
reporting
db4o
null
null
null
open
Reporting with db4o === I've used db4o with much success on many projects in the past. Over time it seems to have evolved greatly, and with modern trends like LINQ on everyone's tongue it has peaked my interest again, especially now that I know that it is starting to support transparent activation and persistence which intrigue quite a bit, but a friend posed a very good question to me when I first mentioned db4o and, even with modern innovation, I'm still not sure how to answer it. What are the best/fastest/most common methods to generate reports similar to the large cross-table complex constraint reports that can be done so effectively on platforms such as SQL? I understand quite well how much time, effort and development time are saved and even many of the performance gains, especially over ORMs, but some applications require complex reports that I'm not sure how to express using objects and object queries and I am also concerned about performance, since it can be overwhelming to optimize and maintain complex reports even on systems designed specifically for that purpose.
0
79,954
09/17/2008 04:23:35
590
08/07/2008 00:24:39
427
26
Visual Studio opens default browser instead of IE
When I debug in Visual Studio, firefox opens and that is annoying because of the hookups that IE and VS have such as when you close the IE browser that starting debug opened, VS stops debugging. How can I get Visual Studio to open IE instead without having to set IE as my default browser?
visual-studio
null
null
null
null
null
open
Visual Studio opens default browser instead of IE === When I debug in Visual Studio, firefox opens and that is annoying because of the hookups that IE and VS have such as when you close the IE browser that starting debug opened, VS stops debugging. How can I get Visual Studio to open IE instead without having to set IE as my default browser?
0
79,960
09/17/2008 04:24:04
14,956
09/17/2008 04:24:04
1
0
How to Truncate a string in PHP to the word closest to a certain number of characters?
I have a code snippet written in PHP that pulls a block of text from a database and sends it out to a widget on a webpage. The original block of text can be a lengthy article or a short sentence or two; but for this widget I can't display more than, say, 200 characters. I could use substr() to chop off the text at 200 chars, but the result would be cutting off in the middle of words-- what I really want is to chop the text at the end of the last <i>word</i> before 200 chars.
php
string
function
null
null
null
open
How to Truncate a string in PHP to the word closest to a certain number of characters? === I have a code snippet written in PHP that pulls a block of text from a database and sends it out to a widget on a webpage. The original block of text can be a lengthy article or a short sentence or two; but for this widget I can't display more than, say, 200 characters. I could use substr() to chop off the text at 200 chars, but the result would be cutting off in the middle of words-- what I really want is to chop the text at the end of the last <i>word</i> before 200 chars.
0
79,968
09/17/2008 04:25:15
5,324
09/09/2008 06:49:51
478
23
Split a string by spaces in Python
I have a string which is like this: this is "a test" I'm trying to write something in Python to split it up by space while ignoring spaces within quotes. The result I'm looking for is: ['this','is','a test'] PS. I know you are going to ask "what happens if there are quotes within the quotes, well, in my application, that will never happen.
python
regex
null
null
null
null
open
Split a string by spaces in Python === I have a string which is like this: this is "a test" I'm trying to write something in Python to split it up by space while ignoring spaces within quotes. The result I'm looking for is: ['this','is','a test'] PS. I know you are going to ask "what happens if there are quotes within the quotes, well, in my application, that will never happen.
0
79,972
09/17/2008 04:25:44
14,922
09/17/2008 04:00:35
1
1
What is your favorite non-free Content Management System?
I say "non-free" because I'd like to see what CMS tools are out there beyond the normal Drupal, Joomla or Wordpress debate.
content-management-system
website
null
null
null
05/05/2012 13:29:23
not constructive
What is your favorite non-free Content Management System? === I say "non-free" because I'd like to see what CMS tools are out there beyond the normal Drupal, Joomla or Wordpress debate.
4
79,974
09/17/2008 04:26:02
12,641
09/16/2008 15:04:27
1
2
Where can I read good code? Any resources for that?
I read lot of articles saying that "Reading others code will helps you to be a better programmer". But where can I read good code and bad code so that I can learn how to and how not to code. If you have any resources that would be helpful?
code-reading
null
null
null
null
null
open
Where can I read good code? Any resources for that? === I read lot of articles saying that "Reading others code will helps you to be a better programmer". But where can I read good code and bad code so that I can learn how to and how not to code. If you have any resources that would be helpful?
0
79,992
09/17/2008 04:28:45
10,972
09/16/2008 03:35:32
1
0
Why can't I single-step Clipboard-code within the VS.NET debugger ?
Googling on e.g. (( OpenClipboard 1418 vc6 )) finds articles like "GetClipboardData fails in debugger" and "No Error in VC++6 but Error in VC++ 2005". Pragmatically for-the-moment, problem solved - I simply cannot set breakpoints within such code, I need to squirrel information and set the breakpoint after the clipboard operations are done. Error 1418 is "Thread does not have a clipboard open" but it works fine as long as you don't step with VS.NET<p> But SIGH how can I ever trust the VS.NET debugger anymore ?<p> Being a C++ person I am only dimly aware that you are not supposed to think in terms of threads when doing dot-Net. OK, I don't do dot-Net. Anyway my Googling did not find a guru-quality explanation of what's really going on, whether in-fact the problem is that the dot-Net debugger is scrambling thread-stuff somehow when you single-step thru native C++ code. <P> RTFM-wise I searched stackOverflow on OpenClipboard, no matches so this topic seems untouched so far
openclipboard
null
null
null
null
null
open
Why can't I single-step Clipboard-code within the VS.NET debugger ? === Googling on e.g. (( OpenClipboard 1418 vc6 )) finds articles like "GetClipboardData fails in debugger" and "No Error in VC++6 but Error in VC++ 2005". Pragmatically for-the-moment, problem solved - I simply cannot set breakpoints within such code, I need to squirrel information and set the breakpoint after the clipboard operations are done. Error 1418 is "Thread does not have a clipboard open" but it works fine as long as you don't step with VS.NET<p> But SIGH how can I ever trust the VS.NET debugger anymore ?<p> Being a C++ person I am only dimly aware that you are not supposed to think in terms of threads when doing dot-Net. OK, I don't do dot-Net. Anyway my Googling did not find a guru-quality explanation of what's really going on, whether in-fact the problem is that the dot-Net debugger is scrambling thread-stuff somehow when you single-step thru native C++ code. <P> RTFM-wise I searched stackOverflow on OpenClipboard, no matches so this topic seems untouched so far
0
79,999
09/17/2008 04:29:37
171,236
09/17/2008 04:29:37
1
0
What parallel programming model do you recommend today to take advantage of the manycore processors of tomorrow?
If you were writing a new application from scratch today, and wanted it to scale to all the cores you could throw at it tomorrow, what parallel programming model/system/language/library would you choose? Why? I am particularly interested in answers along these axes: <ol> <li>Programmer productivity / ease of use (can mortals successfully use it?)</li> <li>Target application domain (what problems is it (not) good at?)</li> <li>Concurrency style (does it support tasks, pipelines, data parallelism, messages...?) <li>Maintainability / future-proofing (will anybody still be using it in 20 years?)</li> <li>Performance (how does it scale on what kinds of hardware?)</li> </ol> I am being deliberately vauge on the nature of the application in anticipation of getting good general answers useful for a variety of applications.
multicore
future
parallel
manycore
null
null
open
What parallel programming model do you recommend today to take advantage of the manycore processors of tomorrow? === If you were writing a new application from scratch today, and wanted it to scale to all the cores you could throw at it tomorrow, what parallel programming model/system/language/library would you choose? Why? I am particularly interested in answers along these axes: <ol> <li>Programmer productivity / ease of use (can mortals successfully use it?)</li> <li>Target application domain (what problems is it (not) good at?)</li> <li>Concurrency style (does it support tasks, pipelines, data parallelism, messages...?) <li>Maintainability / future-proofing (will anybody still be using it in 20 years?)</li> <li>Performance (how does it scale on what kinds of hardware?)</li> </ol> I am being deliberately vauge on the nature of the application in anticipation of getting good general answers useful for a variety of applications.
0
80,021
09/17/2008 04:32:57
14,924
09/17/2008 04:01:12
1
0
Is it me, or is Eclipse horribly unpredictable?
I recently started using Eclipse at work for my Java servlet projects. I've been using jEdit for years, which is a uber-powerful text editor. It has syntax highlighting, but it doesn't have any language-specific features like code completion and intelligent refactoring. I'm finding that's hindering my productivity. I *desperately* want to like Eclipse. I really do. But I keep running into problem after problem. 1. Now that Eclipse can use an ant script to build, instead of just creating its own build environment from an ant script then ignoring any changes to it, I found some online guides and set it up. It doesn't seem ready for prime time, though. My ant script builds fine from the command line, but I get all these build errors because I need to tell Eclipse all this stuff the build.xml already has in it, like the CLASSPATH, and where external jars are. 2. When I leave Eclipse running for too long, or sometimes after my laptop wakes up from hibernate, the UI starts breaking. For instance, the tabs on the editor pane disappear, so I can only edit one file at a time, and it doesn't say which one it is. 3. We have faced several instances where classes weren't rebuilt that should have been, leading to inaccurate line numbers in debugging walkthroughs and other unpredictable behavior (this isn't just me; the two other developers trying it out with me are seeing the same thing). 4. I find it a huge hassle that the workspace is in a different place than my source code. I have other files I need to edit (xml files, etc), and for each directory I want to edit files in, I need to set up a special entry, and it doesn't even default to where my source code is when setting that up. Do others face these same issues? Are there better alternatives?
java
eclipse
ide
editor
null
null
open
Is it me, or is Eclipse horribly unpredictable? === I recently started using Eclipse at work for my Java servlet projects. I've been using jEdit for years, which is a uber-powerful text editor. It has syntax highlighting, but it doesn't have any language-specific features like code completion and intelligent refactoring. I'm finding that's hindering my productivity. I *desperately* want to like Eclipse. I really do. But I keep running into problem after problem. 1. Now that Eclipse can use an ant script to build, instead of just creating its own build environment from an ant script then ignoring any changes to it, I found some online guides and set it up. It doesn't seem ready for prime time, though. My ant script builds fine from the command line, but I get all these build errors because I need to tell Eclipse all this stuff the build.xml already has in it, like the CLASSPATH, and where external jars are. 2. When I leave Eclipse running for too long, or sometimes after my laptop wakes up from hibernate, the UI starts breaking. For instance, the tabs on the editor pane disappear, so I can only edit one file at a time, and it doesn't say which one it is. 3. We have faced several instances where classes weren't rebuilt that should have been, leading to inaccurate line numbers in debugging walkthroughs and other unpredictable behavior (this isn't just me; the two other developers trying it out with me are seeing the same thing). 4. I find it a huge hassle that the workspace is in a different place than my source code. I have other files I need to edit (xml files, etc), and for each directory I want to edit files in, I need to set up a special entry, and it doesn't even default to where my source code is when setting that up. Do others face these same issues? Are there better alternatives?
0
80,031
09/17/2008 04:34:25
4,298
09/02/2008 18:17:28
52
1
What can cause Web.sitemap to not be found?
I have a asp:menu object which I set up to use a SiteMapDataSource but everytime I try to run the site, I get a yellow screen from firefox saying it cannot find the web.sitemap. Here's the code for the sitemapdatasource and the menu. The Web.sitemap file is sitting in the root directory of the website. <code> <div> <asp:Menu ID="MainMenu" CssClass="wTheme" Orientation="Horizontal" runat="server" DataSourceID="SiteMapDataSource1"> </asp:Menu> <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" SiteMapProvider="Web.sitemap" /> </div> <code> And this is the Web.sitemap looks like so: <code> <?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="" title="" description=""> <siteMapNode url="index.aspx" title="Home" description="Zombie (be)Warehouse" /> <siteMapNode url="Armor.aspx" title="Armor" description="Anti-Zombie Armor" /> <siteMapNode url="Weapons.aspx" title="Weapons" description="Anti-Zombie Weapons" /> <siteMapNode url="Manuals.aspx" title="Manuals" description="Survival Manuals" /> <siteMapNode url="Sustenance" title="Sustenance" description="Prepared food for survival" /> <siteMapNode url="Contacts.aspx" title="Contacts" description="" /> <siteMapNode url="About.aspx" title="About" description="About Zombie (be)Warehouse" /> </siteMapNode> </siteMap> <code>
asp.net
null
null
null
null
null
open
What can cause Web.sitemap to not be found? === I have a asp:menu object which I set up to use a SiteMapDataSource but everytime I try to run the site, I get a yellow screen from firefox saying it cannot find the web.sitemap. Here's the code for the sitemapdatasource and the menu. The Web.sitemap file is sitting in the root directory of the website. <code> <div> <asp:Menu ID="MainMenu" CssClass="wTheme" Orientation="Horizontal" runat="server" DataSourceID="SiteMapDataSource1"> </asp:Menu> <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" SiteMapProvider="Web.sitemap" /> </div> <code> And this is the Web.sitemap looks like so: <code> <?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="" title="" description=""> <siteMapNode url="index.aspx" title="Home" description="Zombie (be)Warehouse" /> <siteMapNode url="Armor.aspx" title="Armor" description="Anti-Zombie Armor" /> <siteMapNode url="Weapons.aspx" title="Weapons" description="Anti-Zombie Weapons" /> <siteMapNode url="Manuals.aspx" title="Manuals" description="Survival Manuals" /> <siteMapNode url="Sustenance" title="Sustenance" description="Prepared food for survival" /> <siteMapNode url="Contacts.aspx" title="Contacts" description="" /> <siteMapNode url="About.aspx" title="About" description="About Zombie (be)Warehouse" /> </siteMapNode> </siteMap> <code>
0
80,067
09/17/2008 04:41:35
11,034
09/16/2008 04:12:29
1
0
Best Mocking Library
Which is the best mocking library? Why?
mocking
null
null
null
null
06/09/2012 16:55:50
not constructive
Best Mocking Library === Which is the best mocking library? Why?
4
80,088
09/17/2008 04:47:15
14,752
09/17/2008 02:35:39
1
0
Best Reporting application
Desinging web application and for reporting iam using crystal reports.sometimes the crystal reports gives runtimes error. What can i do to make my report faster. Retrieving around 1MB of data. It is the month end sales report. what is the best method to solve this issue.
reporting
null
null
null
null
null
open
Best Reporting application === Desinging web application and for reporting iam using crystal reports.sometimes the crystal reports gives runtimes error. What can i do to make my report faster. Retrieving around 1MB of data. It is the month end sales report. what is the best method to solve this issue.
0
80,089
09/17/2008 04:47:29
14,984
09/17/2008 04:42:49
1
0
Anyone Recommend a Good Tutorial on Conditional Random Fields
I have been trying to find a good tutorial on Conditional Random Fields and have yet to find one that didn't start sending my brain into meltdown. I have a good grasp of HMM's, and I get the difference between discriminative and generative models ... but as of yet I have not been able to find a resource that can give a good comparison of HMM's and CRF's that makes sense to me. Any assistance would be appreciated.
algorithm
language-agnostic
machinelearning
null
null
null
open
Anyone Recommend a Good Tutorial on Conditional Random Fields === I have been trying to find a good tutorial on Conditional Random Fields and have yet to find one that didn't start sending my brain into meltdown. I have a good grasp of HMM's, and I get the difference between discriminative and generative models ... but as of yet I have not been able to find a resource that can give a good comparison of HMM's and CRF's that makes sense to me. Any assistance would be appreciated.
0
80,091
09/17/2008 04:47:35
5,004
09/07/2008 10:03:29
277
4
diff a ruby string or array
Is there a ruby library that will take two strings or two arrays and return the difference between the two strings/arrays?
ruby
diff
null
null
null
null
open
diff a ruby string or array === Is there a ruby library that will take two strings or two arrays and return the difference between the two strings/arrays?
0
80,101
09/17/2008 04:50:31
5,742
09/11/2008 07:37:00
45
5
iCal Format - Organizer
I am currently programming a scheduling application which loosely based on iCalendar standard. Does anyone knows in which property can I store the event creator's information? By browsing through the iCalendar RFC 2445, I find this property: [Organizer][1]. can I store the event creator's information in the property? or there is already a field to store the event creator's information???! [1]: http://www.kanzaki.com/docs/ical/organizer.html
ical
null
null
null
null
null
open
iCal Format - Organizer === I am currently programming a scheduling application which loosely based on iCalendar standard. Does anyone knows in which property can I store the event creator's information? By browsing through the iCalendar RFC 2445, I find this property: [Organizer][1]. can I store the event creator's information in the property? or there is already a field to store the event creator's information???! [1]: http://www.kanzaki.com/docs/ical/organizer.html
0
80,103
09/17/2008 04:50:36
14,988
09/17/2008 04:46:02
1
0
Detect "Clone Mode" display setup
How can I determine if my displays are in "Clone Mode" without using either COPP (Computer Output Protection Protocol) or OPM (Output Protection Protocol) on Windows?
displays
null
null
null
null
null
open
Detect "Clone Mode" display setup === How can I determine if my displays are in "Clone Mode" without using either COPP (Computer Output Protection Protocol) or OPM (Output Protection Protocol) on Windows?
0
80,105
09/17/2008 04:50:50
14,204
09/16/2008 22:31:05
36
0
What's the best way to distribute Java applications?
Java is one of my programming languages of choice. I always run into the problem though of distributing my application to end-users. Giving a user a JAR is not always as user friendly as I would like and using Java WebStart requires that I maintain a web server. What's the best way to distribute a Java application? What if the Java application needs to install artifacts to the user's computer? Are there any good Java installation/packaging systems out there?
java
jar
software-distribution
null
null
null
open
What's the best way to distribute Java applications? === Java is one of my programming languages of choice. I always run into the problem though of distributing my application to end-users. Giving a user a JAR is not always as user friendly as I would like and using Java WebStart requires that I maintain a web server. What's the best way to distribute a Java application? What if the Java application needs to install artifacts to the user's computer? Are there any good Java installation/packaging systems out there?
0
80,112
09/17/2008 04:52:16
4,916
09/06/2008 15:33:03
88
6
What's the difference between XML-RPC and SOAP?
I've never really understand why a web service implementer would choose one over the other. Is XML-RPC generally found in older systems? Any help in understanding this would be greatly appreciated.
xml
web-services
null
null
null
null
open
What's the difference between XML-RPC and SOAP? === I've never really understand why a web service implementer would choose one over the other. Is XML-RPC generally found in older systems? Any help in understanding this would be greatly appreciated.
0
80,116
09/17/2008 04:53:08
14,752
09/17/2008 02:35:39
1
0
software Engineering documentation
Can anyone suggest where can i find the best software engineering project documentation. I need to do on project for my studies. If i had an sample project would have saved lot of time for me.
software-engineering
null
null
null
null
null
open
software Engineering documentation === Can anyone suggest where can i find the best software engineering project documentation. I need to do on project for my studies. If i had an sample project would have saved lot of time for me.
0
80,120
09/17/2008 04:53:50
1,321
08/14/2008 14:09:30
21
1
Cruise Control .Net vs Team Foundation Build
Our team is setting up nightly and continuous integration builds. We own Team Foundation Server and could use Team Foundation Build. I'm more familiar with CC.Net and lean that way but management sees all the money spent on TFS and wants to use it. Some things I like better about CC.Net is the flexibility of notifications as well as the ease of implementing custom scripts. If you have experience with both products, which do you prefer and why? If you have just a one-line answer, please don't respond. Just up-vote one of my responses.
cruisecontrol.net
tfs
build
build-automation
continuous-integration
null
open
Cruise Control .Net vs Team Foundation Build === Our team is setting up nightly and continuous integration builds. We own Team Foundation Server and could use Team Foundation Build. I'm more familiar with CC.Net and lean that way but management sees all the money spent on TFS and wants to use it. Some things I like better about CC.Net is the flexibility of notifications as well as the ease of implementing custom scripts. If you have experience with both products, which do you prefer and why? If you have just a one-line answer, please don't respond. Just up-vote one of my responses.
0
80,141
09/17/2008 04:57:33
3,153
08/27/2008 02:45:05
1,811
78
storing revision changes of a message
What algorithms and processes are involved in storing revision changes like stackoverflow and wikipedia do? Is only one copy of the message kept? And if so is it only the latest copy? Then only changes to go back to the previous version(s) are stored from there? (This would make for a faster display of the main message). Or are complete messages stored? And if so is the compare done between these on each display? What algorithms are best used to determine the exact changes in the message? How is this data stored in a database? If anyone knows exactly what wikipedia or stackoverlfow does I'd love to know.
algorithm
stackoverflow
version-control
null
null
null
open
storing revision changes of a message === What algorithms and processes are involved in storing revision changes like stackoverflow and wikipedia do? Is only one copy of the message kept? And if so is it only the latest copy? Then only changes to go back to the previous version(s) are stored from there? (This would make for a faster display of the main message). Or are complete messages stored? And if so is the compare done between these on each display? What algorithms are best used to determine the exact changes in the message? How is this data stored in a database? If anyone knows exactly what wikipedia or stackoverlfow does I'd love to know.
0
80,160
09/17/2008 05:01:21
3,146
08/27/2008 00:25:15
1,361
76
What does COINIT_SPEED_OVER_MEMORY do?
When calling `CoInitializeEx`, you can specify the following values for `dwCoInit`: typedef enum tagCOINIT { COINIT_MULTITHREADED = 0x0, COINIT_APARTMENTTHREADED = 0x2, COINIT_DISABLE_OLE1DDE = 0x4, COINIT_SPEED_OVER_MEMORY = 0x8, } COINIT; What does the suggestively titled "speed over memory" value do? Is it ignored these days in COM?
com
null
null
null
null
null
open
What does COINIT_SPEED_OVER_MEMORY do? === When calling `CoInitializeEx`, you can specify the following values for `dwCoInit`: typedef enum tagCOINIT { COINIT_MULTITHREADED = 0x0, COINIT_APARTMENTTHREADED = 0x2, COINIT_DISABLE_OLE1DDE = 0x4, COINIT_SPEED_OVER_MEMORY = 0x8, } COINIT; What does the suggestively titled "speed over memory" value do? Is it ignored these days in COM?
0
80,175
09/17/2008 05:03:49
364
08/05/2008 05:33:41
915
51
How do I hide a column only on the list page in ASP.NET Dynamic Data?
This is somewhat similar to [this question][1]. However, rather than wanting to hide a column all together, I am just looking to hide the column on the List.aspx page. My specific example is that fields that are long (or at least nvarchar(MAX)) automatically hide from the List.aspx page as is but are still visible on the Edit.aspx page. I would like to replicate this behaviour for other (shorter) columns. Is this possible? [1]: http://stackoverflow.com/questions/25653/hide-a-column-in-aspnet-dynamic-data
asp.net
dynamicdata
null
null
null
null
open
How do I hide a column only on the list page in ASP.NET Dynamic Data? === This is somewhat similar to [this question][1]. However, rather than wanting to hide a column all together, I am just looking to hide the column on the List.aspx page. My specific example is that fields that are long (or at least nvarchar(MAX)) automatically hide from the List.aspx page as is but are still visible on the Edit.aspx page. I would like to replicate this behaviour for other (shorter) columns. Is this possible? [1]: http://stackoverflow.com/questions/25653/hide-a-column-in-aspnet-dynamic-data
0
80,182
09/17/2008 05:05:42
11,355
09/16/2008 07:22:17
11
0
How to track changes to business objects?
I get the concept of creating a business object or entity to represent something like a Person. I can then serialize the Person using a DTO and send it down to the client. If the client changes the object, it can have an IsDirty flag on there so when it gets sent back to the server I know to update it. But what if I have an Order object? This has the main header informaton, customer, supplier, required date, etc. Then it has OrderItems which is a List< OrderItem>, being the items to be ordered. I want to be able to use this business object on my UI. So I have some textboxes hooked up to the location, supplier, required date, etc and a grid hooked up to OrderItems. Since OrderItems is a List I can easily add and delete records to it. But how do I track this, especially the deleted items. I don't want the deleted items to be visible in my grid and I shouldn't be able to iterate over them if I used foreach, because they have been deleted. But I still need to track the fact there was a deletion. How do I track the changes. I think I need to use a unit of work? But then the code seems to become quite complex. So then I wonder why not simply use DataTables and get the change tracking for free? But then I read how business objects are the way to go. I’ve found various examples on simple Person examples, bnut not header-detail examples like Orders. BTW using C# 3.5 for this.
business-objects
null
null
null
null
null
open
How to track changes to business objects? === I get the concept of creating a business object or entity to represent something like a Person. I can then serialize the Person using a DTO and send it down to the client. If the client changes the object, it can have an IsDirty flag on there so when it gets sent back to the server I know to update it. But what if I have an Order object? This has the main header informaton, customer, supplier, required date, etc. Then it has OrderItems which is a List< OrderItem>, being the items to be ordered. I want to be able to use this business object on my UI. So I have some textboxes hooked up to the location, supplier, required date, etc and a grid hooked up to OrderItems. Since OrderItems is a List I can easily add and delete records to it. But how do I track this, especially the deleted items. I don't want the deleted items to be visible in my grid and I shouldn't be able to iterate over them if I used foreach, because they have been deleted. But I still need to track the fact there was a deletion. How do I track the changes. I think I need to use a unit of work? But then the code seems to become quite complex. So then I wonder why not simply use DataTables and get the change tracking for free? But then I read how business objects are the way to go. I’ve found various examples on simple Person examples, bnut not header-detail examples like Orders. BTW using C# 3.5 for this.
0
80,195
09/17/2008 05:09:20
15,020
09/17/2008 05:09:20
1
0
High Availability Storage
I would like to make 2 TB or so available via NFS and CIFS. I am looking for a 2 (or more) server solution for high availability and the ability to load balance across the servers if possible. Any suggestions for clustering or high availability solutions?
storage
high-availability
null
null
null
06/06/2012 08:04:11
off topic
High Availability Storage === I would like to make 2 TB or so available via NFS and CIFS. I am looking for a 2 (or more) server solution for high availability and the ability to load balance across the servers if possible. Any suggestions for clustering or high availability solutions?
2
80,202
09/17/2008 05:11:20
15,023
09/17/2008 05:11:20
1
0
Is this possible in CSS and javascript?
I want to use javascript to insert some elements into the current page. Such as this is the original document: &lt;p&gt;Hello world!&lt;/p&gt; Now I want to insert an element in to the text so that it will become: &lt;p&gt;Hello &lt;span id=span1&gt;new&lt;/span&gt; world!&lt;/p&gt; I need the span tag because I want to handle it later.Show or hide. But now problem comes out, if the original page has already defined a strange CSS style on all &lt;span&gt; tags, the "new" I just inserted will not appear to be the same as "Hello" and "world". How can I avoid this? I want the "new" be exactly the same as the "Hello" and "world". Thanks for your help~
css
javascript
null
null
null
null
open
Is this possible in CSS and javascript? === I want to use javascript to insert some elements into the current page. Such as this is the original document: &lt;p&gt;Hello world!&lt;/p&gt; Now I want to insert an element in to the text so that it will become: &lt;p&gt;Hello &lt;span id=span1&gt;new&lt;/span&gt; world!&lt;/p&gt; I need the span tag because I want to handle it later.Show or hide. But now problem comes out, if the original page has already defined a strange CSS style on all &lt;span&gt; tags, the "new" I just inserted will not appear to be the same as "Hello" and "world". How can I avoid this? I want the "new" be exactly the same as the "Hello" and "world". Thanks for your help~
0
80,215
09/17/2008 05:15:02
310,574
09/17/2008 05:15:02
1
0
Btrieve without Pervasive?
Is there any library available to query Btrieve databases without buying something from Pervasive? I'm looking to code in C# or Python.
c#
python
btrieve
null
null
null
open
Btrieve without Pervasive? === Is there any library available to query Btrieve databases without buying something from Pervasive? I'm looking to code in C# or Python.
0
80,216
09/17/2008 05:15:08
10,644
09/16/2008 00:39:23
6
0
Do you use application frameworks?
Application frameworks such as DotNetNuke, Eclipse, Websphere and so forth are available today which offer customizable frameworks that can be used as dashboard applications. Do you use these or do you and your peers keep writing amazing, modular, maintainable dashboard frameworks which you support yourselves? Are there any good web based, OS independent frameworks out there that you suggest using to build your own enterprise class infrastructure around?
frameworks
framework
application
null
null
null
open
Do you use application frameworks? === Application frameworks such as DotNetNuke, Eclipse, Websphere and so forth are available today which offer customizable frameworks that can be used as dashboard applications. Do you use these or do you and your peers keep writing amazing, modular, maintainable dashboard frameworks which you support yourselves? Are there any good web based, OS independent frameworks out there that you suggest using to build your own enterprise class infrastructure around?
0
80,234
09/17/2008 05:17:41
7,850
09/15/2008 14:32:35
6
1
Open .NET form in designer mode - get "The path is not of a legal form"
I attempted to open a C#/VB form in designer mode, and instead of the form, I got an ugly error message saying "The path is not of a legal form". This form used to work! What happened?
winforms
c#
vb.net
visual-studio
null
null
open
Open .NET form in designer mode - get "The path is not of a legal form" === I attempted to open a C#/VB form in designer mode, and instead of the form, I got an ugly error message saying "The path is not of a legal form". This form used to work! What happened?
0
80,243
09/17/2008 05:20:05
13,615
09/16/2008 20:12:38
21
7
Does Test Driven Development take the focus from Design?
I have mixed feelings about TDD. While I believe in testing I have a issues with the idea of the test driving my development effort. When you code to satisfy some tests written for an interface for requirements you have right now, you might shift your focus from building maintainable code, from clean design and from sound architecture. I have a problem with driven not with testing. Any thoughts?
design
architecture
tdd
agile
null
null
open
Does Test Driven Development take the focus from Design? === I have mixed feelings about TDD. While I believe in testing I have a issues with the idea of the test driving my development effort. When you code to satisfy some tests written for an interface for requirements you have right now, you might shift your focus from building maintainable code, from clean design and from sound architecture. I have a problem with driven not with testing. Any thoughts?
0
80,258
09/17/2008 05:21:58
5,723
09/11/2008 04:36:54
11
3
How to get someone started with ALT.NET
What is the order of topics to explain to a .NET developer or user group to get them started and interested with alt.net tools and practices. - ORM - IoC - TDD - DDD - CI - MVC - MVP - Version Control (I think this is the one they get the fastest) - Agile - Etc, etc...
alt.net
.net
user-groups
null
null
null
open
How to get someone started with ALT.NET === What is the order of topics to explain to a .NET developer or user group to get them started and interested with alt.net tools and practices. - ORM - IoC - TDD - DDD - CI - MVC - MVP - Version Control (I think this is the one they get the fastest) - Agile - Etc, etc...
0
80,271
09/17/2008 05:24:00
6,014
09/11/2008 23:54:53
31
10
Using SSIS to refresh a training database from a production database
I have a particular system on out network where we need to maintain a training installation. The system uses SQL Server 2000 as its database engine and I need to set up a system for refreshing the data in the training database with the data from the production database on a regular basis. I want to use SSIS as we have SQL 2005 servers I can run the process from. I have a fair bit of SQL experience, but not much with SSIS. I have been trying to do this with the "Transfer Database Task" but haven't been having much luck, as it always throws an error. If we ignore the use of configuration items etc and pretend all the database names and so forth are hard-coded, I have the following: A Single SSIS "Transfer Database Task" with the following properties: - Destination Overwrite: True - Action: Copy - Method: DatabaseOnline The error I receive is: > Error: The Execute method on the task returned error code 0x80131500 (ERROR : errorCode=-1073548784 description=Executing the query "EXEC dbo.sp_addrole @rolename = N'XXXXX' " failed with the following error: "The role 'XXXXX' already exists in the current database.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly. helpFile= helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC}). The Execute method must succeed, and indicate the result using an "out" parameter. I'm sure there is something obvious going on here, but surely if the task is set to overwrite the pre-existance of the role shouldn't matter? Does anyone know what I need to do to get this working?
sql-server
ssis
null
null
null
null
open
Using SSIS to refresh a training database from a production database === I have a particular system on out network where we need to maintain a training installation. The system uses SQL Server 2000 as its database engine and I need to set up a system for refreshing the data in the training database with the data from the production database on a regular basis. I want to use SSIS as we have SQL 2005 servers I can run the process from. I have a fair bit of SQL experience, but not much with SSIS. I have been trying to do this with the "Transfer Database Task" but haven't been having much luck, as it always throws an error. If we ignore the use of configuration items etc and pretend all the database names and so forth are hard-coded, I have the following: A Single SSIS "Transfer Database Task" with the following properties: - Destination Overwrite: True - Action: Copy - Method: DatabaseOnline The error I receive is: > Error: The Execute method on the task returned error code 0x80131500 (ERROR : errorCode=-1073548784 description=Executing the query "EXEC dbo.sp_addrole @rolename = N'XXXXX' " failed with the following error: "The role 'XXXXX' already exists in the current database.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly. helpFile= helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC}). The Execute method must succeed, and indicate the result using an "out" parameter. I'm sure there is something obvious going on here, but surely if the task is set to overwrite the pre-existance of the role shouldn't matter? Does anyone know what I need to do to get this working?
0
80,278
09/17/2008 05:25:47
15,007
09/17/2008 05:00:28
1
0
Using Google Maps in Coldfusion
I am trying to use the Google Maps API in a Coldfusion template that is a border type cflayoutarea container. However the map simply doesn't show up: <cfif isdefined("url.lat")> <cfset lat="#url.lat#"> <cfset lng="#url.lng#"> </cfif> <head> <script src= "http://maps.google.com/maps?file=api&amp;v=2&amp;key=xxxx" type="text/javascript"> function getMap(lat,lng){ if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map_canvas")); var pt= new GLatLng(lat,lng); map.setCenter(pt, 18,G_HYBRID_MAP); map.addOverlay(new GMarker(pt)); } } </script> </head> <cfoutput> <body onLoad="getMap(#lat#,#lng#)" onUnload="GUnload()"> Map:<br> <div id="map_canvas" style="width: 500px; height: 300px"/> </body> </cfoutput> where lat and lng are the co-ordinates in degree.decimal format. I have traced down to the line where GBrowserIsCompatible() somehow never returns TRUE and thus cannot be evaluated. If opened separately the template works perfectly but just not when opened as a cflayoutarea container. Anyone has experience in this? Any suggestions is much appreciated. Lawrence Using Cf 8.01, Dreamweaver 8
coldfusion
google-maps
null
null
null
null
open
Using Google Maps in Coldfusion === I am trying to use the Google Maps API in a Coldfusion template that is a border type cflayoutarea container. However the map simply doesn't show up: <cfif isdefined("url.lat")> <cfset lat="#url.lat#"> <cfset lng="#url.lng#"> </cfif> <head> <script src= "http://maps.google.com/maps?file=api&amp;v=2&amp;key=xxxx" type="text/javascript"> function getMap(lat,lng){ if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map_canvas")); var pt= new GLatLng(lat,lng); map.setCenter(pt, 18,G_HYBRID_MAP); map.addOverlay(new GMarker(pt)); } } </script> </head> <cfoutput> <body onLoad="getMap(#lat#,#lng#)" onUnload="GUnload()"> Map:<br> <div id="map_canvas" style="width: 500px; height: 300px"/> </body> </cfoutput> where lat and lng are the co-ordinates in degree.decimal format. I have traced down to the line where GBrowserIsCompatible() somehow never returns TRUE and thus cannot be evaluated. If opened separately the template works perfectly but just not when opened as a cflayoutarea container. Anyone has experience in this? Any suggestions is much appreciated. Lawrence Using Cf 8.01, Dreamweaver 8
0
80,284
09/17/2008 05:26:41
9,087
09/15/2008 17:41:56
3
0
Generating Javascript code
Are there any good tools to generate javascript.I remember in dotnet, there was Script#, dont know its status today.Anyone has experience with any tools?
javascript
null
null
null
null
null
open
Generating Javascript code === Are there any good tools to generate javascript.I remember in dotnet, there was Script#, dont know its status today.Anyone has experience with any tools?
0
80,287
09/17/2008 05:26:52
5,302
09/08/2008 22:49:47
210
18
How can I build a 'dependency tree diagram' from my .NET solution
I can get easily see what projects and dlls a single project references from within a Visual Studio .NET project. Is there any application or use of reflection that can build me a full dependency tree that I can use to plot a graphical chart of dependencies?
.net
dependencies
null
null
null
null
open
How can I build a 'dependency tree diagram' from my .NET solution === I can get easily see what projects and dlls a single project references from within a Visual Studio .NET project. Is there any application or use of reflection that can build me a full dependency tree that I can use to plot a graphical chart of dependencies?
0
80,291
09/17/2008 05:27:06
3,276
08/27/2008 16:22:08
19
4
Granting access to hundreds of SPs??
In Sql Server 2000/2005, I have a few NT user groups that need to be granted access to hundreds of stored procedures. Is there a nice easy way to do that?
sql-server
security
stored-procedures
automation
null
null
open
Granting access to hundreds of SPs?? === In Sql Server 2000/2005, I have a few NT user groups that need to be granted access to hundreds of stored procedures. Is there a nice easy way to do that?
0
80,292
09/17/2008 05:27:09
3,831
08/31/2008 05:31:12
13
1
mysqli_statement::num_rows() returns the wrong value
I was writing a database handler class in PHP using the mysqli class and prepared statements. I was attempting to print out the result. It didn't work right off the bat so I decided to do some debugging. I tried to use the `num_rows()` method from the `mysqli_statement` class, but it kept returning 0. I decided to write a small portion of test code to keep it simpler so I could see what was going wrong. I was then able to return the data I wanted, but the `num_rows()` method still returns 0 even when it is actually selecting and retrieving some data. Here is the code: $mysqli = new mysqli('localhost', 'username', 'password', 'database'); if(mysqli_connect_errno()) { die('connection failed'); } $statement = $mysqli->stmt_init(); $query = "SELECT name FROM table WHERE id = '2000'"; if($statement->prepare($query)) { $statement->execute(); $statement->bind_result($name); $statement->fetch(); $statement->store_result(); echo $statement->num_rows(); echo $name; } else { echo 'prepare statement failed'; exit(); } So yeah, expected result is: 1name And actual result is: 0name Can anyone tell me why this is?
php
mysqli
null
null
null
null
open
mysqli_statement::num_rows() returns the wrong value === I was writing a database handler class in PHP using the mysqli class and prepared statements. I was attempting to print out the result. It didn't work right off the bat so I decided to do some debugging. I tried to use the `num_rows()` method from the `mysqli_statement` class, but it kept returning 0. I decided to write a small portion of test code to keep it simpler so I could see what was going wrong. I was then able to return the data I wanted, but the `num_rows()` method still returns 0 even when it is actually selecting and retrieving some data. Here is the code: $mysqli = new mysqli('localhost', 'username', 'password', 'database'); if(mysqli_connect_errno()) { die('connection failed'); } $statement = $mysqli->stmt_init(); $query = "SELECT name FROM table WHERE id = '2000'"; if($statement->prepare($query)) { $statement->execute(); $statement->bind_result($name); $statement->fetch(); $statement->store_result(); echo $statement->num_rows(); echo $name; } else { echo 'prepare statement failed'; exit(); } So yeah, expected result is: 1name And actual result is: 0name Can anyone tell me why this is?
0
80,305
09/17/2008 05:31:00
9,087
09/15/2008 17:41:56
3
0
Test Coverage for visual basic project
We are developing a visual basic 6.0 project.We have written a library, which we were testing using vbunit and vbmock.But, soon found that the tests were not maintainable.So, we decided to write tests using MBunit.Now, we want to know the test coverage.How can we do it? thanks
visualbasic
null
null
null
null
null
open
Test Coverage for visual basic project === We are developing a visual basic 6.0 project.We have written a library, which we were testing using vbunit and vbmock.But, soon found that the tests were not maintainable.So, we decided to write tests using MBunit.Now, we want to know the test coverage.How can we do it? thanks
0
80,307
09/17/2008 05:31:17
426
08/05/2008 15:31:51
11
3
Windows wallpaper: not just BMPs?
I've read in a couple of places that the desktop wallpaper can be set to an HTML document. Has anyone had any success changing it programmatically? The following snippet of VB6 helps me set things up for BMPs but when I try to use it for HTML, I get a nice blue background and nothing else. Dim reg As New StdRegistry Public Function CurrentWallpaper() As String CurrentWallpaper = reg.ValueEx(HKEY_CURRENT_USER, "Control Panel\Desktop", "Wallpaper", REG_SZ, "") End Function Public Sub SetWallpaper(cFilename As Variant) reg.ClassKey = HKEY_CURRENT_USER reg.SectionKey = "Control Panel\Desktop" reg.ValueKey = "Wallpaper" reg.ValueType = REG_SZ reg.Default = "" reg.Value = cFilename End Sub Public Sub RefreshDesktop() Dim oShell As Object Set oShell = CreateObject("WScript.Shell") oShell.Run "%windir%\System32\RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters", 1, True End Sub Perhaps there's some other setting that's required. Any ideas?
vb6
registry
desktop-wallpaper
null
null
null
open
Windows wallpaper: not just BMPs? === I've read in a couple of places that the desktop wallpaper can be set to an HTML document. Has anyone had any success changing it programmatically? The following snippet of VB6 helps me set things up for BMPs but when I try to use it for HTML, I get a nice blue background and nothing else. Dim reg As New StdRegistry Public Function CurrentWallpaper() As String CurrentWallpaper = reg.ValueEx(HKEY_CURRENT_USER, "Control Panel\Desktop", "Wallpaper", REG_SZ, "") End Function Public Sub SetWallpaper(cFilename As Variant) reg.ClassKey = HKEY_CURRENT_USER reg.SectionKey = "Control Panel\Desktop" reg.ValueKey = "Wallpaper" reg.ValueType = REG_SZ reg.Default = "" reg.Value = cFilename End Sub Public Sub RefreshDesktop() Dim oShell As Object Set oShell = CreateObject("WScript.Shell") oShell.Run "%windir%\System32\RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters", 1, True End Sub Perhaps there's some other setting that's required. Any ideas?
0
80,313
09/17/2008 05:33:47
15,059
09/17/2008 05:33:47
1
0
How do I preview a url using ajax?
How do I preview a url using ajax? I have seen this done with search engine plug ins and would like to learn how to do this.
ajax
asp.net
null
null
null
null
open
How do I preview a url using ajax? === How do I preview a url using ajax? I have seen this done with search engine plug ins and would like to learn how to do this.
0
80,319
09/17/2008 05:35:41
15,063
09/17/2008 05:35:41
1
0
Convert 00:00:00 to hours, minutes, seconds
I have video durations stored in HH:MM:SS format. I'd like to display it as HH hours, MM minutes, SS seconds. It shouldn't display hours if its less than 1.
php
null
null
null
null
null
open
Convert 00:00:00 to hours, minutes, seconds === I have video durations stored in HH:MM:SS format. I'd like to display it as HH hours, MM minutes, SS seconds. It shouldn't display hours if its less than 1.
0
80,320
09/17/2008 05:35:46
14,278
09/16/2008 22:54:14
1
0
Poppler programming
Poppler is a classic example of something without documentation that you would prefer be documented. This question is language agnostic, just asking about the general idea.. In short, how do you make a PDF viewer control with poppler? From what I can tell, you'd need to use poppler to render it to some surface, which sounds good up until you ask yourself how the user would select text and such. Does poppler offer a window for its various bindings, or do you have to code it all yourself?
language-agnostic
pdf
cross-platform
poppler
null
null
open
Poppler programming === Poppler is a classic example of something without documentation that you would prefer be documented. This question is language agnostic, just asking about the general idea.. In short, how do you make a PDF viewer control with poppler? From what I can tell, you'd need to use poppler to render it to some surface, which sounds good up until you ask yourself how the user would select text and such. Does poppler offer a window for its various bindings, or do you have to code it all yourself?
0
80,323
09/17/2008 05:36:17
15,050
09/17/2008 05:27:46
1
0
SQL Server 2008 Reporting Services Report Definition Customization Extensions
I've been looking into report definition customization extensions (RDCE) in SQL2K8 recently and I've been at a loss to find much documentation or even chatter on the internet about it. MSDN has a brief overview: http://msdn.microsoft.com/en-us/library/cc281022.aspx And the sample report from this book http://www.amazon.com/Applied-Microsoft-Server-Reporting-Services/dp/0976635313/ref=pd_bbs_sr_2?ie=UTF8&s=books&qid=1221629676&sr=8-2 is something, but I was wondering if anyone had real experience with this and how it worked out for them. And if anyone has other references worth looking at I'd appreciate it.
documentation
reporting-services
sqlreportingservices
sql-server-2008
null
null
open
SQL Server 2008 Reporting Services Report Definition Customization Extensions === I've been looking into report definition customization extensions (RDCE) in SQL2K8 recently and I've been at a loss to find much documentation or even chatter on the internet about it. MSDN has a brief overview: http://msdn.microsoft.com/en-us/library/cc281022.aspx And the sample report from this book http://www.amazon.com/Applied-Microsoft-Server-Reporting-Services/dp/0976635313/ref=pd_bbs_sr_2?ie=UTF8&s=books&qid=1221629676&sr=8-2 is something, but I was wondering if anyone had real experience with this and how it worked out for them. And if anyone has other references worth looking at I'd appreciate it.
0
80,341
09/17/2008 05:42:59
13,825
09/16/2008 20:58:32
11
1
Best OS App for Outbound SMTP Packet Capture?
Okay, so this probably sounds terribly nefarious, but I need such capabilities for my senior project. Essentially I'm tasked with writing something that will cut down outbound spam on a zombified pc through a system of packet interception and evaluation. We have a number of algorithms we'll use on the captured messages, but it's the actual capture -- full on interception rather than just sniffing -- that has me a bit stumped. The app is being designed for windows, so I can't use IP tables. I could use the winpcap libraries, but I don't want to reinvent the wheel if I don't have to. Ettercap seemed a good option, but a test run on vista using the unofficial binaries resulted in nothing but crashes. So, any suggestions?
c++
smtp
packet-capture
sounds-creepy-but-its-n
spam-blocking
null
open
Best OS App for Outbound SMTP Packet Capture? === Okay, so this probably sounds terribly nefarious, but I need such capabilities for my senior project. Essentially I'm tasked with writing something that will cut down outbound spam on a zombified pc through a system of packet interception and evaluation. We have a number of algorithms we'll use on the captured messages, but it's the actual capture -- full on interception rather than just sniffing -- that has me a bit stumped. The app is being designed for windows, so I can't use IP tables. I could use the winpcap libraries, but I don't want to reinvent the wheel if I don't have to. Ettercap seemed a good option, but a test run on vista using the unofficial binaries resulted in nothing but crashes. So, any suggestions?
0
80,351
09/17/2008 05:45:22
11,023
09/16/2008 04:03:45
71
5
PHP debugging on OS X - hopeless?
I have tried: 1. Xdebug and Eclipse. Eclipse launches a web browser, but the browser tries to access a non-existent file in Eclipse's .app bundle. 2. Xdebug and NetBeans. It does a little bit better; a browser opens a page in /tmp which says "Launching. Please wait…" but nothing happens beyond that. 3. Xdebug and debugclient, the CLI tool which comes with Xdebug. MacPorts (which I used to install PHP and Xdebug) doesn't seem to install this by itself, and when I try compiling it by hand, I get told "you have strange libedit". Installing libedit via MacPorts doesn't solve that. 4. Zend's debugger (the precise name escapes me right now) and Eclipse. I can't recall what the problem was, as this was some time ago, but it didn't work. With regards to Xdebug, at least, I'm fairly confident I've installed it correctly. It shows up with both a phpinfo() in a PHP file and a `php -i` in the CLI. If anyone has managed to get PHP debugging working in some way or other on the Mac, I'd appreciate it if you could share with me how. Littering code with `var_dump($foo);die();` gets old quick. Bonus points if it can be done *without* using some bloatware editor like Eclipse, or that expensive proprietary thing Zend wants to sell me. My server is connecting to PHP via FastCGI, if that makes a diff.
php
osx
debugging
null
null
null
open
PHP debugging on OS X - hopeless? === I have tried: 1. Xdebug and Eclipse. Eclipse launches a web browser, but the browser tries to access a non-existent file in Eclipse's .app bundle. 2. Xdebug and NetBeans. It does a little bit better; a browser opens a page in /tmp which says "Launching. Please wait…" but nothing happens beyond that. 3. Xdebug and debugclient, the CLI tool which comes with Xdebug. MacPorts (which I used to install PHP and Xdebug) doesn't seem to install this by itself, and when I try compiling it by hand, I get told "you have strange libedit". Installing libedit via MacPorts doesn't solve that. 4. Zend's debugger (the precise name escapes me right now) and Eclipse. I can't recall what the problem was, as this was some time ago, but it didn't work. With regards to Xdebug, at least, I'm fairly confident I've installed it correctly. It shows up with both a phpinfo() in a PHP file and a `php -i` in the CLI. If anyone has managed to get PHP debugging working in some way or other on the Mac, I'd appreciate it if you could share with me how. Littering code with `var_dump($foo);die();` gets old quick. Bonus points if it can be done *without* using some bloatware editor like Eclipse, or that expensive proprietary thing Zend wants to sell me. My server is connecting to PHP via FastCGI, if that makes a diff.
0
80,357
09/17/2008 05:46:26
422
08/05/2008 15:11:55
1,136
51
Ruby - Match All Occurrences Of a Regex
Is there a quick way to find every match of a regular expression in Ruby? I've looked through the Regex object in the Ruby STL and searched on Google to no avail. Thanks!
ruby
regex
null
null
null
null
open
Ruby - Match All Occurrences Of a Regex === Is there a quick way to find every match of a regular expression in Ruby? I've looked through the Regex object in the Ruby STL and searched on Google to no avail. Thanks!
0
80,369
09/17/2008 05:48:44
4,298
09/02/2008 18:17:28
54
2
How do you get the asp:Menu to follow the url provided in the Web.sitemap?
I have a _simple_ asp:menu item that uses the Web.sitemap to get the menu items. The page will postback but fails to get the page associated to the clicked item. I will mention that the navigation bar code is within the masterpage file. <div> <asp:SiteMapDataSource ID="SiteMapDataSource1" ShowStartingNode="false" runat="server" /> <asp:Menu ID="Menu1" Orientation="horizontal" runat="server" BackColor="#a0a080" DataSourceID="SiteMapDataSource1" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#a00000" StaticSubMenuIndent="10px" Style="z-index: 2; left: 390px; position: absolute; top: 281px" Height="20px" Width="311px"> <StaticSelectedStyle BackColor="#a0a080" /> <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" /> <DynamicHoverStyle BackColor="#a0a080" ForeColor="White" /> <DynamicMenuStyle BackColor="#a0a080" /> <DynamicSelectedStyle BackColor="#a0a080" /> <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" /> <DataBindings> <asp:MenuItemBinding DataMember="SiteMapNode" EnabledField="Title" TextField="Title" /> </DataBindings> <StaticHoverStyle BackColor="#666666" ForeColor="White" /> </asp:Menu> </div> `<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="" title="" description=""> <siteMapNode title="Home" description="Zombie (be)Warehouse" url="index.aspx" /> <siteMapNode title="Armor" description="Anti-Zombie Armor" url="Armor.aspx" /> <siteMapNode title="Weapons" description="Anti-Zombie Weapons" url="Weapons.aspx" /> <siteMapNode title="Manuals" description="Survival Manuals" url="Manuals.aspx" /> <siteMapNode title="Sustenance" description="Prepared food for survival" url="Sustenance.aspx" /> <siteMapNode title="Contacts" description="Contact Us" url="Contacts.aspx" /> <siteMapNode title="About" description="About Zombie (be)Warehouse" url="About.aspx" /> </siteMapNode> </siteMap>`
asp.net
null
null
null
null
null
open
How do you get the asp:Menu to follow the url provided in the Web.sitemap? === I have a _simple_ asp:menu item that uses the Web.sitemap to get the menu items. The page will postback but fails to get the page associated to the clicked item. I will mention that the navigation bar code is within the masterpage file. <div> <asp:SiteMapDataSource ID="SiteMapDataSource1" ShowStartingNode="false" runat="server" /> <asp:Menu ID="Menu1" Orientation="horizontal" runat="server" BackColor="#a0a080" DataSourceID="SiteMapDataSource1" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#a00000" StaticSubMenuIndent="10px" Style="z-index: 2; left: 390px; position: absolute; top: 281px" Height="20px" Width="311px"> <StaticSelectedStyle BackColor="#a0a080" /> <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" /> <DynamicHoverStyle BackColor="#a0a080" ForeColor="White" /> <DynamicMenuStyle BackColor="#a0a080" /> <DynamicSelectedStyle BackColor="#a0a080" /> <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" /> <DataBindings> <asp:MenuItemBinding DataMember="SiteMapNode" EnabledField="Title" TextField="Title" /> </DataBindings> <StaticHoverStyle BackColor="#666666" ForeColor="White" /> </asp:Menu> </div> `<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="" title="" description=""> <siteMapNode title="Home" description="Zombie (be)Warehouse" url="index.aspx" /> <siteMapNode title="Armor" description="Anti-Zombie Armor" url="Armor.aspx" /> <siteMapNode title="Weapons" description="Anti-Zombie Weapons" url="Weapons.aspx" /> <siteMapNode title="Manuals" description="Survival Manuals" url="Manuals.aspx" /> <siteMapNode title="Sustenance" description="Prepared food for survival" url="Sustenance.aspx" /> <siteMapNode title="Contacts" description="Contact Us" url="Contacts.aspx" /> <siteMapNode title="About" description="About Zombie (be)Warehouse" url="About.aspx" /> </siteMapNode> </siteMap>`
0
80,370
09/17/2008 05:48:54
7,888
09/15/2008 14:38:22
206
19
Reparenting a Window as a Tab in a GTK Notebook
I'm using Mono with GTK# and am trying to display an existing window as a new tab in a GTK.Notebook. I'm currently re-parenting the widget to the notebook as follows: <pre> MyWindow myWindow = new MyWindow(); myWindow.Children[0].Reparent(myNotebook) </pre> Should I be doing this, or is there a better way to re-use an existing window so that you can display it on a tab?
gtk
gtk#
null
null
null
null
open
Reparenting a Window as a Tab in a GTK Notebook === I'm using Mono with GTK# and am trying to display an existing window as a new tab in a GTK.Notebook. I'm currently re-parenting the widget to the notebook as follows: <pre> MyWindow myWindow = new MyWindow(); myWindow.Children[0].Reparent(myNotebook) </pre> Should I be doing this, or is there a better way to re-use an existing window so that you can display it on a tab?
0
80,386
09/17/2008 05:52:51
14,648
09/17/2008 01:45:09
171
8
What Is The Vim Feature That You Like The Most?
I am interested in what people use as their text editor, and would specifically like to know what is the feature of vim that you like the most? In answering, please state what you mostly use vim to do, sysadmin tasks, programming, and in what language you mostly program in.
editor
ide
vim
null
null
null
open
What Is The Vim Feature That You Like The Most? === I am interested in what people use as their text editor, and would specifically like to know what is the feature of vim that you like the most? In answering, please state what you mostly use vim to do, sysadmin tasks, programming, and in what language you mostly program in.
0
80,388
09/17/2008 05:53:11
1,199,387
08/06/2008 23:58:10
541
30
WPF Data Triggers and Story Boards
I'm trying to trigger a progress animation when ever the ViewModel/Presentation Model is Bussy. I have a IsBussy Property, and the ViewModel is set as the DataContext of the UserControl. What is the best way to trigger a "progressAnimation" story board when the IsBussy property is true? Blend only let med add Event-Triggers on a UserControl level, and I can only create property triggers in my data templates. The "progressAnimation" is defined as a resource in the user control. I tried adding the DataTriggers as a Style on the UserControl, but when I try to start the StoryBoard I get the following error: 'System.Windows.Style' value cannot be assigned to property 'Style' of object'Colorful.Control.SearchPanel'. A Storyboard tree in a Style cannot specify a TargetName. Remove TargetName 'progressWheel'. ProgressWheel is the name of the object I'm trying to animate, so removing target name is obvisouly NOT what I want. I was hoping to solve this in XAML using data binding techniques, in stead of having to expose events and start/stop the animation through code.
wpf
animation
expression-blend
null
null
null
open
WPF Data Triggers and Story Boards === I'm trying to trigger a progress animation when ever the ViewModel/Presentation Model is Bussy. I have a IsBussy Property, and the ViewModel is set as the DataContext of the UserControl. What is the best way to trigger a "progressAnimation" story board when the IsBussy property is true? Blend only let med add Event-Triggers on a UserControl level, and I can only create property triggers in my data templates. The "progressAnimation" is defined as a resource in the user control. I tried adding the DataTriggers as a Style on the UserControl, but when I try to start the StoryBoard I get the following error: 'System.Windows.Style' value cannot be assigned to property 'Style' of object'Colorful.Control.SearchPanel'. A Storyboard tree in a Style cannot specify a TargetName. Remove TargetName 'progressWheel'. ProgressWheel is the name of the object I'm trying to animate, so removing target name is obvisouly NOT what I want. I was hoping to solve this in XAML using data binding techniques, in stead of having to expose events and start/stop the animation through code.
0
80,394
09/17/2008 05:55:08
1,693
08/18/2008 02:25:37
1,073
43
What constitutes 'real time'
I am having trouble deciding on whether to classify my application as 'real time' or 'near real time', or perhaps even something else. The software receives data immediately as it is generated from the source, then based on certain rules, raises an alert when certain conditions are met. It takes the approach of checking the last 30 seconds of data every 30 seconds to see whether the criteria for a rule has been met. Is that real time? What are the thresholds for the definitions of real time vs. near real-time?
real-time
near-real-time
glossary
null
null
null
open
What constitutes 'real time' === I am having trouble deciding on whether to classify my application as 'real time' or 'near real time', or perhaps even something else. The software receives data immediately as it is generated from the source, then based on certain rules, raises an alert when certain conditions are met. It takes the approach of checking the last 30 seconds of data every 30 seconds to see whether the criteria for a rule has been met. Is that real time? What are the thresholds for the definitions of real time vs. near real-time?
0
80,415
09/17/2008 06:00:50
13,046
09/16/2008 16:48:52
1
1
Perl Regex Match and Removal
I have a string which starts with //#... goes upto the newline characater. I have figured out the regex for the which is this ..#([^\n]*). My question is how do you remove this line from a file if the following condition matches
regex
perl
null
null
null
null
open
Perl Regex Match and Removal === I have a string which starts with //#... goes upto the newline characater. I have figured out the regex for the which is this ..#([^\n]*). My question is how do you remove this line from a file if the following condition matches
0
80,424
09/17/2008 06:02:33
14,530
09/17/2008 00:44:16
21
8
Overriding "find" in ActiveRecord the DRY way
I have a few models that need to have custom find conditions placed on them. For example, if I have a Contact model, every time Contact.find is called, I want to restrict the contacts returned that only belong to the Account in use. I found this via Google (which I've customized a little): def self.find(*args) with_scope(:find => { :conditions => "account_id = #{$account.id}" }) do super(*args) end end This works great, except for a few occasions where account_id is ambiguous so I adapted it to: def self.find(*args) with_scope(:find => { :conditions => "#{self.to_s.downcase.pluralize}.account_id = #{$account.id}" }) do super(*args) end end This also works great, however, I want it to be DRY. Now I have a few different models that I want this kind of function to be used. What is the best way to do this? When you answer, please include the code to help our minds grasp the metaprogramming Ruby-fu.
ruby
ruby-on-rails
activerecord
metaprogramming
override
null
open
Overriding "find" in ActiveRecord the DRY way === I have a few models that need to have custom find conditions placed on them. For example, if I have a Contact model, every time Contact.find is called, I want to restrict the contacts returned that only belong to the Account in use. I found this via Google (which I've customized a little): def self.find(*args) with_scope(:find => { :conditions => "account_id = #{$account.id}" }) do super(*args) end end This works great, except for a few occasions where account_id is ambiguous so I adapted it to: def self.find(*args) with_scope(:find => { :conditions => "#{self.to_s.downcase.pluralize}.account_id = #{$account.id}" }) do super(*args) end end This also works great, however, I want it to be DRY. Now I have a few different models that I want this kind of function to be used. What is the best way to do this? When you answer, please include the code to help our minds grasp the metaprogramming Ruby-fu.
0
80,427
09/17/2008 06:03:06
924,607
09/17/2008 00:56:34
1
0
Iterate over and check the byte value of every character in a string - VBA
Iterate over and check the byte value of every character in a string - VBA Code I have: cell_val = CStr(Nz(fld.value, "")) Dim iter As Long For iter = 0 To Len(cell_val) - 1 Step 1 If Asc(Mid(cell_val, iter, 1)) > 127 Then addlog "Export contains ascii character > 127" End If Next iter This code doesn't work. Anyone know how to do this? I've simply got no idea with VB or VBA.
string
vba
loops
for-loop
null
null
open
Iterate over and check the byte value of every character in a string - VBA === Iterate over and check the byte value of every character in a string - VBA Code I have: cell_val = CStr(Nz(fld.value, "")) Dim iter As Long For iter = 0 To Len(cell_val) - 1 Step 1 If Asc(Mid(cell_val, iter, 1)) > 127 Then addlog "Export contains ascii character > 127" End If Next iter This code doesn't work. Anyone know how to do this? I've simply got no idea with VB or VBA.
0
80,429
09/17/2008 06:03:38
14,484
09/17/2008 00:21:42
119
10
What are the best resources for Windows Workflow Foundation (WWF)?
I am looking for a few books, blogs or articles on WWF. I've read the books below; however, I need resources that cover the topic in more depth. I am especially interested in local services, persistence, tracking and viewing Workflows from a website. Any suggestions? [Pro WF: Windows Workflow in .NET 3.0][1] [Essential Windows Workflow Foundation][2] [1]: http://www.amazon.com/Pro-WF-Windows-Workflow-Experts/dp/1590597788/ref=pd_sim_b_3 [2]: http://www.amazon.com/Essential-Workflow-Foundation-Microsoft-Development/dp/0321399838/ref=pd_sim_b_6
wwf
workflow
.net-3.0
null
null
null
open
What are the best resources for Windows Workflow Foundation (WWF)? === I am looking for a few books, blogs or articles on WWF. I've read the books below; however, I need resources that cover the topic in more depth. I am especially interested in local services, persistence, tracking and viewing Workflows from a website. Any suggestions? [Pro WF: Windows Workflow in .NET 3.0][1] [Essential Windows Workflow Foundation][2] [1]: http://www.amazon.com/Pro-WF-Windows-Workflow-Experts/dp/1590597788/ref=pd_sim_b_3 [2]: http://www.amazon.com/Essential-Workflow-Foundation-Microsoft-Development/dp/0321399838/ref=pd_sim_b_6
0
80,452
09/17/2008 06:09:24
15,112
09/17/2008 06:09:24
1
0
Best technology for developing an app that runs on DESKTOP and in BROWSER?
Microsoft WPF? Adobe AIR/Flex? Adobe Flash? Curl programming language? How does AJAX fit in? Given a server written in C++ .NET.
c++
distributed
client
null
null
null
open
Best technology for developing an app that runs on DESKTOP and in BROWSER? === Microsoft WPF? Adobe AIR/Flex? Adobe Flash? Curl programming language? How does AJAX fit in? Given a server written in C++ .NET.
0
80,470
09/17/2008 06:12:43
13,825
09/16/2008 20:58:32
16
5
Performance of an large directory structure, networked application
I'm trying to find out what the performance of a large directory structure would be if deep directories were to be accessed on a shared, nfs filesystem. The structure would be excessively large, with 4 levels of nested directories, each level containing 1024 directories. (1024 at root, 1024 in a given subdirectory, and so on). This filesystem would be on a network repository that users would be accessing for their personal information. The data would be replicated on multiple servers and load-balanced, but still, each machine would have a decent load at all times. If the 4th level contained the information that the users were looking for, how bad would the performance be? If all were accessing different subdirectories? Could this be resolved by caching inode information, or no? I've been searching on this for a while, but I'm primarily finding information on large files rather than large directory structures.
performance
link-performance
nfs
academic
null
null
open
Performance of an large directory structure, networked application === I'm trying to find out what the performance of a large directory structure would be if deep directories were to be accessed on a shared, nfs filesystem. The structure would be excessively large, with 4 levels of nested directories, each level containing 1024 directories. (1024 at root, 1024 in a given subdirectory, and so on). This filesystem would be on a network repository that users would be accessing for their personal information. The data would be replicated on multiple servers and load-balanced, but still, each machine would have a decent load at all times. If the 4th level contained the information that the users were looking for, how bad would the performance be? If all were accessing different subdirectories? Could this be resolved by caching inode information, or no? I've been searching on this for a while, but I'm primarily finding information on large files rather than large directory structures.
0
80,476
09/17/2008 06:14:23
2,948
08/26/2008 08:39:22
1,428
35
How to concatenate two arrays in Java?
I need to concatenate to String arrays in Java. void f(String[] first, String[] second) { String[] both = ??? } What is the easiest way to do this?
arrays
concatenation
java
append
add
null
open
How to concatenate two arrays in Java? === I need to concatenate to String arrays in Java. void f(String[] first, String[] second) { String[] both = ??? } What is the easiest way to do this?
0
80,486
09/17/2008 06:17:09
5,132
09/08/2008 03:37:55
23
2
How do you turn on Code Coverage in Builds within TFS?
I need to know how to turn on Code Coverage when running TFS builds on a solution with a .testrunconfig file. There is an option i the testrunconfig file that is for code coverage, but when running a TFS build there is no code coverage results
tfs
code-coverage
build-process
null
null
null
open
How do you turn on Code Coverage in Builds within TFS? === I need to know how to turn on Code Coverage when running TFS builds on a solution with a .testrunconfig file. There is an option i the testrunconfig file that is for code coverage, but when running a TFS build there is no code coverage results
0
80,493
09/17/2008 06:18:24
3,175
08/27/2008 06:54:20
33
2
Reading Unformatted Data
In C, using the standard Windows API, what is the best way to read an unformatted disk? Specifically, I have an [MMC][1] or [SD card][2] with data, but no file system (not FAT16, not FAT32, just raw data). If there was a simple way to open the entire card for byte by byte binary access, that would be great. Thanks! [1]: http://en.wikipedia.org/wiki/MultiMediaCard [2]: http://en.wikipedia.org/wiki/Secure_Digital_card
windows
c
null
null
null
null
open
Reading Unformatted Data === In C, using the standard Windows API, what is the best way to read an unformatted disk? Specifically, I have an [MMC][1] or [SD card][2] with data, but no file system (not FAT16, not FAT32, just raw data). If there was a simple way to open the entire card for byte by byte binary access, that would be great. Thanks! [1]: http://en.wikipedia.org/wiki/MultiMediaCard [2]: http://en.wikipedia.org/wiki/Secure_Digital_card
0
80,515
09/17/2008 06:22:48
11,104
09/16/2008 05:05:00
11
1
What is the location of OpenOffice.org templates in Linux?
I'd like to install some presentation templates, but don't know where to put them... Thanks a lot
linux
debian
openoffice.org
null
null
null
open
What is the location of OpenOffice.org templates in Linux? === I'd like to install some presentation templates, but don't know where to put them... Thanks a lot
0
80,518
09/17/2008 06:23:34
8,668
09/15/2008 16:34:01
31
3
What happens when the stylus "lifts" on a tablet pc? How best to capture that event?
I am working on a legacy project in VC++/Win32/MFC. Recently it became a requirement that the application work on a **tablet pc**, and this ushered in a host of new issues: > 1. the software keyboard has to use a "toggle" mode for shift and control > keys because the stylus cannot "press" > control and "C" at the same time. > 2. You cannot very easily keep a "keyboard focus" on a window when the > stylus has to trail out of the focused > window to push a key on the virtual > keyboard. I have been able to work with, and around these issues, **but am left with one wherein I could use some expert suggestions.** I have a particular bug that is induced by the "lift" of the stylus off of the active surface. Basically the mouse cursor disappears and then reappears when you "press" it back onto the screen. It makes sense that this is unaccounted for in the application. you can't "lift" the cursor on a desktop pc. So what I am looking for is a good overview on what happens (in terms of windows messages, etc.) when the lift occurs. Does this translate to just focus changes and mouseover events? My bug seems to also involve cursor changes (may not be lift related though). Certainly the unexpected "lift" is breaking the state of the application's tool processing. **So the tangible questions are:** 1. What happens when a stylus "lift" occurs? A press? 2. What API calls can be used to detect this? Does it just translate into standard messages with flags/values set? 3. Whats a good way to test/emulate this when your development pc is a desktop? Am I just flying blind here? (I only have periodic access to a tablet pc) 4. What represents correct behavior or best practice for tablet stylus awareness? Thanks for your consideration, ee PS. As I do not yet have enough reputation to post comments, I will have to make use of edits on this question to respond.
c++
windows
tablet-pc
stylus
events
null
open
What happens when the stylus "lifts" on a tablet pc? How best to capture that event? === I am working on a legacy project in VC++/Win32/MFC. Recently it became a requirement that the application work on a **tablet pc**, and this ushered in a host of new issues: > 1. the software keyboard has to use a "toggle" mode for shift and control > keys because the stylus cannot "press" > control and "C" at the same time. > 2. You cannot very easily keep a "keyboard focus" on a window when the > stylus has to trail out of the focused > window to push a key on the virtual > keyboard. I have been able to work with, and around these issues, **but am left with one wherein I could use some expert suggestions.** I have a particular bug that is induced by the "lift" of the stylus off of the active surface. Basically the mouse cursor disappears and then reappears when you "press" it back onto the screen. It makes sense that this is unaccounted for in the application. you can't "lift" the cursor on a desktop pc. So what I am looking for is a good overview on what happens (in terms of windows messages, etc.) when the lift occurs. Does this translate to just focus changes and mouseover events? My bug seems to also involve cursor changes (may not be lift related though). Certainly the unexpected "lift" is breaking the state of the application's tool processing. **So the tangible questions are:** 1. What happens when a stylus "lift" occurs? A press? 2. What API calls can be used to detect this? Does it just translate into standard messages with flags/values set? 3. Whats a good way to test/emulate this when your development pc is a desktop? Am I just flying blind here? (I only have periodic access to a tablet pc) 4. What represents correct behavior or best practice for tablet stylus awareness? Thanks for your consideration, ee PS. As I do not yet have enough reputation to post comments, I will have to make use of edits on this question to respond.
0
80,541
09/17/2008 06:28:36
131
08/02/2008 08:58:50
153
5
Given two dates what is the best way of finding the number of weekdays in PHP?
The title is pretty much self explanatory. Given two dates what is the best way of finding the number of weekdays using PHP? For instance, how would I find out that there are 10 week days in between 31/08/2008 and 13/09/2008?
php
date
null
null
null
null
open
Given two dates what is the best way of finding the number of weekdays in PHP? === The title is pretty much self explanatory. Given two dates what is the best way of finding the number of weekdays using PHP? For instance, how would I find out that there are 10 week days in between 31/08/2008 and 13/09/2008?
0
80,544
09/17/2008 06:29:32
11,114
09/16/2008 05:11:37
11
3
Is there any good tool for working on Dabtabase apart from Toad which requires license and DBVisualiser not supportive
Is there any good tool for working on Dabtabase apart from Toad which requires license and DBVisualiser not supportive
sql
database
null
null
null
null
open
Is there any good tool for working on Dabtabase apart from Toad which requires license and DBVisualiser not supportive === Is there any good tool for working on Dabtabase apart from Toad which requires license and DBVisualiser not supportive
0
80,548
09/17/2008 06:30:35
15,138
09/17/2008 06:30:34
1
0
Transmitfile, download with weird behaviour
I am using httpresponse.Transmitfile to download files. If I, in the file download dialog, choose to save in a different folder than the suggested one, the download rate drops down to 10 - 20 kb. If I cancel, or always choose to download in the same folder, then transfer rate are 200 kb and more. Here are my code : procedure TDefault.LastNedBilde(strURL: string); var Outfil: FileInfo; begin Outfil:= FileInfo.Create(Server.MapPath(strUrl) ); response.Clear(); response.ClearContent(); response.ClearHeaders(); response.Buffer := True; response.ContentType :='image/tiff'; response.AddHeader('Content-Disposition', 'attachment; filename=' + filename;'); response.AddHeader('Content-Length', Outfil.Length.ToString()); response.Transmitfile(strUrl,0,Outfil.Length); response.Flush(); response.&End; end; This is written in RadStudio 2007, Delphi for .Net. Have anybody experienced anything like this ? This is not a problem in Opera or Firefox, only internet explorer.
asp.net
delphi
null
null
null
null
open
Transmitfile, download with weird behaviour === I am using httpresponse.Transmitfile to download files. If I, in the file download dialog, choose to save in a different folder than the suggested one, the download rate drops down to 10 - 20 kb. If I cancel, or always choose to download in the same folder, then transfer rate are 200 kb and more. Here are my code : procedure TDefault.LastNedBilde(strURL: string); var Outfil: FileInfo; begin Outfil:= FileInfo.Create(Server.MapPath(strUrl) ); response.Clear(); response.ClearContent(); response.ClearHeaders(); response.Buffer := True; response.ContentType :='image/tiff'; response.AddHeader('Content-Disposition', 'attachment; filename=' + filename;'); response.AddHeader('Content-Length', Outfil.Length.ToString()); response.Transmitfile(strUrl,0,Outfil.Length); response.Flush(); response.&End; end; This is written in RadStudio 2007, Delphi for .Net. Have anybody experienced anything like this ? This is not a problem in Opera or Firefox, only internet explorer.
0
80,550
09/17/2008 06:31:49
15,130
09/17/2008 06:23:31
1
0
MS CRM4.0 Provisioning Issue using CrmDeploymentService
i've been working on Provision of an organization for quite a few days , and had faced few issues which i was successful in resolving them.Let me explain abt the issues i faced, the MSCrmServices is a process that is running under the Network Service. When I call the 'Execute' method on the service from a console application all actions preformed run under the context of the 'Network Service' account. The Network Service account has not enough rights to create an organization so many problems occur during the action. * Registry access not allowed. * Not the correct SQL Server rights * Not enough AD rights. * ... Impersonation doesn't work, the service uses the process account to perform the actions. The only thing that works is to run the CRMAppPool identity as an administrator which has the deployment administrator rights (added through the Deployment manager tool). But this issues in CRM deployment doesnt seem to faceoff from me :(. now that i have a new issue after changing the Pool identity to the system administrator, the deployment service gives an error saying Unauthorized!!!! and further when i check the log it says.. Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 1 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error | CrmException..ctor at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException, Boolean enableTrace) at CrmException..ctor(String message, Int32 errorCode) at CrmObjectNotFoundException..ctor(BusinessEntityMoniker moniker) at BusinessProcessObject.DoRetrievePublishableSingle(BusinessEntityMoniker moniker, EntityExpression entityExpression, Boolean includeUnpublished, ExecutionContext context) at BusinessProcessObject.RetrieveUnpublished(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context) at OrganizationUIService.RetrieveUnpublished(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context) at OrganizationUIService.RetrieveOldFormXml(BusinessEntityMoniker moniker, ExecutionContext context) at OrganizationUIService.ExtractAndSaveFormLabels(IBusinessEntity entity, ExecutionContext context) at OrganizationUIService.Create(IBusinessEntity entity, ExecutionContext context) at ImportFormXmlHandler.createOrgUI(OrganizationUIService orgUIService, XmlNode formNode) at ImportFormXmlHandler.ImportItem() at ImportHandler.Import() at ImportHandler.Import() at RootImportHandler.RunImport() at ImportXml.RunImport() at NewOrgUtility.OrganizationImportDefaultData(Guid organizationId, Version existingDatabaseVersion, String importFile) at NewOrgUtility.OrganizationImportDefaultData(Guid organizationId, String importFile) at NewOrgUtility.ConfigureOrganization(String organizationId, String organizationName, String userAccountName, String userFirstName, String userLastName, String userEmail, String languageCode, String privilegedUserGroup, String sqlAccessGroup, String userGroup, String reportingGroup, String privilegedReportingGroup, Boolean grantNetworkServiceAccess, Boolean autoGroupManagement, String importFileLocation, Boolean sqmOption) at CreateOrganizationInstaller.Create(Guid organizationId, String organizationUniqueName, String organizationFriendlyName, String baseCurrencyCode, String baseCurrencyName, String baseCurrencySymbol, String initialUserDomainName, String initialUserFirstName, String initialUserLastName, String sqlServerName, Uri reportServerUrl, String privilegedUserGroupName, String sqlAccessGroupName, String userGroupName, String reportingGroupName, String privilegedReportingGroupName, String applicationPath, String languageId, Boolean sqmOption, String organizationCollation, MultipleTenancy multipleTenancy) at CreateOrganizationInstaller.Create(ICreateOrganizationInfo organizationInfo) at OrganizationService.Create(DeploymentEntity entity) at CreateRequest.Process() at CrmDeploymentService.Execute(DeploymentServiceRequest request) at RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at LogicalMethodInfo.Invoke(Object target, Object[] values) at WebServiceHandler.Invoke() at WebServiceHandler.CoreProcessRequest() at SyncSessionlessHandler.ProcessRequest(HttpContext context) at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at ApplicationStepManager.ResumeSteps(Exception error) at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType) Any idea on this..!!! Have anyone of you come across such an issue. I've been trying to resolve this issue but hard luck. Any help on this issues would be highly appreciated. Thanks.! srinath. -Srinath
crm
null
null
null
null
null
open
MS CRM4.0 Provisioning Issue using CrmDeploymentService === i've been working on Provision of an organization for quite a few days , and had faced few issues which i was successful in resolving them.Let me explain abt the issues i faced, the MSCrmServices is a process that is running under the Network Service. When I call the 'Execute' method on the service from a console application all actions preformed run under the context of the 'Network Service' account. The Network Service account has not enough rights to create an organization so many problems occur during the action. * Registry access not allowed. * Not the correct SQL Server rights * Not enough AD rights. * ... Impersonation doesn't work, the service uses the process account to perform the actions. The only thing that works is to run the CRMAppPool identity as an administrator which has the deployment administrator rights (added through the Deployment manager tool). But this issues in CRM deployment doesnt seem to faceoff from me :(. now that i have a new issue after changing the Pool identity to the system administrator, the deployment service gives an error saying Unauthorized!!!! and further when i check the log it says.. Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 1 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error | CrmException..ctor at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException, Boolean enableTrace) at CrmException..ctor(String message, Int32 errorCode) at CrmObjectNotFoundException..ctor(BusinessEntityMoniker moniker) at BusinessProcessObject.DoRetrievePublishableSingle(BusinessEntityMoniker moniker, EntityExpression entityExpression, Boolean includeUnpublished, ExecutionContext context) at BusinessProcessObject.RetrieveUnpublished(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context) at OrganizationUIService.RetrieveUnpublished(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context) at OrganizationUIService.RetrieveOldFormXml(BusinessEntityMoniker moniker, ExecutionContext context) at OrganizationUIService.ExtractAndSaveFormLabels(IBusinessEntity entity, ExecutionContext context) at OrganizationUIService.Create(IBusinessEntity entity, ExecutionContext context) at ImportFormXmlHandler.createOrgUI(OrganizationUIService orgUIService, XmlNode formNode) at ImportFormXmlHandler.ImportItem() at ImportHandler.Import() at ImportHandler.Import() at RootImportHandler.RunImport() at ImportXml.RunImport() at NewOrgUtility.OrganizationImportDefaultData(Guid organizationId, Version existingDatabaseVersion, String importFile) at NewOrgUtility.OrganizationImportDefaultData(Guid organizationId, String importFile) at NewOrgUtility.ConfigureOrganization(String organizationId, String organizationName, String userAccountName, String userFirstName, String userLastName, String userEmail, String languageCode, String privilegedUserGroup, String sqlAccessGroup, String userGroup, String reportingGroup, String privilegedReportingGroup, Boolean grantNetworkServiceAccess, Boolean autoGroupManagement, String importFileLocation, Boolean sqmOption) at CreateOrganizationInstaller.Create(Guid organizationId, String organizationUniqueName, String organizationFriendlyName, String baseCurrencyCode, String baseCurrencyName, String baseCurrencySymbol, String initialUserDomainName, String initialUserFirstName, String initialUserLastName, String sqlServerName, Uri reportServerUrl, String privilegedUserGroupName, String sqlAccessGroupName, String userGroupName, String reportingGroupName, String privilegedReportingGroupName, String applicationPath, String languageId, Boolean sqmOption, String organizationCollation, MultipleTenancy multipleTenancy) at CreateOrganizationInstaller.Create(ICreateOrganizationInfo organizationInfo) at OrganizationService.Create(DeploymentEntity entity) at CreateRequest.Process() at CrmDeploymentService.Execute(DeploymentServiceRequest request) at RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at LogicalMethodInfo.Invoke(Object target, Object[] values) at WebServiceHandler.Invoke() at WebServiceHandler.CoreProcessRequest() at SyncSessionlessHandler.ProcessRequest(HttpContext context) at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at ApplicationStepManager.ResumeSteps(Exception error) at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType) Any idea on this..!!! Have anyone of you come across such an issue. I've been trying to resolve this issue but hard luck. Any help on this issues would be highly appreciated. Thanks.! srinath. -Srinath
0
80,561
09/17/2008 06:34:46
438
08/05/2008 18:28:20
54
9
File storing strategies for a web hosting website
I am going to hosting for files that user submits. I need to grab some data from the file and then move it to some directory. There two points of interest for the lifetime of this file. The first is when the data is being abstracted and the second is when the file is archived so that it can be shared. When data is being abstracted, I've thought that renaming the file to something unique or append a unique string to filename to keep it from overwriting other existing files. When the file is going to be archived, I've thought of three strategies. One is to keep all files uploaded from a certain data in one folder. (2006/sept/04, 2008/jan/05) The other is to keep a folder and keep filling it until some max number of files I want to keep in folder and then create another one (/folder001/, /folder002/, /folder003/, etc..). Another one is to create subfolders once they reach some threshold. So like (/j/jd/jde/jdelator) I've seen this in unix not sure how to explain this. The questions I have is what kind of strategies you guys have found useful or used?
filesystems
null
null
null
null
null
open
File storing strategies for a web hosting website === I am going to hosting for files that user submits. I need to grab some data from the file and then move it to some directory. There two points of interest for the lifetime of this file. The first is when the data is being abstracted and the second is when the file is archived so that it can be shared. When data is being abstracted, I've thought that renaming the file to something unique or append a unique string to filename to keep it from overwriting other existing files. When the file is going to be archived, I've thought of three strategies. One is to keep all files uploaded from a certain data in one folder. (2006/sept/04, 2008/jan/05) The other is to keep a folder and keep filling it until some max number of files I want to keep in folder and then create another one (/folder001/, /folder002/, /folder003/, etc..). Another one is to create subfolders once they reach some threshold. So like (/j/jd/jde/jdelator) I've seen this in unix not sure how to explain this. The questions I have is what kind of strategies you guys have found useful or used?
0
80,563
09/17/2008 06:35:49
6,463
09/15/2008 10:28:59
19
4
Is there an alternative to gdb for Linux systems?
Please consider both commercial and free debuggers. Would like to see also the pros and cons for each.
linux
debugging
gdb
null
null
null
open
Is there an alternative to gdb for Linux systems? === Please consider both commercial and free debuggers. Would like to see also the pros and cons for each.
0
80,564
09/17/2008 06:36:09
1,630
08/17/2008 17:03:19
687
42
Visual Studio: How to trigger an alarm when a breakpoint is hit?
Is there a way to trigger a sound or alarm when my breakpoint is hit? I'm using Visual Studio 2005/2008.
visual-studio
breakpoints
null
null
null
null
open
Visual Studio: How to trigger an alarm when a breakpoint is hit? === Is there a way to trigger a sound or alarm when my breakpoint is hit? I'm using Visual Studio 2005/2008.
0
80,584
09/17/2008 06:41:54
11,372
09/16/2008 07:29:09
64
0
How to get prepared for an interview?
I am an engineer with c, c++ back ground. And am mostly interested to work in data structures and algorithms kind of work. So, obviously asked those kind of questions? Is there any best resource where can I found the best interview questions? Like to know sites/books: which discuss about general or HR kind of questions? which discuss about the technical questions? One of the best books I know is Programming Interviews Exposed: Secrets to Landing Your Next Job by John Mongan , Noah Suojanen.
technical
interview-questions
null
null
null
11/30/2011 03:15:25
not constructive
How to get prepared for an interview? === I am an engineer with c, c++ back ground. And am mostly interested to work in data structures and algorithms kind of work. So, obviously asked those kind of questions? Is there any best resource where can I found the best interview questions? Like to know sites/books: which discuss about general or HR kind of questions? which discuss about the technical questions? One of the best books I know is Programming Interviews Exposed: Secrets to Landing Your Next Job by John Mongan , Noah Suojanen.
4
80,592
09/17/2008 06:44:10
11,193
09/16/2008 06:02:43
64
0
Method Local Inner Class
public class Test { public static void main(String[] args) { } } class Outer { void aMethod() { class MethodLocalInner { void bMethod() { System.out.println("Inside method-local bMethod"); } } } } Can some one tell me how to print the message from bMethod. Thanks.
java
null
null
null
null
null
open
Method Local Inner Class === public class Test { public static void main(String[] args) { } } class Outer { void aMethod() { class MethodLocalInner { void bMethod() { System.out.println("Inside method-local bMethod"); } } } } Can some one tell me how to print the message from bMethod. Thanks.
0
80,593
09/17/2008 06:44:45
8,521
09/15/2008 16:14:07
126
9
Enabling embedded controls in a FlowDocument
I have a FlowDocument in a standard WPF application window where I have some text, and in this text some hyperlinks and buttons. The problem is, if I put this FlowDocument inside anything **except** a [FlowDocumentPageViewer][1] the hyperlinks and buttons are disabled ("grayed out"). <FlowDocumentPageViewer> <FlowDocument> <Paragraph> Hello, World! <Hyperlink NavigateUri="some-uri">click me</Hyperlink> </Paragraph> </FlowDocument> </FlowDocumentPageViewer> The above will work and the link will be clickable. However, I don't want the full pageviewer thing since it will show navigation buttons (back/forward) zoom and it also has a weird column behavior. I want it in a simple [FlowDocumentScrollViewer][2] (or anything else that just displays the text without additional fuzz). [1]: http://msdn.microsoft.com/en-us/library/system.windows.controls.flowdocumentpageviewer.aspx [2]: http://msdn.microsoft.com/en-us/library/system.windows.controls.flowdocumentscrollviewer.aspx
c#
.net
wpf
.net-3.5
null
null
open
Enabling embedded controls in a FlowDocument === I have a FlowDocument in a standard WPF application window where I have some text, and in this text some hyperlinks and buttons. The problem is, if I put this FlowDocument inside anything **except** a [FlowDocumentPageViewer][1] the hyperlinks and buttons are disabled ("grayed out"). <FlowDocumentPageViewer> <FlowDocument> <Paragraph> Hello, World! <Hyperlink NavigateUri="some-uri">click me</Hyperlink> </Paragraph> </FlowDocument> </FlowDocumentPageViewer> The above will work and the link will be clickable. However, I don't want the full pageviewer thing since it will show navigation buttons (back/forward) zoom and it also has a weird column behavior. I want it in a simple [FlowDocumentScrollViewer][2] (or anything else that just displays the text without additional fuzz). [1]: http://msdn.microsoft.com/en-us/library/system.windows.controls.flowdocumentpageviewer.aspx [2]: http://msdn.microsoft.com/en-us/library/system.windows.controls.flowdocumentscrollviewer.aspx
0
80,609
09/17/2008 06:50:01
4,690
09/05/2008 08:18:52
79
6
Merge XML documents
I need to "merge" two XML documents, overwriting the overlapsed attributes and elements. For instance if I have **document1**
xml
null
null
null
null
null
open
Merge XML documents === I need to "merge" two XML documents, overwriting the overlapsed attributes and elements. For instance if I have **document1**
0
80,612
09/17/2008 06:50:46
6,756
09/15/2008 12:35:53
76
7
Best practises for holding passwords in shell / perl scripts?
I've recently had to dust off my perl and shell script skills to help out some colleagues. The colleagues in question have been tasked with providing some reports from an internal application with a large Oracle database backend, and they simply don't have the skills to do this. While some might questions whether I have those skills either (grin), apparently enough people think I do to mean I can't weasel out of it. So to my question - in order to extract the reports from the database, my script is obviously having to connect and run queries. So far I've not managed to come up with a good solution for where to store the username / password for the database except as plaintext in the script. Is there a good solution for this that someone else has already written, perhaps as a CPAN module? Or is there something else that's better to do - like keep the user / password combo in a completely seperate file that's hidden away somewhere else on the filesystem? Or should I be keeping them trivially encrypted to just avoid them being pulled out of my scripts with a system-wide grep? Thanks in advance!
perl
bash
ksh
oracle
null
null
open
Best practises for holding passwords in shell / perl scripts? === I've recently had to dust off my perl and shell script skills to help out some colleagues. The colleagues in question have been tasked with providing some reports from an internal application with a large Oracle database backend, and they simply don't have the skills to do this. While some might questions whether I have those skills either (grin), apparently enough people think I do to mean I can't weasel out of it. So to my question - in order to extract the reports from the database, my script is obviously having to connect and run queries. So far I've not managed to come up with a good solution for where to store the username / password for the database except as plaintext in the script. Is there a good solution for this that someone else has already written, perhaps as a CPAN module? Or is there something else that's better to do - like keep the user / password combo in a completely seperate file that's hidden away somewhere else on the filesystem? Or should I be keeping them trivially encrypted to just avoid them being pulled out of my scripts with a system-wide grep? Thanks in advance!
0
80,617
09/17/2008 06:51:35
15,175
09/17/2008 06:51:35
1
0
Asychronous Programming in Python Twisted
I'm having trouble developing a reverse proxy in Twisted. It works, but it seems overly complex and convoluted. So much of it feels like voodoo... Are there any *simple, solid* examples of asynchronous program structure on the web or in books? A sort of best practices guide? When I complete my program I'd like to be able to still see the structure in some way, not be looking at a bowl of spaghetti.
python
asynchronous
twisted
null
null
null
open
Asychronous Programming in Python Twisted === I'm having trouble developing a reverse proxy in Twisted. It works, but it seems overly complex and convoluted. So much of it feels like voodoo... Are there any *simple, solid* examples of asynchronous program structure on the web or in books? A sort of best practices guide? When I complete my program I'd like to be able to still see the structure in some way, not be looking at a bowl of spaghetti.
0
80,619
09/17/2008 06:52:06
9,236
09/15/2008 18:09:29
35
3
'Helper' functions in C++
While refactoring some old code I have stripped out a number of public methods that should actually of been statics as they a) don't operate on any member data or call any other member functions and b) because they might prove useful elsewhere. This led me to think about the best way to group 'helper' functions together. The Java/C# way would be to use a class of static functions with a private constructor, e.g.: class Helper { private: Helper() { } public: static int HelperFunc1(); static int HelperFunc2(); }; However, being C++ you could also use a namespace: namespace Helper { int HelperFunc1(); int HelperFunc2(); } In most cases I think I would prefer the namespace approach but I wanted to know what the pros and cons of each approach are. If used the class approach for example, would there be any overheads?
c++
class
namespaces
null
null
null
open
'Helper' functions in C++ === While refactoring some old code I have stripped out a number of public methods that should actually of been statics as they a) don't operate on any member data or call any other member functions and b) because they might prove useful elsewhere. This led me to think about the best way to group 'helper' functions together. The Java/C# way would be to use a class of static functions with a private constructor, e.g.: class Helper { private: Helper() { } public: static int HelperFunc1(); static int HelperFunc2(); }; However, being C++ you could also use a namespace: namespace Helper { int HelperFunc1(); int HelperFunc2(); } In most cases I think I would prefer the namespace approach but I wanted to know what the pros and cons of each approach are. If used the class approach for example, would there be any overheads?
0
80,645
09/17/2008 06:56:35
9,077
09/15/2008 17:39:16
1
0
Best way to make events asynchronous in C#
Events are synchronous in C#. I have this application where my main form starts a thread with a loop in it that listens to a stream. When something comes along on the stream an event is fired from the loop to the main form. If the main form is slow or shows a messagebox or something the loop will be suspended. What is the best way around this? By using a callback and invoke on the main form?
c#
events
asynchronous
null
null
null
open
Best way to make events asynchronous in C# === Events are synchronous in C#. I have this application where my main form starts a thread with a loop in it that listens to a stream. When something comes along on the stream an event is fired from the loop to the main form. If the main form is slow or shows a messagebox or something the loop will be suspended. What is the best way around this? By using a callback and invoke on the main form?
0