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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
46,930 | 09/05/2008 21:29:34 | 4,794 | 09/05/2008 16:11:30 | 41 | 4 | Reference material for LabVIEW | I'm supposed to learn how to use [LabVIEW][1] for my new job, and I'm wondering if anybody can recommend some good books or reference/tutorial web sites.
I'm a senior developer with lots of Java/C#/C++ experience.
I realize that this question is perhaps more vague than is intended on stack overflow, so how about this? Please answer with one book or web site and a brief description. Then people can vote up their favourites.
[1]:http://www.ni.com/labview/ | tutorials | labview | null | null | null | null | open | Reference material for LabVIEW
===
I'm supposed to learn how to use [LabVIEW][1] for my new job, and I'm wondering if anybody can recommend some good books or reference/tutorial web sites.
I'm a senior developer with lots of Java/C#/C++ experience.
I realize that this question is perhaps more vague than is intended on stack overflow, so how about this? Please answer with one book or web site and a brief description. Then people can vote up their favourites.
[1]:http://www.ni.com/labview/ | 0 |
46,938 | 09/05/2008 21:33:48 | 1,463 | 08/15/2008 17:26:44 | 434 | 33 | How do you convert an aspx or master page file to page and code behind? | I have a project where a .master page was created without a code behind page. Now I want to add a code behind page for this .master page and move the "in page" code to the code behind file. What is the best/easiest way to go about doing this? I'm using Visual Studio 2008. | vs2008 | null | null | null | null | null | open | How do you convert an aspx or master page file to page and code behind?
===
I have a project where a .master page was created without a code behind page. Now I want to add a code behind page for this .master page and move the "in page" code to the code behind file. What is the best/easiest way to go about doing this? I'm using Visual Studio 2008. | 0 |
46,960 | 09/05/2008 21:46:57 | 829 | 08/09/2008 06:18:18 | 25 | 3 | What your favorite desk for a developer's home office? | I'd like to know what you think the best desk for a developer is. Size and price aren't a huge factor.
I recently started working from home and am in need of a new desk solution. I already got my HM Mirra (sooooo yummy!), but wanted to trade up my CostCo folding table for something better. I'm thinking [adjustable][1], but am open to all suggestions.
(That particular link is just for the base, I was going to get a surface at HomeDespot).
[1]: http://tinyurl.com/56xelg | desk | homeoffice | workfromhome | null | null | 10/24/2011 14:15:29 | not constructive | What your favorite desk for a developer's home office?
===
I'd like to know what you think the best desk for a developer is. Size and price aren't a huge factor.
I recently started working from home and am in need of a new desk solution. I already got my HM Mirra (sooooo yummy!), but wanted to trade up my CostCo folding table for something better. I'm thinking [adjustable][1], but am open to all suggestions.
(That particular link is just for the base, I was going to get a surface at HomeDespot).
[1]: http://tinyurl.com/56xelg | 4 |
46,981 | 09/05/2008 22:04:39 | 580 | 08/06/2008 22:30:28 | 1,227 | 93 | Silverlight DataBinding cross thread issue |
I have an Image control with it's source bound to a property on an object(string url to an image). After making a service call, i update the data object with a new URL. The exception is thrown after it leaves my code, after invoking the PropertyChanged event.
The data structure and the service logic are all done in a core dll that has no knowledge of the UI. How do I sync up with the UI thread when i cant access a Dispatcher?
PS: Accessing Application.Current.RootVisual in order to get at a Dispatcher is not a solution because the root visual is on a different thread(causing the exact exception i need to prevent).
PPS: This only is a problem with the image control, binding to any other ui element, the cross thread issue is handled for you. | silverlight | data-binding | null | null | null | null | open | Silverlight DataBinding cross thread issue
===
I have an Image control with it's source bound to a property on an object(string url to an image). After making a service call, i update the data object with a new URL. The exception is thrown after it leaves my code, after invoking the PropertyChanged event.
The data structure and the service logic are all done in a core dll that has no knowledge of the UI. How do I sync up with the UI thread when i cant access a Dispatcher?
PS: Accessing Application.Current.RootVisual in order to get at a Dispatcher is not a solution because the root visual is on a different thread(causing the exact exception i need to prevent).
PPS: This only is a problem with the image control, binding to any other ui element, the cross thread issue is handled for you. | 0 |
46,982 | 09/05/2008 22:04:39 | 2,649 | 08/23/2008 22:57:29 | 26 | 3 | Javascript and CSS parsing performance | I am trying to improve the performance of a web application. I have metrics that I can use to optimise the time taken to return the main HTML page, but I'm concerned about the external CSS and Javascript files that are included from these HTML pages. These are served statically, with HTTP Expires headers, but are shared between all the pages of the application.
I'm concerned that the browser has to parse these CSS and Javascript files for each page that is displayed and so having all the CSS and Javascript for the site shared into common files will negatively affect performance. Should I be trying to split out these files so I link from each page to only the CSS and Javascript needed for that page, or would I get little return for my efforts?
Are there any tools that could help me generate metrics for this? | javascript | css | performance | null | null | null | open | Javascript and CSS parsing performance
===
I am trying to improve the performance of a web application. I have metrics that I can use to optimise the time taken to return the main HTML page, but I'm concerned about the external CSS and Javascript files that are included from these HTML pages. These are served statically, with HTTP Expires headers, but are shared between all the pages of the application.
I'm concerned that the browser has to parse these CSS and Javascript files for each page that is displayed and so having all the CSS and Javascript for the site shared into common files will negatively affect performance. Should I be trying to split out these files so I link from each page to only the CSS and Javascript needed for that page, or would I get little return for my efforts?
Are there any tools that could help me generate metrics for this? | 0 |
46,987 | 09/05/2008 22:12:32 | 255 | 08/04/2008 05:46:02 | 539 | 18 | Rotate Windows XP Desktop | My LCD rotates. The software that comes with my ATI card to rotate the desktop just crashes. Is there any other way to rotate a Windows XP Desktop by 90 degree increments? I am looking for either software or code (any language is fine.) I know I have seen this before, but I can't find it now.
I realize this may not be a strictly software development related question, but it is programmer productivity related. If I can get an answer that involves how to write a program to do this, even better!
Thanks! | productivity | desktop | monitor | windows-xp | null | null | open | Rotate Windows XP Desktop
===
My LCD rotates. The software that comes with my ATI card to rotate the desktop just crashes. Is there any other way to rotate a Windows XP Desktop by 90 degree increments? I am looking for either software or code (any language is fine.) I know I have seen this before, but I can't find it now.
I realize this may not be a strictly software development related question, but it is programmer productivity related. If I can get an answer that involves how to write a program to do this, even better!
Thanks! | 0 |
47,005 | 09/05/2008 22:32:26 | 4,563 | 09/04/2008 18:02:58 | 11 | 3 | MySQL UTF/Unicode migration tips | Does anyone have any tips or gotcha moments to look out for when trying to migrate MySQL tables from the the default case-insenstive swedish or ascii charsets to utf-8? Some of the projects that I'm involved in are striving for better internationalization and the database is going to be a significant part of this change.
Before we look to alter the database, we are going to convert each site to use UTF-8 character encoding (from least critical to most) to help ensure all input/output is using the same character set.
Thanks for any help | mysql | unicode | utf8 | internationalization | null | null | open | MySQL UTF/Unicode migration tips
===
Does anyone have any tips or gotcha moments to look out for when trying to migrate MySQL tables from the the default case-insenstive swedish or ascii charsets to utf-8? Some of the projects that I'm involved in are striving for better internationalization and the database is going to be a significant part of this change.
Before we look to alter the database, we are going to convert each site to use UTF-8 character encoding (from least critical to most) to help ensure all input/output is using the same character set.
Thanks for any help | 0 |
47,007 | 09/05/2008 22:36:02 | 2,102 | 08/20/2008 11:37:35 | 164 | 19 | Determining the last changelist synced to in Perforce | A question that occasionally arises is what is the best way to determine the changelist that you last synced to in Perforce. This is often needed for things like injecting the changelist number into the revision info by the automatic build system.
| perforce | null | null | null | null | null | open | Determining the last changelist synced to in Perforce
===
A question that occasionally arises is what is the best way to determine the changelist that you last synced to in Perforce. This is often needed for things like injecting the changelist number into the revision info by the automatic build system.
| 0 |
47,009 | 09/05/2008 22:37:23 | 327 | 08/04/2008 17:08:49 | 643 | 43 | What languages support covariance on inherited methods' return types? | I discovered that the cause of my problems (see [question][1]) was the lack of support in C# for covariance on inherited methods' return types. Now I'm curious what languages support this feature. Accepted answer will be whoever can name the most.
[1]: http://stackoverflow.com/questions/46933/why-doesnt-inheritance-work-the-way-i-think-it-should-work | oop | c# | java | programming-languages | null | null | open | What languages support covariance on inherited methods' return types?
===
I discovered that the cause of my problems (see [question][1]) was the lack of support in C# for covariance on inherited methods' return types. Now I'm curious what languages support this feature. Accepted answer will be whoever can name the most.
[1]: http://stackoverflow.com/questions/46933/why-doesnt-inheritance-work-the-way-i-think-it-should-work | 0 |
47,022 | 09/05/2008 22:47:46 | 1,412 | 08/15/2008 15:05:57 | 591 | 39 | "Phantom" directories in an SVN repository | I've somehow managed to get an SVN repository into a bad state. I've moved a directory and now I can't commit it in its new location.
As far as `svn status` is concerned, the directory is unknown (the name of the directory is `type`).
<pre>
$ svn status
? type
</pre>
When I try to add the directory, the server says it already exists.
<pre>
$ svn add type
svn: warning: 'type' is already under version control
</pre>
If I try to update the directory, it's gone again.
<pre>
$ svn update type
svn: '.' is not under version control
</pre>
If I try to commit it, the server complains that it's old parent directory no longer exists.
<pre>
$ svn commit type -m "Moving type"
svn: Commit failed (details follow):
svn: '/prior/trunk/src/nyu/prior/cvc3/theorem_prover/expression' path not found
</pre>
To add to the mystery, the contents of the directory are marked as modified.
<pre>
$ svn status type
A + type
M + type/IntegerType.java
M + type/BooleanType.java
M + type/Type.java
M + type/RationalRangeType.java
M + type/RationalType.java
M + type/IntegerRangeType.java
</pre>
If I try to update from within the directory, I get this.
<pre>
$ cd type
$ svn update
svn: Two top-level reports with no target
</pre>
Committing from within the directory gives the same `path not found` error as above.
What's going on and how do I fix it? | svn | null | null | null | null | null | open | "Phantom" directories in an SVN repository
===
I've somehow managed to get an SVN repository into a bad state. I've moved a directory and now I can't commit it in its new location.
As far as `svn status` is concerned, the directory is unknown (the name of the directory is `type`).
<pre>
$ svn status
? type
</pre>
When I try to add the directory, the server says it already exists.
<pre>
$ svn add type
svn: warning: 'type' is already under version control
</pre>
If I try to update the directory, it's gone again.
<pre>
$ svn update type
svn: '.' is not under version control
</pre>
If I try to commit it, the server complains that it's old parent directory no longer exists.
<pre>
$ svn commit type -m "Moving type"
svn: Commit failed (details follow):
svn: '/prior/trunk/src/nyu/prior/cvc3/theorem_prover/expression' path not found
</pre>
To add to the mystery, the contents of the directory are marked as modified.
<pre>
$ svn status type
A + type
M + type/IntegerType.java
M + type/BooleanType.java
M + type/Type.java
M + type/RationalRangeType.java
M + type/RationalType.java
M + type/IntegerRangeType.java
</pre>
If I try to update from within the directory, I get this.
<pre>
$ cd type
$ svn update
svn: Two top-level reports with no target
</pre>
Committing from within the directory gives the same `path not found` error as above.
What's going on and how do I fix it? | 0 |
47,026 | 09/05/2008 22:49:28 | 1,368 | 08/14/2008 18:57:47 | 162 | 10 | Recursive function for an xml file (hierarchial data). | I want to recursively traverse an XML file, and need a little help with the C# code.
My XML file looks like:
<pre>
@categories@
@category id="1"@
@/category@
@category id="2"@
@category id="3"@ @/category@
@category id="4"@ @category id="5"# #/category# #/category#
@/category@
@/categories@
</pre>
(sorry the angle brackets had to be replaced)
Can someone help with the C# function that will traverse the XML file? | xml | recursion | null | null | null | null | open | Recursive function for an xml file (hierarchial data).
===
I want to recursively traverse an XML file, and need a little help with the C# code.
My XML file looks like:
<pre>
@categories@
@category id="1"@
@/category@
@category id="2"@
@category id="3"@ @/category@
@category id="4"@ @category id="5"# #/category# #/category#
@/category@
@/categories@
</pre>
(sorry the angle brackets had to be replaced)
Can someone help with the C# function that will traverse the XML file? | 0 |
47,045 | 09/05/2008 23:05:35 | 4,498 | 09/04/2008 08:55:23 | 11 | 3 | Sprintf in Java | Printf got added to Java with the 1.5 release but I can't seem to find how to send the output to a string rather than a file (which is what sprintf does in C). Does anyone know how to do this? | java | null | null | null | null | null | open | Sprintf in Java
===
Printf got added to Java with the 1.5 release but I can't seem to find how to send the output to a string rather than a file (which is what sprintf does in C). Does anyone know how to do this? | 0 |
47,052 | 09/05/2008 23:08:06 | 4,843 | 09/05/2008 23:02:34 | 1 | 0 | What code would I use to convert a SQL like expression to a regex on the fly? | I'm looking to convert a SQL like statement on the fly to the equivalent regex i.e.
LIKE '%this%'
LIKE 'Sm_th'
LIKE '[C-P]arsen'
What's the best approach to doing this? | sql | regex | tsql | like | null | null | open | What code would I use to convert a SQL like expression to a regex on the fly?
===
I'm looking to convert a SQL like statement on the fly to the equivalent regex i.e.
LIKE '%this%'
LIKE 'Sm_th'
LIKE '[C-P]arsen'
What's the best approach to doing this? | 0 |
47,066 | 09/05/2008 23:21:18 | 159 | 08/02/2008 18:20:52 | 353 | 6 | "getting" path in linux | I am writing a c program in linux. Commands like execv() require a path in the form of a c string. Is there a command that will return the current path in the form of a c style string? | c | linux | operating-system | null | null | null | open | "getting" path in linux
===
I am writing a c program in linux. Commands like execv() require a path in the form of a c string. Is there a command that will return the current path in the form of a c style string? | 0 |
47,089 | 09/05/2008 23:34:53 | 4,846 | 09/05/2008 23:21:25 | 1 | 0 | Best way in asp.net to force https for an entire site? | About 6 months ago I rolled out a site where every request needed to be over https. The only way at the time I could find to ensure that every request to a page was over https was to check it in the page load event. If the request was not over http I would response.redirect("https://mysite.com")
Is there a better way -- ideally some setting in the web.config? | c# | asp.net | vb.net | webforms | https | null | open | Best way in asp.net to force https for an entire site?
===
About 6 months ago I rolled out a site where every request needed to be over https. The only way at the time I could find to ensure that every request to a page was over https was to check it in the page load event. If the request was not over http I would response.redirect("https://mysite.com")
Is there a better way -- ideally some setting in the web.config? | 0 |
47,104 | 09/05/2008 23:53:47 | 4,407 | 09/03/2008 14:57:06 | 123 | 10 | Slow SQL Query due to inner and left join? | Can anyone explain this behavior or how to get around it?
If you execute this query:
select *
from TblA
left join freetexttable ( TblB, *, 'query' ) on TblA.ID = [Key]
inner join DifferentDbCatalog.dbo.TblC on TblA.ID = TblC.TblAID
It will be very very very slow.
If you change that query to use two inner joins instead of a left join, it will be very fast. If you change it to use two left joins instead of an inner join, it will be very fast.
You can observe this same behavior if you use a sql table variable instead of the freetexttable as well.
The performance problem arises any time you have a table variable (or freetexttable) and a table in a different database catalog where one is in an inner join and the other is in a left join.
Does anyone know why this is slow, or how to speed it up? | sql-server | performance | freetext | null | null | null | open | Slow SQL Query due to inner and left join?
===
Can anyone explain this behavior or how to get around it?
If you execute this query:
select *
from TblA
left join freetexttable ( TblB, *, 'query' ) on TblA.ID = [Key]
inner join DifferentDbCatalog.dbo.TblC on TblA.ID = TblC.TblAID
It will be very very very slow.
If you change that query to use two inner joins instead of a left join, it will be very fast. If you change it to use two left joins instead of an inner join, it will be very fast.
You can observe this same behavior if you use a sql table variable instead of the freetexttable as well.
The performance problem arises any time you have a table variable (or freetexttable) and a table in a different database catalog where one is in an inner join and the other is in a left join.
Does anyone know why this is slow, or how to speed it up? | 0 |
47,107 | 09/05/2008 23:57:14 | 3,641 | 08/29/2008 16:32:49 | 585 | 31 | ClickOnce disallow publishing of Debug builds | Is there any way to disallow publishing of debug builds with ClickOnce? I only want to allow Release builds through, but right now human error causes a debug build to slip in once in a while. | clickonce | null | null | null | null | null | open | ClickOnce disallow publishing of Debug builds
===
Is there any way to disallow publishing of debug builds with ClickOnce? I only want to allow Release builds through, but right now human error causes a debug build to slip in once in a while. | 0 |
47,133 | 09/06/2008 00:30:17 | 3,749 | 08/30/2008 14:35:49 | 1 | 1 | Migrating to a GUI witout losing business logic written in COBOL | We maintain a system that has over a million lines of COBOL code. Does someone have suggestions about how to migrate to a GUI (probably Windows based) without losing all the business logic we have written in COBOL? And yes, some of the business logic is buried inside of the current user interface. | gui | cobol | busines-logic | code-migration | null | null | open | Migrating to a GUI witout losing business logic written in COBOL
===
We maintain a system that has over a million lines of COBOL code. Does someone have suggestions about how to migrate to a GUI (probably Windows based) without losing all the business logic we have written in COBOL? And yes, some of the business logic is buried inside of the current user interface. | 0 |
47,137 | 09/06/2008 00:37:41 | 1,556 | 08/16/2008 16:41:03 | 465 | 18 | Can you recommend "Software Masterpiece"? | I found there is "Software Masterpiece" from [c2.com][1].
Reading and studying these kinds of software codes will be great step being better programmer.
But I want to know more softwares not just listed ones - Qmail, Emacs, Python and etc.
Can you recommend "Software Masterpiece"?
[1]: http://c2.com/cgi/wiki?SoftwareMasterpiece | untagged | null | null | null | null | 03/03/2012 01:50:42 | not constructive | Can you recommend "Software Masterpiece"?
===
I found there is "Software Masterpiece" from [c2.com][1].
Reading and studying these kinds of software codes will be great step being better programmer.
But I want to know more softwares not just listed ones - Qmail, Emacs, Python and etc.
Can you recommend "Software Masterpiece"?
[1]: http://c2.com/cgi/wiki?SoftwareMasterpiece | 4 |
47,138 | 09/06/2008 00:39:01 | 456,786 | 09/04/2008 17:42:59 | 1 | 1 | Who, what, when, where, and why should you codereview? | - Who should be reviewed?
- Who should do the reviewing?
- What code should be reviewed? (all
code? Big changes? Etc)
- Where should the review take place?
(Does it have to take place in
person?)
- When should reviews take place?
(Incrementally? Before check-ins?)
- Why should code be reviewed?
I have some opinions about this but I will post an answer with those. | code-review | teamwork | remote-working | personal | null | null | open | Who, what, when, where, and why should you codereview?
===
- Who should be reviewed?
- Who should do the reviewing?
- What code should be reviewed? (all
code? Big changes? Etc)
- Where should the review take place?
(Does it have to take place in
person?)
- When should reviews take place?
(Incrementally? Before check-ins?)
- Why should code be reviewed?
I have some opinions about this but I will post an answer with those. | 0 |
47,144 | 09/06/2008 00:59:14 | 4,850 | 09/06/2008 00:59:14 | 1 | 0 | Is there a way to ensure entire code block execution in a .NET thread? | In my C# program, I have a thread that represents a running test, which can be aborted by a click on a button labeled "Interrupt execution". In order for the thread (and therefore the test) to terminate in an elegant manner (and do some vital work beforehand), this button is enabled only in some well-defined moments, in which I catch `ThreadAbortedException`, do `Thread.ResetAbort()` and die beautifully (that is, the thread).
The problem is that, in the time window in which aborting is possible, there are some tasks that need to be done from start to finish once initiated, and, so, I fear TBE. Locks don't provide a solution for this, and, although finally blocks do, I don't find it elegant to wrap important code in the following manner:
try {
} finally {
// vital code
}
However, I didn't find any other solution.
Is this another way to delay the interference of `ThreadAbortException` until the end of the block? | .net | multithreading | null | null | null | null | open | Is there a way to ensure entire code block execution in a .NET thread?
===
In my C# program, I have a thread that represents a running test, which can be aborted by a click on a button labeled "Interrupt execution". In order for the thread (and therefore the test) to terminate in an elegant manner (and do some vital work beforehand), this button is enabled only in some well-defined moments, in which I catch `ThreadAbortedException`, do `Thread.ResetAbort()` and die beautifully (that is, the thread).
The problem is that, in the time window in which aborting is possible, there are some tasks that need to be done from start to finish once initiated, and, so, I fear TBE. Locks don't provide a solution for this, and, although finally blocks do, I don't find it elegant to wrap important code in the following manner:
try {
} finally {
// vital code
}
However, I didn't find any other solution.
Is this another way to delay the interference of `ThreadAbortException` until the end of the block? | 0 |
47,145 | 09/06/2008 00:59:54 | 3,147 | 08/27/2008 01:00:22 | 65 | 10 | Customising log4j adapter | I want to build my own custom log4j (network) adapter to solve my problem [that I posted here.][1]
I have looked at the documentation on the log4j and I cant see where/if the developers go into how to do this.
Can anyone point me in the right direction to get started?
[1]: http://stackoverflow.com/questions/29505/deserialize-in-a-different-language | java | log4j | null | null | null | null | open | Customising log4j adapter
===
I want to build my own custom log4j (network) adapter to solve my problem [that I posted here.][1]
I have looked at the documentation on the log4j and I cant see where/if the developers go into how to do this.
Can anyone point me in the right direction to get started?
[1]: http://stackoverflow.com/questions/29505/deserialize-in-a-different-language | 0 |
47,163 | 09/06/2008 01:24:19 | 577 | 08/06/2008 21:36:25 | 345 | 14 | How to set the order in subnodes of a tree structure. | I have a tree representation of pages in a CMS application. However, I don't have a good way to:
A) Reorder subpages under a prticular parent page.
B) Provide a UI implementation that allows the user to change the order.
Any suggestions? | treeview | tree | null | null | null | null | open | How to set the order in subnodes of a tree structure.
===
I have a tree representation of pages in a CMS application. However, I don't have a good way to:
A) Reorder subpages under a prticular parent page.
B) Provide a UI implementation that allows the user to change the order.
Any suggestions? | 0 |
47,167 | 09/06/2008 01:31:37 | 4,639 | 09/04/2008 23:07:22 | 1 | 1 | Do you know of any "best practice" or "what works" vi tutorial for programmers? | There are thousands of vi tutorials on the web, most of them generically listing all the commands. There are even videos on youtube which show basic functionality. But does anyone know of a vi tutorial which focuses on the needs of programmers? For example when I program in Perl with vi, moving to the "next paragraph" is meaningless. I want to know which commands seasoned vi users combine to e.g. copy everything inside of parentheses, or copy a functio, or copy and paste a variable (e.g. 2yw), etc. I am sure there are lots of functions using multiple-file capability, and the maps, macros, reading in of files for template code, regular expression search, jumping to functions, perhaps minimal code completion, or other features that emulate what programmers have gotten used to in Visual Studio and Eclipse, etc. | vim | null | null | null | null | null | open | Do you know of any "best practice" or "what works" vi tutorial for programmers?
===
There are thousands of vi tutorials on the web, most of them generically listing all the commands. There are even videos on youtube which show basic functionality. But does anyone know of a vi tutorial which focuses on the needs of programmers? For example when I program in Perl with vi, moving to the "next paragraph" is meaningless. I want to know which commands seasoned vi users combine to e.g. copy everything inside of parentheses, or copy a functio, or copy and paste a variable (e.g. 2yw), etc. I am sure there are lots of functions using multiple-file capability, and the maps, macros, reading in of files for template code, regular expression search, jumping to functions, perhaps minimal code completion, or other features that emulate what programmers have gotten used to in Visual Studio and Eclipse, etc. | 0 |
47,169 | 09/06/2008 01:37:52 | 3,191 | 08/27/2008 12:32:21 | 345 | 18 | Is there an event that triggers if the number of ListViewItems in a ListView changes? (Windows Forms) | I'd like to enable/disable some other controls based on how many items are in my `ListView` control. I can't find any event that would do this, either on the `ListView` itself or on the `ListViewItemCollection`. Maybe there's a way to generically watch any collection in C# for changes?
I'd be happy with other events too, even ones that sometimes fire when the items don't change, but for example the `ControlAdded` and `Layout` events didn't work :(. | events | listview | winforms | null | null | null | open | Is there an event that triggers if the number of ListViewItems in a ListView changes? (Windows Forms)
===
I'd like to enable/disable some other controls based on how many items are in my `ListView` control. I can't find any event that would do this, either on the `ListView` itself or on the `ListViewItemCollection`. Maybe there's a way to generically watch any collection in C# for changes?
I'd be happy with other events too, even ones that sometimes fire when the items don't change, but for example the `ControlAdded` and `Layout` events didn't work :(. | 0 |
47,177 | 09/06/2008 01:44:06 | 2,783 | 08/25/2008 03:10:18 | 403 | 27 | How to monitor the computer's cpu, memory, and disk usage in Java? | I would like to monitor the following system information in Java:
- current cpu usage (percent)
- available memory* (free/total)
- available disk space (free/total)
*note that I mean overall memory available to the whole system, not just the JVM
I'm looking for a cross-platform solution (Linux, Mac, Windows) that doesn't rely on my own code calling external programs or using JNI. Although these are viable options, I would prefer not to maintain OS-specific code myself if someone already has a better solution.
If there's a free library out there that does this in a reliable, cross-platform manner, that would be great (even if it makes external calls or uses native code itself).
Any suggestions are much appreciated.
| java | memory | crossplatform | cpu | diskspace | null | open | How to monitor the computer's cpu, memory, and disk usage in Java?
===
I would like to monitor the following system information in Java:
- current cpu usage (percent)
- available memory* (free/total)
- available disk space (free/total)
*note that I mean overall memory available to the whole system, not just the JVM
I'm looking for a cross-platform solution (Linux, Mac, Windows) that doesn't rely on my own code calling external programs or using JNI. Although these are viable options, I would prefer not to maintain OS-specific code myself if someone already has a better solution.
If there's a free library out there that does this in a reliable, cross-platform manner, that would be great (even if it makes external calls or uses native code itself).
Any suggestions are much appreciated.
| 0 |
47,198 | 09/06/2008 02:22:50 | 680 | 08/07/2008 17:29:04 | 504 | 14 | Which Version of Python to Use for Maximum Compatibility | If I was going to start an open source project using Python what version should I use to ensure that the vast majority of users can use it on their system?
I'm the kind of person who quickly jumps to the next version (which I'll do when Python 3 comes out) but many people may be more conservative if their current version seems to be working fine. What version would hit the sweet spot but still allow me to enjoy the newest and coolest language enhancements? | python | compatibility | null | null | null | null | open | Which Version of Python to Use for Maximum Compatibility
===
If I was going to start an open source project using Python what version should I use to ensure that the vast majority of users can use it on their system?
I'm the kind of person who quickly jumps to the next version (which I'll do when Python 3 comes out) but many people may be more conservative if their current version seems to be working fine. What version would hit the sweet spot but still allow me to enjoy the newest and coolest language enhancements? | 0 |
47,203 | 09/06/2008 02:31:47 | 2,148 | 08/20/2008 15:20:13 | 427 | 25 | SQL Server, nvarchar(MAX) or ntext, image or varbinary? | When should I choose one or the other? What are the implications regarding space and (full-text) indexing?
BTW: I'm currently using SQL Server 2005 planing to upgrade to 2008 in the following months.
Thanks | tsql | sql-server | sql-types | null | null | null | open | SQL Server, nvarchar(MAX) or ntext, image or varbinary?
===
When should I choose one or the other? What are the implications regarding space and (full-text) indexing?
BTW: I'm currently using SQL Server 2005 planing to upgrade to 2008 in the following months.
Thanks | 0 |
47,204 | 09/06/2008 02:35:41 | 4,826 | 09/05/2008 19:45:07 | 11 | 1 | Best free online Computer Science college courses | I have found the [MIT Open Courseware][1] to be a great resource for free computer science college courses. Every software engineer should be required to take the [Structure and Interpretation of Computer Programs class][2]. [Berkeley][3] and [Carnegie Mellon][4] also provide some great online courses. Are there any more colleges that offer quality computer science courses?
[1]: http://ocw.mit.edu/OcwWeb/web/home/home/index.htm
[2]: http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-001Spring-2005/CourseHome/index.htm
[3]: http://webcast.berkeley.edu/courses.php
[4]: http://www.cmu.edu/oli/ | software-engineering | classes | college | mit | cmu | null | open | Best free online Computer Science college courses
===
I have found the [MIT Open Courseware][1] to be a great resource for free computer science college courses. Every software engineer should be required to take the [Structure and Interpretation of Computer Programs class][2]. [Berkeley][3] and [Carnegie Mellon][4] also provide some great online courses. Are there any more colleges that offer quality computer science courses?
[1]: http://ocw.mit.edu/OcwWeb/web/home/home/index.htm
[2]: http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-001Spring-2005/CourseHome/index.htm
[3]: http://webcast.berkeley.edu/courses.php
[4]: http://www.cmu.edu/oli/ | 0 |
47,206 | 09/06/2008 02:39:33 | 3,137 | 08/26/2008 23:31:53 | 1 | 1 | How many rows should be in the (main) buffer of a virtual Listview control? (win32, 'c') | How many rows should be in the (main) buffer of a virtual Listview control?
I am witting an application in pure 'c' to the Win32 API. There is an ODBC connection to a database which will retrieve the items (actually rows).
The sample code implies a fixed size buffer of 30.
My thinking is that the buffer should be more than the maximum number of items that could be displayed by the list view at one time. I guess this could be re-calculated each time the Listivew was resized?
Or, is it just better to go with a large fixed value. If so what is that value? | winapi | c | null | null | null | null | open | How many rows should be in the (main) buffer of a virtual Listview control? (win32, 'c')
===
How many rows should be in the (main) buffer of a virtual Listview control?
I am witting an application in pure 'c' to the Win32 API. There is an ODBC connection to a database which will retrieve the items (actually rows).
The sample code implies a fixed size buffer of 30.
My thinking is that the buffer should be more than the maximum number of items that could be displayed by the list view at one time. I guess this could be re-calculated each time the Listivew was resized?
Or, is it just better to go with a large fixed value. If so what is that value? | 0 |
47,207 | 09/06/2008 02:42:49 | 2,592 | 08/23/2008 12:32:00 | 74 | 4 | Django: Print url of view without hardcoding the url | Can i print out a url (/admin/manage/products/add) of a certain view in a template?
Here is the rule i want to create a link for
(r'^manage/products/add/$', create_object, {'model': Product, 'post_save_redirect': ''}),
I would like to have /manage/products/add in a template without hardcoding it. How can i do this? | django | python | null | null | null | null | open | Django: Print url of view without hardcoding the url
===
Can i print out a url (/admin/manage/products/add) of a certain view in a template?
Here is the rule i want to create a link for
(r'^manage/products/add/$', create_object, {'model': Product, 'post_save_redirect': ''}),
I would like to have /manage/products/add in a template without hardcoding it. How can i do this? | 0 |
47,210 | 09/06/2008 02:47:19 | 4,161 | 09/02/2008 07:55:46 | 407 | 15 | Is there a good Fogbugz client for Mac OS X? | And/or: do I need one?
I've recently started using FogBugz for my hobby projects, and I'm very happy with things so far. Having read more about it, especially the evidence-based scheduling, I'd like to start using it for my PhD as well. (Heh; something tells me my supervisors won't be opening tickets for me, though.)
Last night I stumbled onto [TimePost](http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=9016), which looks like a tidy app that doesn't do much but could be a real bonus to logging my time in FogBugz effectively. I tried looking around for similar apps but came up a little empty-handed. Are there any other FogBugz clients that you've used and recommend for Mac OS X? Or are you happy with the web interface?
| osx | fogbugz | null | null | null | null | open | Is there a good Fogbugz client for Mac OS X?
===
And/or: do I need one?
I've recently started using FogBugz for my hobby projects, and I'm very happy with things so far. Having read more about it, especially the evidence-based scheduling, I'd like to start using it for my PhD as well. (Heh; something tells me my supervisors won't be opening tickets for me, though.)
Last night I stumbled onto [TimePost](http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=9016), which looks like a tidy app that doesn't do much but could be a real bonus to logging my time in FogBugz effectively. I tried looking around for similar apps but came up a little empty-handed. Are there any other FogBugz clients that you've used and recommend for Mac OS X? Or are you happy with the web interface?
| 0 |
47,217 | 09/06/2008 02:55:19 | 3,123 | 08/26/2008 19:29:02 | 16 | 3 | "Cannot change DataType of a column once it has data" error in Visual Studio 2005 DataSet Designer | I've got a DataSet in VisualStudio 2005. I need to change the datatype of a column in one of the datatables from System.Int32 to System.Decimal. When I try to change the datatype in the DataSet Designer I receive the following error:
"Property value is not valid. Cannot change DataType of a column once it has data."
From my understanding, this should be changing the datatype in the schema for the DataSet. I don't see how there can be any data to cause this error.
Does any one have any ideas? | visual-studio | .net-2.0 | null | null | null | null | open | "Cannot change DataType of a column once it has data" error in Visual Studio 2005 DataSet Designer
===
I've got a DataSet in VisualStudio 2005. I need to change the datatype of a column in one of the datatables from System.Int32 to System.Decimal. When I try to change the datatype in the DataSet Designer I receive the following error:
"Property value is not valid. Cannot change DataType of a column once it has data."
From my understanding, this should be changing the datatype in the schema for the DataSet. I don't see how there can be any data to cause this error.
Does any one have any ideas? | 0 |
47,225 | 09/06/2008 03:25:44 | 4,134 | 09/01/2008 23:40:41 | 71 | 11 | How would you migrate hundreds of MS Access databases to a central service? | We have literally 100's of Access databases floating around the network. Some with light usage and some with quite heavy usage, and some no usage whatsoever. What we would like to do is centralise these databases onto a managed database and retain as much as possible of the reports and forms within them.
The benefits of doing this would be to have some sort of usage tracking, and also the ability to pay more attention to some of the important decentralised data that is stored in these apps.
There is no real constraints on RDBMS (Oracle, MS SQL server) or the stack it would run on (LAMP, ASP.net, Java) and there obviously won't be a silver bullet for this. We would like something that can remove the initial grunt work in an automated fashion.
| oracle | mssql | ms-access | null | null | null | open | How would you migrate hundreds of MS Access databases to a central service?
===
We have literally 100's of Access databases floating around the network. Some with light usage and some with quite heavy usage, and some no usage whatsoever. What we would like to do is centralise these databases onto a managed database and retain as much as possible of the reports and forms within them.
The benefits of doing this would be to have some sort of usage tracking, and also the ability to pay more attention to some of the important decentralised data that is stored in these apps.
There is no real constraints on RDBMS (Oracle, MS SQL server) or the stack it would run on (LAMP, ASP.net, Java) and there obviously won't be a silver bullet for this. We would like something that can remove the initial grunt work in an automated fashion.
| 0 |
47,234 | 09/06/2008 03:39:52 | 4,318 | 09/02/2008 20:17:30 | 1 | 0 | Best ASP.NET E-Commerce Framework (aspDotNetStoreFront, AbleCommerce, BVCommerce, MediaChase,...) | I need a full-featured asp.net E-Commerce solution for a project. It needs to be easily extensible as I need to extend it to integrate with a custom Flash based personalization engine. It should also have a great administrative back-end that handles inventory tracking, report, labels, shipping, ... so that the client can really use it as the basis for their business.
I've used quite a few different E-Commerce systems including OSCommerce, Zen Cart, Catalook, and eTailer. While I was impressed with Zen Cart and eTailer, this project is big enough that I want to try a more serious, commercial offering.
I'm particularly interested in thoughts on aspdotnetstorefront, BVCommerce, AbleCommerce, and MediaChase. | e-commerce | online | reviews | store | ablecommerce | 09/15/2011 07:17:59 | not constructive | Best ASP.NET E-Commerce Framework (aspDotNetStoreFront, AbleCommerce, BVCommerce, MediaChase,...)
===
I need a full-featured asp.net E-Commerce solution for a project. It needs to be easily extensible as I need to extend it to integrate with a custom Flash based personalization engine. It should also have a great administrative back-end that handles inventory tracking, report, labels, shipping, ... so that the client can really use it as the basis for their business.
I've used quite a few different E-Commerce systems including OSCommerce, Zen Cart, Catalook, and eTailer. While I was impressed with Zen Cart and eTailer, this project is big enough that I want to try a more serious, commercial offering.
I'm particularly interested in thoughts on aspdotnetstorefront, BVCommerce, AbleCommerce, and MediaChase. | 4 |
47,235 | 09/06/2008 03:44:23 | 1,965 | 08/19/2008 15:51:08 | 2,997 | 177 | What is .MSPX? | I've noticed a lot of microsoft sites have the *.MSPX extension. While I'm very familiar with ASP.NET, I've not seen this extension before.
Does anyone know what this identifies? | .net | asp.net | microsoft | null | null | null | open | What is .MSPX?
===
I've noticed a lot of microsoft sites have the *.MSPX extension. While I'm very familiar with ASP.NET, I've not seen this extension before.
Does anyone know what this identifies? | 0 |
47,239 | 09/06/2008 03:52:15 | 4,550 | 09/04/2008 17:50:43 | 47 | 8 | How can I generate database tables from C# classes? | Does anyone know a way to auto-generate database tables for a given class? I'm not looking for an entire persistence layer - I already have a data access solution I'm using, but I suddenly have to store a lot of information from a large number of classes and I really don't want to have to create all these tables by hand. For example, given the following class:
class Foo
{
private string property1;
public string Property1
{
get { return property1; }
set { property1 = value; }
}
private int property2;
public int Property2
{
get { return property2; }
set { property2 = value; }
}
}
I'd expect the following SQL:
CREATE TABLE Foo
(
Property1 VARCHAR(500),
Property2 INT
)
I'm also wondering how you could handle complex types. For example, in the previously cited class, if we changed that to be:
<code>
class Foo
{
private string property1;
public string Property1
{
get { return property1; }
set { property1 = value; }
}
private System.Management.ManagementObject property2;
public System.Management.ManagementObject Property2
{
get { return property2; }
set { property2 = value; }
}
}
</code>
How could I handle this?
I've looked at trying to auto-generate the database scripts by myself using reflection to enumerate through each class' properties, but it's clunky and the complex data types have me stumped. Any ideas? | c# | code-generation | data-access | null | null | null | open | How can I generate database tables from C# classes?
===
Does anyone know a way to auto-generate database tables for a given class? I'm not looking for an entire persistence layer - I already have a data access solution I'm using, but I suddenly have to store a lot of information from a large number of classes and I really don't want to have to create all these tables by hand. For example, given the following class:
class Foo
{
private string property1;
public string Property1
{
get { return property1; }
set { property1 = value; }
}
private int property2;
public int Property2
{
get { return property2; }
set { property2 = value; }
}
}
I'd expect the following SQL:
CREATE TABLE Foo
(
Property1 VARCHAR(500),
Property2 INT
)
I'm also wondering how you could handle complex types. For example, in the previously cited class, if we changed that to be:
<code>
class Foo
{
private string property1;
public string Property1
{
get { return property1; }
set { property1 = value; }
}
private System.Management.ManagementObject property2;
public System.Management.ManagementObject Property2
{
get { return property2; }
set { property2 = value; }
}
}
</code>
How could I handle this?
I've looked at trying to auto-generate the database scripts by myself using reflection to enumerate through each class' properties, but it's clunky and the complex data types have me stumped. Any ideas? | 0 |
47,248 | 09/06/2008 04:13:57 | 4,639 | 09/04/2008 23:07:22 | 16 | 1 | Is there a Firefox 3 addon similar to View Source Chart? | Before I upgraded to Firefox 3 I used to constantly use the [View Source Chart Firefox Addon][1] which shows the source HTML in a very organized, graphical form. Unfortunately, this addon is only for Firefox 2 and the beta version for Firefox 3 now costs $10 on the author's site.
Anyone know of a similar addon that works for Firefox 3?
[1]: https://addons.mozilla.org/en-US/firefox/addon/655 | html | css | firefox | addon | null | null | open | Is there a Firefox 3 addon similar to View Source Chart?
===
Before I upgraded to Firefox 3 I used to constantly use the [View Source Chart Firefox Addon][1] which shows the source HTML in a very organized, graphical form. Unfortunately, this addon is only for Firefox 2 and the beta version for Firefox 3 now costs $10 on the author's site.
Anyone know of a similar addon that works for Firefox 3?
[1]: https://addons.mozilla.org/en-US/firefox/addon/655 | 0 |
47,249 | 09/06/2008 04:17:58 | 4,859 | 09/06/2008 03:26:03 | 1 | 1 | Best programming language to write a Windows File Manager app. | I would like to write my own file manager i.e. something like what XYplorer or Free Commander does but with a feature set that's more helpful to programmers.
What's the best language to write this. I'm basically looking for a language that has both rich GUI libraries and a nice wrapper library over the Windows Shell API.
I tried with C#, but writing my own PInvoke wrapper layer over Shell32.dll is a PITA I'm that I'm hoping to leapfrog over, so that I can get down to actually writing the app itself. | c# | windows | winapi | pinvoke | shell32 | null | open | Best programming language to write a Windows File Manager app.
===
I would like to write my own file manager i.e. something like what XYplorer or Free Commander does but with a feature set that's more helpful to programmers.
What's the best language to write this. I'm basically looking for a language that has both rich GUI libraries and a nice wrapper library over the Windows Shell API.
I tried with C#, but writing my own PInvoke wrapper layer over Shell32.dll is a PITA I'm that I'm hoping to leapfrog over, so that I can get down to actually writing the app itself. | 0 |
47,253 | 09/06/2008 04:26:49 | 4,491 | 09/04/2008 06:44:23 | 45 | 2 | How do you set up a python wsgi server under IIS with fastcgi? | I work in a windows environment and would prefer to deploy code to IIS. At the same time I would like to code in python. Having read that IIS can run fastCGI application, I went to the IIS site where it describes in detail how to get PHP up and running but not much about anything else. Does anyone have experience getting a python framework running under IIS using something other that plain old CGI?
If so can you explain to direct me to some instructions on setting this up. | python | iis | fastcgi | null | null | null | open | How do you set up a python wsgi server under IIS with fastcgi?
===
I work in a windows environment and would prefer to deploy code to IIS. At the same time I would like to code in python. Having read that IIS can run fastCGI application, I went to the IIS site where it describes in detail how to get PHP up and running but not much about anything else. Does anyone have experience getting a python framework running under IIS using something other that plain old CGI?
If so can you explain to direct me to some instructions on setting this up. | 0 |
47,262 | 09/06/2008 05:02:37 | 2,383 | 08/22/2008 00:17:14 | 11 | 2 | Storing Windows passwords. | I'm writing an administrative application which will poll multiple Windows systems for various bits of data. In many cases it will use WMI, but in some cases it may need to read remote registry or remotely execute some command or script on the polled system. These functions will require admin-level access to the polled systems. Now, I expect that in most use cases, there will be a domain, and the polling application can run as a service with Domain Admin (or equivalent) privileges, which means I do not have to worry about storing passwords - the admin setting up the app will define the service's username/password via standard Windows mechanisms.
But there's always a few black sheep out there. Systems for which we will have to define a username and password, store them securely, then invoke this user/pass pair at the time we poll that system. So keep in mind - in this case the program being written *is the user* who *sends* password to the authenticating system.
I am not sure whether I will need to use a reversible hash which I then decrypt to plaintext at time of use, or if there is some Windows mechanism which would allow me to store and then reuse the hash only. Obviously the second mechanism is preferable; I'd like my program to either *never* know the password's plaintext value, or know it for the shortest amount of time possible.
I need suggestions for smart and secure ways to accomplish this.
Thanks for looking! | windows | password | security | null | null | null | open | Storing Windows passwords.
===
I'm writing an administrative application which will poll multiple Windows systems for various bits of data. In many cases it will use WMI, but in some cases it may need to read remote registry or remotely execute some command or script on the polled system. These functions will require admin-level access to the polled systems. Now, I expect that in most use cases, there will be a domain, and the polling application can run as a service with Domain Admin (or equivalent) privileges, which means I do not have to worry about storing passwords - the admin setting up the app will define the service's username/password via standard Windows mechanisms.
But there's always a few black sheep out there. Systems for which we will have to define a username and password, store them securely, then invoke this user/pass pair at the time we poll that system. So keep in mind - in this case the program being written *is the user* who *sends* password to the authenticating system.
I am not sure whether I will need to use a reversible hash which I then decrypt to plaintext at time of use, or if there is some Windows mechanism which would allow me to store and then reuse the hash only. Obviously the second mechanism is preferable; I'd like my program to either *never* know the password's plaintext value, or know it for the shortest amount of time possible.
I need suggestions for smart and secure ways to accomplish this.
Thanks for looking! | 0 |
47,278 | 09/06/2008 06:16:34 | 3,839 | 08/31/2008 10:11:12 | 292 | 28 | How to get the most of out laptop batteries | What strategies should you employ to make laptop batteries last? | osx | laptop | hardware | null | null | 08/14/2011 23:29:14 | off topic | How to get the most of out laptop batteries
===
What strategies should you employ to make laptop batteries last? | 2 |
47,279 | 09/06/2008 06:19:13 | 3,839 | 08/31/2008 10:11:12 | 288 | 28 | Is there any good oracle podcasts | Is there any good oracle podcasts around? The only ones I've found hard been produced by oracle corp, and as such are little more than advertising pieces pushing their technology of the moment. | oracle | podcasts | null | null | null | 09/18/2011 02:59:08 | not constructive | Is there any good oracle podcasts
===
Is there any good oracle podcasts around? The only ones I've found hard been produced by oracle corp, and as such are little more than advertising pieces pushing their technology of the moment. | 4 |
47,297 | 09/06/2008 06:46:02 | 3,499 | 08/28/2008 19:39:37 | 229 | 21 | What's the best way to pass data into a Flex chart from a Ruby on Rails application? | There's at least three ways of passing data into a Flex binary from a Rails application. Right now, I'm using the old e4x resultFormat with a xml.erb template. I've done AMF before, but I feel like inlining parameters into the embed itself is a better solution because you don't have to wait for the browser to load a swf binary and the binary to make a web request.
Taking all of that into account, what is the best practice for rendering a Flex widget with a Rails back-end these days? | flex | ruby | ruby-on-rails | null | null | null | open | What's the best way to pass data into a Flex chart from a Ruby on Rails application?
===
There's at least three ways of passing data into a Flex binary from a Rails application. Right now, I'm using the old e4x resultFormat with a xml.erb template. I've done AMF before, but I feel like inlining parameters into the embed itself is a better solution because you don't have to wait for the browser to load a swf binary and the binary to make a web request.
Taking all of that into account, what is the best practice for rendering a Flex widget with a Rails back-end these days? | 0 |
47,309 | 09/06/2008 07:36:31 | 157 | 08/02/2008 17:42:25 | 656 | 39 | GODI installation issue | I'm trying to install [GODI][1] on linux (Ubuntu). It's a library management tool for the ocaml language. I've actually installed this before --twice, but awhile ago-- with no issues --that I can remember-- but this time I just can't figure out what I'm missing.
$ ./bootstrap --prefix <<path>>/godi
$ ./bootstrap_stage2
.: 1: godi_confdir: not found
Error: Command fails with code 2: /bin/sh
Failure!
I had added the proper directories to the path, and they show up with a quick `echo $path`, and `godi_confdir` reported as being:
$ godi_confdir
<<path>>/godi/etc
(...and the directory exists, with the godi.conf file present). So, I can't figure out why `./bootstrap_stage2` isn't working.
[1]: http://godi.camlcity.org/godi/index.html | linux | ocaml | godi | null | null | null | open | GODI installation issue
===
I'm trying to install [GODI][1] on linux (Ubuntu). It's a library management tool for the ocaml language. I've actually installed this before --twice, but awhile ago-- with no issues --that I can remember-- but this time I just can't figure out what I'm missing.
$ ./bootstrap --prefix <<path>>/godi
$ ./bootstrap_stage2
.: 1: godi_confdir: not found
Error: Command fails with code 2: /bin/sh
Failure!
I had added the proper directories to the path, and they show up with a quick `echo $path`, and `godi_confdir` reported as being:
$ godi_confdir
<<path>>/godi/etc
(...and the directory exists, with the godi.conf file present). So, I can't figure out why `./bootstrap_stage2` isn't working.
[1]: http://godi.camlcity.org/godi/index.html | 0 |
47,323 | 09/06/2008 08:21:35 | 1,583 | 08/16/2008 20:54:12 | 257 | 10 | Top tips for secure web applications | I am looking for easy steps that are simple and effective in making a web application more secure.
What are your top tips for secure web applications, and what kind of attack will they stop? | security | web-application | null | null | null | null | open | Top tips for secure web applications
===
I am looking for easy steps that are simple and effective in making a web application more secure.
What are your top tips for secure web applications, and what kind of attack will they stop? | 0 |
47,329 | 09/06/2008 08:30:22 | 3,263 | 08/27/2008 15:33:09 | 48 | 7 | UserControl rendering: write link to current page? | I'm implementing a custom control and in this control I need to write a bunch of links to the current page, each one with a different query parameter. I need to keep existing query string intact, and add (or modify the value of ) an extra query item (eg. "page"):
"Default.aspx?page=1"
"Default.aspx?page=2"
"Default.aspx?someother=true&page=2"
etc.
Is there a simple helper method that I can use in the Render method ... uhmm ... like:
Page.ClientScript.SomeURLBuilderMethodHere(this,"page","1");
Page.ClientScript.SomeURLBuilderMethodHere(this,"page","2");
That will take care of generating a correct URL, maintain existing query string items and not create duplicates eg. page=1&page=2&page=3?
Rolling up my own seems like such an unappealing task.
| asp.net | web-applications | custom-server-controls | null | null | null | open | UserControl rendering: write link to current page?
===
I'm implementing a custom control and in this control I need to write a bunch of links to the current page, each one with a different query parameter. I need to keep existing query string intact, and add (or modify the value of ) an extra query item (eg. "page"):
"Default.aspx?page=1"
"Default.aspx?page=2"
"Default.aspx?someother=true&page=2"
etc.
Is there a simple helper method that I can use in the Render method ... uhmm ... like:
Page.ClientScript.SomeURLBuilderMethodHere(this,"page","1");
Page.ClientScript.SomeURLBuilderMethodHere(this,"page","2");
That will take care of generating a correct URL, maintain existing query string items and not create duplicates eg. page=1&page=2&page=3?
Rolling up my own seems like such an unappealing task.
| 0 |
47,338 | 09/06/2008 08:49:26 | 1,812 | 08/18/2008 06:17:54 | 11 | 6 | ASP.NET MVC Preview 5 routing ambiguity | I have a problem with a sample routing with the preview 5 of asp.net mvc.
In the AccountController I have 2 actions:
public ActionResult Delete()
public ActionResult Delete(string username)
While trying to look for Account/Delete or Account/Delete?username=davide the ControllerActionInvoker throws a exception saying that Delete request is ambiguous between my tow actions methods.
The default route in the global.asax hasn't been changed.
Shouldn't the action invoker understand what's the method to call looking in the parameters list?
Using the preview 4 I hadn't these kind of problem performing the same operation.
Any idea? | asp.net-mvc | routing | null | null | null | null | open | ASP.NET MVC Preview 5 routing ambiguity
===
I have a problem with a sample routing with the preview 5 of asp.net mvc.
In the AccountController I have 2 actions:
public ActionResult Delete()
public ActionResult Delete(string username)
While trying to look for Account/Delete or Account/Delete?username=davide the ControllerActionInvoker throws a exception saying that Delete request is ambiguous between my tow actions methods.
The default route in the global.asax hasn't been changed.
Shouldn't the action invoker understand what's the method to call looking in the parameters list?
Using the preview 4 I hadn't these kind of problem performing the same operation.
Any idea? | 0 |
47,340 | 09/06/2008 08:52:34 | 4,869 | 09/06/2008 08:52:34 | 1 | 0 | Versioning library like SQLite database library? | I like how SQLite library can be included into an application and the application has a full-fledged database to use.
Similarly, is there an open source versioning library that I can include into my application so that I can save versions of files as well as do diffs and merges? | version-control | opensource | null | null | null | null | open | Versioning library like SQLite database library?
===
I like how SQLite library can be included into an application and the application has a full-fledged database to use.
Similarly, is there an open source versioning library that I can include into my application so that I can save versions of files as well as do diffs and merges? | 0 |
47,343 | 09/06/2008 09:00:17 | 1,196 | 08/13/2008 12:33:04 | 2,056 | 138 | Do you know any WPF based text editor control? | Note that I'm not looking for something based on TextBox or RichTextBox. What I'm interested in is a text editing control written from scratch using [WPF typography][1] features. Open source would be a plus.
[1]: http://msdn.microsoft.com/en-us/library/ms742190.aspx | wpf | usercontrols | null | null | null | null | open | Do you know any WPF based text editor control?
===
Note that I'm not looking for something based on TextBox or RichTextBox. What I'm interested in is a text editing control written from scratch using [WPF typography][1] features. Open source would be a plus.
[1]: http://msdn.microsoft.com/en-us/library/ms742190.aspx | 0 |
47,363 | 09/06/2008 10:02:26 | 4,704 | 09/05/2008 10:18:28 | 56 | 4 | How do you list all triggers in a MySQL database? | What is the MySQL command to list all triggers in a MySQL database? | mysql | null | null | null | null | null | open | How do you list all triggers in a MySQL database?
===
What is the MySQL command to list all triggers in a MySQL database? | 0 |
47,366 | 09/06/2008 10:06:32 | 3,389 | 08/28/2008 11:59:00 | 1 | 0 | SQL Compare-Like tool for Oracle? | We're a .NET team which uses the Oracle DB for a lot of reasons that I won't get into. But deployment has been a bitch. We are manually keeping track of all the changes to the schema in each version, by keeping a record of all the scripts that we run during development.
Now, if a developer forgets to check-in his script to the source control after he ran it - which is not that rare - at the end of the iteration we get a great big headache.
I hear that SQL Compare by Red-Gate might solve these kind of issues, but it only has SQL Server support. Anybody knows of a similar tool for Oracle? I've been unable to find one. | oracle | sql-compare | null | null | null | null | open | SQL Compare-Like tool for Oracle?
===
We're a .NET team which uses the Oracle DB for a lot of reasons that I won't get into. But deployment has been a bitch. We are manually keeping track of all the changes to the schema in each version, by keeping a record of all the scripts that we run during development.
Now, if a developer forgets to check-in his script to the source control after he ran it - which is not that rare - at the end of the iteration we get a great big headache.
I hear that SQL Compare by Red-Gate might solve these kind of issues, but it only has SQL Server support. Anybody knows of a similar tool for Oracle? I've been unable to find one. | 0 |
47,374 | 09/06/2008 10:43:39 | 4,160 | 09/02/2008 07:15:12 | 96 | 2 | Best practices re: LINQ To SQL as a data access layer | Part of the web application I'm working on is an area displaying messages from management to 1...n users. I have a DataAccess project that contains the LINQ to SQL classes, and a website project that is the UI. My database looks like this:
User -> MessageDetail <- Message <- MessageCategory
MessageDetail is a join table that also contains an IsRead flag.
The list of messages is grouped by category. I have two nested ListView controls on the page -- One outputs the group name, while a second one nested inside that is bound to MessageDetails and outputs the messages themselves. In the code-behind for the page listing the messages I have the following code:
protected void MessageListDataSource_Selecting(object sender, LinqDataSourceSelectEventArgs e)
{
var db = new DataContext();
// parse the input strings from the web form
int categoryIDFilter;
DateTime dateFilter;
string catFilterString = MessagesCategoryFilter.SelectedValue;
string dateFilterString = MessagesDateFilter.SelectedValue;
// TryParse will return default values if parsing is unsuccessful (i.e. if "all" is selected"):
// DateTime.MinValue for dates, 0 for int
DateTime.TryParse(dateFilterString, out dateFilter);
Int32.TryParse(catFilterString, out categoryIDFilter);
bool showRead = MessagesReadFilter.Checked;
var messages =
from detail in db.MessageDetails
where detail.UserID == (int)Session["UserID"]
where detail.Message.IsPublished
where detail.Message.MessageCategoryID == categoryIDFilter || (categoryIDFilter == 0)
where dateFilter == detail.Message.PublishDate.Value.Date || (dateFilter == DateTime.MinValue)
// is unread, showRead filter is on, or message was marked read today
where detail.IsRead == false || showRead || detail.ReadDate.Value.Date == DateTime.Today
orderby detail.Message.PublishDate descending
group detail by detail.Message.MessageCategory into categories
orderby categories.Key.Name
select new
{
MessageCategory = categories.Key,
MessageDetails = categories.Select(d => d)
};
e.Result = messages;
}
This code *works*, but sticking a huge LINQ statement like this in the code-behind for a LinqDataSource control just doesn't sit right with me.
It seems like I'm still coding queries into the user interface, only now it's LINQ instead of SQL. However, I feel that building another layer between the L2S classes and the UI would cut back on some of the flexibility of LINQ. Isn't the whole point to reduce the amount of code you write to fetch data?
Is there some possible middle ground I'm not seeing, or am I just misunderstanding the way LINQ to SQL is supposed to be used? Advice would be greatly appreciated.
| linq-to-sql | asp.net | linq | null | null | null | open | Best practices re: LINQ To SQL as a data access layer
===
Part of the web application I'm working on is an area displaying messages from management to 1...n users. I have a DataAccess project that contains the LINQ to SQL classes, and a website project that is the UI. My database looks like this:
User -> MessageDetail <- Message <- MessageCategory
MessageDetail is a join table that also contains an IsRead flag.
The list of messages is grouped by category. I have two nested ListView controls on the page -- One outputs the group name, while a second one nested inside that is bound to MessageDetails and outputs the messages themselves. In the code-behind for the page listing the messages I have the following code:
protected void MessageListDataSource_Selecting(object sender, LinqDataSourceSelectEventArgs e)
{
var db = new DataContext();
// parse the input strings from the web form
int categoryIDFilter;
DateTime dateFilter;
string catFilterString = MessagesCategoryFilter.SelectedValue;
string dateFilterString = MessagesDateFilter.SelectedValue;
// TryParse will return default values if parsing is unsuccessful (i.e. if "all" is selected"):
// DateTime.MinValue for dates, 0 for int
DateTime.TryParse(dateFilterString, out dateFilter);
Int32.TryParse(catFilterString, out categoryIDFilter);
bool showRead = MessagesReadFilter.Checked;
var messages =
from detail in db.MessageDetails
where detail.UserID == (int)Session["UserID"]
where detail.Message.IsPublished
where detail.Message.MessageCategoryID == categoryIDFilter || (categoryIDFilter == 0)
where dateFilter == detail.Message.PublishDate.Value.Date || (dateFilter == DateTime.MinValue)
// is unread, showRead filter is on, or message was marked read today
where detail.IsRead == false || showRead || detail.ReadDate.Value.Date == DateTime.Today
orderby detail.Message.PublishDate descending
group detail by detail.Message.MessageCategory into categories
orderby categories.Key.Name
select new
{
MessageCategory = categories.Key,
MessageDetails = categories.Select(d => d)
};
e.Result = messages;
}
This code *works*, but sticking a huge LINQ statement like this in the code-behind for a LinqDataSource control just doesn't sit right with me.
It seems like I'm still coding queries into the user interface, only now it's LINQ instead of SQL. However, I feel that building another layer between the L2S classes and the UI would cut back on some of the flexibility of LINQ. Isn't the whole point to reduce the amount of code you write to fetch data?
Is there some possible middle ground I'm not seeing, or am I just misunderstanding the way LINQ to SQL is supposed to be used? Advice would be greatly appreciated.
| 0 |
47,376 | 09/06/2008 10:48:06 | 46 | 08/01/2008 13:13:21 | 822 | 42 | How can I monitor the executed sql statements on a ms SQL server 2005 | In a project of mine the SQL statements that are executed against a ms SQL server are failing for some unknown reason. Some of the code is already used in production so debugging it is not an easy task. Therefore I need a way to see in the database itself what SQL statements are used, as the statements are generated at runtime by the project and could be flawed when certain conditions are met.
I therefore considered the possibility to monitor the incoming statements and check myself if I see any flaws.
The database is running on a ms SQL server 2005, and I use SQL server management studio express as primary tool to manipulate the database. So my question is, what is the best way to do this? | sql | sql-server | sql2005 | query | monitoring | null | open | How can I monitor the executed sql statements on a ms SQL server 2005
===
In a project of mine the SQL statements that are executed against a ms SQL server are failing for some unknown reason. Some of the code is already used in production so debugging it is not an easy task. Therefore I need a way to see in the database itself what SQL statements are used, as the statements are generated at runtime by the project and could be flawed when certain conditions are met.
I therefore considered the possibility to monitor the incoming statements and check myself if I see any flaws.
The database is running on a ms SQL server 2005, and I use SQL server management studio express as primary tool to manipulate the database. So my question is, what is the best way to do this? | 0 |
47,387 | 09/06/2008 11:24:53 | 115 | 08/02/2008 05:44:40 | 933 | 105 | Setting Up MySQL Triggers | I've been hearing about triggers, and I have a few questions.<br />
What are triggers?<br />
How do I set them up?<br />
Are there any precautions, aside from typical SQL stuff, that should be taken? | mysql | triggers | null | null | null | null | open | Setting Up MySQL Triggers
===
I've been hearing about triggers, and I have a few questions.<br />
What are triggers?<br />
How do I set them up?<br />
Are there any precautions, aside from typical SQL stuff, that should be taken? | 0 |
47,394 | 09/06/2008 11:36:34 | 4,061 | 09/01/2008 15:48:37 | 38 | 1 | Are there any Open Source / Free Software alternatives to ATG? | ATG is a suite services built on top of J2EE which uses it's own proprietary flavor of ORM (like Hibernate but not), dependency injection (like Spring but not), and JSP tag libraries to offer and integrate services like customer profiling and targeting, e-commerce (shopping cart, billing, inventory, etc.), e-mail blasting, content management, A/B testing, customer service, etc.
In my opinion, it's a grossly bloated, overcomplicated, and antiquated platform, which makes it a royal pain to work with. Productivity grinds to a halt as you deal with writing countless lines of XML and Java to achieve the simplest of tasks. Unit testing is nigh impossible due to the webwork of dependencies necessary to bootstrap the framework, compounded by the lack of documentation of its inner workings to help you mock or stub-out the hairy bits. Concepts like convention over configuration and avoiding leaky abstraction were abandoned by the wayside.
So my question to you is what are the alternatives that do not involve gluing together a hodgepodge of third-party silo solutions? | java-ee | foss | atg | null | null | null | open | Are there any Open Source / Free Software alternatives to ATG?
===
ATG is a suite services built on top of J2EE which uses it's own proprietary flavor of ORM (like Hibernate but not), dependency injection (like Spring but not), and JSP tag libraries to offer and integrate services like customer profiling and targeting, e-commerce (shopping cart, billing, inventory, etc.), e-mail blasting, content management, A/B testing, customer service, etc.
In my opinion, it's a grossly bloated, overcomplicated, and antiquated platform, which makes it a royal pain to work with. Productivity grinds to a halt as you deal with writing countless lines of XML and Java to achieve the simplest of tasks. Unit testing is nigh impossible due to the webwork of dependencies necessary to bootstrap the framework, compounded by the lack of documentation of its inner workings to help you mock or stub-out the hairy bits. Concepts like convention over configuration and avoiding leaky abstraction were abandoned by the wayside.
So my question to you is what are the alternatives that do not involve gluing together a hodgepodge of third-party silo solutions? | 0 |
47,400 | 09/06/2008 11:58:29 | 3,811 | 08/31/2008 00:05:35 | 51 | 3 | Best way to test a MS Access application? | With the code, forms and data inside the same database I am wondering what are the best practices to design a suite of tests for a Microsoft Access application (say for Access 2007).
One of the main issues with testing forms is that only a few controls have a hwnd handle and other controls only get one they have focus, which makes automation quite opaque since you cant get a list of controls on a form to act on.
Any experience to share? | database | unit-testing | ms-access | vba | null | null | open | Best way to test a MS Access application?
===
With the code, forms and data inside the same database I am wondering what are the best practices to design a suite of tests for a Microsoft Access application (say for Access 2007).
One of the main issues with testing forms is that only a few controls have a hwnd handle and other controls only get one they have focus, which makes automation quite opaque since you cant get a list of controls on a form to act on.
Any experience to share? | 0 |
47,402 | 09/06/2008 12:09:57 | 4,279 | 09/02/2008 16:10:17 | 1 | 0 | Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it. | taken from [here][1]
>>> reversewords = lambda s: " ".join(reversed(s.split())) #NOTE: it does not meet the requirements!
>>> reversewords("this is a string")
string a is this
It should be O(N) in time and O(1) in space (no *split* allowed).
[1]: http://halcyon.usc.edu/~kiran/msqs.html#programming "Microsoft Interview Questions" | language-agnostic | algorithm | microsoft | interview-questions | puzzle | null | open | Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.
===
taken from [here][1]
>>> reversewords = lambda s: " ".join(reversed(s.split())) #NOTE: it does not meet the requirements!
>>> reversewords("this is a string")
string a is this
It should be O(N) in time and O(1) in space (no *split* allowed).
[1]: http://halcyon.usc.edu/~kiran/msqs.html#programming "Microsoft Interview Questions" | 0 |
47,405 | 09/06/2008 12:15:50 | 1,709 | 08/18/2008 07:05:30 | 697 | 64 | Where can I find (old) scientific articles (and books)? | Often when reading books I find references to old studies, essays and articles that I would like to take a closer look at. Now, the problem is, how do I find them?
Popular and semi-popular books can often be found on Amazon or other book stores, but what about that out-of-print book from 1945, or the classic study on ... published in an internal journal in 1957?
I have tried searching the online library resources of Norwegian universities, and they do have some of the publications I'm looking for, but ideally I would like to own a copy.
Are there any (searchable) online resources to locate such material? | reference | research | null | null | null | 03/24/2012 23:16:37 | off topic | Where can I find (old) scientific articles (and books)?
===
Often when reading books I find references to old studies, essays and articles that I would like to take a closer look at. Now, the problem is, how do I find them?
Popular and semi-popular books can often be found on Amazon or other book stores, but what about that out-of-print book from 1945, or the classic study on ... published in an internal journal in 1957?
I have tried searching the online library resources of Norwegian universities, and they do have some of the publications I'm looking for, but ideally I would like to own a copy.
Are there any (searchable) online resources to locate such material? | 2 |
47,413 | 09/06/2008 12:37:41 | 4,873 | 09/06/2008 09:14:56 | 11 | 4 | MS-Access design pattern for last value for a grouping | It's common to have a table where for example the the fields are account, value, and time. What's the best design pattern for retrieving the last value for each account? Unfortunately the last keyword in a grouping gives you the last physical record in the database, not the last record by any sorting. Which means IMHO it should never be used. The two clumsy approaches I use are either a subquery approach or a secondary query to determine the last record, and then joining to the table to find the value. Isn't there a more elegant approach? | ms-access | null | null | null | null | null | open | MS-Access design pattern for last value for a grouping
===
It's common to have a table where for example the the fields are account, value, and time. What's the best design pattern for retrieving the last value for each account? Unfortunately the last keyword in a grouping gives you the last physical record in the database, not the last record by any sorting. Which means IMHO it should never be used. The two clumsy approaches I use are either a subquery approach or a secondary query to determine the last record, and then joining to the table to find the value. Isn't there a more elegant approach? | 0 |
47,414 | 09/06/2008 12:37:55 | 3,854 | 08/31/2008 11:41:21 | 1 | 2 | Standard way to merge Entities in LlblGenPro | I start with an entity A with primary key A1, it has child collections B and C, but they are empty, because I haven't prefetched them. I now get a new occurrence of A (A prime) with primary key A1 with the child collections B and C filled.
What is a good way to get the A and A prime to be the same object and to get A collections of B and C filled? | c# | orm | llblgenpro | null | null | null | open | Standard way to merge Entities in LlblGenPro
===
I start with an entity A with primary key A1, it has child collections B and C, but they are empty, because I haven't prefetched them. I now get a new occurrence of A (A prime) with primary key A1 with the child collections B and C filled.
What is a good way to get the A and A prime to be the same object and to get A collections of B and C filled? | 0 |
47,420 | 09/06/2008 12:45:21 | 4,891 | 09/06/2008 12:41:07 | 1 | 0 | How can I break on exception using ddbg | I'm using the d programing language to write a program, and I'm trying to use ddbg to debug it. When there is an exception, I want to have the program break whenever there is an exception thrown so that I can inspect the stack.
Alternatively, is there another debugger that works with d? Is there another way to get a stack trace when there is an exception? | d | null | null | null | null | null | open | How can I break on exception using ddbg
===
I'm using the d programing language to write a program, and I'm trying to use ddbg to debug it. When there is an exception, I want to have the program break whenever there is an exception thrown so that I can inspect the stack.
Alternatively, is there another debugger that works with d? Is there another way to get a stack trace when there is an exception? | 0 |
47,427 | 09/06/2008 13:00:32 | 3,171 | 08/27/2008 06:27:02 | 887 | 22 | Why do some websites add "Slugs" to the end of URLs? | Many websites, including this one, add what are apparently called *slugs* - descriptive but as far as I can tell useless bits of text - to the end of URLs.
For example, the URL the site gives for the FAQ is:
http://beta.stackoverflow.com/questions/18557/how-does-stackoverflow-work-the-unofficial-faq
But the following URL works just as well:
http://beta.stackoverflow.com/questions/18557/
Is the point of this text just to somehow make the URL more user friendly or are there some other benefits?
| web | null | null | null | null | null | open | Why do some websites add "Slugs" to the end of URLs?
===
Many websites, including this one, add what are apparently called *slugs* - descriptive but as far as I can tell useless bits of text - to the end of URLs.
For example, the URL the site gives for the FAQ is:
http://beta.stackoverflow.com/questions/18557/how-does-stackoverflow-work-the-unofficial-faq
But the following URL works just as well:
http://beta.stackoverflow.com/questions/18557/
Is the point of this text just to somehow make the URL more user friendly or are there some other benefits?
| 0 |
47,432 | 09/06/2008 13:05:24 | 4,694 | 09/05/2008 09:30:26 | 11 | 2 | Would you recommend using "The C5 Generic Collection Library for C# and CLI" based on your experience with it ? | This free collection library comes from IT University of Copenhagen.
[http://www.itu.dk/research/c5/][1]
There is a video with one of the authors on Channel 9. I am trying to learn how to use these collections and I was wondering whether anyone has more experiences or what are your thoughts on this specific collection library for .NET. Do you like the way they are designed, do you like their performance and what were your major problems with them ?
[1]: http://www.itu.dk/research/c5/ | .net | collections | null | null | null | null | open | Would you recommend using "The C5 Generic Collection Library for C# and CLI" based on your experience with it ?
===
This free collection library comes from IT University of Copenhagen.
[http://www.itu.dk/research/c5/][1]
There is a video with one of the authors on Channel 9. I am trying to learn how to use these collections and I was wondering whether anyone has more experiences or what are your thoughts on this specific collection library for .NET. Do you like the way they are designed, do you like their performance and what were your major problems with them ?
[1]: http://www.itu.dk/research/c5/ | 0 |
47,433 | 09/06/2008 13:05:42 | 292 | 08/04/2008 13:14:31 | 538 | 30 | subselect vs outer join | Consider the following 2 queries:
select tblA.a,tblA.b,tblA.c,tblA.d from tblA where tblA.a not in (select tblB.a from tblB)
select tblA.a,tblA.b,tblA.c,tblA.d from tblA left outer join tblB on tblA.a = tblB.a where tblB.a is null
Which will perform better? My assumption is that in general the join will be more better except in cases where the subselect returns a very small result set.
| sql-server | database | performance | null | null | null | open | subselect vs outer join
===
Consider the following 2 queries:
select tblA.a,tblA.b,tblA.c,tblA.d from tblA where tblA.a not in (select tblB.a from tblB)
select tblA.a,tblA.b,tblA.c,tblA.d from tblA left outer join tblB on tblA.a = tblB.a where tblB.a is null
Which will perform better? My assumption is that in general the join will be more better except in cases where the subselect returns a very small result set.
| 0 |
47,436 | 09/06/2008 13:07:36 | 3,854 | 08/31/2008 11:41:21 | 1 | 2 | What is the shortcut key for Run to cursor | What is the shortcut key for Run to cursor in visual studio 2008? | visual-studio | shortcut | null | null | null | null | open | What is the shortcut key for Run to cursor
===
What is the shortcut key for Run to cursor in visual studio 2008? | 0 |
47,447 | 09/06/2008 13:15:49 | 3,894 | 08/31/2008 18:32:32 | 23 | 0 | Child spans of the same width | I am trying to create a horizontal menu with the elements represented by <span>s. The menu itself (parent <div>) has a fixed width, but the elements number is always different.
I would like to have child spans of the same width, independently of how many of them are there.
What I've done so far: added a "float: left;" style for every span and specified its percentage width (percents are more or less fine, as the server knows at the time of the page generation, how many menu items are there and could divide 100% by this number). This works, except for the case when we have a division remainder (like for 3 elements), in this case I have a one-pixel hole to the right of the parent div, and if I rounding the percents up, the last menu element is wrapped. I also don't really like style generation on the fly, but if there's no other solution, it's fine.
What else could I try?
It seems like this is a very common problem, however googling for "child elements of the same width" didn't help.
Thanks! | html | css | null | null | null | null | open | Child spans of the same width
===
I am trying to create a horizontal menu with the elements represented by <span>s. The menu itself (parent <div>) has a fixed width, but the elements number is always different.
I would like to have child spans of the same width, independently of how many of them are there.
What I've done so far: added a "float: left;" style for every span and specified its percentage width (percents are more or less fine, as the server knows at the time of the page generation, how many menu items are there and could divide 100% by this number). This works, except for the case when we have a division remainder (like for 3 elements), in this case I have a one-pixel hole to the right of the parent div, and if I rounding the percents up, the last menu element is wrapped. I also don't really like style generation on the fly, but if there's no other solution, it's fine.
What else could I try?
It seems like this is a very common problem, however googling for "child elements of the same width" didn't help.
Thanks! | 0 |
47,468 | 09/06/2008 13:47:54 | 4,494 | 09/04/2008 07:05:41 | 77 | 8 | A Well-Designed Web App GUI Framework? | As one of those people that never got around to properly learning design (or having no talent for it), the design seems to be the step always holding me back. It's not a problem for rich-clients, as the standard GUI toolkits provide some acceptable ways to design a good-looking interface, but the web is another story.
Question: Does anyone know of a high-quality framework for designing the interface of web applications? I'm thinking of standard snippets of html for an adequate set of controls (the standard html controls plus maybe navigations, lists, forms) and style sheets to give it an acceptable, modern look. If such a thing existed, it could even support themes in the way wordpress, drupal etc. allow it.
I know of the yahoo yui, but that's mostly javascript, though their grid css is a step in the right direction. | html | css | design | framework | user-interface | null | open | A Well-Designed Web App GUI Framework?
===
As one of those people that never got around to properly learning design (or having no talent for it), the design seems to be the step always holding me back. It's not a problem for rich-clients, as the standard GUI toolkits provide some acceptable ways to design a good-looking interface, but the web is another story.
Question: Does anyone know of a high-quality framework for designing the interface of web applications? I'm thinking of standard snippets of html for an adequate set of controls (the standard html controls plus maybe navigations, lists, forms) and style sheets to give it an acceptable, modern look. If such a thing existed, it could even support themes in the way wordpress, drupal etc. allow it.
I know of the yahoo yui, but that's mostly javascript, though their grid css is a step in the right direction. | 0 |
47,475 | 09/06/2008 13:59:55 | 4,642 | 09/04/2008 23:22:08 | 193 | 9 | Are unit-test names important? | If unit-test names can become outdated over time and if you consider that the test itself is the most important thing, then is it important to choose wise test names?
ie
[Test]
public void ShouldValidateUserNameIsLessThan100Characters() {}
verse
[Test]
public void UserNameTestValidation1() {} | unit-testing | null | null | null | null | null | open | Are unit-test names important?
===
If unit-test names can become outdated over time and if you consider that the test itself is the most important thing, then is it important to choose wise test names?
ie
[Test]
public void ShouldValidateUserNameIsLessThan100Characters() {}
verse
[Test]
public void UserNameTestValidation1() {} | 0 |
47,483 | 09/06/2008 14:11:38 | 4,233 | 09/02/2008 13:24:50 | 1 | 0 | Passing switches to Xcode 3.1 user scripts | I have a user script that would be much more useful if it could dynamically change some of its execution dependent on what the user wanted. Passing simple switches would easily solve this problem but I don't see any way to do it.
I also tried embedding a keyword in the script name, but Xcode copies the script to a guid-looking filename before execution, so that won't work either.
So does anyone know of a way to call a user script with some sort of argument? (other that the normal %%%var%%% variables)
Thanks! | script | xcode | user | arguments | null | null | open | Passing switches to Xcode 3.1 user scripts
===
I have a user script that would be much more useful if it could dynamically change some of its execution dependent on what the user wanted. Passing simple switches would easily solve this problem but I don't see any way to do it.
I also tried embedding a keyword in the script name, but Xcode copies the script to a guid-looking filename before execution, so that won't work either.
So does anyone know of a way to call a user script with some sort of argument? (other that the normal %%%var%%% variables)
Thanks! | 0 |
47,486 | 09/06/2008 14:16:50 | 2,841 | 08/25/2008 13:38:48 | 131 | 11 | Tips for database design in a web application | Does someone have any tips/advice on database design for a web application? The kind of stuff that can save me a lot of time/effort in the future when/if the application I'm working on takes off and starts having a lot of usage.
To be a bit more specific, the application is a strategy game (browser based, just text) that will mostly involve players issuing "orders" that will be stored in the database and processed later, with the results also being stored there (the history of "orders" and the corresponding results will probably get quite big). | database-design | web-application | null | null | null | null | open | Tips for database design in a web application
===
Does someone have any tips/advice on database design for a web application? The kind of stuff that can save me a lot of time/effort in the future when/if the application I'm working on takes off and starts having a lot of usage.
To be a bit more specific, the application is a strategy game (browser based, just text) that will mostly involve players issuing "orders" that will be stored in the database and processed later, with the results also being stored there (the history of "orders" and the corresponding results will probably get quite big). | 0 |
47,487 | 09/06/2008 14:21:25 | 4,906 | 09/06/2008 14:21:25 | 1 | 0 | Create a variable in .CSS file for use within that .CSS file | We have some "theme colors" that are reused in our CSS sheet.
Is there a way to set a variable and then reuse it?
E.g.,
.css
OurColor: Blue
{ H1
color:OurColor;
} | css | null | null | null | null | null | open | Create a variable in .CSS file for use within that .CSS file
===
We have some "theme colors" that are reused in our CSS sheet.
Is there a way to set a variable and then reuse it?
E.g.,
.css
OurColor: Blue
{ H1
color:OurColor;
} | 0 |
47,495 | 09/06/2008 14:29:47 | 4,903 | 09/06/2008 14:16:54 | 1 | 0 | What language do I use to program behavior for electronic devices? | It is very difficult to find information on programming hardware or electronic devices that are not an actual desktop computer, laptop or server. A few instances that I am speaking of are kid's toys like Bop It, or how about a control system for the home, or even something like Pleo or a mobile phone? I mean, if I want to program behavior into these electronic devices at the very core, what low-level programming language do I need to know? Is this a combination of electrical and software engineering knowledge? What are the books or resources I need? | hardware | electronics | behavior | null | null | null | open | What language do I use to program behavior for electronic devices?
===
It is very difficult to find information on programming hardware or electronic devices that are not an actual desktop computer, laptop or server. A few instances that I am speaking of are kid's toys like Bop It, or how about a control system for the home, or even something like Pleo or a mobile phone? I mean, if I want to program behavior into these electronic devices at the very core, what low-level programming language do I need to know? Is this a combination of electrical and software engineering knowledge? What are the books or resources I need? | 0 |
47,519 | 09/06/2008 14:52:07 | 3,206 | 08/27/2008 13:08:13 | 1 | 1 | How to make your website look the same on Linux | I have a fairly standards compliant XHTML+CSS site that looks great on all browsers on PC and Mac. The other day I saw it on FF3 on Linux and the letter spacing was slightly larger, throwing everything out of whack and causing unwanted wrapping and clipping of text. The CSS in question has
font-size: 11px;
font-family: Arial, Helvetica, sans-serif;
I know it's going with the generic sans-serif, whatever that maps to. If I add the following, the text scrunches up enough to be close to what I get on the other platforms:
letter-spacing: -1.5px;
but this would involve some nasty server-side OS sniffing. If there's a pure CSS solution to this I'd love to hear it.
The system in question is Ubuntu 7.04 but that is irrelevant as I'm looking to fix it for at least the majority of, if not all, Linux users. Of course asking the user to install a font is not an option! | linux | css | null | null | null | null | open | How to make your website look the same on Linux
===
I have a fairly standards compliant XHTML+CSS site that looks great on all browsers on PC and Mac. The other day I saw it on FF3 on Linux and the letter spacing was slightly larger, throwing everything out of whack and causing unwanted wrapping and clipping of text. The CSS in question has
font-size: 11px;
font-family: Arial, Helvetica, sans-serif;
I know it's going with the generic sans-serif, whatever that maps to. If I add the following, the text scrunches up enough to be close to what I get on the other platforms:
letter-spacing: -1.5px;
but this would involve some nasty server-side OS sniffing. If there's a pure CSS solution to this I'd love to hear it.
The system in question is Ubuntu 7.04 but that is irrelevant as I'm looking to fix it for at least the majority of, if not all, Linux users. Of course asking the user to install a font is not an option! | 0 |
47,521 | 09/06/2008 14:53:45 | 4,789 | 09/05/2008 15:45:19 | 11 | 2 | Using yield to iterate over a datareader might not close the connection? | Here is a sample code to retrieve data from a database using the yield keyword that I found in a few place while googling around :
public IEnumerable<object> ExecuteSelect(string commandText)
{
using (IDbConnection connection = CreateConnection())
{
using (IDbCommand cmd = CreateCommand(commandText, connection))
{
connection.Open();
using (IDbDataReader reader = cmd.ExecuteReader())
{
while(reader.Read())
{
yield return reader["SomeField"];
}
}
connection.Close();
}
}
}
Am I correct in thinking that in this sample code, the connection would not be closed if we do not iterate over the whole datareader ?
Here is an example that would not close the connection, if I understand yield correctly..
foreach(object obj in ExecuteSelect(commandText))
{
break;
}
For a db connection that might not be catastrophic, I suppose the GC would clean it up eventually, but what if instead of a connection it was a more critical resource? | .net-2.0 | yield | null | null | null | null | open | Using yield to iterate over a datareader might not close the connection?
===
Here is a sample code to retrieve data from a database using the yield keyword that I found in a few place while googling around :
public IEnumerable<object> ExecuteSelect(string commandText)
{
using (IDbConnection connection = CreateConnection())
{
using (IDbCommand cmd = CreateCommand(commandText, connection))
{
connection.Open();
using (IDbDataReader reader = cmd.ExecuteReader())
{
while(reader.Read())
{
yield return reader["SomeField"];
}
}
connection.Close();
}
}
}
Am I correct in thinking that in this sample code, the connection would not be closed if we do not iterate over the whole datareader ?
Here is an example that would not close the connection, if I understand yield correctly..
foreach(object obj in ExecuteSelect(commandText))
{
break;
}
For a db connection that might not be catastrophic, I suppose the GC would clean it up eventually, but what if instead of a connection it was a more critical resource? | 0 |
47,522 | 09/06/2008 14:53:55 | 4,901 | 09/06/2008 13:57:56 | 1 | 1 | Maven2 Eclipse integration | There seem to be two rival Eclipse plugins for integrating with Maven:
[m2Eclipse][1]
and
[q4e][2].
Has anyone recently evaluated or used these plugins?
Why would I choose one or the other?
[1]: http://m2eclipse.codehaus.org/
[2]: http://code.google.com/p/q4e/ | eclipse | maven2 | null | null | null | null | open | Maven2 Eclipse integration
===
There seem to be two rival Eclipse plugins for integrating with Maven:
[m2Eclipse][1]
and
[q4e][2].
Has anyone recently evaluated or used these plugins?
Why would I choose one or the other?
[1]: http://m2eclipse.codehaus.org/
[2]: http://code.google.com/p/q4e/ | 0 |
47,524 | 09/06/2008 14:57:31 | 292 | 08/04/2008 13:14:31 | 548 | 33 | JUnit for database code | I've been trying to implement unit testing and currently have some code that does the following:
1. query external database, loading
into a feed table
2. query a view,
which is a delta of my feed and data
tables, updating data table to match
feed table
my unit testing strategy is this:
I have a testing database that I am free to manipulate.
1. in setUP(), load some data into my testing db
2. run my code, using my testing db as the source
3. inspect the data table, checking for counts and the existence/non existence of certain records
4. clear testing db, loading in a different set of data
5. run code again
6. inspect data table again
Obviously I have the data sets that I load into the source db set up such that I know certain records should be added,deleted,updated, etc.
It seems like this is a bit cumbersome and there should be an easier way? any suggestions?
| java | database | unit-testing | junit | null | null | open | JUnit for database code
===
I've been trying to implement unit testing and currently have some code that does the following:
1. query external database, loading
into a feed table
2. query a view,
which is a delta of my feed and data
tables, updating data table to match
feed table
my unit testing strategy is this:
I have a testing database that I am free to manipulate.
1. in setUP(), load some data into my testing db
2. run my code, using my testing db as the source
3. inspect the data table, checking for counts and the existence/non existence of certain records
4. clear testing db, loading in a different set of data
5. run code again
6. inspect data table again
Obviously I have the data sets that I load into the source db set up such that I know certain records should be added,deleted,updated, etc.
It seems like this is a bit cumbersome and there should be an easier way? any suggestions?
| 0 |
47,526 | 09/06/2008 15:00:06 | 2,915 | 08/25/2008 23:15:12 | 1,552 | 70 | Simple encryption implementation in C | I've used a nice public domain [C++ DES implementation][1] before, but now I need some simple, basic, fast cryptography for an embedded system.
It doesn't need to be unbreakable, but it does need to thwart the casual hacker (ie, nothing that could be used for money or identity theft, but other personal info transferred on memory cards that could get lost or fall into the wrong hands).
Due to limited memory on this processor, I'd prefer something that can encode in discrete chunks (512 bytes or less).
The project is not open source, and won't be using libraries, which I know restricts options further - public domain being best, but BSD/apache/etc probably acceptable...
I'm hesitant to roll my own (as everyone should be).
-Adam
[1]: http://efgh.com/software/des.htm | c | encryption | intermediate | des | publicdomain | null | open | Simple encryption implementation in C
===
I've used a nice public domain [C++ DES implementation][1] before, but now I need some simple, basic, fast cryptography for an embedded system.
It doesn't need to be unbreakable, but it does need to thwart the casual hacker (ie, nothing that could be used for money or identity theft, but other personal info transferred on memory cards that could get lost or fall into the wrong hands).
Due to limited memory on this processor, I'd prefer something that can encode in discrete chunks (512 bytes or less).
The project is not open source, and won't be using libraries, which I know restricts options further - public domain being best, but BSD/apache/etc probably acceptable...
I'm hesitant to roll my own (as everyone should be).
-Adam
[1]: http://efgh.com/software/des.htm | 0 |
47,533 | 09/06/2008 15:07:36 | 3,110 | 08/26/2008 17:46:57 | 1 | 0 | Reading from a socket in C# | I am trying to read ASCII text response from a tcp open streaming socket
This is what I have come up with so far. I want to know what is the best way to do this that includes error handling. Should I also be checking the SocketError after the Receive call in the do loop?
IPEndPoint ep = new IPEndPoint(IPAddress.Parse("192.168.1.1"), 9000);
Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
sock.SendTimeout = 5000;
sock.ReceiveTimeout = 5000;
if (null != sock)
{
try
{
sock.Connect(ep);
if (sock.Connected)
{
// Blocks until send returns.
int bytesSent = sock.Send(buffer);
Console.WriteLine("Sent {0} bytes.", bytesSent);
//get the first 4 bytes, should be the lenngth of the rest of the response.
byte[] response = new byte[4];
int bytesRec = sock.Receive(response);
int totalBytesRec = 0;
if (4 == bytesRec)
{
int len = BitConverter.ToInt32(response, 0);
response = new byte[len];
Console.WriteLine("Trying to get {0} bytes.", len);
bytesRec = 0;
do
{
bytesRec = sock.Receive(response);
totalBytesRec += bytesRec;
forecast += Encoding.ASCII.GetString(response, 0, bytesRec);
} while (totalBytesRec < len && bytesRec > 0);
if (totalBytesRec != len)
throw new Exception("The total bytes recieved from manager did not equal the expected bytes");
}
else
throw new Exception("Unable to get the response size from the manager");
Console.WriteLine("Received {0} bytes.", totalBytesRec);
}
}
catch (SocketException ex)
{
Console.WriteLine("{0} Error code: {1}.", ex.Message, ex.ErrorCode);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
finally
{
sock.Shutdown(SocketShutdown.Both);
sock.Close();
}
} | c# | sockets | null | null | null | null | open | Reading from a socket in C#
===
I am trying to read ASCII text response from a tcp open streaming socket
This is what I have come up with so far. I want to know what is the best way to do this that includes error handling. Should I also be checking the SocketError after the Receive call in the do loop?
IPEndPoint ep = new IPEndPoint(IPAddress.Parse("192.168.1.1"), 9000);
Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
sock.SendTimeout = 5000;
sock.ReceiveTimeout = 5000;
if (null != sock)
{
try
{
sock.Connect(ep);
if (sock.Connected)
{
// Blocks until send returns.
int bytesSent = sock.Send(buffer);
Console.WriteLine("Sent {0} bytes.", bytesSent);
//get the first 4 bytes, should be the lenngth of the rest of the response.
byte[] response = new byte[4];
int bytesRec = sock.Receive(response);
int totalBytesRec = 0;
if (4 == bytesRec)
{
int len = BitConverter.ToInt32(response, 0);
response = new byte[len];
Console.WriteLine("Trying to get {0} bytes.", len);
bytesRec = 0;
do
{
bytesRec = sock.Receive(response);
totalBytesRec += bytesRec;
forecast += Encoding.ASCII.GetString(response, 0, bytesRec);
} while (totalBytesRec < len && bytesRec > 0);
if (totalBytesRec != len)
throw new Exception("The total bytes recieved from manager did not equal the expected bytes");
}
else
throw new Exception("Unable to get the response size from the manager");
Console.WriteLine("Received {0} bytes.", totalBytesRec);
}
}
catch (SocketException ex)
{
Console.WriteLine("{0} Error code: {1}.", ex.Message, ex.ErrorCode);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
finally
{
sock.Shutdown(SocketShutdown.Both);
sock.Close();
}
} | 0 |
47,535 | 09/06/2008 15:08:35 | 137 | 08/02/2008 10:46:12 | 2,089 | 120 | SQL to add column with default value - Access 2003 | Updating an old ASP/Access site for a client (and hating it) - I need SQL to add a column to an existing table and set a default value. Doesn't work - any ideas?
This works fine
ALTER TABLE documents ADD COLUMN membersOnly NUMBER
I want this to work:
ALTER TABLE documents ADD COLUMN membersOnly NUMBER DEFAULT 0
Have googled and seen instructions for default values work for other field types but I want to add number. Thanks! | sql | ms-access | null | null | null | null | open | SQL to add column with default value - Access 2003
===
Updating an old ASP/Access site for a client (and hating it) - I need SQL to add a column to an existing table and set a default value. Doesn't work - any ideas?
This works fine
ALTER TABLE documents ADD COLUMN membersOnly NUMBER
I want this to work:
ALTER TABLE documents ADD COLUMN membersOnly NUMBER DEFAULT 0
Have googled and seen instructions for default values work for other field types but I want to add number. Thanks! | 0 |
47,537 | 09/06/2008 15:08:57 | 1,965 | 08/19/2008 15:51:08 | 3,096 | 179 | C# Console? | Does anyone know if there is a c# Console app, similar to the Python or Ruby console? I know the whole "Compiled versus Interpreted" difference, but with C#'s reflection power I think it could be done.
| c# | .net | console | null | null | null | open | C# Console?
===
Does anyone know if there is a c# Console app, similar to the Python or Ruby console? I know the whole "Compiled versus Interpreted" difference, but with C#'s reflection power I think it could be done.
| 0 |
47,538 | 09/06/2008 15:09:10 | 4,910 | 09/06/2008 14:49:31 | 1 | 0 | Win32 HCURSOR | I am building a custom win32 control/widget and would like to change the cursor to a horizontal "splitter" symbol when hovering over a particular vertical line in the control. IE: I want to drag this vertical line (splitter bar) left and right (WEST and EAST).
Of the the system cursors (OCR_*), the only cursor that makes sense is the OCR_SIZEWE. Unfortunately, that is the big, awkward cursor the system uses when resizing a window. Instead, I am looking for the cursor that is about 20 pixels tall and around 3 or 4 pixel wide with two small arrows pointing left and right.
I can easily draw this and include it as a resource in my application but the cursor itself is so prevalent that I wanted to be sure it wasn't missing something.
For example: when you use the COM drag and drop mechanism (CLSID_DragDropHelper, IDropTarget, etc) you implicitly have access to the "drag" icon (little box under the pointer). I didn't see an explicit OCR_* constant for this guy ... so likewise, if I can't find this splitter cursor outright, I am wondering if it is part of a COM object or something else in the win32 lib. | c++ | winapi | native | null | null | null | open | Win32 HCURSOR
===
I am building a custom win32 control/widget and would like to change the cursor to a horizontal "splitter" symbol when hovering over a particular vertical line in the control. IE: I want to drag this vertical line (splitter bar) left and right (WEST and EAST).
Of the the system cursors (OCR_*), the only cursor that makes sense is the OCR_SIZEWE. Unfortunately, that is the big, awkward cursor the system uses when resizing a window. Instead, I am looking for the cursor that is about 20 pixels tall and around 3 or 4 pixel wide with two small arrows pointing left and right.
I can easily draw this and include it as a resource in my application but the cursor itself is so prevalent that I wanted to be sure it wasn't missing something.
For example: when you use the COM drag and drop mechanism (CLSID_DragDropHelper, IDropTarget, etc) you implicitly have access to the "drag" icon (little box under the pointer). I didn't see an explicit OCR_* constant for this guy ... so likewise, if I can't find this splitter cursor outright, I am wondering if it is part of a COM object or something else in the win32 lib. | 0 |
47,555 | 09/06/2008 15:24:24 | 4,890 | 09/06/2008 12:37:32 | 21 | 3 | Practical Experience using Stripes? | I am coming from an Enterprise Java background which involves a fairly heavyweight software stack, and have recently discovered the
[Stripes framework](http://www.stripesframework.org/); my initial impression is that this seems to do a good job of minimising the unpleasant parts of building a web application in Java.
Has anyone used Stripes for a project that has gone live? And can you share your experiences from the project? Also, did you consider any other technologies and (if so) why did you chose Stripes? | java | stripes | null | null | null | null | open | Practical Experience using Stripes?
===
I am coming from an Enterprise Java background which involves a fairly heavyweight software stack, and have recently discovered the
[Stripes framework](http://www.stripesframework.org/); my initial impression is that this seems to do a good job of minimising the unpleasant parts of building a web application in Java.
Has anyone used Stripes for a project that has gone live? And can you share your experiences from the project? Also, did you consider any other technologies and (if so) why did you chose Stripes? | 0 |
47,563 | 09/06/2008 15:30:34 | 4,013 | 09/01/2008 10:58:24 | 53 | 11 | How to code an iPhone app that will send predefined smses to predefined numbers? | Many people I am sure use a smart netbank that lets you transfer money from your savings account to your credit card account, or just ask for the saldo, using just SMS. I have been doing this for a few years now on my 10 year old nokia phone. It was a sad day when I discovered that the smart feature of storing the template sms (the transfer orders contain both account numbers and who remembers or wants to type that ..) is beyond the iphone. Really? No templates? Why? You got 16 gigabyte, im sure it's not that hard..
Ok so my question is either, can you inform me what I need and links to proper documentation for creating an app that will just let you store some sms templates and numbers and then with just a click or 3, send a transfer order.
Or, alternativly, can you build this and share it with me?
Or, links to existing apps that I havent found. | iphone | sms | null | null | null | null | open | How to code an iPhone app that will send predefined smses to predefined numbers?
===
Many people I am sure use a smart netbank that lets you transfer money from your savings account to your credit card account, or just ask for the saldo, using just SMS. I have been doing this for a few years now on my 10 year old nokia phone. It was a sad day when I discovered that the smart feature of storing the template sms (the transfer orders contain both account numbers and who remembers or wants to type that ..) is beyond the iphone. Really? No templates? Why? You got 16 gigabyte, im sure it's not that hard..
Ok so my question is either, can you inform me what I need and links to proper documentation for creating an app that will just let you store some sms templates and numbers and then with just a click or 3, send a transfer order.
Or, alternativly, can you build this and share it with me?
Or, links to existing apps that I havent found. | 0 |
47,589 | 09/06/2008 15:51:51 | 2,056 | 08/20/2008 01:28:00 | 121 | 2 | Can I detect and handle MySQL Warnings with PHP? | I'm dealing with a MySQL table that defines the JobName column as UNIQUE. If somebody tries to save a new Job to the database using a JobName that is already in the database, MySQL throws a warning.
I would like to be able to detect this warning, just like an error, in my PHP script and deal with it appropriately. Ideally I would like to know what kind of warning MySQL has thrown so that I can branch the code to handle it.
Is this possible? If not, is it because MySQL doesn't have this ability, PHP doesn't have this ability, or both?
Thanks in advance.
KN | mysql | warning | warnings | php | error-handling | null | open | Can I detect and handle MySQL Warnings with PHP?
===
I'm dealing with a MySQL table that defines the JobName column as UNIQUE. If somebody tries to save a new Job to the database using a JobName that is already in the database, MySQL throws a warning.
I would like to be able to detect this warning, just like an error, in my PHP script and deal with it appropriately. Ideally I would like to know what kind of warning MySQL has thrown so that I can branch the code to handle it.
Is this possible? If not, is it because MySQL doesn't have this ability, PHP doesn't have this ability, or both?
Thanks in advance.
KN | 0 |
47,605 | 09/06/2008 16:08:54 | 292 | 08/04/2008 13:14:31 | 549 | 33 | java String concatenation | I'm curious and wasn't sure, so i thought id ask:
assuming String a and b.
a+=b
a.concat(b)
Under the hood are they the same thing? | java | string | null | null | null | null | open | java String concatenation
===
I'm curious and wasn't sure, so i thought id ask:
assuming String a and b.
a+=b
a.concat(b)
Under the hood are they the same thing? | 0 |
47,612 | 09/06/2008 16:12:48 | 3,568 | 08/29/2008 06:19:36 | 1 | 3 | How to do C++ style destructors in C#? | I've got a C# class with a Dispose function via IDisposable. Its intended to be used inside a using block so the expensive resource it handles can be released right away.
Problem is that a bug occurred when an exception was thrown before Dispose was called, and the programmer neglected to use using or finally.
<rant><br/>
In C++, I never had to worry about this. The call to a class's destructor would be automatically inserted at the end of the object's scope. The only way to avoid that happening would be to use the new operator and hold the object behind a pointer, but that required extra work for the programmer isn't something they would do by accident, like forgetting to use using.
<br/></rant>
Is there anyway to for a using block to be automatically used in C#?
Many thanks.
| c# | using | dispose | idisposable | automatic | null | open | How to do C++ style destructors in C#?
===
I've got a C# class with a Dispose function via IDisposable. Its intended to be used inside a using block so the expensive resource it handles can be released right away.
Problem is that a bug occurred when an exception was thrown before Dispose was called, and the programmer neglected to use using or finally.
<rant><br/>
In C++, I never had to worry about this. The call to a class's destructor would be automatically inserted at the end of the object's scope. The only way to avoid that happening would be to use the new operator and hold the object behind a pointer, but that required extra work for the programmer isn't something they would do by accident, like forgetting to use using.
<br/></rant>
Is there anyway to for a using block to be automatically used in C#?
Many thanks.
| 0 |
47,625 | 09/06/2008 16:23:55 | 4,906 | 09/06/2008 14:21:25 | 16 | 1 | Simple third party Captcha I can add to my website. | Just something simple like showing an image and asking the user to type in the number on the image.
| captcha | null | null | null | null | null | open | Simple third party Captcha I can add to my website.
===
Just something simple like showing an image and asking the user to type in the number on the image.
| 0 |
47,639 | 09/06/2008 16:37:23 | 370,899 | 08/22/2008 12:32:04 | 66 | 8 | What are the advantages of installing programs in AppData like Google Chrome? | I just noticed that Chromium was installed in AppData in both Vista and XP. If Google does that and if other applications does this, than is that becuase there is some form of protection? Should we write installers that does the same thing as Google? | windows-installer | null | null | null | null | null | open | What are the advantages of installing programs in AppData like Google Chrome?
===
I just noticed that Chromium was installed in AppData in both Vista and XP. If Google does that and if other applications does this, than is that becuase there is some form of protection? Should we write installers that does the same thing as Google? | 0 |
47,656 | 09/06/2008 16:51:21 | 4,028 | 09/01/2008 13:10:12 | 11 | 1 | How do I do full-text searching in Ruby on Rails? | I would like to do full-text searching of data in my Ruby on Rails application. What options exist? | ruby-on-rails | full-text-search | null | null | null | null | open | How do I do full-text searching in Ruby on Rails?
===
I would like to do full-text searching of data in my Ruby on Rails application. What options exist? | 0 |
47,658 | 09/06/2008 16:52:32 | 4,910 | 09/06/2008 14:49:31 | 1 | 2 | Standards Document | I am with writing a coding standards document for a team of about 15 with a load of between 10 and 15 projects a year. Amongst other sections (which I may post here as I get to them) I am writing a section on code formatting. So to start with, I think it wise that, for whatever reason, we establish some basic, consistent code formatting/naming standards.
I've looked at roughly 10 projects written over the last 3 years from this team and I'm obviously finding a pretty wide range of styles. Contractors come in and out and at times, double the team size.
I am looking for a few suggestions for code formatting and naming standards that have really paid off ... but that can also really be justified. I think consistency and shared-patterns go a long way to making the code more maintainable ... but are there other things I ought to consider when defining said standards?
- How do you lineup parens? Do you follow the same paren guidelines when dealing with classes, methods, try catch blocks, switch statements, if else blocks etc.
- Do you line up fields on a column? Do you notate private variables with an underscore? Do you follow any naming conventions to make it easier to find particulars in a file? How do you order the members of your class?
What about suggestions for namespace, packaging or source code folder/organization standards? I tend to start with something like
<com|org|...>.<company>.<app>.<layer>.<function>.ClassName
and I'm curious to see if there are other more accepted practices that what I am accustomed to before I venture off dictating these standards. Links to standards published online would be great too - although I've done a bit of that already. | coding-style | null | null | null | null | null | open | Standards Document
===
I am with writing a coding standards document for a team of about 15 with a load of between 10 and 15 projects a year. Amongst other sections (which I may post here as I get to them) I am writing a section on code formatting. So to start with, I think it wise that, for whatever reason, we establish some basic, consistent code formatting/naming standards.
I've looked at roughly 10 projects written over the last 3 years from this team and I'm obviously finding a pretty wide range of styles. Contractors come in and out and at times, double the team size.
I am looking for a few suggestions for code formatting and naming standards that have really paid off ... but that can also really be justified. I think consistency and shared-patterns go a long way to making the code more maintainable ... but are there other things I ought to consider when defining said standards?
- How do you lineup parens? Do you follow the same paren guidelines when dealing with classes, methods, try catch blocks, switch statements, if else blocks etc.
- Do you line up fields on a column? Do you notate private variables with an underscore? Do you follow any naming conventions to make it easier to find particulars in a file? How do you order the members of your class?
What about suggestions for namespace, packaging or source code folder/organization standards? I tend to start with something like
<com|org|...>.<company>.<app>.<layer>.<function>.ClassName
and I'm curious to see if there are other more accepted practices that what I am accustomed to before I venture off dictating these standards. Links to standards published online would be great too - although I've done a bit of that already. | 0 |
47,676 | 09/06/2008 17:13:14 | 4,910 | 09/06/2008 14:49:31 | 1 | 2 | Tomcat vs Weblogic JNDI Lookup | The Weblogic servers we are using have been configured to allow JNDI datasource names like "appds".
For development (localhost), we might be running Tomcat and when declared in the <context> section of server.xml, Tomcat will hang JNDI datasources on "java:comp/env/jdbc/*" in the JNDI tree.
**Problem:** in Weblogic, the JNDI lookup is "appds" whilst in Tomcat, it seems that that I must provide the formal "java:comp/env/jdbc/appds". I'm afraid the Tomcat version is an implicit standard but unfortunately, I can't change Weblogic's config ... so that means we end up with two different spring config files (we're using spring 2.5) to facilitate the different environments.
Is there an elegant way to address this. Can I look JNDI names up directly in Tomcat? Can Spring take a name and look in both places? Google searches or suggestions would be great.
| java | tomcat | java-ee | jndi | weblogic | null | open | Tomcat vs Weblogic JNDI Lookup
===
The Weblogic servers we are using have been configured to allow JNDI datasource names like "appds".
For development (localhost), we might be running Tomcat and when declared in the <context> section of server.xml, Tomcat will hang JNDI datasources on "java:comp/env/jdbc/*" in the JNDI tree.
**Problem:** in Weblogic, the JNDI lookup is "appds" whilst in Tomcat, it seems that that I must provide the formal "java:comp/env/jdbc/appds". I'm afraid the Tomcat version is an implicit standard but unfortunately, I can't change Weblogic's config ... so that means we end up with two different spring config files (we're using spring 2.5) to facilitate the different environments.
Is there an elegant way to address this. Can I look JNDI names up directly in Tomcat? Can Spring take a name and look in both places? Google searches or suggestions would be great.
| 0 |
47,683 | 09/06/2008 17:33:00 | 3,098 | 08/26/2008 16:22:49 | 191 | 6 | Reconnecting JMS listener to JBossMQ | We have a Java listener that reads text messages off of a queue in JBossMQ. If we have to reboot JBoss, the listener will not reconnect and start reading messages again. We just get messages in the listener's log file every 2 minutes saying it can't connect. Is there something we're not setting in our code or in JBossMQ? I'm new to JMS so any help will be greatly appreciated. Thanks. | java | jboss | jms | jbossmq | null | null | open | Reconnecting JMS listener to JBossMQ
===
We have a Java listener that reads text messages off of a queue in JBossMQ. If we have to reboot JBoss, the listener will not reconnect and start reading messages again. We just get messages in the listener's log file every 2 minutes saying it can't connect. Is there something we're not setting in our code or in JBossMQ? I'm new to JMS so any help will be greatly appreciated. Thanks. | 0 |
47,685 | 09/06/2008 17:33:38 | 4,918 | 09/06/2008 15:54:41 | 1 | 3 | How can I reformat XAML efficiently? | Visual Studio 2008's XAML editor (SP1) cannot reformat the XML into a consistent style.
Which tools can I use to get a nicely formatted XAML file? Studio integration preferred. | .net | wpf | formatting | xaml | null | null | open | How can I reformat XAML efficiently?
===
Visual Studio 2008's XAML editor (SP1) cannot reformat the XML into a consistent style.
Which tools can I use to get a nicely formatted XAML file? Studio integration preferred. | 0 |
47,692 | 09/06/2008 17:57:51 | 2,455 | 08/22/2008 11:29:07 | 128 | 7 | How do I become "test infected" with TDD? | I keep reading about people who are "test infected", meaning that they don't just "get" TDD but also can't live without it. They've "had the makeover" as it were. The question is, how do I get like that? | unit-testing | testing | tdd | null | null | null | open | How do I become "test infected" with TDD?
===
I keep reading about people who are "test infected", meaning that they don't just "get" TDD but also can't live without it. They've "had the makeover" as it were. The question is, how do I get like that? | 0 |
47,701 | 09/06/2008 18:14:05 | 4,883 | 09/06/2008 10:24:59 | 1 | 0 | Is there a way to attach a debugger to a multi-threaded python process? | I'm trying to debug a deadlock in a multi-threaded python app after it has locked up. Is there a way to attach a debugger to inspect the state of the process? | python | debugging | null | null | null | null | open | Is there a way to attach a debugger to a multi-threaded python process?
===
I'm trying to debug a deadlock in a multi-threaded python app after it has locked up. Is there a way to attach a debugger to inspect the state of the process? | 0 |
47,703 | 09/06/2008 18:21:09 | 4,883 | 09/06/2008 10:24:59 | 1 | 0 | Multiple threads and performance on a single CPU. | Is here any performance benefit to using multiple threads on a computer with a single CPU that does not having hyperthreading? | performance | multithreading | null | null | null | null | open | Multiple threads and performance on a single CPU.
===
Is here any performance benefit to using multiple threads on a computer with a single CPU that does not having hyperthreading? | 0 |
47,707 | 09/06/2008 18:26:18 | 4,854 | 09/06/2008 01:43:05 | 1 | 2 | How to start coding the "Dining Philosophers Problem" simulation? | I'm not a beginner at C# but I really need to increase my understanding, so I've picked a classic deadlock problem to code to help teach myself some of the more advanced concepts of C#. The [Dining Philosophers Problem][1] seems like a good one, but I need a little help to get started. I know I need to approach the "diners" as objects, but to simulate the random delays between eating, should I look to threading with each diner in a separate thread? Do I need some kind of "master" to monitor all the actions? Any general design concept advice is welcome, but I'd like to do the grunt programming as an exercise. Thanks!
[1]: http://en.wikipedia.org/wiki/Dining_philosopher%27s_problem | c# | puzzle | deadlock | homework | null | null | open | How to start coding the "Dining Philosophers Problem" simulation?
===
I'm not a beginner at C# but I really need to increase my understanding, so I've picked a classic deadlock problem to code to help teach myself some of the more advanced concepts of C#. The [Dining Philosophers Problem][1] seems like a good one, but I need a little help to get started. I know I need to approach the "diners" as objects, but to simulate the random delays between eating, should I look to threading with each diner in a separate thread? Do I need some kind of "master" to monitor all the actions? Any general design concept advice is welcome, but I'd like to do the grunt programming as an exercise. Thanks!
[1]: http://en.wikipedia.org/wiki/Dining_philosopher%27s_problem | 0 |
47,708 | 09/06/2008 18:26:53 | 445,087 | 09/02/2008 17:25:48 | 11 | 3 | What are the best practices embedded systems development? | Embedded software development has its own set of unique development challenges. What best practices have you found that work and what practices do not work so well?
For example,
I have found that:
1. a well layered approach is essential for testing embedded systems. This allows some code to be unit tested on a more capable target such as a PC that would not easily be unit testable.
2. automated continuous integration / testing is not likely worth the effort. | embedded | null | null | null | null | null | open | What are the best practices embedded systems development?
===
Embedded software development has its own set of unique development challenges. What best practices have you found that work and what practices do not work so well?
For example,
I have found that:
1. a well layered approach is essential for testing embedded systems. This allows some code to be unit tested on a more capable target such as a PC that would not easily be unit testable.
2. automated continuous integration / testing is not likely worth the effort. | 0 |
47,709 | 09/06/2008 18:28:22 | 4,835 | 09/05/2008 20:35:57 | 1 | 0 | How does google make make those awesome PDF reports in Analytics and when you print a Google Doc etc? |
When you print from Google Docs (using the "print" link, not File/Print) you end up printing a nicely formated PDF file instead of relying on the print engine of the browser. Same is true for some of the reports in Google Analytics . . . the printed reports as PDF's are beautiful. How do they do that? I can't imagine they use something like Adobe Acrobat to facilitate it but maybe they do. I've seen some expensive HTML to PDF converters online from time to time but have never tired it. Any thoughts? | pdf | google | pdf-generation | null | null | null | open | How does google make make those awesome PDF reports in Analytics and when you print a Google Doc etc?
===
When you print from Google Docs (using the "print" link, not File/Print) you end up printing a nicely formated PDF file instead of relying on the print engine of the browser. Same is true for some of the reports in Google Analytics . . . the printed reports as PDF's are beautiful. How do they do that? I can't imagine they use something like Adobe Acrobat to facilitate it but maybe they do. I've seen some expensive HTML to PDF converters online from time to time but have never tired it. Any thoughts? | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.