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
12,718
08/15/2008 20:41:54
672
08/07/2008 16:18:07
21
4
Setting up Subversion on Windows as a service
When installing subversion as a service, I used this command: c:\>svnservice -install --daemon --root "c:\documents and settings\my_repository" And then I got this error: Could not create service in service control manager. After looking at some MSDN docs on the service control manager, I tried granting full control to everyone in the permissions on the registry key at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services, but that hasn't had any effect. Anybody know what I did wrong, or how to overcome this?
subversion
sourcecontrol
configuration
null
null
null
open
Setting up Subversion on Windows as a service === When installing subversion as a service, I used this command: c:\>svnservice -install --daemon --root "c:\documents and settings\my_repository" And then I got this error: Could not create service in service control manager. After looking at some MSDN docs on the service control manager, I tried granting full control to everyone in the permissions on the registry key at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services, but that hasn't had any effect. Anybody know what I did wrong, or how to overcome this?
0
12,720
08/15/2008 20:42:51
1,484
08/15/2008 20:40:42
1
0
Add .NET 2.0 SP1 as a prerequisite for deployment project
I have a .NET 2.0 application that has recently had contributions that are Service Pack 1 dependent. The deployment project has detected .NET 2.0 as a prerequisite, but NOT SP1. How do I include SP1 as a dependency/prerequisite in my deployment project?
.net-2.0
installer
dependencies
sp1
null
null
open
Add .NET 2.0 SP1 as a prerequisite for deployment project === I have a .NET 2.0 application that has recently had contributions that are Service Pack 1 dependent. The deployment project has detected .NET 2.0 as a prerequisite, but NOT SP1. How do I include SP1 as a dependency/prerequisite in my deployment project?
0
12,745
08/15/2008 21:04:16
565
08/06/2008 18:51:58
63
1
How do you handle poor quality code from team members?
I know most people have code review and standards in place, but I work at a place with poor standards. I'm not saying that my code is flawless by any means, but I find the code my fellow members submit is totally lacking of structure, standards, naming convention, etc. Whole code blocks that have been replaced are still left commented out in the final product. I'm not going to get into the actual correctness of the code, but these issues make it virtually impossible to debug when my boss inevitably comes to me to fix my team members' problems before send out their app.. My question is this, how do you guys handle poor quality code from your team members? If you work in a less structured environment, how do you approach coders about improving the quality of their own code (or your boss to get him to implement some kind of standards/code review)? Thanks guys.
team
standards
quality
convention
null
12/17/2011 23:43:33
off topic
How do you handle poor quality code from team members? === I know most people have code review and standards in place, but I work at a place with poor standards. I'm not saying that my code is flawless by any means, but I find the code my fellow members submit is totally lacking of structure, standards, naming convention, etc. Whole code blocks that have been replaced are still left commented out in the final product. I'm not going to get into the actual correctness of the code, but these issues make it virtually impossible to debug when my boss inevitably comes to me to fix my team members' problems before send out their app.. My question is this, how do you guys handle poor quality code from your team members? If you work in a less structured environment, how do you approach coders about improving the quality of their own code (or your boss to get him to implement some kind of standards/code review)? Thanks guys.
2
12,768
08/15/2008 21:19:48
1,469
08/15/2008 18:09:38
1
0
How is the HTML on this site so clean?
I work with C# at work but dislike how with webforms it spews out a lot of JavaScript not including the many lines for viewstate that it creates. That's why I like coding with PHP as I have full control. But I was just wondering how this sites HTML is so clean and elegant? Does using MVC have something to do with it? I see that JQuery is used but surely you still use asp:required validators? If you do, where is all the hideous code that it normally produces? And if they arent using required field validators, why not? Surely it's quicker to develop in than using JQuery? One of the main reasons I code my personal sites in PHP was due to the more elegant HTML that it produces but if I can produce code like this site then I will go full time .net!
html
null
null
null
null
null
open
How is the HTML on this site so clean? === I work with C# at work but dislike how with webforms it spews out a lot of JavaScript not including the many lines for viewstate that it creates. That's why I like coding with PHP as I have full control. But I was just wondering how this sites HTML is so clean and elegant? Does using MVC have something to do with it? I see that JQuery is used but surely you still use asp:required validators? If you do, where is all the hideous code that it normally produces? And if they arent using required field validators, why not? Surely it's quicker to develop in than using JQuery? One of the main reasons I code my personal sites in PHP was due to the more elegant HTML that it produces but if I can produce code like this site then I will go full time .net!
0
12,774
08/15/2008 21:22:36
404
08/05/2008 13:34:59
530
36
Attaching VisualSVN Server to an existing repository
All the recent VisualSVN Server posts made me want to check it out. I have SVN running right now through Apache, but I'd like to try out VisualSVN Server, mostly for the active directory integration. Their docs don't describe whether you can easily migrate an existing repository. Anyone done this before?
svn
visualsvnserver
null
null
null
null
open
Attaching VisualSVN Server to an existing repository === All the recent VisualSVN Server posts made me want to check it out. I have SVN running right now through Apache, but I'd like to try out VisualSVN Server, mostly for the active directory integration. Their docs don't describe whether you can easily migrate an existing repository. Anyone done this before?
0
12,794
08/15/2008 21:35:51
311
08/04/2008 14:57:09
226
22
adding a pre tag with jquery
I'm trying to use jQuery to format code blocks, specifically to add a &lt;pre&gt; tag inside the &lt;code&gt; tag: $(document).ready(function() { $("code").wrapInner("<pre></pre>"); }); Firefox applies the formatting correctly, but IE puts the entire code block on one line. If I add an alert alert($("code").html()); I see that IE has inserted some additional text into the pre tag: <PRE jQuery1218834632572="null"> If I reload the page, the number following jQuery changes. If I use wrap() instead of wrapInner(), to wrap the &lt;pre&gt; outside the &lt;code&gt; tag, both IE and Firefox handle it correctly. But shouldn't &lt;pre&gt; work _inside_ &lt;code&gt; as well? I'd prefer to use wrapInner() because I can then add a CSS class to the &lt;pre&gt; tag to handle all formatting, but if I use wrap(), I have to put page formatting CSS in the &lt;pre&gt; tag and text/font formatting in the &lt;code&gt; tag, or Firefox and IE both choke. Not a huge deal, but I'd like to keep it as simple as possible. Has anyone else encountered this? Am I missing something?
javascript
css
internet-explorer
jquery
null
null
open
adding a pre tag with jquery === I'm trying to use jQuery to format code blocks, specifically to add a &lt;pre&gt; tag inside the &lt;code&gt; tag: $(document).ready(function() { $("code").wrapInner("<pre></pre>"); }); Firefox applies the formatting correctly, but IE puts the entire code block on one line. If I add an alert alert($("code").html()); I see that IE has inserted some additional text into the pre tag: <PRE jQuery1218834632572="null"> If I reload the page, the number following jQuery changes. If I use wrap() instead of wrapInner(), to wrap the &lt;pre&gt; outside the &lt;code&gt; tag, both IE and Firefox handle it correctly. But shouldn't &lt;pre&gt; work _inside_ &lt;code&gt; as well? I'd prefer to use wrapInner() because I can then add a CSS class to the &lt;pre&gt; tag to handle all formatting, but if I use wrap(), I have to put page formatting CSS in the &lt;pre&gt; tag and text/font formatting in the &lt;code&gt; tag, or Firefox and IE both choke. Not a huge deal, but I'd like to keep it as simple as possible. Has anyone else encountered this? Am I missing something?
0
12,807
08/15/2008 21:51:29
1,490
08/15/2008 21:35:24
1
0
How to register COM from VS Setup project?
I have marked my DLL as vsdraCOM, and I can see it in the registry after installing, but my application does not see the COM interface until I call RegAsm on it manually. Why could this be?
com
registry
null
null
null
null
open
How to register COM from VS Setup project? === I have marked my DLL as vsdraCOM, and I can see it in the registry after installing, but my application does not see the COM interface until I call RegAsm on it manually. Why could this be?
0
12,814
08/15/2008 22:01:56
1,483
08/15/2008 20:40:17
1
1
Software for doing Project Postmortem
I work as a Project Leader. I am trying to do project postmortem for projects which my team works on. Currently I use Wiki to note down problems, issues and final recommendations. But it makes hard to note down every problem we noticed just when it happen, so we miss some issues. I'd looked for some software which could help me to track project postmortem, but I didn't find anything and I can't believe there are no software for that. Did anyone know some software for doing project postmortem. At best, free, web based application.
project-management
postmortem
project-postmortem
null
null
null
open
Software for doing Project Postmortem === I work as a Project Leader. I am trying to do project postmortem for projects which my team works on. Currently I use Wiki to note down problems, issues and final recommendations. But it makes hard to note down every problem we noticed just when it happen, so we miss some issues. I'd looked for some software which could help me to track project postmortem, but I didn't find anything and I can't believe there are no software for that. Did anyone know some software for doing project postmortem. At best, free, web based application.
0
12,815
08/15/2008 22:02:15
1,247
08/13/2008 18:48:08
11
2
Anyone Using Executable Requirements?
In my limited experience with them executable requirements (i.e. specifying all requirements as broken automated tests) have proven to be amazingly successful. I've worked on one project in which we placed a heavy emphasis on creating high-level automated tests which exercised all the functionality of a given use case/user story. It was really amazing to me how much easier development became after we began this practice. Implementing features became so much easier after writing a test and we were able to make major architectural changes to the system with all the confidence in the world that everything still worked the same as it did yesterday. The biggest problem we ran into was that the tools for managing these types of tests aren't very good. We used Fitnesse quite a bit and as a result I now hate the Fit framework. I'd like to know 1) if anyone else has experience developing using this type of test-driven requirement definition and 2) what tools you all used to facilitate this.
automation
process
test
executablerequirements
null
null
open
Anyone Using Executable Requirements? === In my limited experience with them executable requirements (i.e. specifying all requirements as broken automated tests) have proven to be amazingly successful. I've worked on one project in which we placed a heavy emphasis on creating high-level automated tests which exercised all the functionality of a given use case/user story. It was really amazing to me how much easier development became after we began this practice. Implementing features became so much easier after writing a test and we were able to make major architectural changes to the system with all the confidence in the world that everything still worked the same as it did yesterday. The biggest problem we ran into was that the tools for managing these types of tests aren't very good. We used Fitnesse quite a bit and as a result I now hate the Fit framework. I'd like to know 1) if anyone else has experience developing using this type of test-driven requirement definition and 2) what tools you all used to facilitate this.
0
12,823
08/15/2008 22:09:05
350
08/04/2008 23:06:23
330
14
Managing users location as a relevent filter (zip)
My little site should be pooling list of items from a table using the active user's location as a filter. Think Craigslits, where you search for "dvd' but the results are not from all the DB, they are filtered by a location you select. My question has 2 levels: 1. should I go a-la-craigslit, and ask users to use a city level location? My problem with this is that you need to generate what seems to me a hardcoded, hand made list of locations. 2. should I go a-la-zipCode. The idea of just asking the user to type his zipcode, and then pool all items that are in the same or in a certain distance from his zip code. I seem to prefer the zip code way as it seems more elegant solution, but how on earth do one goes about creating a DB of all zip codes and implement the function that given zip code 12345, gets all zipcodes in 1 mile distance? this should be fairly common "task" as many sites have a need similar to mine, so I am hoping not to re-invent the wheel here. thanks
location
zipcode
null
null
null
null
open
Managing users location as a relevent filter (zip) === My little site should be pooling list of items from a table using the active user's location as a filter. Think Craigslits, where you search for "dvd' but the results are not from all the DB, they are filtered by a location you select. My question has 2 levels: 1. should I go a-la-craigslit, and ask users to use a city level location? My problem with this is that you need to generate what seems to me a hardcoded, hand made list of locations. 2. should I go a-la-zipCode. The idea of just asking the user to type his zipcode, and then pool all items that are in the same or in a certain distance from his zip code. I seem to prefer the zip code way as it seems more elegant solution, but how on earth do one goes about creating a DB of all zip codes and implement the function that given zip code 12345, gets all zipcodes in 1 mile distance? this should be fairly common "task" as many sites have a need similar to mine, so I am hoping not to re-invent the wheel here. thanks
0
12,836
08/15/2008 22:23:21
489
08/06/2008 09:59:30
461
18
C# Database Access: DBNull vs null
We have our own ORM we use here, and provide strongly typed wrappers for all of our db tables. We also allow weakly typed ad-hoc SQL to be executed, but these queries still go through the same class for getting values out of a data reader. In tweaking that class to work with Oracle, we've come across an interesting question. Is it better to use DBNull.Value, or null? Are there any benefits to using DBNull.Value? It seems more "correct" to use null, since we've separated ourselves from the DB world, but there are implications (you can't just blindly ToString() when a value is null for example) so its definitely something we need to make a conscious decision about.
c#
bestpractices
null
dbnull
null
null
open
C# Database Access: DBNull vs null === We have our own ORM we use here, and provide strongly typed wrappers for all of our db tables. We also allow weakly typed ad-hoc SQL to be executed, but these queries still go through the same class for getting values out of a data reader. In tweaking that class to work with Oracle, we've come across an interesting question. Is it better to use DBNull.Value, or null? Are there any benefits to using DBNull.Value? It seems more "correct" to use null, since we've separated ourselves from the DB world, but there are implications (you can't just blindly ToString() when a value is null for example) so its definitely something we need to make a conscious decision about.
0
12,855
08/15/2008 22:47:57
122
08/02/2008 07:56:07
2,932
148
DB2 Case Insensitive Index?
I have a query where I am searching against a string: SELECT county FROM city WHERE UPPER(name) = 'SAN FRANCISCO'; Now, this works fine, but it doesn't scale well, and I need to optimize it. I have [found an option][1] along the lines of creating a generated view, or something like that, but I was hoping for a simpler solution using an index. I really want to use an [expression in an index][2], but this option seems to only be available on z/OS, however we are running Linux. I tried the expression index anyways: CREATE INDEX city_upper_name_idx ON city UPPER(name) ALLOW REVERSE SCANS; But of course, it chokes on the UPPER(name). Is there another way I can create an index or something similar in this manner such that I don't have to restructure my existing queries to use a new generated view, or alter my existing columns, or any other such intrusive change? [1]: http://www.ibm.com/developerworks/db2/library/techarticle/0203adamache/0203adamache.html [2]: http://ibmsystemsmag.blogs.com/db2utor/2007/11/db2-9-index-wit.html
database
db2
indexing
optimization
null
null
open
DB2 Case Insensitive Index? === I have a query where I am searching against a string: SELECT county FROM city WHERE UPPER(name) = 'SAN FRANCISCO'; Now, this works fine, but it doesn't scale well, and I need to optimize it. I have [found an option][1] along the lines of creating a generated view, or something like that, but I was hoping for a simpler solution using an index. I really want to use an [expression in an index][2], but this option seems to only be available on z/OS, however we are running Linux. I tried the expression index anyways: CREATE INDEX city_upper_name_idx ON city UPPER(name) ALLOW REVERSE SCANS; But of course, it chokes on the UPPER(name). Is there another way I can create an index or something similar in this manner such that I don't have to restructure my existing queries to use a new generated view, or alter my existing columns, or any other such intrusive change? [1]: http://www.ibm.com/developerworks/db2/library/techarticle/0203adamache/0203adamache.html [2]: http://ibmsystemsmag.blogs.com/db2utor/2007/11/db2-9-index-wit.html
0
12,865
08/15/2008 23:01:16
814
08/09/2008 04:07:15
26
5
Mercurial Stuck
Got a bluescreen in windows while cloning a mercurial repository. After reboot, I now get this message for almost all hg commands: c:\src\>hg commit waiting for lock on repository c:\src\McVrsServer held by '\x00\x00\x00\x00\x00\ x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' interrupted! Google is no help. Any tips?
mercurial
null
null
null
null
null
open
Mercurial Stuck === Got a bluescreen in windows while cloning a mercurial repository. After reboot, I now get this message for almost all hg commands: c:\src\>hg commit waiting for lock on repository c:\src\McVrsServer held by '\x00\x00\x00\x00\x00\ x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' interrupted! Google is no help. Any tips?
0
12,870
08/15/2008 23:07:03
172
08/02/2008 23:55:05
90
4
Arrays of Arrays in Java
This is a nasty one for me... I'm a PHP guy working in Java on a JSP project. I know how to do what I'm attempting through too much code and a complete lack of finesse. I'd prefer to do it RIGHT. :) Here is the situation: I'm writing a small display to show customers what days they can water their lawns based on their watering group (ABCDE) and what time of year it is. Our seasons look like this: Summer (5-1 to 8-31) Spring (3-1 to 4-30) Fall (9-1 to 10-31) Winter (11-1 to 2-28) An example might be: If I'm in group A, here would be my allowed times: Winter: Mondays only Spring: Tues, Thurs, Sat Summer: Any Day Fall: Tues, Thurs, Sat If I was writing this in PHP I would use arrays like this: //M=Monday,t=Tuesday,T=Thursday.... etc $schedule["A"]["Winter"]='M'; $schedule["A"]["Spring"]='tTS'; $schedule["A"]["Summer"]='Any'; $schedule["A"]["Fall"]='tTS'; $schedule["B"]["Winter"]='t'; I COULD make the days arrays (array("Tuesday","Thursday","Saturday")) etc, but it is not necessary for what I'm really trying to accomplish. I will also need to setup arrays to determine what season I'm in: $seasons["Summer"]["start"]=0501; $seasons["Summer"]["end"]=0801; Can anyone suggest a really sexy way to do this? I will have today's date and the group letter. I will need to get out of my function a day (M) or a series of days (tTS), (Any). Thanks, folks!
jsp
tomcat
java
php
null
null
open
Arrays of Arrays in Java === This is a nasty one for me... I'm a PHP guy working in Java on a JSP project. I know how to do what I'm attempting through too much code and a complete lack of finesse. I'd prefer to do it RIGHT. :) Here is the situation: I'm writing a small display to show customers what days they can water their lawns based on their watering group (ABCDE) and what time of year it is. Our seasons look like this: Summer (5-1 to 8-31) Spring (3-1 to 4-30) Fall (9-1 to 10-31) Winter (11-1 to 2-28) An example might be: If I'm in group A, here would be my allowed times: Winter: Mondays only Spring: Tues, Thurs, Sat Summer: Any Day Fall: Tues, Thurs, Sat If I was writing this in PHP I would use arrays like this: //M=Monday,t=Tuesday,T=Thursday.... etc $schedule["A"]["Winter"]='M'; $schedule["A"]["Spring"]='tTS'; $schedule["A"]["Summer"]='Any'; $schedule["A"]["Fall"]='tTS'; $schedule["B"]["Winter"]='t'; I COULD make the days arrays (array("Tuesday","Thursday","Saturday")) etc, but it is not necessary for what I'm really trying to accomplish. I will also need to setup arrays to determine what season I'm in: $seasons["Summer"]["start"]=0501; $seasons["Summer"]["end"]=0801; Can anyone suggest a really sexy way to do this? I will have today's date and the group letter. I will need to get out of my function a day (M) or a series of days (tTS), (Any). Thanks, folks!
0
12,877
08/15/2008 23:15:27
484
08/06/2008 09:04:41
8
2
Oracle SQL Developer not responsive when trying to view tables (or suggest an Oracle Mac client)
I just get the beach ball all day long (it's been doing nothing for hours). It's not taking CPU, not reading from disk, not using the network. I'm using Java 1.6 on Mac OS X 10.5.4. It worked once, now even restarts of the computer won't help. Activity Monitor says it's "(Not Responding)". Only thing that I can do is kill -9 that sucker. When I sample the process I see this: mach_msg_trap 16620 read 831 semaphore_wait_trap 831 An acceptable answer that doesn't fix this would include a url for a decent free Oracle client for the Mac.
oracle
osx
java
null
null
null
open
Oracle SQL Developer not responsive when trying to view tables (or suggest an Oracle Mac client) === I just get the beach ball all day long (it's been doing nothing for hours). It's not taking CPU, not reading from disk, not using the network. I'm using Java 1.6 on Mac OS X 10.5.4. It worked once, now even restarts of the computer won't help. Activity Monitor says it's "(Not Responding)". Only thing that I can do is kill -9 that sucker. When I sample the process I see this: mach_msg_trap 16620 read 831 semaphore_wait_trap 831 An acceptable answer that doesn't fix this would include a url for a decent free Oracle client for the Mac.
0
12,880
08/15/2008 23:22:54
1,063
08/12/2008 05:40:42
123
26
Large Data Sets
I'm always looking for large data sets to test various types of programs on. Anyone have any suggestions?
resources
data
null
null
null
null
open
Large Data Sets === I'm always looking for large data sets to test various types of programs on. Anyone have any suggestions?
0
12,890
08/15/2008 23:36:30
1,430
08/15/2008 15:29:36
1
1
What is a good way to denormalize a mysql database?
I have a large database of normalized order data that is becoming very slow to query for reporting. Many of the queries that I use in reports join five or six tables and are having to examine tens or hundreds of thousands of lines. There are lots of queries and most have been optimized as much as possible to reduce server load and increase speed. I think it's time to start keeping a copy of the data in a denormalized format. Any ideas on an approach? Should I start with a couple of my worst queries and go from there?
database
mysql
null
null
null
null
open
What is a good way to denormalize a mysql database? === I have a large database of normalized order data that is becoming very slow to query for reporting. Many of the queries that I use in reports join five or six tables and are having to examine tens or hundreds of thousands of lines. There are lots of queries and most have been optimized as much as possible to reduce server load and increase speed. I think it's time to start keeping a copy of the data in a denormalized format. Any ideas on an approach? Should I start with a couple of my worst queries and go from there?
0
12,896
08/15/2008 23:50:17
314
08/04/2008 15:25:23
83
3
parsing raw email in php
i'm looking for good/working/simple to use php code for parsing raw email into parts. i've written a couple of brute force solutions, but everytime, one small change/header/space/something comes along and my whole parser fails and the project falls apart. and before i get pointed at PEAR/PECL, i need actual code. my host has some screwy config or something, i can never seem to get the .so's to build right. if i do get the .so made, some difference in path/environment/php.ini doesnt always make it available (apache vs cron vs cli) oh, and one last thing, i'm parsing the raw email text, NOT pop3, and NOT imap. its being piped into the php script via a .qmail email redirect. i'm not expecting SOF to write it for me, i'm looking for some tips/starting points on doing it "right". this is one of those "wheel" problems that i know has already been solved.
php
email
null
null
null
null
open
parsing raw email in php === i'm looking for good/working/simple to use php code for parsing raw email into parts. i've written a couple of brute force solutions, but everytime, one small change/header/space/something comes along and my whole parser fails and the project falls apart. and before i get pointed at PEAR/PECL, i need actual code. my host has some screwy config or something, i can never seem to get the .so's to build right. if i do get the .so made, some difference in path/environment/php.ini doesnt always make it available (apache vs cron vs cli) oh, and one last thing, i'm parsing the raw email text, NOT pop3, and NOT imap. its being piped into the php script via a .qmail email redirect. i'm not expecting SOF to write it for me, i'm looking for some tips/starting points on doing it "right". this is one of those "wheel" problems that i know has already been solved.
0
12,905
08/16/2008 00:08:23
9
07/31/2008 21:35:26
310
4
Creating Infopath 2007 addins that manipulate the design-time form
I'm experimenting with creating an add-in for Infopath 2007. The documentation is very skimpy. What I'm trying to determine is what kind of actions an add-in can take while designing a form. Most of the discussion and samples are for when the user is filling out the form. Can I, for example, add a new field to the form in the designer? Add a new item to the schema? Move a form field on the design surface? It doesn't appear so, but I can't find anything definitive.
office
infopath
null
null
null
null
open
Creating Infopath 2007 addins that manipulate the design-time form === I'm experimenting with creating an add-in for Infopath 2007. The documentation is very skimpy. What I'm trying to determine is what kind of actions an add-in can take while designing a form. Most of the discussion and samples are for when the user is filling out the form. Can I, for example, add a new field to the form in the designer? Add a new item to the schema? Move a form field on the design surface? It doesn't appear so, but I can't find anything definitive.
0
12,906
08/16/2008 00:10:24
296
08/04/2008 13:26:48
107
19
MSSQL Find out complete database size
I need to know how much space occupies all the databases inside an sql server 2000. I did some research but could not found any script to help me out. Thanks a lot for sharing.
mssql
null
null
null
null
null
open
MSSQL Find out complete database size === I need to know how much space occupies all the databases inside an sql server 2000. I did some research but could not found any script to help me out. Thanks a lot for sharing.
0
12,924
08/16/2008 00:35:27
580
08/06/2008 22:30:28
168
25
F# Closure
Anyone have a decent example, preferably practical/useful, they could post demonstrating the concept?
f#
null
null
null
null
null
open
F# Closure === Anyone have a decent example, preferably practical/useful, they could post demonstrating the concept?
0
12,927
08/16/2008 00:45:38
791
08/09/2008 00:37:47
116
25
If you have a Java application that is consuming CPU when it isn't doing anything how do you determine what it is doing?
I am calling a vendors Java API and on some servers it appears that the JVM goes into a low priority polling loop after logging into the API (cpu 100%). The same app on other servers does not exhibit this behavior. This happens on WebSphere and Tomcat. The environment is tricky to setup so it is difficult to try to do something like profiling within eclipse. Is there a way to profile (or some other method of inspecting) an existing Java app running in Tomcat to find out what methods are being executed while it's in this spinwait kind of state? The app is only executing one method when it gets in this state (vendor's method). Vendor can't duplicate (of course). Thanks in advance.
java
profiling
null
null
null
null
open
If you have a Java application that is consuming CPU when it isn't doing anything how do you determine what it is doing? === I am calling a vendors Java API and on some servers it appears that the JVM goes into a low priority polling loop after logging into the API (cpu 100%). The same app on other servers does not exhibit this behavior. This happens on WebSphere and Tomcat. The environment is tricky to setup so it is difficult to try to do something like profiling within eclipse. Is there a way to profile (or some other method of inspecting) an existing Java app running in Tomcat to find out what methods are being executed while it's in this spinwait kind of state? The app is only executing one method when it gets in this state (vendor's method). Vendor can't duplicate (of course). Thanks in advance.
0
12,929
08/16/2008 00:46:54
255
08/04/2008 05:46:02
21
0
Is a Homogeneous development platform good for the industry?
Is it in best interests of the software development industry for one framework, browser or language to **win the war** and become the de facto standard? On one side it takes away the challenges of cross platform, but it opens it up for a single point of failure. Would it also result in a stagnation of innovation, or would it allow the industry to focus on more important things (whatever those might be).
bestpractices
crossplatform
null
null
null
null
open
Is a Homogeneous development platform good for the industry? === Is it in best interests of the software development industry for one framework, browser or language to **win the war** and become the de facto standard? On one side it takes away the challenges of cross platform, but it opens it up for a single point of failure. Would it also result in a stagnation of innovation, or would it allow the industry to focus on more important things (whatever those might be).
0
12,936
08/16/2008 00:55:53
40
08/01/2008 12:48:12
1,188
120
Compiled PHP?
Does anybody have experience working with PHP accelerators such as [MMCache][1] or [Zend Accelerator][2]? I'd like to know if using either of these makes PHP comparable to _faster_ web-technologies. Also, are there trade offs for using these? [1]: http://turck-mmcache.sourceforge.net/ [2]: http://www.zend.com/en/
php
caching
zend
null
null
null
open
Compiled PHP? === Does anybody have experience working with PHP accelerators such as [MMCache][1] or [Zend Accelerator][2]? I'd like to know if using either of these makes PHP comparable to _faster_ web-technologies. Also, are there trade offs for using these? [1]: http://turck-mmcache.sourceforge.net/ [2]: http://www.zend.com/en/
0
12,982
08/16/2008 03:58:24
1,436
08/15/2008 15:43:19
1
1
What is your preferred method of sending complex data over a web service?
It's 2008, and I'm still torn on this one. So I'm developing a web method that needs a complex type passed into it and returned from it. The two options I'm toying with are: 1. Pass and return *actual* business objects with both data and behavior. When wsdl.exe is run, it will automatically create proxy classes that contain just the data portion, and these will be automatically converted to and from my real business objects on the server side. On the client side, they will only get to use the dumb proxy type, and they will have to map them into some real business objects as they see fit. A big drawback here is that if I "own" both the server and client side, and I want to use the same set of real business objects, I can run into certain headaches with name conflicts, etc. (Since the real objects and the proxies are named the same.) OR 2. Forget trying to pass "real" business objects. Instead, just create simple DataTransfer objects which I will map back and forth to my real business objects manually. They still get copied to new proxy objects by wsdl.exe anyway, but at least I'm not tricking myself into thinking that web services can natively handle objects with business logic in them. By the way - Does anyone know how to tell wsdl.exe to *not* make a copy of the object? Shouldn't we be able to just tell it, "Hey, use this existing type right over here. Don't copy it!" Anyway, I've kinda settled on #2 for now, but I'm curious what you all think. I have a feeling there are *way* better ways to do this in general, and I may not even be totally accurate on all my points, so please let me know what your experiences have been.
.net
webservices
soap
wsdl
null
null
open
What is your preferred method of sending complex data over a web service? === It's 2008, and I'm still torn on this one. So I'm developing a web method that needs a complex type passed into it and returned from it. The two options I'm toying with are: 1. Pass and return *actual* business objects with both data and behavior. When wsdl.exe is run, it will automatically create proxy classes that contain just the data portion, and these will be automatically converted to and from my real business objects on the server side. On the client side, they will only get to use the dumb proxy type, and they will have to map them into some real business objects as they see fit. A big drawback here is that if I "own" both the server and client side, and I want to use the same set of real business objects, I can run into certain headaches with name conflicts, etc. (Since the real objects and the proxies are named the same.) OR 2. Forget trying to pass "real" business objects. Instead, just create simple DataTransfer objects which I will map back and forth to my real business objects manually. They still get copied to new proxy objects by wsdl.exe anyway, but at least I'm not tricking myself into thinking that web services can natively handle objects with business logic in them. By the way - Does anyone know how to tell wsdl.exe to *not* make a copy of the object? Shouldn't we be able to just tell it, "Hey, use this existing type right over here. Don't copy it!" Anyway, I've kinda settled on #2 for now, but I'm curious what you all think. I have a feeling there are *way* better ways to do this in general, and I may not even be totally accurate on all my points, so please let me know what your experiences have been.
0
12,986
08/16/2008 04:15:36
202
08/03/2008 13:02:31
213
16
Microsoft Certification Exams
Not a very 'techy' question but certainly relevant in our field. What are your oppinions on them? Are they valuable or have they lost their meaning with all the readily available cramming / braindump tools out there. I'm curious as both my previous and current employer wants the developers to sit these exams. Although I'm sure they would like developers that are skilled up on the latest techniques and tool-sets, I think that their motivation comes from the partner points that are assiciated with having certified developers on the team. I currently have an [MCTS: .NET Framework 2.0 Web Applications][1] certification and was planning to take the last exam towards the [professional developer][2] title. My issue now is do I take this MCPD exam for the .NET 2.0 track or do I start afresh with the newly released [.NET 3.5 exams][3]. [1]: http://www.microsoft.com/learning/mcp/mcts/webapps/default.mspx [2]: http://www.microsoft.com/learning/mcp/mcpd/webdev/default.mspx [3]: http://www.microsoft.com/learning/mcp/vstudio/2008/
certification
mcpd
mcts
null
null
null
open
Microsoft Certification Exams === Not a very 'techy' question but certainly relevant in our field. What are your oppinions on them? Are they valuable or have they lost their meaning with all the readily available cramming / braindump tools out there. I'm curious as both my previous and current employer wants the developers to sit these exams. Although I'm sure they would like developers that are skilled up on the latest techniques and tool-sets, I think that their motivation comes from the partner points that are assiciated with having certified developers on the team. I currently have an [MCTS: .NET Framework 2.0 Web Applications][1] certification and was planning to take the last exam towards the [professional developer][2] title. My issue now is do I take this MCPD exam for the .NET 2.0 track or do I start afresh with the newly released [.NET 3.5 exams][3]. [1]: http://www.microsoft.com/learning/mcp/mcts/webapps/default.mspx [2]: http://www.microsoft.com/learning/mcp/mcpd/webdev/default.mspx [3]: http://www.microsoft.com/learning/mcp/vstudio/2008/
0
13,000
08/16/2008 05:05:09
103
08/01/2008 22:31:22
120
8
How to setup site-wide variables in php?
I want to define something like this in php: $EL = "\n<br />\n"; and then use that variable as an "endline" marker all over my site, like this: echo "Blah blah blah{$EL}"; How do I define $EL once (in only 1 file), include it on every page on my site, and *not* have to reference it using the (strangely backwards) "global $EL;" statement in every page/function?
php
null
null
null
null
null
open
How to setup site-wide variables in php? === I want to define something like this in php: $EL = "\n<br />\n"; and then use that variable as an "endline" marker all over my site, like this: echo "Blah blah blah{$EL}"; How do I define $EL once (in only 1 file), include it on every page on my site, and *not* have to reference it using the (strangely backwards) "global $EL;" statement in every page/function?
0
13,021
08/16/2008 05:57:37
784
08/08/2008 22:02:14
178
8
Is there a "concise" way to do namespacing in JavaScript?
I've frequently encountered sites that put all of their javascript inside a "namespace" structure along the lines of namespaces = { com = { example: { example.com's data} } But setting this up safely with respect to other namespaced frameworks seems to require a relatively hefty amount of code (defined as > 2 lines). I was wondering whether anyone knows of a concise way to do this? and whether there's a relatively standard/consistent way to structure it? eg. is the "com" namespace directly attached to the global object, or is it attached through a namespace object?
javascript
null
null
null
null
null
open
Is there a "concise" way to do namespacing in JavaScript? === I've frequently encountered sites that put all of their javascript inside a "namespace" structure along the lines of namespaces = { com = { example: { example.com's data} } But setting this up safely with respect to other namespaced frameworks seems to require a relatively hefty amount of code (defined as > 2 lines). I was wondering whether anyone knows of a concise way to do this? and whether there's a relatively standard/consistent way to structure it? eg. is the "com" namespace directly attached to the global object, or is it attached through a namespace object?
0
13,039
08/16/2008 07:57:42
1,036
08/11/2008 17:26:19
67
11
Is there a tool that can display a SVN repository visually ( i.e. pretty charts )?
Real strange. I cannot find a tool that enables one to display a SVN repository in graphical form. I would like the ability to see changes in revision / time , branch / time graphs. Does anyone know of one. Ideally it would be platform neutral or even better web based.
svn
null
null
null
null
null
open
Is there a tool that can display a SVN repository visually ( i.e. pretty charts )? === Real strange. I cannot find a tool that enables one to display a SVN repository in graphical form. I would like the ability to see changes in revision / time , branch / time graphs. Does anyone know of one. Ideally it would be platform neutral or even better web based.
0
13,049
08/16/2008 08:21:47
905
08/10/2008 09:37:14
1,071
96
What's the difference between struct and class in .Net?
I'm looking for a clear, concise and accurate answer. Ideally as the actual answer, although links to good explanations welcome.
.net
struct
class
null
null
null
open
What's the difference between struct and class in .Net? === I'm looking for a clear, concise and accurate answer. Ideally as the actual answer, although links to good explanations welcome.
0
13,055
08/16/2008 08:34:25
905
08/10/2008 09:37:14
1,071
97
What is boxing and unboxing and why is it bad?
I'm looking for a clear, concise and accurate answer. Ideally as the actual answer, although links to good explanations welcome.
language-agnostic
boxing
unboxing
null
null
null
open
What is boxing and unboxing and why is it bad? === I'm looking for a clear, concise and accurate answer. Ideally as the actual answer, although links to good explanations welcome.
0
13,060
08/16/2008 08:46:16
905
08/10/2008 09:37:14
1,081
98
What do ref, val and out mean on method parameters?
I'm looking for a clear, concise and accurate answer. Ideally as the actual answer, although links to good explanations welcome. This also applies to VB.Net, but the keywords are different - `ByRef` and `ByVal`.
c#
.net
null
null
null
null
open
What do ref, val and out mean on method parameters? === I'm looking for a clear, concise and accurate answer. Ideally as the actual answer, although links to good explanations welcome. This also applies to VB.Net, but the keywords are different - `ByRef` and `ByVal`.
0
13,086
08/16/2008 10:24:05
770
08/08/2008 17:20:44
249
20
Delphi resources for existing .NET developer.
Can anyone recommend some decent resources for a .NET developer who wishes to get a high level overview of the Delphi language? We are about acquire a small business whose main product is developed in Delphi and I am wanting to build up enough knowledge to be able to talk the talk with them. Books, websites etc all appreciated. Thanks.
delphi
null
null
null
null
null
open
Delphi resources for existing .NET developer. === Can anyone recommend some decent resources for a .NET developer who wishes to get a high level overview of the Delphi language? We are about acquire a small business whose main product is developed in Delphi and I am wanting to build up enough knowledge to be able to talk the talk with them. Books, websites etc all appreciated. Thanks.
0
13,087
08/16/2008 10:33:42
1,521
08/16/2008 10:01:35
1
0
How do I convert a date to a HTTP-formatted date in .Net / C#
How does one convert a .Net DateTime into a valid HTTP-formatted date string?
c#
.net
http
null
null
null
open
How do I convert a date to a HTTP-formatted date in .Net / C# === How does one convert a .Net DateTime into a valid HTTP-formatted date string?
0
13,106
08/16/2008 12:34:58
886
08/10/2008 07:46:39
43
6
Should I support ASP.NET 1.1?
I've just started working on an ASP.NET project which I hope to open source once it gets to a suitable stage. It's basically going to be a library that can be used by existing websites. My preference is to support ASP.NET 2.0 through 3.5, but I wondered how many people I would be leaving out by not supporting ASP.NET 1.1? More specifically, how many people are there still using ASP.NET 1.1 for whom ASP.NET 2.0/3.5 is not an option? If upgrading your server is not an option for you, why not?
asp.net-1.1
null
null
null
null
null
open
Should I support ASP.NET 1.1? === I've just started working on an ASP.NET project which I hope to open source once it gets to a suitable stage. It's basically going to be a library that can be used by existing websites. My preference is to support ASP.NET 2.0 through 3.5, but I wondered how many people I would be leaving out by not supporting ASP.NET 1.1? More specifically, how many people are there still using ASP.NET 1.1 for whom ASP.NET 2.0/3.5 is not an option? If upgrading your server is not an option for you, why not?
0
13,109
08/16/2008 12:42:54
1,532
08/16/2008 12:19:36
1
0
php: access array value on the fly
in php, i often need to map a variable using an array ... but i can not seem to be able to do this in a one liner. c.f. example: // the following results in an error: echo array('a','b','c')[$key]; // this works, using an unnecessary variable: $variable = array('a','b','c'); echo $variable[$key]; this is a minor problem, but it keeps bugging every once in a while ... i don't like the fact, that i use a variable for nothing ;)
php
arrays
null
null
null
null
open
php: access array value on the fly === in php, i often need to map a variable using an array ... but i can not seem to be able to do this in a one liner. c.f. example: // the following results in an error: echo array('a','b','c')[$key]; // this works, using an unnecessary variable: $variable = array('a','b','c'); echo $variable[$key]; this is a minor problem, but it keeps bugging every once in a while ... i don't like the fact, that i use a variable for nothing ;)
0
13,128
08/16/2008 13:46:01
1,536
08/16/2008 13:15:45
1
0
How to combine several C/C++ libraries into one?
I'm tired of adding ten link libraries into my project, or requiring eight of them to use my own. I'd like to take existing libraries like libpng.a, libz.a, libjpeg.a, and combine them into one single .a library. Is that possible? How about combining .lib libraries?
cc++
combine
.a
.lib
null
null
open
How to combine several C/C++ libraries into one? === I'm tired of adding ten link libraries into my project, or requiring eight of them to use my own. I'd like to take existing libraries like libpng.a, libz.a, libjpeg.a, and combine them into one single .a library. Is that possible? How about combining .lib libraries?
0
13,129
08/16/2008 13:50:11
1,521
08/16/2008 10:01:35
66
1
What's a good starting development environment for teaching/learning Python?
I'm a seasoned .Net developer with a good chunk of experience on the MS stack and in related areas. I'm about to learn Python and was curious about the ideal development environment on Windows - IDE, tools etc. I'd normally be happy to go out there and have a play with what's available, adapting as I go along. I'd also likely switch between OSX, Linux and Windows to get a good feel for everything that's available. However... I'm also going to be teaching two novice programmers how to program, using Python (thanks to the great information in [this SO question][1].) So, I guess the real question is what's a good starting point, tools-wise for Python, for a couple of smart, tecnhnically-comfortable windows users who don't yet know how to program but will have the help of someone who does? [1]: http://stackoverflow.com/questions/3088/best-ways-to-teach-a-beginner-to-program
python
ide
teaching
null
null
08/30/2011 14:35:36
not constructive
What's a good starting development environment for teaching/learning Python? === I'm a seasoned .Net developer with a good chunk of experience on the MS stack and in related areas. I'm about to learn Python and was curious about the ideal development environment on Windows - IDE, tools etc. I'd normally be happy to go out there and have a play with what's available, adapting as I go along. I'd also likely switch between OSX, Linux and Windows to get a good feel for everything that's available. However... I'm also going to be teaching two novice programmers how to program, using Python (thanks to the great information in [this SO question][1].) So, I guess the real question is what's a good starting point, tools-wise for Python, for a couple of smart, tecnhnically-comfortable windows users who don't yet know how to program but will have the help of someone who does? [1]: http://stackoverflow.com/questions/3088/best-ways-to-teach-a-beginner-to-program
4
13,153
08/16/2008 14:45:18
722
08/08/2008 11:37:05
318
25
Do the arts make you a better programmer?
I remember some time ago reading in Dr. Dobb's Journal, years ago, that there may be some correlation between people who program and playing musical instruments. Do you play a musical instrument? Do you think this might affect how you program? What about other arts -- painting or other visual arts, writing, acting?
arts
null
null
null
null
null
open
Do the arts make you a better programmer? === I remember some time ago reading in Dr. Dobb's Journal, years ago, that there may be some correlation between people who program and playing musical instruments. Do you play a musical instrument? Do you think this might affect how you program? What about other arts -- painting or other visual arts, writing, acting?
0
13,154
08/16/2008 14:46:10
1,368
08/14/2008 18:57:47
8
2
Is it safe to install SVN on a production win2008 web server?
I have a web server and I am currently paying for SVN hosting at a company that specializes in hosting svn. I am thinking of just installing SVN on my dedicates server, are there any security implications of this?
svn
null
null
null
null
null
open
Is it safe to install SVN on a production win2008 web server? === I have a web server and I am currently paying for SVN hosting at a company that specializes in hosting svn. I am thinking of just installing SVN on my dedicates server, are there any security implications of this?
0
13,160
08/16/2008 14:58:30
1,130,097
08/16/2008 14:58:30
1
0
Best practice for webservices
I've created a webservice and when I want to use its methods I instantiate it in the a procedure, call the method, and I finally I dispose it, however I think also it could be okay to instantiate the webservice in the "private void Main_Load(object sender, EventArgs e)" event. The thing is that if I do it the first way I have to instantiate the webservice every time I need one of its methods but in the other way I have to keep a webservice connected all the time when I use it in a form for example. I would like to know which of these practices are better or if there's a much better way to do it **Strategy 1** private void btnRead_Click(object sender, EventArgs e) { try { //Show clock this.picResult.Image = new Bitmap(pathWait); Application.DoEvents(); //Connect to webservice svc = new ForPocketPC.ServiceForPocketPC(); svc.Credentials = new System.Net.NetworkCredential(Settings.UserName, Settings.Password); svc.AllowAutoRedirect = false; svc.UserAgent = Settings.UserAgent; svc.PreAuthenticate = true; svc.Url = Settings.Url; svc.Timeout = System.Threading.Timeout.Infinite; svc.CallMethod(); ... catch (Exception ex) { ShowError(ex); } finally { if (svc != null) svc.Dispose(); } } **Strategy 2** private myWebservice svc; private void Main_Load(object sender, EventArgs e) { //Connect to webservice svc = new ForPocketPC.ServiceForPocketPC(); svc.Credentials = new System.Net.NetworkCredential(Settings.UserName, Settings.Password); svc.AllowAutoRedirect = false; svc.UserAgent = Settings.UserAgent; svc.PreAuthenticate = true; svc.Url = Settings.Url; svc.Timeout = System.Threading.Timeout.Infinite; } private void btnRead_Click(object sender, EventArgs e) { try { //Show clock this.picResult.Image = new Bitmap(pathWait); Application.DoEvents(); svc.CallMethod(); ... catch (Exception ex) { ShowError(ex); } } private void Main_Closing(object sender, CancelEventArgs e) { svc.Dispose(); } Thanks in advance PD. And thanks to the stackoverflow team for inviting me.
webservices
null
null
null
null
null
open
Best practice for webservices === I've created a webservice and when I want to use its methods I instantiate it in the a procedure, call the method, and I finally I dispose it, however I think also it could be okay to instantiate the webservice in the "private void Main_Load(object sender, EventArgs e)" event. The thing is that if I do it the first way I have to instantiate the webservice every time I need one of its methods but in the other way I have to keep a webservice connected all the time when I use it in a form for example. I would like to know which of these practices are better or if there's a much better way to do it **Strategy 1** private void btnRead_Click(object sender, EventArgs e) { try { //Show clock this.picResult.Image = new Bitmap(pathWait); Application.DoEvents(); //Connect to webservice svc = new ForPocketPC.ServiceForPocketPC(); svc.Credentials = new System.Net.NetworkCredential(Settings.UserName, Settings.Password); svc.AllowAutoRedirect = false; svc.UserAgent = Settings.UserAgent; svc.PreAuthenticate = true; svc.Url = Settings.Url; svc.Timeout = System.Threading.Timeout.Infinite; svc.CallMethod(); ... catch (Exception ex) { ShowError(ex); } finally { if (svc != null) svc.Dispose(); } } **Strategy 2** private myWebservice svc; private void Main_Load(object sender, EventArgs e) { //Connect to webservice svc = new ForPocketPC.ServiceForPocketPC(); svc.Credentials = new System.Net.NetworkCredential(Settings.UserName, Settings.Password); svc.AllowAutoRedirect = false; svc.UserAgent = Settings.UserAgent; svc.PreAuthenticate = true; svc.Url = Settings.Url; svc.Timeout = System.Threading.Timeout.Infinite; } private void btnRead_Click(object sender, EventArgs e) { try { //Show clock this.picResult.Image = new Bitmap(pathWait); Application.DoEvents(); svc.CallMethod(); ... catch (Exception ex) { ShowError(ex); } } private void Main_Closing(object sender, CancelEventArgs e) { svc.Dispose(); } Thanks in advance PD. And thanks to the stackoverflow team for inviting me.
0
13,170
08/16/2008 15:24:19
1,185
08/13/2008 12:02:03
249
28
A ThreadStateException occures when trying to restart a thread
From time to time I get a System.Threading.ThreadStateException when attempting to restart a thread. The code in question is as follows: // Make sure the thread is done stopping while (this.mThread.ThreadState == ThreadState.Running) { Thread.Sleep(0); } // Respawn a thread if the current one is stopped or doesn't exist if (this.mThread == null || this.mThread.ThreadState == ThreadState.Stopped) { this.mThread = new Thread(new ParameterizedThreadStart(Monitor)); } // Start the thread if (check) { this.mThread.Start(60000); } else { this.mThread.Start(0); } So two questions - is this the correct way of doing things, and it is, is there a way to prevent the error from occurring?
.net
theads
exception
c#
null
null
open
A ThreadStateException occures when trying to restart a thread === From time to time I get a System.Threading.ThreadStateException when attempting to restart a thread. The code in question is as follows: // Make sure the thread is done stopping while (this.mThread.ThreadState == ThreadState.Running) { Thread.Sleep(0); } // Respawn a thread if the current one is stopped or doesn't exist if (this.mThread == null || this.mThread.ThreadState == ThreadState.Stopped) { this.mThread = new Thread(new ParameterizedThreadStart(Monitor)); } // Start the thread if (check) { this.mThread.Start(60000); } else { this.mThread.Start(0); } So two questions - is this the correct way of doing things, and it is, is there a way to prevent the error from occurring?
0
13,182
08/16/2008 15:49:28
1,130,097
08/16/2008 14:58:30
1
1
SICP ... better programming?
Last year I read an article on http://jaortega.wordpress.com/2007/01/31/a-scheme-bookshelf/ that claimed that if you read/study SICP "It will expand your mind. It will cure your diseases", I also read Eric Raymond "The Cathedral and the Bazaar" abou the Lips experience. I tried for a while to use it (I downloaded the SICP pdf and DrScheme), at a moment it seemed to me very cool but, I don't know, later I felt unmotivated cause it looked like I was returning to college and actually I need to produce, I don't see me developing theoric compilers but making applications for my clients. Don't get me wrong, I like to program, I don't see me doing anything else but I think to myself "Maybe it could be an enlightment experience, maybe I could enhance my solution approaches". What is your opinion? is it worth it to return to my SICP study?
books
sicp
null
null
null
null
open
SICP ... better programming? === Last year I read an article on http://jaortega.wordpress.com/2007/01/31/a-scheme-bookshelf/ that claimed that if you read/study SICP "It will expand your mind. It will cure your diseases", I also read Eric Raymond "The Cathedral and the Bazaar" abou the Lips experience. I tried for a while to use it (I downloaded the SICP pdf and DrScheme), at a moment it seemed to me very cool but, I don't know, later I felt unmotivated cause it looked like I was returning to college and actually I need to produce, I don't see me developing theoric compilers but making applications for my clients. Don't get me wrong, I like to program, I don't see me doing anything else but I think to myself "Maybe it could be an enlightment experience, maybe I could enhance my solution approaches". What is your opinion? is it worth it to return to my SICP study?
0
13,200
08/16/2008 16:09:16
1,190
08/13/2008 12:15:38
301
24
How do I integrate my continuous integration system with my bug tracking system?
I use cruisecontrol.rb for CI and FogBugz for bug tracking, but the more general the answers, the better. First is the technical problem: is there an API for FogBugz? Are there good tutorials, or better yet, pre-written code? Second is the procedural problem: what, exactly, should the CI put in the bug tracker when the build breaks? Perhaps: Title: "#{last committer} broke the build!" Body: "#{ error traces }" I suppose this presupposes the answer to this question: should I even put CI breaks into my bug tracking?
continuous-integration
bug-tracking
fogbugz
cruisecontrol.rb
null
null
open
How do I integrate my continuous integration system with my bug tracking system? === I use cruisecontrol.rb for CI and FogBugz for bug tracking, but the more general the answers, the better. First is the technical problem: is there an API for FogBugz? Are there good tutorials, or better yet, pre-written code? Second is the procedural problem: what, exactly, should the CI put in the bug tracker when the build breaks? Perhaps: Title: "#{last committer} broke the build!" Body: "#{ error traces }" I suppose this presupposes the answer to this question: should I even put CI breaks into my bug tracking?
0
13,204
08/16/2008 16:15:18
1,450
08/15/2008 16:26:21
26
2
Why Doesn't My Cron Job Work Properly?
I have a cron job on an Ubuntu Hardy VPS that only half works and I can't work out why. The job is a Ruby script that uses mysqldump to back up a MySQL database used by a Rails application, which is then gzipped and uploaded to a remote server using SFTP. The gzip file is created and copied successfully but it's always zero bytes. Yet if I run the cron command directly from the command line it works perfectly. This is the cron job: PATH=/usr/bin 10 3 * * * ruby /home/deploy/bin/datadump.rb This is datadump.rb: #!/usr/bin/ruby require 'yaml' require 'logger' require 'rubygems' require 'net/ssh' require 'net/sftp' APP = '/home/deploy/apps/myapp/current' LOGFILE = '/home/deploy/log/data.log' TIMESTAMP = '%Y%m%d-%H%M' TABLES = 'table1 table2' log = Logger.new(LOGFILE, 5, 10 * 1024) dump = "myapp-#{Time.now.strftime(TIMESTAMP)}.sql.gz" ftpconfig = YAML::load(open('/home/deploy/apps/myapp/shared/config/sftp.yml')) config = YAML::load(open(APP + '/config/database.yml'))['production'] cmd = "mysqldump -u #{config['username']} -p#{config['password']} -h #{config['host']} --add-drop-table --add-locks --extended-insert --lock-tables #{config['database']} #{TABLES} | gzip -cf9 > #{dump}" log.info 'Getting ready to create a backup' `#{cmd}` # Strongspace log.info 'Backup created, starting the transfer to Strongspace' Net::SSH.start(ftpconfig['strongspace']['host'], ftpconfig['strongspace']['username'], ftpconfig['strongspace']['password']) do |ssh| ssh.sftp.connect do |sftp| sftp.open_handle("#{ftpconfig['strongspace']['dir']}/#{dump}", 'w') do |handle| sftp.write(handle, open("#{dump}").read) end end end log.info 'Finished transferring backup to Strongspace' log.info 'Removing local file' cmd = "rm -f #{dump}" log.debug "Executing: #{cmd}" `#{cmd}` log.info 'Local file removed' I've checked and double-checked all the paths and they're correct. Both **sftp.yml** (SFTP credentials) and **database.yml** (MySQL credentials) are owned by the executing user (deploy) with read-only permissions for that user (chmod 400). I'm using the 1.1.x versions of net-ssh and net-sftp. I know they're not the latest, but they're what I'm familiar with at the moment. What could be causing the cron job to fail?
ruby
linux
ruby-on-rails
ubuntu
cron
null
open
Why Doesn't My Cron Job Work Properly? === I have a cron job on an Ubuntu Hardy VPS that only half works and I can't work out why. The job is a Ruby script that uses mysqldump to back up a MySQL database used by a Rails application, which is then gzipped and uploaded to a remote server using SFTP. The gzip file is created and copied successfully but it's always zero bytes. Yet if I run the cron command directly from the command line it works perfectly. This is the cron job: PATH=/usr/bin 10 3 * * * ruby /home/deploy/bin/datadump.rb This is datadump.rb: #!/usr/bin/ruby require 'yaml' require 'logger' require 'rubygems' require 'net/ssh' require 'net/sftp' APP = '/home/deploy/apps/myapp/current' LOGFILE = '/home/deploy/log/data.log' TIMESTAMP = '%Y%m%d-%H%M' TABLES = 'table1 table2' log = Logger.new(LOGFILE, 5, 10 * 1024) dump = "myapp-#{Time.now.strftime(TIMESTAMP)}.sql.gz" ftpconfig = YAML::load(open('/home/deploy/apps/myapp/shared/config/sftp.yml')) config = YAML::load(open(APP + '/config/database.yml'))['production'] cmd = "mysqldump -u #{config['username']} -p#{config['password']} -h #{config['host']} --add-drop-table --add-locks --extended-insert --lock-tables #{config['database']} #{TABLES} | gzip -cf9 > #{dump}" log.info 'Getting ready to create a backup' `#{cmd}` # Strongspace log.info 'Backup created, starting the transfer to Strongspace' Net::SSH.start(ftpconfig['strongspace']['host'], ftpconfig['strongspace']['username'], ftpconfig['strongspace']['password']) do |ssh| ssh.sftp.connect do |sftp| sftp.open_handle("#{ftpconfig['strongspace']['dir']}/#{dump}", 'w') do |handle| sftp.write(handle, open("#{dump}").read) end end end log.info 'Finished transferring backup to Strongspace' log.info 'Removing local file' cmd = "rm -f #{dump}" log.debug "Executing: #{cmd}" `#{cmd}` log.info 'Local file removed' I've checked and double-checked all the paths and they're correct. Both **sftp.yml** (SFTP credentials) and **database.yml** (MySQL credentials) are owned by the executing user (deploy) with read-only permissions for that user (chmod 400). I'm using the 1.1.x versions of net-ssh and net-sftp. I know they're not the latest, but they're what I'm familiar with at the moment. What could be causing the cron job to fail?
0
13,213
08/16/2008 16:24:58
1,407
08/15/2008 12:41:48
1
0
URL without ID
I see often (rewritten) URLs without ID in it, like on some wordpress installations. What is the best way of achieve this? Example: site.com/product/some-product-name/ Maybe to keep array of page names and IDs in cache, to avoid DB query on every page request? How to avoid conflicts, and what are other issues on using urls without IDs?
url
rewrite
null
null
null
null
open
URL without ID === I see often (rewritten) URLs without ID in it, like on some wordpress installations. What is the best way of achieve this? Example: site.com/product/some-product-name/ Maybe to keep array of page names and IDs in cache, to avoid DB query on every page request? How to avoid conflicts, and what are other issues on using urls without IDs?
0
13,217
08/16/2008 16:32:06
1,478
08/15/2008 19:37:57
11
2
How do I update my UI from within HttpWebRequest.BeginGetRequestStream in Silverlight
I am uploading multiple files using the BeginGetRequestStream of HttpWebRequest but I want to update the progress control I have written whilst I post up the data stream. How should this be done, I have tried calling Dispatch.BeginInvoke (as below) from within the loop that pushes the data into the stream but it locks the browser until its finished so it seems to be in some sort of worker/ui thread deadlock. This is a code snippet of pretty much what I am doing: class RequestState { public HttpWebRequest request; // holds the request public FileDialogFileInfo file; // store our file stream data public RequestState( HttpWebRequest request, FileDialogFileInfo file ) { this.request = request; this.file = file; } } private void UploadFile( FileDialogFileInfo file ) { UriBuilder ub = new UriBuilder( app.receiverURL ); ub.Query = string.Format( "filename={0}", file.Name ); // Open the selected file to read. HttpWebRequest request = (HttpWebRequest)WebRequest.Create( ub.Uri ); request.Method = "POST"; RequestState state = new RequestState( request, file ); request.BeginGetRequestStream( new AsyncCallback( OnUploadReadCallback ), state ); } private void OnUploadReadCallback( IAsyncResult asynchronousResult ) { RequestState state = (RequestState)asynchronousResult.AsyncState; HttpWebRequest request = (HttpWebRequest)state.request; Stream postStream = request.EndGetRequestStream( asynchronousResult ); PushData( state.file, postStream ); postStream.Close(); state.request.BeginGetResponse( new AsyncCallback( OnUploadResponseCallback ), state.request ); } private void PushData( FileDialogFileInfo file, Stream output ) { byte[] buffer = new byte[ 4096 ]; int bytesRead = 0; Stream input = file.OpenRead(); while( ( bytesRead = input.Read( buffer, 0, buffer.Length ) ) != 0 ) { output.Write( buffer, 0, bytesRead ); bytesReadTotal += bytesRead; App app = App.Current as App; int totalPercentage = Convert.ToInt32( ( bytesReadTotal / app.totalBytesToUpload ) * 100 ); // enabling the following locks up my UI and browser Dispatcher.BeginInvoke( () => { this.ProgressBarWithPercentage.Percentage = totalPercentage; } ); } }
silverlight2beta2
httpwebrequest
ui
user-interface
c#
null
open
How do I update my UI from within HttpWebRequest.BeginGetRequestStream in Silverlight === I am uploading multiple files using the BeginGetRequestStream of HttpWebRequest but I want to update the progress control I have written whilst I post up the data stream. How should this be done, I have tried calling Dispatch.BeginInvoke (as below) from within the loop that pushes the data into the stream but it locks the browser until its finished so it seems to be in some sort of worker/ui thread deadlock. This is a code snippet of pretty much what I am doing: class RequestState { public HttpWebRequest request; // holds the request public FileDialogFileInfo file; // store our file stream data public RequestState( HttpWebRequest request, FileDialogFileInfo file ) { this.request = request; this.file = file; } } private void UploadFile( FileDialogFileInfo file ) { UriBuilder ub = new UriBuilder( app.receiverURL ); ub.Query = string.Format( "filename={0}", file.Name ); // Open the selected file to read. HttpWebRequest request = (HttpWebRequest)WebRequest.Create( ub.Uri ); request.Method = "POST"; RequestState state = new RequestState( request, file ); request.BeginGetRequestStream( new AsyncCallback( OnUploadReadCallback ), state ); } private void OnUploadReadCallback( IAsyncResult asynchronousResult ) { RequestState state = (RequestState)asynchronousResult.AsyncState; HttpWebRequest request = (HttpWebRequest)state.request; Stream postStream = request.EndGetRequestStream( asynchronousResult ); PushData( state.file, postStream ); postStream.Close(); state.request.BeginGetResponse( new AsyncCallback( OnUploadResponseCallback ), state.request ); } private void PushData( FileDialogFileInfo file, Stream output ) { byte[] buffer = new byte[ 4096 ]; int bytesRead = 0; Stream input = file.OpenRead(); while( ( bytesRead = input.Read( buffer, 0, buffer.Length ) ) != 0 ) { output.Write( buffer, 0, bytesRead ); bytesReadTotal += bytesRead; App app = App.Current as App; int totalPercentage = Convert.ToInt32( ( bytesReadTotal / app.totalBytesToUpload ) * 100 ); // enabling the following locks up my UI and browser Dispatcher.BeginInvoke( () => { this.ProgressBarWithPercentage.Percentage = totalPercentage; } ); } }
0
13,222
08/16/2008 16:41:03
1,556
08/16/2008 16:41:03
1
0
How many people reads "The Art Of Computer Programming" books?
"TAOCP book is one of the must-reading CS books." I read such a statement so many times but I never see person who read and study over the book. Maybe the book itself makes our job more secure(*^^*). Have you ever read the book?
taocp
null
null
null
null
07/04/2010 04:27:13
not a real question
How many people reads "The Art Of Computer Programming" books? === "TAOCP book is one of the must-reading CS books." I read such a statement so many times but I never see person who read and study over the book. Maybe the book itself makes our job more secure(*^^*). Have you ever read the book?
1
13,224
08/16/2008 16:42:27
1,130,097
08/16/2008 14:58:30
6
3
Mobile device is detected as non mobile device
I've included a mobile web form in my asp.net project, I thought that it could/should be seen just for my mobile users but I realize that it can also be seen from any browser, I don't see problem there cause I could diff the access using HttpBrowserCapabilities.IsMobileDevice=true and transferring to the appropiate aspx page, but it results that when I access to the web form from my mobile device it is identified as IsMobileDevice = false and sends me to another page. How could it be possible that? The mobile device runs Pocket PC 2003.
mobile
mobile-web
null
null
null
null
open
Mobile device is detected as non mobile device === I've included a mobile web form in my asp.net project, I thought that it could/should be seen just for my mobile users but I realize that it can also be seen from any browser, I don't see problem there cause I could diff the access using HttpBrowserCapabilities.IsMobileDevice=true and transferring to the appropiate aspx page, but it results that when I access to the web form from my mobile device it is identified as IsMobileDevice = false and sends me to another page. How could it be possible that? The mobile device runs Pocket PC 2003.
0
13,225
08/16/2008 16:42:50
1,557
08/16/2008 16:42:49
1
0
How can I refactor HTML markup out of my property files?
I've recently inherited a internationalized and text-heavy Struts web application. Many of the JSP files look like: <p> <bean:message key="alert" /> </p> and the properties files look like: messages.properties alert=Please update your <a href="/address.do">address</a> and <a href="/contact.do">contact information</a>. with the appropriate translations in N other languages (messages_fr.properties, etc). Problems: 1. _**DRY violation**_ - I have N references to my Struts action URLs instead of 1, which makes refactoring action URLs error-prone. 2. _**Mixed concerns**_ - My application's markup is now in more than just my JSP files, making it difficult for a web specialist to tweak the markup (using CSS, etc). 3. _**Post-translation markup**_ - Anytime I receive newly-translated text, I must decide what to surround with the < a >...< /a > markup. Easy for English but less so for unfamiliar languages. I've considered adding placeholders in the messages file, like: alert=Please update your {0} and {1}. but then the words "address" and "contact information" would somehow need to be localized, wrapped with markup, and passed to my message tag - and I can't see an easy way to do it. What can I do to improve this?
java
struts
internationalization
jsp
null
null
open
How can I refactor HTML markup out of my property files? === I've recently inherited a internationalized and text-heavy Struts web application. Many of the JSP files look like: <p> <bean:message key="alert" /> </p> and the properties files look like: messages.properties alert=Please update your <a href="/address.do">address</a> and <a href="/contact.do">contact information</a>. with the appropriate translations in N other languages (messages_fr.properties, etc). Problems: 1. _**DRY violation**_ - I have N references to my Struts action URLs instead of 1, which makes refactoring action URLs error-prone. 2. _**Mixed concerns**_ - My application's markup is now in more than just my JSP files, making it difficult for a web specialist to tweak the markup (using CSS, etc). 3. _**Post-translation markup**_ - Anytime I receive newly-translated text, I must decide what to surround with the < a >...< /a > markup. Easy for English but less so for unfamiliar languages. I've considered adding placeholders in the messages file, like: alert=Please update your {0} and {1}. but then the words "address" and "contact information" would somehow need to be localized, wrapped with markup, and passed to my message tag - and I can't see an easy way to do it. What can I do to improve this?
0
13,253
08/16/2008 17:54:13
1,516
08/16/2008 07:40:39
11
1
Contribute to OS project or write something on my own
I'm computer science student and I have been programming for some time (few years mostly as hobby). Recently I've been thinking, which option would be better way to improve my programming skills. On the one hand I like to write everything by myself, it gives me opportunity to experiment, decide about it and so on... On the other hand I'm afraid I won't create anything great alone, also someday I will go to job and ability to work in a team would be very usefull. So if someone could give me advice I would be very thankfull... :)
untagged
null
null
null
null
01/28/2012 01:10:35
off topic
Contribute to OS project or write something on my own === I'm computer science student and I have been programming for some time (few years mostly as hobby). Recently I've been thinking, which option would be better way to improve my programming skills. On the one hand I like to write everything by myself, it gives me opportunity to experiment, decide about it and so on... On the other hand I'm afraid I won't create anything great alone, also someday I will go to job and ability to work in a team would be very usefull. So if someone could give me advice I would be very thankfull... :)
2
13,254
08/16/2008 17:54:58
1,353
08/14/2008 17:39:48
1
0
Open Id authentication in Ruby on Rails
I am a neophyte with Ruby on Rails but I've created a couple of small apps. Anyway, I'm really interested in OpenId and I would like to implement OpenId authentication and maybe some Sreg stuff in a Rails app. All of the research that I have done has come up with articles that are out of date or just don't work for me. Since I'm so new to Rails I'm having difficulty debugging the issues so... What is the best way to implement OpenId in Rails? Thanks
ruby-on-rails
openid
authentication
rubyonrails
null
null
open
Open Id authentication in Ruby on Rails === I am a neophyte with Ruby on Rails but I've created a couple of small apps. Anyway, I'm really interested in OpenId and I would like to implement OpenId authentication and maybe some Sreg stuff in a Rails app. All of the research that I have done has come up with articles that are out of date or just don't work for me. Since I'm so new to Rails I'm having difficulty debugging the issues so... What is the best way to implement OpenId in Rails? Thanks
0
13,279
08/16/2008 18:57:53
905
08/10/2008 09:37:14
1,280
107
Any good resources or advice for working with languages with different orientations?
We have an enterprise web application where every bit of text in the system is localised to the user's browser's culture setting. So far we have only supported English, American (similar but mis-spelt ;-) and French (for the Canadian Gov't - app in English or French depending on user preference). During development we also had some European languages in mind like Dutch and German that tend to concatenate words into very long ones. We're currently investigating support for eastern languages: Chinese, Japanese, and so on. I understand that these use phonetic input converted to written characters. How does that work on the web? Do the same events fire while inputs and textareas are being edited (we're quite Ajax heavy). What conventions do users of these top-down languages expect online? With RTL languages like Arabic do users expect the entire interface to be mirrored? For instance should things like OK/Cancel buttons be swapped and on the left?
internationalization
null
null
null
null
null
open
Any good resources or advice for working with languages with different orientations? === We have an enterprise web application where every bit of text in the system is localised to the user's browser's culture setting. So far we have only supported English, American (similar but mis-spelt ;-) and French (for the Canadian Gov't - app in English or French depending on user preference). During development we also had some European languages in mind like Dutch and German that tend to concatenate words into very long ones. We're currently investigating support for eastern languages: Chinese, Japanese, and so on. I understand that these use phonetic input converted to written characters. How does that work on the web? Do the same events fire while inputs and textareas are being edited (we're quite Ajax heavy). What conventions do users of these top-down languages expect online? With RTL languages like Arabic do users expect the entire interface to be mirrored? For instance should things like OK/Cancel buttons be swapped and on the left?
0
13,289
08/16/2008 19:20:40
1,556
08/16/2008 16:41:03
11
0
Can you share your secrets or best practices for Problem Solving?
I heard that Kent Beck who leads XP used so many color pencils to stimulate his brain when he needed to solve the problem. I tried Kent's method and it really worked for me. I don't know why. Do you have any special method to attack hard problem? I really want to learn about your great secret.
untagged
null
null
null
null
10/03/2011 14:31:35
not constructive
Can you share your secrets or best practices for Problem Solving? === I heard that Kent Beck who leads XP used so many color pencils to stimulate his brain when he needed to solve the problem. I tried Kent's method and it really worked for me. I don't know why. Do you have any special method to attack hard problem? I really want to learn about your great secret.
4
13,293
08/16/2008 19:27:20
1,384,652
08/01/2008 12:01:23
948
60
Code igniter (PHP framework)
I am thinking of using a PHP framework called [Code Igniter][1]. One of the things I am interested in about it is that it's fast, I have however no way to find out how fast and would rather not simply take the word of their website for it. Does anybody know how I can determine it's speed or tell me of a site that can? Thank you. [1]: http://codeigniter.com/
php
codeigniter
null
null
null
null
open
Code igniter (PHP framework) === I am thinking of using a PHP framework called [Code Igniter][1]. One of the things I am interested in about it is that it's fast, I have however no way to find out how fast and would rather not simply take the word of their website for it. Does anybody know how I can determine it's speed or tell me of a site that can? Thank you. [1]: http://codeigniter.com/
0
13,299
08/16/2008 19:42:42
1,573
08/16/2008 19:20:50
1
0
Image manipulation in asp.net/c# withoug System.Drawing/GDI+
Is there any alternative image manipulation library for .net? I would prefer something that is managed and open source. I ask this because of two reasons: 1. I have encountered hard to debug GDI+ errors with System.Drawing in the past 2. I have read that using System.Drawing in asp.net web applications is not 100% supported. Thanks!
asp.net
system.drawing
null
null
null
null
open
Image manipulation in asp.net/c# withoug System.Drawing/GDI+ === Is there any alternative image manipulation library for .net? I would prefer something that is managed and open source. I ask this because of two reasons: 1. I have encountered hard to debug GDI+ errors with System.Drawing in the past 2. I have read that using System.Drawing in asp.net web applications is not 100% supported. Thanks!
0
13,347
08/16/2008 20:37:09
770
08/08/2008 17:20:44
296
24
Developing for multiple monitors.
We are currently working on a new version of our main application. one thing that I really wish to work on is providing support for multiple monitors. Increasingly, our target users are adding second screens to their desktops and I think our product could leverage this extra space to improve user performance. Our application is a financial package that supports leasing and fleet companies - a very specialised market. That being said, I am sure that many people with multiple monitors have a favourite bit of software that they think would be improved if it supported those extra screens better. I'm looking for some opinions on those niggles that you have with current software, and how you think they could be improved to support multi-monitor setups. My aim is to then review these and decide how I can implement them and, hopefully, provide an even better environment for my users. Your help is appreciated. Thankyou.
monitor
environment
development
hardware
gui
null
open
Developing for multiple monitors. === We are currently working on a new version of our main application. one thing that I really wish to work on is providing support for multiple monitors. Increasingly, our target users are adding second screens to their desktops and I think our product could leverage this extra space to improve user performance. Our application is a financial package that supports leasing and fleet companies - a very specialised market. That being said, I am sure that many people with multiple monitors have a favourite bit of software that they think would be improved if it supported those extra screens better. I'm looking for some opinions on those niggles that you have with current software, and how you think they could be improved to support multi-monitor setups. My aim is to then review these and decide how I can implement them and, hopefully, provide an even better environment for my users. Your help is appreciated. Thankyou.
0
13,348
08/16/2008 20:39:26
1,581
08/16/2008 20:39:26
1
0
What are the advantages of using a single database for EACH client?
In a database-centric application that is designed for multiple clients, I've always thought it was "better" to use a single database for ALL clients - associating records with proper indexes and keys. In listening to the Stack Overflow podcast, I heard Joel mention that FogBugz uses one database per client (so if there were 1000 clients, there would be 1000 databases). What are the advantages to using this architecture? I understand that for some projects clients need direct access to all of their data - in such an application, it's obvious that each client needs their own database. However, for projects where a client does not need to access the database directly, are there any advantages to using one database per client? It seems that in terms of flexibility, it's much simpler to use a single database with a single copy of the tables. It's easier to add new features, it's easier to create reports, and it's just easier to manage. I was pretty confident in the "one database for all clients" method until I heard Joel (an experienced developer) mention that his software uses a different approach -- and I'm a little confused with his decision... I've heard people cite that databases slow down with a large number of records, but any relational database with some merit isn't going to have that problem - especially if proper indexes and keys are used. Any input is greatly appreciated!
database
databases
null
null
null
null
open
What are the advantages of using a single database for EACH client? === In a database-centric application that is designed for multiple clients, I've always thought it was "better" to use a single database for ALL clients - associating records with proper indexes and keys. In listening to the Stack Overflow podcast, I heard Joel mention that FogBugz uses one database per client (so if there were 1000 clients, there would be 1000 databases). What are the advantages to using this architecture? I understand that for some projects clients need direct access to all of their data - in such an application, it's obvious that each client needs their own database. However, for projects where a client does not need to access the database directly, are there any advantages to using one database per client? It seems that in terms of flexibility, it's much simpler to use a single database with a single copy of the tables. It's easier to add new features, it's easier to create reports, and it's just easier to manage. I was pretty confident in the "one database for all clients" method until I heard Joel (an experienced developer) mention that his software uses a different approach -- and I'm a little confused with his decision... I've heard people cite that databases slow down with a large number of records, but any relational database with some merit isn't going to have that problem - especially if proper indexes and keys are used. Any input is greatly appreciated!
0
13,353
08/16/2008 20:48:00
143
08/02/2008 12:45:43
263
7
Override tab behavior in WinForms
I have a UserControl that consists of three TextBoxes. On a form I can have one or more or my UserControl. I want to implement my own tab behavior so if the user presses Tab in the second TextBox I should only move to the third TextBox if the the second TextBox has anything entered. If nothing is entered in the second TextBox the next control of the form should get focus as per the normal tab behavior. If the user hasn't entered anything in the first or second TextBox and the presses tab there is this special case where a control on the form should be skipped. By using the ProcessDialogKey I have managed to get it work kind of ok but I still have one problem. My question is if there is a way to detect how a WinForms control got focus since I would also like to know if the my UserControl got focus from a Tab or Shift-Tab and then do my weird stuff but if the user clicks the control I don't want to do anything special.
c#
winforms
null
null
null
null
open
Override tab behavior in WinForms === I have a UserControl that consists of three TextBoxes. On a form I can have one or more or my UserControl. I want to implement my own tab behavior so if the user presses Tab in the second TextBox I should only move to the third TextBox if the the second TextBox has anything entered. If nothing is entered in the second TextBox the next control of the form should get focus as per the normal tab behavior. If the user hasn't entered anything in the first or second TextBox and the presses tab there is this special case where a control on the form should be skipped. By using the ProcessDialogKey I have managed to get it work kind of ok but I still have one problem. My question is if there is a way to detect how a WinForms control got focus since I would also like to know if the my UserControl got focus from a Tab or Shift-Tab and then do my weird stuff but if the user clicks the control I don't want to do anything special.
0
13,362
08/16/2008 21:04:17
1,384
08/14/2008 23:34:44
1
0
Scrolling Overflowed DIVs with JavaScript
I've got a div that uses overflow:auto to keep the contents inside the div as it is resized and dragged around the page. I'm using some ajax to retrieve lines of text from the server, then append them to the end of the div, so the content is growing downwards. Every time this happens, I'd like to use JS to scroll the div to the bottom so the most recently added content is visible, similar to the way a chat room or command line console would work. So far I've been using this snippet to do it (I'm also using jQuery, hence the $() function): $("#thediv").scrollTop = $("#thediv").scrollHeight; However it's been giving me inconsistent results. Sometimes it works, sometimes not, and it completely ceases to work if the user ever resizes the div or moves the scroll bar manually. The target browser is Firefox 3, and it's being deployed in a controlled environment so it doesn't need to work in IE at all. Any ideas guys? This one's got me stumped. Thanks!
javascript
html
css
ajax
div
null
open
Scrolling Overflowed DIVs with JavaScript === I've got a div that uses overflow:auto to keep the contents inside the div as it is resized and dragged around the page. I'm using some ajax to retrieve lines of text from the server, then append them to the end of the div, so the content is growing downwards. Every time this happens, I'd like to use JS to scroll the div to the bottom so the most recently added content is visible, similar to the way a chat room or command line console would work. So far I've been using this snippet to do it (I'm also using jQuery, hence the $() function): $("#thediv").scrollTop = $("#thediv").scrollHeight; However it's been giving me inconsistent results. Sometimes it works, sometimes not, and it completely ceases to work if the user ever resizes the div or moves the scroll bar manually. The target browser is Firefox 3, and it's being deployed in a controlled environment so it doesn't need to work in IE at all. Any ideas guys? This one's got me stumped. Thanks!
0
13,396
08/16/2008 22:28:39
1,266
08/14/2008 06:27:57
21
6
Replacement for for... if array iteration
I love list comprehensions in Python, because they concisely represent a transformation of a list. However, in other languages, I frequently find myself writing something along the lines of: foreach (int x in intArray) if (x > 3) //generic condition on x x++ //do other processing This example is in C#, where I'm under the impression LINQ can help with this, but is there some common programming construct which can replace this slightly less-than-elegant solution? Perhaps a data structure I'm not considering?
python
.net
arrays
iteration
loop
null
open
Replacement for for... if array iteration === I love list comprehensions in Python, because they concisely represent a transformation of a list. However, in other languages, I frequently find myself writing something along the lines of: foreach (int x in intArray) if (x > 3) //generic condition on x x++ //do other processing This example is in C#, where I'm under the impression LINQ can help with this, but is there some common programming construct which can replace this slightly less-than-elegant solution? Perhaps a data structure I'm not considering?
0
13,409
08/16/2008 23:17:23
1,554
08/16/2008 15:59:27
26
7
Do you have "Slack" time?
The CodePlex team has a [Slack][1] time policy, and it's worked out very well for them. - Jim Newkirk and myself used it to work on the [xUnit.net][2] project. - Jonathan Wanagel used it to work on [SvnBridge][3]. - Scott Densmore and myself used it to work on an [ObjectBuilder 2.0][4] prototype. For others, it was a great time to explore things that were technically not on the schedule, but could eventually end up being of great use to the rest of the team. I'm so convinced of the value of this that if I'm ever running a team again, I'm going to make it part of the team culture. Have you had a formalized Slack policy on your team? How did it work out? [1]: http://www.amazon.com/Slack-Getting-Burnout-Busywork-Efficiency/dp/0767907698 [2]: http://www.codeplex.com/xunit [3]: http://www.codeplex.com/SvnBridge [4]: http://www.codeplex.com/ObjectBuilder
time-management
null
null
null
null
11/21/2011 19:34:47
off topic
Do you have "Slack" time? === The CodePlex team has a [Slack][1] time policy, and it's worked out very well for them. - Jim Newkirk and myself used it to work on the [xUnit.net][2] project. - Jonathan Wanagel used it to work on [SvnBridge][3]. - Scott Densmore and myself used it to work on an [ObjectBuilder 2.0][4] prototype. For others, it was a great time to explore things that were technically not on the schedule, but could eventually end up being of great use to the rest of the team. I'm so convinced of the value of this that if I'm ever running a team again, I'm going to make it part of the team culture. Have you had a formalized Slack policy on your team? How did it work out? [1]: http://www.amazon.com/Slack-Getting-Burnout-Busywork-Efficiency/dp/0767907698 [2]: http://www.codeplex.com/xunit [3]: http://www.codeplex.com/SvnBridge [4]: http://www.codeplex.com/ObjectBuilder
2
13,430
08/17/2008 00:37:17
1,233
08/13/2008 15:07:10
21
4
Does CruiseControl.NET run on IIS 7.0?
I'm new to development (an admin by trade) and I'm setting up my development environment and I would like to set up a CruiseControl.Net server on Server 2008. A quick Google did not turn up any instructions for getting it running on IIS 7.0, so I was wondering if anyone had experience getting this set up.
cruisecontrol.net
iis7
null
null
null
null
open
Does CruiseControl.NET run on IIS 7.0? === I'm new to development (an admin by trade) and I'm setting up my development environment and I would like to set up a CruiseControl.Net server on Server 2008. A quick Google did not turn up any instructions for getting it running on IIS 7.0, so I was wondering if anyone had experience getting this set up.
0
13,434
08/17/2008 00:44:01
100
08/01/2008 20:41:59
468
13
Programatic access to call stack in .net
How can I get programmatic access to the call stack?
.net
reflection
callstack
null
null
null
open
Programatic access to call stack in .net === How can I get programmatic access to the call stack?
0
13,449
08/17/2008 01:14:28
1,512
08/16/2008 03:17:59
1
0
SVN Manager App for Mac (better than XCode)
I'm looking for a more robust and fully featured GUI SVN manager for Mac than what is built into XCode (which works, but only as long as you don't need anything beyond the bare basics). I can use the terminal when I have to, but I'm honestly much quicker and more efficient with a GUI. On windows I use TortoiseSVN, which does pretty much everything I need, but as far as I'm aware there's nothing even remotely resembling that on the Mac side. Thanks! -LL
svn
osx
null
null
null
null
open
SVN Manager App for Mac (better than XCode) === I'm looking for a more robust and fully featured GUI SVN manager for Mac than what is built into XCode (which works, but only as long as you don't need anything beyond the bare basics). I can use the terminal when I have to, but I'm honestly much quicker and more efficient with a GUI. On windows I use TortoiseSVN, which does pretty much everything I need, but as far as I'm aware there's nothing even remotely resembling that on the Mac side. Thanks! -LL
0
13,460
08/17/2008 01:38:24
1,256
08/13/2008 23:17:37
18
6
The theory (and terminology) behind Source Control
I've tried using source control for a couple projects but still don't really understand it. For these projects, we've used TortoiseSVN and have only had one line of revisions. (No trunk, branch, or any of that.) If there is a recommended way to set up source control systems, what are they? What are the reasons and benifits for setting it up that way? What is the underlying differences between the workings of a centralized and distributed source control system?
source-control
learning
null
null
null
null
open
The theory (and terminology) behind Source Control === I've tried using source control for a couple projects but still don't really understand it. For these projects, we've used TortoiseSVN and have only had one line of revisions. (No trunk, branch, or any of that.) If there is a recommended way to set up source control systems, what are they? What are the reasons and benifits for setting it up that way? What is the underlying differences between the workings of a centralized and distributed source control system?
0
13,470
08/17/2008 02:01:56
430
08/05/2008 16:45:35
371
28
Question about specific regular expression
I was reading [this question][1] about how to parse URLs out of web pages and had a question about the [accepted answer][2] which offered this solution: ((mailto\:|(news|(ht|f)tp(s?))\://){1}\S+) The solution was offered by [csmba][3] and he credited it to [regexlib.com][4]. Whew. Credits done. I think this is a fairly naive regular expression but it's a fine starting point for building something better. But, my question is this: What is the point of "{1}"? It means "exactly one of the previous grouping", right? Isn't that the default behavior of a grouping in a regular expression? Would the expression be changed in any way if the {1} were removed? If I saw this from a coworker I would point out his or her error but as I write this the response is rated at a 6 and the expression on regexlib.com is rated a 4 of 5. So maybe I'm missing something? [1]: http://stackoverflow.com/questions/6173/regular-expression-for-parsing-links-from-a-webpage [2]: http://stackoverflow.com/questions/6173/regular-expression-for-parsing-links-from-a-webpage#6183 [3]: http://stackoverflow.com/users/350/csmba [4]: http://regexlib.com/Search.aspx?k=URL
regularexpression
null
null
null
null
null
open
Question about specific regular expression === I was reading [this question][1] about how to parse URLs out of web pages and had a question about the [accepted answer][2] which offered this solution: ((mailto\:|(news|(ht|f)tp(s?))\://){1}\S+) The solution was offered by [csmba][3] and he credited it to [regexlib.com][4]. Whew. Credits done. I think this is a fairly naive regular expression but it's a fine starting point for building something better. But, my question is this: What is the point of "{1}"? It means "exactly one of the previous grouping", right? Isn't that the default behavior of a grouping in a regular expression? Would the expression be changed in any way if the {1} were removed? If I saw this from a coworker I would point out his or her error but as I write this the response is rated at a 6 and the expression on regexlib.com is rated a 4 of 5. So maybe I'm missing something? [1]: http://stackoverflow.com/questions/6173/regular-expression-for-parsing-links-from-a-webpage [2]: http://stackoverflow.com/questions/6173/regular-expression-for-parsing-links-from-a-webpage#6183 [3]: http://stackoverflow.com/users/350/csmba [4]: http://regexlib.com/Search.aspx?k=URL
0
13,473
08/17/2008 02:13:55
522
08/06/2008 14:24:03
186
22
How does one rank an array (sort) by value? *With a twist*
I need to take an array and sort it, replacing each value with its' "rank", an integer that corresponds to its position after sort. Heres an example: Input: 1,3,4,9,6. Output: 1, 2, 3, 5, 4. So, I need to replace each value with its position relative to all the other values. I hope that makes sense, but its late, so who knows :p. Thanks in advance.
c++
sorting
arrays
null
null
null
open
How does one rank an array (sort) by value? *With a twist* === I need to take an array and sort it, replacing each value with its' "rank", an integer that corresponds to its position after sort. Heres an example: Input: 1,3,4,9,6. Output: 1, 2, 3, 5, 4. So, I need to replace each value with its position relative to all the other values. I hope that makes sense, but its late, so who knows :p. Thanks in advance.
0
13,485
08/17/2008 02:57:46
1,436
08/15/2008 15:43:19
182
10
How do you keep two related, but separate, systems in sync with each other?
My current development project has two aspects to it. First, there is a public website where external users can submit and update information for various purposes. This information is then saved to a local SQL Server at the colo facility. The second aspect is an internal application which employees use to manage those same records (conceptually) and provide status updates, approvals, etc. This application is hosted within the corporate firewall with its own local SQL Server database. The two networks are connected by a hardware VPN solution, which is decent, but obviously not the speediest thing in the world. The two databases are similar, and share many of the same tables, but they are not 100% the same. Many of the tables on both sides are very specific to either the internal or external application. So the question is: when a user updates their information or submits a record on the public website, how do you transfer that data to the internal application's database so it can be managed by the internal staff? And vice versa... how do you push updates made by the staff back out to the website? It is worth mentioning that the more "real time" these updates occur, the better. Not that it has to be instant, just reasonably quick. So far, I have thought about using the following types of approaches: 1. Bi-directional replication 2. Web service interfaces on both sides with code to sync the changes as they are made (in real time). 3. Web service interfaces on both sides with code to asynchronously sync the changes (using a queueing mechanism). Any advice? Has anyone run into this problem before? Did you come up with a solution that worked well for you?
sql-server
database
synchronization
distributed
null
null
open
How do you keep two related, but separate, systems in sync with each other? === My current development project has two aspects to it. First, there is a public website where external users can submit and update information for various purposes. This information is then saved to a local SQL Server at the colo facility. The second aspect is an internal application which employees use to manage those same records (conceptually) and provide status updates, approvals, etc. This application is hosted within the corporate firewall with its own local SQL Server database. The two networks are connected by a hardware VPN solution, which is decent, but obviously not the speediest thing in the world. The two databases are similar, and share many of the same tables, but they are not 100% the same. Many of the tables on both sides are very specific to either the internal or external application. So the question is: when a user updates their information or submits a record on the public website, how do you transfer that data to the internal application's database so it can be managed by the internal staff? And vice versa... how do you push updates made by the staff back out to the website? It is worth mentioning that the more "real time" these updates occur, the better. Not that it has to be instant, just reasonably quick. So far, I have thought about using the following types of approaches: 1. Bi-directional replication 2. Web service interfaces on both sides with code to sync the changes as they are made (in real time). 3. Web service interfaces on both sides with code to asynchronously sync the changes (using a queueing mechanism). Any advice? Has anyone run into this problem before? Did you come up with a solution that worked well for you?
0
13,494
08/17/2008 03:20:57
1,117
08/12/2008 13:27:15
286
25
Creating a good developer abstraction layer?
Brad's recent question "[How much of your work day is spent coding?][1]" got me thinking about the [abstraction layer][2] you want to create for your developers. I am a big promoter of giving my developers what they need to get the job done. I hope that my developer's spend about 80% - 90% of the day coding. One thing that helps me do that, is abstracting customer support. My developers do not spend any part of the day answering customer support questions. In fact I use two separate tools for tracking customer support requests and my bugs/features, so those questions don't clog up my bug/feature system. Then use an integration technique to push the request into the bug/feature tracking system, if it indeed is a bug or a feature we want to implement. I was hoping to get answers on what other's think of this approach, since most user's on this site are developers. I sometimes second guess on whether I should get my developer's involved with answering emails or spending some time on the forums when they get a chance to see the frustration some customers have with the software. The benefit of this approach I hope to get is to motivate them to come up with better ways to do something or fix that bug, and that yes, we do actually have customers who use our software. [1]: http://stackoverflow.com/questions/13343/how-much-of-your-work-day-is-spent-coding [2]: http://www.joelonsoftware.com/articles/DevelopmentAbstraction.html
developer-management
null
null
null
null
null
open
Creating a good developer abstraction layer? === Brad's recent question "[How much of your work day is spent coding?][1]" got me thinking about the [abstraction layer][2] you want to create for your developers. I am a big promoter of giving my developers what they need to get the job done. I hope that my developer's spend about 80% - 90% of the day coding. One thing that helps me do that, is abstracting customer support. My developers do not spend any part of the day answering customer support questions. In fact I use two separate tools for tracking customer support requests and my bugs/features, so those questions don't clog up my bug/feature system. Then use an integration technique to push the request into the bug/feature tracking system, if it indeed is a bug or a feature we want to implement. I was hoping to get answers on what other's think of this approach, since most user's on this site are developers. I sometimes second guess on whether I should get my developer's involved with answering emails or spending some time on the forums when they get a chance to see the frustration some customers have with the software. The benefit of this approach I hope to get is to motivate them to come up with better ways to do something or fix that bug, and that yes, we do actually have customers who use our software. [1]: http://stackoverflow.com/questions/13343/how-much-of-your-work-day-is-spent-coding [2]: http://www.joelonsoftware.com/articles/DevelopmentAbstraction.html
0
13,498
08/17/2008 03:25:36
27,687
2008-09-01
46
2
simultaneous Outlook reminders on multiple devices
Please forgive me, Joel, for stealing your question. Joel asked this question on a podcast a while back but I don't think it ever got resolved. I'm in the same situation, so I'm also looking for the answer. I have multiple devices that all sync with MS-Outlook. PCs, Laptops, Smartphones, PDAs, etc. all have the capability to synchronize their data (calendars, emails, contacts, etc.) with the Exchange server. I like to use the Outlook meeting notice or appointment reminders to remind me of an upcoming meeting or doctors appointment or whatever. The problem lies in the fact that all the devices pop up the same reminder and I have to go to every single device individually in order to snooze or dismiss all of the identical the reminder popups. Since this is a sync'ing technology, why doesn't the fact that I snooze or dismiss on one device sync up the other devices automatically. I've even tried to force a sync after dismissing a reminder and it still shows up on my other devices after a forced sync. This is utterly annoying to me. Is there a setting that I'm overlooking or is there a 3rd party reminder utility that I should be using instead of the built-in stuff? Thanks, Kurt
windows
outlook
synchronization
reminders
null
null
open
simultaneous Outlook reminders on multiple devices === Please forgive me, Joel, for stealing your question. Joel asked this question on a podcast a while back but I don't think it ever got resolved. I'm in the same situation, so I'm also looking for the answer. I have multiple devices that all sync with MS-Outlook. PCs, Laptops, Smartphones, PDAs, etc. all have the capability to synchronize their data (calendars, emails, contacts, etc.) with the Exchange server. I like to use the Outlook meeting notice or appointment reminders to remind me of an upcoming meeting or doctors appointment or whatever. The problem lies in the fact that all the devices pop up the same reminder and I have to go to every single device individually in order to snooze or dismiss all of the identical the reminder popups. Since this is a sync'ing technology, why doesn't the fact that I snooze or dismiss on one device sync up the other devices automatically. I've even tried to force a sync after dismissing a reminder and it still shows up on my other devices after a forced sync. This is utterly annoying to me. Is there a setting that I'm overlooking or is there a 3rd party reminder utility that I should be using instead of the built-in stuff? Thanks, Kurt
0
13,518
08/17/2008 04:58:38
1,455
08/15/2008 17:03:04
23
3
Browser Sync accross many machines
Everyone remembers google browser sync right? I thought it was great. Unfortunately Google decided not to upgrade the service to Firefox 3.0. Mozilla is developing a replacement for google browser sync which will be a part of the Weave project. I have tried using Weave and found it to be very very slow or totally inoperable. Granted they are in a early development phase right now so I can not really complain. This specific problem of browser sync got me to thinking though. What do all of you think of Mozilla or someone making a server/client package that we, the users, could run on your 'main' machine? Now you just have to know your own IP or have some way to announce it to your client browsers at work or wherever. There are several problems I can think of with this: non static IPs, Opening up ports on your local comp etc. It just seems that Mozilla does not want to handle this traffic created by many people syncing their browsers. There is not a way for them to monetize this traffic since all the data uploaded must be encrypted.
firefox
browsers
synchronization
null
null
null
open
Browser Sync accross many machines === Everyone remembers google browser sync right? I thought it was great. Unfortunately Google decided not to upgrade the service to Firefox 3.0. Mozilla is developing a replacement for google browser sync which will be a part of the Weave project. I have tried using Weave and found it to be very very slow or totally inoperable. Granted they are in a early development phase right now so I can not really complain. This specific problem of browser sync got me to thinking though. What do all of you think of Mozilla or someone making a server/client package that we, the users, could run on your 'main' machine? Now you just have to know your own IP or have some way to announce it to your client browsers at work or wherever. There are several problems I can think of with this: non static IPs, Opening up ports on your local comp etc. It just seems that Mozilla does not want to handle this traffic created by many people syncing their browsers. There is not a way for them to monetize this traffic since all the data uploaded must be encrypted.
0
13,524
08/17/2008 05:57:59
1,463
08/15/2008 17:26:44
10
5
GridView delete not working
I'm using a GridView in C#.NET 3.5 and have just converted the underlying datasource from Adapter model to an object which gets its data from LINQ to SQL - i.e. a Business object that returns a List<> for the GetData() function etc. All was well in Denmark and the Update, and conditional Select statements work as expected but I can't get the Delete function to work. Just trying to pass in the ID or the entire object but it's being passed in a "new" object with none of the properties set. I'm just wondering if it's the old OldValuesParameterFormatString="original_{0}" monster in the ObjectDataSource causing confusion again. Anybody have any ideas?
c#
asp.net
gridview
null
null
null
open
GridView delete not working === I'm using a GridView in C#.NET 3.5 and have just converted the underlying datasource from Adapter model to an object which gets its data from LINQ to SQL - i.e. a Business object that returns a List<> for the GetData() function etc. All was well in Denmark and the Update, and conditional Select statements work as expected but I can't get the Delete function to work. Just trying to pass in the ID or the entire object but it's being passed in a "new" object with none of the properties set. I'm just wondering if it's the old OldValuesParameterFormatString="original_{0}" monster in the ObjectDataSource causing confusion again. Anybody have any ideas?
0
13,537
08/17/2008 06:46:11
1,266
08/14/2008 06:27:57
31
7
Bootstrapping a language
I've heard of the idea of bootstrapping a language, that is, writing a compiler/interpreter for the language in itself. I was wondering how this could be accomplished and looked around a bit, and saw someone say that it could only be done by either * writing an initial compiler in a different language. * handcoding an initial compiler in Assembly, which seems like a special case of the first To me, neither of these seem to actually be *bootstrapping* a language in the sense that they both require outside support. Is there a way to actually write a compiler in it's own language?
compiler
bootstrapping
null
null
null
null
open
Bootstrapping a language === I've heard of the idea of bootstrapping a language, that is, writing a compiler/interpreter for the language in itself. I was wondering how this could be accomplished and looked around a bit, and saw someone say that it could only be done by either * writing an initial compiler in a different language. * handcoding an initial compiler in Assembly, which seems like a special case of the first To me, neither of these seem to actually be *bootstrapping* a language in the sense that they both require outside support. Is there a way to actually write a compiler in it's own language?
0
13,540
08/17/2008 06:48:50
1,463
08/15/2008 17:26:44
10
7
Insert Update stored proc on SQL Server
I've written a stored proc that will do an update if a record exists otherwise it will do an insert. It looks something like this: update myTable set Col1=@col1, Col2=@col2 where ID=@ID if @@rowcount = 0 insert into myTable (Col1, Col2) values (@col1, @col2) My logic behind writing it in this way is that the update will perform an implicit select using the where clause and if that returns 0 then the insert will take place. The alternative to doing it this way would be to do a select and then based on the number of rows returned either do an update or insert. This I considered inefficient because if you are to do an update it will cause 2 selects (the first explicit select call and the second implicit in the where of the update). If the proc where to do an insert then there'd be no difference in efficiency. Is my logic sound here? Is this how you would combine an insert and update into a stored proc?
sql-server
storedprocedures
null
null
null
null
open
Insert Update stored proc on SQL Server === I've written a stored proc that will do an update if a record exists otherwise it will do an insert. It looks something like this: update myTable set Col1=@col1, Col2=@col2 where ID=@ID if @@rowcount = 0 insert into myTable (Col1, Col2) values (@col1, @col2) My logic behind writing it in this way is that the update will perform an implicit select using the where clause and if that returns 0 then the insert will take place. The alternative to doing it this way would be to do a select and then based on the number of rows returned either do an update or insert. This I considered inefficient because if you are to do an update it will cause 2 selects (the first explicit select call and the second implicit in the where of the update). If the proc where to do an insert then there'd be no difference in efficiency. Is my logic sound here? Is this how you would combine an insert and update into a stored proc?
0
13,545
08/17/2008 07:00:25
1,463
08/15/2008 17:26:44
10
7
.NET 3.5 SP1 and aspnet_client Crystal Reports
I recently (a few days ago) installed .NET 3.5 SP1 and subsequently an aspnet_client folder with a bunch of Crystal Reports support code has been injected into my .net web apps. Anybody else experienced this? Am I correct in saying that this is a side effect of SP1? What is this?
asp.net
crystalreports11
null
null
null
null
open
.NET 3.5 SP1 and aspnet_client Crystal Reports === I recently (a few days ago) installed .NET 3.5 SP1 and subsequently an aspnet_client folder with a bunch of Crystal Reports support code has been injected into my .net web apps. Anybody else experienced this? Am I correct in saying that this is a side effect of SP1? What is this?
0
13,550
08/17/2008 07:08:41
1,130,097
08/16/2008 14:58:30
26
4
CASE tools
I was using a CASE called [MAGIC][1] for a system I'm developing, I've never used this kind of tool before and at first sight I liked, a month later I had a lot of the application generated, I felt very productive and ... I would say ... satisfied. In some way a felt uncomfortable, cause, there is no code and everything I was used to, but in the other hand I could speed up my developing. The fact is that eventually I returned to use C# because I find it more flexible to develop, I can make unit testing, use CVS, I have access to more resources and basically I had "all the control". I felt that this tool didn't give me confidence and I thought that later in the project I could not manage it due to its forced established rules of development. And also a lot of things like sending emails, using my own controls, and other things had their complication, it seemed that at some point it was not going to be as easy as initially I thought and as initially the product claims. This reminds me a very nice article called "[No Silver Bullet][2]". This CASE had its advantages but on the other hand it doesn't have resources you can consult and actually the license and certification are very expensive. For me another dissapointing thing is that because of its simplistic approach for development I felt scared on first hand cause of my unexperience on these kind of tools and second cause I thought that if I continued using it maybe it would have turned to be a complex monster that I could not manage later in the project. I think its good to use these kind of solutions to speed up things but I wonder, why aren't these programs as popular as VS.Net, J2EE, Ruby, Python, etc. if they claim to enhace productivity better than the tools I've pointed? [1]: http://www.magicsoftware.com/ [2]: http://www.virtualschool.edu/mon/SoftwareEngineering/BrooksNoSilverBullet.html
computer
aided
software
engineering
null
null
open
CASE tools === I was using a CASE called [MAGIC][1] for a system I'm developing, I've never used this kind of tool before and at first sight I liked, a month later I had a lot of the application generated, I felt very productive and ... I would say ... satisfied. In some way a felt uncomfortable, cause, there is no code and everything I was used to, but in the other hand I could speed up my developing. The fact is that eventually I returned to use C# because I find it more flexible to develop, I can make unit testing, use CVS, I have access to more resources and basically I had "all the control". I felt that this tool didn't give me confidence and I thought that later in the project I could not manage it due to its forced established rules of development. And also a lot of things like sending emails, using my own controls, and other things had their complication, it seemed that at some point it was not going to be as easy as initially I thought and as initially the product claims. This reminds me a very nice article called "[No Silver Bullet][2]". This CASE had its advantages but on the other hand it doesn't have resources you can consult and actually the license and certification are very expensive. For me another dissapointing thing is that because of its simplistic approach for development I felt scared on first hand cause of my unexperience on these kind of tools and second cause I thought that if I continued using it maybe it would have turned to be a complex monster that I could not manage later in the project. I think its good to use these kind of solutions to speed up things but I wonder, why aren't these programs as popular as VS.Net, J2EE, Ruby, Python, etc. if they claim to enhace productivity better than the tools I've pointed? [1]: http://www.magicsoftware.com/ [2]: http://www.virtualschool.edu/mon/SoftwareEngineering/BrooksNoSilverBullet.html
0
13,561
08/17/2008 08:25:46
481
08/06/2008 08:40:41
41
6
user controls and asp.net mvc
Here is one trivial question, but I am not sure how to handle that. I need to display list of categories on every page, and to be able to choose items from specific category to be displayed. I use asp.net mvc, and chosen to create user control that will display categories. My question is: What is the best approach to pass data to user control. I already found some blog posts [http://weblogs.asp.net/stephenwalther/archive/2008/08/12/asp-net-mvc-tip-31-passing-data-to-master-pages-and-user-controls.aspx][1] [http://blog.matthidinger.com/2008/02/21/ASPNETMVCUserControlsStartToFinish.aspx][2] I would like also to hear your opinion. PS. I'd like to hear Jeff's opinion, especially because of his experience with UC's on Stackoverflow [1]: http://weblogs.asp.net/stephenwalther/archive/2008/08/12/asp-net-mvc-tip-31-passing-data-to-master-pages-and-user-controls.aspx [2]: http://blog.matthidinger.com/2008/02/21/ASPNETMVCUserControlsStartToFinish.aspx
asp.net-mvc
usercontrols
null
null
null
null
open
user controls and asp.net mvc === Here is one trivial question, but I am not sure how to handle that. I need to display list of categories on every page, and to be able to choose items from specific category to be displayed. I use asp.net mvc, and chosen to create user control that will display categories. My question is: What is the best approach to pass data to user control. I already found some blog posts [http://weblogs.asp.net/stephenwalther/archive/2008/08/12/asp-net-mvc-tip-31-passing-data-to-master-pages-and-user-controls.aspx][1] [http://blog.matthidinger.com/2008/02/21/ASPNETMVCUserControlsStartToFinish.aspx][2] I would like also to hear your opinion. PS. I'd like to hear Jeff's opinion, especially because of his experience with UC's on Stackoverflow [1]: http://weblogs.asp.net/stephenwalther/archive/2008/08/12/asp-net-mvc-tip-31-passing-data-to-master-pages-and-user-controls.aspx [2]: http://blog.matthidinger.com/2008/02/21/ASPNETMVCUserControlsStartToFinish.aspx
0
13,569
08/17/2008 09:47:22
137
08/02/2008 10:46:12
1,138
84
mysqli or PDO - what are the pros and cons?
In our place we're split between using mysqli and PDO for stuff like prepared statements and transaction support. Some projects use one, some the other. There is little realistic likelihood of us ever moving to another RDBMS. I prefer PDO for the single reason that it allows named parameters for prepared statements, and as far as I am aware mysqli does not. Are there any other pros and cons to choosing one over the other as a standard as we consolidate our projects to use just one approach?
php
pdo
mysqli
database-abstraction
null
null
open
mysqli or PDO - what are the pros and cons? === In our place we're split between using mysqli and PDO for stuff like prepared statements and transaction support. Some projects use one, some the other. There is little realistic likelihood of us ever moving to another RDBMS. I prefer PDO for the single reason that it allows named parameters for prepared statements, and as far as I am aware mysqli does not. Are there any other pros and cons to choosing one over the other as a standard as we consolidate our projects to use just one approach?
0
13,578
08/17/2008 10:22:25
1,596
08/17/2008 09:24:01
1
0
Determining how long the user is logged on to Windows
The need arose, in our product, to determine how long the current user has been logged on to Windows (specifically, Vista). It seems there is no straight forward API function for this and I couldn't find anything relevant with WMI (although I'm no expert with WMI, so I might have missed something). Any ideas?
windows
null
null
null
null
null
open
Determining how long the user is logged on to Windows === The need arose, in our product, to determine how long the current user has been logged on to Windows (specifically, Vista). It seems there is no straight forward API function for this and I couldn't find anything relevant with WMI (although I'm no expert with WMI, so I might have missed something). Any ideas?
0
13,586
08/17/2008 11:12:51
1,344
08/14/2008 16:03:00
335
29
Interpreted languages - leveraging the compiled language behind the interpreter
If there are any language designers out there (or people simply in the know), I'm curious about the methodology behind creating standard libraries for interpreted languages. Specifically, what seems to be the best approach? Defining standard functions/methods in the interpreted language, or performing the processing of those calls in the compiled language in which the interpreter is written? What got me to thinking about this was the SO question about a stripslashes()-like function in Python. My first thought was "why not define your own and just call it when you need it", but it raised the question: is it preferable, for such a function, to let the interpreted language handle that overhead, or would it be better to write an extension and leverage the compiled language behind the interpreter?
language-agnostic
performance
language-features
interpreted
null
null
open
Interpreted languages - leveraging the compiled language behind the interpreter === If there are any language designers out there (or people simply in the know), I'm curious about the methodology behind creating standard libraries for interpreted languages. Specifically, what seems to be the best approach? Defining standard functions/methods in the interpreted language, or performing the processing of those calls in the compiled language in which the interpreter is written? What got me to thinking about this was the SO question about a stripslashes()-like function in Python. My first thought was "why not define your own and just call it when you need it", but it raised the question: is it preferable, for such a function, to let the interpreted language handle that overhead, or would it be better to write an extension and leverage the compiled language behind the interpreter?
0
13,589
08/17/2008 11:40:38
91
08/01/2008 17:55:22
4,820
257
ASP.net AJAX Drag/Drop?
I wonder if someone knows if there is a pre-made solution for this: I have a List on an ASP.net Website, and I want that the User is able to re-sort the list through Drag and Drop. Additionally, I would love to have a second list to which the user can drag items from the first list onto. So far, I found two solutions: * The ReorderList from the [Ajax Control Toolkit][1], which requires a bit of manual work to make sure changes [are persisted][2] into the database, and that does not support drag/drop between lists. * The [RadGrid][3] from Telerik which does all I want, but is priced far far beyond my Budget. Does anyone else have some ideas or at least some keywords/pointers to do further investigation on? Espectially the Drag/Drop between two lists is something I am rather clueless about how to do that in ASP.net. Target Framework is 3.0 by the way. [1]: http://www.codeplex.com/AjaxControlToolkit [2]: http://www.codeproject.com/KB/ajax/PersistentReorderList.aspx [3]: http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Programming/DragAndDrop/DefaultCS.aspx
asp.net
ajax
null
null
null
null
open
ASP.net AJAX Drag/Drop? === I wonder if someone knows if there is a pre-made solution for this: I have a List on an ASP.net Website, and I want that the User is able to re-sort the list through Drag and Drop. Additionally, I would love to have a second list to which the user can drag items from the first list onto. So far, I found two solutions: * The ReorderList from the [Ajax Control Toolkit][1], which requires a bit of manual work to make sure changes [are persisted][2] into the database, and that does not support drag/drop between lists. * The [RadGrid][3] from Telerik which does all I want, but is priced far far beyond my Budget. Does anyone else have some ideas or at least some keywords/pointers to do further investigation on? Espectially the Drag/Drop between two lists is something I am rather clueless about how to do that in ASP.net. Target Framework is 3.0 by the way. [1]: http://www.codeplex.com/AjaxControlToolkit [2]: http://www.codeproject.com/KB/ajax/PersistentReorderList.aspx [3]: http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Programming/DragAndDrop/DefaultCS.aspx
0
13,594
08/17/2008 12:02:23
1,536
08/16/2008 13:15:45
18
4
HTML differences between browsers
Do you know of any differences in handling HTML tags/properties in different browsers? For example, I once saw a page with a input tag with a maxlength field set to "2o". Firefox and Opera ignore the "o", and set the max length to 2, while Internet Explorer ignores the field altogether. Do you know of any more? (Note: seeing as this will probably be a list, it would be great if the general name of the difference was in bold text, like: **Different erratic value handling in tag properties**)
html
browsers
null
null
null
null
open
HTML differences between browsers === Do you know of any differences in handling HTML tags/properties in different browsers? For example, I once saw a page with a input tag with a maxlength field set to "2o". Firefox and Opera ignore the "o", and set the max length to 2, while Internet Explorer ignores the field altogether. Do you know of any more? (Note: seeing as this will probably be a list, it would be great if the general name of the difference was in bold text, like: **Different erratic value handling in tag properties**)
0
13,599
08/17/2008 12:24:21
1,154
08/12/2008 23:39:07
159
28
Convert Enums to Human Readable Value C#
anyone know how to transform a enum value to a Human readable value. Sample: ThisIsValueA to "This is Value A".
c#
null
null
null
null
null
open
Convert Enums to Human Readable Value C# === anyone know how to transform a enum value to a Human readable value. Sample: ThisIsValueA to "This is Value A".
0
13,607
08/17/2008 12:50:15
3,180
08/27/2008 09:02:55
1
1
GUI development resources?
Could someone recommend any good resources for creating Graphics User Interfaces, preferably in C/C++? Currently my biggest influence is [3DBuzz.com][1]'s [C++/OpenGL VTMs][2] (Video Training Modules). While they are very good, they cover a large area of graphics programming, so only skim the surface of GUI programming. This question does relate to "[How do I make a GUI?][3]", where there is also a rough outline of my current structure. Any response would be appreciated. thing2k [1]: http://www.3dbuzz.com [2]: http://www.3dbuzz.com/xcart/product.php?productid=30&cat=12&page=1 [3]: http://stackoverflow.com/questions/7489/how-do-i-make-a-gui
gui
c++
null
null
null
null
open
GUI development resources? === Could someone recommend any good resources for creating Graphics User Interfaces, preferably in C/C++? Currently my biggest influence is [3DBuzz.com][1]'s [C++/OpenGL VTMs][2] (Video Training Modules). While they are very good, they cover a large area of graphics programming, so only skim the surface of GUI programming. This question does relate to "[How do I make a GUI?][3]", where there is also a rough outline of my current structure. Any response would be appreciated. thing2k [1]: http://www.3dbuzz.com [2]: http://www.3dbuzz.com/xcart/product.php?productid=30&cat=12&page=1 [3]: http://stackoverflow.com/questions/7489/how-do-i-make-a-gui
0
13,615
08/17/2008 13:14:42
1,154
08/12/2008 23:39:07
159
28
Validate Enum Values
I need to validate a integer to know if is a enum value, best way?
c#
null
null
null
null
null
open
Validate Enum Values === I need to validate a integer to know if is a enum value, best way?
0
13,620
08/17/2008 13:19:32
314
08/04/2008 15:25:23
90
5
Speed difference in using inline strings vs concatenation in php5?
(assume php5) consider <?php $foo = 'some words'; //case 1 print "these are $foo"; //case 2 print "these are {$foo}"; //case 3 print 'these are ' . $foo; Is there much of a difference between 1 and 2? If not, what about between 1/2 and 3?
php
optimization
performance
null
null
null
open
Speed difference in using inline strings vs concatenation in php5? === (assume php5) consider <?php $foo = 'some words'; //case 1 print "these are $foo"; //case 2 print "these are {$foo}"; //case 3 print 'these are ' . $foo; Is there much of a difference between 1 and 2? If not, what about between 1/2 and 3?
0
13,647
08/17/2008 14:16:50
33
08/01/2008 12:32:10
292
26
Is there and Easy way to convert C# classes to PHP
I am used to writing c# windows application however I have some free hosted PHP web space that I would like to make use of. I have a basic understanding of PHP but have never used it's OO capabilities. Is there an easy way to convert c# classes to PHP classes or is just not possible to write a fully OO application in PHP?
php
c#
null
null
null
null
open
Is there and Easy way to convert C# classes to PHP === I am used to writing c# windows application however I have some free hosted PHP web space that I would like to make use of. I have a basic understanding of PHP but have never used it's OO capabilities. Is there an easy way to convert c# classes to PHP classes or is just not possible to write a fully OO application in PHP?
0
13,655
08/17/2008 14:48:00
1,144
08/12/2008 19:00:54
37
6
C# .NET listing contents of remote files
Is it possible in .NET to list files on a remote location like an URL? Much in the same way the System.IO classes work. All I need is the URLs to images that are on a remote server.
.net
null
null
null
null
null
open
C# .NET listing contents of remote files === Is it possible in .NET to list files on a remote location like an URL? Much in the same way the System.IO classes work. All I need is the URLs to images that are on a remote server.
0
13,678
08/17/2008 15:39:57
1,615
08/17/2008 15:19:59
1
0
Textual versus Graphical Programming Languages
I am part of a high school robotics team, and there is some debate about which language to use to program our robot. We are choosing between C (or maybe C++) and LabVIEW. There are pros for each language. C(++): - Widely used - Good preparation for the future (most programming positions require text-based programmers.) - We can expand upon our C codebase from last year - Allows us to better understand what our robot is doing. LabVIEW - Easier to visualize program flow (blocks and wires, instead of lines of code) - Easier to teach (Supposedly...) - "The future of programming is graphical." (Think so?) - Closer to the Robolab background that some new members may have. - Don't need to intimately know what's going on. Simply tell the module to find the red ball, don't need to know how. This is a very difficult decision for us, and we've been debating for a while. Based on those pros for each language, and on the experience you've got, **what do you think the better option is?** Keep in mind that we aren't necessarily going for pure efficiency. We also hope to prepare our programmers for a future in programming. Also: - **Do you think that graphical languages such as LabVEIW are the future of programming?** - **Is a graphical language easier to learn than a textual language?** I think that they should be about equally challenging to learn. - Seeing as we are partailly rooted in helping people learn, **how much should we rely on prewritten modules, and how much should we try to write on our own?** ("Good programmers write good code, great programmers copy great code." But isn't it worth being a good programmer, first?) Thanks for the advice!
graphicallanguage
labview
robotics
highschool
null
null
open
Textual versus Graphical Programming Languages === I am part of a high school robotics team, and there is some debate about which language to use to program our robot. We are choosing between C (or maybe C++) and LabVIEW. There are pros for each language. C(++): - Widely used - Good preparation for the future (most programming positions require text-based programmers.) - We can expand upon our C codebase from last year - Allows us to better understand what our robot is doing. LabVIEW - Easier to visualize program flow (blocks and wires, instead of lines of code) - Easier to teach (Supposedly...) - "The future of programming is graphical." (Think so?) - Closer to the Robolab background that some new members may have. - Don't need to intimately know what's going on. Simply tell the module to find the red ball, don't need to know how. This is a very difficult decision for us, and we've been debating for a while. Based on those pros for each language, and on the experience you've got, **what do you think the better option is?** Keep in mind that we aren't necessarily going for pure efficiency. We also hope to prepare our programmers for a future in programming. Also: - **Do you think that graphical languages such as LabVEIW are the future of programming?** - **Is a graphical language easier to learn than a textual language?** I think that they should be about equally challenging to learn. - Seeing as we are partailly rooted in helping people learn, **how much should we rely on prewritten modules, and how much should we try to write on our own?** ("Good programmers write good code, great programmers copy great code." But isn't it worth being a good programmer, first?) Thanks for the advice!
0
13,698
08/17/2008 16:06:03
1,622
08/17/2008 16:06:03
1
0
php Zend / MVC without mod_rewrite
I've seen it mentioned in many blogs around the net, but I believe it shoud be discussed here. What can we do when we have an MVC framework (I am interested in ZEND) in PHP but our host does not provide mod_rewrite? Are there any "short-cuts"? Can we transfer control in any way (so that a mapping may occur between pages)? Any ideas? Thank you :-)
php
mvc
zend
null
null
null
open
php Zend / MVC without mod_rewrite === I've seen it mentioned in many blogs around the net, but I believe it shoud be discussed here. What can we do when we have an MVC framework (I am interested in ZEND) in PHP but our host does not provide mod_rewrite? Are there any "short-cuts"? Can we transfer control in any way (so that a mapping may occur between pages)? Any ideas? Thank you :-)
0
13,699
08/17/2008 16:12:14
381
08/05/2008 10:39:26
806
15
choosing a c++ unit testing tool/framework
Could you recommend a testing tool/framework to use for testing C++ code in a UNIX environment ?
c++
unittesting
framework
recommendation
null
null
open
choosing a c++ unit testing tool/framework === Could you recommend a testing tool/framework to use for testing C++ code in a UNIX environment ?
0
13,704
08/17/2008 16:18:54
90
08/01/2008 17:44:12
422
26
Suggestions for Migrating from ASP.NET WebForms to ASP.NET MVC?
ASP.NET MVC has been [discussed](http://stackoverflow.com/questions/tagged/mvc) on this forum a few times. I'm about to do a large **migration** of several websites from classic ASP/ASP.NET WebForms to ASP.NET MVC and was wondering what kind of advice those of you with experience in both technologies have. What I have: a typical ASP.NET app with heavily coupled presentation/business logic, all sorts of messy ASP.NET-generated Javascript cruft, and so forth. What I want: clean ASP.NET MVC-generated agnostic markup. 'Nuff said. Any pointers, tips, tricks, or gotchas to be aware of? Thanks!
.net
asp.net
asp.net-mvc
webform
null
null
open
Suggestions for Migrating from ASP.NET WebForms to ASP.NET MVC? === ASP.NET MVC has been [discussed](http://stackoverflow.com/questions/tagged/mvc) on this forum a few times. I'm about to do a large **migration** of several websites from classic ASP/ASP.NET WebForms to ASP.NET MVC and was wondering what kind of advice those of you with experience in both technologies have. What I have: a typical ASP.NET app with heavily coupled presentation/business logic, all sorts of messy ASP.NET-generated Javascript cruft, and so forth. What I want: clean ASP.NET MVC-generated agnostic markup. 'Nuff said. Any pointers, tips, tricks, or gotchas to be aware of? Thanks!
0
13,708
08/17/2008 16:35:15
1,542
08/16/2008 14:03:34
11
3
Resources on wordpress theme-development
What are the best resources for Wordpress theme-development? I am currently in the phase of starting my own blog, and don't want to use one of the many free themes. I already have a theme for my website, so I want to read about best-practices. Any advice on how to get started would be very welcome :)
design
wordpress
themes
null
null
null
open
Resources on wordpress theme-development === What are the best resources for Wordpress theme-development? I am currently in the phase of starting my own blog, and don't want to use one of the many free themes. I already have a theme for my website, so I want to read about best-practices. Any advice on how to get started would be very welcome :)
0
13,718
08/17/2008 16:54:57
1,013
08/11/2008 13:24:18
41
2
How to schedule a batch process in asp.net
I want to run a weekly batch process in an asp.net page. How can that be done? Thanks
asp.net
null
null
null
null
null
open
How to schedule a batch process in asp.net === I want to run a weekly batch process in an asp.net page. How can that be done? Thanks
0
13,725
08/17/2008 17:01:45
1,043
08/11/2008 18:08:32
320
33
In Cocoa do you prefer NSInteger or just regular int, and why?
I think the title says it all :) I'm new to Cocoa and while the purpose of many objects is obvious, others are not. For example NSInteger/NSUInteger/NSFloat/NSDouble are all replacements for the regular builtin types. Is there any benefit to using the NS* types over the builtins? Which do you prefer and why? Are NSInteger and int the same width on 32-bit / 64-bit platforms? Thanks!
objectivec
cocoa
null
null
null
null
open
In Cocoa do you prefer NSInteger or just regular int, and why? === I think the title says it all :) I'm new to Cocoa and while the purpose of many objects is obvious, others are not. For example NSInteger/NSUInteger/NSFloat/NSDouble are all replacements for the regular builtin types. Is there any benefit to using the NS* types over the builtins? Which do you prefer and why? Are NSInteger and int the same width on 32-bit / 64-bit platforms? Thanks!
0
13,745
08/17/2008 17:22:26
1,629
08/17/2008 17:00:03
1
1
Resharper and TortoiseSVN
Is there any good way to deal with the class renaming refactor from Resharper when the file is under source control and TortoiseSVN is the client. I have am trying VisualSVN right now but I haven't had the need to rename anything recently. I don't want to change our repository just to try this out. Also not sure if this feature alone is worth the cost of VisualSVN.
tortoisesvn
resharper
null
null
null
null
open
Resharper and TortoiseSVN === Is there any good way to deal with the class renaming refactor from Resharper when the file is under source control and TortoiseSVN is the client. I have am trying VisualSVN right now but I haven't had the need to rename anything recently. I don't want to change our repository just to try this out. Also not sure if this feature alone is worth the cost of VisualSVN.
0
13,753
08/17/2008 17:33:54
1,635
08/17/2008 17:33:54
1
0
System.DirectoryServices.ResultPropertyCollection
I'm missing something here: $objSearcher = New-Object System.DirectoryServices.DirectorySearcher $objSearcher.SearchRoot = New-Object System.DirectoryServices.DirectoryEntry $objSearcher.Filter = ("(objectclass=computer)") $computers = $objSearcher.findall() So the question is why do the two following outputs differ? $computers | %{ "Server name in quotes $_.properties.name" "Server name not in quotes " + $_.properties.name } PS> $computers[0] | %{"$_.properties.name"; $_.properties.name} System.DirectoryServices.SearchResult.properties.name GORILLA
powershell
activedirectory
null
null
null
null
open
System.DirectoryServices.ResultPropertyCollection === I'm missing something here: $objSearcher = New-Object System.DirectoryServices.DirectorySearcher $objSearcher.SearchRoot = New-Object System.DirectoryServices.DirectoryEntry $objSearcher.Filter = ("(objectclass=computer)") $computers = $objSearcher.findall() So the question is why do the two following outputs differ? $computers | %{ "Server name in quotes $_.properties.name" "Server name not in quotes " + $_.properties.name } PS> $computers[0] | %{"$_.properties.name"; $_.properties.name} System.DirectoryServices.SearchResult.properties.name GORILLA
0
13,763
08/17/2008 17:48:04
184
08/03/2008 05:34:19
288
4
Ho wdo I remove a child node in HTML using JavaScript?
Is there some function like: `document.getElementById("FirstDiv").clear()` ?
javascript
html
null
null
null
null
open
Ho wdo I remove a child node in HTML using JavaScript? === Is there some function like: `document.getElementById("FirstDiv").clear()` ?
0
13,765
08/17/2008 17:50:57
1,358
08/14/2008 18:01:36
1
2
Open Source C# Opportunities
I will soon be looking for new employment opportunities. I have traditionally been classified as a Desktop Admin, but I'm really more of an IT Swiss Army Knife. I am currently on an admin team, but I get asked to do the development type things for the team. I have experience in C#/C++/C/Per/...ad nauseum, but none of it is on a formal development team working on a formal project. To rectify this perceived hole in my resume, I would like to get involved in a well run open source project that I could work on in the evenings. Does anyone know of a website where I might be able to find such a project? Or does anyone have one to recommend. I know that I could go to some of the sites like sourceforge to find projects, but I have a hard time determining which projects are actively seeking help and which are merely someone's hobby project that they want to develop themselves. I guess what I'm looking for is a sort of open source "classifieds" page. Thanks for any suggestions.
c#
opensource
null
null
null
null
open
Open Source C# Opportunities === I will soon be looking for new employment opportunities. I have traditionally been classified as a Desktop Admin, but I'm really more of an IT Swiss Army Knife. I am currently on an admin team, but I get asked to do the development type things for the team. I have experience in C#/C++/C/Per/...ad nauseum, but none of it is on a formal development team working on a formal project. To rectify this perceived hole in my resume, I would like to get involved in a well run open source project that I could work on in the evenings. Does anyone know of a website where I might be able to find such a project? Or does anyone have one to recommend. I know that I could go to some of the sites like sourceforge to find projects, but I have a hard time determining which projects are actively seeking help and which are merely someone's hobby project that they want to develop themselves. I guess what I'm looking for is a sort of open source "classifieds" page. Thanks for any suggestions.
0