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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33,265 | 08/28/2008 20:06:01 | 2,361 | 08/21/2008 20:41:09 | 278 | 13 | What's the false operator in C# good for? | There are two weird operators in C#:
- the [true operator][1]
- the [false operator][2]
If I understand this right this operators can be used in types which I want use instead of boolean expression and where I don't want to provide implicit conversion to bool.
Let say i have a following class:
public class MyType
{
public readonly int Value;
public MyType(int value)
{
Value = value;
}
public static bool operator true (MyType mt)
{
return mt.Value > 0;
}
public static bool operator false (MyType mt)
{
return mt.Value < 0;
}
}
So i can write following code:
MyType mTrue = new MyType(100);
MyType mFalse = new MyType(-100);
MyType mDontKnow = new MyType(0);
if (mTrue)
{
// do something
}
while (mFalse)
{
// do something else
}
do
{
// another code comes here
} while (mDontKnow)
However for all examples above only true operator is executed. So what's the false operator in C# good for?
*Note: More examples can be found [here][3], [here][4] and [here][5].*
[1]: http://msdn.microsoft.com/en-us/library/6x6y6z4d.aspx
[2]: http://msdn.microsoft.com/en-us/library/6292hy1k.aspx
[3]: http://www.java2s.com/Tutorial/CSharp/0160__Operator-Overload/truefalseoperatorforComplex.htm
[4]: http://www.java2s.com/Tutorial/CSharp/0160__Operator-Overload/OverloadtrueandfalseforTwoDimension.htm
[5]: http://www.java2s.com/Tutorial/CSharp/0160__Operator-Overload/trueandfalseoperator.htm | c# | .net | syntax | null | null | null | open | What's the false operator in C# good for?
===
There are two weird operators in C#:
- the [true operator][1]
- the [false operator][2]
If I understand this right this operators can be used in types which I want use instead of boolean expression and where I don't want to provide implicit conversion to bool.
Let say i have a following class:
public class MyType
{
public readonly int Value;
public MyType(int value)
{
Value = value;
}
public static bool operator true (MyType mt)
{
return mt.Value > 0;
}
public static bool operator false (MyType mt)
{
return mt.Value < 0;
}
}
So i can write following code:
MyType mTrue = new MyType(100);
MyType mFalse = new MyType(-100);
MyType mDontKnow = new MyType(0);
if (mTrue)
{
// do something
}
while (mFalse)
{
// do something else
}
do
{
// another code comes here
} while (mDontKnow)
However for all examples above only true operator is executed. So what's the false operator in C# good for?
*Note: More examples can be found [here][3], [here][4] and [here][5].*
[1]: http://msdn.microsoft.com/en-us/library/6x6y6z4d.aspx
[2]: http://msdn.microsoft.com/en-us/library/6292hy1k.aspx
[3]: http://www.java2s.com/Tutorial/CSharp/0160__Operator-Overload/truefalseoperatorforComplex.htm
[4]: http://www.java2s.com/Tutorial/CSharp/0160__Operator-Overload/OverloadtrueandfalseforTwoDimension.htm
[5]: http://www.java2s.com/Tutorial/CSharp/0160__Operator-Overload/trueandfalseoperator.htm | 0 |
33,275 | 08/28/2008 20:09:27 | 64 | 08/01/2008 14:27:12 | 115 | 13 | Automated PDF Creation from URL | Is there a PDF library that one can use to automate creating PDFs from URLs? The current approach I use is to "Print" a page and select a PDF plugin like PrimoPDF to generate the PDF document but I was wanting to automate that.
| pdf | pdf-generation | null | null | null | null | open | Automated PDF Creation from URL
===
Is there a PDF library that one can use to automate creating PDFs from URLs? The current approach I use is to "Print" a page and select a PDF plugin like PrimoPDF to generate the PDF document but I was wanting to automate that.
| 0 |
33,288 | 08/28/2008 20:11:54 | 2,723 | 08/24/2008 17:49:45 | 25 | 0 | Protecting API Secret Keys in a Thick Client application | Within an application, I've got Secret Keys uses to calculate a hash for an API call. In a .NET application it's fairly easy to use a program like Reflector to pull out information from the assembly to include these keys.
Is obfuscating the assembly a good way of securing these keys? | security | web-services | api | null | null | null | open | Protecting API Secret Keys in a Thick Client application
===
Within an application, I've got Secret Keys uses to calculate a hash for an API call. In a .NET application it's fairly easy to use a program like Reflector to pull out information from the assembly to include these keys.
Is obfuscating the assembly a good way of securing these keys? | 0 |
33,301 | 08/28/2008 20:24:04 | 1,226 | 08/13/2008 13:55:55 | 143 | 12 | Call onresize from ASP.NET content page | I have a JavaScript method that I need to run on one of my pages, in particular, the onresize event.
However, I don't see how I can set that event from my content page. I wish I could just put it on my master page, but I don't have the need for the method to be called on all pages that use that master page.
Any help would be appreciated. | asp.net | masterpage | javascript | onresize | null | null | open | Call onresize from ASP.NET content page
===
I have a JavaScript method that I need to run on one of my pages, in particular, the onresize event.
However, I don't see how I can set that event from my content page. I wish I could just put it on my master page, but I don't have the need for the method to be called on all pages that use that master page.
Any help would be appreciated. | 0 |
33,306 | 08/28/2008 20:26:14 | 2,147 | 08/20/2008 15:14:13 | 445 | 49 | C++ STL question: allocators | I have a (potentially dumb) question about the C++ STL. When I make a container (vector, set, map, etc), is it allocated on the stack or on the heap? If I make a set and put 5 million strings, will I have to worry about a stack overflow? | c++ | stl | stack-overflow | null | null | null | open | C++ STL question: allocators
===
I have a (potentially dumb) question about the C++ STL. When I make a container (vector, set, map, etc), is it allocated on the stack or on the heap? If I make a set and put 5 million strings, will I have to worry about a stack overflow? | 0 |
33,321 | 08/28/2008 20:32:09 | 2,849 | 08/25/2008 14:24:20 | 56 | 9 | Best AJAX Framework | In Asp.Net web forms, what is the best chioce for providing a righ UI (a la Ajax)? I've been using the built in Ajax support that MS ships in addition to the Ajax Control Toolkit until now, but is there something better and/or easier? | asp.net | ajax | user-interface | ajaxtoolkit | null | 09/07/2011 22:35:17 | not constructive | Best AJAX Framework
===
In Asp.Net web forms, what is the best chioce for providing a righ UI (a la Ajax)? I've been using the built in Ajax support that MS ships in addition to the Ajax Control Toolkit until now, but is there something better and/or easier? | 4 |
33,334 | 08/28/2008 20:35:07 | 1,834 | 08/18/2008 19:14:32 | 41 | 6 | How do you find what debug switches are available? Or given a switch find out what is being disabled? | In this [question][1] the answer was to flip on a switch that is picked up by the debugger disabling the extraneous header that was causing the problem. The Microsoft help implies these switched are user generated and does not list any switches.
<configuration>
<system.diagnostics>
<switches>
<add name="Remote.Disable" value="1" />
</switches>
</system.diagnostics>
</configuration>
What I would like to know is where the value "Remote.Disable" comes from and how find out what other things can be switched on or off. Currently it is just some config magic, and I don't like magic.
[1]: http://stackoverflow.com/questions/32877/how-to-remove-vsdebuggercausalitydata-data-from-soap-message | .net | app-config | null | null | null | null | open | How do you find what debug switches are available? Or given a switch find out what is being disabled?
===
In this [question][1] the answer was to flip on a switch that is picked up by the debugger disabling the extraneous header that was causing the problem. The Microsoft help implies these switched are user generated and does not list any switches.
<configuration>
<system.diagnostics>
<switches>
<add name="Remote.Disable" value="1" />
</switches>
</system.diagnostics>
</configuration>
What I would like to know is where the value "Remote.Disable" comes from and how find out what other things can be switched on or off. Currently it is just some config magic, and I don't like magic.
[1]: http://stackoverflow.com/questions/32877/how-to-remove-vsdebuggercausalitydata-data-from-soap-message | 0 |
33,338 | 08/28/2008 20:36:14 | 445 | 08/05/2008 19:37:25 | 175 | 6 | Visual Studio Hosting Process and "The operation could not be completed" | When trying to execute from within Visual Studio 2008 your application and you get the (uninformative) message "The operation could not be completed".
The solution to this is to turn off the "Visual Studio Hosting Process".
The problem with turning off this "hosting process" is that all the "run and rewrite" functionality is no longer available. OK, so this isn't a big deal, but I'm *always* getting this message no matter what machine I use (and it might be nice once in a while to use the rewrite and execute functionality).
Am I doing something wrong? How come this "feature" within VS seems to complain so readily? Do other people have success with enabling the hosting process and making use of it? | visual-studio | null | null | null | null | null | open | Visual Studio Hosting Process and "The operation could not be completed"
===
When trying to execute from within Visual Studio 2008 your application and you get the (uninformative) message "The operation could not be completed".
The solution to this is to turn off the "Visual Studio Hosting Process".
The problem with turning off this "hosting process" is that all the "run and rewrite" functionality is no longer available. OK, so this isn't a big deal, but I'm *always* getting this message no matter what machine I use (and it might be nice once in a while to use the rewrite and execute functionality).
Am I doing something wrong? How come this "feature" within VS seems to complain so readily? Do other people have success with enabling the hosting process and making use of it? | 0 |
33,341 | 08/28/2008 20:37:19 | 877 | 08/10/2008 04:07:29 | 21 | 0 | ASP.Net RadioButton visibility inside a RadioButtonList | Is there a way to hide radio buttons inside a RadioButtonList control programmatically? | radiobuttonlist | radio-button | null | null | null | null | open | ASP.Net RadioButton visibility inside a RadioButtonList
===
Is there a way to hide radio buttons inside a RadioButtonList control programmatically? | 0 |
33,347 | 08/28/2008 20:39:52 | 2,915 | 08/25/2008 23:15:12 | 386 | 20 | Scripting SVG | I'm considering developing a website similar to stackoverflow, but the answers may also consist of drawings (schematics, in this case). I want to have an area in the answer form where they can make this schematic without requiring special plugins, etc.
1. Are we to the point where SVG has or should have critical mass soon (1-2 years) such that designing a website where script-run SVG as a primary feature is reasonable (ie, requiring Firefox or another SVG/AJAX compliant browser)?
2. What are some good resources for learning cross platform SVG scripting (likely in javascript)?
-Adam Davis | website | ajax | svg | criticalmass | javascript | null | open | Scripting SVG
===
I'm considering developing a website similar to stackoverflow, but the answers may also consist of drawings (schematics, in this case). I want to have an area in the answer form where they can make this schematic without requiring special plugins, etc.
1. Are we to the point where SVG has or should have critical mass soon (1-2 years) such that designing a website where script-run SVG as a primary feature is reasonable (ie, requiring Firefox or another SVG/AJAX compliant browser)?
2. What are some good resources for learning cross platform SVG scripting (likely in javascript)?
-Adam Davis | 0 |
33,349 | 08/28/2008 20:44:06 | 1,533 | 08/16/2008 12:20:13 | 98 | 15 | Looking up document library items in a SharePoint workflow | I using SharePoint Designer to create a workflow. I'm trying to get at a subfolder in a document library in the "Define Workflow Lookup" dialog. There are two issues with this:
1) I can't look up items by URL Path. If I look up by Title, I can output the URL Path, but selecting by path doesn't work. What fields can/can't I use?
2) I can't get at any subfolders. I can get at the top-level folder, but the subfolders don't seem to be available. Noticed the same things is true when looking at the data for a document library in the "Data Source Library" in Designer. | sharepoint | workflow | sharepointdesigner | moss | null | null | open | Looking up document library items in a SharePoint workflow
===
I using SharePoint Designer to create a workflow. I'm trying to get at a subfolder in a document library in the "Define Workflow Lookup" dialog. There are two issues with this:
1) I can't look up items by URL Path. If I look up by Title, I can output the URL Path, but selecting by path doesn't work. What fields can/can't I use?
2) I can't get at any subfolders. I can get at the top-level folder, but the subfolders don't seem to be available. Noticed the same things is true when looking at the data for a document library in the "Data Source Library" in Designer. | 0 |
33,386 | 08/28/2008 21:00:24 | 514 | 08/06/2008 13:59:16 | 174 | 6 | Best Ways to Debug a Release Mode Application | Im sure this has happened to folks before, something works in debug mode, you compile in release, and something breaks.
This happened to me while working on a Embedded XP environment, the best way i found to do it really was to write a log file to determine where it would go wrong.
What are your experiences/ discoveries trying to tackle an annoying Release-mode bug? | debugging | null | null | null | null | null | open | Best Ways to Debug a Release Mode Application
===
Im sure this has happened to folks before, something works in debug mode, you compile in release, and something breaks.
This happened to me while working on a Embedded XP environment, the best way i found to do it really was to write a log file to determine where it would go wrong.
What are your experiences/ discoveries trying to tackle an annoying Release-mode bug? | 0 |
33,390 | 08/28/2008 21:02:15 | 1,194 | 08/13/2008 12:27:52 | 112 | 10 | Best use pattern for a DataContext | What's the best lifetime model for a DataContext? Should I just create a new one whenever I need it (aka, function level), should I keep one available in each class that would use it (class level), or should I create a static class with a static DataContext (app-domain level)? Are there any considered best practices on this? | linq-to-sql | .net-3.5 | null | null | null | null | open | Best use pattern for a DataContext
===
What's the best lifetime model for a DataContext? Should I just create a new one whenever I need it (aka, function level), should I keep one available in each class that would use it (class level), or should I create a static class with a static DataContext (app-domain level)? Are there any considered best practices on this? | 0 |
33,395 | 08/28/2008 21:04:01 | 83 | 08/01/2008 16:31:56 | 986 | 79 | How do I hide pages in my ASP.NET web application from users that lack sufficient permissions? | I'm using the [ASP.NET Login Controls][1] and [Forms Authentication][2] for membership/credentials for an ASP.NET web application. And I'm using a [site map][3] for site navigation.
I have ASP.NET TreeView and Menu navigation controls populated using a SiteMapDataSource. But off-limits administrator-only pages are visible to non-administrator users.
[1]: http://msdn.microsoft.com/en-us/library/ms178329.aspx
[2]: http://msdn.microsoft.com/en-us/library/aa480476.aspx
[3]: http://msdn.microsoft.com/en-us/library/yy2ykkab.aspx | asp.net | forms-authentication | sitemap | null | null | null | open | How do I hide pages in my ASP.NET web application from users that lack sufficient permissions?
===
I'm using the [ASP.NET Login Controls][1] and [Forms Authentication][2] for membership/credentials for an ASP.NET web application. And I'm using a [site map][3] for site navigation.
I have ASP.NET TreeView and Menu navigation controls populated using a SiteMapDataSource. But off-limits administrator-only pages are visible to non-administrator users.
[1]: http://msdn.microsoft.com/en-us/library/ms178329.aspx
[2]: http://msdn.microsoft.com/en-us/library/aa480476.aspx
[3]: http://msdn.microsoft.com/en-us/library/yy2ykkab.aspx | 0 |
33,403 | 08/28/2008 21:06:57 | 3,314 | 08/27/2008 20:05:23 | 3 | 1 | .Net 2.0 - How efficient are Generic Lists? | I'm creating an app that holds loads of loads of user data in memory, and it's mostly keeping it all in List<T> structures (and some Dictionary<T,T> when I need lookup).
And I'm wondering...
How efficient are Lists?
How much memory overhead do I get for each of them? (that is, memory space in addition to what the objects they contain would take)
How much of a penalty do I pay every time I instance a new one?
Is there a more efficient way?
Dictionaries are just HashTables, right? Or are them a less efficient data structure?
I'd like to use Arrays, but I have the typical problem of adding and removing things all the time from them, so having to grow / shrink them would be a pain.
Any ideas/suggestions? | .net | list | generics | memory | performance | null | open | .Net 2.0 - How efficient are Generic Lists?
===
I'm creating an app that holds loads of loads of user data in memory, and it's mostly keeping it all in List<T> structures (and some Dictionary<T,T> when I need lookup).
And I'm wondering...
How efficient are Lists?
How much memory overhead do I get for each of them? (that is, memory space in addition to what the objects they contain would take)
How much of a penalty do I pay every time I instance a new one?
Is there a more efficient way?
Dictionaries are just HashTables, right? Or are them a less efficient data structure?
I'd like to use Arrays, but I have the typical problem of adding and removing things all the time from them, so having to grow / shrink them would be a pain.
Any ideas/suggestions? | 0 |
33,409 | 08/28/2008 21:09:00 | 1,214 | 08/13/2008 13:22:40 | 1 | 0 | How do I check if a SQL Server text column is empty? | I am using SQL Server 2005. I have a table with a text column and I have many rows in the table where the value of this column is not null, but it is empty. Trying to compare against '' yields this response:
>The data types text and varchar are incompatible in the not equal to operator.
Is there a special function to determine whether the value of a text column is not null but empty? | sql-server | null | null | null | null | null | open | How do I check if a SQL Server text column is empty?
===
I am using SQL Server 2005. I have a table with a text column and I have many rows in the table where the value of this column is not null, but it is empty. Trying to compare against '' yields this response:
>The data types text and varchar are incompatible in the not equal to operator.
Is there a special function to determine whether the value of a text column is not null but empty? | 0 |
33,412 | 08/28/2008 21:09:30 | 1,310 | 08/14/2008 13:42:16 | 418 | 25 | How do you configure HttpOnly cookies in tomcat / java webapps? | After reading Jeff's blog post on [Protecting Your Cookies: HttpOnly][1]. I'd like to implement HttpOnly cookies in my web application.
How do you tell tomcat to use http only cookies for sessions?
[1]: http://www.codinghorror.com/blog/archives/001167.html | java | tomcat | xss | webapp | null | null | open | How do you configure HttpOnly cookies in tomcat / java webapps?
===
After reading Jeff's blog post on [Protecting Your Cookies: HttpOnly][1]. I'd like to implement HttpOnly cookies in my web application.
How do you tell tomcat to use http only cookies for sessions?
[1]: http://www.codinghorror.com/blog/archives/001167.html | 0 |
33,438 | 08/28/2008 21:24:19 | 2,274 | 08/21/2008 12:44:42 | 90 | 7 | Using Hibernate to work with Text Files | I am using [Hibernate][1] in a Java application to access my Database and it works pretty well with MS-SQL and MySQL. But some of the data I have to show on some forms has to come from Text files, and by Text files I mean Human-Readable files, they can be CSV, Tab-Delimited, or ever pair (key, value) per line since my data is as simple as this, but my preference of course is XML files.
My question is: Can I use hibernate to read those files using HQL, Query , EntityManager and all those resources Hibernate provides me to access files. Which file format should I use and How I configure My persistence.xml file to recognize files as Tables?
[1]: http://www.hibernate.org/ | java | hibernate | text-files | database | null | null | open | Using Hibernate to work with Text Files
===
I am using [Hibernate][1] in a Java application to access my Database and it works pretty well with MS-SQL and MySQL. But some of the data I have to show on some forms has to come from Text files, and by Text files I mean Human-Readable files, they can be CSV, Tab-Delimited, or ever pair (key, value) per line since my data is as simple as this, but my preference of course is XML files.
My question is: Can I use hibernate to read those files using HQL, Query , EntityManager and all those resources Hibernate provides me to access files. Which file format should I use and How I configure My persistence.xml file to recognize files as Tables?
[1]: http://www.hibernate.org/ | 0 |
33,441 | 08/28/2008 21:26:21 | 2,236 | 08/21/2008 05:01:48 | 1 | 1 | What free and preferably open source development tools for windows would you recomend? | Currently, I use MinGW for C/C++, Sun's SDK for java, and the Crimson Editor or Notepad++ for editing and Eclipse for my IDE. | open-source | null | null | null | null | 06/08/2012 14:46:45 | off topic | What free and preferably open source development tools for windows would you recomend?
===
Currently, I use MinGW for C/C++, Sun's SDK for java, and the Crimson Editor or Notepad++ for editing and Eclipse for my IDE. | 2 |
33,449 | 08/28/2008 21:29:35 | 1,874 | 08/19/2008 02:05:31 | 147 | 14 | Can you call a webservice from TSQL code? | Is there a way to call out from a TSQL stored procedure or function to a webservice? | sql-server | web-services | tsql | null | null | null | open | Can you call a webservice from TSQL code?
===
Is there a way to call out from a TSQL stored procedure or function to a webservice? | 0 |
33,457 | 08/28/2008 21:36:43 | 2,199 | 08/20/2008 21:32:33 | 393 | 40 | SMO and Sql Server 7.0 | Does anyone have a definitive answer to whether [Sql Server Management Objects][1] is compatible with Sql Server 7.0?
The docs state:
> Because SMO is compatible with SQL Server version 7.0, SQL Server 2000, SQL Server 2005, and SQL Server 2008, you easily manage a multi-version environment.
But trying to connect to a Sql 7 instance gets me:
> "This SQL Server version (7.0) is not supported."
Has anyone been successful in getting these 2 to play nice?
[1]: http://msdn.microsoft.com/en-us/library/ms162557.aspx | sql-server | smo | null | null | null | null | open | SMO and Sql Server 7.0
===
Does anyone have a definitive answer to whether [Sql Server Management Objects][1] is compatible with Sql Server 7.0?
The docs state:
> Because SMO is compatible with SQL Server version 7.0, SQL Server 2000, SQL Server 2005, and SQL Server 2008, you easily manage a multi-version environment.
But trying to connect to a Sql 7 instance gets me:
> "This SQL Server version (7.0) is not supported."
Has anyone been successful in getting these 2 to play nice?
[1]: http://msdn.microsoft.com/en-us/library/ms162557.aspx | 0 |
33,459 | 08/28/2008 21:37:13 | 2,214 | 08/20/2008 23:12:21 | 1 | 0 | How do you use a flash object as a link? | Is it possible to use a flash document embedded in HTML as a link?
I tried just wrapping the <code>object</code> element with an <code>a</code> like this:
<a href="http://whatever.com">
<object ...>
<embed ... />
</object>
</a>
In Internet Explorer, that made it show the location in the status bar like a link, but it doesn't do anything.
I just have the .swf file, so I can't add a click handler in ActionScript.
| html | flash | null | null | null | null | open | How do you use a flash object as a link?
===
Is it possible to use a flash document embedded in HTML as a link?
I tried just wrapping the <code>object</code> element with an <code>a</code> like this:
<a href="http://whatever.com">
<object ...>
<embed ... />
</object>
</a>
In Internet Explorer, that made it show the location in the status bar like a link, but it doesn't do anything.
I just have the .swf file, so I can't add a click handler in ActionScript.
| 0 |
33,469 | 08/28/2008 21:43:16 | 1,212 | 08/13/2008 13:17:40 | 117 | 4 | Caching Patterns in ASP.NET | So I just fixed a bug in a framework I'm developing. The pseudo-pseudocode looks like this:
myoldObject = new MyObject { someValue = "old value" };
cache.Insert("myObjectKey", myoldObject);
myNewObject = cache.Get("myObjectKey");
myNewObject.someValue = "new value";
if(myObject.someValue != cache.Get("myObjectKey").someValue)
myObject.SaveToDatabase();
So, essentially, I was getting an object from the cache, and then later on comparing the original object to the cached object to see if I need to save it to the database in case it's changed. The problem arose because the original object is a reference...so changing someValue also changed the referenced cached object, so it'd never save back to the database. I fixed it by cloning the object off of the cached version, severing the reference and allowing me to compare the new object against the cached one.
My question is: **is there a better way to do this, some pattern, that you could recommend?** I can't be the only person that's done this before :) | asp.net | caching | null | null | null | null | open | Caching Patterns in ASP.NET
===
So I just fixed a bug in a framework I'm developing. The pseudo-pseudocode looks like this:
myoldObject = new MyObject { someValue = "old value" };
cache.Insert("myObjectKey", myoldObject);
myNewObject = cache.Get("myObjectKey");
myNewObject.someValue = "new value";
if(myObject.someValue != cache.Get("myObjectKey").someValue)
myObject.SaveToDatabase();
So, essentially, I was getting an object from the cache, and then later on comparing the original object to the cached object to see if I need to save it to the database in case it's changed. The problem arose because the original object is a reference...so changing someValue also changed the referenced cached object, so it'd never save back to the database. I fixed it by cloning the object off of the cached version, severing the reference and allowing me to compare the new object against the cached one.
My question is: **is there a better way to do this, some pattern, that you could recommend?** I can't be the only person that's done this before :) | 0 |
33,471 | 08/28/2008 21:44:08 | 1,806 | 08/18/2008 16:49:30 | 16 | 1 | Subversion: Fail update when there are conflicts? | Is there a way to tell subversion "update/merge unless it would cause a conflict"?
I know you can use `--dry-run` / `status -u` to check before running the update, but I often have others running updates and getting broken webpages because they don't notice the "C index.php" line.
I've also noticed that svn doesn't seem too unhappy about conflicts - it still says "updated to revision blah" and exits zero, regardless of conflicts. So I have to parse the line-by-line output to discover them. Surely there's a better way?
| svn | command-line | null | null | null | null | open | Subversion: Fail update when there are conflicts?
===
Is there a way to tell subversion "update/merge unless it would cause a conflict"?
I know you can use `--dry-run` / `status -u` to check before running the update, but I often have others running updates and getting broken webpages because they don't notice the "C index.php" line.
I've also noticed that svn doesn't seem too unhappy about conflicts - it still says "updated to revision blah" and exits zero, regardless of conflicts. So I have to parse the line-by-line output to discover them. Surely there's a better way?
| 0 |
33,475 | 08/28/2008 21:48:09 | 742 | 08/08/2008 13:33:41 | 37 | 2 | ssh hangs when command invoked directly, but exits cleanly when run interactive | I need to launch a server on the remote machine and retrieve the port number that the server process is lsitening on. When invoked, the server will listen on a random port and output the port number on stderr.
I want to automate the process of logging on to the remote machine, launching the process, and retrieving the port number. I wrote a Python script called "`invokejob.py`" that lives on the remote machine to act as a wrapper that invokes the job and then returns the port number, it looks like this:
import re, subprocess
executable = ... # Name of executable
regex = ... # Regex to extract the port number from the output
p = subprocess.Popen(executable,
bufsize=1, # line buffered
stderr=subprocess.PIPE
)
s = p.stderr.readline()
port = re.match(regex).groups()[0]
print port
If I log in interactively, this script works:
$ ssh remotehost.example.com
Last login: Thu Aug 28 17:31:18 2008 from localhost
$ ./invokejob.py
63409
$ exit
logout
Connection to remotehost.example.com closed.
(Note: successful logout, it did not hang).
However, if I try to invoke it from the command-line, it just hangs:
$ ssh remotehost.example.com invokejob.py
Does anybody know why it hangs in the second case, and what I can do to avoid this?
Note that I need to retrieve the output of the program, so I can't just use the ssh "-f" flag or redirect standard output.
| python | ssh | null | null | null | null | open | ssh hangs when command invoked directly, but exits cleanly when run interactive
===
I need to launch a server on the remote machine and retrieve the port number that the server process is lsitening on. When invoked, the server will listen on a random port and output the port number on stderr.
I want to automate the process of logging on to the remote machine, launching the process, and retrieving the port number. I wrote a Python script called "`invokejob.py`" that lives on the remote machine to act as a wrapper that invokes the job and then returns the port number, it looks like this:
import re, subprocess
executable = ... # Name of executable
regex = ... # Regex to extract the port number from the output
p = subprocess.Popen(executable,
bufsize=1, # line buffered
stderr=subprocess.PIPE
)
s = p.stderr.readline()
port = re.match(regex).groups()[0]
print port
If I log in interactively, this script works:
$ ssh remotehost.example.com
Last login: Thu Aug 28 17:31:18 2008 from localhost
$ ./invokejob.py
63409
$ exit
logout
Connection to remotehost.example.com closed.
(Note: successful logout, it did not hang).
However, if I try to invoke it from the command-line, it just hangs:
$ ssh remotehost.example.com invokejob.py
Does anybody know why it hangs in the second case, and what I can do to avoid this?
Note that I need to retrieve the output of the program, so I can't just use the ssh "-f" flag or redirect standard output.
| 0 |
33,476 | 08/28/2008 21:48:57 | 1,432 | 08/15/2008 15:33:54 | 812 | 51 | JSF Lifecycle and Custom components | There are a couple of things that I am having a difficult time understanding with regards to developing custom components in JSF. For the purposes of these questions, you can assume that all of the custom controls are using valuebindings/expressions (not literal bindings). Although I'll gladly upvote those who give good explanations on that as well, since that could be helpful for others (and me down the line).
1. Where do I set the value for the valuebinding? Is this supposed to happen in decode? Or should decode do something else and then have the value set in encodeBegin?
2. Read from the Value Binding - When do I read data from the valuebinding vs. reading it from submittedvalue and putting it into the valuebinding?
3. When are action listeners on forms called in relation to all of this? The JSF lifecycle pages all mention events happening at various steps, but its not completely clear to me when just a simple listener for a commandbutton is being called
I've tried a few combinations, but always end up with hard to find bugs that I believe are coming from basic misunderstandings of the event lifecycle.
Any help would be appreciated... thanks! | java | java-ee | jsf | custom-component | null | null | open | JSF Lifecycle and Custom components
===
There are a couple of things that I am having a difficult time understanding with regards to developing custom components in JSF. For the purposes of these questions, you can assume that all of the custom controls are using valuebindings/expressions (not literal bindings). Although I'll gladly upvote those who give good explanations on that as well, since that could be helpful for others (and me down the line).
1. Where do I set the value for the valuebinding? Is this supposed to happen in decode? Or should decode do something else and then have the value set in encodeBegin?
2. Read from the Value Binding - When do I read data from the valuebinding vs. reading it from submittedvalue and putting it into the valuebinding?
3. When are action listeners on forms called in relation to all of this? The JSF lifecycle pages all mention events happening at various steps, but its not completely clear to me when just a simple listener for a commandbutton is being called
I've tried a few combinations, but always end up with hard to find bugs that I believe are coming from basic misunderstandings of the event lifecycle.
Any help would be appreciated... thanks! | 0 |
33,478 | 08/28/2008 21:49:51 | 223 | 08/03/2008 16:58:07 | 1 | 0 | Can you recommend an ASP.NET control library? | Do you have a good experience with a control library? Something that is kind of robust, well documented, consistent (across different controls) and quite well integrated into the Visual Studio. | asp.net | controls | null | null | null | null | open | Can you recommend an ASP.NET control library?
===
Do you have a good experience with a control library? Something that is kind of robust, well documented, consistent (across different controls) and quite well integrated into the Visual Studio. | 0 |
33,484 | 08/28/2008 21:51:40 | 459 | 08/05/2008 21:54:42 | 197 | 25 | Can I export translations of place names from freebase.com | So I've looked at [this use][1] of the [freebase][2] API and I was really impressed with the translations of the name that it found. IE Rome, Roma, Rom, Rzym, Rooma,로마, 罗马市. This is because I have a database of some 5000+ location names and I would very much like all French, German or Korean translations for these English names.
The problem is I spent about two hours clicking around freebase, and could find no way to get a view of city/location names in a different language mapped to English. So I'd love it if someone who understands what freebase is and how it's organized could get me a link to that view which theoretically I could then export.
Also I just wanted to share this question because I'm totally impressed with freebase and think if people haven't looked at it they should.
[1]: http://mjtemplate.org/examples/freebase/names.html?name=%EB%A1%9C%EB%A7%88&lang=ko
[2]: http://freebase.com | translation | freebase | null | null | null | null | open | Can I export translations of place names from freebase.com
===
So I've looked at [this use][1] of the [freebase][2] API and I was really impressed with the translations of the name that it found. IE Rome, Roma, Rom, Rzym, Rooma,로마, 罗马市. This is because I have a database of some 5000+ location names and I would very much like all French, German or Korean translations for these English names.
The problem is I spent about two hours clicking around freebase, and could find no way to get a view of city/location names in a different language mapped to English. So I'd love it if someone who understands what freebase is and how it's organized could get me a link to that view which theoretically I could then export.
Also I just wanted to share this question because I'm totally impressed with freebase and think if people haven't looked at it they should.
[1]: http://mjtemplate.org/examples/freebase/names.html?name=%EB%A1%9C%EB%A7%88&lang=ko
[2]: http://freebase.com | 0 |
33,485 | 08/28/2008 21:51:58 | 223 | 08/03/2008 16:58:07 | 1 | 0 | ASP.NET vs. Silverlight | I'm starting a new web project and I am considering two presentation frameworks. I am thinking either about ASP.NET MVC or Silverlight. I would tend toward Silverlight since I'm quite experienced .NET developer while I have just a basic knowledge of ASP.NET controls. | asp.net | silverlight | null | null | null | 04/30/2012 13:43:54 | not constructive | ASP.NET vs. Silverlight
===
I'm starting a new web project and I am considering two presentation frameworks. I am thinking either about ASP.NET MVC or Silverlight. I would tend toward Silverlight since I'm quite experienced .NET developer while I have just a basic knowledge of ASP.NET controls. | 4 |
33,495 | 08/28/2008 21:57:24 | 459 | 08/05/2008 21:54:42 | 197 | 25 | Could you make a case for using Berkeley DB XML | I'm trying to read through the documentation on [Berkeley DB XML][1], and I think I could really use a developer's blog post or synopsis of when they had a problem that found the XML layer atop Berkeley DB was the exact prescription for. Maybe I'm not getting it, but it seems like they're both in-process DBs, and ultimately you will parse your XML into objects or data, so why not start by storing your data parsed, rather than as XML?
[1]: http://www.oracle.com/technology/products/berkeley-db/index.html | berkeleydb | berkeleydbxml | null | null | null | null | open | Could you make a case for using Berkeley DB XML
===
I'm trying to read through the documentation on [Berkeley DB XML][1], and I think I could really use a developer's blog post or synopsis of when they had a problem that found the XML layer atop Berkeley DB was the exact prescription for. Maybe I'm not getting it, but it seems like they're both in-process DBs, and ultimately you will parse your XML into objects or data, so why not start by storing your data parsed, rather than as XML?
[1]: http://www.oracle.com/technology/products/berkeley-db/index.html | 0 |
33,496 | 08/28/2008 21:57:25 | 3,262 | 08/27/2008 15:30:29 | 25 | 3 | Recommended reading for new team lead | Our organization is undertaking a re-org to solve our current resource and communications issues. I know, a re-org never solves anything, etc. With that being said, I was tapped to go from an individual contributor (aka tech lead/architect) to leading a team of maintenance developers and analysts.
I'm very aware of all of the stigmas associated with this kind of move: PHB, those that can, do - those that can't, get promoted, just because you are a good coder won't make you a good leader/manager, etc. So I am a little paranoid about making mis-steps.
As a tech lead, I'd like to think that I was conscious of the trends in the industry and took steps to educate myself. I've read all of the main books that are typically mentioned: Peopleware, Mythical Man-month, Code Complete, Pragmatic Programmer, etc.
As I am entering this new phase, I'm feeling a little underprepared and am looking for the equivalent must-read teamlead books. Of course, keep in mind that this is for a maintenance team in a big bureaucratic organization, so my ability to make sweeping changes (ala Peopleware) are a little limited.
What do you recommend?
p.s. I know that this is a little off-topic for the site (not directly programming related and doesn't have a concise answer) but I've seen other threads that are just as OT and, more importantly, I've been impressed with the responsiveness of the community so far.
Thanks,
Matt
| books | management | teamwork | leader | null | 05/08/2012 17:51:11 | not constructive | Recommended reading for new team lead
===
Our organization is undertaking a re-org to solve our current resource and communications issues. I know, a re-org never solves anything, etc. With that being said, I was tapped to go from an individual contributor (aka tech lead/architect) to leading a team of maintenance developers and analysts.
I'm very aware of all of the stigmas associated with this kind of move: PHB, those that can, do - those that can't, get promoted, just because you are a good coder won't make you a good leader/manager, etc. So I am a little paranoid about making mis-steps.
As a tech lead, I'd like to think that I was conscious of the trends in the industry and took steps to educate myself. I've read all of the main books that are typically mentioned: Peopleware, Mythical Man-month, Code Complete, Pragmatic Programmer, etc.
As I am entering this new phase, I'm feeling a little underprepared and am looking for the equivalent must-read teamlead books. Of course, keep in mind that this is for a maintenance team in a big bureaucratic organization, so my ability to make sweeping changes (ala Peopleware) are a little limited.
What do you recommend?
p.s. I know that this is a little off-topic for the site (not directly programming related and doesn't have a concise answer) but I've seen other threads that are just as OT and, more importantly, I've been impressed with the responsiveness of the community so far.
Thanks,
Matt
| 4 |
33,497 | 08/28/2008 21:57:40 | 3,474 | 08/28/2008 17:28:46 | 11 | 5 | How do I recover from an unchecked exception? | Unchecked exceptions are alright if you want to handle every failure the same way, for example by logging it and skipping to the next request, displaying a message to the user and handling the next event, etc. If this is my use case, all I have to do is catch some general exception type at a high level in my system, and handle everything the same way.
But I want to recover from specific problems, and I'm not sure the best way to approach it with unchecked exceptions. Here is a concrete example.
Suppose I have a web application, built using Struts2 and Hibernate. If an exception bubbles up to my "action", I log it, and display a pretty apology to the user. But one of the functions of my web application is creating new user accounts, that require a unique user name. If a user picks a name that already exists, Hibernate throws an `org.hibernate.exception.ConstraintViolationException` (an unchecked exception) down in the guts of my system. I'd really like to recover from this particular problem by asking the user to choose another user name, rather than giving them the same "we logged your problem but for now you're hosed" message.
Here are a few points to consider:
1. There a lot of people creating accounts simultaneously. I don't want to lock the whole user table between a "SELECT" to see if the name exists and an "INSERT" if it doesn't. In the case of relational databases, there might be some tricks to work around this, but what I'm really interested in is the general case where pre-checking for an exception won't work because of a fundamental race condition. Same thing could apply to looking for a file on the file system, etc.
2. Given my CTO's propensity for drive-by management induced by reading technology columns in "Inc.", I need a layer of indirection around the persistence mechanism so that I can throw out Hibernate and use Kodo, or whatever, without changing anything except the lowest layer of persistence code. As a matter of fact, there are several such layers of abstraction in my system. How can I prevent them from leaking in spite of unchecked exceptions?
| exception | java | c# | api | design | null | open | How do I recover from an unchecked exception?
===
Unchecked exceptions are alright if you want to handle every failure the same way, for example by logging it and skipping to the next request, displaying a message to the user and handling the next event, etc. If this is my use case, all I have to do is catch some general exception type at a high level in my system, and handle everything the same way.
But I want to recover from specific problems, and I'm not sure the best way to approach it with unchecked exceptions. Here is a concrete example.
Suppose I have a web application, built using Struts2 and Hibernate. If an exception bubbles up to my "action", I log it, and display a pretty apology to the user. But one of the functions of my web application is creating new user accounts, that require a unique user name. If a user picks a name that already exists, Hibernate throws an `org.hibernate.exception.ConstraintViolationException` (an unchecked exception) down in the guts of my system. I'd really like to recover from this particular problem by asking the user to choose another user name, rather than giving them the same "we logged your problem but for now you're hosed" message.
Here are a few points to consider:
1. There a lot of people creating accounts simultaneously. I don't want to lock the whole user table between a "SELECT" to see if the name exists and an "INSERT" if it doesn't. In the case of relational databases, there might be some tricks to work around this, but what I'm really interested in is the general case where pre-checking for an exception won't work because of a fundamental race condition. Same thing could apply to looking for a file on the file system, etc.
2. Given my CTO's propensity for drive-by management induced by reading technology columns in "Inc.", I need a layer of indirection around the persistence mechanism so that I can throw out Hibernate and use Kodo, or whatever, without changing anything except the lowest layer of persistence code. As a matter of fact, there are several such layers of abstraction in my system. How can I prevent them from leaking in spite of unchecked exceptions?
| 0 |
33,510 | 08/28/2008 22:03:58 | 958 | 08/11/2008 04:41:15 | 209 | 14 | What is the best approach to both modularity and platform independence? | I hope this question does not come off as broad as it may seem at first. I am designing a software application in my `<sarcasm>`*voluminous*`</sarcasm>` spare time. I would like it to be both cross-platform and modular. At this point, because I am still in the planning phase, I can pick practically any language and toolset.
This makes things harder, not easier, because there are seemingly so many ways of accomplishing both of the goals (modularity, platform agnosticism).
My basic premise is that security, data storage, interaction with the operating system, and configuration should all be handled by a "container" application - but most of the other functionality will be supplied through plug-in modules. If I had to describe it at a high level (without completely giving away my idea), it would be a single application that can do many different jobs, all dedicated to the same goal (there are lots of disparate things to do, but all the data has to interact and be highly available).
This is not a new idea, and not particularly exotic. Yet I find myself wrestling with not so much how to do it (I can think of lots of ways), but which method is best.
For example, I know that Eclipse practically embodies what I am describing, but I find Java applications in general (and Eclipse is no exception) to be too large and slow for what I need. Ditto desktop apps written Python and Ruby (which are excellent languages!)
I don't mind recompiling the code base for different platforms as native exectables. Yet, C and C++ have their own set of issues.
As a C# developer, I have a preference for managed code. But I am not at all sold on Mono, yet (I could be convinced).
Does anyone have any ideas/experiences/ specific favorite frameworks to share? | moularity | interpreted | compiled | null | null | null | open | What is the best approach to both modularity and platform independence?
===
I hope this question does not come off as broad as it may seem at first. I am designing a software application in my `<sarcasm>`*voluminous*`</sarcasm>` spare time. I would like it to be both cross-platform and modular. At this point, because I am still in the planning phase, I can pick practically any language and toolset.
This makes things harder, not easier, because there are seemingly so many ways of accomplishing both of the goals (modularity, platform agnosticism).
My basic premise is that security, data storage, interaction with the operating system, and configuration should all be handled by a "container" application - but most of the other functionality will be supplied through plug-in modules. If I had to describe it at a high level (without completely giving away my idea), it would be a single application that can do many different jobs, all dedicated to the same goal (there are lots of disparate things to do, but all the data has to interact and be highly available).
This is not a new idea, and not particularly exotic. Yet I find myself wrestling with not so much how to do it (I can think of lots of ways), but which method is best.
For example, I know that Eclipse practically embodies what I am describing, but I find Java applications in general (and Eclipse is no exception) to be too large and slow for what I need. Ditto desktop apps written Python and Ruby (which are excellent languages!)
I don't mind recompiling the code base for different platforms as native exectables. Yet, C and C++ have their own set of issues.
As a C# developer, I have a preference for managed code. But I am not at all sold on Mono, yet (I could be convinced).
Does anyone have any ideas/experiences/ specific favorite frameworks to share? | 0 |
33,513 | 08/28/2008 22:05:04 | 572 | 08/06/2008 20:56:54 | 2,095 | 174 | Should I use a software hosting solution for my personal projects? | Right now, I keep all of my projects on my laptop. I'm thinking that I shouldn't do this, but instead use a version control system and check them in/out from an external hosting repository (Google Code, SourceForge, etc). I see several benefits here - first, I don't have to worry about losing my code if my computer crashes and burns or my external HDD crashes and burns; second, I can share my code with the world and perhaps even get more help when I need it.
Is this a good idea? If so, what are some other project hosts that I should investigate (other than Google Code and SourceForge)? | version-control | projects | project-hosting | null | null | null | open | Should I use a software hosting solution for my personal projects?
===
Right now, I keep all of my projects on my laptop. I'm thinking that I shouldn't do this, but instead use a version control system and check them in/out from an external hosting repository (Google Code, SourceForge, etc). I see several benefits here - first, I don't have to worry about losing my code if my computer crashes and burns or my external HDD crashes and burns; second, I can share my code with the world and perhaps even get more help when I need it.
Is this a good idea? If so, what are some other project hosts that I should investigate (other than Google Code and SourceForge)? | 0 |
33,529 | 08/28/2008 22:14:16 | 1,842 | 08/18/2008 20:40:25 | 48 | 1 | How exactly do you configure httpOnlyCookies in ASP.NET? | Inspired by this CodingHorror article, "[Protecting Your Cookies: HttpOnly][1]"
How do you set this property? Somewhere in the web config?
[1]: http://www.codinghorror.com/blog/archives/001167.html | asp.net | xss | null | null | null | null | open | How exactly do you configure httpOnlyCookies in ASP.NET?
===
Inspired by this CodingHorror article, "[Protecting Your Cookies: HttpOnly][1]"
How do you set this property? Somewhere in the web config?
[1]: http://www.codinghorror.com/blog/archives/001167.html | 0 |
33,534 | 08/28/2008 22:18:02 | 394 | 08/05/2008 12:36:16 | 301 | 37 | Extending base classes in Python | I'm trying to extend some "base" classes in Python:
class xlist (list):
def len(self):
return len(self)
def add(self, *argv, **argc):
[self.append (x) for x in argv]
return None
class xint (int):
def add(self, value):
self += value
return self
x = xlist([1,2,3])
print x.len() ## >>> 3 ok
print x ## >>> [1,2,3] ok
x.add (4, 5, 6)
print x ## >>> [1,2,3,4,5,6] ok
x = xint(10)
print x ## >>> 10 ok
x.add (2)
print x ## >>> 10 # Not ok (#1)
print type(x) ## >>> <class '__main__.xint'> ok
x += 5
print type(x) ## >>> <type 'int'> # Not ok (#2)
It works fine in the _list_ case because the _append_ method modifies the object "in place", without returning it. But in the _int_ case, the _add_ method doesn't modify the value of the external _x_ variable. I suppose that's fine in the sense that _self_ is a local variable in the _add_ method of the class, but this is preventing me from modifying the initial value assigned to the instance of the class.
Is it possible to extend a class this way or should I define a class property with the base type and map all the needed methods to this property?
| python | null | null | null | null | null | open | Extending base classes in Python
===
I'm trying to extend some "base" classes in Python:
class xlist (list):
def len(self):
return len(self)
def add(self, *argv, **argc):
[self.append (x) for x in argv]
return None
class xint (int):
def add(self, value):
self += value
return self
x = xlist([1,2,3])
print x.len() ## >>> 3 ok
print x ## >>> [1,2,3] ok
x.add (4, 5, 6)
print x ## >>> [1,2,3,4,5,6] ok
x = xint(10)
print x ## >>> 10 ok
x.add (2)
print x ## >>> 10 # Not ok (#1)
print type(x) ## >>> <class '__main__.xint'> ok
x += 5
print type(x) ## >>> <type 'int'> # Not ok (#2)
It works fine in the _list_ case because the _append_ method modifies the object "in place", without returning it. But in the _int_ case, the _add_ method doesn't modify the value of the external _x_ variable. I suppose that's fine in the sense that _self_ is a local variable in the _add_ method of the class, but this is preventing me from modifying the initial value assigned to the instance of the class.
Is it possible to extend a class this way or should I define a class property with the base type and map all the needed methods to this property?
| 0 |
33,545 | 08/28/2008 22:22:55 | 3,125 | 08/26/2008 19:59:36 | 1 | 2 | Converter for VB.NET Code to Linux Platform Exist? | I am interested in moving a number of my projects from Visual Studio and Access/Office Basic with a SQL back-end to the Linux world. Are there any utilities available to move code over to a similar platform on Linux? I apologize in advance for my naiveté, it's been at least 18 years since I last worked in a Unix environment...
Thanks in advance.
Mark Raintree | linux | visual-basic | ms-access | null | null | null | open | Converter for VB.NET Code to Linux Platform Exist?
===
I am interested in moving a number of my projects from Visual Studio and Access/Office Basic with a SQL back-end to the Linux world. Are there any utilities available to move code over to a similar platform on Linux? I apologize in advance for my naiveté, it's been at least 18 years since I last worked in a Unix environment...
Thanks in advance.
Mark Raintree | 0 |
33,550 | 08/28/2008 22:24:57 | 3,508 | 08/28/2008 18:37:07 | 36 | 2 | Best open-source Mathematica equivalent | What is the best open-source equivalent for Mathematica? My requirements are:
1. (most important) Must be a real computer algebra system (CAS). Notably, I don't want Matlab clones -- I want something that can, at least, symbolically differentiate and integrate.
2. Must be programmable. A functional-programming view of the world, like Mathematica's, would be awesome. The basic datatype of M'ica is the list, which is very convenient!
3. (least important) Similar syntax would be nice.
The ability to deal with objects such as groups or graphs would be a great bonus, but my primary emphasis is on the main things Mathematica and Maple do: algebra and calculus, both symbolic and numeric. Also, plotting is not high on my list of requirements, as I'm mostly a terminal and not GUI user. | cas | computeralgebrasystem | null | null | null | null | open | Best open-source Mathematica equivalent
===
What is the best open-source equivalent for Mathematica? My requirements are:
1. (most important) Must be a real computer algebra system (CAS). Notably, I don't want Matlab clones -- I want something that can, at least, symbolically differentiate and integrate.
2. Must be programmable. A functional-programming view of the world, like Mathematica's, would be awesome. The basic datatype of M'ica is the list, which is very convenient!
3. (least important) Similar syntax would be nice.
The ability to deal with objects such as groups or graphs would be a great bonus, but my primary emphasis is on the main things Mathematica and Maple do: algebra and calculus, both symbolic and numeric. Also, plotting is not high on my list of requirements, as I'm mostly a terminal and not GUI user. | 0 |
33,559 | 08/28/2008 22:30:54 | 708 | 08/08/2008 06:10:02 | 450 | 14 | How to get started with PowerShell? | I played with one of the early beta's of Powershell V1, but haven't used it since it went "gold". What is the best way to get started using Powershell? Which version of Powershell should I be using (V1.0 vs 2.0 CTP's)? What are you using Powershell for? Are there any tools that make using Powershell easier (i.e. development environments)? | powershell | null | null | null | null | 07/05/2012 16:00:22 | not constructive | How to get started with PowerShell?
===
I played with one of the early beta's of Powershell V1, but haven't used it since it went "gold". What is the best way to get started using Powershell? Which version of Powershell should I be using (V1.0 vs 2.0 CTP's)? What are you using Powershell for? Are there any tools that make using Powershell easier (i.e. development environments)? | 4 |
33,577 | 08/28/2008 22:44:22 | 814 | 08/09/2008 04:07:15 | 175 | 12 | How do I perform a recursive checkout using ClearCase? | I want to check out all files in all subdirectories of a specified folder. | version-control | clearcase | null | null | null | null | open | How do I perform a recursive checkout using ClearCase?
===
I want to check out all files in all subdirectories of a specified folder. | 0 |
33,590 | 08/28/2008 22:54:37 | 459 | 08/05/2008 21:54:42 | 197 | 26 | Drawing a custom label on a pie chart in Yahoo's Flash Library ASTRA | Has anyone looked at [Yahoo's ASTRA][1]? It's fairly nifty, but I had some issues creating a custom label for a pie chart. They have an example for a line chart, which overrides an axis's series's label renderer. My solution was to override the `myPieChart.dataTipFunction`. For data that looks like:
[ { category: "Groceries", cost: 50 },
{ category: "Transportation", cost: 175} ]
I wrote a function like this:
import com.yahoo.astra.fl.charts.series.*
function (obj:Object, index:int, series:ISeries):String {
return obj[index].category + "\n$" + obj[index].cost;
}
There's ceil(2.718281828459045) problems with this:
1. I'm directly calling the category and cost properties of the data provider. The names are actually configurable when setting up the chart, I'd like to maintain that flexibility.
2. The default data tip would show the category, the cost (without a dollar sign), and the percentage it makes up in the pie chart. So here, I've lost the percentage. I just have no idea which property of what would hold that. It might be part of the series.
3. I probably only need to override the `dataItemRenderer` for the cost part of the series, but I don't know how to access it. The documentation is a little ... lacking there.
Normally I would just look at the default implementation of the `dataTipFunction` but it's all inside a compiled shm that's part of the components distributed from yahoo.
Can anyone help me complete this overridden function with percentage information and the flexibility mentioned in point 1?
[1]: http://developer.yahoo.com/flash/ | flash | actionscript-3 | datatipfunction | null | null | null | open | Drawing a custom label on a pie chart in Yahoo's Flash Library ASTRA
===
Has anyone looked at [Yahoo's ASTRA][1]? It's fairly nifty, but I had some issues creating a custom label for a pie chart. They have an example for a line chart, which overrides an axis's series's label renderer. My solution was to override the `myPieChart.dataTipFunction`. For data that looks like:
[ { category: "Groceries", cost: 50 },
{ category: "Transportation", cost: 175} ]
I wrote a function like this:
import com.yahoo.astra.fl.charts.series.*
function (obj:Object, index:int, series:ISeries):String {
return obj[index].category + "\n$" + obj[index].cost;
}
There's ceil(2.718281828459045) problems with this:
1. I'm directly calling the category and cost properties of the data provider. The names are actually configurable when setting up the chart, I'd like to maintain that flexibility.
2. The default data tip would show the category, the cost (without a dollar sign), and the percentage it makes up in the pie chart. So here, I've lost the percentage. I just have no idea which property of what would hold that. It might be part of the series.
3. I probably only need to override the `dataItemRenderer` for the cost part of the series, but I don't know how to access it. The documentation is a little ... lacking there.
Normally I would just look at the default implementation of the `dataTipFunction` but it's all inside a compiled shm that's part of the components distributed from yahoo.
Can anyone help me complete this overridden function with percentage information and the flexibility mentioned in point 1?
[1]: http://developer.yahoo.com/flash/ | 0 |
33,594 | 08/28/2008 23:00:05 | 3,501 | 08/28/2008 19:56:11 | 1 | 3 | CreateProcessAsUser vs ShellExecute | I need to ShellExecute something as another user, currently I start a helper process with CreateProcessAsUser that calls ShellExecute, but that seems like too much of a hack (Wrong parent process etc.) Is there a better way to do this? | winapi | windows-nt | null | null | null | null | open | CreateProcessAsUser vs ShellExecute
===
I need to ShellExecute something as another user, currently I start a helper process with CreateProcessAsUser that calls ShellExecute, but that seems like too much of a hack (Wrong parent process etc.) Is there a better way to do this? | 0 |
33,619 | 08/28/2008 23:17:43 | 1,602 | 08/17/2008 13:53:31 | 55 | 5 | Concurrent loggins in a web farm | I'm really asking this by proxy, another team at work have had change request from our customer.
The problem is that our customer doesn't want there employees to login with one user more than one at a time. That they are getting locked out and sharing logins.
Since this is on a web farm, what would be the best way to tackle this issue?
Wouldn't caching to the database cause performace issues?
| asp.net | null | null | null | null | null | open | Concurrent loggins in a web farm
===
I'm really asking this by proxy, another team at work have had change request from our customer.
The problem is that our customer doesn't want there employees to login with one user more than one at a time. That they are getting locked out and sharing logins.
Since this is on a web farm, what would be the best way to tackle this issue?
Wouldn't caching to the database cause performace issues?
| 0 |
33,630 | 08/28/2008 23:25:02 | 3,314 | 08/27/2008 20:05:23 | 87 | 8 | What's the maximum amount of RAM I can use in a Windows box? | Obviously, that's 64-bit windows.
Also, what's the maximum amount of memory a single 64-bit process can use?
I was kind of counting on using it all...
(Yes, I know what I'm doing, please don't tell me that if I need that much RAM i must be doing something wrong)
Also, is this the same for a .Net 2.0 process? Or is there a lower limit for .Net? | memory | windows | 64bit | null | null | null | open | What's the maximum amount of RAM I can use in a Windows box?
===
Obviously, that's 64-bit windows.
Also, what's the maximum amount of memory a single 64-bit process can use?
I was kind of counting on using it all...
(Yes, I know what I'm doing, please don't tell me that if I need that much RAM i must be doing something wrong)
Also, is this the same for a .Net 2.0 process? Or is there a lower limit for .Net? | 0 |
33,637 | 08/28/2008 23:29:57 | 1,782 | 08/18/2008 14:30:58 | 1,056 | 71 | How does GPS in a mobile phone work exactly? | I assume it doesn't connect to anything (other than the satelite I guess), is this right? Or it does and has some kind of charge? | gps | mobile-phones | null | null | null | null | open | How does GPS in a mobile phone work exactly?
===
I assume it doesn't connect to anything (other than the satelite I guess), is this right? Or it does and has some kind of charge? | 0 |
33,638 | 08/28/2008 23:30:16 | 2,894 | 08/25/2008 20:06:55 | 154 | 22 | Testing and Managing database versions against code versions | As you develop an application database changes inevitably pop up. The trick I find is keeping your database build in step with your code. In the past I have added a build step that executed SQL scripts against the target database but that is dangerous in so much as you could inadvertanly add bogus data or worse.
My question is what are the tips and tricks to keep the database in step with the code? What about when you roll back the code? Branching? | database | testing | version-control | build-process | null | null | open | Testing and Managing database versions against code versions
===
As you develop an application database changes inevitably pop up. The trick I find is keeping your database build in step with your code. In the past I have added a build step that executed SQL scripts against the target database but that is dangerous in so much as you could inadvertanly add bogus data or worse.
My question is what are the tips and tricks to keep the database in step with the code? What about when you roll back the code? Branching? | 0 |
33,643 | 08/28/2008 23:32:26 | 3,488 | 08/28/2008 18:28:18 | 31 | 8 | Diagramming Software for a Developer/Designer | For a long time I've been looking for a good diagramming/vector-based drawing program that meets my needs as a developer. I'd like to:
1. Draw database diagrams
1. Draw flow charts
1. Draw object-modeling diagrams (UML being the standard)
1. Draw other free-form diagrams (basically boxes & arrows with the occasional clipart)
1. Draw mockups of user interfaces and web pages
Basically I need a good vector graphic program (with decent grouping, connecting lines, and ideally auto-routing). I'd prefer a diagramming tool that can also be used for drawing (for the UI mockups) rather than a drawing tool that can also be used for diagrams.
I've tried Visio on several occasions, and every time I've been disappointed. The interface always seems to get in my way at some point. It's pretty close to what I want, and the latest version (I got the trail from MS) seems to be better than previous ones in terms of usability, but I really don't want to plunk down that sort of cash for a mediocre product.
I've tried Dia and Inkscape, and while initially promising and with the right price tag, I found both of them to be lacking in several ways (including some recurring bugs).
I've toyed with getting Adobe Illustrator, but I've never used it before, and I have a feeling that it wouldn't handle the diagramming aspect very well, and I don't want to buy a copy just to find out it doesn't meet my needs.
So far, the product that I've had the most success with is, sadly, OpenOffice Draw. It's free of course (which lowers my expectations and thus improves my view of it) and its usability is pretty good, but in the end I'd like something more suited to diagramming.
I'm willing to spend real money (in the $500-$1K range) for a really good piece of software if it does everything I want it to. The front runner is of course Visio but I'm hoping for more. Does anybody have any recommendations? | design | user-interface | diagram | null | null | null | open | Diagramming Software for a Developer/Designer
===
For a long time I've been looking for a good diagramming/vector-based drawing program that meets my needs as a developer. I'd like to:
1. Draw database diagrams
1. Draw flow charts
1. Draw object-modeling diagrams (UML being the standard)
1. Draw other free-form diagrams (basically boxes & arrows with the occasional clipart)
1. Draw mockups of user interfaces and web pages
Basically I need a good vector graphic program (with decent grouping, connecting lines, and ideally auto-routing). I'd prefer a diagramming tool that can also be used for drawing (for the UI mockups) rather than a drawing tool that can also be used for diagrams.
I've tried Visio on several occasions, and every time I've been disappointed. The interface always seems to get in my way at some point. It's pretty close to what I want, and the latest version (I got the trail from MS) seems to be better than previous ones in terms of usability, but I really don't want to plunk down that sort of cash for a mediocre product.
I've tried Dia and Inkscape, and while initially promising and with the right price tag, I found both of them to be lacking in several ways (including some recurring bugs).
I've toyed with getting Adobe Illustrator, but I've never used it before, and I have a feeling that it wouldn't handle the diagramming aspect very well, and I don't want to buy a copy just to find out it doesn't meet my needs.
So far, the product that I've had the most success with is, sadly, OpenOffice Draw. It's free of course (which lowers my expectations and thus improves my view of it) and its usability is pretty good, but in the end I'd like something more suited to diagramming.
I'm willing to spend real money (in the $500-$1K range) for a really good piece of software if it does everything I want it to. The front runner is of course Visio but I'm hoping for more. Does anybody have any recommendations? | 0 |
33,664 | 08/28/2008 23:42:14 | 637 | 08/07/2008 12:33:15 | 270 | 2 | Best Practices for Managing Linq to SQL Dbml Files? | I've just started using Linq to SQL, and I'm wondering if anyone has any best practices they can share for managing dbml files.
- How do you keep them up to date with the database?
- Do you have a single dbml file for the entire database, or is it split into multiple logical units?
- How does managing this file work in a team environment?
Any other tips and tricks welcome. | sql | linq | dbml | null | null | null | open | Best Practices for Managing Linq to SQL Dbml Files?
===
I've just started using Linq to SQL, and I'm wondering if anyone has any best practices they can share for managing dbml files.
- How do you keep them up to date with the database?
- Do you have a single dbml file for the entire database, or is it split into multiple logical units?
- How does managing this file work in a team environment?
Any other tips and tricks welcome. | 0 |
33,685 | 08/28/2008 23:59:43 | 1,950 | 08/19/2008 14:57:18 | 91 | 6 | SQL 2000 'TRY CATCH like' Error Handling | This is a sql 2000 database that I am working with.
I have a what I call a staging table that is a raw data dump of data, so everything is ntext or nvarchar(255).
I need to cast/convert all of this data into the appropriate data types (ie int, decimal, nvarchar, etc.)
The way I was going to do this was to iterate through all records using a while loop and attempt a CAST on each column on a single record during each iteration, after I visit a particular record I flag it as processed (bit field).
But how can I log the error when/if it occurs but allow the while loop to continue.
At first I implemented this using a TRY CATCH in a local SQL 2005 instance and all was working well, but i learned today that the production database is a SQL 2000 database so I have to conform. | sql-server | null | null | null | null | null | open | SQL 2000 'TRY CATCH like' Error Handling
===
This is a sql 2000 database that I am working with.
I have a what I call a staging table that is a raw data dump of data, so everything is ntext or nvarchar(255).
I need to cast/convert all of this data into the appropriate data types (ie int, decimal, nvarchar, etc.)
The way I was going to do this was to iterate through all records using a while loop and attempt a CAST on each column on a single record during each iteration, after I visit a particular record I flag it as processed (bit field).
But how can I log the error when/if it occurs but allow the while loop to continue.
At first I implemented this using a TRY CATCH in a local SQL 2005 instance and all was working well, but i learned today that the production database is a SQL 2000 database so I have to conform. | 0 |
33,696 | 08/29/2008 00:19:55 | 3,407 | 08/28/2008 13:19:46 | 1 | 2 | Cocoa tips for PHP developers? | I'm a PHP developer, and I use the MVC pattern, and object oriented code. I really want to write applications for the iPhone, but to do that I need to know Cocoa, but to do that I need to know Objective-C 2.0, but to do that I need to know C, and to do that I need to know about compiled languages (versus interpreted).
Where should I begin?
Do I really need to begin with plan old "C", as Joel would recommend?
Caveat: I like to produce working widgets, not elegant theories. | php | c | objectivec | cocoa | null | null | open | Cocoa tips for PHP developers?
===
I'm a PHP developer, and I use the MVC pattern, and object oriented code. I really want to write applications for the iPhone, but to do that I need to know Cocoa, but to do that I need to know Objective-C 2.0, but to do that I need to know C, and to do that I need to know about compiled languages (versus interpreted).
Where should I begin?
Do I really need to begin with plan old "C", as Joel would recommend?
Caveat: I like to produce working widgets, not elegant theories. | 0 |
33,703 | 08/29/2008 00:30:56 | 3,259 | 08/27/2008 15:24:02 | 33 | 4 | How can you make a .net windows forms project look fresh? | I'm working on a visual studio 2005 vb.net windows forms project that's been around for several years. It's full of default textboxes, labels, dropdowns, datagrids, datetime pickers -- all the standard stuff. The end result is a very gray, old-looking project.
What would be the best approach to making this project look fresh and snazzy? I'd rather not rewrite the entire solution with all brand new forms objects, but would that be avoidable? | .net | visual-studio | winforms | gui | null | null | open | How can you make a .net windows forms project look fresh?
===
I'm working on a visual studio 2005 vb.net windows forms project that's been around for several years. It's full of default textboxes, labels, dropdowns, datagrids, datetime pickers -- all the standard stuff. The end result is a very gray, old-looking project.
What would be the best approach to making this project look fresh and snazzy? I'd rather not rewrite the entire solution with all brand new forms objects, but would that be avoidable? | 0 |
33,708 | 08/29/2008 00:37:55 | 61 | 08/01/2008 14:21:00 | 817 | 65 | My (Java/Swing) MouseListener isn't listening, help me figure out why. | So I've got a `JPanel` implementing `MouseListener` and `MouseMotionListener`:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class DisplayArea extends JPanel implements MouseListener, MouseMotionListener {
public DisplayArea(Rectangle bounds, Display display) {
setLayout(null);
setBounds(bounds);
setOpaque(false);
setPreferredSize(new Dimension(bounds.width, bounds.height));
this.display = display;
}
public void paintComponent(Graphics g) {
Graphics2D g2 = (Graphics2D)g;
if (display.getControlPanel().Antialiasing()) {
g2.addRenderingHints(new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON));
}
g2.setColor(Color.white);
g2.fillRect(0, 0, getWidth(), getHeight());
}
public void mousePressed(MouseEvent event) {
System.out.println("mousePressed()");
mx1 = event.getX();
my1 = event.getY();
}
public void mouseReleased(MouseEvent event) {
System.out.println("mouseReleased()");
mx2 = event.getX();
my2 = event.getY();
int mode = display.getControlPanel().Mode();
switch (mode) {
case ControlPanel.LINE:
System.out.println("Line from " + mx1 + ", " + my1 + " to " + mx2 + ", " + my2 + ".");
}
}
public void mouseEntered(MouseEvent event) {
System.out.println("mouseEntered()");
}
public void mouseExited(MouseEvent event) {
System.out.println("mouseExited()");
}
public void mouseClicked(MouseEvent event) {
System.out.println("mouseClicked()");
}
public void mouseMoved(MouseEvent event) {
System.out.println("mouseMoved()");
}
public void mouseDragged(MouseEvent event) {
System.out.println("mouseDragged()");
}
private Display display = null;
private int mx1 = -1;
private int my1 = -1;
private int mx2 = -1;
private int my2 = -1;
}
The trouble is, none of these mouse functions are ever called. `DisplayArea` is created like this:
da = new DisplayArea(new Rectangle(CONTROL_WIDTH, 0, DISPLAY_WIDTH, DISPLAY_HEIGHT), this);
I am not really a Java programmer (this is part of an assignment), but I can't see anything glaringly obvious. Can someone smarter than I see anything?
Thanks in advance. | java | swing | null | null | null | null | open | My (Java/Swing) MouseListener isn't listening, help me figure out why.
===
So I've got a `JPanel` implementing `MouseListener` and `MouseMotionListener`:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class DisplayArea extends JPanel implements MouseListener, MouseMotionListener {
public DisplayArea(Rectangle bounds, Display display) {
setLayout(null);
setBounds(bounds);
setOpaque(false);
setPreferredSize(new Dimension(bounds.width, bounds.height));
this.display = display;
}
public void paintComponent(Graphics g) {
Graphics2D g2 = (Graphics2D)g;
if (display.getControlPanel().Antialiasing()) {
g2.addRenderingHints(new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON));
}
g2.setColor(Color.white);
g2.fillRect(0, 0, getWidth(), getHeight());
}
public void mousePressed(MouseEvent event) {
System.out.println("mousePressed()");
mx1 = event.getX();
my1 = event.getY();
}
public void mouseReleased(MouseEvent event) {
System.out.println("mouseReleased()");
mx2 = event.getX();
my2 = event.getY();
int mode = display.getControlPanel().Mode();
switch (mode) {
case ControlPanel.LINE:
System.out.println("Line from " + mx1 + ", " + my1 + " to " + mx2 + ", " + my2 + ".");
}
}
public void mouseEntered(MouseEvent event) {
System.out.println("mouseEntered()");
}
public void mouseExited(MouseEvent event) {
System.out.println("mouseExited()");
}
public void mouseClicked(MouseEvent event) {
System.out.println("mouseClicked()");
}
public void mouseMoved(MouseEvent event) {
System.out.println("mouseMoved()");
}
public void mouseDragged(MouseEvent event) {
System.out.println("mouseDragged()");
}
private Display display = null;
private int mx1 = -1;
private int my1 = -1;
private int mx2 = -1;
private int my2 = -1;
}
The trouble is, none of these mouse functions are ever called. `DisplayArea` is created like this:
da = new DisplayArea(new Rectangle(CONTROL_WIDTH, 0, DISPLAY_WIDTH, DISPLAY_HEIGHT), this);
I am not really a Java programmer (this is part of an assignment), but I can't see anything glaringly obvious. Can someone smarter than I see anything?
Thanks in advance. | 0 |
33,720 | 08/29/2008 00:44:14 | 3,467 | 08/28/2008 17:01:43 | 71 | 7 | Change templates in XCode | How would I change the initial templates created by XCode when creating a new Cocoa Class.
I am referring to the comments and class name created when using XCode's new class wizard. | cocoa | xcode | templates | objective-c | null | null | open | Change templates in XCode
===
How would I change the initial templates created by XCode when creating a new Cocoa Class.
I am referring to the comments and class name created when using XCode's new class wizard. | 0 |
33,723 | 08/29/2008 00:45:43 | 1,388 | 08/15/2008 00:32:30 | 1 | 1 | What are the standard pin mappings for sound cards? | I've got a Sound Blaster Audigy 2 ZS (Part # SB0350) that I'm installing as part of a computer that I'm building. There's a nifty headphone and speaker jack pair mounted on the case which I would like to connect, and I'm not sure if it's possible.
Have:
4 pins to connect: Mic-In, L-Out, R-Out, Ground. Pretty intuitive.
The following outputs on the sound card:
TAD, CD_IN, AUX_IN, CD_SPDIF, and an unlabled white 10-pin connector.
Does anyone know the pin values of TAD, CD_IN, ..., or the magical white connector? Or, perhaps, access to the manual of this card? | electronics | soundcard | pin | null | null | null | open | What are the standard pin mappings for sound cards?
===
I've got a Sound Blaster Audigy 2 ZS (Part # SB0350) that I'm installing as part of a computer that I'm building. There's a nifty headphone and speaker jack pair mounted on the case which I would like to connect, and I'm not sure if it's possible.
Have:
4 pins to connect: Mic-In, L-Out, R-Out, Ground. Pretty intuitive.
The following outputs on the sound card:
TAD, CD_IN, AUX_IN, CD_SPDIF, and an unlabled white 10-pin connector.
Does anyone know the pin values of TAD, CD_IN, ..., or the magical white connector? Or, perhaps, access to the manual of this card? | 0 |
33,727 | 08/29/2008 00:54:44 | 3,314 | 08/27/2008 20:05:23 | 94 | 9 | CLR Profiler - Attaching to existing process | I would like to use something like CLR Profiles on .Net 2.0 to see what objects are taking more space in the heap at any given time (of an ASP.Net worker process).
However, the CLR Profiler only lets me START an app, not attach to an existing one. I assume this is because it tracks allocations and GC too, but i'm not very interested in that. I would just like something that takes a snapshot of the current state of the heap, and shows me what is there and how many objects of each kind there are, and how many bytes total are being used by each object type.
Any ideas? | memory | .net-2.0 | clr | profiler | null | null | open | CLR Profiler - Attaching to existing process
===
I would like to use something like CLR Profiles on .Net 2.0 to see what objects are taking more space in the heap at any given time (of an ASP.Net worker process).
However, the CLR Profiler only lets me START an app, not attach to an existing one. I assume this is because it tracks allocations and GC too, but i'm not very interested in that. I would just like something that takes a snapshot of the current state of the heap, and shows me what is there and how many objects of each kind there are, and how many bytes total are being used by each object type.
Any ideas? | 0 |
33,728 | 08/29/2008 00:56:33 | 1,612 | 08/17/2008 14:52:15 | 300 | 26 | How should I build a good (web) API | I'm going to build an API for a web app and I'm interested in what people can suggest as good practices.
I'm already planning to make it versioned (version 1 can only control certain aspects of the system, version 2 could control more, but this may need a change in the way authentication is performed that would be incompatible with version 1), and the authentication will be distinct from the standard username/password people use to log in (if someone does use a malicious tool it won't open them up to full impersonation, just whatever the api allows).
Does anyone have further ideas, or examples of sites with particularly good APIs you have used? | api | null | null | null | null | null | open | How should I build a good (web) API
===
I'm going to build an API for a web app and I'm interested in what people can suggest as good practices.
I'm already planning to make it versioned (version 1 can only control certain aspects of the system, version 2 could control more, but this may need a change in the way authentication is performed that would be incompatible with version 1), and the authentication will be distinct from the standard username/password people use to log in (if someone does use a malicious tool it won't open them up to full impersonation, just whatever the api allows).
Does anyone have further ideas, or examples of sites with particularly good APIs you have used? | 0 |
33,744 | 08/29/2008 01:15:03 | 2,948 | 08/26/2008 08:39:22 | 229 | 7 | Is Scala the next big thing? | I've been learning <a href="http://scala-lang.org/">Scala</a> recently, and it seems like a very very promising general purpose programming language. It has all the good functional programming features, terse syntax, it runs on JVM and interoperates with Java.
[Some](http://blog.locut.us/2007/12/18/scala-the-best-of-both-ruby-and-java/) [think](http://dlweinreb.wordpress.com/2007/12/25/the-scala-programming-language-my-first-impressions/) it's the Next Big Language. [Others](http://www.weiqigao.com/blog/2008/03/24/scala_still_uncomfortable_after_five_years.html) [aren't](http://stuffthathappens.com/blog/2008/01/02/scala-will-do/) so sure.
Why do you think it is/isn't going to be the next big thing?
| scala | programming-languages | functional-programming | web-development | jvm | 10/05/2011 05:50:44 | not constructive | Is Scala the next big thing?
===
I've been learning <a href="http://scala-lang.org/">Scala</a> recently, and it seems like a very very promising general purpose programming language. It has all the good functional programming features, terse syntax, it runs on JVM and interoperates with Java.
[Some](http://blog.locut.us/2007/12/18/scala-the-best-of-both-ruby-and-java/) [think](http://dlweinreb.wordpress.com/2007/12/25/the-scala-programming-language-my-first-impressions/) it's the Next Big Language. [Others](http://www.weiqigao.com/blog/2008/03/24/scala_still_uncomfortable_after_five_years.html) [aren't](http://stuffthathappens.com/blog/2008/01/02/scala-will-do/) so sure.
Why do you think it is/isn't going to be the next big thing?
| 4 |
33,745 | 08/29/2008 01:15:24 | 255 | 08/04/2008 05:46:02 | 129 | 4 | Wordpress Wiki Integration | I am running a WordPress blog right now on my own LAMP hosting. I really want to add some basic Wiki functionality to my site. Ideally just the ability to have some posts or pages that users with certain roles / capabilities could edit. The latest version of WordPress has edit revisions, so it would seem like I could leverage that.
I looked at the basic [roles and capabilities][1], and the edit_others_posts capability of the Editor role seems like it would be a good option, but it allows editing of ***ALL*** posts. What I want is the ability for **some** users to edit **some** pages /[ posts that *they don't own*. Maybe a flag on certain pages / posts that allows others to edit them.
On the other end of the spectrum I would be happy if I could install a Wiki and share the login credentials between WordPress and the Wiki. I hacked MediaWiki a while ago to share logins with another site (in Classic ASP) via session cookies and it was a pain to do and even worse to maintain. Ideally I would like to find a plug-in or someone who knows a more elegant solution.
[1]: http://codex.wordpress.org/Roles_and_Capabilities | wordpress | php | mysql | wiki | null | null | open | Wordpress Wiki Integration
===
I am running a WordPress blog right now on my own LAMP hosting. I really want to add some basic Wiki functionality to my site. Ideally just the ability to have some posts or pages that users with certain roles / capabilities could edit. The latest version of WordPress has edit revisions, so it would seem like I could leverage that.
I looked at the basic [roles and capabilities][1], and the edit_others_posts capability of the Editor role seems like it would be a good option, but it allows editing of ***ALL*** posts. What I want is the ability for **some** users to edit **some** pages /[ posts that *they don't own*. Maybe a flag on certain pages / posts that allows others to edit them.
On the other end of the spectrum I would be happy if I could install a Wiki and share the login credentials between WordPress and the Wiki. I hacked MediaWiki a while ago to share logins with another site (in Classic ASP) via session cookies and it was a pain to do and even worse to maintain. Ideally I would like to find a plug-in or someone who knows a more elegant solution.
[1]: http://codex.wordpress.org/Roles_and_Capabilities | 0 |
33,746 | 08/29/2008 01:15:52 | 3,340 | 08/28/2008 02:03:37 | 1 | 1 | XML attribute vs XML element | At work we are being asked to create XML files to pass data to another offline application that will then create a second XML file to pass back in order to update some of our data. During the process we have been discussing with the team of the other application about the structure of the XML file.
The sample I came up with is essentially something like:
<INVENTORY>
<ITEM serialNumber="something" location="something" barcode="something">
<TYPE modelNumber="something" vendor="something"/>
</ITEM>
</INVENTORY>
The other team said that this was not industry standard and that attributes should only be used for meta data. They suggested:
<INVENTORY>
<ITEM>
<SERIALNUMBER>something</SERIALNUMBER>
<LOCATION>something</LOCATION>
<BARCODE>something</BARCODE>
<TYPE>
<MODELNUMBER>something</MODELNUMBER>
<VENDOR>something</VENDOR>
</TYPE>
</ITEM>
</INVENTORY>
The reason I suggested the first is that the size of the file created is much smaller. There will be roughly 80000 items that will be in the file during transfer. There suggestion in reality turns out to be three times larger than the one I suggested. I searched for the mysterious "Industry Standard" that was mentioned but the closest I could find was the XML attributes should only be used for meta data, but said the debate was about what was actually meta data.
After the long winded explanation (sorry) how do you determine what is meta data, and when designing the structure of an XML document how should you decide when to use an attribute or an element?
| xml | xml-schema | null | null | null | null | open | XML attribute vs XML element
===
At work we are being asked to create XML files to pass data to another offline application that will then create a second XML file to pass back in order to update some of our data. During the process we have been discussing with the team of the other application about the structure of the XML file.
The sample I came up with is essentially something like:
<INVENTORY>
<ITEM serialNumber="something" location="something" barcode="something">
<TYPE modelNumber="something" vendor="something"/>
</ITEM>
</INVENTORY>
The other team said that this was not industry standard and that attributes should only be used for meta data. They suggested:
<INVENTORY>
<ITEM>
<SERIALNUMBER>something</SERIALNUMBER>
<LOCATION>something</LOCATION>
<BARCODE>something</BARCODE>
<TYPE>
<MODELNUMBER>something</MODELNUMBER>
<VENDOR>something</VENDOR>
</TYPE>
</ITEM>
</INVENTORY>
The reason I suggested the first is that the size of the file created is much smaller. There will be roughly 80000 items that will be in the file during transfer. There suggestion in reality turns out to be three times larger than the one I suggested. I searched for the mysterious "Industry Standard" that was mentioned but the closest I could find was the XML attributes should only be used for meta data, but said the debate was about what was actually meta data.
After the long winded explanation (sorry) how do you determine what is meta data, and when designing the structure of an XML document how should you decide when to use an attribute or an element?
| 0 |
33,751 | 08/29/2008 01:25:43 | 338 | 08/04/2008 18:34:44 | 649 | 49 | How do I add a MIME type to .htaccess? | I would like to add the following MIME type to a site run by Apache:
<mime-mapping>
<extension>jnlp</extension>
<mime-type>application/x-java-jnlp-file</mime-type>
</mime-mapping>
(That is the Tomcat format.)
I'm on a shared host, so I can only create an .htaccess file. Would someone please specify the complete contents of such a file? | java | apache | mime | .htaccess | jnlp | null | open | How do I add a MIME type to .htaccess?
===
I would like to add the following MIME type to a site run by Apache:
<mime-mapping>
<extension>jnlp</extension>
<mime-type>application/x-java-jnlp-file</mime-type>
</mime-mapping>
(That is the Tomcat format.)
I'm on a shared host, so I can only create an .htaccess file. Would someone please specify the complete contents of such a file? | 0 |
33,761 | 08/29/2008 01:31:27 | 2,049 | 08/20/2008 00:32:30 | 1 | 0 | How can I retrieve a list of parameters from a stored procedure in SQL Server | Using C# and System.Data.SqlClient, is there a way to retrieve a list of parameters that belong to a stored procedure on a SQL Server before I actually execute it?
I have an a "multi-environment" scenario where there are multiple versions of the same database schema. Examples of environments might be "Development", "Staging", & "Production". "Development" is going to have one version of the stored procedure and "Staging" is going to have another.
All I want to do is validate that a parameter is going to be there before passing it a value and calling the stored procedure. Avoiding that SqlException rather than having to catch it is a plus for me.
Joshua | c# | sql-server | null | null | null | null | open | How can I retrieve a list of parameters from a stored procedure in SQL Server
===
Using C# and System.Data.SqlClient, is there a way to retrieve a list of parameters that belong to a stored procedure on a SQL Server before I actually execute it?
I have an a "multi-environment" scenario where there are multiple versions of the same database schema. Examples of environments might be "Development", "Staging", & "Production". "Development" is going to have one version of the stored procedure and "Staging" is going to have another.
All I want to do is validate that a parameter is going to be there before passing it a value and calling the stored procedure. Avoiding that SqlException rather than having to catch it is a plus for me.
Joshua | 0 |
33,768 | 08/29/2008 01:34:14 | 3,435 | 08/28/2008 15:10:35 | 6 | 3 | Any advice for speeding up the compile time in Flex Builder 3? | I run Flex Builder 3 on a mac and as my project grows - the compile time gets longer and longer and longer. I am using some SWC's and there is a fair amount of code but it shouldn't take minutes to build and crash daily should it? | flex | flexbuilder | null | null | null | null | open | Any advice for speeding up the compile time in Flex Builder 3?
===
I run Flex Builder 3 on a mac and as my project grows - the compile time gets longer and longer and longer. I am using some SWC's and there is a fair amount of code but it shouldn't take minutes to build and crash daily should it? | 0 |
33,778 | 08/29/2008 01:40:00 | 1,463 | 08/15/2008 17:26:44 | 257 | 17 | How do I delete 1 file from a revision in SVN? | One of my co-workers checked in a some files in SVN and one of the files has a password in it. The password has been removed from the file and a new version checked in but the password is obviously still in the repository if we look at the revision history and go to that revision. (We're using TortoiseSVN as the client.)
So how do I securely delete that single file from the repository in SVN? | svn | null | null | null | null | null | open | How do I delete 1 file from a revision in SVN?
===
One of my co-workers checked in a some files in SVN and one of the files has a password in it. The password has been removed from the file and a new version checked in but the password is obviously still in the repository if we look at the revision history and go to that revision. (We're using TortoiseSVN as the client.)
So how do I securely delete that single file from the repository in SVN? | 0 |
33,779 | 08/29/2008 01:40:17 | 1,635 | 08/17/2008 17:33:54 | 83 | 12 | Scheduled Task Cmdlet | Does anyone know of a powershell cmdlet out there for automating task scheduler? | powershell | schedule | null | null | null | null | open | Scheduled Task Cmdlet
===
Does anyone know of a powershell cmdlet out there for automating task scheduler? | 0 |
33,790 | 08/29/2008 01:44:54 | 338 | 08/04/2008 18:34:44 | 651 | 49 | How can I use `scp` to deploy a website's `.htaccess` file? | I am currently using the following command to upload my site content:
scp -r web/* [email protected]:site.com/
This works great except that the .htaccess file is not sent. Presumably, this is because it's hidden.
I have tried adding a second line to send the file explicitely:
scp -r web/.htaccess [email protected]:site.com/.htaccess
This works great except now I have to enter my password twice.
Any thoughts on how to make this deploy with only 1 or 0 entries of my password? | deployment | .htaccess | scp | shared-host | null | null | open | How can I use `scp` to deploy a website's `.htaccess` file?
===
I am currently using the following command to upload my site content:
scp -r web/* [email protected]:site.com/
This works great except that the .htaccess file is not sent. Presumably, this is because it's hidden.
I have tried adding a second line to send the file explicitely:
scp -r web/.htaccess [email protected]:site.com/.htaccess
This works great except now I have to enter my password twice.
Any thoughts on how to make this deploy with only 1 or 0 entries of my password? | 0 |
33,813 | 08/29/2008 02:03:34 | 3,002 | 08/26/2008 11:21:07 | 138 | 10 | What is your favorite feature of textmate? | I noticed that many people here use [textmate][1] for coding on OSX. I've recently started using it, and although I like its minimalistic interface, it makes it harder to stumble upon cool features if you don't know what you're looking for.
So, what feature have you found most helpful for coding (mainly in Python)? Are there any third-party bundles I should know about, besides what's included?
[1]: http://macromates.com/ | text-editor | mac | osx | textmate | python | 03/06/2012 03:03:17 | not a real question | What is your favorite feature of textmate?
===
I noticed that many people here use [textmate][1] for coding on OSX. I've recently started using it, and although I like its minimalistic interface, it makes it harder to stumble upon cool features if you don't know what you're looking for.
So, what feature have you found most helpful for coding (mainly in Python)? Are there any third-party bundles I should know about, besides what's included?
[1]: http://macromates.com/ | 1 |
33,814 | 08/29/2008 02:03:39 | 1,569 | 08/16/2008 18:38:06 | 135 | 11 | How to determine if an html tag splits across multiple lines | I'm writing a php script that involves scraping web pages. Currently, the script analyzes the page line by line, but it breaks if there is a tag that spans multiple lines, like
<img src="example.jpg"
alt="example">
If worse comes to worse, I could possibly preprocess the page by removing all line breaks, then re-inserting them at the closest >, but this seems like a kludge.
Ideally I'd be able to detect a tag that spans lines, conjoin only those to lines, and continue processing. So what's the best method to detect this? | php | html | scripting | null | null | null | open | How to determine if an html tag splits across multiple lines
===
I'm writing a php script that involves scraping web pages. Currently, the script analyzes the page line by line, but it breaks if there is a tag that spans multiple lines, like
<img src="example.jpg"
alt="example">
If worse comes to worse, I could possibly preprocess the page by removing all line breaks, then re-inserting them at the closest >, but this seems like a kludge.
Ideally I'd be able to detect a tag that spans lines, conjoin only those to lines, and continue processing. So what's the best method to detect this? | 0 |
33,822 | 08/29/2008 02:09:55 | 3,030 | 08/26/2008 12:41:34 | 92 | 7 | Any way to write a Windows .bat file to kill processes? | So every time I turn on my company owned development machine I have to kill 10+ processes using the task manager or any other process management app just to get decent performance out of my IDE. Yes, these are processes from programs that my company installs on my machine for security and compliance. What I'd like to do is have a .bat file or script of some kind that I can just fire off and kill the processes in question.
Anybody already know how to do this? | performance | batch | processes | null | null | null | open | Any way to write a Windows .bat file to kill processes?
===
So every time I turn on my company owned development machine I have to kill 10+ processes using the task manager or any other process management app just to get decent performance out of my IDE. Yes, these are processes from programs that my company installs on my machine for security and compliance. What I'd like to do is have a .bat file or script of some kind that I can just fire off and kill the processes in question.
Anybody already know how to do this? | 0 |
33,829 | 08/29/2008 02:13:17 | 338 | 08/04/2008 18:34:44 | 653 | 50 | How do I detect if a function is available during JNLP execution? | I have an application which *really* should be installed, but does work fine when deployed using JNLP.
However, it would seem that some Java functions such as `Runtime.exec` don't work using the default security options.
I would like to therefore [disable](http://www.joelonsoftware.com/items/2008/07/01.html) UI functionality that relies upon such functions. So my question is, how do I detect at runtime whether certain functions are available or not?
The case study, here of course, is `Runtime.exec`. | java | security | deployment | permissions | jnlp | null | open | How do I detect if a function is available during JNLP execution?
===
I have an application which *really* should be installed, but does work fine when deployed using JNLP.
However, it would seem that some Java functions such as `Runtime.exec` don't work using the default security options.
I would like to therefore [disable](http://www.joelonsoftware.com/items/2008/07/01.html) UI functionality that relies upon such functions. So my question is, how do I detect at runtime whether certain functions are available or not?
The case study, here of course, is `Runtime.exec`. | 0 |
33,836 | 08/29/2008 02:17:06 | 1,463 | 08/15/2008 17:26:44 | 282 | 19 | How can I find the revision history of the file that was deleted and then resubmitted to SVN? | This is a follow on question to "[How do I delete 1 file from a revision in SVN?][1]" but because it probably has a very different answer and I believe that others would benefit from knowing the answer. (I don't know the answer yet.)
The previous question was answered and I discovered that that it is not possible to remove a revision from SVN. The second best solution was to remove the file from SVN, commit and then add the file back and commit again.
I now want to make sure that the original file's revision history has gone. So I am hoping that the answer to the question "How can I find the revision history of the file that was deleted and then resubmitted to SVN?" is that you can't.
[1]: http://stackoverflow.com/questions/33778/how-do-i-delete-1-file-from-a-revision-in-svn | svn | null | null | null | null | null | open | How can I find the revision history of the file that was deleted and then resubmitted to SVN?
===
This is a follow on question to "[How do I delete 1 file from a revision in SVN?][1]" but because it probably has a very different answer and I believe that others would benefit from knowing the answer. (I don't know the answer yet.)
The previous question was answered and I discovered that that it is not possible to remove a revision from SVN. The second best solution was to remove the file from SVN, commit and then add the file back and commit again.
I now want to make sure that the original file's revision history has gone. So I am hoping that the answer to the question "How can I find the revision history of the file that was deleted and then resubmitted to SVN?" is that you can't.
[1]: http://stackoverflow.com/questions/33778/how-do-i-delete-1-file-from-a-revision-in-svn | 0 |
33,837 | 08/29/2008 02:17:57 | 364 | 08/05/2008 05:33:41 | 376 | 22 | IE CSS Bug - How do I maintain a position:absolute when the viewport resizes due to javascript content | I have a page where there is a column and a content div, somewhat like this:
<div id="container">
<div id="content">blahblahblah</div>
<div id="column"> </div>
</div>
With some styling I have an image that is split between the column and the content but needs to maintain the same vertical positioning so that it lines up.
Styling is similar to this:
#column
{
width:150px;
height:450px;
left:-150px;
bottom:-140px;
background:url(../images/image.png) no-repeat;
position:absolute;
z-index:1;
}
#container
{
background:transparent url(../images/container.png) no-repeat scroll left bottom;
position:relative;
width:100px;
}
This works great when content in #content is dynamically loaded before rendering. This also works great in firefox always. However, in IE6 and IE7 if I use javascript to change the content (and this height) of #content, the images no longer line up (#column doesn't move). If I use IE Developer Bar to just update the div (say add position:absolute manually) the image jumps down and lines up again.
Is there something I am missing here?
| internet-explorer-6 | internet-explorer-7 | css | null | null | null | open | IE CSS Bug - How do I maintain a position:absolute when the viewport resizes due to javascript content
===
I have a page where there is a column and a content div, somewhat like this:
<div id="container">
<div id="content">blahblahblah</div>
<div id="column"> </div>
</div>
With some styling I have an image that is split between the column and the content but needs to maintain the same vertical positioning so that it lines up.
Styling is similar to this:
#column
{
width:150px;
height:450px;
left:-150px;
bottom:-140px;
background:url(../images/image.png) no-repeat;
position:absolute;
z-index:1;
}
#container
{
background:transparent url(../images/container.png) no-repeat scroll left bottom;
position:relative;
width:100px;
}
This works great when content in #content is dynamically loaded before rendering. This also works great in firefox always. However, in IE6 and IE7 if I use javascript to change the content (and this height) of #content, the images no longer line up (#column doesn't move). If I use IE Developer Bar to just update the div (say add position:absolute manually) the image jumps down and lines up again.
Is there something I am missing here?
| 0 |
33,843 | 08/29/2008 02:22:16 | 2,567 | 08/22/2008 22:50:45 | 178 | 23 | How to avoid pauses when editing code on a network drive? | I'm planning on doing more coding from home but in order to do so, I need to be able to edit files on a Samba drive on our dev server. The problem I've run into with several editors is that the network latency causes the editor to lock up for long periods of time (Eclipse, TextMate). Some editors cope with this a lot better than others, but are there any file system or other tweaks I can make to minimize the impact of lag? | samba | networking | textmate | text-editor | telecommuting | null | open | How to avoid pauses when editing code on a network drive?
===
I'm planning on doing more coding from home but in order to do so, I need to be able to edit files on a Samba drive on our dev server. The problem I've run into with several editors is that the network latency causes the editor to lock up for long periods of time (Eclipse, TextMate). Some editors cope with this a lot better than others, but are there any file system or other tweaks I can make to minimize the impact of lag? | 0 |
33,852 | 08/29/2008 02:28:57 | 718 | 08/08/2008 07:07:38 | 1,337 | 61 | Using Unsigned Primitive Types | Most of time we represent concepts which can never be less than 0. For example to declare length, we write:
int length;
The name expresses its purpose well but you can assign negative values to it. It seems that for some situations, you can represent your intent more clearly by writing it this way instead:
uint length;
Some disadvantages that I can think of:
- unsigned types (uint, ulong, ushort) are not CLS compliant so you can't use it with other languages that don't support this
- .Net classes use signed types most of the time so you have to cast
Thoughts? | c# | null | null | null | null | null | open | Using Unsigned Primitive Types
===
Most of time we represent concepts which can never be less than 0. For example to declare length, we write:
int length;
The name expresses its purpose well but you can assign negative values to it. It seems that for some situations, you can represent your intent more clearly by writing it this way instead:
uint length;
Some disadvantages that I can think of:
- unsigned types (uint, ulong, ushort) are not CLS compliant so you can't use it with other languages that don't support this
- .Net classes use signed types most of the time so you have to cast
Thoughts? | 0 |
33,853 | 08/29/2008 02:30:05 | 3,142 | 08/26/2008 23:55:24 | 96 | 8 | .net multilingual cms | i am planning a simple, dual-language website and i'd like to use a .net based cms but i can't find anything suitable. i have experience with dotnetnuke and sharepoint but neither fit the bill - dotnetnuke does not do dynamic site elements multi-lingually & sharepoint is a monster PITA no matter what angle you look at it :).
i am on the verge of choosing Joomla! & Joom!Fish. they fit the bill nicely, with one exception: i would like to create some cms plug-ins and i would much prefer to write them in .net. any suggestions?
| .net | content-management-system | multilingual | null | null | null | open | .net multilingual cms
===
i am planning a simple, dual-language website and i'd like to use a .net based cms but i can't find anything suitable. i have experience with dotnetnuke and sharepoint but neither fit the bill - dotnetnuke does not do dynamic site elements multi-lingually & sharepoint is a monster PITA no matter what angle you look at it :).
i am on the verge of choosing Joomla! & Joom!Fish. they fit the bill nicely, with one exception: i would like to create some cms plug-ins and i would much prefer to write them in .net. any suggestions?
| 0 |
33,860 | 08/29/2008 02:33:21 | 3,499 | 08/28/2008 19:39:37 | 1 | 0 | Is it possible to call Javascript's onsubmit event programatically on a form? | Using Ruby on Rails, I'm attempting to update the innerHTML of a div tag using form_remote_tag. This update happens whenever an associated select tag receives an onchange event. The problem is, <select onchange="this.form.submit();"> doesn't work. Nor does document.forms[0].submit(). The only way to get the onsubmit code generated in the form_remote_tag to execute is to create a hidden submit button, and invoke the click method on the button from the select tag. Here's a working ERb partial example.
<% form_remote_tag :url => product_path, :update => 'content', :method => 'get' do -%>
<% content_tag :div, :id => 'content' do -%>
<%= select_tag :update, options_for_select([["foo", 1], ["bar", 2]]), :onchange => "this.form.commit.click" %>
<%= submit_tag 'submit_button', :style => "display: none" %>
<% end %>
<% end %>
What I want to do is something like this, but it doesn't work.
<% form_remote_tag :url => product_path, :update => 'content', :method => 'get' do -%>
<% content_tag :div, :id => 'content' do -%>
# the following line does not work
<%= select_tag :update, options_for_select([["foo", 1], ["bar", 2]]), :onchange => "this.form.onsubmit()" %>
<% end %>
<% end %>
So, is there any way to remove the invisible submit button for this use case?
| javascript | ruby | ruby-on-rails | actionview | form-remote-tag | null | open | Is it possible to call Javascript's onsubmit event programatically on a form?
===
Using Ruby on Rails, I'm attempting to update the innerHTML of a div tag using form_remote_tag. This update happens whenever an associated select tag receives an onchange event. The problem is, <select onchange="this.form.submit();"> doesn't work. Nor does document.forms[0].submit(). The only way to get the onsubmit code generated in the form_remote_tag to execute is to create a hidden submit button, and invoke the click method on the button from the select tag. Here's a working ERb partial example.
<% form_remote_tag :url => product_path, :update => 'content', :method => 'get' do -%>
<% content_tag :div, :id => 'content' do -%>
<%= select_tag :update, options_for_select([["foo", 1], ["bar", 2]]), :onchange => "this.form.commit.click" %>
<%= submit_tag 'submit_button', :style => "display: none" %>
<% end %>
<% end %>
What I want to do is something like this, but it doesn't work.
<% form_remote_tag :url => product_path, :update => 'content', :method => 'get' do -%>
<% content_tag :div, :id => 'content' do -%>
# the following line does not work
<%= select_tag :update, options_for_select([["foo", 1], ["bar", 2]]), :onchange => "this.form.onsubmit()" %>
<% end %>
<% end %>
So, is there any way to remove the invisible submit button for this use case?
| 0 |
33,881 | 08/29/2008 02:44:44 | 1,925 | 08/19/2008 14:23:13 | 59 | 8 | Font rendering for web pages | I always run into the same problem when creating web pages. When I add a font that is larger then about 16-18px it looks terrible. Its jagged, and pixelated. I have tried using different fonts and weights, however I haven't had much luck there.
Note: Its only in windows that it is like this. Mainly in Opera and FF also in IE7 but not quite as bad. In Linux the font looks good. I haven't looked at a Mac.
What do you guys do to fix this? if anything. I noticed that the titles here on SO are also pretty jagged but they are just small enough not to look bad. | font | null | null | null | null | null | open | Font rendering for web pages
===
I always run into the same problem when creating web pages. When I add a font that is larger then about 16-18px it looks terrible. Its jagged, and pixelated. I have tried using different fonts and weights, however I haven't had much luck there.
Note: Its only in windows that it is like this. Mainly in Opera and FF also in IE7 but not quite as bad. In Linux the font looks good. I haven't looked at a Mac.
What do you guys do to fix this? if anything. I noticed that the titles here on SO are also pretty jagged but they are just small enough not to look bad. | 0 |
33,893 | 08/29/2008 02:53:44 | 356 | 08/05/2008 01:13:09 | 50 | 8 | Determining width of a printed string by a webapp | In my (PHP) webapp, I have a part of my site that keeps a history of recent searches. The most recent queries get shown in a side box. If the query text is too long, I truncate it and show ellipses. Eg: "My very long query is..."
Currently, I truncate after a certain number of characters. Since the font is not monotype, a query of all I's is more narrow than a query of all W's. I'd like them to all be about the same width prior to the ellipses. Is there a way to get the approximate width of the resulting string so that the ellipses for any given string will occur in about the same number of pixels from the beginning? Does CSS have a way? Does PHP? | php | css | null | null | null | null | open | Determining width of a printed string by a webapp
===
In my (PHP) webapp, I have a part of my site that keeps a history of recent searches. The most recent queries get shown in a side box. If the query text is too long, I truncate it and show ellipses. Eg: "My very long query is..."
Currently, I truncate after a certain number of characters. Since the font is not monotype, a query of all I's is more narrow than a query of all W's. I'd like them to all be about the same width prior to the ellipses. Is there a way to get the approximate width of the resulting string so that the ellipses for any given string will occur in about the same number of pixels from the beginning? Does CSS have a way? Does PHP? | 0 |
33,897 | 08/29/2008 03:01:00 | 356 | 08/05/2008 01:13:09 | 50 | 8 | Online PHP IDE | Is there an IDE for PHP where you can edit the code for your pages online? Real syntax highlighting is minimal. More would be great. I'd like to be able to do development on my site at times other than when I'm not at at home. | php | ide | null | null | null | 12/15/2011 20:33:53 | not constructive | Online PHP IDE
===
Is there an IDE for PHP where you can edit the code for your pages online? Real syntax highlighting is minimal. More would be great. I'd like to be able to do development on my site at times other than when I'm not at at home. | 4 |
33,901 | 08/29/2008 03:06:08 | 2,783 | 08/25/2008 03:10:18 | 151 | 9 | Best iCalendar library for Java? | I'm looking for a library to handle [iCalendar][1] data in Java.
Open source, well-documented implementations with a good object model are preferred. iCal parsing capabilities are less important to me, but still nice to have.
Does anyone have any recommendations?
[1]: http://en.wikipedia.org/wiki/ICalendar | java | icalendar | null | null | null | null | open | Best iCalendar library for Java?
===
I'm looking for a library to handle [iCalendar][1] data in Java.
Open source, well-documented implementations with a good object model are preferred. iCal parsing capabilities are less important to me, but still nice to have.
Does anyone have any recommendations?
[1]: http://en.wikipedia.org/wiki/ICalendar | 0 |
33,903 | 08/29/2008 03:08:32 | 3,340 | 08/28/2008 02:03:37 | 18 | 1 | Formatting Stored Procedures | I currently work with an Oracle database and we use stored procedures for all our SQL queries. The problem I have is that we do not really having a coding standard for our packages. So what happens is that every developer has a different style (or in some cases no sense of style) in how they format there packages. Making them difficult to read and work on with out first reformatting. We all pretty much just use Notepad or Notepad2 to write our packages.
I am unfortunately not in a position to mandate a coding standard and enforce it (just a code monkey at this point) so I was hoping to find a free SQL code formatter that I can use myself, and possibly suggest to others on the team to use, to make my life easier.
I have considered writing a small application that would essentially take a file as input and reformat everything, but before I did this I figured I would ask if anyone new of such a tool that is already available and is free.
So does anyone now of any such tools available? | sql | oracle | stored-procedures | null | null | null | open | Formatting Stored Procedures
===
I currently work with an Oracle database and we use stored procedures for all our SQL queries. The problem I have is that we do not really having a coding standard for our packages. So what happens is that every developer has a different style (or in some cases no sense of style) in how they format there packages. Making them difficult to read and work on with out first reformatting. We all pretty much just use Notepad or Notepad2 to write our packages.
I am unfortunately not in a position to mandate a coding standard and enforce it (just a code monkey at this point) so I was hoping to find a free SQL code formatter that I can use myself, and possibly suggest to others on the team to use, to make my life easier.
I have considered writing a small application that would essentially take a file as input and reformat everything, but before I did this I figured I would ask if anyone new of such a tool that is already available and is free.
So does anyone now of any such tools available? | 0 |
33,909 | 08/29/2008 03:16:22 | 1,300 | 08/14/2008 12:59:41 | 1 | 3 | Ribbon Toolbar and Visual Studio 2008 Service Pack 1 | Today I was listening to the [Hanselminutes show about .NET 3.5 SP1...What's inside][1], and they twice mentioned the Office 2007-like Ribbon control that is included in Visual Studio 2008 Service Pack 1.
I am very interested about this, as I was previously looking at purchasing this from a 3rd party vendor (likely [DevComponent's DotNetBar][2]). However, I did some research this morning and have found nothing about this control being included for use with C# and WPF. Does anyone know more about the included Ribbon control and whether or not it is available for C# or WPF?
[1]: http://www.hanselminutes.com/default.aspx?showID=145
[2]: http://www.devcomponents.com/dotnetbar/ribbon-control.aspx | visual-studio-2008 | wpf | gui | null | null | null | open | Ribbon Toolbar and Visual Studio 2008 Service Pack 1
===
Today I was listening to the [Hanselminutes show about .NET 3.5 SP1...What's inside][1], and they twice mentioned the Office 2007-like Ribbon control that is included in Visual Studio 2008 Service Pack 1.
I am very interested about this, as I was previously looking at purchasing this from a 3rd party vendor (likely [DevComponent's DotNetBar][2]). However, I did some research this morning and have found nothing about this control being included for use with C# and WPF. Does anyone know more about the included Ribbon control and whether or not it is available for C# or WPF?
[1]: http://www.hanselminutes.com/default.aspx?showID=145
[2]: http://www.devcomponents.com/dotnetbar/ribbon-control.aspx | 0 |
33,923 | 08/29/2008 03:48:03 | 2,045 | 08/19/2008 23:50:05 | 23 | 0 | tail-recursive | Whilst starting to learn lisp, I've come across the term *tail-recursive*. What does it mean? | language-agnostic | lisp | algorithm | null | null | null | open | tail-recursive
===
Whilst starting to learn lisp, I've come across the term *tail-recursive*. What does it mean? | 0 |
33,933 | 08/29/2008 03:57:32 | 2,749 | 08/24/2008 21:26:44 | 1 | 1 | textarea with 100% width ignores parent element's width in IE7 | I have the following textarea in a table:
<table width="300"><tr><td>
<textarea style="width:100%">
longstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstring
</textarea>
</td></tr></table>
With a long string in the textarea, the textarea stretches out to accommodate it in one line in IE7, but retains its 300px width in other browsers.
Any ideas as to how to fix this in IE? | html | internet-explorer-7 | textarea | null | null | null | open | textarea with 100% width ignores parent element's width in IE7
===
I have the following textarea in a table:
<table width="300"><tr><td>
<textarea style="width:100%">
longstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstring
</textarea>
</td></tr></table>
With a long string in the textarea, the textarea stretches out to accommodate it in one line in IE7, but retains its 300px width in other browsers.
Any ideas as to how to fix this in IE? | 0 |
33,937 | 08/29/2008 04:00:20 | 242 | 08/03/2008 22:55:19 | 380 | 24 | How to handle variable width FieldObjects in Crystal Reports | I have a Crystal Report which is viewed via a CrystalReportViewer control on an .aspx page (using VS2008).
The report has two data-driven FieldObjects (which can contain a variable number of chars) which I would like to display on the same line beside each other.
Problem is when the text in the first FieldObject is too long it overlaps the text in the second FieldObject.
I have tried setting the 'CanGrow=True' and 'MaxNumberOfLines=1' on the first FieldObject to 'push' the second FieldObject further to the right, but this didn't work.
**How do I get the second FieldObject to always display immediately after the first FieldObject regardless of the length of the text in the first?**
Cheers in advance of any knowledge you can drop. | crystal-reports | null | null | null | null | null | open | How to handle variable width FieldObjects in Crystal Reports
===
I have a Crystal Report which is viewed via a CrystalReportViewer control on an .aspx page (using VS2008).
The report has two data-driven FieldObjects (which can contain a variable number of chars) which I would like to display on the same line beside each other.
Problem is when the text in the first FieldObject is too long it overlaps the text in the second FieldObject.
I have tried setting the 'CanGrow=True' and 'MaxNumberOfLines=1' on the first FieldObject to 'push' the second FieldObject further to the right, but this didn't work.
**How do I get the second FieldObject to always display immediately after the first FieldObject regardless of the length of the text in the first?**
Cheers in advance of any knowledge you can drop. | 0 |
33,949 | 08/29/2008 04:15:24 | 2,580 | 08/23/2008 04:11:35 | 13 | 2 | Convert Web.config from .NET 2.0 to 3.5 | What is the minimum I need to add to a .NET 2.0 WebSite's web.config to make it .NET 3.5?
Visual Studio adds all the config sections and script handlers, but if you aren't using those are they are really necessary?
Is there a command line tool to "upgrade" a .NET 2.0 web.config to 3.5? | .net | asp.net | configuration | upgrade | migration | null | open | Convert Web.config from .NET 2.0 to 3.5
===
What is the minimum I need to add to a .NET 2.0 WebSite's web.config to make it .NET 3.5?
Visual Studio adds all the config sections and script handlers, but if you aren't using those are they are really necessary?
Is there a command line tool to "upgrade" a .NET 2.0 web.config to 3.5? | 0 |
33,954 | 08/29/2008 04:25:09 | 947 | 08/10/2008 22:41:25 | 1 | 0 | Badge Concept Applied To Continuous Monitoring | Stackoverflow is the first time I've seen this badges concept. It's oddly motivating, and that's pretty cool. Has anybody seen it applied to source control change sets?
I envision a data mining system that monitors a source repo and maybe a continuous integration system and flags significant deltas in various code centric metrics. The flags ultimately manifest as badges assigned to committers.
Here's a few badge ideas off the top of my head:
* **The Hatchet Man** - for largest reduction in overall LOC
* **Detangler** - for reducing cyclomatic complexity by N points (probably applied to class or method level)
* **Obfuscator** - for increasing cyclomatic complexity
* **Judas Priest** - for checking in code that violates the chosen FxCop rules (Breaking the law! Breaking the law! - get it?)
* **Owner** - for having the most LOC attributed to you (via blame)
* **Risky Business Badge** - for a check in that results in lower test coverage
* **Fixer** - for a check in resulting in a previously failing test passing
* **Wrangler** - for bringing previously untested code under test
It seems a great deal of my career has been spent on old hoary codebases in need of some heavy duty refactoring. Along with those codebases are the programmers stuck maintaining them, who more often than not don't understand the consequences of unnecessary complexity, or if they do, they don't know what to do about it. This is a way to help them educate themselves, and kind of fun too. | continuous-monitoring | null | null | null | null | 05/08/2012 17:51:01 | off topic | Badge Concept Applied To Continuous Monitoring
===
Stackoverflow is the first time I've seen this badges concept. It's oddly motivating, and that's pretty cool. Has anybody seen it applied to source control change sets?
I envision a data mining system that monitors a source repo and maybe a continuous integration system and flags significant deltas in various code centric metrics. The flags ultimately manifest as badges assigned to committers.
Here's a few badge ideas off the top of my head:
* **The Hatchet Man** - for largest reduction in overall LOC
* **Detangler** - for reducing cyclomatic complexity by N points (probably applied to class or method level)
* **Obfuscator** - for increasing cyclomatic complexity
* **Judas Priest** - for checking in code that violates the chosen FxCop rules (Breaking the law! Breaking the law! - get it?)
* **Owner** - for having the most LOC attributed to you (via blame)
* **Risky Business Badge** - for a check in that results in lower test coverage
* **Fixer** - for a check in resulting in a previously failing test passing
* **Wrangler** - for bringing previously untested code under test
It seems a great deal of my career has been spent on old hoary codebases in need of some heavy duty refactoring. Along with those codebases are the programmers stuck maintaining them, who more often than not don't understand the consequences of unnecessary complexity, or if they do, they don't know what to do about it. This is a way to help them educate themselves, and kind of fun too. | 2 |
33,955 | 08/29/2008 04:25:18 | 493 | 08/06/2008 10:25:05 | 2,681 | 170 | NHibernate SetTimeout on ICriteria | Could someone tell me what the units the SetTimeout(int) method in the ICriteria interface uses? Is it milliseconds, seconds, minutes or other? | nhibernate | null | null | null | null | null | open | NHibernate SetTimeout on ICriteria
===
Could someone tell me what the units the SetTimeout(int) method in the ICriteria interface uses? Is it milliseconds, seconds, minutes or other? | 0 |
33,956 | 08/29/2008 04:26:07 | 1,448 | 08/15/2008 16:16:35 | 196 | 18 | Facet ranges in solr results | Assume that I have a field called *price* for the documents in Solr and I have that field faceted. I want to get the facets as ranges of values (eg: 0-100, 100-500, 500-1000, etc). How to do it?
I can specify the ranges beforehand, but I also want to know whether it is possible to calculate the ranges (say for 5 values) automatically based on the values in the documents? | solr | lucene | java | null | null | null | open | Facet ranges in solr results
===
Assume that I have a field called *price* for the documents in Solr and I have that field faceted. I want to get the facets as ranges of values (eg: 0-100, 100-500, 500-1000, etc). How to do it?
I can specify the ranges beforehand, but I also want to know whether it is possible to calculate the ranges (say for 5 values) automatically based on the values in the documents? | 0 |
33,960 | 08/29/2008 04:31:24 | 338 | 08/04/2008 18:34:44 | 680 | 51 | How do you get the ethernet address using Java? | I would like to retrieve the ethernet address of the network interface that is used to access a particular website.
How can this be done in Java? | java | ethernet | networking | internet | null | null | open | How do you get the ethernet address using Java?
===
I would like to retrieve the ethernet address of the network interface that is used to access a particular website.
How can this be done in Java? | 0 |
33,969 | 08/29/2008 04:50:50 | 3 | 07/31/2008 14:22:31 | 146 | 5 | Best way to implement request throttling in ASP.NET/IIS7 | We're experimenting with various ways to throttle user actions.
For example, to limit how a question's view count is incremented, we're actually using the Cache:
if (HttpContext.Cache[key] == null)
{
log.Info(string.Concat("DoPostViewIncrement is adding '", key, "' to the Cache - total items: ", HttpContext.Cache.Count));
doIncrement = true;
// Don't really care about the data - existence of key means user has viewed..
HttpContext.Cache.Add(key, 0,
null,
System.Web.Caching.Cache.NoAbsoluteExpiration,
TimeSpan.FromMinutes(AppSettings.Questions.PerUserPostViewIncrementIntervalInMinutes),
System.Web.Caching.CacheItemPriority.Low,
null);
}
This automatically gives us stale data cleaning and sliding activity windows of users, but how it will scale could be a problem.
What are some other ways of ensuring that requests/user actions can be effectively throttled (emphasis on stability)? | asp.net | iis7 | throttling | null | null | null | open | Best way to implement request throttling in ASP.NET/IIS7
===
We're experimenting with various ways to throttle user actions.
For example, to limit how a question's view count is incremented, we're actually using the Cache:
if (HttpContext.Cache[key] == null)
{
log.Info(string.Concat("DoPostViewIncrement is adding '", key, "' to the Cache - total items: ", HttpContext.Cache.Count));
doIncrement = true;
// Don't really care about the data - existence of key means user has viewed..
HttpContext.Cache.Add(key, 0,
null,
System.Web.Caching.Cache.NoAbsoluteExpiration,
TimeSpan.FromMinutes(AppSettings.Questions.PerUserPostViewIncrementIntervalInMinutes),
System.Web.Caching.CacheItemPriority.Low,
null);
}
This automatically gives us stale data cleaning and sliding activity windows of users, but how it will scale could be a problem.
What are some other ways of ensuring that requests/user actions can be effectively throttled (emphasis on stability)? | 0 |
33,973 | 08/29/2008 04:54:09 | 3,474 | 08/28/2008 17:28:46 | 46 | 10 | How do I efficiently keep track of the smallest element in a collection? | In the vein of *programming questions*: suppose there's a collection of objects that can be compared to each other and sorted. What's the most efficient way to keep track of the smallest element in the collection as objects are added and removed? | data-structures | null | null | null | null | null | open | How do I efficiently keep track of the smallest element in a collection?
===
In the vein of *programming questions*: suppose there's a collection of objects that can be compared to each other and sorted. What's the most efficient way to keep track of the smallest element in the collection as objects are added and removed? | 0 |
33,976 | 08/29/2008 04:57:32 | 3,555 | 08/29/2008 04:57:32 | 1 | 0 | Microsoft Office 2007 automated installation - editing the config.xml file | I'm creating an automated installation of Office 2007. To customise your Office 2007 installation the Office Customization Tool (OCT) does most of the work for you. One the OCT's features is the ability to run additional programs during the Office installation. However it is pretty poor at it.
Fortunately by editing the appropiate 'config.xml' file contained within the installer files you have more control over running these additional programs. Within the config.xml file this feature is defined by the 'command' element. This [link][1] on Technet talks all about it.
In this documentation it states:
Attributes
You can specify double-quotation marks (") in the Path and Args attributes by specifying two double-quotation marks together ("").
<Command Path="myscript.exe" Args="/id ""123 abc"" /q" />
I would like to use double-quotation marks in an argument that I wish to pass to the command I'm executing. Unfortunately when I configure my config.xml file like what it is shown in the example the Office 2007 installer crashes with this error message in the setup logs:
Parsing config.xml at: \\aumel1pc356\c$\Documents and Settings\nichollsd2\Desktop\source\office\Enterprise.WW\config.xml
Error: XML document load failed for file: \\aumel1pc356\c$\Documents and Settings\nichollsd2\Desktop\source\office\Enterprise.WW\config.xml HResult: 0x1.
Does anyone have any experience with this issue? I'd love to get another perspective on it.
Cheers
Dale
[1]: http://technet.microsoft.com/en-us/library/cc179195.aspx | office2007 | packaging | null | null | null | null | open | Microsoft Office 2007 automated installation - editing the config.xml file
===
I'm creating an automated installation of Office 2007. To customise your Office 2007 installation the Office Customization Tool (OCT) does most of the work for you. One the OCT's features is the ability to run additional programs during the Office installation. However it is pretty poor at it.
Fortunately by editing the appropiate 'config.xml' file contained within the installer files you have more control over running these additional programs. Within the config.xml file this feature is defined by the 'command' element. This [link][1] on Technet talks all about it.
In this documentation it states:
Attributes
You can specify double-quotation marks (") in the Path and Args attributes by specifying two double-quotation marks together ("").
<Command Path="myscript.exe" Args="/id ""123 abc"" /q" />
I would like to use double-quotation marks in an argument that I wish to pass to the command I'm executing. Unfortunately when I configure my config.xml file like what it is shown in the example the Office 2007 installer crashes with this error message in the setup logs:
Parsing config.xml at: \\aumel1pc356\c$\Documents and Settings\nichollsd2\Desktop\source\office\Enterprise.WW\config.xml
Error: XML document load failed for file: \\aumel1pc356\c$\Documents and Settings\nichollsd2\Desktop\source\office\Enterprise.WW\config.xml HResult: 0x1.
Does anyone have any experience with this issue? I'd love to get another perspective on it.
Cheers
Dale
[1]: http://technet.microsoft.com/en-us/library/cc179195.aspx | 0 |
33,978 | 08/29/2008 04:59:31 | 3,119 | 08/26/2008 18:43:38 | 120 | 14 | Find out how much memory is being used by an object in Python | How would you go about finding out how much memory is being used by an object in python?
I know it is possible to find out how much is used by a block of code, but not by an instantiated object anytime in its life, which is what I want. | python | performance | null | null | null | null | open | Find out how much memory is being used by an object in Python
===
How would you go about finding out how much memory is being used by an object in python?
I know it is possible to find out how much is used by a block of code, but not by an instantiated object anytime in its life, which is what I want. | 0 |
33,990 | 08/29/2008 05:12:07 | 3,486 | 08/28/2008 18:16:51 | 1 | 1 | Can't create a subversion repository with Eclipse 3.4.0, svn 1.5.1 | I'm working on mac OS x 10.4. I have a subversion repository stored on an external drive connected via USB. I created a new python project in Eclipse (using the PyDev plugin). When I use right click Team->Share Project to set up a new prject with subversion, I get the following error:
Error while creating module: org.tigris.subversion.javahl.ClientException: Couldn't open a repository
svn: Unable to open ra_local session to URL
svn: Unable to open repository 'file:///Volumes/svn-repos/Palindrome/Palindrome'
The subversion repository has the following permisions:
drwxrwxrwx 9 cameronl cameronl 306 Aug 23 10:08 svn-repos
The external drive is formatted as Mac OS extended.
I'm completely stumped. Anybody have any suggestions? | subversion | osx | eclipse | null | null | null | open | Can't create a subversion repository with Eclipse 3.4.0, svn 1.5.1
===
I'm working on mac OS x 10.4. I have a subversion repository stored on an external drive connected via USB. I created a new python project in Eclipse (using the PyDev plugin). When I use right click Team->Share Project to set up a new prject with subversion, I get the following error:
Error while creating module: org.tigris.subversion.javahl.ClientException: Couldn't open a repository
svn: Unable to open ra_local session to URL
svn: Unable to open repository 'file:///Volumes/svn-repos/Palindrome/Palindrome'
The subversion repository has the following permisions:
drwxrwxrwx 9 cameronl cameronl 306 Aug 23 10:08 svn-repos
The external drive is formatted as Mac OS extended.
I'm completely stumped. Anybody have any suggestions? | 0 |
33,994 | 08/29/2008 05:15:15 | 832 | 08/09/2008 06:51:40 | 2,351 | 184 | What Code Snippet Editor Do You Use? | Part of my "sort your development life out, Rob" push has been me taking note of the fact that I do not have a library of [code snippets](http://aspnet.4guysfromrolla.com/articles/122105-1.aspx) (and [Jeff did a post too](http://www.codinghorror.com/blog/archives/000419.html)). Now I have a few, but I know I should really be working towards creating my own library to boost my productivity.
One thing I have started doing is leaving my code snippet editor open ([Snippy](http://www.codeplex.com/snippy)) and whenever I realise I am writing common code, I stop and make a snippet for it.
I was just wondering **what editors you guys use?** There may be a better one out there and if I am missing out I so want to get in on that! :) | visual-studio | .net | code-snippets | null | null | null | open | What Code Snippet Editor Do You Use?
===
Part of my "sort your development life out, Rob" push has been me taking note of the fact that I do not have a library of [code snippets](http://aspnet.4guysfromrolla.com/articles/122105-1.aspx) (and [Jeff did a post too](http://www.codinghorror.com/blog/archives/000419.html)). Now I have a few, but I know I should really be working towards creating my own library to boost my productivity.
One thing I have started doing is leaving my code snippet editor open ([Snippy](http://www.codeplex.com/snippy)) and whenever I realise I am writing common code, I stop and make a snippet for it.
I was just wondering **what editors you guys use?** There may be a better one out there and if I am missing out I so want to get in on that! :) | 0 |
34,009 | 08/29/2008 05:31:38 | 184 | 08/03/2008 05:34:19 | 1,220 | 18 | Tool for querying databases | I want to query a number of different databases mainly Oracle and Informix.
Can anyone suggest me some tool using which I can do this easily? | database | null | null | null | null | null | open | Tool for querying databases
===
I want to query a number of different databases mainly Oracle and Informix.
Can anyone suggest me some tool using which I can do this easily? | 0 |
34,019 | 08/29/2008 05:43:06 | 1,721 | 08/18/2008 09:58:47 | 18 | 3 | Install the Radrails plugin for Aptana Studio offline | I downloaded and installed the Aptana Studio free version. But apparently, to install the Radrails plugin for ruby on rails development you have to connect to the internet. I don't have internet on my machine right now. So is there a way I could download the installer from another machine and copy it over my existing Aptana installation? | ruby-on-rails | radrails | aptana | null | null | null | open | Install the Radrails plugin for Aptana Studio offline
===
I downloaded and installed the Aptana Studio free version. But apparently, to install the Radrails plugin for ruby on rails development you have to connect to the internet. I don't have internet on my machine right now. So is there a way I could download the installer from another machine and copy it over my existing Aptana installation? | 0 |
34,020 | 08/29/2008 05:43:16 | 3,561 | 08/29/2008 05:25:35 | 1 | 1 | are python threads broken? | A reliable coder friend told me that python's current multi-threading implementation is seriously buggy - enough to avoid using altogether. Can anyone elaborate on this rumor? | python | multithreading | null | null | null | null | open | are python threads broken?
===
A reliable coder friend told me that python's current multi-threading implementation is seriously buggy - enough to avoid using altogether. Can anyone elaborate on this rumor? | 0 |
34,023 | 08/29/2008 05:49:05 | 1,053 | 08/11/2008 22:17:55 | 214 | 30 | How to embed control change commands inside of a MIDI | I am making a simple game in order to learn a new language. I am in the process of collecting some music for the game and would like to use the MIDI format so that I can control the flow of the track (i.e., I would like to have an introduction that only plays once and does not play again when the song loops.)
I am having a tough time finding information on how to modify existing MIDI files so that they may send a control change signal to the synthesizer. Has anyone had experience with this? | midi | null | null | null | null | null | open | How to embed control change commands inside of a MIDI
===
I am making a simple game in order to learn a new language. I am in the process of collecting some music for the game and would like to use the MIDI format so that I can control the flow of the track (i.e., I would like to have an introduction that only plays once and does not play again when the song loops.)
I am having a tough time finding information on how to modify existing MIDI files so that they may send a control change signal to the synthesizer. Has anyone had experience with this? | 0 |
34,059 | 08/29/2008 06:33:28 | 45,603 | 08/25/2008 09:52:34 | 36 | 3 | Visual Studio: Build Solution vs Batch Build | What is the difference between the two commands in Visual Studio 2008?
| visual-studio | null | null | null | null | null | open | Visual Studio: Build Solution vs Batch Build
===
What is the difference between the two commands in Visual Studio 2008?
| 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.