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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10,278,094 | 04/23/2012 09:39:35 | 727,441 | 04/27/2011 14:05:04 | 1 | 0 | Facebook auth access link stopped working, i only get generic error message | I have a facebook page tab where i try to get the access token with the link
https://www.facebook.com/dialog/oauth?client_id=[APP_ID]&redirect_uri=[REDIRECT_URI]
I has been working, but now all of a sudden I just get a generic error message: "An error occurred. Please try again later."
I have checked and the APP_ID is correct, and as far as i can see the applications settings are ok. Have there been any new changes to this or something? | facebook | facebook-access-token | null | null | null | null | open | Facebook auth access link stopped working, i only get generic error message
===
I have a facebook page tab where i try to get the access token with the link
https://www.facebook.com/dialog/oauth?client_id=[APP_ID]&redirect_uri=[REDIRECT_URI]
I has been working, but now all of a sudden I just get a generic error message: "An error occurred. Please try again later."
I have checked and the APP_ID is correct, and as far as i can see the applications settings are ok. Have there been any new changes to this or something? | 0 |
10,278,107 | 04/23/2012 09:40:11 | 1,350,957 | 04/23/2012 09:32:27 | 1 | 0 | How to edit part of an .XLSX file with Java POI-XSSF | I'm trying to find a way to edit a large XLSX file using the Java POI library.
The way I normally handled this in the POI-HSSF environment (which I replaced with XSSF recently since xlsx is now required) is to read in a workbook, make the required changes and write the workbook back to file.
The larger memory footprint of XSSF is throwing me for a loop though, throwing heap space errors with this approach.
Ideally I'd like to only extract the sheet I need, make the necessary changes and then put it back inside the original document (or a copy of it, that really isn't relevant).
Any help would be appreciated, I couldn't find a solution myself. | java | apache-poi | xlsx | null | null | null | open | How to edit part of an .XLSX file with Java POI-XSSF
===
I'm trying to find a way to edit a large XLSX file using the Java POI library.
The way I normally handled this in the POI-HSSF environment (which I replaced with XSSF recently since xlsx is now required) is to read in a workbook, make the required changes and write the workbook back to file.
The larger memory footprint of XSSF is throwing me for a loop though, throwing heap space errors with this approach.
Ideally I'd like to only extract the sheet I need, make the necessary changes and then put it back inside the original document (or a copy of it, that really isn't relevant).
Any help would be appreciated, I couldn't find a solution myself. | 0 |
10,278,111 | 04/23/2012 09:40:16 | 828,547 | 07/04/2011 17:59:57 | 161 | 8 | iOS User Experience Guidelines - login/register dialogs | I thought the [Apple iOS User Experience Guidelines][1] would include recommendations around providing login / register dialogs (toggling between the two etc). I can't find any. Does anyone know if recommendations for this exist, and if so, can you provide a link to the recommendations?
[1]: http://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/MobileHIG/Introduction/Introduction.html#//apple_ref/doc/uid/TP40006556-CH1-SW1 | ios | user-experience | null | null | null | null | open | iOS User Experience Guidelines - login/register dialogs
===
I thought the [Apple iOS User Experience Guidelines][1] would include recommendations around providing login / register dialogs (toggling between the two etc). I can't find any. Does anyone know if recommendations for this exist, and if so, can you provide a link to the recommendations?
[1]: http://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/MobileHIG/Introduction/Introduction.html#//apple_ref/doc/uid/TP40006556-CH1-SW1 | 0 |
40,090 | 09/02/2008 17:25:56 | 305 | 08/04/2008 14:04:19 | 1,299 | 85 | Is overloading the only way to have default function arguments in C#? | Is it true that the only way to handle default function arguments is through function overloading?
For example, in PHP I can do this:
function foo($x, $y=0)
{
}
Would the best way to handle it in C# be this?
void foo($x)
{
foo($x, 0);
}
void foo($x, $y)
{
}
***[Example lifted from here](http://bytes.com/forum/thread224970.html)*** | c# | overloading | null | null | null | null | open | Is overloading the only way to have default function arguments in C#?
===
Is it true that the only way to handle default function arguments is through function overloading?
For example, in PHP I can do this:
function foo($x, $y=0)
{
}
Would the best way to handle it in C# be this?
void foo($x)
{
foo($x, 0);
}
void foo($x, $y)
{
}
***[Example lifted from here](http://bytes.com/forum/thread224970.html)*** | 0 |
40,100 | 09/02/2008 17:29:04 | 4,161 | 09/02/2008 07:55:46 | 166 | 4 | Apache licence vs BSD vs MIT | A couple of years ago, ZDNet [ran an article](http://blogs.zdnet.com/Burnette/?p=192) interviewing Greg Stein on the Google Code project, discussing several software licences and why Google Code only accepts a few of them. That article's been one of my biggest influences when it comes to "understanding" a few of the more common licences around.
With relevance to the question I'm about to ask, here's the money quote:
> That is one of the reasons that Google chooses the Apache License (2.0) as the default for the software it open-sources. It is permissive like BSD, but (unlike BSD) actually happens to mention the rights under copyright law and gives you a license under those rights. In other words, it actually knows what it is doing unlike some of the other permissive licenses.
Do you agree? Due to this article I've used and recommended the Apache License over the BSD and MIT licences without question; but it's not like this article is necessarily the final word on this matter. Is there anything *better* (in the same vein) as the Apache Licence? | open-source | licensing | null | null | null | null | open | Apache licence vs BSD vs MIT
===
A couple of years ago, ZDNet [ran an article](http://blogs.zdnet.com/Burnette/?p=192) interviewing Greg Stein on the Google Code project, discussing several software licences and why Google Code only accepts a few of them. That article's been one of my biggest influences when it comes to "understanding" a few of the more common licences around.
With relevance to the question I'm about to ask, here's the money quote:
> That is one of the reasons that Google chooses the Apache License (2.0) as the default for the software it open-sources. It is permissive like BSD, but (unlike BSD) actually happens to mention the rights under copyright law and gives you a license under those rights. In other words, it actually knows what it is doing unlike some of the other permissive licenses.
Do you agree? Due to this article I've used and recommended the Apache License over the BSD and MIT licences without question; but it's not like this article is necessarily the final word on this matter. Is there anything *better* (in the same vein) as the Apache Licence? | 0 |
40,107 | 09/02/2008 17:32:15 | 1,455 | 08/15/2008 17:03:04 | 53 | 6 | Using attributes to cut down on enum to enum mapping and enum/const to action switch statments | I imagine everyone has seen code like:
public void Server2ClientEnumConvert( ServerEnum server)
{
switch(server)
{
case ServerEnum.One:
return ClientEnum.ABC
//And so on.
Instead of this badness we could do somthing like:
public enum ServerEnum
{
[Enum2Enum(ClientEnum.ABC)]
One,
}
Now we can use reflection to rip through ServerEnum and get the conversion mappings from the enum declaration itself.
The problem I am having here is in the declaration of the Enum2Enum attribute.
This works but replacing object o with Enum e does not. I do not want to be able to pass in objects to the constructor, only other enums.
public class EnumToEnumAttribute : Attribute
{
public EnumToEnumAttribute(object o){}
}
This fails to compile.
public class EnumToEnumAttribute : Attribute
{
public EnumToEnumAttribute(Enum e){}
}
Is there a reason for the compile error? How else could I pass in the information need to map besides: EnumtoEnumAttribute(Type dest, string enumString)? This seems to verbose but if it is the only way then I guess I will use it.
| c# | reflection | null | null | null | null | open | Using attributes to cut down on enum to enum mapping and enum/const to action switch statments
===
I imagine everyone has seen code like:
public void Server2ClientEnumConvert( ServerEnum server)
{
switch(server)
{
case ServerEnum.One:
return ClientEnum.ABC
//And so on.
Instead of this badness we could do somthing like:
public enum ServerEnum
{
[Enum2Enum(ClientEnum.ABC)]
One,
}
Now we can use reflection to rip through ServerEnum and get the conversion mappings from the enum declaration itself.
The problem I am having here is in the declaration of the Enum2Enum attribute.
This works but replacing object o with Enum e does not. I do not want to be able to pass in objects to the constructor, only other enums.
public class EnumToEnumAttribute : Attribute
{
public EnumToEnumAttribute(object o){}
}
This fails to compile.
public class EnumToEnumAttribute : Attribute
{
public EnumToEnumAttribute(Enum e){}
}
Is there a reason for the compile error? How else could I pass in the information need to map besides: EnumtoEnumAttribute(Type dest, string enumString)? This seems to verbose but if it is the only way then I guess I will use it.
| 0 |
40,112 | 09/02/2008 17:34:34 | 685 | 08/07/2008 19:18:05 | 100 | 11 | Is there a way to get ms-access to display images from external files | I've got an MS-Access app (1/10th MS-Acccess, 9/10ths MS-SQL) that needs to display photographs of some assets along with their specifications. Currently the images are stored in an MS-Access table as an OLE Object (and copy-n-pasted into the field by the users).
For various reasons, I would like to do is store the original .jpgs in a folder on the network drive, and reference them from the application portion. I have considered moving into MS-SQL's image data type (and its replacement varbinary), but I think my user population will more easily grasp the concept of the network folder.
How can I get MS Access to display the contents of a .jpg? | ms-access | image | jpeg | jpg | null | null | open | Is there a way to get ms-access to display images from external files
===
I've got an MS-Access app (1/10th MS-Acccess, 9/10ths MS-SQL) that needs to display photographs of some assets along with their specifications. Currently the images are stored in an MS-Access table as an OLE Object (and copy-n-pasted into the field by the users).
For various reasons, I would like to do is store the original .jpgs in a folder on the network drive, and reference them from the application portion. I have considered moving into MS-SQL's image data type (and its replacement varbinary), but I think my user population will more easily grasp the concept of the network folder.
How can I get MS Access to display the contents of a .jpg? | 0 |
40,116 | 09/02/2008 17:36:16 | 83 | 08/01/2008 16:31:56 | 1,048 | 80 | How do I install and use the ASP.NET AJAX Control Toolkit in my .NET 3.5 web applications? | How do I get it to work with my project?
[http://ajax.asp.net/][1]
[http://www.codeplex.com/AjaxControlToolkit/][2]
[1]: http://ajax.asp.net/
[2]: http://www.codeplex.com/AjaxControlToolkit/ | asp.net | ajax | .net-3.5 | ajaxtoolkit | null | null | open | How do I install and use the ASP.NET AJAX Control Toolkit in my .NET 3.5 web applications?
===
How do I get it to work with my project?
[http://ajax.asp.net/][1]
[http://www.codeplex.com/AjaxControlToolkit/][2]
[1]: http://ajax.asp.net/
[2]: http://www.codeplex.com/AjaxControlToolkit/ | 0 |
40,119 | 09/02/2008 17:37:12 | 4,208 | 09/02/2008 10:41:40 | 1 | 0 | How to find a Java Memory Leak | How do you find a memory leak in Java (using for example JHat)? I have tried to load the heap dump up in JHat to take a basic look. However I do not understand how I am supposed to be able to find the root reference ([ref][1]) or whatever it is called. Basically I can tell that there are several hundred meg of hash table entries ([java.util.HashMap$Entry or something like that), but maps are used all over the place... Is there some way to search for large maps, or perhaps finding general roots of large object trees?
[1]: http://stackoverflow.com/questions/104/anatomy-of-a-memory-leak | java | memory | null | null | null | null | open | How to find a Java Memory Leak
===
How do you find a memory leak in Java (using for example JHat)? I have tried to load the heap dump up in JHat to take a basic look. However I do not understand how I am supposed to be able to find the root reference ([ref][1]) or whatever it is called. Basically I can tell that there are several hundred meg of hash table entries ([java.util.HashMap$Entry or something like that), but maps are used all over the place... Is there some way to search for large maps, or perhaps finding general roots of large object trees?
[1]: http://stackoverflow.com/questions/104/anatomy-of-a-memory-leak | 0 |
40,122 | 09/02/2008 17:38:59 | 4,219 | 09/02/2008 11:57:53 | 38 | 2 | Exceptions in Web Services | My group is developing a service-based (.NET WCF) application and we're trying to decide how to handle exceptions in our internal services. Should we throw exceptions? Return exceptions serialized as XML? Just return an error code?
Keep in mind that the user will never see these exceptions, it's only for other parts of the application. | .net | web-services | exception | wcf | exception-handling | null | open | Exceptions in Web Services
===
My group is developing a service-based (.NET WCF) application and we're trying to decide how to handle exceptions in our internal services. Should we throw exceptions? Return exceptions serialized as XML? Just return an error code?
Keep in mind that the user will never see these exceptions, it's only for other parts of the application. | 0 |
40,125 | 09/02/2008 17:39:52 | 4,165 | 09/02/2008 08:35:08 | 1 | 2 | Reading from a http-get presenting in Firefox bookmarks | I'm trying to get a Firefox plugin to read data from a HTTP get, parse the results and present them as links in a bookmark-like drop-down menu.
My quesion then is: Does anyone have any sample code that will do this?
| javascript | firefox | plugin-development | xul | null | null | open | Reading from a http-get presenting in Firefox bookmarks
===
I'm trying to get a Firefox plugin to read data from a HTTP get, parse the results and present them as links in a bookmark-like drop-down menu.
My quesion then is: Does anyone have any sample code that will do this?
| 0 |
40,133 | 09/02/2008 17:45:39 | 3,720 | 08/30/2008 10:00:40 | 181 | 10 | Getting Apache to modify modify static webpages on the fly | I have been experimenting with [woopra.com][1] A web analytics tool. Which requires a piece of javascript code to be added to each page to function. This is easy enough with more dynamic sites with universal headers or footers but not for totally static html pages.
I attempted to work round it by using a combination of Apache rewrites and SSI's to "Wrap" the static html with the required code. For example...
I made the following changes to my apache config
RewriteEngine On
RewriteCond %{REQUEST_URI} !=test.shtml
RewriteCond %{IS_SUBREQ} false
RewriteRule (.*)\.html test.shtml?$1.html
The test.shtml file contains...
<script type="text/javascript">
var XXXXid = 'xxxxxxx';
</script>
<script src="http://xxxx.woopra.com/xx/xxx.js"></script>
<!--#set var="page" value="$QUERY_STRING" -->
<!--#include virtual= $page -->
The idea was that a request coming in for
/abc.html
would be redirected to
/test.shtml?abc.html
the the shtml would then include the original file into the response page.
Unfortunately it doesn't quite work as planed :) can anyone see what I am doing wrong or perhaps suggest an alternative approach. Is there any apache modules that could do the same thing. Preferably that can be configured on a per site basis.
Thanks
Peter
[1]: http://www.woopra.com/ | apache | ssi | templates | filtering | null | null | open | Getting Apache to modify modify static webpages on the fly
===
I have been experimenting with [woopra.com][1] A web analytics tool. Which requires a piece of javascript code to be added to each page to function. This is easy enough with more dynamic sites with universal headers or footers but not for totally static html pages.
I attempted to work round it by using a combination of Apache rewrites and SSI's to "Wrap" the static html with the required code. For example...
I made the following changes to my apache config
RewriteEngine On
RewriteCond %{REQUEST_URI} !=test.shtml
RewriteCond %{IS_SUBREQ} false
RewriteRule (.*)\.html test.shtml?$1.html
The test.shtml file contains...
<script type="text/javascript">
var XXXXid = 'xxxxxxx';
</script>
<script src="http://xxxx.woopra.com/xx/xxx.js"></script>
<!--#set var="page" value="$QUERY_STRING" -->
<!--#include virtual= $page -->
The idea was that a request coming in for
/abc.html
would be redirected to
/test.shtml?abc.html
the the shtml would then include the original file into the response page.
Unfortunately it doesn't quite work as planed :) can anyone see what I am doing wrong or perhaps suggest an alternative approach. Is there any apache modules that could do the same thing. Preferably that can be configured on a per site basis.
Thanks
Peter
[1]: http://www.woopra.com/ | 0 |
40,151 | 09/02/2008 17:50:31 | 2,313 | 08/21/2008 15:27:23 | 96 | 10 | Why do I cannot jQuery my page under Internet Explorer | I have very strange problem. Under some elusive circumstances I fail to apply any jQuery selector on my pages under IE. It's OK under Firefox though. jQuery function simply returns empty array.
Any suggestions? | jquery | html | null | null | null | null | open | Why do I cannot jQuery my page under Internet Explorer
===
I have very strange problem. Under some elusive circumstances I fail to apply any jQuery selector on my pages under IE. It's OK under Firefox though. jQuery function simply returns empty array.
Any suggestions? | 0 |
40,154 | 09/02/2008 17:52:24 | 245 | 08/04/2008 00:38:47 | 581 | 12 | How do you beta test an iphone app? | How can you beta test an iPhone app? I can get it on my own device, and anyone that gives me a device, I can run it on theirs, but is there a way to do a limited release via the app store for beta testing? | iphone | beta | null | null | null | null | open | How do you beta test an iphone app?
===
How can you beta test an iPhone app? I can get it on my own device, and anyone that gives me a device, I can run it on theirs, but is there a way to do a limited release via the app store for beta testing? | 0 |
40,161 | 09/02/2008 17:53:54 | 305 | 08/04/2008 14:04:19 | 1,316 | 86 | Does C# have built-in support for parsing page-number strings? | The C# newbie has another simple question!
Does C# have built-in support for parsing strings of page numbers? By page numbers, I mean the format you might enter into a print dialog that's a mixture of comma and dash-delimited.
Something like this:
1,3,5-10,12
What would be really nice is a solution that gave me back some kind of list of all page numbers represented by the string. In the above example, getting a list back like this would be nice:
1,3,5,6,7,8,9,10,12
I just want to avoid rolling my own if there's an easy way to do it. | c# | parsing | null | null | null | null | open | Does C# have built-in support for parsing page-number strings?
===
The C# newbie has another simple question!
Does C# have built-in support for parsing strings of page numbers? By page numbers, I mean the format you might enter into a print dialog that's a mixture of comma and dash-delimited.
Something like this:
1,3,5-10,12
What would be really nice is a solution that gave me back some kind of list of all page numbers represented by the string. In the above example, getting a list back like this would be nice:
1,3,5,6,7,8,9,10,12
I just want to avoid rolling my own if there's an easy way to do it. | 0 |
40,169 | 09/02/2008 17:58:52 | 83 | 08/01/2008 16:31:56 | 1,063 | 81 | Is it okay to have a lot of database views? | I infrequently (monthly/quarterly) generate hundreds of Crystal Reports reports using Microsoft SQL Server 2005 database views. Are those views wasting CPU cycles and RAM during all the time that I am not running them? Should I instead use stored procedures, temporary tables, or short-lived normal tables since I rarely read from my views?
I'm not a DBA so I don't know what's going on behind the scenes inside the database server.
Is it possible to have too many database views? What's considered best practice? | database | database-design | crystal-reports | sql | mssql | null | open | Is it okay to have a lot of database views?
===
I infrequently (monthly/quarterly) generate hundreds of Crystal Reports reports using Microsoft SQL Server 2005 database views. Are those views wasting CPU cycles and RAM during all the time that I am not running them? Should I instead use stored procedures, temporary tables, or short-lived normal tables since I rarely read from my views?
I'm not a DBA so I don't know what's going on behind the scenes inside the database server.
Is it possible to have too many database views? What's considered best practice? | 0 |
40,171 | 09/02/2008 18:00:04 | 4,294 | 09/02/2008 18:00:04 | 1 | 0 | How to compress JPEG images with ASP on Windows CE | The ASP page gets data uses that to draw a graph, I then need to save the image created to JPEG to be displayed on the browser and also used in PDF and other format. What is the best way to compress the image? I am currently porting a JPEG compression library to ASP but I think it will be too slow on this ARM device running Windows CE 6.0. | asp | jpeg | compression | windows-ce | null | null | open | How to compress JPEG images with ASP on Windows CE
===
The ASP page gets data uses that to draw a graph, I then need to save the image created to JPEG to be displayed on the browser and also used in PDF and other format. What is the best way to compress the image? I am currently porting a JPEG compression library to ASP but I think it will be too slow on this ARM device running Windows CE 6.0. | 0 |
40,177 | 09/02/2008 18:05:42 | 720 | 08/08/2008 08:47:12 | 699 | 25 | Notification API for windows | Linux has libnotify and OS X has growl. Is there some kind of Notification API for Windows too?
It should be accessible via .Net languages. | windows | .net | notifications | api | null | null | open | Notification API for windows
===
Linux has libnotify and OS X has growl. Is there some kind of Notification API for Windows too?
It should be accessible via .Net languages. | 0 |
40,193 | 09/02/2008 18:19:29 | 1,536,194 | 09/02/2008 18:08:27 | 1 | 0 | Quick ls command | I've got to get a directory listing that contains about 2 million files, but when I do an "ls" command on it nothing comes back. I've waited 3 hours. I've tried "ls | tee directory.txt", but that seems to hang forever. I assume the server is doing a lot of inode sorting. Is there any way to speed up the ls command to just get a directory listing of filenames? I don't care about size, dates, permission or the like at this time.
Thanks,
Mark
| unix | ls | command | null | null | null | open | Quick ls command
===
I've got to get a directory listing that contains about 2 million files, but when I do an "ls" command on it nothing comes back. I've waited 3 hours. I've tried "ls | tee directory.txt", but that seems to hang forever. I assume the server is doing a lot of inode sorting. Is there any way to speed up the ls command to just get a directory listing of filenames? I don't care about size, dates, permission or the like at this time.
Thanks,
Mark
| 0 |
40,211 | 09/02/2008 18:28:16 | 2,469 | 08/22/2008 12:41:47 | 245 | 24 | How to Compare Flags in C#? | I have a flag enum below.
[Flags]
public enum FlagTest
{
None = 0x0,
Flag1 = 0x1,
Flag2 = 0x2,
Flag3 = 0x4
}
I cannot make the if statement evaluate to true.
FlagTest testItem = FlagTest.Flag1 | FlagTest.Flag2;
if (testItem == FlagTest.Flag1)
{
// Do something,
// however This is never true.
}
How can I make this true? | c# | .net | flags | attributes | null | null | open | How to Compare Flags in C#?
===
I have a flag enum below.
[Flags]
public enum FlagTest
{
None = 0x0,
Flag1 = 0x1,
Flag2 = 0x2,
Flag3 = 0x4
}
I cannot make the if statement evaluate to true.
FlagTest testItem = FlagTest.Flag1 | FlagTest.Flag2;
if (testItem == FlagTest.Flag1)
{
// Do something,
// however This is never true.
}
How can I make this true? | 0 |
40,230 | 09/02/2008 18:35:36 | 3,314 | 08/27/2008 20:05:23 | 121 | 9 | GUIDs as Primary Keys - Offline OLTP | We are working on designing an application that is typically OLTP (think: purchasing system). However, this one in particular has the need that some users will be offline, so they need to be able to download the DB to their machine, work on it, and then sync back once they're on the LAN.
I would like to note that I know this has been done before, I just don't have experience with this particular model.
One idea I thought about was using GUIDs as table keys. So for example, a Purchase Order would not have a number (auto-numeric) but a GUID instead, so that every offline client can generate those, and I don't have clashes when I connect back to the DB.
Is this a bad idea for some reason?
Will access to these tables through the GUID key be slow?
Have you had experience with these type of systems? How have you solved this problem?
Thanks!
Daniel | sql-server | guid | oltp | offline | null | null | open | GUIDs as Primary Keys - Offline OLTP
===
We are working on designing an application that is typically OLTP (think: purchasing system). However, this one in particular has the need that some users will be offline, so they need to be able to download the DB to their machine, work on it, and then sync back once they're on the LAN.
I would like to note that I know this has been done before, I just don't have experience with this particular model.
One idea I thought about was using GUIDs as table keys. So for example, a Purchase Order would not have a number (auto-numeric) but a GUID instead, so that every offline client can generate those, and I don't have clashes when I connect back to the DB.
Is this a bad idea for some reason?
Will access to these tables through the GUID key be slow?
Have you had experience with these type of systems? How have you solved this problem?
Thanks!
Daniel | 0 |
40,242 | 09/02/2008 18:39:00 | 4,249 | 09/02/2008 14:13:06 | 61 | 6 | What is the best way to migrate an existing messy webapp to elegant MVC? | I joined a new company about a month ago. The company is rather small in size and has pretty strong "start-up" feel to it. I'm working as a Java developer on a team of 3 others. The company primarily sells a service to for businesses/business-type people to use in communicating with each other.
One of the main things I have been, and will be working on, is the main website for the company - from which the service is sold, existing users login to check their service and pay their bills, new users can sign up for a trial, etc. Currently this is a JSP application deployed on Tomcat, with access to a database done thru a persistence layer written by the company itself.
A repeated and growing frustration I am having here (and I'm pretty happy with the job overall, so this isn't an "oh no I don't like my job"-type post) is the lack of any larger design or architecture for this web application. The app is made up of several dozen JSP pages, with almost no logic existing in Servlets or Beans or any other sort of framework. Many of the JSP pages are thousands of lines of code, they `jsp:include` other JSP pages, business logic is mixed in with the HTML, frequently used snippets of code (such as obtaining a web service connection) is cut and paste rather than reused, etc. In other words, the application is a mess.
There have been some rumblings within the company of trying to re-architect this site so that it fits MVC better; I think that the developers and higher-ups are beginning to realize that this current pattern of spaghetti code isn't sustainable or very easily scalable to add more features for the users. The higher-ups and developers are wary of completely re-writing the thing (with good reason, since this would mean several weeks or months of work re-writing existing functionality), but we've had some discussions of (slowly) re-writing certain areas of the site into a new framework.
What are some of the best strategies to enable moving the application and codebase into this direction? How can I as a developer really help move this along, and quickly, without seeming like the jerk-y new guy who comes into a job and tells everyone that what they've written is crap? Are there any proven strategies or experiences that you've used in your own job experience when you've encountered this sort of thing? | java | mvc | design | architecture | null | null | open | What is the best way to migrate an existing messy webapp to elegant MVC?
===
I joined a new company about a month ago. The company is rather small in size and has pretty strong "start-up" feel to it. I'm working as a Java developer on a team of 3 others. The company primarily sells a service to for businesses/business-type people to use in communicating with each other.
One of the main things I have been, and will be working on, is the main website for the company - from which the service is sold, existing users login to check their service and pay their bills, new users can sign up for a trial, etc. Currently this is a JSP application deployed on Tomcat, with access to a database done thru a persistence layer written by the company itself.
A repeated and growing frustration I am having here (and I'm pretty happy with the job overall, so this isn't an "oh no I don't like my job"-type post) is the lack of any larger design or architecture for this web application. The app is made up of several dozen JSP pages, with almost no logic existing in Servlets or Beans or any other sort of framework. Many of the JSP pages are thousands of lines of code, they `jsp:include` other JSP pages, business logic is mixed in with the HTML, frequently used snippets of code (such as obtaining a web service connection) is cut and paste rather than reused, etc. In other words, the application is a mess.
There have been some rumblings within the company of trying to re-architect this site so that it fits MVC better; I think that the developers and higher-ups are beginning to realize that this current pattern of spaghetti code isn't sustainable or very easily scalable to add more features for the users. The higher-ups and developers are wary of completely re-writing the thing (with good reason, since this would mean several weeks or months of work re-writing existing functionality), but we've had some discussions of (slowly) re-writing certain areas of the site into a new framework.
What are some of the best strategies to enable moving the application and codebase into this direction? How can I as a developer really help move this along, and quickly, without seeming like the jerk-y new guy who comes into a job and tells everyone that what they've written is crap? Are there any proven strategies or experiences that you've used in your own job experience when you've encountered this sort of thing? | 0 |
40,244 | 09/02/2008 18:40:24 | 4,285 | 09/02/2008 16:46:29 | 1 | 0 | How to make a pipe loop in bash | Assume that I have programs `P0`, `P1`, ...`P(n-1)` for some `n > 0`. How can I easily redirect the output of program `Pi` to program `P(i+1 mod n)` for all `i` (`0 <= i < n`)?
For example, let's say I have a program `square`, which repeatedly reads a number and than prints the square of that number, and a program `calc`, which sometimes prints a number after which it expects to be able to read the square of it. How do I connect these programs such that whenever `calc` prints a number, `square` squares it returns it to `calc`?
| bash | null | null | null | null | null | open | How to make a pipe loop in bash
===
Assume that I have programs `P0`, `P1`, ...`P(n-1)` for some `n > 0`. How can I easily redirect the output of program `Pi` to program `P(i+1 mod n)` for all `i` (`0 <= i < n`)?
For example, let's say I have a program `square`, which repeatedly reads a number and than prints the square of that number, and a program `calc`, which sometimes prints a number after which it expects to be able to read the square of it. How do I connect these programs such that whenever `calc` prints a number, `square` squares it returns it to `calc`?
| 0 |
40,252 | 09/02/2008 18:41:38 | 4,140 | 09/02/2008 01:10:54 | 31 | 10 | Looking for a Good Resource for Print Designers that are doing Web Design |
So, I am working for a magazine, and they are designing their own site. They are awesome
designers, but don't know too much about the differences btw print and web. I am NOT a designer, so I know some things but not others.
Is there a resource out there, or has does anyone have any suggestions out there that I can give them for guidance?
Thanks!
PS they are simply providing comps, not html, just psd files. | books | website | webdesign | null | null | null | open | Looking for a Good Resource for Print Designers that are doing Web Design
===
So, I am working for a magazine, and they are designing their own site. They are awesome
designers, but don't know too much about the differences btw print and web. I am NOT a designer, so I know some things but not others.
Is there a resource out there, or has does anyone have any suggestions out there that I can give them for guidance?
Thanks!
PS they are simply providing comps, not html, just psd files. | 0 |
40,259 | 09/02/2008 18:43:15 | 4,118 | 09/01/2008 20:58:08 | 1 | 0 | GUI/TUI linux library | Is there any UI library that can be to build both a text user interface (ncurses) and graphical user interface (GTK? QT?) from the same source?
I know that debconf can be used with various frontends, I would like to build something similar but programable. | linux | gui | tui | null | null | null | open | GUI/TUI linux library
===
Is there any UI library that can be to build both a text user interface (ncurses) and graphical user interface (GTK? QT?) from the same source?
I know that debconf can be used with various frontends, I would like to build something similar but programable. | 0 |
40,264 | 09/02/2008 18:44:31 | 1,574 | 08/16/2008 19:31:12 | 722 | 29 | How many constructor arguments is too many? | Let's say you have a class called Customer, which contains the following fields:
- UserName
- Email
- First Name
- Last Name
Let's also say that according to your business logic, all Customer objects must have these four properties defined.
Now, we can do this pretty easily by forcing the constructor to specify each of these properties. But it's pretty easy to see how this can spiral out of control when you are forced to add more required fields to the Customer object.
I've seen classes that take in 20+ arguments into their constructor and it's just a pain to use them. But, alternatively, if you don't require these fields you run into the risk of having undefined information, or worse, object referencing errors if you rely on the calling code to specify these properties.
Are there any alternatives to this or do you you just have to decide whether X amount of constructor arguments is too many for you to live with? | untagged | null | null | null | null | null | open | How many constructor arguments is too many?
===
Let's say you have a class called Customer, which contains the following fields:
- UserName
- Email
- First Name
- Last Name
Let's also say that according to your business logic, all Customer objects must have these four properties defined.
Now, we can do this pretty easily by forcing the constructor to specify each of these properties. But it's pretty easy to see how this can spiral out of control when you are forced to add more required fields to the Customer object.
I've seen classes that take in 20+ arguments into their constructor and it's just a pain to use them. But, alternatively, if you don't require these fields you run into the risk of having undefined information, or worse, object referencing errors if you rely on the calling code to specify these properties.
Are there any alternatives to this or do you you just have to decide whether X amount of constructor arguments is too many for you to live with? | 0 |
40,269 | 09/02/2008 18:44:59 | 4,298 | 09/02/2008 18:17:28 | 1 | 0 | Finding the storage card path on WM6. | Is there an easy way to find the storage card's path on a Windows Mobile device
when there is a storage card and a bluetooth ftp connection? | windows-mobile | null | null | null | null | null | open | Finding the storage card path on WM6.
===
Is there an easy way to find the storage card's path on a Windows Mobile device
when there is a storage card and a bluetooth ftp connection? | 0 |
40,273 | 09/02/2008 18:46:09 | 2,884 | 08/25/2008 17:51:51 | 36 | 4 | What's the best way to use SOAP with Ruby? | A client of mine has asked me to integrate a 3rd party API into their Rails app. The only problem is that the API uses SOAP. Ruby has basically dropped SOAP in favor of REST. They provide a Java adapter that apparently works with the Java-Ruby bridge, but we'd like to keep it all in Ruby, if possible. I looked into soap4r, but it seems to have a slightly bad reputation.
So what's the best way to integrate SOAP calls into a Rails app? | ruby | ruby-on-rails | soap | null | null | null | open | What's the best way to use SOAP with Ruby?
===
A client of mine has asked me to integrate a 3rd party API into their Rails app. The only problem is that the API uses SOAP. Ruby has basically dropped SOAP in favor of REST. They provide a Java adapter that apparently works with the Java-Ruby bridge, but we'd like to keep it all in Ruby, if possible. I looked into soap4r, but it seems to have a slightly bad reputation.
So what's the best way to integrate SOAP calls into a Rails app? | 0 |
40,295 | 09/02/2008 18:54:31 | 3,736 | 08/30/2008 12:49:28 | 190 | 9 | Redirecting ".local" subdomain to unicast DNS | I regularly access Windows domains that have been setup to use a domain under the ".local" top level name. This conflicts with Bonjour/Zeroconf which reserves ".local" for it's own use. A number of platforms support Bonjour out of the box (including Mac OS, iPhone, and Ubuntu) and there's numerous name resolution issues when this confict occurs.
I have a manual (per worksation) workaround in place for Mac OS by creating an `/etc/resolver/ntdomain.local` as per [`resolver(5)`][1] which works well. Unfortunately this requires manual changes on every workstation and does not work on the iPhone.
What I'm looking for is a way to redirect requests for `*.ntdomain.local` coming in via mDNS to a specific unicast DNS server. I don't mind writing some code if required. I can deploy on either preferably Debian or alternatively Windows 2003. It looks like [Avahi][2] may be the library I'm looking for.
Can this be done without registering every address in the subdomain or is it possible to register a single NS record of "ntdomain.local" that points to the Windows DNS server?
[1]: http://developer.apple.com/documentation/Darwin/Reference/ManPages/man5/resolver.5.html
[2]: http://avahi.org/ | dns | mdns | bonjour | zeroconf | null | null | open | Redirecting ".local" subdomain to unicast DNS
===
I regularly access Windows domains that have been setup to use a domain under the ".local" top level name. This conflicts with Bonjour/Zeroconf which reserves ".local" for it's own use. A number of platforms support Bonjour out of the box (including Mac OS, iPhone, and Ubuntu) and there's numerous name resolution issues when this confict occurs.
I have a manual (per worksation) workaround in place for Mac OS by creating an `/etc/resolver/ntdomain.local` as per [`resolver(5)`][1] which works well. Unfortunately this requires manual changes on every workstation and does not work on the iPhone.
What I'm looking for is a way to redirect requests for `*.ntdomain.local` coming in via mDNS to a specific unicast DNS server. I don't mind writing some code if required. I can deploy on either preferably Debian or alternatively Windows 2003. It looks like [Avahi][2] may be the library I'm looking for.
Can this be done without registering every address in the subdomain or is it possible to register a single NS record of "ntdomain.local" that points to the Windows DNS server?
[1]: http://developer.apple.com/documentation/Darwin/Reference/ManPages/man5/resolver.5.html
[2]: http://avahi.org/ | 0 |
40,296 | 09/02/2008 18:54:34 | 3,615 | 08/29/2008 14:57:54 | 1 | 0 | What is the best free tool for managing MSMQ queues and messages? | Something that allows viewing message contents, copy/paste between queues and other basic explorer like functionality.
| msmq | null | null | null | null | null | open | What is the best free tool for managing MSMQ queues and messages?
===
Something that allows viewing message contents, copy/paste between queues and other basic explorer like functionality.
| 0 |
40,302 | 09/02/2008 18:56:36 | 3,043 | 08/26/2008 13:24:14 | 636 | 77 | Create object from database row | Let's say I'm building a data access layer for an application. Part of that is that I have a class definition for a particular object that is stored in the database. Of course, the data access itself returns the results in the form of a datareader, typed or untyped dataset, or similar, usually with the data needed to create one object per row in the result set.
How would go about creating your object instances in the data layer? Would have a constructor that accepts a datarow? How would you make that type-safe? Or would you have it list out one parameter for each field you want to instantiate, even if there could be many fields. Would you mark this constructor 'internal'? | .net | null | null | null | null | null | open | Create object from database row
===
Let's say I'm building a data access layer for an application. Part of that is that I have a class definition for a particular object that is stored in the database. Of course, the data access itself returns the results in the form of a datareader, typed or untyped dataset, or similar, usually with the data needed to create one object per row in the result set.
How would go about creating your object instances in the data layer? Would have a constructor that accepts a datarow? How would you make that type-safe? Or would you have it list out one parameter for each field you want to instantiate, even if there could be many fields. Would you mark this constructor 'internal'? | 0 |
40,311 | 09/02/2008 19:01:34 | 3,114 | 08/26/2008 18:05:52 | 476 | 34 | Installer changes PATH variable, changes don't show up in Command Shell | I added a custom install action to my installer to add one of my installation directories to the System PATH environment variable. After I run the installer, the PATH variable reflects the changes (when I access it through the Control Panel::System applet), but when I start a new command shell, the PATH variable does not reflect the changes. Is there something I'm failing to do, that causes this? | environment | path | windows-installer | custom-action | null | null | open | Installer changes PATH variable, changes don't show up in Command Shell
===
I added a custom install action to my installer to add one of my installation directories to the System PATH environment variable. After I run the installer, the PATH variable reflects the changes (when I access it through the Control Panel::System applet), but when I start a new command shell, the PATH variable does not reflect the changes. Is there something I'm failing to do, that causes this? | 0 |
40,317 | 09/02/2008 19:04:44 | 742 | 08/08/2008 13:33:41 | 114 | 5 | Force unmount of NFS-mounted directory | I have an NFS-mounted directory on a Linux machine that has hung. I've tried to force an unmount, but it doesn't seem to work:
$ umount -f /mnt/data
$ umount2: Device or resource busy
$ umount: /mnt/data: device is busy
If I type "`mount`", it appears that the directory is no longer mounted, but it hangs if I do "`ls /mnt/data`", and if I try to remove the mountpoint, I get:
$ rmdir /mnt/data
rmdir: /mnt/data: Device or resource busy
Is there anything I can do other than reboot the machine? | linux | nfs | nfsclient | null | null | null | open | Force unmount of NFS-mounted directory
===
I have an NFS-mounted directory on a Linux machine that has hung. I've tried to force an unmount, but it doesn't seem to work:
$ umount -f /mnt/data
$ umount2: Device or resource busy
$ umount: /mnt/data: device is busy
If I type "`mount`", it appears that the directory is no longer mounted, but it hangs if I do "`ls /mnt/data`", and if I try to remove the mountpoint, I get:
$ rmdir /mnt/data
rmdir: /mnt/data: Device or resource busy
Is there anything I can do other than reboot the machine? | 0 |
40,322 | 09/02/2008 19:06:09 | 1,287 | 08/14/2008 12:06:53 | 41 | 5 | I can't see "Report Builder" button in the Report Manager on SQL Server 2005 | I am a member of all the roles (Browser, Content Manager, My Reports, Publisher, Report Builder). If I login with a Local Administrator account, I can see and use it fine. Any ideas? | sql-server | reporting-services | null | null | null | null | open | I can't see "Report Builder" button in the Report Manager on SQL Server 2005
===
I am a member of all the roles (Browser, Content Manager, My Reports, Publisher, Report Builder). If I login with a Local Administrator account, I can see and use it fine. Any ideas? | 0 |
40,335 | 09/02/2008 19:14:23 | 2,171 | 08/20/2008 18:04:57 | 58 | 2 | How to tell which disk Windows Used to Boot | I'm need to find a method to programmatically determine which disk drive Windows is using to boot. In other words, I need a way from Windows to determine which drive the BIOS is using to boot the whole system.
Does Windows expose an interface to discover this? With how big the Windows API is, I'm hoping there is something buried in there that might do the trick.
Terry
p.s. Just reading the first sectors of the hard disk isn't reveling anything. On my dev box I have two hard disks, and when I look at the contents of the first couple of sectors on either of the hard disks I have a standard boiler plate MBR.
| windows | mbr | null | null | null | null | open | How to tell which disk Windows Used to Boot
===
I'm need to find a method to programmatically determine which disk drive Windows is using to boot. In other words, I need a way from Windows to determine which drive the BIOS is using to boot the whole system.
Does Windows expose an interface to discover this? With how big the Windows API is, I'm hoping there is something buried in there that might do the trick.
Terry
p.s. Just reading the first sectors of the hard disk isn't reveling anything. On my dev box I have two hard disks, and when I look at the contents of the first couple of sectors on either of the hard disks I have a standard boiler plate MBR.
| 0 |
40,344 | 09/02/2008 19:17:27 | 3,012 | 08/26/2008 11:55:24 | 140 | 7 | What's the best way to work with SQL Server data non-programmatically? | We have a SQL server database. To manipulate the data non-programmatically, I can use SQL Server Management Studio by right-clicking a table and selecting "Open Table". However this is slow for very large tables and sorting and filtering is cumbersome.
Typically what we have done until now is to create an Access database containing linked tables which point to the SQL Server tables and views. Opening a large table is much faster this way, and Access has easy-to-use right-click filtering and sorting.
However, since Access 2007, sorting in particular has been quite slow when working with large tables. The Access database can also inadvertently lock the database tables, blocking other processes that may need to access the data. Creating the Access database in the first place, and updating it when new tables are added to SQL Server, is also tedious.
Is there a better way to work with the data that offers the usability of Access without its drawbacks? | ms-access | sql-server | ssms | null | null | null | open | What's the best way to work with SQL Server data non-programmatically?
===
We have a SQL server database. To manipulate the data non-programmatically, I can use SQL Server Management Studio by right-clicking a table and selecting "Open Table". However this is slow for very large tables and sorting and filtering is cumbersome.
Typically what we have done until now is to create an Access database containing linked tables which point to the SQL Server tables and views. Opening a large table is much faster this way, and Access has easy-to-use right-click filtering and sorting.
However, since Access 2007, sorting in particular has been quite slow when working with large tables. The Access database can also inadvertently lock the database tables, blocking other processes that may need to access the data. Creating the Access database in the first place, and updating it when new tables are added to SQL Server, is also tedious.
Is there a better way to work with the data that offers the usability of Access without its drawbacks? | 0 |
40,346 | 09/02/2008 19:18:01 | 2,470 | 08/22/2008 12:42:38 | 253 | 34 | Coding magazines | So, we have [coding books][1], [coding RSS feeds][2], and [music to code by][3]. Are there any coding magazines that anyone would recommend?
[1]: http://stackoverflow.com/questions/1711/what-is-the-single-most-influential-book-every-programmer-should-read
[2]: http://stackoverflow.com/questions/5119/what-are-the-best-rss-feeds-for-programmersdevelopers
[3]: http://stackoverflow.com/questions/3947/coding-music | magazines | resources | null | null | null | null | open | Coding magazines
===
So, we have [coding books][1], [coding RSS feeds][2], and [music to code by][3]. Are there any coding magazines that anyone would recommend?
[1]: http://stackoverflow.com/questions/1711/what-is-the-single-most-influential-book-every-programmer-should-read
[2]: http://stackoverflow.com/questions/5119/what-are-the-best-rss-feeds-for-programmersdevelopers
[3]: http://stackoverflow.com/questions/3947/coding-music | 0 |
40,352 | 09/02/2008 19:20:08 | 1,946 | 08/19/2008 14:53:06 | 140 | 9 | Whats the difference between RuntimeTypeHandle and Type? | And why would I use one over the other in my code? | c# | .net | null | null | null | null | open | Whats the difference between RuntimeTypeHandle and Type?
===
And why would I use one over the other in my code? | 0 |
40,359 | 09/02/2008 19:24:41 | 4,203 | 09/02/2008 10:09:59 | 88 | 8 | Are there any good, free programs for graphing program execution? | I'd like to automatically generate a graph of a simple, tree-recursive program in Scheme. In the end, I'd like the output to wind up with something like this (only not as wretched):
fib (2)
fib (0) fib (1) | scheme | null | null | null | null | null | open | Are there any good, free programs for graphing program execution?
===
I'd like to automatically generate a graph of a simple, tree-recursive program in Scheme. In the end, I'd like the output to wind up with something like this (only not as wretched):
fib (2)
fib (0) fib (1) | 0 |
40,361 | 09/02/2008 19:25:38 | 1,019 | 08/11/2008 13:55:52 | 16 | 0 | Can I create a value for a missing tag in XPath? | I have an application which extracts data from an XML file using XPath. If a node in that XML source file is missing I want to return the value "N/A" (much like the Oracle NVL function). The trick is that the application doesn't support XSLT; I'd like to do this using XPath and XPath alone.
Is that possible? | xml | xslt | xpath | null | null | null | open | Can I create a value for a missing tag in XPath?
===
I have an application which extracts data from an XML file using XPath. If a node in that XML source file is missing I want to return the value "N/A" (much like the Oracle NVL function). The trick is that the application doesn't support XSLT; I'd like to do this using XPath and XPath alone.
Is that possible? | 0 |
40,368 | 09/02/2008 19:29:16 | 1,536,194 | 09/02/2008 18:08:27 | 6 | 1 | Maximum number of inodes in a directory? | Is there a maximum number of inodes in a single directory?
I have a directory of 2 million+ files and can't get an the ls command to work against that directory. So now I'm wondering if I've exceeded a limit on inodes in Linux. Is there a limit before a 2^64 numerical limit? | linux | unix | bash | command | ls | null | open | Maximum number of inodes in a directory?
===
Is there a maximum number of inodes in a single directory?
I have a directory of 2 million+ files and can't get an the ls command to work against that directory. So now I'm wondering if I've exceeded a limit on inodes in Linux. Is there a limit before a 2^64 numerical limit? | 0 |
40,372 | 09/02/2008 19:31:26 | 3,747 | 08/30/2008 14:33:59 | 261 | 22 | How can you export the saved username and passwords in FireFox 2? | I need to reformat my machine but I have so many user/passwords stored in FF2 that I just keep putting it off. Yes I know about backing up the entire profile and restoring it. But for some reason my profile has many issues and I want to start fresh with that as well.
Are the username and passwords stored in a text file or is there some way to export them and import after I reformat? | firefox | techsupport | null | null | null | null | open | How can you export the saved username and passwords in FireFox 2?
===
I need to reformat my machine but I have so many user/passwords stored in FF2 that I just keep putting it off. Yes I know about backing up the entire profile and restoring it. But for some reason my profile has many issues and I want to start fresh with that as well.
Are the username and passwords stored in a text file or is there some way to export them and import after I reformat? | 0 |
40,376 | 09/02/2008 19:33:15 | 4,308 | 09/02/2008 19:27:46 | 1 | 0 | Handle signals in the Java Virtual Machine | Is it possible to handle POSIX signals within the Java Virtual Machine?
At least [SIGINT][1] and [SIGKILL][2] should be quite platform independent.
[1]: http://en.wikipedia.org/wiki/SIGINT_(POSIX)
[2]: http://en.wikipedia.org/wiki/SIGKILL | java | process | jvm | posix | signals | null | open | Handle signals in the Java Virtual Machine
===
Is it possible to handle POSIX signals within the Java Virtual Machine?
At least [SIGINT][1] and [SIGKILL][2] should be quite platform independent.
[1]: http://en.wikipedia.org/wiki/SIGINT_(POSIX)
[2]: http://en.wikipedia.org/wiki/SIGKILL | 0 |
40,393 | 09/02/2008 19:40:33 | 1,583 | 08/16/2008 20:54:12 | 3 | 3 | 3D in virtual machines | What VMs can be used for 3D programming?
I was disappointed to find out that VMware products only have experimental support and even that only for 2D acceleration.
| vmware | 3d | xna | null | null | 07/03/2012 12:39:10 | not constructive | 3D in virtual machines
===
What VMs can be used for 3D programming?
I was disappointed to find out that VMware products only have experimental support and even that only for 2D acceleration.
| 4 |
40,402 | 09/02/2008 19:44:50 | 1,042 | 08/11/2008 18:02:48 | 335 | 43 | What is the command to truncate a SQL Server log file? | I need to empty an LDF file before sending to a colleague. How do I force SQL Server to truncate the log? | sql-server | truncate | log | null | null | null | open | What is the command to truncate a SQL Server log file?
===
I need to empty an LDF file before sending to a colleague. How do I force SQL Server to truncate the log? | 0 |
40,413 | 09/02/2008 19:47:38 | 4,298 | 09/02/2008 18:17:28 | 1 | 0 | How to traverse a maze programatically when you've hit a dead end. | Moving through the maze forward is pretty easy, but I can't seem to figure out how to back up through the maze to try a new route once you hit a dead end without going back too far? | c# | ai | null | null | null | null | open | How to traverse a maze programatically when you've hit a dead end.
===
Moving through the maze forward is pretty easy, but I can't seem to figure out how to back up through the maze to try a new route once you hit a dead end without going back too far? | 0 |
40,422 | 09/02/2008 19:52:24 | 4,140 | 09/02/2008 01:10:54 | 41 | 10 | Autocomplete Dropdown with Linkbuttons - or "AJAX gone wild" |
Ok, so I want an autocomplete dropdown with linkbuttons as selections. So, the user puts the cursor in the "text box" and is greated with a list of options. They can either start typing to narrow down the list, or select one of the options on the list. As soon as they click (or press enter) the dataset this is linked to will be filtered by the selection.
Ok, is this as easy as wrapping an AJAX autocomplete around a dropdown? No? (Please?) | ajax | .net-3.5 | null | null | null | null | open | Autocomplete Dropdown with Linkbuttons - or "AJAX gone wild"
===
Ok, so I want an autocomplete dropdown with linkbuttons as selections. So, the user puts the cursor in the "text box" and is greated with a list of options. They can either start typing to narrow down the list, or select one of the options on the list. As soon as they click (or press enter) the dataset this is linked to will be filtered by the selection.
Ok, is this as easy as wrapping an AJAX autocomplete around a dropdown? No? (Please?) | 0 |
40,423 | 09/02/2008 19:52:33 | 4,210 | 09/02/2008 10:49:24 | 1 | 0 | How would you implement Erlang-like send and receive in C++? | Actually, this question seems to have two parts:
- How to implement pattern matching?
- How to implement [send and receive][6] (i.e. the Actor model)?
For the pattern matching part, I've been looking into various projects like [App][1] and [Prop][2]. These look pretty nice, but couldn't get them to work on a recent version (4.x) of g++. The [Felix][3] language also seems to support pattern matching pretty well, but isn't really C++.
As for the [Actor model][4], there are existing implementations like ACT++ and [Theron][5], but I couldn't find anything but papers on the former, and the latter is single-threaded only.
Personally, I've implemented actors using threading and a thread-safe message queue. Messages are hash-like structures, and used these together with a number of preprocessor macros to implemented simple pattern matching.
Right now, I can use the following code to send a message:
<pre><code>(new Message(this))
->set("foo", "bar")
->set("baz", 123)
->send(recipient);
</code></pre>
And the following to do simple pattern matching (`qDebug` and `qPrintable` are Qt-specific):
<pre><code>receive_and_match(m)
match_key("foo") { qDebug("foo: %s", qPrintable(m->value("foo").toString())); }
or_match_key("baz") { qDebug("baz: %d", m->value("baz").toInt()); }
or_match_ignore
end_receive
</code></pre>
However, this looks a bit hackish to me, and isn't very robust.
How would you do it? Did I miss any existing work?
[1]: http://members.cox.net/nelan/app.html
[2]: http://www.cs.nyu.edu/leunga/papers/research/prop/prop.html
[3]: http://felix-lang.org/
[4]: http://en.wikipedia.org/wiki/Actor_model
[5]: http://theron.ashtonmason.net/
[6]: http://erlang.org/doc/reference_manual/expressions.html#6.9
| c++ | erlang | null | null | null | null | open | How would you implement Erlang-like send and receive in C++?
===
Actually, this question seems to have two parts:
- How to implement pattern matching?
- How to implement [send and receive][6] (i.e. the Actor model)?
For the pattern matching part, I've been looking into various projects like [App][1] and [Prop][2]. These look pretty nice, but couldn't get them to work on a recent version (4.x) of g++. The [Felix][3] language also seems to support pattern matching pretty well, but isn't really C++.
As for the [Actor model][4], there are existing implementations like ACT++ and [Theron][5], but I couldn't find anything but papers on the former, and the latter is single-threaded only.
Personally, I've implemented actors using threading and a thread-safe message queue. Messages are hash-like structures, and used these together with a number of preprocessor macros to implemented simple pattern matching.
Right now, I can use the following code to send a message:
<pre><code>(new Message(this))
->set("foo", "bar")
->set("baz", 123)
->send(recipient);
</code></pre>
And the following to do simple pattern matching (`qDebug` and `qPrintable` are Qt-specific):
<pre><code>receive_and_match(m)
match_key("foo") { qDebug("foo: %s", qPrintable(m->value("foo").toString())); }
or_match_key("baz") { qDebug("baz: %d", m->value("baz").toInt()); }
or_match_ignore
end_receive
</code></pre>
However, this looks a bit hackish to me, and isn't very robust.
How would you do it? Did I miss any existing work?
[1]: http://members.cox.net/nelan/app.html
[2]: http://www.cs.nyu.edu/leunga/papers/research/prop/prop.html
[3]: http://felix-lang.org/
[4]: http://en.wikipedia.org/wiki/Actor_model
[5]: http://theron.ashtonmason.net/
[6]: http://erlang.org/doc/reference_manual/expressions.html#6.9
| 0 |
40,452 | 09/02/2008 20:04:28 | 1,178 | 08/13/2008 11:15:35 | 241 | 17 | HTTP POST question - I'm stuck | I have to POST some parameters to a URL outside my network, and the developers on the other side asked me to not use HTTP Parameters: instead I have to post my key-values in **HTTP Headers**.
The fact is that I don't really understand what they mean: I tried to use a ajax-like post, with XmlHttp objects, and also I tried to write in the header with something like
Request.Headers.Add(key,value);
but I cannot (exception from the framework); I tried the other way around, using the Response object like
Response.AppendHeader("key", "value");
and then redirect to the page... but this doesn't work, as well.
It's evident, I think, that I'm stuck there, any help?
Many thanks
Andrea
**EDIT** I forgot to tell you that my environment is .Net 2.0, c#, on Win server 2003. | http | forms | null | null | null | null | open | HTTP POST question - I'm stuck
===
I have to POST some parameters to a URL outside my network, and the developers on the other side asked me to not use HTTP Parameters: instead I have to post my key-values in **HTTP Headers**.
The fact is that I don't really understand what they mean: I tried to use a ajax-like post, with XmlHttp objects, and also I tried to write in the header with something like
Request.Headers.Add(key,value);
but I cannot (exception from the framework); I tried the other way around, using the Response object like
Response.AppendHeader("key", "value");
and then redirect to the page... but this doesn't work, as well.
It's evident, I think, that I'm stuck there, any help?
Many thanks
Andrea
**EDIT** I forgot to tell you that my environment is .Net 2.0, c#, on Win server 2003. | 0 |
40,453 | 09/02/2008 20:04:48 | 4,066 | 09/01/2008 16:06:15 | 46 | 3 | What is a good and free X Server for Windows | What is a good and free X Server for Windows?
* Cygwin - I've had various issues and install problems with this in the past
* Xceed - The employer won't pay for the license.
* Putty - Amazing for telnet and SSH, but I actually need an XServer.
Are there other good and free alternatives? | x11 | x-windows | x | null | null | null | open | What is a good and free X Server for Windows
===
What is a good and free X Server for Windows?
* Cygwin - I've had various issues and install problems with this in the past
* Xceed - The employer won't pay for the license.
* Putty - Amazing for telnet and SSH, but I actually need an XServer.
Are there other good and free alternatives? | 0 |
40,456 | 09/02/2008 20:06:25 | 2,477 | 08/22/2008 13:21:51 | 149 | 16 | sql missing rows when grouped by DAY, MONTH, YEAR | If I select from a table group by the month, day, year,
it only returns rows with records and leaves out combinations without any records, making it appear at a glance that every day or month has activity, you have to look at the date column actively for gaps. How can I get a row for every day/month/year, even when no data is present, in T-SQL? | tsql | date | grouping | null | null | null | open | sql missing rows when grouped by DAY, MONTH, YEAR
===
If I select from a table group by the month, day, year,
it only returns rows with records and leaves out combinations without any records, making it appear at a glance that every day or month has activity, you have to look at the date column actively for gaps. How can I get a row for every day/month/year, even when no data is present, in T-SQL? | 0 |
9,636,999 | 03/09/2012 15:53:12 | 1,088,924 | 12/09/2011 02:30:04 | 1 | 0 | How does this order page work? | https://markup-service.com/order/create
How does that form work ? The javascript source code is compressed and cant be decompressed at least as far as i know.
I need help building a similar page, and any insight on how to replicate the result we see on that link is a b ig help for me.
What intrigues me the most, is the part where the price gets updated all the time, reading the value from the <dd> tag maybe ? | javascript | jquery | null | null | null | 03/09/2012 15:58:15 | not a real question | How does this order page work?
===
https://markup-service.com/order/create
How does that form work ? The javascript source code is compressed and cant be decompressed at least as far as i know.
I need help building a similar page, and any insight on how to replicate the result we see on that link is a b ig help for me.
What intrigues me the most, is the part where the price gets updated all the time, reading the value from the <dd> tag maybe ? | 1 |
9,637,005 | 03/09/2012 15:53:24 | 853,942 | 07/20/2011 12:42:05 | 16 | 0 | Proftpd keeps auto-starting in Linux | I have a VPS running Ubuntu 9.10 and on it I have proftpd installed.
Not sure what happens but I go onto the server and start proftpd to transfer files and then I stop it after I am done. I always check that it has stopped before logging out.
Also I have removed any autostart symlinks by running:
update-rc.d -f proftpd remove
However, the next time I go onto the server I can see that proftpd is running again and accepting connections. This has happend several times and it is driving me crazy.
Is there any other place where an auto-start is configured?
| ubuntu-9.10 | null | null | null | null | null | open | Proftpd keeps auto-starting in Linux
===
I have a VPS running Ubuntu 9.10 and on it I have proftpd installed.
Not sure what happens but I go onto the server and start proftpd to transfer files and then I stop it after I am done. I always check that it has stopped before logging out.
Also I have removed any autostart symlinks by running:
update-rc.d -f proftpd remove
However, the next time I go onto the server I can see that proftpd is running again and accepting connections. This has happend several times and it is driving me crazy.
Is there any other place where an auto-start is configured?
| 0 |
9,637,012 | 03/09/2012 15:53:49 | 1,236,345 | 02/27/2012 19:18:03 | 33 | 1 | Exception while loading assemblies: Could not load assembly [MonoDevelop] | i want make a XNA Game for android, but have some problems in the IDE**(MonoDevelop and MonoGame and MonoDroid)**
**The problem is:**
> D:\Program Files\MSBuild\Novell\Novell.MonoDroid.Common.targets(2,2):
> Error: Exception while loading assemblies:
> System.IO.FileNotFoundException: Could not load assembly
> 'Microsoft.VisualC, Version=10.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono
> for Android profile?
>
> Nombre de archivo: 'Microsoft.VisualC.dll'
>
> en Monodroid.Tuner.MonoDroidResolver.Resolve(AssemblyNameReference
> reference, ReaderParameters parameters)
>
> en
> Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1
> assemblies, AssemblyDefinition assembly)
>
> en
> Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1
> assemblies, AssemblyDefinition assembly)
>
> en
> Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1
> assemblies, AssemblyDefinition assembly)
>
> en Xamarin.Android.Tasks.ResolveAssemblies.Execute()
Any people here know resolve this?
Thanks! | c++ | monodevelop | null | null | null | null | open | Exception while loading assemblies: Could not load assembly [MonoDevelop]
===
i want make a XNA Game for android, but have some problems in the IDE**(MonoDevelop and MonoGame and MonoDroid)**
**The problem is:**
> D:\Program Files\MSBuild\Novell\Novell.MonoDroid.Common.targets(2,2):
> Error: Exception while loading assemblies:
> System.IO.FileNotFoundException: Could not load assembly
> 'Microsoft.VisualC, Version=10.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono
> for Android profile?
>
> Nombre de archivo: 'Microsoft.VisualC.dll'
>
> en Monodroid.Tuner.MonoDroidResolver.Resolve(AssemblyNameReference
> reference, ReaderParameters parameters)
>
> en
> Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1
> assemblies, AssemblyDefinition assembly)
>
> en
> Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1
> assemblies, AssemblyDefinition assembly)
>
> en
> Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1
> assemblies, AssemblyDefinition assembly)
>
> en Xamarin.Android.Tasks.ResolveAssemblies.Execute()
Any people here know resolve this?
Thanks! | 0 |
9,637,016 | 03/09/2012 15:54:08 | 198,473 | 10/28/2009 21:48:47 | 795 | 11 | Stylizing JBehave Reports | I am creating a collection of JBehave reports during my build that I would like to enhance. The default html reports that JBehave generates are very bland and could be tweaked for easier readability on my wiki when I post them for my customers. I would like to add some simple styling via css. However, I cannot find any examples on how to accomplish this.
Does anyone know how I can apply a custom css style to JBehave reports?
Here is how I'm generating the reports right now:
@Override
public Configuration configuration() {
...
return new MostUsefulConfiguration()
....
.useStoryReporterBuilder(new StoryReporterBuilder()
.withCodeLocation(CodeLocations.codeLocationFromClass(embeddableClass))
.withFormats( Format.TXT,
Format.HTML)
...
);
} | html | css | formatting | report | jbehave | null | open | Stylizing JBehave Reports
===
I am creating a collection of JBehave reports during my build that I would like to enhance. The default html reports that JBehave generates are very bland and could be tweaked for easier readability on my wiki when I post them for my customers. I would like to add some simple styling via css. However, I cannot find any examples on how to accomplish this.
Does anyone know how I can apply a custom css style to JBehave reports?
Here is how I'm generating the reports right now:
@Override
public Configuration configuration() {
...
return new MostUsefulConfiguration()
....
.useStoryReporterBuilder(new StoryReporterBuilder()
.withCodeLocation(CodeLocations.codeLocationFromClass(embeddableClass))
.withFormats( Format.TXT,
Format.HTML)
...
);
} | 0 |
9,637,021 | 03/09/2012 15:54:18 | 524,698 | 11/30/2010 05:06:12 | 346 | 0 | How to show uitableview on uibutton? | I need to show uitableview on button's touchupinside like below attached image without using UISplitViewController.Can anybody help me.
![enter image description here][1]
[1]: http://i.stack.imgur.com/6NTvc.png | iphone | uitableview | null | null | null | null | open | How to show uitableview on uibutton?
===
I need to show uitableview on button's touchupinside like below attached image without using UISplitViewController.Can anybody help me.
![enter image description here][1]
[1]: http://i.stack.imgur.com/6NTvc.png | 0 |
9,637,024 | 03/09/2012 15:54:39 | 1,259,646 | 03/09/2012 15:44:24 | 1 | 0 | In Lightbox 0.5 how do you move and resize the image data box? | My question pretty much sums what I want to do. Looking at the examples of Leandro Vieira Pinho's Lightbox 0.5, I'm trying to move the data box to the left or right hand side and make it the same height at the image. Much like what Facebook's new photo box does. I can't seem to find the right style to make the alterations.
Thanks! | jquery | lightbox | picturegallery | null | null | null | open | In Lightbox 0.5 how do you move and resize the image data box?
===
My question pretty much sums what I want to do. Looking at the examples of Leandro Vieira Pinho's Lightbox 0.5, I'm trying to move the data box to the left or right hand side and make it the same height at the image. Much like what Facebook's new photo box does. I can't seem to find the right style to make the alterations.
Thanks! | 0 |
9,637,026 | 03/09/2012 15:54:51 | 643,742 | 03/03/2011 21:40:25 | 1,513 | 5 | JAXB customization for xsd to java - override few files | I was a bit disillusioned as I was googling for how to customize auto generated java files from xsd. I started of letting the cxf.xjc maven plugin generate my java files, but now I need to change a few files to add extra basic getter functions and some other type adapters etc...
How can this be done? Can I somehow extend the `ObjectFactory` and tell JAXB to use my custom object factory for unmarshalling?
If yes, does JAXB by default take the annotations of the highest class in the object hierarchy if there are some annotation inconsistencies between generated classes and my custom files extending the generated classes? | xsd | jaxb | cxf | xjc | objectfactory | null | open | JAXB customization for xsd to java - override few files
===
I was a bit disillusioned as I was googling for how to customize auto generated java files from xsd. I started of letting the cxf.xjc maven plugin generate my java files, but now I need to change a few files to add extra basic getter functions and some other type adapters etc...
How can this be done? Can I somehow extend the `ObjectFactory` and tell JAXB to use my custom object factory for unmarshalling?
If yes, does JAXB by default take the annotations of the highest class in the object hierarchy if there are some annotation inconsistencies between generated classes and my custom files extending the generated classes? | 0 |
9,636,950 | 03/09/2012 15:50:53 | 258,482 | 01/25/2010 14:18:53 | 596 | 27 | Connecting one program to another via a third | I am trying to make a sort of hub for a few programs to talk to a server program using COM (plain old inter-process communication). What I want to do is connect to the server, and then show the server interface to the client programs without having to program the entire pass-through before hand like this (since it would have to be updated every time the server interface changes):
class translator : Iserverinterface
{
servermethod1(int value1, int value2) { server.sm1(value1, value2); }
serverproperty1 { get{return server.sp1;} set{ server.sp1 = value;} }
// and so on...
}
I can't just connect them directly to the server for two reasons. First, it might be across a network (using WCF), and second, this will provide a central interface to change servers if need be. When I say server, I mean the program that the clients are connecting to in order to access the above interface. Therefore I need to take the server connection and show it to the client. I don't know if this is possible, but if you need clarification on something, just ask. | c# | com | null | null | null | null | open | Connecting one program to another via a third
===
I am trying to make a sort of hub for a few programs to talk to a server program using COM (plain old inter-process communication). What I want to do is connect to the server, and then show the server interface to the client programs without having to program the entire pass-through before hand like this (since it would have to be updated every time the server interface changes):
class translator : Iserverinterface
{
servermethod1(int value1, int value2) { server.sm1(value1, value2); }
serverproperty1 { get{return server.sp1;} set{ server.sp1 = value;} }
// and so on...
}
I can't just connect them directly to the server for two reasons. First, it might be across a network (using WCF), and second, this will provide a central interface to change servers if need be. When I say server, I mean the program that the clients are connecting to in order to access the above interface. Therefore I need to take the server connection and show it to the client. I don't know if this is possible, but if you need clarification on something, just ask. | 0 |
9,637,028 | 03/09/2012 15:54:59 | 215,541 | 11/20/2009 15:35:41 | 340 | 5 | In MVP what exactly is the View? | Hey just actually wondering what the View consists of in MVP.
Is this the actual .aspx pages for example...or is it the Interface that the .aspx page implmenets i.e. IMyPage.cs
Just looking to clear this up cheers. | asp.net | mvp | null | null | null | null | open | In MVP what exactly is the View?
===
Hey just actually wondering what the View consists of in MVP.
Is this the actual .aspx pages for example...or is it the Interface that the .aspx page implmenets i.e. IMyPage.cs
Just looking to clear this up cheers. | 0 |
40,465 | 09/02/2008 20:08:51 | 1,946 | 08/19/2008 14:53:06 | 142 | 9 | How to get an array of distinct property values from in memory lists? | I have a List of Foo. Foo has a string property named Bar. I'd like to use linq to get a string[] of distinct values for Foo.Bar in List of Foo.
How can I do this? | linq | null | null | null | null | null | open | How to get an array of distinct property values from in memory lists?
===
I have a List of Foo. Foo has a string property named Bar. I'd like to use linq to get a string[] of distinct values for Foo.Bar in List of Foo.
How can I do this? | 0 |
40,471 | 09/02/2008 20:12:00 | 4,316 | 09/02/2008 20:12:00 | 1 | 0 | Java hashmap vs hashtable | What is the difference between a hashmap and a hashtable in Java, and which is more efficient for non-threaded applications? | java | hashtable | hashmap | null | null | null | open | Java hashmap vs hashtable
===
What is the difference between a hashmap and a hashtable in Java, and which is more efficient for non-threaded applications? | 0 |
40,480 | 09/02/2008 20:14:29 | 4,315 | 09/02/2008 20:08:30 | 1 | 0 | Is Java pass by reference? | I always thought Java was pass by reference, however I've seen a couple of blog posts that claim it's not. I don't think I understand the distinction they're making. Could someone explain it please?
e.g. [This blog][1]
[1]: http://javadude.com/articles/passbyvalue.htm | java | programming-languages | reference | null | null | null | open | Is Java pass by reference?
===
I always thought Java was pass by reference, however I've seen a couple of blog posts that claim it's not. I don't think I understand the distinction they're making. Could someone explain it please?
e.g. [This blog][1]
[1]: http://javadude.com/articles/passbyvalue.htm | 0 |
40,485 | 09/02/2008 20:15:13 | 2,638 | 08/23/2008 20:10:14 | 646 | 37 | Optimizing Conway's 'Game of Life' | To experiment, I've (long ago) implemented Conway's [Game of Life][1] (and I'm aware of [this][2] related question!).
My implementation worked by keeping 2 arrays of booleans, representing the 'last state', and the 'state being updated' (the 2 arrays being swapped at each iteration). While this is reasonably fast, I've often wondered about how to optimize this.
One idea, for example, would be to precompute at iteration N the zones that *could* be modified at iteration (N+1) (so that if a cell does not belong to such a zone, it won't even be considered for modification at iteration (N+1)). I'm aware that this is very vague, and I never took time to go into the details...
Do you have any ideas (or experience!) of how to go about optimizing (for speed) Game of Life iterations?
[1]: http://en.wikipedia.org/wiki/Conway's_Game_of_Life
[2]: http://stackoverflow.com/questions/1823/writing-a-conways-game-of-life-program | language-agnostic | performance | algorithm | null | null | null | open | Optimizing Conway's 'Game of Life'
===
To experiment, I've (long ago) implemented Conway's [Game of Life][1] (and I'm aware of [this][2] related question!).
My implementation worked by keeping 2 arrays of booleans, representing the 'last state', and the 'state being updated' (the 2 arrays being swapped at each iteration). While this is reasonably fast, I've often wondered about how to optimize this.
One idea, for example, would be to precompute at iteration N the zones that *could* be modified at iteration (N+1) (so that if a cell does not belong to such a zone, it won't even be considered for modification at iteration (N+1)). I'm aware that this is very vague, and I never took time to go into the details...
Do you have any ideas (or experience!) of how to go about optimizing (for speed) Game of Life iterations?
[1]: http://en.wikipedia.org/wiki/Conway's_Game_of_Life
[2]: http://stackoverflow.com/questions/1823/writing-a-conways-game-of-life-program | 0 |
40,495 | 09/02/2008 20:17:11 | 4,272 | 09/02/2008 15:42:53 | 151 | 13 | Bug tracker setup with Git integration? | I know I can do most of this by hacking Trac and using Git hooks, but I was wondering if someone has / knows of something ready.
Commenting on (and closing) tickets from commit messages would be nice, specially if the diff appears inline with the comment/closing remark.
sha1 hashes should be auto-linked to gitweb/cigt/custom git browser.
I tried the GitPlugin for Trac, but the code browser was soo slow... any alternatives? | git | version-control | bugtracking | integration | null | null | open | Bug tracker setup with Git integration?
===
I know I can do most of this by hacking Trac and using Git hooks, but I was wondering if someone has / knows of something ready.
Commenting on (and closing) tickets from commit messages would be nice, specially if the diff appears inline with the comment/closing remark.
sha1 hashes should be auto-linked to gitweb/cigt/custom git browser.
I tried the GitPlugin for Trac, but the code browser was soo slow... any alternatives? | 0 |
40,511 | 09/02/2008 20:22:25 | 402 | 08/05/2008 13:24:03 | 260 | 14 | Return function pointer to a nested function in C | As the title already states, I'm trying to declare a nested function and return a pointer to that function. I want this function 'not' to return a new function pointer which will return the negation of whatever the original function was.
Here is what I have:
someType not( someType original ) {
int isNot( ListEntry* entry ) {
return !original( entry );
}
someType resultFunc = calloc( 1024, 1 );
memcpy( resultFunc, &isNot, 1024 );
return resultFunc;
}
someType is defined as:
typedef int(*someType)(ListEntry* entry)
| c | pointer | nested | null | null | null | open | Return function pointer to a nested function in C
===
As the title already states, I'm trying to declare a nested function and return a pointer to that function. I want this function 'not' to return a new function pointer which will return the negation of whatever the original function was.
Here is what I have:
someType not( someType original ) {
int isNot( ListEntry* entry ) {
return !original( entry );
}
someType resultFunc = calloc( 1024, 1 );
memcpy( resultFunc, &isNot, 1024 );
return resultFunc;
}
someType is defined as:
typedef int(*someType)(ListEntry* entry)
| 0 |
40,525 | 09/02/2008 20:25:54 | 557 | 08/06/2008 17:12:26 | 53 | 3 | Call Functions within Function - Flash Actionscript 2.0 | I'm trying to call a function after I load some XML into Actionscript, and I'm just wondering how I call that function. Example:
//Function Declarations
function parentFunction()
{
function callMe()
{
textField.text = "lawl";
}
}
Now, **how do I call the "callMe()" function** in a different part of the code, like an onRelease function?
on(release)
{
callMe(); //doesn't work
parentFunction().callMe(); //doesn't work
parentFunction.callMe(); //doesn't work
}
ActionScript 2.0 is just so wonky! Any ideas? | flash | actionscript | actionscript-2 | null | null | null | open | Call Functions within Function - Flash Actionscript 2.0
===
I'm trying to call a function after I load some XML into Actionscript, and I'm just wondering how I call that function. Example:
//Function Declarations
function parentFunction()
{
function callMe()
{
textField.text = "lawl";
}
}
Now, **how do I call the "callMe()" function** in a different part of the code, like an onRelease function?
on(release)
{
callMe(); //doesn't work
parentFunction().callMe(); //doesn't work
parentFunction.callMe(); //doesn't work
}
ActionScript 2.0 is just so wonky! Any ideas? | 0 |
40,531 | 09/02/2008 20:26:49 | 2,734 | 08/24/2008 19:01:39 | 11 | 3 | Why should I use Feature Driven Development? | Extreme Programming, Scrum and Test Driven Development definitely seem to be the most popular Agile methods at the moment. But someone recently suggested that I take a look at Feature Driven Development.
Have you ever used this method with any success? What are the advantages of using it?
| agile | null | null | null | null | null | open | Why should I use Feature Driven Development?
===
Extreme Programming, Scrum and Test Driven Development definitely seem to be the most popular Agile methods at the moment. But someone recently suggested that I take a look at Feature Driven Development.
Have you ever used this method with any success? What are the advantages of using it?
| 0 |
40,535 | 09/02/2008 20:27:28 | 3,085 | 08/26/2008 15:02:28 | 41 | 2 | Asp.Net MVC: How to determine if you're currently on a specific view | I need to determine if I'm on a particular view. My use case is that I'd like to decorate navigation elements with an "on" class for the current view. Is there a built in way of doing this? | c# | asp.net-mvc | null | null | null | null | open | Asp.Net MVC: How to determine if you're currently on a specific view
===
I need to determine if I'm on a particular view. My use case is that I'd like to decorate navigation elements with an "on" class for the current view. Is there a built in way of doing this? | 0 |
40,541 | 09/02/2008 20:28:44 | 383 | 08/05/2008 10:46:37 | 2,392 | 223 | Simple AI Programming | I want to get into some simple AI Programming on any subject really. My programming language of choice is C#.Net.
Where is the best place to get started?
*(Preferably free)* | c# | artificial-intelligence | null | null | null | null | open | Simple AI Programming
===
I want to get into some simple AI Programming on any subject really. My programming language of choice is C#.Net.
Where is the best place to get started?
*(Preferably free)* | 0 |
40,545 | 09/02/2008 20:29:40 | 4,286 | 09/02/2008 16:47:05 | 11 | 1 | Replace a database connection for report and all subreports | Is there is any way to change the datasource location for a report and all of it's subreports without having to open each of them manually? | crystal-reports | null | null | null | null | null | open | Replace a database connection for report and all subreports
===
Is there is any way to change the datasource location for a report and all of it's subreports without having to open each of them manually? | 0 |
40,568 | 09/02/2008 20:35:24 | 4,308 | 09/02/2008 19:27:46 | 1 | 1 | square brackets in URLs | Are square brackets in URLs allowed?
I noticed that [Apache commons HttpClient][1] (3.0.1) throws an IOException, wget and Firefox however accept square brackets.
URL example:
<tt>http://example.com/path/to/file[3].html</tt>
[1]: http://hc.apache.org/httpclient-3.x/index.html | url | java | apache | null | null | null | open | square brackets in URLs
===
Are square brackets in URLs allowed?
I noticed that [Apache commons HttpClient][1] (3.0.1) throws an IOException, wget and Firefox however accept square brackets.
URL example:
<tt>http://example.com/path/to/file[3].html</tt>
[1]: http://hc.apache.org/httpclient-3.x/index.html | 0 |
40,577 | 09/02/2008 20:37:53 | 4,322 | 09/02/2008 20:31:47 | 1 | 0 | Datetime arithmetic with a string in Ruby | In Ruby, I'm trying to do the following.
def self.stats(since)
return Events.find(:all, :select => 'count(*) as this_count', :conditions => ['Date)event_date) >= ?', (Time.now - since)]).first.this_count
end
where "since" is a string representing an amount of time ('1 hour', '1 day', '3 days') and so on. Any suggestions? | ruby | time | datetime | null | null | null | open | Datetime arithmetic with a string in Ruby
===
In Ruby, I'm trying to do the following.
def self.stats(since)
return Events.find(:all, :select => 'count(*) as this_count', :conditions => ['Date)event_date) >= ?', (Time.now - since)]).first.this_count
end
where "since" is a string representing an amount of time ('1 hour', '1 day', '3 days') and so on. Any suggestions? | 0 |
40,586 | 09/02/2008 20:40:29 | 116 | 08/02/2008 05:51:57 | 5,197 | 219 | cx_Oracle: how do I get the ORA-xxxxx error number? | In a try/except block, how do I extract the Oracle error number? | python | oracle | cx-oracle | null | null | null | open | cx_Oracle: how do I get the ORA-xxxxx error number?
===
In a try/except block, how do I extract the Oracle error number? | 0 |
40,590 | 09/02/2008 20:41:21 | 4,320 | 09/02/2008 20:26:58 | 1 | 0 | jQuery and Prototpye Selector Madness | Both the jQuery and Prototpye JavaScript libraries refuse to allow me to use a variable to select an list item element by index number although they accept a hard coded number.
For example, in Prototype this works:
$$('li')[5].addClassName('active');
But this will not work no matter how I try to cast the variable as a number or integer:
$$('li')[currentPage].addClassName('active');
In jQuery I get similar weirdness. This will work:
jQuery('li').eq(5).addClass("active");
But this will not work again even though the value of currentPage is 5 and its type is number:
jQuery('li').eq(currentPage).addClass("active");
I'm trying to create a JavaScript pagination system and I need to set the class on the active page button. The list item elements are created dynamically depending upon the number of pages I need. | jquery | prototype | addclass | selectors | null | null | open | jQuery and Prototpye Selector Madness
===
Both the jQuery and Prototpye JavaScript libraries refuse to allow me to use a variable to select an list item element by index number although they accept a hard coded number.
For example, in Prototype this works:
$$('li')[5].addClassName('active');
But this will not work no matter how I try to cast the variable as a number or integer:
$$('li')[currentPage].addClassName('active');
In jQuery I get similar weirdness. This will work:
jQuery('li').eq(5).addClass("active");
But this will not work again even though the value of currentPage is 5 and its type is number:
jQuery('li').eq(currentPage).addClass("active");
I'm trying to create a JavaScript pagination system and I need to set the class on the active page button. The list item elements are created dynamically depending upon the number of pages I need. | 0 |
40,602 | 09/02/2008 20:44:35 | 1,583 | 08/16/2008 20:54:12 | 18 | 4 | What kind of problems are state machines good for? | What kind of programming problems are state machines most suited for?
I have read about parsers being implemented using state machines, but would like to find out about problems that scream out to be implemented as a state machine. | algorithm | design | state | null | null | 07/03/2012 12:39:04 | not constructive | What kind of problems are state machines good for?
===
What kind of programming problems are state machines most suited for?
I have read about parsers being implemented using state machines, but would like to find out about problems that scream out to be implemented as a state machine. | 4 |
40,603 | 09/02/2008 20:44:44 | 3,114 | 08/26/2008 18:05:52 | 483 | 35 | MSI Installer fails without removing a previous install | I have built an MSI that I would like to deploy, and update frequently. Unfortunately, when you install the MSI, and then try to install a newer version of the same MSI, it fails with a message like "Another version of this product is already installed. Installation of this version cannot continue..." appears. The MSI was built with a Visual Studio 2008 Setup Project. I have tried setting the "Remove Previous Versions" property to both true and false, in an effort to just make newer versions overwrite the older install, but nothing has worked. At a previous company I know I did not have this problem with installers built by Wise and Advanced Installer. Is there a setting I am missing? Or is my desired functionality not supported by the VS 2008 Setup Project? | versioning | msi | null | null | null | null | open | MSI Installer fails without removing a previous install
===
I have built an MSI that I would like to deploy, and update frequently. Unfortunately, when you install the MSI, and then try to install a newer version of the same MSI, it fails with a message like "Another version of this product is already installed. Installation of this version cannot continue..." appears. The MSI was built with a Visual Studio 2008 Setup Project. I have tried setting the "Remove Previous Versions" property to both true and false, in an effort to just make newer versions overwrite the older install, but nothing has worked. At a previous company I know I did not have this problem with installers built by Wise and Advanced Installer. Is there a setting I am missing? Or is my desired functionality not supported by the VS 2008 Setup Project? | 0 |
40,608 | 09/02/2008 20:46:38 | 4,247 | 09/02/2008 14:04:58 | 11 | 2 | Loading a JSON | I've been using PHP for too long, but I'm new to JavaScript integration in some places. I'm trying to find the fastest way to pass database information into a page where it can be modified and displayed dynamically in JavaScript. Right now, I'm looking at loading a JSON with PHP echo statements because it's fast and effective, but I saw that I could use PHP's JSON library (PHP 5.2). Has anybody tried the new JSON library, and is it better than my earlier method?
Thanks | php | json | null | null | null | null | open | Loading a JSON
===
I've been using PHP for too long, but I'm new to JavaScript integration in some places. I'm trying to find the fastest way to pass database information into a page where it can be modified and displayed dynamically in JavaScript. Right now, I'm looking at loading a JSON with PHP echo statements because it's fast and effective, but I saw that I could use PHP's JSON library (PHP 5.2). Has anybody tried the new JSON library, and is it better than my earlier method?
Thanks | 0 |
40,622 | 09/02/2008 20:51:52 | 4,229 | 09/02/2008 13:15:30 | 1 | 2 | Is Flex development without FlexBuilder realistic? | Is it realistic to try and learn and code a Flex 3 application without purchasing FlexBuilder? Since the SDK and BlazeDS are open source, it seems technically possible to develop without Flex Builder, but how realistic is it.
I would like to test out Flex but don't want to get into a situation where I am dependent on the purchase of FlexBuilder (at least not until I am confident and competent enough with the technology to recommend purchase to my employer).
I am experimenting right now, so I'm taking a long time and the trial license on my Windows machine has expired. Also Linux is my primary development platform and there is only an alpha available for Linux.
Most of the documentation I've found seem to use Flex Builder.
Maybe I should use Laszlo...
| flex | flexbuilder | null | null | null | null | open | Is Flex development without FlexBuilder realistic?
===
Is it realistic to try and learn and code a Flex 3 application without purchasing FlexBuilder? Since the SDK and BlazeDS are open source, it seems technically possible to develop without Flex Builder, but how realistic is it.
I would like to test out Flex but don't want to get into a situation where I am dependent on the purchase of FlexBuilder (at least not until I am confident and competent enough with the technology to recommend purchase to my employer).
I am experimenting right now, so I'm taking a long time and the trial license on my Windows machine has expired. Also Linux is my primary development platform and there is only an alpha available for Linux.
Most of the documentation I've found seem to use Flex Builder.
Maybe I should use Laszlo...
| 0 |
40,632 | 09/02/2008 20:55:13 | 1,583 | 08/16/2008 20:54:12 | 28 | 4 | I just don't get continuations! | What are they and what are they good for?
I do not have a CS degree and my background is VB6 -> ASP -> ASP.NET/C#. Can anyone explain it in a clear and concise manner?
| functional-programming | learning | null | null | null | null | open | I just don't get continuations!
===
What are they and what are they good for?
I do not have a CS degree and my background is VB6 -> ASP -> ASP.NET/C#. Can anyone explain it in a clear and concise manner?
| 0 |
40,637 | 09/02/2008 20:56:12 | 3,043 | 08/26/2008 13:24:14 | 644 | 84 | Insert current date in Excel template at creation | I'm building an excel template (*.xlt) for a user here, and one of the things I want to do is have it insert the current date when a new document is created (ie, when they double-click the file in windows explorer). How do I do this? | excel | templates | null | null | null | null | open | Insert current date in Excel template at creation
===
I'm building an excel template (*.xlt) for a user here, and one of the things I want to do is have it insert the current date when a new document is created (ie, when they double-click the file in windows explorer). How do I do this? | 0 |
40,651 | 09/02/2008 21:00:27 | 4,315 | 09/02/2008 20:08:30 | 26 | 1 | Check if a record exists in a VB6 collection? | I've inherited a large VB6 app at my current workplace. I'm kinda learning VB6 on the job and there are a number of problems I'm having. The major issue at the moment is I can't figure out how to check if a key exists in a Collection object. Can anyone help? | vb6 | collections | null | null | null | null | open | Check if a record exists in a VB6 collection?
===
I've inherited a large VB6 app at my current workplace. I'm kinda learning VB6 on the job and there are a number of problems I'm having. The major issue at the moment is I can't figure out how to check if a key exists in a Collection object. Can anyone help? | 0 |
40,655 | 09/02/2008 21:01:26 | 2,493 | 08/22/2008 14:05:21 | 8 | 2 | Simple Ajax/PHP contact form with validation | Does anyone know of a complete Ajax/PHP contact form that includes error handling/form validation and requires minimum effort to setup? It must also work if JavaScript is disabled.
I'm pretty much looking for a plug and play solution (well, as close to it as possible). | javascript | php | html | ajax | null | null | open | Simple Ajax/PHP contact form with validation
===
Does anyone know of a complete Ajax/PHP contact form that includes error handling/form validation and requires minimum effort to setup? It must also work if JavaScript is disabled.
I'm pretty much looking for a plug and play solution (well, as close to it as possible). | 0 |
40,663 | 09/02/2008 21:04:39 | 3,274 | 08/27/2008 16:05:55 | 18 | 2 | Validating a HUGE XML file | I'm trying to find a way to validate a large XML file against an XSD. I saw the question [...best way to validate an XML...][1] but the answers all pointed to using the Xerces library for validation. The only problem is, when I use that library to validate a 180 MB file then I get an OutOfMemoryException.
Are there any other tools,libraries, strategies for validating a larger than normal XML file?
[1]: http://stackoverflow.com/questions/15732/whats-the-best-way-to-validate-an-xml-file-against-an-xsd-file | xml | xsd | validation | null | null | null | open | Validating a HUGE XML file
===
I'm trying to find a way to validate a large XML file against an XSD. I saw the question [...best way to validate an XML...][1] but the answers all pointed to using the Xerces library for validation. The only problem is, when I use that library to validate a 180 MB file then I get an OutOfMemoryException.
Are there any other tools,libraries, strategies for validating a larger than normal XML file?
[1]: http://stackoverflow.com/questions/15732/whats-the-best-way-to-validate-an-xml-file-against-an-xsd-file | 0 |
40,665 | 09/02/2008 21:05:07 | 4,066 | 09/01/2008 16:06:15 | 46 | 5 | *= in Sybase SQL | I'm maintaining some code that uses a *= operator in a query to a Sybase database and I can't find documentation on it. Does anyone know what *= does? I assume that it is some sort of a join.
<pre><code>select * from a, b where a.id *= b.id</code></pre>
I can't figure out how this is different from:
<pre><code>select * from a, b where a.id = b.id</code></pre> | sybase | sql | null | null | null | null | open | *= in Sybase SQL
===
I'm maintaining some code that uses a *= operator in a query to a Sybase database and I can't find documentation on it. Does anyone know what *= does? I assume that it is some sort of a join.
<pre><code>select * from a, b where a.id *= b.id</code></pre>
I can't figure out how this is different from:
<pre><code>select * from a, b where a.id = b.id</code></pre> | 0 |
40,680 | 09/02/2008 21:09:44 | 648 | 08/07/2008 13:22:00 | 479 | 34 | How do I get the full url of the page I am on in C# | I need to be able to get at the full URL of the page I am on from a user control. Is it just a matter of concatenating a bunch of Request variables together? If so which ones? Or is there a more simpiler way? | c# | usercontrols | null | null | null | null | open | How do I get the full url of the page I am on in C#
===
I need to be able to get at the full URL of the page I am on from a user control. Is it just a matter of concatenating a bunch of Request variables together? If so which ones? Or is there a more simpiler way? | 0 |
40,689 | 09/02/2008 21:13:11 | 3,351 | 08/28/2008 05:23:07 | 26 | 1 | Tips / Resources for building a Google Chrome plugin | After test driving Google Chrome for 30 minutes or so, I like it, even if it seems bare-bones at the moment. The obvious way to add a few things I can't live without would be through plugins. Does anyone have any links to resources on how to get started building a plugin/addon for Chrome? Thanks. | chrome | null | null | null | null | null | open | Tips / Resources for building a Google Chrome plugin
===
After test driving Google Chrome for 30 minutes or so, I like it, even if it seems bare-bones at the moment. The obvious way to add a few things I can't live without would be through plugins. Does anyone have any links to resources on how to get started building a plugin/addon for Chrome? Thanks. | 0 |
40,703 | 09/02/2008 21:19:39 | 1,190 | 08/13/2008 12:15:38 | 1,042 | 90 | Where can I find and submit bug reports on Google's Chrome browser? | It will be important for developers wanting to develop for the chrome browser to be able to review existing bugs (to avoid too much pulling-out of hair), and to add new ones (to improve the thing). Yet I can't seem to find the bug tracking for this project. It *is* open source, right? | chrome | bugtracking | null | null | null | null | open | Where can I find and submit bug reports on Google's Chrome browser?
===
It will be important for developers wanting to develop for the chrome browser to be able to review existing bugs (to avoid too much pulling-out of hair), and to add new ones (to improve the thing). Yet I can't seem to find the bug tracking for this project. It *is* open source, right? | 0 |
40,705 | 09/02/2008 21:21:14 | 3,594 | 08/29/2008 08:46:29 | 102 | 9 | /usr/bin/env portability | At the beginning of all my executable Python scripts I put the [shebang][1] line:
#!/usr/bin/env python
I'm running these scripts on a system where `env python` yields a Python 2.2 environment. My scripts quickly fail because I have a manual check for a compatible Python version:
if sys.version_info < (2, 4):
raise ImportError("Cannot run with Python version < 2.4")
I don't want to have to change the shebang line on every executable file, if it's possible; however, I don't have administrative access to the machine to change the result of `env python` and I don't want to force a particular version, as in:
#!/usr/bin/env python2.4
I'd like to avoid this because system may have a newer version than Python 2.4, or may have Python 2.5 but no Python 2.4.
What's the elegant solution?
[1]: http://en.wikipedia.org/wiki/Shebang_(Unix) | python | environment | executable | she-bang | null | null | open | /usr/bin/env portability
===
At the beginning of all my executable Python scripts I put the [shebang][1] line:
#!/usr/bin/env python
I'm running these scripts on a system where `env python` yields a Python 2.2 environment. My scripts quickly fail because I have a manual check for a compatible Python version:
if sys.version_info < (2, 4):
raise ImportError("Cannot run with Python version < 2.4")
I don't want to have to change the shebang line on every executable file, if it's possible; however, I don't have administrative access to the machine to change the result of `env python` and I don't want to force a particular version, as in:
#!/usr/bin/env python2.4
I'd like to avoid this because system may have a newer version than Python 2.4, or may have Python 2.5 but no Python 2.4.
What's the elegant solution?
[1]: http://en.wikipedia.org/wiki/Shebang_(Unix) | 0 |
40,716 | 09/02/2008 21:25:49 | 4,319 | 09/02/2008 20:20:46 | 44 | 8 | Is solving the halting problem easier than people think? | Although the general case is undecidable, many people still do solve problems that are equivilent well enough for day to day use.
In cohen's phd thesis on computer viruses, he showed how virus scanning is equivilent to the halting problem, yet we have an entire industry based around this challenge.
I also have seen microsoft's terminator project - http://research.microsoft.com/Terminator/
Which leads me to ask - is the halting problem overrated - do we need to worry about the general case?
Will types become turning complete over time - dependant types do seem like a good development?
Or, to look the other way, will we begin to use non turing complete languages to gain the benefits of static analysis ? | computability | language-agnostic | types | inference | null | null | open | Is solving the halting problem easier than people think?
===
Although the general case is undecidable, many people still do solve problems that are equivilent well enough for day to day use.
In cohen's phd thesis on computer viruses, he showed how virus scanning is equivilent to the halting problem, yet we have an entire industry based around this challenge.
I also have seen microsoft's terminator project - http://research.microsoft.com/Terminator/
Which leads me to ask - is the halting problem overrated - do we need to worry about the general case?
Will types become turning complete over time - dependant types do seem like a good development?
Or, to look the other way, will we begin to use non turing complete languages to gain the benefits of static analysis ? | 0 |
40,719 | 09/02/2008 21:27:38 | 4,314 | 09/02/2008 19:57:40 | 1 | 1 | Should you register new extensions with Apple? | Do I need to register new extension types with Apple before I release an application that would create them on OS X? | osx | apple | adc | null | null | null | open | Should you register new extensions with Apple?
===
Do I need to register new extension types with Apple before I release an application that would create them on OS X? | 0 |
40,723 | 09/02/2008 21:28:22 | 2,133 | 08/20/2008 13:53:25 | 113 | 4 | Server centered vs. client centered architecture | For a typical business application, should the focus be on client processing via AJAX i.e. pull the data from the server and process it on the client or would you suggest a more classic ASP.Net approach with the server being responsible for handling most of the UI events? I find it hard to come up with a good 'default architecture' from which to start. Maybe someone has an open source example application which they could recommend. | .net | architecture | null | null | null | null | open | Server centered vs. client centered architecture
===
For a typical business application, should the focus be on client processing via AJAX i.e. pull the data from the server and process it on the client or would you suggest a more classic ASP.Net approach with the server being responsible for handling most of the UI events? I find it hard to come up with a good 'default architecture' from which to start. Maybe someone has an open source example application which they could recommend. | 0 |
40,730 | 09/02/2008 21:29:41 | 946 | 08/10/2008 22:30:51 | 11 | 1 | How do you give a C# Auto-Property a default value? | How do you give a C# Auto-Property a default value? I either use the constructor, or revert to the old syntax.
<strong> Using the Constructor:</strong>
class Person
{
public Person()
{
Name = "Default Name";
}
public string Name { get; set; }
}
<strong>Using normal property syntax</strong> (with a default value)
public string name = "Default Name";
public string Name
{
get
{
return name;
}
set
{
name = value;
}
}
Is there a better way? | c# | null | null | null | null | null | open | How do you give a C# Auto-Property a default value?
===
How do you give a C# Auto-Property a default value? I either use the constructor, or revert to the old syntax.
<strong> Using the Constructor:</strong>
class Person
{
public Person()
{
Name = "Default Name";
}
public string Name { get; set; }
}
<strong>Using normal property syntax</strong> (with a default value)
public string name = "Default Name";
public string Name
{
get
{
return name;
}
set
{
name = value;
}
}
Is there a better way? | 0 |
40,733 | 09/02/2008 21:32:37 | 2,258 | 08/21/2008 11:31:56 | 118 | 9 | Disable WPF label accelerator key (text underscore is missing) | I am setting the .Content value of a Label to a string that contains underscores; the first underscore is being interpreted as an accelerator key.
Without changing the underlying string (by replacing all _ with __), is there a way to disable the accelerator for Labels? | wpf | gui | null | null | null | null | open | Disable WPF label accelerator key (text underscore is missing)
===
I am setting the .Content value of a Label to a string that contains underscores; the first underscore is being interpreted as an accelerator key.
Without changing the underlying string (by replacing all _ with __), is there a way to disable the accelerator for Labels? | 0 |
40,735 | 09/02/2008 21:33:02 | 3,305 | 08/27/2008 18:56:35 | 278 | 22 | Brownfield vs Greenfield development? | This is not a question with a precise answer (strictly speaking the answer would be best captured by a poll, but that functionality is not available), but I am genuinely interested in the answer, so I will ask it anyway.
Over the course of your career, how much time have you spent on [greenfield][1] development compared with [brownfield][2]?
Over the last 10 years I would estimate that I have spent 20% on greenfield and 80% on brownfield. Is this typical?
[1]: http://en.wikipedia.org/wiki/Greenfield_project
[2]: http://en.wikipedia.org/wiki/Brownfield_(software_development) | project | lifecycle | null | null | null | null | open | Brownfield vs Greenfield development?
===
This is not a question with a precise answer (strictly speaking the answer would be best captured by a poll, but that functionality is not available), but I am genuinely interested in the answer, so I will ask it anyway.
Over the course of your career, how much time have you spent on [greenfield][1] development compared with [brownfield][2]?
Over the last 10 years I would estimate that I have spent 20% on greenfield and 80% on brownfield. Is this typical?
[1]: http://en.wikipedia.org/wiki/Greenfield_project
[2]: http://en.wikipedia.org/wiki/Brownfield_(software_development) | 0 |
40,737 | 09/02/2008 21:33:39 | 4,162 | 09/02/2008 08:01:10 | 1 | 1 | Generate disk usage graphs/charts with CLI only tools in Linux | [In this question][1] someone asked for ways to display disk usage in Linux. I'd like to take this one step further down the cli-path... how about a shell script that takes the output from something like a reasonable answer to the previous question and generates a graph/chart from it (output in a png file or something)? This may be a bit too much code to ask for in a regular question, but my guess is that someone already has a oneliner laying around somewhere...
[1]: http://stackoverflow.com/questions/32230/tracking-down-where-disk-space-has-gone-on-linux | linux | storage | disk | shell | diskspace | null | open | Generate disk usage graphs/charts with CLI only tools in Linux
===
[In this question][1] someone asked for ways to display disk usage in Linux. I'd like to take this one step further down the cli-path... how about a shell script that takes the output from something like a reasonable answer to the previous question and generates a graph/chart from it (output in a png file or something)? This may be a bit too much code to ask for in a regular question, but my guess is that someone already has a oneliner laying around somewhere...
[1]: http://stackoverflow.com/questions/32230/tracking-down-where-disk-space-has-gone-on-linux | 0 |
40,741 | 09/02/2008 21:36:45 | 3,445 | 08/28/2008 15:44:18 | 31 | 2 | Excel VBA: Alternative IDE | I am using excel 2003 and the build in IDE for programming VBA, but a lot of things bug me. Obviously, the build in nature of the VBA IDE is a big pro. Is there a (free?) alternative out there? | ide | excel | vba | office | null | null | open | Excel VBA: Alternative IDE
===
I am using excel 2003 and the build in IDE for programming VBA, but a lot of things bug me. Obviously, the build in nature of the VBA IDE is a big pro. Is there a (free?) alternative out there? | 0 |
40,764 | 09/02/2008 21:49:32 | 83 | 08/01/2008 16:31:56 | 1,083 | 81 | How should I cast in VB.NET? | Are all of these equal? Under what circumstances should I choose each over the others?
- var.ToString()
- CStr(var)
- CType(var, String)
- DirectCast(var, String) | vb.net | vb | cast | .net | null | null | open | How should I cast in VB.NET?
===
Are all of these equal? Under what circumstances should I choose each over the others?
- var.ToString()
- CStr(var)
- CType(var, String)
- DirectCast(var, String) | 0 |
40,769 | 09/02/2008 21:53:21 | 3,923 | 08/31/2008 22:22:32 | 1 | 0 | SHGetFolderPath on remote computer | How do I determine the (local-) path for the "Program Files" directory on a remote computer? There does not appear to any version of SHGetFolderPath (or related function) that takes the name of a remote computer as a parameter.
I guess I could try to query HKLM\Software\Microsoft\Windows\CurrentVersion\ProgramFilesDir using remote-registry, but I was hoping there would be "documented" way of doing it. | shell | winapi | null | null | null | null | open | SHGetFolderPath on remote computer
===
How do I determine the (local-) path for the "Program Files" directory on a remote computer? There does not appear to any version of SHGetFolderPath (or related function) that takes the name of a remote computer as a parameter.
I guess I could try to query HKLM\Software\Microsoft\Windows\CurrentVersion\ProgramFilesDir using remote-registry, but I was hoping there would be "documented" way of doing it. | 0 |
40,773 | 09/02/2008 21:56:17 | 1,432 | 08/15/2008 15:33:54 | 875 | 56 | Ticket Tracking Software w/ Good Email Integration and Decent Navigation? | I am looking for a simple system to manage inbound emails from a support mailbox for a group with about 3 support people. I've looked at [OTRS][1] which seems to have the features that we need. Unfortunately, so far the UI still looks like a confusing mess.
Are there any good FOSS tools that would meet this need? I've heard murmurings that something called fooogzeeebugzo might have similar features, but it seems quite expensive for such simple needs.
[1]: http://otrs.org/ | bug-tracking | email-integration | ticket-system | null | null | null | open | Ticket Tracking Software w/ Good Email Integration and Decent Navigation?
===
I am looking for a simple system to manage inbound emails from a support mailbox for a group with about 3 support people. I've looked at [OTRS][1] which seems to have the features that we need. Unfortunately, so far the UI still looks like a confusing mess.
Are there any good FOSS tools that would meet this need? I've heard murmurings that something called fooogzeeebugzo might have similar features, but it seems quite expensive for such simple needs.
[1]: http://otrs.org/ | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.