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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6,208 | 08/08/2008 18:03:26 | 257 | 08/04/2008 07:30:01 | 162 | 22 | FF3 WinXP != FF3 Ubuntu - why? | I've got a website that I've just uploaded onto the interwebs, and it's displaying differently using Firefox 3.0.1 on Ubuntu and WinXP.
Two things I've noticed on Ubuntu:
1. The favicon is missing
2. The background color isn't displaying (it's set in the stylesheet)
What have I done wrong? The CSS file is being fetched under Ubuntu, so why isn't it applying all of the stylesheet, just the bits it likes? And why isn't the favicon displaying? Are they the same problem? | css | ubuntu | firefox | null | null | null | open | FF3 WinXP != FF3 Ubuntu - why?
===
I've got a website that I've just uploaded onto the interwebs, and it's displaying differently using Firefox 3.0.1 on Ubuntu and WinXP.
Two things I've noticed on Ubuntu:
1. The favicon is missing
2. The background color isn't displaying (it's set in the stylesheet)
What have I done wrong? The CSS file is being fetched under Ubuntu, so why isn't it applying all of the stylesheet, just the bits it likes? And why isn't the favicon displaying? Are they the same problem? | 0 |
6,210 | 08/08/2008 18:04:24 | 721 | 08/08/2008 11:28:03 | 46 | 10 | E-mail Notification's | In a .net system I'm building, there is a need for automated e-mail notifications. These should be editable by an admin. What's the easiest way to do this? SQL table and WYSIWIG for editing? | .net | email | null | null | null | null | open | E-mail Notification's
===
In a .net system I'm building, there is a need for automated e-mail notifications. These should be editable by an admin. What's the easiest way to do this? SQL table and WYSIWIG for editing? | 0 |
6,222 | 08/08/2008 18:17:50 | 235 | 08/03/2008 20:30:43 | 86 | 7 | Eclipse on win64 | Is anyone successfully using the latest 64-bit Ganymede release of Eclipse on Windows XP or Vista 64-bit?
Currently I run the normal Eclipse 3.4 distribution on a 32bit JDK and launch & compile my apps with a 64bit JDK. Our previous experience has been that the 64bit Eclipse distro is unstable for us, so I'm curious if anyone is using it successfully.
We are using JDK 1.6.0_05. | java | eclipse | null | null | null | null | open | Eclipse on win64
===
Is anyone successfully using the latest 64-bit Ganymede release of Eclipse on Windows XP or Vista 64-bit?
Currently I run the normal Eclipse 3.4 distribution on a 32bit JDK and launch & compile my apps with a 64bit JDK. Our previous experience has been that the 64bit Eclipse distro is unstable for us, so I'm curious if anyone is using it successfully.
We are using JDK 1.6.0_05. | 0 |
6,231 | 08/08/2008 18:30:39 | 770 | 08/08/2008 17:20:44 | 11 | 2 | Programming and multiple monitors | [Jeff Atwood][1] is often expounding the benefits of triple monitor setups for developers, and I have to say I agree with him. However, we are about to take on a good number of new developers and are hoping to kit them out with a nice development environment.
I was wondering, if given the opportunity, what you people would think of as the perfect setup - One, two, three or perhaps even four monitors! Try not to think about what you would like to have in order to show off (or play Warcaft on!) but rather, what do you think would offer the peak performance increase for your development activities.
[1]: http://www.codinghorror.com/blog/archives/000012.html | hardware | environment | null | null | null | 02/15/2012 01:04:47 | not constructive | Programming and multiple monitors
===
[Jeff Atwood][1] is often expounding the benefits of triple monitor setups for developers, and I have to say I agree with him. However, we are about to take on a good number of new developers and are hoping to kit them out with a nice development environment.
I was wondering, if given the opportunity, what you people would think of as the perfect setup - One, two, three or perhaps even four monitors! Try not to think about what you would like to have in order to show off (or play Warcaft on!) but rather, what do you think would offer the peak performance increase for your development activities.
[1]: http://www.codinghorror.com/blog/archives/000012.html | 4 |
6,267 | 08/08/2008 19:03:28 | 58 | 08/01/2008 13:56:33 | 1,603 | 71 | Hacking the windows file explorer | I'm so tired of not having tabbed browsing when navigating through windows explorer.
I've tried a few solutions in the past, but what I really want is just an extension/addon/plugin/something that lets me browse my file system with tabs.
Does anyone have any good solutions that they have found to do this? Alternatively, I'm willing to just code it myself, but I don't even know where to begin... Is there any way to legally modify/customize the windows explorer? What language, how do I get started?
I can already visualize the replies "no, you're screwed, switch to linux" (which doesn't have tabbed browsing either by the way)... | windows | hacking | customization | explorer | plugins | null | open | Hacking the windows file explorer
===
I'm so tired of not having tabbed browsing when navigating through windows explorer.
I've tried a few solutions in the past, but what I really want is just an extension/addon/plugin/something that lets me browse my file system with tabs.
Does anyone have any good solutions that they have found to do this? Alternatively, I'm willing to just code it myself, but I don't even know where to begin... Is there any way to legally modify/customize the windows explorer? What language, how do I get started?
I can already visualize the replies "no, you're screwed, switch to linux" (which doesn't have tabbed browsing either by the way)... | 0 |
6,284 | 08/08/2008 19:24:43 | 721 | 08/08/2008 11:28:03 | 48 | 11 | VS 2008 - Objects disappearing? | I've only been using VS 2008 Team Foundation for a few weeks. Over the last few days, I've noticed that sometimes one of my objects/controls on my page just disappears from intellisense. The project builds perfectly and the objects are still in the HTML, but I still can't find the object.
Any one else notice this? | visual-studio | teamfoundationserver | .net | null | null | null | open | VS 2008 - Objects disappearing?
===
I've only been using VS 2008 Team Foundation for a few weeks. Over the last few days, I've noticed that sometimes one of my objects/controls on my page just disappears from intellisense. The project builds perfectly and the objects are still in the HTML, but I still can't find the object.
Any one else notice this? | 0 |
6,301 | 08/08/2008 19:34:13 | 56 | 08/01/2008 13:53:45 | 1 | 2 | Why is Array.Length an int, and not an uint | Why is Array.Length an int, and not an uint. This bothers me (just a bit), because a length value can never by negative.
This also forced me to use an int for a length-property on my own class, because when you
specify an int-value, this needs to be cast explicity...
So the ultimate question is: is there any use for an unsigned int (uint)? Even Microsoft seems not to use them. | c# | .net | null | null | null | null | open | Why is Array.Length an int, and not an uint
===
Why is Array.Length an int, and not an uint. This bothers me (just a bit), because a length value can never by negative.
This also forced me to use an int for a length-property on my own class, because when you
specify an int-value, this needs to be cast explicity...
So the ultimate question is: is there any use for an unsigned int (uint)? Even Microsoft seems not to use them. | 0 |
6,325 | 08/08/2008 19:55:39 | 56 | 08/01/2008 13:53:45 | 13 | 3 | Why are unsigned int's not CLS compliant | Why are unsigned int's not CLS compliant. I start to think type-specification is just for performance, and not for correctness. | c# | .net | null | null | null | null | open | Why are unsigned int's not CLS compliant
===
Why are unsigned int's not CLS compliant. I start to think type-specification is just for performance, and not for correctness. | 0 |
6,326 | 08/08/2008 19:56:42 | 722 | 08/08/2008 11:37:05 | 21 | 5 | Haml: how do I set a dymanic class value? | I have the following html.erb code that I'm looking to move to Haml:
<span class="<%= item.dashboardstatus.cssclass %>" ><%= item.dashboardstatus.status %></span>
What it does is associate the CSS class of the currently assigned status to the span.
How is this done in Haml? I'm sure I'm missing something really simple. | ruby-on-rails | haml | null | null | null | null | open | Haml: how do I set a dymanic class value?
===
I have the following html.erb code that I'm looking to move to Haml:
<span class="<%= item.dashboardstatus.cssclass %>" ><%= item.dashboardstatus.status %></span>
What it does is associate the CSS class of the currently assigned status to the span.
How is this done in Haml? I'm sure I'm missing something really simple. | 0 |
6,327 | 08/08/2008 19:56:57 | 396 | 08/05/2008 12:46:44 | 101 | 9 | What are your programming excercises? | Do you have any programming "exercises" that you do in order to hone your programming skills? Anything from FizzBuzz to more complicated problems to get you thinking about real-life scenarios that you may encounter? | homework | test | fizzbuzz | null | null | 12/10/2011 05:59:25 | not constructive | What are your programming excercises?
===
Do you have any programming "exercises" that you do in order to hone your programming skills? Anything from FizzBuzz to more complicated problems to get you thinking about real-life scenarios that you may encounter? | 4 |
6,340 | 08/08/2008 20:07:43 | 58 | 08/01/2008 13:56:33 | 1,610 | 72 | Multiple foreign keys? | I've got a table that is supposed to track days and costs for shipping product from one vendor to another. We (brilliantly :p) stored both the shipping vendors (FedEx, UPS) with the product handling vendors (Think... Dunder Mifflin) in a "VENDOR" table. So, I have three columns in my SHIPPING_DETAILS table that all reference VENDOR.no. For some reason MySQL isn't letting me define all three as foreign keys. Any ideas?
<pre>
CREATE TABLE SHIPPING_GRID(
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT 'Unique ID for each row',
shipping_vendor_no INT(6) NOT NULL COMMENT 'Foreign key to VENDOR.no for the shipping vendor (vendors_type must be 3)',
start_vendor_no INT(6) NOT NULL COMMENT 'Foreign key to VENDOR.no for the vendor being shipped from',
end_vendor_no INT(6) NOT NULL COMMENT 'Foreign key to the VENDOR.no for the vendor being shipped to',
shipment_duration INT(1) DEFAULT 1 COMMENT 'Duration in whole days shipment will take',
price FLOAT(5,5) NOT NULL COMMENT 'Price in US dollars per shipment lbs (down to 5 decimal places)',
is_flat_rate TINYINT(1) DEFAULT 0 COMMENT '1 if is flat rate regardless of weight, 0 if price is by lbs',
PRIMARY KEY (id),
INDEX (shipping_vendor_no),
INDEX (start_vendor_no),
INDEX (end_vendor_no),
FOREIGN KEY (shipping_vendor_no) REFERENCES VENDOR (no),
FOREIGN KEY (start_vendor_no) REFERENCES VENDOR (no),
FOREIGN KEY (end_vendor_no) REFERENCES VENDOR (no)
) TYPE = INNODB;</pre> | sql | mysql | foreignkeys | null | null | null | open | Multiple foreign keys?
===
I've got a table that is supposed to track days and costs for shipping product from one vendor to another. We (brilliantly :p) stored both the shipping vendors (FedEx, UPS) with the product handling vendors (Think... Dunder Mifflin) in a "VENDOR" table. So, I have three columns in my SHIPPING_DETAILS table that all reference VENDOR.no. For some reason MySQL isn't letting me define all three as foreign keys. Any ideas?
<pre>
CREATE TABLE SHIPPING_GRID(
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT 'Unique ID for each row',
shipping_vendor_no INT(6) NOT NULL COMMENT 'Foreign key to VENDOR.no for the shipping vendor (vendors_type must be 3)',
start_vendor_no INT(6) NOT NULL COMMENT 'Foreign key to VENDOR.no for the vendor being shipped from',
end_vendor_no INT(6) NOT NULL COMMENT 'Foreign key to the VENDOR.no for the vendor being shipped to',
shipment_duration INT(1) DEFAULT 1 COMMENT 'Duration in whole days shipment will take',
price FLOAT(5,5) NOT NULL COMMENT 'Price in US dollars per shipment lbs (down to 5 decimal places)',
is_flat_rate TINYINT(1) DEFAULT 0 COMMENT '1 if is flat rate regardless of weight, 0 if price is by lbs',
PRIMARY KEY (id),
INDEX (shipping_vendor_no),
INDEX (start_vendor_no),
INDEX (end_vendor_no),
FOREIGN KEY (shipping_vendor_no) REFERENCES VENDOR (no),
FOREIGN KEY (start_vendor_no) REFERENCES VENDOR (no),
FOREIGN KEY (end_vendor_no) REFERENCES VENDOR (no)
) TYPE = INNODB;</pre> | 0 |
6,361 | 08/08/2008 20:41:05 | 568 | 08/06/2008 19:50:58 | 61 | 6 | Interview Programming Questions - In house Exam | I have a company that would like to bring me in to serve me an hour long exam. No resources other than a pencil and paper. I really couldn't get any sort of feedback on the type of exam (implementation or generic) beside that it would test a few specific areas.
Have you done anything like this? What sort of questions did they ask? What's a good way to prepare? I'll probably go in a couple weeks before school starts back up.
A time sensitive exam structure is a weak point for me, so what should I absolutely focus down on?
An advance thanks goes to everybody who provide their time. | c++ | null | null | null | null | 12/02/2011 16:15:42 | not constructive | Interview Programming Questions - In house Exam
===
I have a company that would like to bring me in to serve me an hour long exam. No resources other than a pencil and paper. I really couldn't get any sort of feedback on the type of exam (implementation or generic) beside that it would test a few specific areas.
Have you done anything like this? What sort of questions did they ask? What's a good way to prepare? I'll probably go in a couple weeks before school starts back up.
A time sensitive exam structure is a weak point for me, so what should I absolutely focus down on?
An advance thanks goes to everybody who provide their time. | 4 |
6,369 | 08/08/2008 20:48:29 | 779 | 08/08/2008 20:48:29 | 1 | 0 | how to pass a comma seperated list to a stored procedure? | So I have a Sybase stored proc that takes 1 parameter that's a comma separated list of strings and runs a query with in in an IN() clause:
CREATE PROCEDURE getSomething @keyList varchar(4096)
AS
SELECT * FROM mytbl WHERE name IN (@keyList)
How do I call my stored proc with more than 1 value in the list?
So far I've tried
exec getSomething 'John' -- works but only 1 value
exec getSomething 'John','Tom' -- doesn't work - expects two variables
exec getSomething "'John','Tom'" -- doesn't work - doesn't find anything
exec getSomething '"John","Tom"' -- doesn't work - doesn't find anything
exec getSomething '\'John\',\'Tom\'' -- doesn't work - syntax error | sql | sybase | null | null | null | null | open | how to pass a comma seperated list to a stored procedure?
===
So I have a Sybase stored proc that takes 1 parameter that's a comma separated list of strings and runs a query with in in an IN() clause:
CREATE PROCEDURE getSomething @keyList varchar(4096)
AS
SELECT * FROM mytbl WHERE name IN (@keyList)
How do I call my stored proc with more than 1 value in the list?
So far I've tried
exec getSomething 'John' -- works but only 1 value
exec getSomething 'John','Tom' -- doesn't work - expects two variables
exec getSomething "'John','Tom'" -- doesn't work - doesn't find anything
exec getSomething '"John","Tom"' -- doesn't work - doesn't find anything
exec getSomething '\'John\',\'Tom\'' -- doesn't work - syntax error | 0 |
6,371 | 08/08/2008 20:50:02 | 763 | 08/08/2008 16:17:13 | 8 | 1 | How do you manage databases in development, test, and production? | I've had a hard time trying to find good examples of how to manage database schemas and data between development, test, and production servers.
Here's our setup. Each developer has a virtual machine running our app and the MySQL database. It is their personal sandbox to do whatever they want. Currently, developers will make a change to the SQL schema and do a dump of the database to a text file that they commit into SVN.
We're wanting to deploy a continuous integration development server that will always be running the latest committed code. If we do that now, it will reload the database from SVN for each build.
We have a test (virtual) server that runs "release candidates." Deploying to the test server is currently a very manual process, and usually involves me loading the latest SQL from SVN and tweaking it. Also, the data on the test server is inconsistent. You end up with whatever test data the last developer to commit had on his sandbox server.
Where everything breaks down is the deployment to production. Since we can't overwrite the live data with test data, this involves manually re-creating all the schema changes. If there were a large number of schema changes or conversion scripts to manipulate the data, this can get really hairy.
If the problem was just the schema, It'd be an easier problem, but there is "base" data in the database that is updated during development as well, such as meta-data in security and permissions tables.
This is the biggest barrier I see in moving toward continuous integration and one-step-builds. How do ***you*** solve it? | mysql | svn | bestpractices | null | null | null | open | How do you manage databases in development, test, and production?
===
I've had a hard time trying to find good examples of how to manage database schemas and data between development, test, and production servers.
Here's our setup. Each developer has a virtual machine running our app and the MySQL database. It is their personal sandbox to do whatever they want. Currently, developers will make a change to the SQL schema and do a dump of the database to a text file that they commit into SVN.
We're wanting to deploy a continuous integration development server that will always be running the latest committed code. If we do that now, it will reload the database from SVN for each build.
We have a test (virtual) server that runs "release candidates." Deploying to the test server is currently a very manual process, and usually involves me loading the latest SQL from SVN and tweaking it. Also, the data on the test server is inconsistent. You end up with whatever test data the last developer to commit had on his sandbox server.
Where everything breaks down is the deployment to production. Since we can't overwrite the live data with test data, this involves manually re-creating all the schema changes. If there were a large number of schema changes or conversion scripts to manipulate the data, this can get really hairy.
If the problem was just the schema, It'd be an easier problem, but there is "base" data in the database that is updated during development as well, such as meta-data in security and permissions tables.
This is the biggest barrier I see in moving toward continuous integration and one-step-builds. How do ***you*** solve it? | 0 |
6,373 | 08/08/2008 20:53:21 | 56 | 08/01/2008 13:53:45 | 25 | 4 | What's the difference in closure style | There are two popular closure styles in javascript. The first I call *anonymous constructor*:
new function() {
var code...
}
and the *inline executed function*:
(function() {
var code...
})();
are there differences in behaviour between those two? Is one "better" over the other? | javascript | null | null | null | null | null | open | What's the difference in closure style
===
There are two popular closure styles in javascript. The first I call *anonymous constructor*:
new function() {
var code...
}
and the *inline executed function*:
(function() {
var code...
})();
are there differences in behaviour between those two? Is one "better" over the other? | 0 |
6,378 | 08/08/2008 20:58:11 | 326 | 08/04/2008 16:59:58 | 31 | 7 | what client(s) should be targeted in implementing an iCalendar export for events? | [http://en.wikipedia.org/wiki/ICalendar][1]
I'm working to implement an export feature for events. The link above lists tons of clients that support the ICalendar standard, but the "three big ones" I can see are Apple's iCal, Microsoft's Outlook, and Google's Gmail.
I'm starting to get the feeling that each of these client implement different parts of the "standard", and I'm unsure of what pieces of information we should be trying to export from the application so that someone can put it on their calendar (especially around recurrence).
For example, from what I understand Outlook doesn't support daily recurrence (an event happens more than once per day).
Could any of you provide guidance of the "happy medium" here from a features implementation standpoint?
Secondary question, if we decide to cut features from the export (such as daily recurrence) because it isn't supported in Outlook, should we support it in the application as well? (it is a general purpose event scheduling application, with no business specific use in mind...so we really are looking for the happy medium).
Thanks,
Ian
[1]: http://en.wikipedia.org/wiki/ICalendar | icalendar | outlook | ical | gmail | recurrence | null | open | what client(s) should be targeted in implementing an iCalendar export for events?
===
[http://en.wikipedia.org/wiki/ICalendar][1]
I'm working to implement an export feature for events. The link above lists tons of clients that support the ICalendar standard, but the "three big ones" I can see are Apple's iCal, Microsoft's Outlook, and Google's Gmail.
I'm starting to get the feeling that each of these client implement different parts of the "standard", and I'm unsure of what pieces of information we should be trying to export from the application so that someone can put it on their calendar (especially around recurrence).
For example, from what I understand Outlook doesn't support daily recurrence (an event happens more than once per day).
Could any of you provide guidance of the "happy medium" here from a features implementation standpoint?
Secondary question, if we decide to cut features from the export (such as daily recurrence) because it isn't supported in Outlook, should we support it in the application as well? (it is a general purpose event scheduling application, with no business specific use in mind...so we really are looking for the happy medium).
Thanks,
Ian
[1]: http://en.wikipedia.org/wiki/ICalendar | 0 |
6,392 | 08/08/2008 21:24:01 | 122 | 08/02/2008 07:56:07 | 1,278 | 69 | Java Time Zone is messed up | I am running a Tomcat application, and I need to display some time values. Unfortunately, the time is coming up an hour off. I looked into it and discovered that my default TimeZone is being set to:
sun.util.calendar.ZoneInfo[id="GMT-08:00",
offset=-28800000,dstSavings=0,useDaylight=false,
transitions=0,lastRule=null]
Rather than the Pacific time zone. This is further indicated when I try to print the default time zone's [display name][1], and it comes up "GMT-08:00", which seems to indicate to me that it is not correctly set to the US Pacific time zone. I am running on Ubuntu Hardy Heron, upgraded from Gutsy Gibbon.
Is there a configuration file I can update to tell the JRE to use Pacific with all the associated daylight savings time information? The time on my machine shows correctly, so it doesn't seem to be an OS-wide misconfiguration.
[1]: http://java.sun.com/j2se/1.5.0/docs/api/java/util/TimeZone.html#getDisplayName() | java | timezone | null | null | null | null | open | Java Time Zone is messed up
===
I am running a Tomcat application, and I need to display some time values. Unfortunately, the time is coming up an hour off. I looked into it and discovered that my default TimeZone is being set to:
sun.util.calendar.ZoneInfo[id="GMT-08:00",
offset=-28800000,dstSavings=0,useDaylight=false,
transitions=0,lastRule=null]
Rather than the Pacific time zone. This is further indicated when I try to print the default time zone's [display name][1], and it comes up "GMT-08:00", which seems to indicate to me that it is not correctly set to the US Pacific time zone. I am running on Ubuntu Hardy Heron, upgraded from Gutsy Gibbon.
Is there a configuration file I can update to tell the JRE to use Pacific with all the associated daylight savings time information? The time on my machine shows correctly, so it doesn't seem to be an OS-wide misconfiguration.
[1]: http://java.sun.com/j2se/1.5.0/docs/api/java/util/TimeZone.html#getDisplayName() | 0 |
6,406 | 08/08/2008 21:39:04 | 576 | 08/06/2008 21:34:52 | 8 | 2 | How to access .Net element on Master page from a Content page? | Is it possible to access an element on a Master page from the page loaded within the ContentPlaceHolder for the master?
I have a ListView that lists people's names in a navigation area on the Master page. I would like to update the ListView after a person has been added to the table that the ListView is data bound to. The ListView currently does not update it's values until the cache is reloaded. We have found that just re-running the ListView.DataBind() will update a listview's contents. We have not been able to run the ListView.DataBind() on a page that uses the Master page.
Below is a sample of what I wanted to do but a compiler error says "PeopleListView does not exist in the current context".
GIS.master - Where ListView resides
...<asp:ListView ID="PeopleListView"...
GISInput_People.aspx - Uses GIS.master as it's master page
GISInput_People.aspx.cs
AddNewPerson()
{
// Add person to table
....
// Update Person List
PeopleListView.DataBind();
...
}
What would be the best way to resolve an issue like this in C# .Net? | c# | .net | visual-studio | null | null | null | open | How to access .Net element on Master page from a Content page?
===
Is it possible to access an element on a Master page from the page loaded within the ContentPlaceHolder for the master?
I have a ListView that lists people's names in a navigation area on the Master page. I would like to update the ListView after a person has been added to the table that the ListView is data bound to. The ListView currently does not update it's values until the cache is reloaded. We have found that just re-running the ListView.DataBind() will update a listview's contents. We have not been able to run the ListView.DataBind() on a page that uses the Master page.
Below is a sample of what I wanted to do but a compiler error says "PeopleListView does not exist in the current context".
GIS.master - Where ListView resides
...<asp:ListView ID="PeopleListView"...
GISInput_People.aspx - Uses GIS.master as it's master page
GISInput_People.aspx.cs
AddNewPerson()
{
// Add person to table
....
// Update Person List
PeopleListView.DataBind();
...
}
What would be the best way to resolve an issue like this in C# .Net? | 0 |
6,414 | 08/08/2008 21:49:01 | 357 | 08/05/2008 01:29:23 | 455 | 27 | C# loop - break vs. continue | In a C# (feel free to answer for other languages) loop, what's the difference between break and continue as a means to leave the structure of the loop, and go to the next iteration?
Example:
foreach (DataRow row in myTable.Rows)
{
if (someConditionEvalsToTrue)
{
break; //what's the difference between this and continue ?
//continue;
}
} | c# | language-agnostic | loop | foreach | null | null | open | C# loop - break vs. continue
===
In a C# (feel free to answer for other languages) loop, what's the difference between break and continue as a means to leave the structure of the loop, and go to the next iteration?
Example:
foreach (DataRow row in myTable.Rows)
{
if (someConditionEvalsToTrue)
{
break; //what's the difference between this and continue ?
//continue;
}
} | 0 |
6,426 | 08/08/2008 22:06:06 | 680 | 08/07/2008 17:29:04 | 48 | 4 | Graphing JavaScript Library | I'm creating a web application on Google App Engine for fun and I'd like to include graphs so users can see some stats. Are there any free (either as in beer or speech) JavaScript libraries that can take a table or make some AJAX call and display a graph? | javascript | ajax | webapp | graph | google-app-engine | null | open | Graphing JavaScript Library
===
I'm creating a web application on Google App Engine for fun and I'd like to include graphs so users can see some stats. Are there any free (either as in beer or speech) JavaScript libraries that can take a table or make some AJAX call and display a graph? | 0 |
6,430 | 08/08/2008 22:08:29 | 785 | 08/08/2008 22:08:29 | 1 | 0 | WinForms DataGrid: How to programmatically iterate rows? | I'm suddenly back to WinForms, after years of web development, and am having trouble with something that should be simple. I have an ArrayList of business objects bound to a Windows Forms DataGrid. I'd like the user to be able to edit the cells, and when finished, press a Save button. At that point I'd like to iterate the all the rows and columns in the DataGrid to find any changes, and save them to the database. But I can't find a way to access the DataGrid rows.
I'll also want to validate individual cells real time, as they are edited, but I'm pretty sure that can be done. (Maybe not with an ArrayList as the DataSource?) But as for iterating the DataGrid, I'm quite surprised it doesn't seem possible.
Must I really stuff my business objects data into datatables in order to use the datagrid?
Thanks,
Mike | winforms | null | null | null | null | null | open | WinForms DataGrid: How to programmatically iterate rows?
===
I'm suddenly back to WinForms, after years of web development, and am having trouble with something that should be simple. I have an ArrayList of business objects bound to a Windows Forms DataGrid. I'd like the user to be able to edit the cells, and when finished, press a Save button. At that point I'd like to iterate the all the rows and columns in the DataGrid to find any changes, and save them to the database. But I can't find a way to access the DataGrid rows.
I'll also want to validate individual cells real time, as they are edited, but I'm pretty sure that can be done. (Maybe not with an ArrayList as the DataSource?) But as for iterating the DataGrid, I'm quite surprised it doesn't seem possible.
Must I really stuff my business objects data into datatables in order to use the datagrid?
Thanks,
Mike | 0 |
6,440 | 08/08/2008 22:32:01 | 560 | 08/06/2008 17:55:23 | 349 | 17 | .NET 3.5 Redistributable -- 200 MB? Other options? | I've been using a lot of new .NET 3.5 features in the work that I've been doing, lately. The application that I'm building is intended for distribution among consumers who will probably not have the latest version (or perhaps *any version*) of the .NET framework on their machines.
I went to go [download the .NET 3.5 redistributable package][1] only to find out that it's almost ***200 MB!*** This is unacceptable for my application, because it's supposed to be a quick and painless consumer application that installs quickly and keeps a low profile on the user's machine. For users that have .NET 3.5 already installed, our binary downloads have been instantaneous, so far. This 200 MB gorilla will more than quadruple the size of the download. Is there any other option than this redistributable package that I can use to make sure the framework is on the machine that won't take the user out of our "quick and painless" workflow? Our target time from beginning of download to finalizing the install is less than two minutes. Is it just not possible for someone who doesn't already have .NET installed?
[1]: http://www.microsoft.com/downloads/details.aspx?FamilyId=333325FD-AE52-4E35-B531-508D977D32A6&displaylang=en | .net | redistributable | null | null | null | null | open | .NET 3.5 Redistributable -- 200 MB? Other options?
===
I've been using a lot of new .NET 3.5 features in the work that I've been doing, lately. The application that I'm building is intended for distribution among consumers who will probably not have the latest version (or perhaps *any version*) of the .NET framework on their machines.
I went to go [download the .NET 3.5 redistributable package][1] only to find out that it's almost ***200 MB!*** This is unacceptable for my application, because it's supposed to be a quick and painless consumer application that installs quickly and keeps a low profile on the user's machine. For users that have .NET 3.5 already installed, our binary downloads have been instantaneous, so far. This 200 MB gorilla will more than quadruple the size of the download. Is there any other option than this redistributable package that I can use to make sure the framework is on the machine that won't take the user out of our "quick and painless" workflow? Our target time from beginning of download to finalizing the install is less than two minutes. Is it just not possible for someone who doesn't already have .NET installed?
[1]: http://www.microsoft.com/downloads/details.aspx?FamilyId=333325FD-AE52-4E35-B531-508D977D32A6&displaylang=en | 0 |
6,441 | 08/08/2008 22:33:19 | 232 | 08/03/2008 20:02:07 | 6 | 6 | HTML, Javascript, enabling disabled radio buttons | The following code works great in IE, but not in FF or Safari. I can't for the life of me work out why. The code is *supposed* to disable radio buttons if you select the "Disable 2 radio buttons" option. It should enable the radio buttons if you select the "Enable both radio buttons" option. These both work...
However, if you don't use your mouse to move between the 2 options ("Enable..." and "Disable...") then the radio buttons do not appear to be disabled or enabled correctly, until you click anywhere else on the page (not on the radio buttons themselves).
If anyone has time/is curious/feeling helpful, please paste the code below into an html page and load it up in a browser. It works great in IE, but the problem manifests itself in FF (3 in my case) and Safari, all on Windows XP.
<html>
<head>
<script language="javascript">
function SetLocationOptions()
{
var frmTemp = document.frm;
var selTemp = frmTemp.user;
if(selTemp.selectedIndex >= 0)
{
var myOpt = selTemp.options[selTemp.selectedIndex];
if(myOpt.attributes[0].nodeValue == '1')
{
frmTemp.transfer_to[0].disabled = true;
frmTemp.transfer_to[1].disabled = true;
frmTemp.transfer_to[2].checked = true;
} else {
frmTemp.transfer_to[0].disabled = false;
frmTemp.transfer_to[1].disabled = false;
}
}
}
</script>
</head>
<body>
<form name="frm" action="coopfunds_transfer_request.asp" method="post">
<select name="user" onchange="javascript: SetLocationOptions()">
<option value="" />Choose One
<option value="58" user_is_tsm="0" />Enable both radio buttons
<option value="157" user_is_tsm="1" />Disable 2 radio buttons
</select><br /><br />
<input type="radio" name="transfer_to" value="fund_amount1" />Premium
<input type="radio" name="transfer_to" value="fund_amount2" />Other
<input type="radio" name="transfer_to" value="both" CHECKED />Both
<br /><br />
<input type="button" class="buttonStyle" value="Submit Request" />
</form>
</body>
</html> | javascript | html | inputradio | null | null | null | open | HTML, Javascript, enabling disabled radio buttons
===
The following code works great in IE, but not in FF or Safari. I can't for the life of me work out why. The code is *supposed* to disable radio buttons if you select the "Disable 2 radio buttons" option. It should enable the radio buttons if you select the "Enable both radio buttons" option. These both work...
However, if you don't use your mouse to move between the 2 options ("Enable..." and "Disable...") then the radio buttons do not appear to be disabled or enabled correctly, until you click anywhere else on the page (not on the radio buttons themselves).
If anyone has time/is curious/feeling helpful, please paste the code below into an html page and load it up in a browser. It works great in IE, but the problem manifests itself in FF (3 in my case) and Safari, all on Windows XP.
<html>
<head>
<script language="javascript">
function SetLocationOptions()
{
var frmTemp = document.frm;
var selTemp = frmTemp.user;
if(selTemp.selectedIndex >= 0)
{
var myOpt = selTemp.options[selTemp.selectedIndex];
if(myOpt.attributes[0].nodeValue == '1')
{
frmTemp.transfer_to[0].disabled = true;
frmTemp.transfer_to[1].disabled = true;
frmTemp.transfer_to[2].checked = true;
} else {
frmTemp.transfer_to[0].disabled = false;
frmTemp.transfer_to[1].disabled = false;
}
}
}
</script>
</head>
<body>
<form name="frm" action="coopfunds_transfer_request.asp" method="post">
<select name="user" onchange="javascript: SetLocationOptions()">
<option value="" />Choose One
<option value="58" user_is_tsm="0" />Enable both radio buttons
<option value="157" user_is_tsm="1" />Disable 2 radio buttons
</select><br /><br />
<input type="radio" name="transfer_to" value="fund_amount1" />Premium
<input type="radio" name="transfer_to" value="fund_amount2" />Other
<input type="radio" name="transfer_to" value="both" CHECKED />Both
<br /><br />
<input type="button" class="buttonStyle" value="Submit Request" />
</form>
</body>
</html> | 0 |
6,459 | 08/08/2008 23:10:17 | 573 | 08/06/2008 21:00:42 | 38 | 9 | How to enter an existing project? | Lately I've been thinking a lot about the best way to enter an existing project fast.
I've written some of my thoughts [here][1], and would really like to hear advice from other people.
What are the things you find a must?
I'm especially interested with open source projects, if there's any difference.
[1]: http://codedump.wordpress.com/2008/07/31/software-project-learning-process/ | untagged | null | null | null | null | null | open | How to enter an existing project?
===
Lately I've been thinking a lot about the best way to enter an existing project fast.
I've written some of my thoughts [here][1], and would really like to hear advice from other people.
What are the things you find a must?
I'm especially interested with open source projects, if there's any difference.
[1]: http://codedump.wordpress.com/2008/07/31/software-project-learning-process/ | 0 |
6,467 | 08/08/2008 23:24:02 | 527 | 08/06/2008 14:44:09 | 87 | 18 | Date arithmetic in Unix shell scripts | I need to do date arithmetic in Unix shell scripts that I use to control the execution of third party programs.
I'm using a function to increment a day and another to decrement:
<pre>
IncrementaDia(){
echo $1 | awk '
BEGIN {
diasDelMes[1] = 31
diasDelMes[2] = 28
diasDelMes[3] = 31
diasDelMes[4] = 30
diasDelMes[5] = 31
diasDelMes[6] = 30
diasDelMes[7] = 31
diasDelMes[8] = 31
diasDelMes[9] = 30
diasDelMes[10] = 31
diasDelMes[11] = 30
diasDelMes[12] = 31
}
{
anio=substr($1,1,4)
mes=substr($1,5,2)
dia=substr($1,7,2)
if((anio % 4 == 0 && anio % 100 != 0) || anio % 400 == 0)
{
diasDelMes[2] = 29;
}
if( dia == diasDelMes[int(mes)] ) {
if( int(mes) == 12 ) {
anio = anio + 1
mes = 1
dia = 1
} else {
mes = mes + 1
dia = 1
}
} else {
dia = dia + 1
}
}
END {
printf("%04d%02d%02d", anio, mes, dia)
}
'
}
if [ $# -eq 1 ]; then
tomorrow=$1
else
today=$(date +"%Y%m%d")
tomorrow=$(IncrementaDia $hoy)
fi
</pre>
but now I need to do more complex arithmetic.
What it's the best and more compatible way to do this? | unix | shell | scripting | math | null | null | open | Date arithmetic in Unix shell scripts
===
I need to do date arithmetic in Unix shell scripts that I use to control the execution of third party programs.
I'm using a function to increment a day and another to decrement:
<pre>
IncrementaDia(){
echo $1 | awk '
BEGIN {
diasDelMes[1] = 31
diasDelMes[2] = 28
diasDelMes[3] = 31
diasDelMes[4] = 30
diasDelMes[5] = 31
diasDelMes[6] = 30
diasDelMes[7] = 31
diasDelMes[8] = 31
diasDelMes[9] = 30
diasDelMes[10] = 31
diasDelMes[11] = 30
diasDelMes[12] = 31
}
{
anio=substr($1,1,4)
mes=substr($1,5,2)
dia=substr($1,7,2)
if((anio % 4 == 0 && anio % 100 != 0) || anio % 400 == 0)
{
diasDelMes[2] = 29;
}
if( dia == diasDelMes[int(mes)] ) {
if( int(mes) == 12 ) {
anio = anio + 1
mes = 1
dia = 1
} else {
mes = mes + 1
dia = 1
}
} else {
dia = dia + 1
}
}
END {
printf("%04d%02d%02d", anio, mes, dia)
}
'
}
if [ $# -eq 1 ]; then
tomorrow=$1
else
today=$(date +"%Y%m%d")
tomorrow=$(IncrementaDia $hoy)
fi
</pre>
but now I need to do more complex arithmetic.
What it's the best and more compatible way to do this? | 0 |
6,475 | 08/08/2008 23:46:31 | 527 | 08/06/2008 14:44:09 | 87 | 19 | Faster way to find duplicates conditioned by time | In a machine with AIX without <pre>PERL</pre> I need to filter records that will be considered duplicated if they have the same id and if they were registered between a period of four hours.
I implemented this filter using <pre>AWK</pre> and work pretty well but I need a solution much faster:
<pre>
# Generar lista de Duplicados
awk 'BEGIN {
FS=","
}
/OK/ {
old[$8] = f[$8];
f[$8] = mktime($4, $3, $2, $5, $6, $7);
x[$8]++;
}
/OK/ && x[$8]>1 && f[$8]-old[$8] < 14400 {
print $0;
}
function mktime (y,m,d,hh,mm,ss) {
return ss + (mm*60) + (hh*3600) + (d*86400) + (m*2592000) + (y*31536000);
}
' the.big.file.txt
</pre>
Any suggestions? Are there ways to improve the environment (preloading the file or someting like that)?
The input file is already sorted. | aix | unix | awk | perl | performance | null | open | Faster way to find duplicates conditioned by time
===
In a machine with AIX without <pre>PERL</pre> I need to filter records that will be considered duplicated if they have the same id and if they were registered between a period of four hours.
I implemented this filter using <pre>AWK</pre> and work pretty well but I need a solution much faster:
<pre>
# Generar lista de Duplicados
awk 'BEGIN {
FS=","
}
/OK/ {
old[$8] = f[$8];
f[$8] = mktime($4, $3, $2, $5, $6, $7);
x[$8]++;
}
/OK/ && x[$8]>1 && f[$8]-old[$8] < 14400 {
print $0;
}
function mktime (y,m,d,hh,mm,ss) {
return ss + (mm*60) + (hh*3600) + (d*86400) + (m*2592000) + (y*31536000);
}
' the.big.file.txt
</pre>
Any suggestions? Are there ways to improve the environment (preloading the file or someting like that)?
The input file is already sorted. | 0 |
6,484 | 08/09/2008 00:14:22 | 307 | 08/04/2008 14:26:05 | 332 | 25 | How do you mock a Sealed class? | [Mocking sealed classes][1] can be quite a pain. I currently favor an [Adapter pattern][2] to handle this, but something about just keeps feels weird.
**So, What is the best way you mock sealed classes?**
*Java answers are more than welcome*. In fact, I would anticipate that the Java community has been dealing with this longer and has a great deal to offer.
But here are some of the .NET opinions:
- [Why Duck Typing Matters for C#
Develoepers][3]
- [Creating wrappers
for sealed and other types for
mocking][4]
[1]: http://www.google.com/search?q=how%20to%20mock%20sealed%20class
[2]: http://en.wikipedia.org/wiki/Adapter_pattern
[3]: http://haacked.com/archive/2007/08/19/why-duck-typing-matters-to-c-developers.aspx
[4]: http://cs.rthand.com/blogs/blog_with_righthand/archive/2008/07/22/Creating-wrappers-for-sealed-and-other-types-for-mocking.aspx | mocking | tdd | language-agnostic | howto | null | null | open | How do you mock a Sealed class?
===
[Mocking sealed classes][1] can be quite a pain. I currently favor an [Adapter pattern][2] to handle this, but something about just keeps feels weird.
**So, What is the best way you mock sealed classes?**
*Java answers are more than welcome*. In fact, I would anticipate that the Java community has been dealing with this longer and has a great deal to offer.
But here are some of the .NET opinions:
- [Why Duck Typing Matters for C#
Develoepers][3]
- [Creating wrappers
for sealed and other types for
mocking][4]
[1]: http://www.google.com/search?q=how%20to%20mock%20sealed%20class
[2]: http://en.wikipedia.org/wiki/Adapter_pattern
[3]: http://haacked.com/archive/2007/08/19/why-duck-typing-matters-to-c-developers.aspx
[4]: http://cs.rthand.com/blogs/blog_with_righthand/archive/2008/07/22/Creating-wrappers-for-sealed-and-other-types-for-mocking.aspx | 0 |
6,499 | 08/09/2008 00:56:15 | 784 | 08/08/2008 22:02:14 | 11 | 1 | What style do you use for creating an "class" in JavaScript? | I'm curious as to whether people prefer to use prototype based "class" methods, or whether they use closures, eg.
function Vector(x, y, x) {
this.x = x;
this.y = y;
this.z = z;
return this;
}
Vector.prototype.length = function () { return Math.sqrt(this.x * this.x ... ); }
versus a closure based approach similar to
function Vector(x, y, z) {
this.length = function() { return Math.sqrt(x * x + ...); }
}
For various reasons the latter is faster, but i've seen (and i frequently do write) the prototype version and was curious as to what other people do. | javascript | null | null | null | null | null | open | What style do you use for creating an "class" in JavaScript?
===
I'm curious as to whether people prefer to use prototype based "class" methods, or whether they use closures, eg.
function Vector(x, y, x) {
this.x = x;
this.y = y;
this.z = z;
return this;
}
Vector.prototype.length = function () { return Math.sqrt(this.x * this.x ... ); }
versus a closure based approach similar to
function Vector(x, y, z) {
this.length = function() { return Math.sqrt(x * x + ...); }
}
For various reasons the latter is faster, but i've seen (and i frequently do write) the prototype version and was curious as to what other people do. | 0 |
6,512 | 08/09/2008 01:18:37 | 658 | 08/07/2008 15:07:47 | 26 | 2 | How to implement continuations? | I'm working on a Scheme interpreter written in C. Currently it uses the C runtime stack as its own stack, which is presenting a minor problem with implementing continuations. My current solution is manual copying of the C stack to the heap then copying it back when needed. Aside from not being standard C, this solution is hardly ideal.
What is the simplest way to implement continuations for Scheme in C? | c | scheme | continuations | null | null | null | open | How to implement continuations?
===
I'm working on a Scheme interpreter written in C. Currently it uses the C runtime stack as its own stack, which is presenting a minor problem with implementing continuations. My current solution is manual copying of the C stack to the heap then copying it back when needed. Aside from not being standard C, this solution is hardly ideal.
What is the simplest way to implement continuations for Scheme in C? | 0 |
6,519 | 08/09/2008 01:45:25 | 788 | 08/09/2008 00:17:36 | 1 | 1 | Learning SQL | I am a software engineer and I work for a small company, which means I have to do just about everything myself. So what is the best way to learn absolutely everything you need to know about SQL? Everything from the language, to managing databases, to programming to a database with C# 2.0 and what what version to use (free for commercial use is better, but not required). | sql | null | null | null | null | 11/16/2011 00:12:11 | not constructive | Learning SQL
===
I am a software engineer and I work for a small company, which means I have to do just about everything myself. So what is the best way to learn absolutely everything you need to know about SQL? Everything from the language, to managing databases, to programming to a database with C# 2.0 and what what version to use (free for commercial use is better, but not required). | 4 |
6,530 | 08/09/2008 02:03:52 | 233 | 08/03/2008 20:19:32 | 66 | 11 | Where should I put my log file for an asp.net application? | I have a asp.net application that we've written our own logging module for.
My question is, where is the standard place to write a log file to? I.e. the website will be running as the anonymous user identity (e.g. IUSR on IIS7) and I need a place where I know it'll have permission to write to.
Cheers, | asp.net | logging | permissions | null | null | null | open | Where should I put my log file for an asp.net application?
===
I have a asp.net application that we've written our own logging module for.
My question is, where is the standard place to write a log file to? I.e. the website will be running as the anonymous user identity (e.g. IUSR on IIS7) and I need a place where I know it'll have permission to write to.
Cheers, | 0 |
6,547 | 08/09/2008 02:23:27 | 797 | 08/09/2008 02:14:04 | 1 | 0 | Two marbles | One of those classic programming interview questions...
You are given two marbles, and told that they will break when dropped from some certain height (and presumably suffer no damage if dropped from below that height). You’re then taken to a 100 story building (presumably higher than the certain height), and asked to find the highest floor your can drop a marble from without breaking it as efficiently as possible. | interview-questions | puzzle | null | null | null | null | open | Two marbles
===
One of those classic programming interview questions...
You are given two marbles, and told that they will break when dropped from some certain height (and presumably suffer no damage if dropped from below that height). You’re then taken to a 100 story building (presumably higher than the certain height), and asked to find the highest floor your can drop a marble from without breaking it as efficiently as possible. | 0 |
6,557 | 08/09/2008 02:32:01 | 797 | 08/09/2008 02:14:04 | 6 | 0 | In C#, why can't a List<string> object be stored in a List<object> variable | It seems that a List<string> object cannot be stored in a List<object> variable in C#, and can't even be explicitly cast that way.
List<string> sl = new List<string>();
List<object> ol;
ol = sl;
results in Cannot implicitly convert type ‘System.Collections.Generic.List<string>’ to ‘System.Collections.Generic.List<object>’
And then...
List<string> sl = new List<string>();
List<object> ol;
ol = (List<object>)sl;
results in Cannot convert type ‘System.Collections.Generic.List<string>’ to ‘System.Collections.Generic.List<object>’
Of course, you can do it by pulling everything out of the string list and putting it back in one at a time, but it is a rather convoluted solution. | c# | generics | type-safety | null | null | null | open | In C#, why can't a List<string> object be stored in a List<object> variable
===
It seems that a List<string> object cannot be stored in a List<object> variable in C#, and can't even be explicitly cast that way.
List<string> sl = new List<string>();
List<object> ol;
ol = sl;
results in Cannot implicitly convert type ‘System.Collections.Generic.List<string>’ to ‘System.Collections.Generic.List<object>’
And then...
List<string> sl = new List<string>();
List<object> ol;
ol = (List<object>)sl;
results in Cannot convert type ‘System.Collections.Generic.List<string>’ to ‘System.Collections.Generic.List<object>’
Of course, you can do it by pulling everything out of the string list and putting it back in one at a time, but it is a rather convoluted solution. | 0 |
6,578 | 08/09/2008 03:13:04 | 797 | 08/09/2008 02:14:04 | 23 | 1 | Understanding reference counting with Cocoa / Objective C | I'm just beginning to have a look at Objective C and Cocoa with a view to playing with he iPhone SDK. I'm reasonably comfortable with C's malloc and free concept, but Cocoa's references counting scheme has me rather confused. I'm told it's very elegant once you understand it, but I'm just not over the hump yet.
I guess my question is, can anyone briefly explain release, retain and autorelease and the conventions about their use in a way which makes it click for me?
(Or failing that, what did you read which helped you get it?) | iphone | cocoa | objectivec | memory | null | null | open | Understanding reference counting with Cocoa / Objective C
===
I'm just beginning to have a look at Objective C and Cocoa with a view to playing with he iPhone SDK. I'm reasonably comfortable with C's malloc and free concept, but Cocoa's references counting scheme has me rather confused. I'm told it's very elegant once you understand it, but I'm just not over the hump yet.
I guess my question is, can anyone briefly explain release, retain and autorelease and the conventions about their use in a way which makes it click for me?
(Or failing that, what did you read which helped you get it?) | 0 |
6,579 | 08/09/2008 03:19:59 | 290 | 08/04/2008 12:57:50 | 147 | 19 | Which Agile Software Development Method Have You Had The Most Success With? | There are numerous [Agile software development][1] methods. Which ones have you used in practice to deliver a successful project, and how did the method contribute to that success?
[1]: http://en.wikipedia.org/wiki/Agile_software_development | agile | software-engineering | methods | null | null | null | open | Which Agile Software Development Method Have You Had The Most Success With?
===
There are numerous [Agile software development][1] methods. Which ones have you used in practice to deliver a successful project, and how did the method contribute to that success?
[1]: http://en.wikipedia.org/wiki/Agile_software_development | 0 |
6,594 | 08/09/2008 03:49:36 | 796 | 08/09/2008 02:12:46 | 1 | 6 | PHP4 to PHP5 Migration | What are some good steps to follow for a smooth migration from PHP4 to PHP5. What are some types of code that are likely to break? | php | migration | null | null | null | null | open | PHP4 to PHP5 Migration
===
What are some good steps to follow for a smooth migration from PHP4 to PHP5. What are some types of code that are likely to break? | 0 |
6,607 | 08/09/2008 04:13:02 | 27,687 | 2008-09-01 | 1 | 1 | Registry vs. INI file for storing user configurable application settings | I'm a new Windows programmer and I'm a bit unsure as to where I should store user configurable application settings. I understand the need to provide a user friendly means for the user to change application settings, like an Edit | Settings form or similar. But where should I store the values after the user hits the Apply button on that form?
What are the pros and cons of storing settings in the Windows Registry vs. storing them in an INI file or a config file or something along with the application? | windows | registry | configurationfiles | visual | settings | null | open | Registry vs. INI file for storing user configurable application settings
===
I'm a new Windows programmer and I'm a bit unsure as to where I should store user configurable application settings. I understand the need to provide a user friendly means for the user to change application settings, like an Edit | Settings form or similar. But where should I store the values after the user hits the Apply button on that form?
What are the pros and cons of storing settings in the Windows Registry vs. storing them in an INI file or a config file or something along with the application? | 0 |
6,611 | 08/09/2008 04:29:31 | 810 | 08/09/2008 03:49:52 | 1 | 2 | IE6: To support or not to support. | As most Web developers know, IE6 is a pain to support when it comes to making a website look and feel just as in the other major browsers (Firefox and IE7). I'd like to know what are the feelings of other developers toward supporting IE6 on their websites.
Of course if your main user base uses IE6 or if your working for a client that requires you to make it work in IE6, you don't even ask, but what about a web blog for example?
Bonus: http://www.savethedevelopers.org/ | internet-explorer-6 | browser | compatibility | null | null | 05/13/2012 05:26:08 | not constructive | IE6: To support or not to support.
===
As most Web developers know, IE6 is a pain to support when it comes to making a website look and feel just as in the other major browsers (Firefox and IE7). I'd like to know what are the feelings of other developers toward supporting IE6 on their websites.
Of course if your main user base uses IE6 or if your working for a client that requires you to make it work in IE6, you don't even ask, but what about a web blog for example?
Bonus: http://www.savethedevelopers.org/ | 4 |
6,612 | 08/09/2008 04:29:42 | 27,687 | 2008-09-01 | 1 | 1 | Are there any decent free JAVA data plotting libraries out there? | On a recent JAVA project, we needed a free JAVA based plot utility. After much searching, we found this tool called the [Scientific Graphics Toolkit or SGT][1] from NOAA. It seemed pretty robust, but we found out that it wasn't terribly configurable. Or at least not configurable enough to meet our needs. We ended up digging very deeply into the JAVA code and reverse engineering the code and changing it all around to make the plot tool look and act the way we wanted it to look and act. Of course, this killed any chance for future upgrades from NOAA.
So what free or cheap JAVA based plot tools or libraries do you use?
[1]: http://www.epic.noaa.gov/java/sgt/ | java | data | plot | configuration | reverseengineering | null | open | Are there any decent free JAVA data plotting libraries out there?
===
On a recent JAVA project, we needed a free JAVA based plot utility. After much searching, we found this tool called the [Scientific Graphics Toolkit or SGT][1] from NOAA. It seemed pretty robust, but we found out that it wasn't terribly configurable. Or at least not configurable enough to meet our needs. We ended up digging very deeply into the JAVA code and reverse engineering the code and changing it all around to make the plot tool look and act the way we wanted it to look and act. Of course, this killed any chance for future upgrades from NOAA.
So what free or cheap JAVA based plot tools or libraries do you use?
[1]: http://www.epic.noaa.gov/java/sgt/ | 0 |
6,613 | 08/09/2008 04:34:29 | 27,687 | 2008-09-01 | 1 | 1 | What rule engine should I use? | What are some of the best or most popular rule engines? I haven't settled on a programming language, so tell me the rule engine and what programming languages it supports. | language-agnostic | ruleengine | null | null | null | null | open | What rule engine should I use?
===
What are some of the best or most popular rule engines? I haven't settled on a programming language, so tell me the rule engine and what programming languages it supports. | 0 |
6,623 | 08/09/2008 04:57:00 | 361 | 08/05/2008 04:20:27 | 1 | 0 | sgen.exe fails | After changing the output directory of a visual studio project it started to fail to build with an error very much like:
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin\sgen.exe /assembly:C:\p4root\Zantaz\trunk\EASDiscovery\EASDiscoveryCaseManagement\obj\Release\EASDiscoveryCaseManagement.dll /proxytypes /reference:C:\p4root\Zantaz\trunk\EASDiscovery\EasDiscovery.Common\target\win_x32\release\results\EASDiscovery.Common.dll /reference:C:\p4root\Zantaz\trunk\EASDiscovery\EasDiscovery.Export\target\win_x32\release\results\EASDiscovery.Export.dll /reference:c:\p4root\Zantaz\trunk\EASDiscovery\ItemCache\target\win_x32\release\results\EasDiscovery.ItemCache.dll /reference:c:\p4root\Zantaz\trunk\EASDiscovery\RetrievalEngine\target\win_x32\release\results\EasDiscovery.RetrievalEngine.dll /reference:C:\p4root\Zantaz\trunk\EASDiscovery\EASDiscoveryJobs\target\win_x32\release\results\EASDiscoveryJobs.dll /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Shared.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.Misc.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinChart.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinDataSource.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinDock.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinEditors.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinGrid.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinListView.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinMaskedEdit.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinStatusBar.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinTabControl.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinToolbars.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinTree.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.v8.1.dll" /reference:"C:\Program Files\Microsoft Visual Studio 8\ReportViewer\Microsoft.ReportViewer.Common.dll" /reference:"C:\Program Files\Microsoft Visual Studio 8\ReportViewer\Microsoft.ReportViewer.WinForms.dll" /reference:C:\p4root\Zantaz\trunk\EASDiscovery\PreviewControl\target\win_x32\release\results\PreviewControl.dll /reference:C:\p4root\Zantaz\trunk\EASDiscovery\Quartz\src\Quartz\target\win_x32\release\results\Scheduler.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.configuration.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Design.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.DirectoryServices.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Web.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Web.Services.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /compiler:/delaysign-
Error: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1902,9): error MSB6006: "sgen.exe" exited with code 1.
I changed the output directory to target/win_x32/release/results but the path in sgen doesn't seem to have been updated. There seems to be no reference in the project to what path is passed into sgen so I'm unsure how to fix it. As a work around I have disabled the serialization generation but it would be nice to fix the underlying problem. Has anybody else seen this? | c# | visual-studio | null | null | null | null | open | sgen.exe fails
===
After changing the output directory of a visual studio project it started to fail to build with an error very much like:
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin\sgen.exe /assembly:C:\p4root\Zantaz\trunk\EASDiscovery\EASDiscoveryCaseManagement\obj\Release\EASDiscoveryCaseManagement.dll /proxytypes /reference:C:\p4root\Zantaz\trunk\EASDiscovery\EasDiscovery.Common\target\win_x32\release\results\EASDiscovery.Common.dll /reference:C:\p4root\Zantaz\trunk\EASDiscovery\EasDiscovery.Export\target\win_x32\release\results\EASDiscovery.Export.dll /reference:c:\p4root\Zantaz\trunk\EASDiscovery\ItemCache\target\win_x32\release\results\EasDiscovery.ItemCache.dll /reference:c:\p4root\Zantaz\trunk\EASDiscovery\RetrievalEngine\target\win_x32\release\results\EasDiscovery.RetrievalEngine.dll /reference:C:\p4root\Zantaz\trunk\EASDiscovery\EASDiscoveryJobs\target\win_x32\release\results\EASDiscoveryJobs.dll /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Shared.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.Misc.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinChart.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinDataSource.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinDock.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinEditors.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinGrid.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinListView.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinMaskedEdit.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinStatusBar.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinTabControl.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinToolbars.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinTree.v8.1.dll" /reference:"C:\Program Files\Infragistics\NetAdvantage for .NET 2008 Vol. 1 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.v8.1.dll" /reference:"C:\Program Files\Microsoft Visual Studio 8\ReportViewer\Microsoft.ReportViewer.Common.dll" /reference:"C:\Program Files\Microsoft Visual Studio 8\ReportViewer\Microsoft.ReportViewer.WinForms.dll" /reference:C:\p4root\Zantaz\trunk\EASDiscovery\PreviewControl\target\win_x32\release\results\PreviewControl.dll /reference:C:\p4root\Zantaz\trunk\EASDiscovery\Quartz\src\Quartz\target\win_x32\release\results\Scheduler.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.configuration.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Design.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.DirectoryServices.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Web.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Web.Services.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /compiler:/delaysign-
Error: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1902,9): error MSB6006: "sgen.exe" exited with code 1.
I changed the output directory to target/win_x32/release/results but the path in sgen doesn't seem to have been updated. There seems to be no reference in the project to what path is passed into sgen so I'm unsure how to fix it. As a work around I have disabled the serialization generation but it would be nice to fix the underlying problem. Has anybody else seen this? | 0 |
6,633 | 08/09/2008 05:13:55 | 796 | 08/09/2008 02:12:46 | 1 | 6 | Making code work with register_globals turned off | I have inherited some legacy PHP code what was written back when it was standard practice to use register_globals. We know now that it is bad for security to have it enabled. The problem is how do I find all the places in the code where I need to use $_GET or $_POST? My only thought was to set the error reporting to warn about uninitialized variables and then test each part of the site. Is there an easier way? Will I have to test each code path in the site or will PHP give a warnings on a file basis? | php | null | null | null | null | null | open | Making code work with register_globals turned off
===
I have inherited some legacy PHP code what was written back when it was standard practice to use register_globals. We know now that it is bad for security to have it enabled. The problem is how do I find all the places in the code where I need to use $_GET or $_POST? My only thought was to set the error reporting to warn about uninitialized variables and then test each part of the site. Is there an easier way? Will I have to test each code path in the site or will PHP give a warnings on a file basis? | 0 |
6,639 | 08/09/2008 05:33:22 | 816 | 08/09/2008 04:15:12 | 1 | 0 | How should I load files into my Java application? | How should I load files into my Java application? | java | null | null | null | null | null | open | How should I load files into my Java application?
===
How should I load files into my Java application? | 0 |
6,658 | 08/09/2008 06:31:25 | 782 | 08/08/2008 21:30:06 | 1 | 2 | Junit vs TestNG | At work we are currently still using Junit3 to run our tests. We have been considering switching over to Junit4 but I have been keeping an eye on TestNG for a while now. What experiences have you all had with either Junit4 or TestNG and which seems to work better for very large numbers of tests. By large, I mean about 4,000+ tests. That does not include unit tests, these are all functional tests. | java | junit | testng | testing | null | null | open | Junit vs TestNG
===
At work we are currently still using Junit3 to run our tests. We have been considering switching over to Junit4 but I have been keeping an eye on TestNG for a while now. What experiences have you all had with either Junit4 or TestNG and which seems to work better for very large numbers of tests. By large, I mean about 4,000+ tests. That does not include unit tests, these are all functional tests. | 0 |
6,661 | 08/09/2008 06:40:52 | 1,384,652 | 08/01/2008 12:01:23 | 744 | 55 | Javascript events | I'm aware of things like "onchange", "onmousedown" and "onmouseup" but is there a good reference somewhere that lists all of them complete with possibly a list of the elements that they cover? | javascript | js | null | null | null | null | open | Javascript events
===
I'm aware of things like "onchange", "onmousedown" and "onmouseup" but is there a good reference somewhere that lists all of them complete with possibly a list of the elements that they cover? | 0 |
6,666 | 08/09/2008 06:50:22 | 831 | 08/09/2008 06:37:00 | 1 | 1 | Web Services | Working on a new project and was wondering was there any benefit with going with a WCF web service over a regular old fashion web service. Visual Studio offers templates for both.
What are the differences? Pros / Cons? | wcf | visual-studio | web-services | null | null | null | open | Web Services
===
Working on a new project and was wondering was there any benefit with going with a WCF web service over a regular old fashion web service. Visual Studio offers templates for both.
What are the differences? Pros / Cons? | 0 |
6,681 | 08/09/2008 07:34:01 | 832 | 08/09/2008 06:51:40 | 1 | 3 | ASP.NET Web Service Results, Proxy Classes and Type Conversion | as you can probably tell from my rep, I have just got my invite so I am a complete n00b! :D First off I would like to say thanks to Jeff and the team for what looks like is going to be an **excellent** site for the community.
So, my question:
I am still kinda new to the ASP.NET world, so I could be way off base here, but so far this is to the best of my (limited) knowledge!
Lets say I have a standard business object.. "Contact" in the *Business* namespace.. I write a Web Service to retrieve a Contact's info from a database, and return it. I then write a client application to request said details.
Now, I also then create a utility method that takes a "Contact" and does some magic with it, like *Utils.BuyContactNewHat()* say.. Which of course takes the Contact of type *Business.Contact*.
I then go back to my client application and want to utilise the *BuyContactNewHat* method, so I add a reference to my *Utils* namespace and there it is. However, a problem arises with:
Contact c = MyWebService.GetContact("Rob);
Utils.BuyContactNewHat(c); // << Error Here
Since the return type of *GetContact* is of *MyWebService.Contact* and not *Business.Contact* as expected.
I understand why this is, because when accessing a web service, you are actually programming against the proxy class generated by the WSDL..
So, is there an "easier" way to deal with this type mismatch? I was considering perhaps trying to create a generic converter class that uses reflection to ensure two objects have the same structure, then simply transferring the values across from one to the other..
Thanks guys, sorry for the long question, just wanted to ensure I explained the problem clearly :) | c# | webservices | asp.net | null | null | null | open | ASP.NET Web Service Results, Proxy Classes and Type Conversion
===
as you can probably tell from my rep, I have just got my invite so I am a complete n00b! :D First off I would like to say thanks to Jeff and the team for what looks like is going to be an **excellent** site for the community.
So, my question:
I am still kinda new to the ASP.NET world, so I could be way off base here, but so far this is to the best of my (limited) knowledge!
Lets say I have a standard business object.. "Contact" in the *Business* namespace.. I write a Web Service to retrieve a Contact's info from a database, and return it. I then write a client application to request said details.
Now, I also then create a utility method that takes a "Contact" and does some magic with it, like *Utils.BuyContactNewHat()* say.. Which of course takes the Contact of type *Business.Contact*.
I then go back to my client application and want to utilise the *BuyContactNewHat* method, so I add a reference to my *Utils* namespace and there it is. However, a problem arises with:
Contact c = MyWebService.GetContact("Rob);
Utils.BuyContactNewHat(c); // << Error Here
Since the return type of *GetContact* is of *MyWebService.Contact* and not *Business.Contact* as expected.
I understand why this is, because when accessing a web service, you are actually programming against the proxy class generated by the WSDL..
So, is there an "easier" way to deal with this type mismatch? I was considering perhaps trying to create a generic converter class that uses reflection to ensure two objects have the same structure, then simply transferring the values across from one to the other..
Thanks guys, sorry for the long question, just wanted to ensure I explained the problem clearly :) | 0 |
6,682 | 08/09/2008 07:38:41 | 834 | 08/09/2008 07:29:24 | 1 | 0 | Where can I find a good tutorial about Java AOP that is proxy based? | I 'm currently investigating the different styles of AOP in Java and I started with AspectJ. I try to get a good view on the different styles:
- weaver
- proxy
- any others
Do you know a good tutorial or technology article about the different frameworks and techniques? | java | tutorials | aop | null | null | null | open | Where can I find a good tutorial about Java AOP that is proxy based?
===
I 'm currently investigating the different styles of AOP in Java and I started with AspectJ. I try to get a good view on the different styles:
- weaver
- proxy
- any others
Do you know a good tutorial or technology article about the different frameworks and techniques? | 0 |
6,703 | 08/09/2008 08:51:27 | 718 | 08/08/2008 07:07:38 | 11 | 1 | When is OOP best suited for? | Since I started studying object-oriented programming, I frequently read articles/blogs saying functions are better, or not all problems should be modeled as objects. From your personal programming adventures, when do you think a problem is best solved by OOP? | oop | null | null | null | null | null | open | When is OOP best suited for?
===
Since I started studying object-oriented programming, I frequently read articles/blogs saying functions are better, or not all problems should be modeled as objects. From your personal programming adventures, when do you think a problem is best solved by OOP? | 0 |
6,719 | 08/09/2008 09:51:37 | 133 | 08/02/2008 09:06:05 | 68 | 3 | ASP.NET Master Pages | I've just been learning about master pages in ASP.NET 2.0. They sound great, but how well do they work in practice? Does anybody have experience of using them for a large web site? | .net | asp.net | null | null | null | null | open | ASP.NET Master Pages
===
I've just been learning about master pages in ASP.NET 2.0. They sound great, but how well do they work in practice? Does anybody have experience of using them for a large web site? | 0 |
6,729 | 08/09/2008 11:18:58 | 770 | 08/08/2008 17:20:44 | 74 | 7 | Icons: How does a developer with no design skill make his apps look pretty? | I probably spend far too much time trying to make my visual interfaces look good, and while I'm pretty adept at finding the right match between usability and style one area I am hopeless at is making nice looking icons.
How do you people overcome this (I'm sure common) problem? I'm thinking of things like images on buttons and perhaps most important of all, the actual application icon.
Do you rely on third party designers, in or out of house? Or do you know of some hidden website that offers lots of icons for us to use? I've tried google but I seem to find either expensive packages that are very specific, millions of Star Trek icons or icons that look abysmal at 16x16 which is my prefered size on in-application buttons.
Any help/advice appreciated. | gui | design | icons | null | null | null | open | Icons: How does a developer with no design skill make his apps look pretty?
===
I probably spend far too much time trying to make my visual interfaces look good, and while I'm pretty adept at finding the right match between usability and style one area I am hopeless at is making nice looking icons.
How do you people overcome this (I'm sure common) problem? I'm thinking of things like images on buttons and perhaps most important of all, the actual application icon.
Do you rely on third party designers, in or out of house? Or do you know of some hidden website that offers lots of icons for us to use? I've tried google but I seem to find either expensive packages that are very specific, millions of Star Trek icons or icons that look abysmal at 16x16 which is my prefered size on in-application buttons.
Any help/advice appreciated. | 0 |
6,732 | 08/09/2008 11:30:09 | 257 | 08/04/2008 07:30:01 | 167 | 24 | Why no favicon for my web page? | I've got a website that I've just uploaded onto the interwebs, and when using Firefox 3.0.1 on Ubuntu I don't see the favicon; Firefox 3.0.1 on WinXP shows it.
Why isn't the favicon displaying under Ubuntu? It's a favicon.ico file in the root directory, not referenced in the meta tags; would it work better as a GIF? | firefox | ubuntu | null | null | null | null | open | Why no favicon for my web page?
===
I've got a website that I've just uploaded onto the interwebs, and when using Firefox 3.0.1 on Ubuntu I don't see the favicon; Firefox 3.0.1 on WinXP shows it.
Why isn't the favicon displaying under Ubuntu? It's a favicon.ico file in the root directory, not referenced in the meta tags; would it work better as a GIF? | 0 |
6,743 | 08/09/2008 12:19:11 | 697 | 08/07/2008 23:18:10 | 1 | 6 | Whatever happened to VB Accelerator? | One of the best programming sites for VB6 and C#/VB.NET, hasn't been updated since 2004. Does anyone know what's happened to it? <http://www.vbaccelerator.com> | website | communities | null | null | null | null | open | Whatever happened to VB Accelerator?
===
One of the best programming sites for VB6 and C#/VB.NET, hasn't been updated since 2004. Does anyone know what's happened to it? <http://www.vbaccelerator.com> | 0 |
6,753 | 08/09/2008 12:57:29 | 13 | 08/01/2008 04:18:04 | 794 | 34 | Any IcedTea war stories? | Okay, my first serious question. :-D
I'm playing around with [OpenJDK](http://openjdk.java.net/) (7, not 6), and am about to start trying to build [IcedTea](http://icedtea.classpath.org/) on my Ubuntu system. I'm keen to hear from those who have played with IcedTea and have stories (successes, pitfalls, etc.) to tell. All stories welcome, whatever distribution you use.
Chances are, I'll very soon have my own stories to add to the list…. :-) | linux | openjdk | icedtea | null | null | 05/18/2012 11:11:49 | not constructive | Any IcedTea war stories?
===
Okay, my first serious question. :-D
I'm playing around with [OpenJDK](http://openjdk.java.net/) (7, not 6), and am about to start trying to build [IcedTea](http://icedtea.classpath.org/) on my Ubuntu system. I'm keen to hear from those who have played with IcedTea and have stories (successes, pitfalls, etc.) to tell. All stories welcome, whatever distribution you use.
Chances are, I'll very soon have my own stories to add to the list…. :-) | 4 |
6,759 | 08/09/2008 13:14:34 | 257 | 08/04/2008 07:30:01 | 167 | 24 | OpenID: which provider should I recommend to my users? | Have you used OpenID in anger?
I'm going to be using OpenID for authentication on my site. Which provider should I recommend to my users?
I'm thinking, based on the feedback that the OpenID auth is getting on StackOverflow, that I'd want to recommend one that does attribute exchange properly. So: who's that?
And: should I block any providers - I assume some are not terribly diligent about handing out identities to 'bots etc? | authentication | openid | null | null | null | null | open | OpenID: which provider should I recommend to my users?
===
Have you used OpenID in anger?
I'm going to be using OpenID for authentication on my site. Which provider should I recommend to my users?
I'm thinking, based on the feedback that the OpenID auth is getting on StackOverflow, that I'd want to recommend one that does attribute exchange properly. So: who's that?
And: should I block any providers - I assume some are not terribly diligent about handing out identities to 'bots etc? | 0 |
6,765 | 08/09/2008 13:23:40 | 837 | 08/09/2008 08:06:26 | 1 | 1 | Java + MS SQL Server - a viable solution? | I'm going to start a new project - rewriting an existing system (PHP + SQL Server) from scratch because of some very serious limitations by design.
We have some quite good knowledge of SQL Server (currently we're using SQL Server 2000 in existing system) and we would like to employ its newer version (2008 I guess) in our new project.<br/>
I am really fond of technologies that Java offers - particularly Spring Framework and Wicket and I am quite familiar with Java from others projects and assignments before.
Therefore, we consider using Java and Microsoft SQL Server.
There are two JDBC drivers for SQL Server - jTDS and Microsoft's one - http://msdn.microsoft.com/en-us/data/aa937724.aspx. I think we should test both of them.<br/>
Are there any limitations in such solution I should know of? Has someone experience with such a technology combination? | java | sql | server | null | null | null | open | Java + MS SQL Server - a viable solution?
===
I'm going to start a new project - rewriting an existing system (PHP + SQL Server) from scratch because of some very serious limitations by design.
We have some quite good knowledge of SQL Server (currently we're using SQL Server 2000 in existing system) and we would like to employ its newer version (2008 I guess) in our new project.<br/>
I am really fond of technologies that Java offers - particularly Spring Framework and Wicket and I am quite familiar with Java from others projects and assignments before.
Therefore, we consider using Java and Microsoft SQL Server.
There are two JDBC drivers for SQL Server - jTDS and Microsoft's one - http://msdn.microsoft.com/en-us/data/aa937724.aspx. I think we should test both of them.<br/>
Are there any limitations in such solution I should know of? Has someone experience with such a technology combination? | 0 |
6,778 | 08/09/2008 13:54:29 | 247 | 08/04/2008 00:50:51 | 1 | 0 | How to make a Flash movie with a transparent background | This page from Adobe says to add a "wmode" parameter and set its value to "transparent": [http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_1420][1]
This works flawlessly in IE. The background renders correctly in Firefox and Safari, however as soon as you use the browser's scroll bar then mouse over the Flash control you must click once to activate the control. You can see this behavior if you try to hit the play button in Adobe's example.
Anyone know a way around this?
[1]: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14201 | flash | firefox | safari | null | null | null | open | How to make a Flash movie with a transparent background
===
This page from Adobe says to add a "wmode" parameter and set its value to "transparent": [http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_1420][1]
This works flawlessly in IE. The background renders correctly in Firefox and Safari, however as soon as you use the browser's scroll bar then mouse over the Flash control you must click once to activate the control. You can see this behavior if you try to hit the play button in Adobe's example.
Anyone know a way around this?
[1]: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14201 | 0 |
6,785 | 08/09/2008 14:24:05 | 493 | 08/06/2008 10:25:05 | 529 | 48 | Is String.Format as efficient as StringBuilder | Suppose I have a stringbuilder in C# that does this:
StringBuilder sb = new StringBuilder();
string cat = "cat";
sb.Append("the ").Append(cat).(" in the hat");
string s = sb.ToString();
would that be as efficient or any more efficient as having:
string cat = "cat";
string s = String.Format("The {0} in the hat", cat);
If so, why? | c# | vb.net | stringbuilder | string.format | null | null | open | Is String.Format as efficient as StringBuilder
===
Suppose I have a stringbuilder in C# that does this:
StringBuilder sb = new StringBuilder();
string cat = "cat";
sb.Append("the ").Append(cat).(" in the hat");
string s = sb.ToString();
would that be as efficient or any more efficient as having:
string cat = "cat";
string s = String.Format("The {0} in the hat", cat);
If so, why? | 0 |
6,798 | 08/09/2008 15:01:13 | 849 | 08/09/2008 14:55:36 | 1 | 0 | Should management give up the code? | When making the step from developer to management how far away from the code should you get?
The standard advice is 'stop coding' but Rands had an interesting blog post about how its important to keep coding.
http://www.randsinrepose.com/archives/2007/02/07/technicality.html
In my experience (working for a big telecomms company) its difficult if not impossible to keep coding. | management | null | null | null | null | null | open | Should management give up the code?
===
When making the step from developer to management how far away from the code should you get?
The standard advice is 'stop coding' but Rands had an interesting blog post about how its important to keep coding.
http://www.randsinrepose.com/archives/2007/02/07/technicality.html
In my experience (working for a big telecomms company) its difficult if not impossible to keep coding. | 0 |
6,806 | 08/09/2008 15:13:54 | 823 | 08/09/2008 05:00:46 | 1 | 0 | What is the best way to learn Ruby? | How do I go about learning Ruby quickly and easily without buying expensive programming books? | ruby | null | null | null | null | 09/29/2011 13:29:18 | not constructive | What is the best way to learn Ruby?
===
How do I go about learning Ruby quickly and easily without buying expensive programming books? | 4 |
6,811 | 08/09/2008 15:20:45 | 25 | 08/01/2008 12:15:23 | 279 | 32 | How can I modify .xfdl files? Update #2 | Before reading anything else, please read the <a href = "http://beta.stackoverflow.com/questions/1615/how-can-i-modify-xfdl-files-update-1">original thread</a>.
A quick simple overview: A .xfdl file is a is a gzipped .xml file which has then been encoded in base64. I wish to de-encode the .xfdl into xml which I can then modify and then re-encode.
I have been able to take a .xfdl file and de-encode it from base64 using uudeview:
uudeview -i yourform.xfdl
Then decommpressed it using gunzip
gunzip -S "" < UNKNOWN.001 > yourform-unpacked.xml
The xml produced is 100% readable and looks wonderful. Without modifying the xml then, i should be able to re-compress it using gzip:
gzip yourform-unpacked.xml
Then re-encoded in base-64:
base64 -e yourform-unpacked.xml.gz yourform_reencoded.xfdl
If my thinking is correct, the original file and the re-encoded file should be equal. If I put yourform.xfdl and yourform_reencoded.xfdl into beyond compare, however, they do not match up. Also, the original file can be viewed in an <a href = "http://www.grants.gov/help/download_software.jsp#pureedge">.xfdl viewer</a>. The viewer says that the re-encoded xfdl is unreadable.
I have also tried uuenview to re-encode in base64, it also produces the same results. Any help would be appreciated. | unix | linux | base64 | gzip | compression | null | open | How can I modify .xfdl files? Update #2
===
Before reading anything else, please read the <a href = "http://beta.stackoverflow.com/questions/1615/how-can-i-modify-xfdl-files-update-1">original thread</a>.
A quick simple overview: A .xfdl file is a is a gzipped .xml file which has then been encoded in base64. I wish to de-encode the .xfdl into xml which I can then modify and then re-encode.
I have been able to take a .xfdl file and de-encode it from base64 using uudeview:
uudeview -i yourform.xfdl
Then decommpressed it using gunzip
gunzip -S "" < UNKNOWN.001 > yourform-unpacked.xml
The xml produced is 100% readable and looks wonderful. Without modifying the xml then, i should be able to re-compress it using gzip:
gzip yourform-unpacked.xml
Then re-encoded in base-64:
base64 -e yourform-unpacked.xml.gz yourform_reencoded.xfdl
If my thinking is correct, the original file and the re-encoded file should be equal. If I put yourform.xfdl and yourform_reencoded.xfdl into beyond compare, however, they do not match up. Also, the original file can be viewed in an <a href = "http://www.grants.gov/help/download_software.jsp#pureedge">.xfdl viewer</a>. The viewer says that the re-encoded xfdl is unreadable.
I have also tried uuenview to re-encode in base64, it also produces the same results. Any help would be appreciated. | 0 |
6,812 | 08/09/2008 15:23:13 | 854 | 08/09/2008 15:23:13 | 1 | 0 | Mapping my custom keys in Debian | I have a Microsoft keyboard with a series of non-standard buttons such as "Mail", "Search" , "Web/Home" etc.
I would really like to be able to bind these keys so they execute arbitrary programs.
Does anybody know how to do this in Debian Etch?
Thanks in advance,
Simon | debian | linux | keyboard | null | null | null | open | Mapping my custom keys in Debian
===
I have a Microsoft keyboard with a series of non-standard buttons such as "Mail", "Search" , "Web/Home" etc.
I would really like to be able to bind these keys so they execute arbitrary programs.
Does anybody know how to do this in Debian Etch?
Thanks in advance,
Simon | 0 |
6,816 | 08/09/2008 15:40:30 | 797 | 08/09/2008 02:14:04 | 62 | 5 | Eclipse : Class file name must end with .class exception in Java Search | I was hoping someone could help me out with a problem I'm having using the java search function in Eclipse on a particular project.
When using the java search on one particular project, I get an error message saying 'Class file name must end with .class' (see stack trace below). This does not seem to be happening on all projects, just one particular one, so perhaps there's something I should try to get rebuilt?
I have already tried Project -> Clean... and Closing Eclipse, deleting all the built class files and restarting Eclipse to no avail.
The only reference I've been able to find on Google for the problem is at [http://www.crazysquirrel.com/computing/java/eclipse/error-during-java-search.jspx][1], but unfortunately his solution (closing, deleting class files, restarting) did not work for me.
If anyone can suggest something to try, or there's any more info I can gather which might help track it's down, I'd greatly appreciate the pointers.
Version: 3.4.0
Build id: I20080617-2000
Also just found this thread - [http://www.myeclipseide.com/PNphpBB2-viewtopic-t-20067.html][2] - which indicates the same problem may occur when the project name contains a period. Unfortunately, that's not the case in my setup, so I'm still stuck.
Caused by: java.lang.IllegalArgumentException: Class file name must end with .class
at org.eclipse.jdt.internal.core.PackageFragment.getClassFile(PackageFragment.java:182)
at org.eclipse.jdt.internal.core.util.HandleFactory.createOpenable(HandleFactory.java:109)
at org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:1177)
at org.eclipse.jdt.internal.core.search.JavaSearchParticipant.locateMatches(JavaSearchParticipant.java:94)
at org.eclipse.jdt.internal.core.search.BasicSearchEngine.findMatches(BasicSearchEngine.java:223)
at org.eclipse.jdt.internal.core.search.BasicSearchEngine.search(BasicSearchEngine.java:506)
at org.eclipse.jdt.core.search.SearchEngine.search(SearchEngine.java:551)
at org.eclipse.jdt.internal.corext.refactoring.RefactoringSearchEngine.internalSearch(RefactoringSearchEngine.java:142)
at org.eclipse.jdt.internal.corext.refactoring.RefactoringSearchEngine.search(RefactoringSearchEngine.java:129)
at org.eclipse.jdt.internal.corext.refactoring.rename.RenameTypeProcessor.initializeReferences(RenameTypeProcessor.java:594)
at org.eclipse.jdt.internal.corext.refactoring.rename.RenameTypeProcessor.doCheckFinalConditions(RenameTypeProcessor.java:522)
at org.eclipse.jdt.internal.corext.refactoring.rename.JavaRenameProcessor.checkFinalConditions(JavaRenameProcessor.java:45)
at org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring.checkFinalConditions(ProcessorBasedRefactoring.java:225)
at org.eclipse.ltk.core.refactoring.Refactoring.checkAllConditions(Refactoring.java:160)
at org.eclipse.jdt.internal.ui.refactoring.RefactoringExecutionHelper$Operation.run(RefactoringExecutionHelper.java:77)
at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:709)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4650)
at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:92)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
[1]: http://www.crazysquirrel.com/computing/java/eclipse/error-during-java-search.jspx
[2]: http://www.myeclipseide.com/PNphpBB2-viewtopic-t-20067.html | eclipse | java | search | bug | null | null | open | Eclipse : Class file name must end with .class exception in Java Search
===
I was hoping someone could help me out with a problem I'm having using the java search function in Eclipse on a particular project.
When using the java search on one particular project, I get an error message saying 'Class file name must end with .class' (see stack trace below). This does not seem to be happening on all projects, just one particular one, so perhaps there's something I should try to get rebuilt?
I have already tried Project -> Clean... and Closing Eclipse, deleting all the built class files and restarting Eclipse to no avail.
The only reference I've been able to find on Google for the problem is at [http://www.crazysquirrel.com/computing/java/eclipse/error-during-java-search.jspx][1], but unfortunately his solution (closing, deleting class files, restarting) did not work for me.
If anyone can suggest something to try, or there's any more info I can gather which might help track it's down, I'd greatly appreciate the pointers.
Version: 3.4.0
Build id: I20080617-2000
Also just found this thread - [http://www.myeclipseide.com/PNphpBB2-viewtopic-t-20067.html][2] - which indicates the same problem may occur when the project name contains a period. Unfortunately, that's not the case in my setup, so I'm still stuck.
Caused by: java.lang.IllegalArgumentException: Class file name must end with .class
at org.eclipse.jdt.internal.core.PackageFragment.getClassFile(PackageFragment.java:182)
at org.eclipse.jdt.internal.core.util.HandleFactory.createOpenable(HandleFactory.java:109)
at org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:1177)
at org.eclipse.jdt.internal.core.search.JavaSearchParticipant.locateMatches(JavaSearchParticipant.java:94)
at org.eclipse.jdt.internal.core.search.BasicSearchEngine.findMatches(BasicSearchEngine.java:223)
at org.eclipse.jdt.internal.core.search.BasicSearchEngine.search(BasicSearchEngine.java:506)
at org.eclipse.jdt.core.search.SearchEngine.search(SearchEngine.java:551)
at org.eclipse.jdt.internal.corext.refactoring.RefactoringSearchEngine.internalSearch(RefactoringSearchEngine.java:142)
at org.eclipse.jdt.internal.corext.refactoring.RefactoringSearchEngine.search(RefactoringSearchEngine.java:129)
at org.eclipse.jdt.internal.corext.refactoring.rename.RenameTypeProcessor.initializeReferences(RenameTypeProcessor.java:594)
at org.eclipse.jdt.internal.corext.refactoring.rename.RenameTypeProcessor.doCheckFinalConditions(RenameTypeProcessor.java:522)
at org.eclipse.jdt.internal.corext.refactoring.rename.JavaRenameProcessor.checkFinalConditions(JavaRenameProcessor.java:45)
at org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring.checkFinalConditions(ProcessorBasedRefactoring.java:225)
at org.eclipse.ltk.core.refactoring.Refactoring.checkAllConditions(Refactoring.java:160)
at org.eclipse.jdt.internal.ui.refactoring.RefactoringExecutionHelper$Operation.run(RefactoringExecutionHelper.java:77)
at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:709)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4650)
at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:92)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
[1]: http://www.crazysquirrel.com/computing/java/eclipse/error-during-java-search.jspx
[2]: http://www.myeclipseide.com/PNphpBB2-viewtopic-t-20067.html | 0 |
6,817 | 08/09/2008 15:42:17 | 852 | 08/09/2008 15:15:30 | 1 | 1 | Scaling multithreaded applications on multicored machines | I'm working on a project were we need more performance. Over time we've continued to evolve the design to work more in parallel(both threaded and distributed). Then latest step has been to move part of it onto a new machine with 16 cores. I'm finding that we need to rethink how we do things to scale to that many cores in a shared memory model. For example the standard memory allocator isn't good enough.
What resources would people recommend?
So far I've found Sutter's column Dr. Dobbs to be a good start.
I just got The Art of Multiprocessor Programming and The O'Reilly book on Intel Threading Building Blocks | multithreaded | performance | scaling | null | null | null | open | Scaling multithreaded applications on multicored machines
===
I'm working on a project were we need more performance. Over time we've continued to evolve the design to work more in parallel(both threaded and distributed). Then latest step has been to move part of it onto a new machine with 16 cores. I'm finding that we need to rethink how we do things to scale to that many cores in a shared memory model. For example the standard memory allocator isn't good enough.
What resources would people recommend?
So far I've found Sutter's column Dr. Dobbs to be a good start.
I just got The Art of Multiprocessor Programming and The O'Reilly book on Intel Threading Building Blocks | 0 |
6,834 | 08/09/2008 16:24:11 | 849 | 08/09/2008 14:55:36 | 8 | 0 | Coding for fun | I would describe myself as a career coder - i.e. a developer at work but never really coded for fun.
Early in my career I've hit the management track though. I really like my current job and can't see me going back to coding anytime soon so:
Whats the best way to develop my coding skills and learn new languages in my spare time? | untagged | null | null | null | null | 01/28/2012 01:07:57 | off topic | Coding for fun
===
I would describe myself as a career coder - i.e. a developer at work but never really coded for fun.
Early in my career I've hit the management track though. I really like my current job and can't see me going back to coding anytime soon so:
Whats the best way to develop my coding skills and learn new languages in my spare time? | 2 |
6,847 | 08/09/2008 17:02:56 | 381 | 08/05/2008 10:39:26 | 436 | 9 | Defensive programming | When writing code do you consciously program defensively to ensure high program quality and to avoid the possibility of your code being exploited maliciously, e.g. through buffer overflow exploits or code injection ?
What's the "minimum" level of quality you'll always apply to your code ? | security | quality | null | null | null | null | open | Defensive programming
===
When writing code do you consciously program defensively to ensure high program quality and to avoid the possibility of your code being exploited maliciously, e.g. through buffer overflow exploits or code injection ?
What's the "minimum" level of quality you'll always apply to your code ? | 0 |
6,859 | 08/09/2008 17:51:09 | 770 | 08/08/2008 17:20:44 | 98 | 7 | Developing addins for World of Warcraft - Getting started? | As a long time World of Warcraft player, and a passionate developer I have decided that I would like to combine the two and set about developing some addins. Not only to improve my gameplay experience but as a great opportunity to learn something new.
Does anyone have any advice on how to go about starting out?
Is there an IDE one can use? How does one go about testing? Are there any ready made libraries available? Or would I get a better learning experience by ignoring the libraries and building from scratch? How do I oneshot Hogger?
Would love to hear your advice, experiences and views.
Thanks | plugins | lua | warcraft | wow | null | null | open | Developing addins for World of Warcraft - Getting started?
===
As a long time World of Warcraft player, and a passionate developer I have decided that I would like to combine the two and set about developing some addins. Not only to improve my gameplay experience but as a great opportunity to learn something new.
Does anyone have any advice on how to go about starting out?
Is there an IDE one can use? How does one go about testing? Are there any ready made libraries available? Or would I get a better learning experience by ignoring the libraries and building from scratch? How do I oneshot Hogger?
Would love to hear your advice, experiences and views.
Thanks | 0 |
6,890 | 08/09/2008 20:00:37 | 636 | 08/07/2008 12:32:33 | 69 | 12 | Compact Framework - how to wait for thread complete before continuing? | I have some code for starting a thread on the .NET CF 2.0:
ThreadStart tStart = new ThreadStart(MyMethod);
Thread t = new Thread(tStart);
t.Start();
If I call this inside a loop the items complete out of order. How do introduce a wait after t.Start(), so that the work on the thread completes before the code continues? Will BeginInvoke/EndInvoke be a better option for this than manually creating threads? | compactframework | csharp | multithreading | null | null | null | open | Compact Framework - how to wait for thread complete before continuing?
===
I have some code for starting a thread on the .NET CF 2.0:
ThreadStart tStart = new ThreadStart(MyMethod);
Thread t = new Thread(tStart);
t.Start();
If I call this inside a loop the items complete out of order. How do introduce a wait after t.Start(), so that the work on the thread completes before the code continues? Will BeginInvoke/EndInvoke be a better option for this than manually creating threads? | 0 |
6,891 | 08/09/2008 20:01:09 | 380 | 08/05/2008 10:39:18 | 253 | 38 | Throwing ApplicationException Performance | I have come across the following type of code many a times in my life, and I wonder if this is a good practice (from Performance perspective) or not:
try
{
... // some code
}
catch (Exception ex)
{
... // Do something
throw new CustomException(ex);
}
Basically, what the coder is doing is that they are encompassing the exception in a custom exception and throwing that again.
How does this differ in Performance from the following two:
try
{
... // some code
}
catch (Exception ex)
{
.. // Do something
throw ex;
}
or
try
{
... // some code
}
catch (Exception ex)
{
.. // Do something
throw;
}
Putting aside any functional or coding best practice arguments, is there any performance difference between the 3 approaches?
Thanks. | dotnet | .net | exception | null | null | null | open | Throwing ApplicationException Performance
===
I have come across the following type of code many a times in my life, and I wonder if this is a good practice (from Performance perspective) or not:
try
{
... // some code
}
catch (Exception ex)
{
... // Do something
throw new CustomException(ex);
}
Basically, what the coder is doing is that they are encompassing the exception in a custom exception and throwing that again.
How does this differ in Performance from the following two:
try
{
... // some code
}
catch (Exception ex)
{
.. // Do something
throw ex;
}
or
try
{
... // some code
}
catch (Exception ex)
{
.. // Do something
throw;
}
Putting aside any functional or coding best practice arguments, is there any performance difference between the 3 approaches?
Thanks. | 0 |
6,899 | 08/09/2008 20:11:18 | 799 | 08/09/2008 02:28:22 | 1 | 0 | Is there a way to create a MSSQL function to "join" multiple rows from a subquery into a single delimited field? | To illustrate, assume that I have two tables as follows:
VehicleID Name
1 Chuck
2 Larry
LocationID VehicleID City
1 1 New York
2 1 Seattle
3 1 Vancouver
4 2 Los Angeles
5 2 Houston
I want to write a query to return the following results:
VehicleID Name Locations
1 Chuck New York, Seattle, Vancouver
2 Larry Los Angeles, Houston
I know that this can be done using server side cursors, ie:
DECLARE @VehicleID int
DECLARE @VehicleName varchar(100)
DECLARE @LocationCity varchar(100)
DECLARE @Locations varchar(4000)
DECLARE @Results TABLE
(
VehicleID int
Name varchar(100)
Locations varchar(4000)
)
DECLARE VehiclesCursor CURSOR FOR
SELECT
[VehicleID]
, [Name]
FROM [Vehicles]
OPEN VehiclesCursor
FETCH NEXT FROM VehiclesCursor INTO
@VehicleID
, @VehicleName
WHILE @@FETCH_STATUS = 0
BEGIN
SET @Locations = ''
DECLARE LocationsCursor CURSOR FOR
SELECT
[City]
FROM [Locations]
WHERE [VehicleID] = @VehicleID
OPEN LocationsCursor
FETCH NEXT FROM LocationsCursor INTO
@LocationCity
WHILE @@FETCH_STATUS = 0
BEGIN
SET @Locations = @Locations + @LocationCity
FETCH NEXT FROM LocationsCursor INTO
@LocationCity
END
CLOSE LocationsCursor
DEALLOCATE LocationsCursor
INSERT INTO @Results (VehicleID, Name, Locations) SELECT @VehicleID, @Name, @Locations
END
CLOSE VehiclesCursor
DEALLOCATE VehiclesCursor
SELECT * FROM @Results
However, as you can see, this requires a great deal of code. What I would like is a generic function that would allow me to do something like this:
SELECT VehicleID
, Name
, JOIN(SELECT City FROM Locations WHERE VehicleID = Vehicles.VehicleID, ', ') AS Locations
FROM Vehicles
Is this possible? Or something similar? | mssql | databases | null | null | null | null | open | Is there a way to create a MSSQL function to "join" multiple rows from a subquery into a single delimited field?
===
To illustrate, assume that I have two tables as follows:
VehicleID Name
1 Chuck
2 Larry
LocationID VehicleID City
1 1 New York
2 1 Seattle
3 1 Vancouver
4 2 Los Angeles
5 2 Houston
I want to write a query to return the following results:
VehicleID Name Locations
1 Chuck New York, Seattle, Vancouver
2 Larry Los Angeles, Houston
I know that this can be done using server side cursors, ie:
DECLARE @VehicleID int
DECLARE @VehicleName varchar(100)
DECLARE @LocationCity varchar(100)
DECLARE @Locations varchar(4000)
DECLARE @Results TABLE
(
VehicleID int
Name varchar(100)
Locations varchar(4000)
)
DECLARE VehiclesCursor CURSOR FOR
SELECT
[VehicleID]
, [Name]
FROM [Vehicles]
OPEN VehiclesCursor
FETCH NEXT FROM VehiclesCursor INTO
@VehicleID
, @VehicleName
WHILE @@FETCH_STATUS = 0
BEGIN
SET @Locations = ''
DECLARE LocationsCursor CURSOR FOR
SELECT
[City]
FROM [Locations]
WHERE [VehicleID] = @VehicleID
OPEN LocationsCursor
FETCH NEXT FROM LocationsCursor INTO
@LocationCity
WHILE @@FETCH_STATUS = 0
BEGIN
SET @Locations = @Locations + @LocationCity
FETCH NEXT FROM LocationsCursor INTO
@LocationCity
END
CLOSE LocationsCursor
DEALLOCATE LocationsCursor
INSERT INTO @Results (VehicleID, Name, Locations) SELECT @VehicleID, @Name, @Locations
END
CLOSE VehiclesCursor
DEALLOCATE VehiclesCursor
SELECT * FROM @Results
However, as you can see, this requires a great deal of code. What I would like is a generic function that would allow me to do something like this:
SELECT VehicleID
, Name
, JOIN(SELECT City FROM Locations WHERE VehicleID = Vehicles.VehicleID, ', ') AS Locations
FROM Vehicles
Is this possible? Or something similar? | 0 |
6,904 | 08/09/2008 20:22:19 | 631 | 08/07/2008 12:14:37 | 1 | 0 | Getting DirectoryNotFoundException on device.Connect() in CoreCon API | I'm trying to use the CoreCon API in Visual Studio 2008 to programmatically launch device emulators. When I call device.Connect(), I inexplicably get a DirectoryNotFoundException. I get it if I try it in PowerShell or in C# Console Application. Here's the code I'm using:
static void Main(string[] args)
{
DatastoreManager dm = new DatastoreManager(1033);
Collection<Platform> platforms = dm.GetPlatforms();
foreach (var p in platforms)
{
Console.WriteLine("{0} {1}", p.Name, p.Id);
}
Platform platform = platforms[3];
Console.WriteLine("Selected {0}", platform.Name);
Device device = platform.GetDevices()[0];
device.Connect();
Console.WriteLine("Device Connected");
SystemInfo info = device.GetSystemInfo();
Console.WriteLine("System OS Version:{0}.{1}.{2}",
info.OSMajor, info.OSMinor, info.OSBuildNo);
Console.ReadLine();
}
My question: Does anyone know why I'm getting this error? I'm running this on WinXP 32-bit, plain jane Visual Studio 2008 Pro. I imagine it's some config issue since I can't do it from a Console app or PowerShell. | c# | windows-mobile | visual-studio | corecon | compactframework | null | open | Getting DirectoryNotFoundException on device.Connect() in CoreCon API
===
I'm trying to use the CoreCon API in Visual Studio 2008 to programmatically launch device emulators. When I call device.Connect(), I inexplicably get a DirectoryNotFoundException. I get it if I try it in PowerShell or in C# Console Application. Here's the code I'm using:
static void Main(string[] args)
{
DatastoreManager dm = new DatastoreManager(1033);
Collection<Platform> platforms = dm.GetPlatforms();
foreach (var p in platforms)
{
Console.WriteLine("{0} {1}", p.Name, p.Id);
}
Platform platform = platforms[3];
Console.WriteLine("Selected {0}", platform.Name);
Device device = platform.GetDevices()[0];
device.Connect();
Console.WriteLine("Device Connected");
SystemInfo info = device.GetSystemInfo();
Console.WriteLine("System OS Version:{0}.{1}.{2}",
info.OSMajor, info.OSMinor, info.OSBuildNo);
Console.ReadLine();
}
My question: Does anyone know why I'm getting this error? I'm running this on WinXP 32-bit, plain jane Visual Studio 2008 Pro. I imagine it's some config issue since I can't do it from a Console app or PowerShell. | 0 |
6,909 | 08/09/2008 20:46:07 | 527 | 08/06/2008 14:44:09 | 87 | 22 | Improving Productivity of my Teams | Last year we were focused on improve our technical capacities and leveraging our knowledge of various architectures and frameworks and methodologies.
This year (August mark the start of a new accounting year) we need to improve our productivity. By this I don't means we need to get more KLOCs per month per programmer. What we need is to get more artifacts finished, stables, and returning in the promised market value.
For artifacts I refer to every deliverable product that we produce as part of a given project:
<ul>
<li>Software programs</li>
<li>Automatized Test Cases</li>
<li>User's Manuals<li>
<li>etc</li>
</ul>
Can you tell what things are improved your performance as solo programmer or as a member of a heterogeneous team? | performance | productivity | team | teamwork | null | 05/05/2012 19:03:22 | off topic | Improving Productivity of my Teams
===
Last year we were focused on improve our technical capacities and leveraging our knowledge of various architectures and frameworks and methodologies.
This year (August mark the start of a new accounting year) we need to improve our productivity. By this I don't means we need to get more KLOCs per month per programmer. What we need is to get more artifacts finished, stables, and returning in the promised market value.
For artifacts I refer to every deliverable product that we produce as part of a given project:
<ul>
<li>Software programs</li>
<li>Automatized Test Cases</li>
<li>User's Manuals<li>
<li>etc</li>
</ul>
Can you tell what things are improved your performance as solo programmer or as a member of a heterogeneous team? | 2 |
6,913 | 08/09/2008 21:05:40 | 863 | 08/09/2008 19:07:26 | 36 | 2 | How do I best share an embeddable form in VB6? | Is there a good way to create a form in VB6 that can easily be embedded inside other forms?
On a few occasions recently, I've wanted to design and code a Form object that I could plug into several other "parent" forms. My goal is to create a centralized piece of code for managing several UI components in a particular way, and then be able to use that (both the UI layout and the logic) in more than one place. I'm certainly willing to use code (rather than the Design View) to load the child form.
The best I've come up with so far is to pull all of the interesting logic for the child form into a Class Module, and have each parent form lay out the UI (in a Picture control, perhaps) and pass that Picture object into the class module. The class then knows how to operate on the picture, and it assumes that all its expected pieces have been laid out appropriately. This approach has several downsides, and I'd like something a bit more elegant. | vb6 | code-reuse | null | null | null | null | open | How do I best share an embeddable form in VB6?
===
Is there a good way to create a form in VB6 that can easily be embedded inside other forms?
On a few occasions recently, I've wanted to design and code a Form object that I could plug into several other "parent" forms. My goal is to create a centralized piece of code for managing several UI components in a particular way, and then be able to use that (both the UI layout and the logic) in more than one place. I'm certainly willing to use code (rather than the Design View) to load the child form.
The best I've come up with so far is to pull all of the interesting logic for the child form into a Class Module, and have each parent form lay out the UI (in a Picture control, perhaps) and pass that Picture object into the class module. The class then knows how to operate on the picture, and it assumes that all its expected pieces have been laid out appropriately. This approach has several downsides, and I'd like something a bit more elegant. | 0 |
6,915 | 08/09/2008 21:16:29 | 755 | 08/08/2008 15:28:16 | 3 | 4 | Thread safe lazy contruction of a singleton in C++ | Is there a way to implement a singleton object in C++ that is:
1. Lazily constructed in a thread safe manner (two threads might simultaneously be the first user of the singleton - it should still only be constructed once).
2. Doesn't rely on static variables being constructed beforehand (so the singleton object is itself safe to use during the construction of static variables).
(I don't know my C++ well enough, but is it the case that integral and constant static variables are initialized before any code is executed (ie, even before static constructors are executed - their values may already be "initialized" in the program image)? If so - perhaps this can be exploited to implement a singleton mutex - which can in turn be used to guard the creation of the real singleton..) | c++ | singleton | lazy | construction | thread-safe | null | open | Thread safe lazy contruction of a singleton in C++
===
Is there a way to implement a singleton object in C++ that is:
1. Lazily constructed in a thread safe manner (two threads might simultaneously be the first user of the singleton - it should still only be constructed once).
2. Doesn't rely on static variables being constructed beforehand (so the singleton object is itself safe to use during the construction of static variables).
(I don't know my C++ well enough, but is it the case that integral and constant static variables are initialized before any code is executed (ie, even before static constructors are executed - their values may already be "initialized" in the program image)? If so - perhaps this can be exploited to implement a singleton mutex - which can in turn be used to guard the creation of the real singleton..) | 0 |
6,926 | 08/09/2008 21:57:07 | 91 | 08/01/2008 17:55:22 | 3,047 | 202 | Beginning Shader Development | I want to get started doing some game development using Microsoft's XNA. Part of that is Shader development, but I have no idea how to get started. I know that [nVidia's FX Composer][1] is a great tool to develop shaders, but I did not find much useful and updated content on how to actually get started.
What tutorials would you recommend?
[1]: http://developer.nvidia.com/object/fx_composer_home.html | shader | null | null | null | null | null | open | Beginning Shader Development
===
I want to get started doing some game development using Microsoft's XNA. Part of that is Shader development, but I have no idea how to get started. I know that [nVidia's FX Composer][1] is a great tool to develop shaders, but I did not find much useful and updated content on how to actually get started.
What tutorials would you recommend?
[1]: http://developer.nvidia.com/object/fx_composer_home.html | 0 |
6,932 | 08/09/2008 22:19:59 | 571 | 08/06/2008 20:19:59 | 168 | 23 | Transcoding audio and video | What is the best way to transcode audio and video to show on the web?
I need to do it programmatically. I'd like to do something like YouTube or Google Video where users can upload whatever format they want, and I encode it to flv, mp3, and/or mp4. I could do it on our server, but I would rather use an EC2 instance or even a web service. We have a Windows 2008 server. | video | audio | mp3 | flv | mp4 | null | open | Transcoding audio and video
===
What is the best way to transcode audio and video to show on the web?
I need to do it programmatically. I'd like to do something like YouTube or Google Video where users can upload whatever format they want, and I encode it to flv, mp3, and/or mp4. I could do it on our server, but I would rather use an EC2 instance or even a web service. We have a Windows 2008 server. | 0 |
6,937 | 08/09/2008 22:55:26 | 396 | 08/05/2008 12:46:44 | 115 | 9 | Visual Studio and dual/multiple monitors: how do I get optimized use out of my monitors? | Ultramon is a great program for dual monitors (stretching screen across monitors), but I was wondering if there is any way do to something in Visual Studio like have one tab of code open on one monitor and a second tab of code open on the second monitor with only one instance of Visual Studio running?
Or are there any other suggestions on getting most bang for buck on dual monitors and Visual Studio? | visual-studio | monitor | dual | multiple | null | null | open | Visual Studio and dual/multiple monitors: how do I get optimized use out of my monitors?
===
Ultramon is a great program for dual monitors (stretching screen across monitors), but I was wondering if there is any way do to something in Visual Studio like have one tab of code open on one monitor and a second tab of code open on the second monitor with only one instance of Visual Studio running?
Or are there any other suggestions on getting most bang for buck on dual monitors and Visual Studio? | 0 |
6,957 | 08/10/2008 00:01:18 | 116 | 08/02/2008 05:51:57 | 1,182 | 85 | Has anybody used Google Performance Tools? | Looking for feedback on :
<http://code.google.com/p/google-perftools/wiki/GooglePerformanceTools> | c++ | c | performance | multithreading | malloc | null | open | Has anybody used Google Performance Tools?
===
Looking for feedback on :
<http://code.google.com/p/google-perftools/wiki/GooglePerformanceTools> | 0 |
6,973 | 08/10/2008 00:50:16 | 752 | 08/08/2008 14:49:24 | 1 | 0 | Invalid Resource File | When attempting to compile my C# project, I get the following error:
'C:\Documents and Settings\Dan\Desktop\Rowdy Pixel\Apps\CleanerMenu\CleanerMenu\obj\Debug\CSC97.tmp' is not a valid Win32 resource file.
Having gone through many Google searches, I have determined that this is usually caused by a 256x256 image inside an icon used by the project. I've gone through all the icons and removed the 256x256 versions, but the error persists. Any ideas on how to get rid of this? | c# | visual-studio | compiler | resources | null | null | open | Invalid Resource File
===
When attempting to compile my C# project, I get the following error:
'C:\Documents and Settings\Dan\Desktop\Rowdy Pixel\Apps\CleanerMenu\CleanerMenu\obj\Debug\CSC97.tmp' is not a valid Win32 resource file.
Having gone through many Google searches, I have determined that this is usually caused by a 256x256 image inside an icon used by the project. I've gone through all the icons and removed the 256x256 versions, but the error persists. Any ideas on how to get rid of this? | 0 |
7,002 | 08/10/2008 02:19:12 | 653 | 08/07/2008 14:31:07 | 51 | 5 | What JavaScript patterns do you use most? | Lately I find myself frequently creating singletons using the module pattern [module pattern][1]:
var singleton = (function(){
var _privateVariable = {};
var _privateMethod = function() {};
return {
publicVariable: {},
publicMethod: function() {}
}
})();
What is/are you favorite pattern/s for maintainable JavaScript?
[1]: http://yuiblog.com/blog/2007/06/12/module-pattern/ | javascript | designpatterns | null | null | null | 03/07/2012 16:57:22 | not constructive | What JavaScript patterns do you use most?
===
Lately I find myself frequently creating singletons using the module pattern [module pattern][1]:
var singleton = (function(){
var _privateVariable = {};
var _privateMethod = function() {};
return {
publicVariable: {},
publicMethod: function() {}
}
})();
What is/are you favorite pattern/s for maintainable JavaScript?
[1]: http://yuiblog.com/blog/2007/06/12/module-pattern/ | 4 |
7,015 | 08/10/2008 03:07:39 | 493 | 08/06/2008 10:25:05 | 591 | 48 | Multicore Text File Parsing | I have a quad core machine and would like to write some code to parse a text file that takes advantage of all four cores. The text file basically contains one record per line.
Multithreading isn't my forte so I'm wondering if anyone could give me some patterns that I might be able to use to parse the file in an optimal manner.
My first thoughts are to read all the lines into some sort of queue and then spin up threads to pull the lines off the queue and process them, but that means the queue would have to exist in memory and these are faily large files so I'm not so keen on that idea.
My next thoughts are to have some sort of controller that will read in a line and assign it a thread to parse, but I'm not sure if the controller will end up being a bottleneck if the threads are processing the lines faster than it can read and assign them.
I know there's probably another simpler solution than both of these but at the moment I'm just not seeing it. | c# | threading | multithreaded | quadcore | null | null | open | Multicore Text File Parsing
===
I have a quad core machine and would like to write some code to parse a text file that takes advantage of all four cores. The text file basically contains one record per line.
Multithreading isn't my forte so I'm wondering if anyone could give me some patterns that I might be able to use to parse the file in an optimal manner.
My first thoughts are to read all the lines into some sort of queue and then spin up threads to pull the lines off the queue and process them, but that means the queue would have to exist in memory and these are faily large files so I'm not so keen on that idea.
My next thoughts are to have some sort of controller that will read in a line and assign it a thread to parse, but I'm not sure if the controller will end up being a bottleneck if the threads are processing the lines faster than it can read and assign them.
I know there's probably another simpler solution than both of these but at the moment I'm just not seeing it. | 0 |
7,017 | 08/10/2008 03:11:27 | 814 | 08/09/2008 04:07:15 | 1 | 0 | What is the best way to draw skinnable "buttons" in XNA game application | I'm looking for ideas on how to draw a skinnable "button" in a game application. If I use a fixed sprite non-vector image for the button background, then I can't size the button easily. If I write code to draw a resizable button (like Windows buttons are drawn), then the programmer has to get involved -- and it makes skinning difficult. Another option is to break the button into 9 smaller images (3x3) and stretch them all -- kindof like rounded corners are done in HTML.
Is there another "easier" way? What's the best approach? | xna | button | skins | null | null | null | open | What is the best way to draw skinnable "buttons" in XNA game application
===
I'm looking for ideas on how to draw a skinnable "button" in a game application. If I use a fixed sprite non-vector image for the button background, then I can't size the button easily. If I write code to draw a resizable button (like Windows buttons are drawn), then the programmer has to get involved -- and it makes skinning difficult. Another option is to break the button into 9 smaller images (3x3) and stretch them all -- kindof like rounded corners are done in HTML.
Is there another "easier" way? What's the best approach? | 0 |
7,031 | 08/10/2008 04:00:06 | 876 | 08/10/2008 03:45:22 | 1 | 1 | Javascript and PHP - Login Script with hidden buttons | I have been using PHP and Javascript for building my dads website. He wants to incorporate a login system into his website. I have the design for the login system using PHP, my problem is how do I show buttons if the person is logged in.
For Example - You have Home, Products, About Us, and Contact. Well I want to have buttons for Dealer, Distributor, and maybe other information if the user is logged in. So I will have Home, Products, About Us, Contacts, Dealer (if dealer login), Distributor (if distributor login), and so forth.
Would Javascript be a good way to do this or would php, maybe even both. Using Javascript to show and hide buttons, and php to check to see which buttons to show. | php | javascript | design | webdevelopment | null | null | open | Javascript and PHP - Login Script with hidden buttons
===
I have been using PHP and Javascript for building my dads website. He wants to incorporate a login system into his website. I have the design for the login system using PHP, my problem is how do I show buttons if the person is logged in.
For Example - You have Home, Products, About Us, and Contact. Well I want to have buttons for Dealer, Distributor, and maybe other information if the user is logged in. So I will have Home, Products, About Us, Contacts, Dealer (if dealer login), Distributor (if distributor login), and so forth.
Would Javascript be a good way to do this or would php, maybe even both. Using Javascript to show and hide buttons, and php to check to see which buttons to show. | 0 |
7,034 | 08/10/2008 04:07:52 | 404 | 08/05/2008 13:34:59 | 342 | 24 | Graph visualization code in javascript? | I have a data structure that represents a directed graph, and I want to render that dynamically on an HTML page. Does anyone know of any javascript code that can do a reasonable job with graph layout? These graphs will usually be just a few nodes, maybe ten at the very upper end, so my guess is that performance isn't going to be a big deal. Ideally, I'd like to be able to hook it in with jQuery so that users can tweak the layout manually by dragging the nodes around. | javascript | graph | layout | datastructure | jquery | 06/22/2012 11:54:26 | not constructive | Graph visualization code in javascript?
===
I have a data structure that represents a directed graph, and I want to render that dynamically on an HTML page. Does anyone know of any javascript code that can do a reasonable job with graph layout? These graphs will usually be just a few nodes, maybe ten at the very upper end, so my guess is that performance isn't going to be a big deal. Ideally, I'd like to be able to hook it in with jQuery so that users can tweak the layout manually by dragging the nodes around. | 4 |
7,035 | 08/10/2008 04:07:55 | 369 | 08/05/2008 08:33:43 | 103 | 8 | showing a message box from a bash script in linux | I'm writing a few little bash scripts under Ubuntu linux. I want to be able to run them from the GUI without needing a terminal window to enter any input or view any output.
So far the only input required is a password for sudo - and gksudo handles that fine.
But I haven't found an easy way to show a message box yet. Is there some kind of 'gkmessage' command available? I'd prefer something present in a default Ubuntu install, but I don't mind installing a new package if necessary. | linux | bash | scripting | ubuntu | gtk | null | open | showing a message box from a bash script in linux
===
I'm writing a few little bash scripts under Ubuntu linux. I want to be able to run them from the GUI without needing a terminal window to enter any input or view any output.
So far the only input required is a password for sudo - and gksudo handles that fine.
But I haven't found an easy way to show a message box yet. Is there some kind of 'gkmessage' command available? I'd prefer something present in a default Ubuntu install, but I don't mind installing a new package if necessary. | 0 |
7,047 | 08/10/2008 05:04:42 | 358 | 08/05/2008 01:41:40 | 435 | 28 | How do you ensure you follow through on ideas? | I have a terrible habit of half-cooking up an idea for a project and then once I feel that I've ***solved the interesting bits*** it gets boring and I move on. Of course, experience with the projects that I do end up following through on says that I haven't ***solved*** it at all.
What techniques do you employ to try and deal with this sort of behavior? | self-improvement | null | null | null | null | 03/01/2012 19:48:22 | not constructive | How do you ensure you follow through on ideas?
===
I have a terrible habit of half-cooking up an idea for a project and then once I feel that I've ***solved the interesting bits*** it gets boring and I move on. Of course, experience with the projects that I do end up following through on says that I haven't ***solved*** it at all.
What techniques do you employ to try and deal with this sort of behavior? | 4 |
7,050 | 08/10/2008 05:10:31 | 358 | 08/05/2008 01:41:40 | 435 | 28 | How to stoke the fires of passion in your office? | I work in a software development environment with many teams working on many projects. Over the next year I have set a goal of making those around me more passionate about the industry of software. I've started by increasing general awareness of industry news and events, encouraging team-mates to blog, hosting brown-bag (lunch'n'learn) sessions.
What else do people suggest that I try? | team | industry | passion | null | null | null | open | How to stoke the fires of passion in your office?
===
I work in a software development environment with many teams working on many projects. Over the next year I have set a goal of making those around me more passionate about the industry of software. I've started by increasing general awareness of industry news and events, encouraging team-mates to blog, hosting brown-bag (lunch'n'learn) sessions.
What else do people suggest that I try? | 0 |
7,074 | 08/10/2008 07:18:02 | 571 | 08/06/2008 20:19:59 | 183 | 24 | In C# what is the difference between String and string | In C# what is the difference between String and string? (note the case)
Also, what are the guidelines for the use of each? | c# | string | null | null | null | null | open | In C# what is the difference between String and string
===
In C# what is the difference between String and string? (note the case)
Also, what are the guidelines for the use of each? | 0 |
7,084 | 08/10/2008 07:50:54 | 888 | 08/10/2008 07:50:54 | 1 | 0 | When should I use type abstraction in embedded systems | I've worked on a number of different embedded systems. They have all used typedefs (or #defines) for types such as UINT32.
This is a good technique as it drives home the size of the type to the programmer and makes you more conscious of chances for overflow etc. etc.
But on some systems you know that the compiler and processor won't change for the life of the project.
So what should influence your decision to create and enforce project-specific types? | c | implementation | decisioms | null | null | null | open | When should I use type abstraction in embedded systems
===
I've worked on a number of different embedded systems. They have all used typedefs (or #defines) for types such as UINT32.
This is a good technique as it drives home the size of the type to the programmer and makes you more conscious of chances for overflow etc. etc.
But on some systems you know that the compiler and processor won't change for the life of the project.
So what should influence your decision to create and enforce project-specific types? | 0 |
7,089 | 08/10/2008 08:08:21 | 889 | 08/10/2008 08:04:03 | 1 | 0 | What is the best way to create rounded corners using CSS? | What is the best way to create rounded corners using CSS? | css | null | null | null | null | 07/13/2012 09:19:47 | not constructive | What is the best way to create rounded corners using CSS?
===
What is the best way to create rounded corners using CSS? | 4 |
7,095 | 08/10/2008 08:23:55 | 373 | 08/05/2008 09:37:52 | 71 | 9 | Is the C# static constructor thread safe? | In other words, is this Singleton implementation thread safe:
public class Singleton
{
private static Singleton instance;
private Singleton() { }
static Singleton()
{
instance = new Singleton();
}
public static Singleton Instance
{
get { return instance; }
}
} | c# | multithreading | singleton | null | null | null | open | Is the C# static constructor thread safe?
===
In other words, is this Singleton implementation thread safe:
public class Singleton
{
private static Singleton instance;
private Singleton() { }
static Singleton()
{
instance = new Singleton();
}
public static Singleton Instance
{
get { return instance; }
}
} | 0 |
7,115 | 08/10/2008 08:59:16 | 571 | 08/06/2008 20:19:59 | 190 | 26 | What are good topics for presentations at .NET Users Groups | What are good things to present on at .NET Users Group meetings? | presentation | usersgroup | null | null | null | 05/05/2012 01:46:31 | off topic | What are good topics for presentations at .NET Users Groups
===
What are good things to present on at .NET Users Group meetings? | 2 |
7,118 | 08/10/2008 09:07:19 | 889 | 08/10/2008 08:04:03 | 13 | 0 | Debugging Javascript in Internet Explorer and Safari | Currently, I don't really have a good method of debugging javascript in internet explorer and safari. In Firefox, you can use Firebug's [Logging feature][1] and [Command Line functions][2]. However, this doesn't help me when I move to other browsers.
[1]: http://getfirebug.com/logging.html
[2]: http://getfirebug.com/commandline.html | javascript | safari | explorer | null | null | null | open | Debugging Javascript in Internet Explorer and Safari
===
Currently, I don't really have a good method of debugging javascript in internet explorer and safari. In Firefox, you can use Firebug's [Logging feature][1] and [Command Line functions][2]. However, this doesn't help me when I move to other browsers.
[1]: http://getfirebug.com/logging.html
[2]: http://getfirebug.com/commandline.html | 0 |
7,121 | 08/10/2008 09:09:15 | 878 | 08/10/2008 05:50:34 | 11 | 8 | What should a software engineer read before branching out on their own? | I'm a software engineer living vicariously through the [Venture Voice][1] podcast and books like Founders at Work. What should I read before I branch out and try to write and sell software on my own?
[1]: http://venturevoice.com/ "Venture Voice entrepreneur podcast" | books | bookrecommendations | startups | entrepreneurship | null | null | open | What should a software engineer read before branching out on their own?
===
I'm a software engineer living vicariously through the [Venture Voice][1] podcast and books like Founders at Work. What should I read before I branch out and try to write and sell software on my own?
[1]: http://venturevoice.com/ "Venture Voice entrepreneur podcast" | 0 |
7,137 | 08/10/2008 09:48:33 | 849 | 08/09/2008 14:55:36 | 20 | 2 | Replacing one string in a bunch of file names with another | Every week I put up a bunch of .jpg screen captures on my project's wiki to show the difference between this week's status and last weeks.
The files are called things like 'ProgrammerAtasks_current.jpg' and 'ProgrammerBtasks_lastweek.jpg' so there is a pair of *_current.jpg and *_lastweek.jpg for each status.
Each week I delete the old '*_lastweek.jpg' and then rename the old *current to *lastweek.
I can use rm *_lastweek* to do the first part of the task, but how do I automate renaming *_current.jpg to *_lastweek.jpg? | productivity | filenames | null | null | null | null | open | Replacing one string in a bunch of file names with another
===
Every week I put up a bunch of .jpg screen captures on my project's wiki to show the difference between this week's status and last weeks.
The files are called things like 'ProgrammerAtasks_current.jpg' and 'ProgrammerBtasks_lastweek.jpg' so there is a pair of *_current.jpg and *_lastweek.jpg for each status.
Each week I delete the old '*_lastweek.jpg' and then rename the old *current to *lastweek.
I can use rm *_lastweek* to do the first part of the task, but how do I automate renaming *_current.jpg to *_lastweek.jpg? | 0 |
7,139 | 08/10/2008 09:50:01 | 842 | 08/09/2008 10:29:44 | 1 | 2 | Should a first release be an 0.1 version or 1.0b? | I see so many projects and softwares released on the internet that has a 0.x version and they never reaches 1.0.
Shouldn't a first release be 1.0 (or 1.0b at least)? | version | releasing | beta | null | null | null | open | Should a first release be an 0.1 version or 1.0b?
===
I see so many projects and softwares released on the internet that has a 0.x version and they never reaches 1.0.
Shouldn't a first release be 1.0 (or 1.0b at least)? | 0 |
7,170 | 08/10/2008 12:00:29 | 916 | 08/10/2008 11:21:51 | 1 | 2 | Recommendation for straight-forward python frameworks | Although I have quite a few years of experience of building web applications in Java, I've not really done much web development in the more lightweight 'LAMP' style.
I've recently picked up python and am quite liking what I see so far, but there isn't an 'obvious' choice for which web framework to use, as it seems there are a number of well-used options.
While I'd like to have a nice rich framework to use, I would prefer a framework that was accessible rather than one that "did a lot of code for me". Mainly because if I then need to customise something, I need to get involved in a lot of that boilerplate code.
So given this thinking, what would be the best option for Python web development? | python | framework | webapp | lamp | null | null | open | Recommendation for straight-forward python frameworks
===
Although I have quite a few years of experience of building web applications in Java, I've not really done much web development in the more lightweight 'LAMP' style.
I've recently picked up python and am quite liking what I see so far, but there isn't an 'obvious' choice for which web framework to use, as it seems there are a number of well-used options.
While I'd like to have a nice rich framework to use, I would prefer a framework that was accessible rather than one that "did a lot of code for me". Mainly because if I then need to customise something, I need to get involved in a lot of that boilerplate code.
So given this thinking, what would be the best option for Python web development? | 0 |
7,173 | 08/10/2008 12:11:24 | 917 | 08/10/2008 12:11:24 | 1 | 0 | Very slow merge with Subversion 1.5 | I switched locally from subversion 1.4 to 1.5, our server still runs 1.4. Since then every merge takes ages to perform. What took only a couple of seconds is now in the area of 5-10 minutes (or more). There is no difference between the command line client and tortoise (so we talk about the windows versions).
Has anybody else this strange phenomenon? | svn | null | null | null | null | null | open | Very slow merge with Subversion 1.5
===
I switched locally from subversion 1.4 to 1.5, our server still runs 1.4. Since then every merge takes ages to perform. What took only a couple of seconds is now in the area of 5-10 minutes (or more). There is no difference between the command line client and tortoise (so we talk about the windows versions).
Has anybody else this strange phenomenon? | 0 |
7,174 | 08/10/2008 12:12:09 | 886 | 08/10/2008 07:46:39 | 1 | 1 | How can I improve the edit-compile-test loop when developing a SharePoint workflow? | Recently I had to develop a SharePoint workflow, and I found the experience quite honestly the most painful programming task I've ever had to tackle. One big problem I had was the problems I encountered when I had to step through it in the debugger.
There's an article on how to debug a SharePoint workflow [here][1] that tells you how to set breakpoints etc. This involves copying the .pdb file into the GAC alongside the .dll file containing your workflow. You have to do this from a command prompt (or a batch file) because Windows Explorer doesn't let you view the relevant subdirectory of c:\windows\assembly.
However, if you do this, the next time you try to deploy the workflow from within Visual Studio, it complains that it can't be deployed because "the file may not be signed" and if you attempt to copy the new version of the dll into the GAC, it tells you that the .dll file is locked.
I've found that some of the time, you can get round this by doing an iisreset, but on other occasions you have to restart Visual Studio and there have been frequent times when I've even had to reboot the computer altogether because some mystery process has locked the file. When I don't use the debugger, on the other hand, everything works just fine.
Does anyone know of a simpler way of debugging workflows than this?
[1]: http://www.andrewconnell.com/blog/archive/2008/06/11/SharePoint-Debugging-and-Logging-Tips-and-Tricks.aspx | sharepoint | workflows | null | null | null | null | open | How can I improve the edit-compile-test loop when developing a SharePoint workflow?
===
Recently I had to develop a SharePoint workflow, and I found the experience quite honestly the most painful programming task I've ever had to tackle. One big problem I had was the problems I encountered when I had to step through it in the debugger.
There's an article on how to debug a SharePoint workflow [here][1] that tells you how to set breakpoints etc. This involves copying the .pdb file into the GAC alongside the .dll file containing your workflow. You have to do this from a command prompt (or a batch file) because Windows Explorer doesn't let you view the relevant subdirectory of c:\windows\assembly.
However, if you do this, the next time you try to deploy the workflow from within Visual Studio, it complains that it can't be deployed because "the file may not be signed" and if you attempt to copy the new version of the dll into the GAC, it tells you that the .dll file is locked.
I've found that some of the time, you can get round this by doing an iisreset, but on other occasions you have to restart Visual Studio and there have been frequent times when I've even had to reboot the computer altogether because some mystery process has locked the file. When I don't use the debugger, on the other hand, everything works just fine.
Does anyone know of a simpler way of debugging workflows than this?
[1]: http://www.andrewconnell.com/blog/archive/2008/06/11/SharePoint-Debugging-and-Logging-Tips-and-Tricks.aspx | 0 |
7,180 | 08/10/2008 12:39:20 | 274 | 08/04/2008 10:43:23 | 83 | 11 | Animation in .Net | What is a good way to perform animation using .Net. I would prefer not to use Flash if possible, so am looking for suggestions of ways which will work to implement different types of animation on a new site I am producing.
The new site is for a magician, so I want to provide animated buttons (Cards turning over etc) and also embed video. Is it possible to do this without using Flash or is this the only real solution. I would like to keep it as cross platform and standard as possible.
Cheers | .net | animation | null | null | null | null | open | Animation in .Net
===
What is a good way to perform animation using .Net. I would prefer not to use Flash if possible, so am looking for suggestions of ways which will work to implement different types of animation on a new site I am producing.
The new site is for a magician, so I want to provide animated buttons (Cards turning over etc) and also embed video. Is it possible to do this without using Flash or is this the only real solution. I would like to keep it as cross platform and standard as possible.
Cheers | 0 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.