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
45,485
09/05/2008 09:51:43
2,974
08/26/2008 09:39:16
579
47
Conventions for Perl Test::More module
Are there conventions for function names when using the Perl Test::More or Test::Simple modules. I'm specifically asking about the names of functions that are used to set up a test environment before the test and to tear down the environment after successful completion of the test(s). cheers, Rob
testing
perl
framework
null
null
null
open
Conventions for Perl Test::More module === Are there conventions for function names when using the Perl Test::More or Test::Simple modules. I'm specifically asking about the names of functions that are used to set up a test environment before the test and to tear down the environment after successful completion of the test(s). cheers, Rob
0
45,494
09/05/2008 10:03:46
2,138
08/20/2008 14:23:45
100
9
SQL Delete: can't specify target table for update in FROM clause
I have a table *story_category* in my database with corrupt entries. The next query returns the corrupt entries. SELECT * FROM story_category WHERE category_id NOT IN ( SELECT DISTINCT category.id FROM category INNER JOIN story_category ON category_id=category.id); I tried to delete them excuting: DELETE FROM story_category WHERE category_id NOT IN ( SELECT DISTINCT category.id FROM category INNER JOIN story_category ON category_id=category.id); but i get the next error: \#1093 - You can't specify target table 'story_category' for update in FROM clause Does anyone knows how can i overcome this?
sql
delete
null
null
null
null
open
SQL Delete: can't specify target table for update in FROM clause === I have a table *story_category* in my database with corrupt entries. The next query returns the corrupt entries. SELECT * FROM story_category WHERE category_id NOT IN ( SELECT DISTINCT category.id FROM category INNER JOIN story_category ON category_id=category.id); I tried to delete them excuting: DELETE FROM story_category WHERE category_id NOT IN ( SELECT DISTINCT category.id FROM category INNER JOIN story_category ON category_id=category.id); but i get the next error: \#1093 - You can't specify target table 'story_category' for update in FROM clause Does anyone knows how can i overcome this?
0
45,507
09/05/2008 10:26:47
4,203
09/02/2008 10:09:59
374
26
Is there a Python library for generating .ico files?
I'm looking to create `favicon.ico` files programatically from Python, but PIL only has support for reading `ico` files.
python
favicon
null
null
null
null
open
Is there a Python library for generating .ico files? === I'm looking to create `favicon.ico` files programatically from Python, but PIL only has support for reading `ico` files.
0
45,510
09/05/2008 10:28:46
95
08/01/2008 18:28:24
371
28
How can I call a .NET DLL from an Inno Setup script?
I want to call a function from a .NET DLL (coded in C#) from an Inno Setup script. I have: 1. marked the *Register for COM interop* option in the project properties, 2. changed the *ComVisible* setting in the *AssemblyInfo.cs* file, 3. added these lines to the ISS script: > [Files] > > Source: c:\temp\1\MyDLL.dll; Flags: dontcopy > > [Code] > > function MyFunction(): string; > > external 'MyFunction@files:MyDLL.dll stdcall setuponly'; but I still get the following error: > Runtime Error (at -1:0): > > Cannot Import dll:C:\DOCUME~1\foo\LOCALS~1\Temp\is-LRL3E.tmp\MyDLL.dll. What am I doing wrong?
setup
inno-setup
null
null
null
null
open
How can I call a .NET DLL from an Inno Setup script? === I want to call a function from a .NET DLL (coded in C#) from an Inno Setup script. I have: 1. marked the *Register for COM interop* option in the project properties, 2. changed the *ComVisible* setting in the *AssemblyInfo.cs* file, 3. added these lines to the ISS script: > [Files] > > Source: c:\temp\1\MyDLL.dll; Flags: dontcopy > > [Code] > > function MyFunction(): string; > > external 'MyFunction@files:MyDLL.dll stdcall setuponly'; but I still get the following error: > Runtime Error (at -1:0): > > Cannot Import dll:C:\DOCUME~1\foo\LOCALS~1\Temp\is-LRL3E.tmp\MyDLL.dll. What am I doing wrong?
0
45,528
09/05/2008 10:54:12
4,591
09/04/2008 18:57:54
51
8
Simplest way to change listview and treeview colours
I'm trying to find a simple way to change the colour of the text and background in listview and treeview controls in WTL or plain Win32 code. I really don't want to have to implement full owner drawing for these controls, simply change the colours used. I want to make sure that the images are still drawn with proper transparency. Any suggestions?
c++
winapi
wtl
null
null
null
open
Simplest way to change listview and treeview colours === I'm trying to find a simple way to change the colour of the text and background in listview and treeview controls in WTL or plain Win32 code. I really don't want to have to implement full owner drawing for these controls, simply change the colours used. I want to make sure that the images are still drawn with proper transparency. Any suggestions?
0
45,534
09/05/2008 11:02:21
192
08/03/2008 10:15:38
278
27
ASPSmartUpload v3.2
I have the unfortunate task of fixing a legacy ASP site that was migrated to Windows Server 2003, and I know nothing about ASP. The main issue appears to be with ASPSmartUpload, of which I have version 2.3 installed. According to [http://foradvice.net/smart_upload_faq.htm][1]: > FAQ: does aspSmartUpload work on > Windows 2003 server ? > > Yes, last versions of aspSmartUpload > work fine on the Windows 2003 server. > If you upgrade your OS and used an old > version of aspSmartUpload, you have to > download and setup aspSmartUpload > 3.2+. Of course, aspsmart.com doesn't respond and any Google result for "aspsmartupload 3.2" points to the dead link. The latest version I can find anywhere is v3.0, on some dodgy-looking DLL download site. What is the best way to resolve this, or can anyone provide a working link to version 3.2 of ASPSmartUpload? Thanks! [1]: http://foradvice.net/smart_upload_faq.htm
asp-classic
null
null
null
null
null
open
ASPSmartUpload v3.2 === I have the unfortunate task of fixing a legacy ASP site that was migrated to Windows Server 2003, and I know nothing about ASP. The main issue appears to be with ASPSmartUpload, of which I have version 2.3 installed. According to [http://foradvice.net/smart_upload_faq.htm][1]: > FAQ: does aspSmartUpload work on > Windows 2003 server ? > > Yes, last versions of aspSmartUpload > work fine on the Windows 2003 server. > If you upgrade your OS and used an old > version of aspSmartUpload, you have to > download and setup aspSmartUpload > 3.2+. Of course, aspsmart.com doesn't respond and any Google result for "aspsmartupload 3.2" points to the dead link. The latest version I can find anywhere is v3.0, on some dodgy-looking DLL download site. What is the best way to resolve this, or can anyone provide a working link to version 3.2 of ASPSmartUpload? Thanks! [1]: http://foradvice.net/smart_upload_faq.htm
0
45,535
09/05/2008 11:02:44
1,721
08/18/2008 09:58:47
100
12
Get month and year from a datetime in sql server 2005
Ok, this should be an easy question to answer. I need the month+year from the datetime in sql server like 'Jan 2008'. I'm grouping the query by month,year. I've searched and found functions like datepart, convert etc. but none of them seem useful for this. Am I missing something here? Is there a function for this?
sql
sql-server
null
null
null
null
open
Get month and year from a datetime in sql server 2005 === Ok, this should be an easy question to answer. I need the month+year from the datetime in sql server like 'Jan 2008'. I'm grouping the query by month,year. I've searched and found functions like datepart, convert etc. but none of them seem useful for this. Am I missing something here? Is there a function for this?
0
45,540
09/05/2008 11:07:06
4,717
09/05/2008 10:55:44
1
0
How to know whether a window with a given title is already open in Tk?
I’ve writen a little python script that just pops up a message box containing the text passed on the command line. I want to pop it up only when the window —resulting from a previous call— is not open. from Tkinter import * import tkMessageBox root = Tk() root.withdraw() # TODO not if a window with this title exists tkMessageBox.showinfo("Key you!", " ".join(sys.argv[1:])) Any idea how to check that? Thanks
python
tk
null
null
null
null
open
How to know whether a window with a given title is already open in Tk? === I’ve writen a little python script that just pops up a message box containing the text passed on the command line. I want to pop it up only when the window —resulting from a previous call— is not open. from Tkinter import * import tkMessageBox root = Tk() root.withdraw() # TODO not if a window with this title exists tkMessageBox.showinfo("Key you!", " ".join(sys.argv[1:])) Any idea how to check that? Thanks
0
45,545
09/05/2008 11:09:28
1,360
08/14/2008 18:11:31
44
9
Add horizontal scroll to asp.net listbox control
How can I add horizontal scroll capabilities to the asp.net listbox control?
asp.net
listbox
scroll
null
null
null
open
Add horizontal scroll to asp.net listbox control === How can I add horizontal scroll capabilities to the asp.net listbox control?
0
45,546
09/05/2008 11:11:21
4,702
09/05/2008 10:14:44
1
1
How do I return a 403 Forbidden in Spring MVC?
I want my controller to return the right HTTP response code when the user lacks permission to view a particular page.
java
spring
null
null
null
null
open
How do I return a 403 Forbidden in Spring MVC? === I want my controller to return the right HTTP response code when the user lacks permission to view a particular page.
0
45,553
09/05/2008 11:15:25
3,379
08/28/2008 10:27:56
45
3
How to get browser IP or hostname?
I have a web application that should behave differently for internal users than external ones. The web application is available over the Internet, and therefore obviously to the internal users as well. All the users are anonymous, not authenticated, but the page should render differently for internal users than external. What I'm doing in my code is use `Request.UserHostName` and then `Dns.GetHostEntry`. The result is then compared to a setting in my `web.config` (that holds something like `*.mydomain.local`) . If the comparison gives a positive result then I render the HTML that the internal user should see otherwise I render the HTML the external user should see. However, my problem is that I don't always get the expected value from `Request.UserHostName`. on the development site I get the `IP-number` (?) of the machine running the browser but on the customer site I don't get the `IP-number` of the user machine, I get some other `IP-number`. The browsers don't have any proxies set or anything like that. Should I be using something else than `Request.UserHostName`?
asp.net
visual-studio
null
null
null
null
open
How to get browser IP or hostname? === I have a web application that should behave differently for internal users than external ones. The web application is available over the Internet, and therefore obviously to the internal users as well. All the users are anonymous, not authenticated, but the page should render differently for internal users than external. What I'm doing in my code is use `Request.UserHostName` and then `Dns.GetHostEntry`. The result is then compared to a setting in my `web.config` (that holds something like `*.mydomain.local`) . If the comparison gives a positive result then I render the HTML that the internal user should see otherwise I render the HTML the external user should see. However, my problem is that I don't always get the expected value from `Request.UserHostName`. on the development site I get the `IP-number` (?) of the machine running the browser but on the customer site I don't get the `IP-number` of the user machine, I get some other `IP-number`. The browsers don't have any proxies set or anything like that. Should I be using something else than `Request.UserHostName`?
0
45,571
09/05/2008 11:24:39
130,278
09/02/2008 03:00:54
13
9
fprintf return success but can't write to an existin file
In my codes, fprintf return successful by returning the number of bytes written in STREAM, but in the actual file the string I put is not there.
c
fprintf
stream
io
null
null
open
fprintf return success but can't write to an existin file === In my codes, fprintf return successful by returning the number of bytes written in STREAM, but in the actual file the string I put is not there.
0
45,572
09/05/2008 11:25:50
3,182
08/27/2008 09:11:40
199
9
What is the best method of getting Int32 from first four bytes of GUID?
I'm just wondering if it exists better solution for this. BitConverter.ToInt32(sample_guid.ToByteArray(), 0)
c#
.net
guid
null
null
null
open
What is the best method of getting Int32 from first four bytes of GUID? === I'm just wondering if it exists better solution for this. BitConverter.ToInt32(sample_guid.ToByteArray(), 0)
0
45,577
09/05/2008 11:29:22
4,050
09/01/2008 14:24:01
289
22
Syntax highlighting for html markup disappears in Visual Studio 2008
This happened to me in Visual Studio 2008 pre and post 2008 sp1 on more than one computer and to someone else I know, so it can't be an isolated incident. Seemingly random, every so often I lose all syntax highlighting in my aspx page (the html) so that Visual Studio now looks like a really expensive version of notepad. Does anyone know why does happens? Better yet, anyone know how to fix it?
asp.net
visual-studio
html
vs2008
null
null
open
Syntax highlighting for html markup disappears in Visual Studio 2008 === This happened to me in Visual Studio 2008 pre and post 2008 sp1 on more than one computer and to someone else I know, so it can't be an isolated incident. Seemingly random, every so often I lose all syntax highlighting in my aspx page (the html) so that Visual Studio now looks like a really expensive version of notepad. Does anyone know why does happens? Better yet, anyone know how to fix it?
0
45,582
09/05/2008 11:33:04
287
08/04/2008 12:43:38
304
21
How can I convince GroovyShell to maintain state over eval() calls?
I'm trying to use Groovy to create an interactive scripting / macro mode for my application. The application is OSGi and much of the information the scripts may need is not know up front. I figured I could use GroovyShell and call eval() multiple times continually appending to the namespace as OSGi bundles are loaded. GroovyShell maintains variable state over multiple eval calls, but not class definitions or methods. goal: Create a base class during startup. As OSGi bundles load, create derived classes as needed.
groovy
script
shell
java
null
null
open
How can I convince GroovyShell to maintain state over eval() calls? === I'm trying to use Groovy to create an interactive scripting / macro mode for my application. The application is OSGi and much of the information the scripts may need is not know up front. I figured I could use GroovyShell and call eval() multiple times continually appending to the namespace as OSGi bundles are loaded. GroovyShell maintains variable state over multiple eval calls, but not class definitions or methods. goal: Create a base class during startup. As OSGi bundles load, create derived classes as needed.
0
45,593
09/05/2008 11:49:02
2,812
08/25/2008 11:23:23
1
0
Is there a way to perform a "Refresh Dependencies" in a setup project outside VS2008?
I have a solution with several projects. One of them is a setup project. If you expand the setup project in the Solution Explorer, you see a Detected Dependencies node. If you right click on it, you get a menu item called Refresh Dependencies. This refreshes any dependencies based on the files included in the setup. I am asking if I can execute this action outside Visual Studio, using either devenv.com or MSBuild. I want this because I am using CruiseControl.NET for continuous integration and in some solutions I found that the setup output is missing some dependencies because of the way I automatically build the projects.
c#
cruisecontrol.net
msbuild
setup
visual-studio-2008
null
open
Is there a way to perform a "Refresh Dependencies" in a setup project outside VS2008? === I have a solution with several projects. One of them is a setup project. If you expand the setup project in the Solution Explorer, you see a Detected Dependencies node. If you right click on it, you get a menu item called Refresh Dependencies. This refreshes any dependencies based on the files included in the setup. I am asking if I can execute this action outside Visual Studio, using either devenv.com or MSBuild. I want this because I am using CruiseControl.NET for continuous integration and in some solutions I found that the setup output is missing some dependencies because of the way I automatically build the projects.
0
45,600
09/05/2008 11:55:12
3,751
08/30/2008 14:46:15
1
0
A problem with the jquery dialog when using the themeroller css
The [demos][1] for the jquery ui dialog all use the "flora" theme. I wanted a customized theme, so I used the themeroller to generate a css file. When I used it, everything seemed to be working fine, but later I found that I can't control any input element contained in the dialog (i.e, can't type into a text field, can't check checkboxes). Further investigation revealed that this happens if I set the dialog attribute "modal" to true. This doesn't happen when I use the flora theme. Here is the js file: topMenu = { init: function(){ $("#my_button").bind("click", function(){ $("#SERVICE03_DLG").dialog("open"); $("#something").focus(); }); $("#SERVICE03_DLG").dialog({ autoOpen: false, modal: true, resizable: false, title: "my title", overlay: { opacity: 0.5, background: "black" }, buttons: { "OK": function() { alert("hi!"); }, "cancel": function() { $(this).dialog("close"); } }, close: function(){ $("#something").val(""); } }); } } $(document).ready(topMenu.init); Here is the html that uses the flora theme: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> <title>sample</title> <script src="jquery-1.2.6.min.js" language="JavaScript"></script> <link rel="stylesheet" href="flora/flora.all.css" type="text/css"> <script src="jquery-ui-personalized-1.5.2.min.js" language="JavaScript"></script> <script src="TopMenu.js" language="JavaScript"></script> </head> <body> <input type="button" value="click me!" id="my_button"> <div id="SERVICE03_DLG" class="flora">please enter something<br><br> <label for="something">somthing:</label>&nbsp;<input name="something" id="something" type="text" maxlength="20" size="24"> </div> </body> </html> Here is the html that uses the downloaded themeroller theme: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> <title>sample</title> <script src="jquery-1.2.6.min.js" language="JavaScript"></script> <link rel="stylesheet" href="jquery-ui-themeroller.css" type="text/css"> <script src="jquery-ui-personalized-1.5.2.min.js" language="JavaScript"></script> <script src="TopMenu.js" language="JavaScript"></script> </head> <body> <input type="button" value="click me!" id="my_button"> <div id="SERVICE03_DLG" class="ui-dialog">please enter something<br><br> <label for="something">somthing:</label>&nbsp;<input name="something" id="something" type="text" maxlength="20" size="24"> </div> </body> </html> As you can see, only the referenced css file and class names are different. Anybody have a clue as to what could be wrong? [1]: http://dev.jquery.com/view/trunk/ui/demos/functional/#ui.dialog
javascript
jquery
user-interface
dialog
null
null
open
A problem with the jquery dialog when using the themeroller css === The [demos][1] for the jquery ui dialog all use the "flora" theme. I wanted a customized theme, so I used the themeroller to generate a css file. When I used it, everything seemed to be working fine, but later I found that I can't control any input element contained in the dialog (i.e, can't type into a text field, can't check checkboxes). Further investigation revealed that this happens if I set the dialog attribute "modal" to true. This doesn't happen when I use the flora theme. Here is the js file: topMenu = { init: function(){ $("#my_button").bind("click", function(){ $("#SERVICE03_DLG").dialog("open"); $("#something").focus(); }); $("#SERVICE03_DLG").dialog({ autoOpen: false, modal: true, resizable: false, title: "my title", overlay: { opacity: 0.5, background: "black" }, buttons: { "OK": function() { alert("hi!"); }, "cancel": function() { $(this).dialog("close"); } }, close: function(){ $("#something").val(""); } }); } } $(document).ready(topMenu.init); Here is the html that uses the flora theme: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> <title>sample</title> <script src="jquery-1.2.6.min.js" language="JavaScript"></script> <link rel="stylesheet" href="flora/flora.all.css" type="text/css"> <script src="jquery-ui-personalized-1.5.2.min.js" language="JavaScript"></script> <script src="TopMenu.js" language="JavaScript"></script> </head> <body> <input type="button" value="click me!" id="my_button"> <div id="SERVICE03_DLG" class="flora">please enter something<br><br> <label for="something">somthing:</label>&nbsp;<input name="something" id="something" type="text" maxlength="20" size="24"> </div> </body> </html> Here is the html that uses the downloaded themeroller theme: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> <title>sample</title> <script src="jquery-1.2.6.min.js" language="JavaScript"></script> <link rel="stylesheet" href="jquery-ui-themeroller.css" type="text/css"> <script src="jquery-ui-personalized-1.5.2.min.js" language="JavaScript"></script> <script src="TopMenu.js" language="JavaScript"></script> </head> <body> <input type="button" value="click me!" id="my_button"> <div id="SERVICE03_DLG" class="ui-dialog">please enter something<br><br> <label for="something">somthing:</label>&nbsp;<input name="something" id="something" type="text" maxlength="20" size="24"> </div> </body> </html> As you can see, only the referenced css file and class names are different. Anybody have a clue as to what could be wrong? [1]: http://dev.jquery.com/view/trunk/ui/demos/functional/#ui.dialog
0
45,604
09/05/2008 12:01:39
905
08/10/2008 09:37:14
3,671
223
Why doesn't C# support implied generic types on class constructors?
C# doesn't require you to specify a generic type parameter if the compiler can infer it, for instance: List<int> myInts = new List<int> {0,1,1, 2,3,5,8,13,21,34,55,89,144,233,377, 610,987,1597,2584,4181,6765}; //this statement is clunky List<string> myStrings = myInts. Select<int,string>( i => i.ToString() ). ToList<string>(); //the type is inferred from the lambda expression //the compiler knows that it's taking an int and //returning a string List<string> myStrings = myInts. Select( i => i.ToString() ). ToList(); This is needed for anonymous types where you don't know what the type parameter would be (in intellisense it shows up as `'a`) because it's added by the compiler. Class-level type parameters don't let you do this: //sample generic class public class GenericDemo<T> { public GenericDemo<T> ( T value ) { GenericTypedProperty = value; } public T GenericTypedProperty {get; set;} } //why can't I do: int anIntValue = 4181; var item = new GenericDemo( anIntValue ); //type inference fails //however I can create a wrapper like this: public static GenericDemo<T> Create<T> ( T value ) { return new GenericDemo<T> ( value ); } //then this works - type inference on the method compiles var item = Create( anIntValue ); Why doesn't C# support this class level generic type inference?
c#
.net
generics
null
null
null
open
Why doesn't C# support implied generic types on class constructors? === C# doesn't require you to specify a generic type parameter if the compiler can infer it, for instance: List<int> myInts = new List<int> {0,1,1, 2,3,5,8,13,21,34,55,89,144,233,377, 610,987,1597,2584,4181,6765}; //this statement is clunky List<string> myStrings = myInts. Select<int,string>( i => i.ToString() ). ToList<string>(); //the type is inferred from the lambda expression //the compiler knows that it's taking an int and //returning a string List<string> myStrings = myInts. Select( i => i.ToString() ). ToList(); This is needed for anonymous types where you don't know what the type parameter would be (in intellisense it shows up as `'a`) because it's added by the compiler. Class-level type parameters don't let you do this: //sample generic class public class GenericDemo<T> { public GenericDemo<T> ( T value ) { GenericTypedProperty = value; } public T GenericTypedProperty {get; set;} } //why can't I do: int anIntValue = 4181; var item = new GenericDemo( anIntValue ); //type inference fails //however I can create a wrapper like this: public static GenericDemo<T> Create<T> ( T value ) { return new GenericDemo<T> ( value ); } //then this works - type inference on the method compiles var item = Create( anIntValue ); Why doesn't C# support this class level generic type inference?
0
45,613
09/05/2008 12:05:42
4,723
09/05/2008 11:19:37
1
1
Javascript collection of DOM objects - why can't I reverse items order with Array.reverse()?
What would be the problem with reversing the array of DOM objects got from a command like: var imagesArr = new Array(); imagesArr = document.getElementById("myDivHolderId").getElementsByTagName("img"); imagesArr.reverse(); When i call the reverse() method, the script stops executing with the error 'imagesArr.reverse is not a function' in Firefox 3 (can be seen in the Error console of the Web developer toolbar). Why the variable 'imagesArr' isn't seen as an array when calling the reverse() method, but at the same time can be iterated through with a for loop and elements can be accessed like imagesArr[i]?
javascript
arrays
null
null
null
null
open
Javascript collection of DOM objects - why can't I reverse items order with Array.reverse()? === What would be the problem with reversing the array of DOM objects got from a command like: var imagesArr = new Array(); imagesArr = document.getElementById("myDivHolderId").getElementsByTagName("img"); imagesArr.reverse(); When i call the reverse() method, the script stops executing with the error 'imagesArr.reverse is not a function' in Firefox 3 (can be seen in the Error console of the Web developer toolbar). Why the variable 'imagesArr' isn't seen as an array when calling the reverse() method, but at the same time can be iterated through with a for loop and elements can be accessed like imagesArr[i]?
0
45,621
09/05/2008 12:16:12
572
08/06/2008 20:56:54
2,903
230
How do you deal with polymorphism in a database?
Example I have Person, SpecialPerson, and User. Person and SpecialPerson are just people - they don't have a user name or password on a site, but they are stored in a database for record keeping. User has all of the same data as Person and potentially SpecialPerson, along with a user name and password as they are registered with the site. ---------- How would you address this problem? Would you have a Person table which stores all data common to a person and use a key to look up their data in SpecialPerson (if they are a special person) and User (if they are a user) and vice-versa?
oop
database-design
null
null
null
null
open
How do you deal with polymorphism in a database? === Example I have Person, SpecialPerson, and User. Person and SpecialPerson are just people - they don't have a user name or password on a site, but they are stored in a database for record keeping. User has all of the same data as Person and potentially SpecialPerson, along with a user name and password as they are registered with the site. ---------- How would you address this problem? Would you have a Person table which stores all data common to a person and use a key to look up their data in SpecialPerson (if they are a special person) and User (if they are a user) and vice-versa?
0
45,623
09/05/2008 12:16:50
4,739
09/05/2008 12:10:19
1
0
Sockets and Processes in Java
In Java, what would the best way be to have a constantly listening port open, and still send upon receipt of a packet. I'm not particularly savvy with network programming at the moment, so the tutorials I've found on the net aren't particularly helpful. Would it make sense to have the listening socket as a serversocket and run it in a separate thread to the socket I'm using to send data to the server? In a loosely related question. Does anyone know if programming simply for java, in netbeans then exporting it for use on a blackberry (using a plugin) the sockets would still work? Thanks in advance for any responses =]
java
sockets
network-programming
blackberry
null
null
open
Sockets and Processes in Java === In Java, what would the best way be to have a constantly listening port open, and still send upon receipt of a packet. I'm not particularly savvy with network programming at the moment, so the tutorials I've found on the net aren't particularly helpful. Would it make sense to have the listening socket as a serversocket and run it in a separate thread to the socket I'm using to send data to the server? In a loosely related question. Does anyone know if programming simply for java, in netbeans then exporting it for use on a blackberry (using a plugin) the sockets would still work? Thanks in advance for any responses =]
0
9,787,860
03/20/2012 13:36:43
1,230,843
02/24/2012 13:23:27
13
2
How to keep NSTimer alive?
I have 2 viewControllers in my app, from first view when i navigate to next one there is a button named startTimer with a timer action as selector method on Click of startTimer the timer starts up in **HH:mm:ss** format, i am not invalidating timer,but When i go back to 1st viewController and again if i come to again 2nd viewController and if i press startTimer button the timer again starts from 0, but i want it to be retained the previous value,how can i achieve this? i know that since i'm loading again the viewController the nib will be loaded freshly to memory but how can i retain the timer label and timer value? Any help is appreciated in advance.thank you.
iphone
objective-c
ios
xcode4
nstimer
null
open
How to keep NSTimer alive? === I have 2 viewControllers in my app, from first view when i navigate to next one there is a button named startTimer with a timer action as selector method on Click of startTimer the timer starts up in **HH:mm:ss** format, i am not invalidating timer,but When i go back to 1st viewController and again if i come to again 2nd viewController and if i press startTimer button the timer again starts from 0, but i want it to be retained the previous value,how can i achieve this? i know that since i'm loading again the viewController the nib will be loaded freshly to memory but how can i retain the timer label and timer value? Any help is appreciated in advance.thank you.
0
9,787,861
03/20/2012 13:36:44
1,277,877
03/19/2012 05:23:08
3
0
inline asm unknown
static inline void *__memset(void *s, char c, size_t n) { int d0, d1; asm volatile ( "rep; stosb;" : "=&c" (d0), "=&D" (d1) : "0" (n), "a" (c), "1" (s) : "memory"); return s; } What are "d0" and "d1" used for? Could you please explain all the code completely?Thank you!
c
assembly
att
null
null
null
open
inline asm unknown === static inline void *__memset(void *s, char c, size_t n) { int d0, d1; asm volatile ( "rep; stosb;" : "=&c" (d0), "=&D" (d1) : "0" (n), "a" (c), "1" (s) : "memory"); return s; } What are "d0" and "d1" used for? Could you please explain all the code completely?Thank you!
0
9,787,862
03/20/2012 13:36:46
1,041,608
11/11/2011 11:34:32
1
0
Character encoding issues in Eclipse for Java using Webdriver
I'm currently using Eclipse with TestNG running selenium webdriver with java. I am using Jexcelapi to import data from OpenOffice (spreadsheet) to compare strings on the website i'm testing with values in the spreadsheet. The problem I have is that we have different regions including germany and Nordics (Sweden, Norway and Denmark). These sites have string characters with accents special characters. This is copied correctly on my spreadsheet and running the scripts in debug mode shows the correct character from the spreadsheet but when i get my results, it displays invalid characters such as ? and whitespace. I have looked through the forum and searched everywhere for the past few days and seen various solutions but none seemed to work. I'm not sure if the problem is with Eclipse, Jexcelapi or OpenOffice. I changed the encoding settings in Eclipse to UTF-8 as advised in some places but still the same problem. I instantiated the class 'WorkbookSettings' and set the encoding and used it with my getWorkbook method and I still get those bad characters that make my scripts show failures. Can anyone help with this please? Thanks in advance
java
encoding
webdriver
jexcelapi
null
null
open
Character encoding issues in Eclipse for Java using Webdriver === I'm currently using Eclipse with TestNG running selenium webdriver with java. I am using Jexcelapi to import data from OpenOffice (spreadsheet) to compare strings on the website i'm testing with values in the spreadsheet. The problem I have is that we have different regions including germany and Nordics (Sweden, Norway and Denmark). These sites have string characters with accents special characters. This is copied correctly on my spreadsheet and running the scripts in debug mode shows the correct character from the spreadsheet but when i get my results, it displays invalid characters such as ? and whitespace. I have looked through the forum and searched everywhere for the past few days and seen various solutions but none seemed to work. I'm not sure if the problem is with Eclipse, Jexcelapi or OpenOffice. I changed the encoding settings in Eclipse to UTF-8 as advised in some places but still the same problem. I instantiated the class 'WorkbookSettings' and set the encoding and used it with my getWorkbook method and I still get those bad characters that make my scripts show failures. Can anyone help with this please? Thanks in advance
0
9,787,868
03/20/2012 13:37:04
864,787
07/27/2011 06:32:09
215
3
Build WebServices layer on top of Drupal
Can someone tell me what's the best way to build a Web Services layer on top of Drupal?
web-services
drupal
layer
null
null
null
open
Build WebServices layer on top of Drupal === Can someone tell me what's the best way to build a Web Services layer on top of Drupal?
0
9,787,871
03/20/2012 13:37:12
1,004,443
10/20/2011 04:15:50
419
0
How do you add additional developers to be part of your AWS account
The following snippet is from AWS docs, if sharing credentials is not the right way. Does it involve additional charges for adding IAM to support multiple developers. > Without IAM, if you want to enable other users to access your AWS > resources, the only way is to share your AWS account credentials. We > do not recommend this approach. Your account credentials enable access > to all AWS resources associated with your account, including your > billing information. For this reasons, we recommend that you never > share your AWS account credentials.
amazon-web-services
amazon
null
null
null
null
open
How do you add additional developers to be part of your AWS account === The following snippet is from AWS docs, if sharing credentials is not the right way. Does it involve additional charges for adding IAM to support multiple developers. > Without IAM, if you want to enable other users to access your AWS > resources, the only way is to share your AWS account credentials. We > do not recommend this approach. Your account credentials enable access > to all AWS resources associated with your account, including your > billing information. For this reasons, we recommend that you never > share your AWS account credentials.
0
9,787,853
03/20/2012 13:36:09
566,942
01/07/2011 13:35:08
100
3
join or merge with overwrite in pandas
I want to perform a join/merge/append operation on a dataframe with datetime index. Let's say I have df1 and I want to add df2 to it. df2 can have less or more columns, and overlapping index. For all rows where the indexes match, if df2 has the same column as df1, I want the values of df1 be overwritten with those from df2. How can i obtain the desired result? Thanks, Roel
python
pandas
null
null
null
null
open
join or merge with overwrite in pandas === I want to perform a join/merge/append operation on a dataframe with datetime index. Let's say I have df1 and I want to add df2 to it. df2 can have less or more columns, and overlapping index. For all rows where the indexes match, if df2 has the same column as df1, I want the values of df1 be overwritten with those from df2. How can i obtain the desired result? Thanks, Roel
0
9,787,883
03/20/2012 13:37:46
1,280,847
03/20/2012 12:14:28
1
0
How make tree whith treebeard in django admin, when FK to other model class?
When FK to self it's work fine: from treebeard.mp_tree import MP_Node class Category(MP_Node): parent = models.ForeignKey('self', blank = True, null = True, related_name='children') title = models.CharField(max_length = 255) But when I use it: class Product(MP_Node): title = models.CharField(max_length = 255) parent = models.ForeignKey(Category) I open at admin this model and there are no some values in drop-down list which represent FK. What I must to do in this situation (FK to other model)?
django-admin
django-treebeard
null
null
null
null
open
How make tree whith treebeard in django admin, when FK to other model class? === When FK to self it's work fine: from treebeard.mp_tree import MP_Node class Category(MP_Node): parent = models.ForeignKey('self', blank = True, null = True, related_name='children') title = models.CharField(max_length = 255) But when I use it: class Product(MP_Node): title = models.CharField(max_length = 255) parent = models.ForeignKey(Category) I open at admin this model and there are no some values in drop-down list which represent FK. What I must to do in this situation (FK to other model)?
0
9,787,884
03/20/2012 13:37:51
1,280,962
03/20/2012 13:11:42
1
0
How to align checkbox list items vertically using sj:checkboxlist..?
This is the code in jsp page using struts2 jquery, <sj:checkboxlist id="checkboxbuttons list="{'one', 'two', 'three', 'four', 'five','six'}" name="echo"/> I want to align all items vertically and I want to fix the width of each items. Now width is depending on the length of the label. Please can anyone help me to find the solution for this?
jquery
struts
null
null
null
null
open
How to align checkbox list items vertically using sj:checkboxlist..? === This is the code in jsp page using struts2 jquery, <sj:checkboxlist id="checkboxbuttons list="{'one', 'two', 'three', 'four', 'five','six'}" name="echo"/> I want to align all items vertically and I want to fix the width of each items. Now width is depending on the length of the label. Please can anyone help me to find the solution for this?
0
9,787,885
03/20/2012 13:37:52
1,280,997
03/20/2012 13:23:17
1
0
Floating elements on scroll
I was wondering how sites like Facebook, with their timeline feature, float a certain element (usually a menu bar, or sometimes a social plugin, etc) when the user has scrolled past a point such that the top of the element is off the screen, etc. This could be seen as a more general JavaScript (jQuery?) event firing when the user has scrolled to a certain element, or scrolled down a certain number of pixels. Obviously it would require toggling the CSS property from: #foo { position: relative; } to #foo { position: fixed; } Or with jQuery, something like: $('#foo').css('position', 'fixed'); Another way I have seen this implemented is with blogs, where a popup will be called when you reach the bottom, or near the bottom of a page. My question is, what is firing that code, and could you link or provide some syntax/ semantics/ examples?
javascript
jquery
css
plugins
null
null
open
Floating elements on scroll === I was wondering how sites like Facebook, with their timeline feature, float a certain element (usually a menu bar, or sometimes a social plugin, etc) when the user has scrolled past a point such that the top of the element is off the screen, etc. This could be seen as a more general JavaScript (jQuery?) event firing when the user has scrolled to a certain element, or scrolled down a certain number of pixels. Obviously it would require toggling the CSS property from: #foo { position: relative; } to #foo { position: fixed; } Or with jQuery, something like: $('#foo').css('position', 'fixed'); Another way I have seen this implemented is with blogs, where a popup will be called when you reach the bottom, or near the bottom of a page. My question is, what is firing that code, and could you link or provide some syntax/ semantics/ examples?
0
9,772,684
03/19/2012 15:11:55
441,621
01/28/2010 23:32:00
229
12
Android: Open application within control of another application
The idea is to launch an application, for example *Angry Birds*, from within my application. However the catch is that my application must remain in control, so that when the user is done with the game he can return to what he was doing in my app. Due to requirements this must be achieved without using the back button, home button or any other hardware buttons. I know it's a long shot but I have to try. Thanks for any help.
android
application
null
null
null
null
open
Android: Open application within control of another application === The idea is to launch an application, for example *Angry Birds*, from within my application. However the catch is that my application must remain in control, so that when the user is done with the game he can return to what he was doing in my app. Due to requirements this must be achieved without using the back button, home button or any other hardware buttons. I know it's a long shot but I have to try. Thanks for any help.
0
9,772,685
03/19/2012 15:12:04
828,757
07/04/2011 21:43:58
722
26
Saving an image received as part of multipart form data using Scala
I'm pulling my hair out here. My server receives multipart form data from a mobile app. The result of printing out the request using request.content.toString(UTF_8) is shown below. I've been sitting for hours trying to save the image content to file, but I keep corrupting the image. The image is sent by the mobile as a base64-encoded string. How to I save it to file. PLEASE help. --*****org.apache.cordova.formBoundary Content-Disposition: form-data; name="value1" Furniture --*****org.apache.cordova.formBoundary Content-Disposition: form-data; name="value2" Chair --*****org.apache.cordova.formBoundary Content-Disposition: form-data; name="file"; filename="image.jpg" Content-Type: image/jpeg ����JFIF��XExifMM*�i&��B�Y��C&@)&##&N8;.@\Qa`[QYXfs�|fl�nXY��������c{�����������C&!&K))K�iYi����������������������������������������������������YB"�� ���}!1AQa"q2���#B��R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz��������������������������������������������������������������������������� ���w!1AQaq"2�B���� #3R�br� $4�%�&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz��������������������������������������������������������������������������?�h��(��(��(��*6�#���ȵ��y=�5�sr�%�\�� ԓP�8&�ɬ�1�祸w?��}���}9���e=���^�ځ�:t� 홿�R�f_L��k${S�@Yq����F���~x�1!�J~s������'��L��7r? �=�Rr� � u�qt�:���,�p������3�s�q@e�Ŭʼ9?���������SG0�l I@Q@Q@Q@Q@Q@Q@Q@Q@Q@Q@Q@Q@Z�غ�.ʥ�d��p�_׸������γE�{P"�9?�w����qNꟇ���֧��O�4��}Gj#?��������zt�1@g�㎢��@���Q�֦�y�?��y��N�4�;t������@����� n�q@==x�A#�3� ��[�h>��G?�u�����;��W��(�|~5a����?<�1�8�@7RB���#�tv�v�8����W.�aǥ>����I���vtTP�&�e_��R�EPEPEPEPEPEPEPEPEPEPEP�#;m�_�r����V>0�؃]F�k�� b{_��YN����%c؏�E*��Њj��=��5!���'�����O����'����^�:�?������^�0G���r����.sϮO� �Ǯ�:���c��Jx������������zi=O��S�>����������@ 8#��\ZA�����������7BG�?C@ ^q�o�:�����R� ������#�נ%�7�?�E��R��x�~�؇�>���B������7+��i�G����C�)�B����(��(��(��(��(��(��(��(��(��(��(�KP��.�,C�\��_�����u�_:�L�~����}�3����>�"��?Q��Q��w���F���s@u�O��!<=��4�1���^�������>����(�?/������֥$�G��F��O�E�}����O�?��^�F���B{���<�� �c��=�������� �{��J���������'_�O��#r ��f�pG����Q��ߏ�()�|�;s�"�}�L5 �ԟZ��$ۥ��K~��U�������V(��(��(��(��(��(��(��(��(��(��(��(��y�Eq�K�-�L�?�D~F�8 �V�hf��?y?Qޱ8�2?�����}���N'����'���50��1@C��_�� 8�?B(Ꟈ����w'�����:����֧_��4�����"�����(ǂG���8)���b��g��!A��'�gT�� �;��S��}G���`Ꟈ�������$;�;T�?�9 �o#�V6o���?Z�����tߨڧ���\�UKIK@Q@Q@Q@Q@Q@Q@Q@Q@Q@Q@Q@Q@ <��.-��{-��?�uLꜳ����3,RC"���0Pha�q������?�ƞїw�qE(� }(Oo�� �?���c�pz�Zx�1�ws�'���_�L~��O���Zv3߯�C��ڞ1��3M��"(�w9�����g��t�3�ئ�9��� ��+�sM��bRqU��r@�wL�h}�?�Q��ե��n}"?�PIEPEPE0ȣ�(�i�h��z��@QP��꿝'�a���@�Q��� ��� (�� (�� (�� (�� (�� (�� (�� �unS+�nv��nMt��Oi4s�x�s�@�u4�%�>��L��&�4�3'���f�ܑ���m}�n��Y�2��ݿ�Jo�Sڀ:�|edWӵ5�cXk���ƂSn�遢^30��?ʞ@������幍������ @8�����Cw���?|����c`�Z@8���<v��B��( �1�1�'�Hvs��U�J"��|V����*����VdN ���[Ã+r��(v��]U4�t�2�j�/�K�.��e��GlPYu�?��<UI5+�:���{Ҟ��� <�Jz���D��?�O �O"��/��y��E�;~�)o�� �K���kV�e�����qQ�xnq� �ǟ�Y`I�\�Q�b(\ܠ?|W� �@��Y��Ei<��2��m�qr��\dT�V���qA���z�@Q@Q@Q@Q@Q@Q@T������2GB8"�� Z�ZXJ��ڿS@��lD�a�z�f� ��h8%T w5.���O+P����Q�M��J��@��x�����#d�:�*��1�I�#�\����G��<�F ���M1e}�?Jxry����$6���I�O֞e>J��OjkJ6�=)�o�����G��r2?��^a�:�=h�P�������ǧ��~on3�(�AϿ4$�bs���U2�#�&.�0:�z��O`Mtz/�yi���b��#��⺏�� J��� Ji�zV{kVH2]����uߴD`�VUn�R=f�����F��+wFӣ��Ms~��s��<�$h2��W{b%� dvv�RԎ�-Y��*9"�O���Q����Z�:A��*EEA�aO�� (�� (�� (�� (�� (�� (�� (�� ��E)}C���}k��KX]ڼ��1�g��2pGZ�pr1U�x$�1V�>s�(�����(�,{R�I����!#=�A��h�� r 4�p8ǽ��i����ۭ<�` ���� Σ�@�9�F�����?ʑ�BP3�'���@o��F�I�� �>��#8$��ҁ�8'9��-��P���,��o���߅l����[�q�1�h��W�.Q���?�tt��)�QEQEQEQEQEQEQEQEQEQEU�2�.ە��+ޯ�@���?�ܸ�5���"��3�]�p�I!;2_�#��d�OZ�ŷ���T��l bc���Tx��'(q�k��,Se�~ܞ��N� �C֮G"M{�ד����rU�gʣ�;����qVT��~�Dg;=��ɠ ����8�O�Z�[ ?���@ �"i����'�^� ؑ����@�R7�<�?� l��?����y��jP+��G��~�ܐd⚿p�c@�9��e@�c'{��R4�aT{W?��H�E��U�PES����z�~�:��u V��(��S�� ��r�ЕS�H;/A��D�#�c�c�f�H��6a�ڟެr�+V�^����0��]?:�E8f�=0e�ޝ\m��=�S����Y�Ev�/ �M\��(��(��(��(��(��(��(��(��(�p��WfI-d ���ܝ�����Wa@ �89sI!��&�`s��20�iĝx�� d��:�%�i���£:(�w�;��h:��JPƀ�)�w�����\~u<2Km� �z��hV�>���C����(�Ẁ��2y&�=�ܻ����1I��=��єl�FҀ(ȅ����S�0~L}x��Lф�N(ޓt�1�n2��Ks�O(�_�ܟΨ��KǥDĒI�ԓM(OQ����0h��zʓ��~Ug�q���|�~T�I��`�G��@�BS��Z�S�'��O��DiU�v�=A������R�'ozЮV<Ƥ�L>��Y\��%� ��z�EPEPEPEPEPEPEPEPJ^�dJ?*�Jr3�=Gj��u-$��,+��$���!$ �ME4D��*V���ӮG �G�r �@$��7P1��Dx��V�)G��*�X��g(�@��ճ��J��Ϗ�)'����sB�'44r����8��5� �wt���6i����kQ�BS���U[k��CW�'=��h1�V7��g���0:��?�Hϑ������Ԁf=��M)$�'�Ӄ���� ��ȣ�8�_z~NO�q�(�3���?_�`���L`��($~4�L�p=)9A�ǫ�����FYN?�O$�#$�OA�[� ��[�ذϥgi�,� ������t`P���(��(��(��(��(��(��(��(���um&�}BI!���`Se�.�,��v8����[O���Ǵ�P)����0Ϗ�v�P,R!1��:��G5���y#d�H�[��-.�^d�fa�d~���w�gp�}�����O��k�K�����+ ��m �v �u;��rcncs�W���}�C�����0�{TqڴE��{v�PO~72@��+�O�>��iи�{�a�D�@:P?��|�ګ�]�n��:�u��"LF �c'�V�k�x�)o�T��f�ya`���[p)�ES�� i6u��qHx<�^*����}�L\���W�k7�����'�Z�3��?'�˟z���M�0�?�BuX�]>�"�!/��ˏCZ�7�eĢ9l�<y��+x���x"X��(0q�@�{�Gs�ɫ�隔����|��z� B@�������?���n�i���ֽ������}���Vh��(��(��(��(��(��(��(��(��(��(��*��r֚t�G���N(Y��m�l�Ƅv'���Z~q��~�� ������捘�4��:����s T�0k��\/�s��OQ�U{{��V4�%������>����]����NLX׵t�dN[�>��F���v��j�1�v�L����Q�Jƀ�٦�~��Y\�*<��Ú s�0�t�3�;׊n��'�3D6�=���ӏ�Hd5 �y`��Pv���M�G����@�t�I��F��7��9�e�&�Y^��ʑ���v��p1B�d�����pG���&��(��(��(��(��(��(��(��(��(��(��(�g�;�^)FQ� MEs�~�1�d���r 0xv��xG���uTP-6�l-DY˓�>��2�R�2��(�R��Aɋ�������ó��d��]���.�o��*��+�� !��u+"��-)����y������ $��p(�9�{sOc���y�K���I�cҊfi3@�v�B��p:~T����4��I0z�⛤��=�Jc�q�I>���Z�n��"��㚱EQEQEQEQEQEQEQEQEQEQEQEQEQE1�e��h�UI5H��r�����k�)�پ��5+>�J��q$��2�U'�g�U���8���Q���=�4CW����Ʌ�$�py��Vx�y����g�g?3��4k50���m)�Fj������dD�,!�$74��e��-d�x��C�� �ՅmE��?������Uدm��W:��4����,C�V��@�Y9?�+j��#�$�%�1�*J(��(��(��(��(��(��(��(��(��(��(��(��*9$H�2:��'%RԮ��e$���Z�}j�.���X�������6z�@d�.�<�I�`j�3?,H�sHe |�A��$�t&S<�?JO0aEރ@ �$�DҚa�Ҥ)��M�R��J�q�j3K��eH%q�r= H%�J�P�n��Sp���U�|C{�Ͳ{0� ħ�OC�����H�BG��ֽ��Wq al�O�pjc>�1[��F�Dο6 ���KEPEPEPEPEPEPEPE0ȃ� i�1ހ%����� �7^����*�ڛ� ���� ���Ws�#�i�u�eU��5�>�y)��sR{�I&�5g�n��F?٬�nC�r�Ԛ�Ԑ��\����(2�����[B�t�񑃚�\�P�2=kSD�I�٧�^1�o�em�����?��9朰�'݊G�!5׍����5�F#�Hi������jEѵ :ZI��:���55���k�qg=��9����Px�7��+gļ���/�5��h"��w+m#�ÚY-.!�Yo*}P�������=�c�7���Bx"��dH��5ZM'O�|֑��F?�pأ����#�E p��#����*E$cښ5c�7>B�!cr��m^�߅�z�u��k�(���3���h�����eW����x� �GqZ�Z��1$�`�j�:�+:Z �>O~���PA�= :�(��(��(� &i�Td�ԓI�3@E&h��4�њvq�AY:���mD��I���G�_��m�8 �ϩ����G�?Zz�$��.OM�5�m�!��FFLc�~5�����~Oκl�&� ����p�}O&�/�)E%U���T{�:�i��9�>��i�f�*�#��#���U�%!Jf��̧����«�(���b9H��N���L8�f�(k����͗q��O�]d0�uc�q�P��/q�,ֶ��β4�����?�W|��.e�i��A��y��J�mC`�W���B�]H��Dnr��[e�2=(��[�E)L����A�q�ڊ�bf��6e�� ��}x�7Zu���4*[�Ã��Mdž�[i��?�lG}��z��dG�qWuݮL����'"�����<V�fp�;�5�^�ݫ�vDHG�(�9����޺O;=��9!ہ\�(d�E�$8<W]���al�)���h�EQEQE����R���#?�T��i�U�h��Ʃӄ��u��_d_���d9��v�~5��u�:�'z�]����j�m�6�r�Eg=k;�6��t&���}��r�tM+�W?L�E�S[�������ܿs@��������7����!qL.)0)�~4��oj 0�2i<�A�f�F=O�A�I�b���ju̯!g �D@J>��f@�N�<����Hc@���3H{�7�J�pz���*1!�L H Dw�aC�¡?AS$ʫ�U5��ʹ���*q&$�ek��&�B���5�I'�Mt�%ݺ�E���@z����A �R�ȍ���\:�S�FEp*��E$�Z��0��9(�!@�EQEQEFx6����*�Z�^[UnW�@h�$��?0�j:)�A�ː�x�L�� E�K��Q�B1Mk)@��~�L�2�|�z�ѕ8`A���iE*܂?ϥ#���t�4��LU�-%^�p���px4( �����zԔ� ���v�p)0(VD�%~{���������#t�m�R 6��Θ��[�;)Д�������N"��������w��D}x� ���\��"�֧M6!�ٛ���T����&����1�c�榠S�K2�2Q{j����t?���^�J( �A{I��r��˭�KEQEQEQEQE%B�ѷl}*z(�����?�/�ӻ�EVqS��żC�c񩨠�b�ES����@d���e~��7�?^+F��6��g���ͼ��Y7�[TP'�/�����<���O��(�#m1��M�U;��c�#��⺚(������b���#>i~����ʏGQ��'�1S��n:�?SW�� �cl�"_ƥH�O��>������(��(��(��(��(��(��(��(�� --*****org.apache.cordova.formBoundary--
image
scala
null
null
null
null
open
Saving an image received as part of multipart form data using Scala === I'm pulling my hair out here. My server receives multipart form data from a mobile app. The result of printing out the request using request.content.toString(UTF_8) is shown below. I've been sitting for hours trying to save the image content to file, but I keep corrupting the image. The image is sent by the mobile as a base64-encoded string. How to I save it to file. PLEASE help. --*****org.apache.cordova.formBoundary Content-Disposition: form-data; name="value1" Furniture --*****org.apache.cordova.formBoundary Content-Disposition: form-data; name="value2" Chair --*****org.apache.cordova.formBoundary Content-Disposition: form-data; name="file"; filename="image.jpg" Content-Type: image/jpeg ����JFIF��XExifMM*�i&��B�Y��C&@)&##&N8;.@\Qa`[QYXfs�|fl�nXY��������c{�����������C&!&K))K�iYi����������������������������������������������������YB"�� ���}!1AQa"q2���#B��R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz��������������������������������������������������������������������������� ���w!1AQaq"2�B���� #3R�br� $4�%�&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz��������������������������������������������������������������������������?�h��(��(��(��*6�#���ȵ��y=�5�sr�%�\�� ԓP�8&�ɬ�1�祸w?��}���}9���e=���^�ځ�:t� 홿�R�f_L��k${S�@Yq����F���~x�1!�J~s������'��L��7r? �=�Rr� � u�qt�:���,�p������3�s�q@e�Ŭʼ9?���������SG0�l I@Q@Q@Q@Q@Q@Q@Q@Q@Q@Q@Q@Q@Z�غ�.ʥ�d��p�_׸������γE�{P"�9?�w����qNꟇ���֧��O�4��}Gj#?��������zt�1@g�㎢��@���Q�֦�y�?��y��N�4�;t������@����� n�q@==x�A#�3� ��[�h>��G?�u�����;��W��(�|~5a����?<�1�8�@7RB���#�tv�v�8����W.�aǥ>����I���vtTP�&�e_��R�EPEPEPEPEPEPEPEPEPEPEP�#;m�_�r����V>0�؃]F�k�� b{_��YN����%c؏�E*��Њj��=��5!���'�����O����'����^�:�?������^�0G���r����.sϮO� �Ǯ�:���c��Jx������������zi=O��S�>����������@ 8#��\ZA�����������7BG�?C@ ^q�o�:�����R� ������#�נ%�7�?�E��R��x�~�؇�>���B������7+��i�G����C�)�B����(��(��(��(��(��(��(��(��(��(��(�KP��.�,C�\��_�����u�_:�L�~����}�3����>�"��?Q��Q��w���F���s@u�O��!<=��4�1���^�������>����(�?/������֥$�G��F��O�E�}����O�?��^�F���B{���<�� �c��=�������� �{��J���������'_�O��#r ��f�pG����Q��ߏ�()�|�;s�"�}�L5 �ԟZ��$ۥ��K~��U�������V(��(��(��(��(��(��(��(��(��(��(��(��y�Eq�K�-�L�?�D~F�8 �V�hf��?y?Qޱ8�2?�����}���N'����'���50��1@C��_�� 8�?B(Ꟈ����w'�����:����֧_��4�����"�����(ǂG���8)���b��g��!A��'�gT�� �;��S��}G���`Ꟈ�������$;�;T�?�9 �o#�V6o���?Z�����tߨڧ���\�UKIK@Q@Q@Q@Q@Q@Q@Q@Q@Q@Q@Q@Q@ <��.-��{-��?�uLꜳ����3,RC"���0Pha�q������?�ƞїw�qE(� }(Oo�� �?���c�pz�Zx�1�ws�'���_�L~��O���Zv3߯�C��ڞ1��3M��"(�w9�����g��t�3�ئ�9��� ��+�sM��bRqU��r@�wL�h}�?�Q��ե��n}"?�PIEPEPE0ȣ�(�i�h��z��@QP��꿝'�a���@�Q��� ��� (�� (�� (�� (�� (�� (�� (�� �unS+�nv��nMt��Oi4s�x�s�@�u4�%�>��L��&�4�3'���f�ܑ���m}�n��Y�2��ݿ�Jo�Sڀ:�|edWӵ5�cXk���ƂSn�遢^30��?ʞ@������幍������ @8�����Cw���?|����c`�Z@8���<v��B��( �1�1�'�Hvs��U�J"��|V����*����VdN ���[Ã+r��(v��]U4�t�2�j�/�K�.��e��GlPYu�?��<UI5+�:���{Ҟ��� <�Jz���D��?�O �O"��/��y��E�;~�)o�� �K���kV�e�����qQ�xnq� �ǟ�Y`I�\�Q�b(\ܠ?|W� �@��Y��Ei<��2��m�qr��\dT�V���qA���z�@Q@Q@Q@Q@Q@Q@T������2GB8"�� Z�ZXJ��ڿS@��lD�a�z�f� ��h8%T w5.���O+P����Q�M��J��@��x�����#d�:�*��1�I�#�\����G��<�F ���M1e}�?Jxry����$6���I�O֞e>J��OjkJ6�=)�o�����G��r2?��^a�:�=h�P�������ǧ��~on3�(�AϿ4$�bs���U2�#�&.�0:�z��O`Mtz/�yi���b��#��⺏�� J��� Ji�zV{kVH2]����uߴD`�VUn�R=f�����F��+wFӣ��Ms~��s��<�$h2��W{b%� dvv�RԎ�-Y��*9"�O���Q����Z�:A��*EEA�aO�� (�� (�� (�� (�� (�� (�� (�� ��E)}C���}k��KX]ڼ��1�g��2pGZ�pr1U�x$�1V�>s�(�����(�,{R�I����!#=�A��h�� r 4�p8ǽ��i����ۭ<�` ���� Σ�@�9�F�����?ʑ�BP3�'���@o��F�I�� �>��#8$��ҁ�8'9��-��P���,��o���߅l����[�q�1�h��W�.Q���?�tt��)�QEQEQEQEQEQEQEQEQEQEU�2�.ە��+ޯ�@���?�ܸ�5���"��3�]�p�I!;2_�#��d�OZ�ŷ���T��l bc���Tx��'(q�k��,Se�~ܞ��N� �C֮G"M{�ד����rU�gʣ�;����qVT��~�Dg;=��ɠ ����8�O�Z�[ ?���@ �"i����'�^� ؑ����@�R7�<�?� l��?����y��jP+��G��~�ܐd⚿p�c@�9��e@�c'{��R4�aT{W?��H�E��U�PES����z�~�:��u V��(��S�� ��r�ЕS�H;/A��D�#�c�c�f�H��6a�ڟެr�+V�^����0��]?:�E8f�=0e�ޝ\m��=�S����Y�Ev�/ �M\��(��(��(��(��(��(��(��(��(�p��WfI-d ���ܝ�����Wa@ �89sI!��&�`s��20�iĝx�� d��:�%�i���£:(�w�;��h:��JPƀ�)�w�����\~u<2Km� �z��hV�>���C����(�Ẁ��2y&�=�ܻ����1I��=��єl�FҀ(ȅ����S�0~L}x��Lф�N(ޓt�1�n2��Ks�O(�_�ܟΨ��KǥDĒI�ԓM(OQ����0h��zʓ��~Ug�q���|�~T�I��`�G��@�BS��Z�S�'��O��DiU�v�=A������R�'ozЮV<Ƥ�L>��Y\��%� ��z�EPEPEPEPEPEPEPEPJ^�dJ?*�Jr3�=Gj��u-$��,+��$���!$ �ME4D��*V���ӮG �G�r �@$��7P1��Dx��V�)G��*�X��g(�@��ճ��J��Ϗ�)'����sB�'44r����8��5� �wt���6i����kQ�BS���U[k��CW�'=��h1�V7��g���0:��?�Hϑ������Ԁf=��M)$�'�Ӄ���� ��ȣ�8�_z~NO�q�(�3���?_�`���L`��($~4�L�p=)9A�ǫ�����FYN?�O$�#$�OA�[� ��[�ذϥgi�,� ������t`P���(��(��(��(��(��(��(��(���um&�}BI!���`Se�.�,��v8����[O���Ǵ�P)����0Ϗ�v�P,R!1��:��G5���y#d�H�[��-.�^d�fa�d~���w�gp�}�����O��k�K�����+ ��m �v �u;��rcncs�W���}�C�����0�{TqڴE��{v�PO~72@��+�O�>��iи�{�a�D�@:P?��|�ګ�]�n��:�u��"LF �c'�V�k�x�)o�T��f�ya`���[p)�ES�� i6u��qHx<�^*����}�L\���W�k7�����'�Z�3��?'�˟z���M�0�?�BuX�]>�"�!/��ˏCZ�7�eĢ9l�<y��+x���x"X��(0q�@�{�Gs�ɫ�隔����|��z� B@�������?���n�i���ֽ������}���Vh��(��(��(��(��(��(��(��(��(��(��*��r֚t�G���N(Y��m�l�Ƅv'���Z~q��~�� ������捘�4��:����s T�0k��\/�s��OQ�U{{��V4�%������>����]����NLX׵t�dN[�>��F���v��j�1�v�L����Q�Jƀ�٦�~��Y\�*<��Ú s�0�t�3�;׊n��'�3D6�=���ӏ�Hd5 �y`��Pv���M�G����@�t�I��F��7��9�e�&�Y^��ʑ���v��p1B�d�����pG���&��(��(��(��(��(��(��(��(��(��(��(�g�;�^)FQ� MEs�~�1�d���r 0xv��xG���uTP-6�l-DY˓�>��2�R�2��(�R��Aɋ�������ó��d��]���.�o��*��+�� !��u+"��-)����y������ $��p(�9�{sOc���y�K���I�cҊfi3@�v�B��p:~T����4��I0z�⛤��=�Jc�q�I>���Z�n��"��㚱EQEQEQEQEQEQEQEQEQEQEQEQEQE1�e��h�UI5H��r�����k�)�پ��5+>�J��q$��2�U'�g�U���8���Q���=�4CW����Ʌ�$�py��Vx�y����g�g?3��4k50���m)�Fj������dD�,!�$74��e��-d�x��C�� �ՅmE��?������Uدm��W:��4����,C�V��@�Y9?�+j��#�$�%�1�*J(��(��(��(��(��(��(��(��(��(��(��(��*9$H�2:��'%RԮ��e$���Z�}j�.���X�������6z�@d�.�<�I�`j�3?,H�sHe |�A��$�t&S<�?JO0aEރ@ �$�DҚa�Ҥ)��M�R��J�q�j3K��eH%q�r= H%�J�P�n��Sp���U�|C{�Ͳ{0� ħ�OC�����H�BG��ֽ��Wq al�O�pjc>�1[��F�Dο6 ���KEPEPEPEPEPEPEPE0ȃ� i�1ހ%����� �7^����*�ڛ� ���� ���Ws�#�i�u�eU��5�>�y)��sR{�I&�5g�n��F?٬�nC�r�Ԛ�Ԑ��\����(2�����[B�t�񑃚�\�P�2=kSD�I�٧�^1�o�em�����?��9朰�'݊G�!5׍����5�F#�Hi������jEѵ :ZI��:���55���k�qg=��9����Px�7��+gļ���/�5��h"��w+m#�ÚY-.!�Yo*}P�������=�c�7���Bx"��dH��5ZM'O�|֑��F?�pأ����#�E p��#����*E$cښ5c�7>B�!cr��m^�߅�z�u��k�(���3���h�����eW����x� �GqZ�Z��1$�`�j�:�+:Z �>O~���PA�= :�(��(��(� &i�Td�ԓI�3@E&h��4�њvq�AY:���mD��I���G�_��m�8 �ϩ����G�?Zz�$��.OM�5�m�!��FFLc�~5�����~Oκl�&� ����p�}O&�/�)E%U���T{�:�i��9�>��i�f�*�#��#���U�%!Jf��̧����«�(���b9H��N���L8�f�(k����͗q��O�]d0�uc�q�P��/q�,ֶ��β4�����?�W|��.e�i��A��y��J�mC`�W���B�]H��Dnr��[e�2=(��[�E)L����A�q�ڊ�bf��6e�� ��}x�7Zu���4*[�Ã��Mdž�[i��?�lG}��z��dG�qWuݮL����'"�����<V�fp�;�5�^�ݫ�vDHG�(�9����޺O;=��9!ہ\�(d�E�$8<W]���al�)���h�EQEQE����R���#?�T��i�U�h��Ʃӄ��u��_d_���d9��v�~5��u�:�'z�]����j�m�6�r�Eg=k;�6��t&���}��r�tM+�W?L�E�S[�������ܿs@��������7����!qL.)0)�~4��oj 0�2i<�A�f�F=O�A�I�b���ju̯!g �D@J>��f@�N�<����Hc@���3H{�7�J�pz���*1!�L H Dw�aC�¡?AS$ʫ�U5��ʹ���*q&$�ek��&�B���5�I'�Mt�%ݺ�E���@z����A �R�ȍ���\:�S�FEp*��E$�Z��0��9(�!@�EQEQEFx6����*�Z�^[UnW�@h�$��?0�j:)�A�ː�x�L�� E�K��Q�B1Mk)@��~�L�2�|�z�ѕ8`A���iE*܂?ϥ#���t�4��LU�-%^�p���px4( �����zԔ� ���v�p)0(VD�%~{���������#t�m�R 6��Θ��[�;)Д�������N"��������w��D}x� ���\��"�֧M6!�ٛ���T����&����1�c�榠S�K2�2Q{j����t?���^�J( �A{I��r��˭�KEQEQEQEQE%B�ѷl}*z(�����?�/�ӻ�EVqS��żC�c񩨠�b�ES����@d���e~��7�?^+F��6��g���ͼ��Y7�[TP'�/�����<���O��(�#m1��M�U;��c�#��⺚(������b���#>i~����ʏGQ��'�1S��n:�?SW�� �cl�"_ƥH�O��>������(��(��(��(��(��(��(��(�� --*****org.apache.cordova.formBoundary--
0
9,787,890
03/20/2012 13:38:00
927,224
09/04/2011 03:22:39
155
1
Assign class false value in Python
If statements in Python allow you to do something like: if not x: print "X is false." This works if you're using an empty list, an empty dictionary, None, 0, etc, but what if you have your own custom class? Can you assign a false value for that class so that in the same style of conditional, it will return false?
python
class
condition
null
null
null
open
Assign class false value in Python === If statements in Python allow you to do something like: if not x: print "X is false." This works if you're using an empty list, an empty dictionary, None, 0, etc, but what if you have your own custom class? Can you assign a false value for that class so that in the same style of conditional, it will return false?
0
9,787,892
03/20/2012 13:38:03
1,000,626
10/18/2011 07:44:34
57
2
WMI Hardware Addresses and IRQs
Can anyone help me out trying to find a WMI method for retrieving hardware addresses and IRQs? The classes I've looked at so far seem a bit empty for telling you what device is actually using the resource - but it must be possible if it's available under Windows' 'System Information' tool. Ultimately I want to create an address map and an IRQ map. I've briefly looked at the following classes: + Win32_DeviceMemoryAddress + Win32_IRQResource and I just this second saw another, but I haven't really looked into it: + Win32_AllocatedResource Maybe pairing it with Win32_PnPEntity?
wmi
address
irq
null
null
null
open
WMI Hardware Addresses and IRQs === Can anyone help me out trying to find a WMI method for retrieving hardware addresses and IRQs? The classes I've looked at so far seem a bit empty for telling you what device is actually using the resource - but it must be possible if it's available under Windows' 'System Information' tool. Ultimately I want to create an address map and an IRQ map. I've briefly looked at the following classes: + Win32_DeviceMemoryAddress + Win32_IRQResource and I just this second saw another, but I haven't really looked into it: + Win32_AllocatedResource Maybe pairing it with Win32_PnPEntity?
0
45,624
09/05/2008 12:17:17
501
08/06/2008 12:11:33
272
11
Change default author in local svn repo
I use TortoiseSVN to access file based local repo. In all my commits an author is my windows login name. Is it possible to use different name ? I know how to change author after commint but how to change before? Installing apache/svnserver is not an option.
svn
tortoisesvn
default
author
null
null
open
Change default author in local svn repo === I use TortoiseSVN to access file based local repo. In all my commits an author is my windows login name. Is it possible to use different name ? I know how to change author after commint but how to change before? Installing apache/svnserver is not an option.
0
45,626
09/05/2008 12:17:42
2,808
08/25/2008 10:24:10
11
3
Using Ajax PageMethods and Validators
I have a basic CRUD form that uses PageMethods to update the user details, however the Validators don't fire off, I think I need to manually inspect the validator status in my javascript save method. Any ideas on how to do this?
asp.net
ajax
null
null
null
null
open
Using Ajax PageMethods and Validators === I have a basic CRUD form that uses PageMethods to update the user details, however the Validators don't fire off, I think I need to manually inspect the validator status in my javascript save method. Any ideas on how to do this?
0
45,627
09/05/2008 12:18:00
123
08/02/2008 08:01:26
1,049
53
How do you detect/avoid Memory leaks in your (Unmanaged) code?
In unmanaged C/C++ code, what are the best practices to detect memory leaks? and coding guidelines to avoid (as if its that simple ;) we have used bit silly way in past. Having a counter increments for every memory allocation call and decrement while freeing. At the end of the program, counter value should be zero. I know this is not a great way and few catches are there. (For instance, if you are freeing memory which was allocated by the platform api call, your count is not exactly reflecting the correct number of matching free. Ofcourse, then we incremented the counter when calling such API calls which allocates memory) I am expecting your experiences, suggestions and maybe some references to tools which simplify this. Cheers
c++
c
memory-leaks
null
null
null
open
How do you detect/avoid Memory leaks in your (Unmanaged) code? === In unmanaged C/C++ code, what are the best practices to detect memory leaks? and coding guidelines to avoid (as if its that simple ;) we have used bit silly way in past. Having a counter increments for every memory allocation call and decrement while freeing. At the end of the program, counter value should be zero. I know this is not a great way and few catches are there. (For instance, if you are freeing memory which was allocated by the platform api call, your count is not exactly reflecting the correct number of matching free. Ofcourse, then we incremented the counter when calling such API calls which allocates memory) I am expecting your experiences, suggestions and maybe some references to tools which simplify this. Cheers
0
45,642
09/05/2008 12:25:13
1,210
08/13/2008 13:16:33
1
0
Library or algorithm to explode an alphanumeric range
I was wondering if there is an open source library or algorithm that can expand a non-numeric range. For example, if you have 1A to 9A you should get 1A, 2A, 3A, 4A, 5A, 6A, 7A, 8A, 9A. I've tried Googling for this and the best I could come up with were Regex that would expand numerics with dashes (1-3 becoming 1,2,3).
.net
algorithm
null
null
null
null
open
Library or algorithm to explode an alphanumeric range === I was wondering if there is an open source library or algorithm that can expand a non-numeric range. For example, if you have 1A to 9A you should get 1A, 2A, 3A, 4A, 5A, 6A, 7A, 8A, 9A. I've tried Googling for this and the best I could come up with were Regex that would expand numerics with dashes (1-3 becoming 1,2,3).
0
45,650
09/05/2008 12:27:52
194
08/03/2008 10:56:49
2,202
146
Common Files in Visual Studio Solution
Many times I have seen Visual Studio solutions which have multiple projects that share source files. These common source files are usually out in a common directory and in the solution explorer their icon shows up with a link arrow in the bottom left. However, any time I try to add a source file to the project that is outside of that project's main directory, it just automatically copies it into the directory so that I no longer have a shared copy. I found that I can get around this by manually opening the project file in a text editor and modifying the path to something like "../../../Common/Source.cs" but this is more of a hack then I would like. Is there a setting or something I can change that will allow me to do this from within the IDE?
visual-studio
null
null
null
null
null
open
Common Files in Visual Studio Solution === Many times I have seen Visual Studio solutions which have multiple projects that share source files. These common source files are usually out in a common directory and in the solution explorer their icon shows up with a link arrow in the bottom left. However, any time I try to add a source file to the project that is outside of that project's main directory, it just automatically copies it into the directory so that I no longer have a shared copy. I found that I can get around this by manually opening the project file in a text editor and modifying the path to something like "../../../Common/Source.cs" but this is more of a hack then I would like. Is there a setting or something I can change that will allow me to do this from within the IDE?
0
45,651
09/05/2008 12:27:58
184
08/03/2008 05:34:19
2,002
31
SQL: How to get the id of values I just INSERTed?
I inserted some values into a table. There is a column whose value is auto-generated. In the next statement of my code, I want to retrieve this value. Can you tell me how to do it the right way?
sql
null
null
null
null
null
open
SQL: How to get the id of values I just INSERTed? === I inserted some values into a table. There is a column whose value is auto-generated. In the next statement of my code, I want to retrieve this value. Can you tell me how to do it the right way?
0
45,653
09/05/2008 12:29:03
2,757
08/24/2008 21:53:16
329
18
Has anyone connected BizTalk with QuickBooks?
We use QuickBooks for financial management, and feed it from a variety of sources. I now need to hook it up to BizTalk, and I'd hate to reinvent the wheel. I've done searches, and as far as I can tell there's no QuickBooks adapter for BizTalk. Does anyone know of anything that'll do the job, preferably something that doesn't suck?
biztalk
quickbooks
null
null
null
null
open
Has anyone connected BizTalk with QuickBooks? === We use QuickBooks for financial management, and feed it from a variety of sources. I now need to hook it up to BizTalk, and I'd hate to reinvent the wheel. I've done searches, and as far as I can tell there's no QuickBooks adapter for BizTalk. Does anyone know of anything that'll do the job, preferably something that doesn't suck?
0
45,686
09/05/2008 12:40:05
130,278
09/02/2008 03:00:54
20
10
Is there a limit with the number of SSL connections?
Is there a limit with the number of SSL connections?
ssl
null
null
null
null
null
open
Is there a limit with the number of SSL connections? === Is there a limit with the number of SSL connections?
0
45,695
09/05/2008 12:44:19
4,140
09/02/2008 01:10:54
198
22
Visual Studio Add-in not going away
Ok, so I demo'd Refactor Pro and Resharper, I'm more comfortable with Resharper so that's what I bought. When I uninstalled Refactor Pro I thought everything was breezy. However, now when I open Visual Studio I get The Add-in 'DevExpress Tools' failed to load or caused and exception, woudl you like to remove this Add in? If you choose yes, the file it was loaded from, 'C:\ProgramData\Application Data\Microsoft\MSEnvShared\Addins\DevExpressToolsOrcas.Addin' will be renamed. I hit yes, then get: "Could Now rename Add-in file "C:\ProgramData\Application Data\Microsoft\MSEnvShared\Addins\DevExpressToolsOrcas.Addin" This happens every time, I went to that location and there is not folder by that name. I searched for that file and nothing. Anyone experience a clingy add-in?
visual-studio
software-tools
null
null
null
null
open
Visual Studio Add-in not going away === Ok, so I demo'd Refactor Pro and Resharper, I'm more comfortable with Resharper so that's what I bought. When I uninstalled Refactor Pro I thought everything was breezy. However, now when I open Visual Studio I get The Add-in 'DevExpress Tools' failed to load or caused and exception, woudl you like to remove this Add in? If you choose yes, the file it was loaded from, 'C:\ProgramData\Application Data\Microsoft\MSEnvShared\Addins\DevExpressToolsOrcas.Addin' will be renamed. I hit yes, then get: "Could Now rename Add-in file "C:\ProgramData\Application Data\Microsoft\MSEnvShared\Addins\DevExpressToolsOrcas.Addin" This happens every time, I went to that location and there is not folder by that name. I searched for that file and nothing. Anyone experience a clingy add-in?
0
45,702
09/05/2008 12:46:24
184
08/03/2008 05:34:19
2,032
32
Is there some way to compile a .NET application to native code?
What if I want to run a .NET application in a machine where the .NET framework is not available? Is there some way to compile the application to native code?
.net
compilation
null
null
null
null
open
Is there some way to compile a .NET application to native code? === What if I want to run a .NET application in a machine where the .NET framework is not available? Is there some way to compile the application to native code?
0
45,705
09/05/2008 12:48:42
87,645
08/18/2008 12:12:41
13
1
how would you architect a desktop application in C# 3.0
I've created a simple desktop application in C# 3.0 to learn some C#, wpf and .net. My application essentially reads data from a csv file and stores it in a SQL server CE database. I use sqlmetal to generate the ORM code for the database. My first iteration of this app is ugly as hell and I'm in the process of refactoring it. Which brings me to my question. How would architect a dekstop databse app in C#? What are the best practises? Do you create a Database Abstraction Layer (DAL) which uses the sqlmetal generated code? Or is the generated code enough of an abstraction? If you use DAL pattern, do make it singleton or static member? Do you use the View-Model-ModelView pattern with DAL pattern? Apologies if this seems like a long open ended question, but I have been given this a lot of thought recently. I see a lot of examples on how to architect and enterprise n-tier app in C# but not that many on a standalone desktop app.
c#
architecture
wpf
null
null
null
open
how would you architect a desktop application in C# 3.0 === I've created a simple desktop application in C# 3.0 to learn some C#, wpf and .net. My application essentially reads data from a csv file and stores it in a SQL server CE database. I use sqlmetal to generate the ORM code for the database. My first iteration of this app is ugly as hell and I'm in the process of refactoring it. Which brings me to my question. How would architect a dekstop databse app in C#? What are the best practises? Do you create a Database Abstraction Layer (DAL) which uses the sqlmetal generated code? Or is the generated code enough of an abstraction? If you use DAL pattern, do make it singleton or static member? Do you use the View-Model-ModelView pattern with DAL pattern? Apologies if this seems like a long open ended question, but I have been given this a lot of thought recently. I see a lot of examples on how to architect and enterprise n-tier app in C# but not that many on a standalone desktop app.
0
45,716
09/05/2008 12:53:40
1,214
08/13/2008 13:22:40
18
0
How to do multi-column sorting on a Visual Basic 6 ListView?
I am working in Visual Basic 6 and need to sort by multiple columns in a ListView. For example, sorting a list of music tracks by artist, then album, then track number. As far as I know, VB6 does not support this out of the box. Here are the suggestions I have already heard: - Sort the data in a SQL table first and display the data in the resulting order - Sort the data in an ADO recordset object in memory - Sort by the primary column and then perform a sort algorithm on the items, moving them around into the correct positions manually Does anyone have experience with multiple-column sorting in VB6 who could lend advice?
sql-server
vb6
sorting
null
null
null
open
How to do multi-column sorting on a Visual Basic 6 ListView? === I am working in Visual Basic 6 and need to sort by multiple columns in a ListView. For example, sorting a list of music tracks by artist, then album, then track number. As far as I know, VB6 does not support this out of the box. Here are the suggestions I have already heard: - Sort the data in a SQL table first and display the data in the resulting order - Sort the data in an ADO recordset object in memory - Sort by the primary column and then perform a sort algorithm on the items, moving them around into the correct positions manually Does anyone have experience with multiple-column sorting in VB6 who could lend advice?
0
45,729
09/05/2008 12:58:57
95
08/01/2008 18:28:24
373
30
What path should I pass as an AssemblyPath parameter to the Publish.GacRemove function?
I want to use the [Publish.GacRemove][1] function to remove an assembly from GAC. However, I don't understand what path I should pass as an argument. Should it be a path to the original DLL (what if I removed it after installing it in the GAC?) or the path to the assembly in the GAC? [1]: http://msdn.microsoft.com/en-us/library/system.enterpriseservices.internal.publish.gacremove(VS.80).aspx
.net
gac
null
null
null
null
open
What path should I pass as an AssemblyPath parameter to the Publish.GacRemove function? === I want to use the [Publish.GacRemove][1] function to remove an assembly from GAC. However, I don't understand what path I should pass as an argument. Should it be a path to the original DLL (what if I removed it after installing it in the GAC?) or the path to the assembly in the GAC? [1]: http://msdn.microsoft.com/en-us/library/system.enterpriseservices.internal.publish.gacremove(VS.80).aspx
0
45,732
09/05/2008 13:01:34
1,228
08/13/2008 13:58:55
1,142
85
How can I extract a part of an xaml object graph via linq to xml?
I have an object graph serialized to xaml. A rough sample of what it looks like is: <MyObject xmlns.... > <MyObject.TheCollection> <PolymorphicObjectOne .../> <HiImPolymorphic ... /> </MyObject.TheCollection> </MyObject> I want to use Linq to XML in order to extract the serialized objects within the TheCollection. Note: MyObject may be named differently at runtime; I'm interested in any object that implements the same interface, which has a public collection called TheCollection that contains types of IPolymorphicLol. The only things I know at runtime are the depth at which I will find the collection and that the collection element is named *.TheCollection. Everything else will change. The xml will be retrieved from a database using Linq; if I could combine both queries so instead of getting the entire serialized graph and then extracting the collection objects I would just get back the collection that would be sweet.
linq
linqtoxml
linqtosql
xaml
null
null
open
How can I extract a part of an xaml object graph via linq to xml? === I have an object graph serialized to xaml. A rough sample of what it looks like is: <MyObject xmlns.... > <MyObject.TheCollection> <PolymorphicObjectOne .../> <HiImPolymorphic ... /> </MyObject.TheCollection> </MyObject> I want to use Linq to XML in order to extract the serialized objects within the TheCollection. Note: MyObject may be named differently at runtime; I'm interested in any object that implements the same interface, which has a public collection called TheCollection that contains types of IPolymorphicLol. The only things I know at runtime are the depth at which I will find the collection and that the collection element is named *.TheCollection. Everything else will change. The xml will be retrieved from a database using Linq; if I could combine both queries so instead of getting the entire serialized graph and then extracting the collection objects I would just get back the collection that would be sweet.
0
45,736
09/05/2008 13:03:03
1,220
08/13/2008 13:44:48
1,021
77
apache mod_proxy error os10060 and returning 503?
Can't get to my site. Log Message: [Fri Sep 05 08:47:42 2008] [error] (OS 10060)A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. : proxy: HTTP: attempt to connect to 10.10.10.1:80 (10.10.10.1) failed
apache
proxy
null
null
null
null
open
apache mod_proxy error os10060 and returning 503? === Can't get to my site. Log Message: [Fri Sep 05 08:47:42 2008] [error] (OS 10060)A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. : proxy: HTTP: attempt to connect to 10.10.10.1:80 (10.10.10.1) failed
0
45,741
09/05/2008 13:04:44
1,360
08/14/2008 18:11:31
48
11
Customize the Sharepoint add list column page
I have defined a custom Sharepoint list for special attributes related to a software application inventory and installed it as a feature. I also want to group these attributes in categories. How could I change the Sharepoint page that allows the user to add a column to a list, so that when the user adds a column to my custom list type (column = attribute) he'll have a dropdown to choose the category?
sharepoint
list
null
null
null
null
open
Customize the Sharepoint add list column page === I have defined a custom Sharepoint list for special attributes related to a software application inventory and installed it as a feature. I also want to group these attributes in categories. How could I change the Sharepoint page that allows the user to add a column to a list, so that when the user adds a column to my custom list type (column = attribute) he'll have a dropdown to choose the category?
0
45,744
09/05/2008 13:05:10
1,068
08/12/2008 08:44:09
23
5
Code Profiling in Visual Studio 2005
I have a Visual Studio 2005 Solution workspace which in turn has 8 projects included in it. I want to profile the complete code(all the projects) and get some measure about the absolute cycles taken by each function to execute, or at least percentage cycle consumptions. I checked out help for VS 2005, and also the project setiings options but could not find any pointers on hwo to get the profile info. Any help regarding this would be beneficial. -AD.
profiling
in
studio
visual
2005
null
open
Code Profiling in Visual Studio 2005 === I have a Visual Studio 2005 Solution workspace which in turn has 8 projects included in it. I want to profile the complete code(all the projects) and get some measure about the absolute cycles taken by each function to execute, or at least percentage cycle consumptions. I checked out help for VS 2005, and also the project setiings options but could not find any pointers on hwo to get the profile info. Any help regarding this would be beneficial. -AD.
0
45,769
09/05/2008 13:12:18
4,225
09/02/2008 12:50:15
11
3
Managing/Using libraries with Debug builds vs Release builds
I'm curious about everyones practices when it comes to using or distributing libraries for an application that you write. First of all, when developing your application do you link the debug or release version of the libraries? (For when you run your application in debug mode) Then when you run your app in release mode just before deploying, which build of the libraries do you use? How do you perform the switch between your debug and release version of the libraries? Do you do it manually, do you use macros, or whatever else is it that you do?
untagged
null
null
null
null
null
open
Managing/Using libraries with Debug builds vs Release builds === I'm curious about everyones practices when it comes to using or distributing libraries for an application that you write. First of all, when developing your application do you link the debug or release version of the libraries? (For when you run your application in debug mode) Then when you run your app in release mode just before deploying, which build of the libraries do you use? How do you perform the switch between your debug and release version of the libraries? Do you do it manually, do you use macros, or whatever else is it that you do?
0
45,779
09/05/2008 13:17:38
1,111
08/12/2008 12:40:23
112
18
C# Dynamic Event Subscription
How would you dynamically subscribe to a C# event so that given a Object instance and a String name containing the name of the event, you subscribe to that event and do something (write to the console for example) when that event has been fired? It would seem using Reflection this isn't possible and I would like to avoid having to use Reflection.Emit if possible, as this currently (to me) seems like the only way of doing it.
c#
reflection
events
null
null
null
open
C# Dynamic Event Subscription === How would you dynamically subscribe to a C# event so that given a Object instance and a String name containing the name of the event, you subscribe to that event and do something (write to the console for example) when that event has been fired? It would seem using Reflection this isn't possible and I would like to avoid having to use Reflection.Emit if possible, as this currently (to me) seems like the only way of doing it.
0
45,783
09/05/2008 13:18:23
4,734
09/05/2008 11:57:36
1
0
Automate Deployment for Web Applications?
My team is currently trying to automate the deployment of our .Net and PHP web applications. We want to streamline deployments, and to avoid the hassle and many of the headaches caused by doing it manually. We require a solution that will enable us to: - Compile the application - Version the application with the SVN version number - Backup the existing site - Deploy to a web farm All our apps are source controlled using SVN and our .Net apps use CruiseControl. We have been trying to use MSBuild and NAnt deployment scripts with limited success. We have also used Capistrano in the past, but wish to avoid using Ruby if possible. Are there any other deployment tools out there that would help us?
.net
php
deployment
web-applications
automatic
null
open
Automate Deployment for Web Applications? === My team is currently trying to automate the deployment of our .Net and PHP web applications. We want to streamline deployments, and to avoid the hassle and many of the headaches caused by doing it manually. We require a solution that will enable us to: - Compile the application - Version the application with the SVN version number - Backup the existing site - Deploy to a web farm All our apps are source controlled using SVN and our .Net apps use CruiseControl. We have been trying to use MSBuild and NAnt deployment scripts with limited success. We have also used Capistrano in the past, but wish to avoid using Ruby if possible. Are there any other deployment tools out there that would help us?
0
45,792
09/05/2008 13:21:09
797
08/09/2008 02:14:04
1,379
48
Forking background processes from a Perl CGI script on Windows
I've had some trouble forking of processes from a Perl CGI script when running on Windows. The main issue seems to be that 'fork' is emulated when running on windows, and doesn't actually seem to create a new process (just another thread in the current one). This means that web servers (like IIS) which are waiting for the process to finish continue waiting until the 'background' process finishes. Is there a way of forking off a background process form a CGI script under Windows? Even better, is there a single function I can call which will do this in a cross platform way? (And just to make life extra difficult, I'd really like a good way to redirect the forked processes output to a file at the same time).
windows
perl
cgi
null
null
null
open
Forking background processes from a Perl CGI script on Windows === I've had some trouble forking of processes from a Perl CGI script when running on Windows. The main issue seems to be that 'fork' is emulated when running on windows, and doesn't actually seem to create a new process (just another thread in the current one). This means that web servers (like IIS) which are waiting for the process to finish continue waiting until the 'background' process finishes. Is there a way of forking off a background process form a CGI script under Windows? Even better, is there a single function I can call which will do this in a cross platform way? (And just to make life extra difficult, I'd really like a good way to redirect the forked processes output to a file at the same time).
0
45,803
09/05/2008 13:24:01
4,737
09/05/2008 12:03:38
1
2
Service to make an audio podcast from a video one?
1. Video podcast 2. ??? 3. Audio only mp3 player I'm looking for somewhere which will extract audio from video, but instead of a single file, for an on going video podcast. I would most like a website which would suck in the RSS and spit out an RSS (I'm thinking of something like Feedburner), though would settle for something on my own machine. If it must be on my machine, it should be quick, transparent, and automatic when I download each episode. What would you use?
video
audio
podcast
null
null
null
open
Service to make an audio podcast from a video one? === 1. Video podcast 2. ??? 3. Audio only mp3 player I'm looking for somewhere which will extract audio from video, but instead of a single file, for an on going video podcast. I would most like a website which would suck in the RSS and spit out an RSS (I'm thinking of something like Feedburner), though would settle for something on my own machine. If it must be on my machine, it should be quick, transparent, and automatic when I download each episode. What would you use?
0
45,813
09/05/2008 13:28:16
3,291
08/27/2008 17:46:47
8
0
WPF Get Element(s) under mouse
Is there a way with WPF to get an array of elements under the mouse on a MouseMove event?
wpf
element
visualtree
visualtreehelper
null
null
open
WPF Get Element(s) under mouse === Is there a way with WPF to get an array of elements under the mouse on a MouseMove event?
0
45,822
09/05/2008 13:30:58
304
08/04/2008 13:54:38
1,192
49
Are there any good icon sites to complement Apache License 2.0?
I'm writing a small GUI application that will be released under the [Apache License 2.0][1]. I'd like to pretty it up using some free icons. [Of course, just pirating content is wrong.][6] I'd like the copyright license of any images to complement that of the application - that is, permissive use of the content with appropriate attribution (including derivative, closed source and commercial use). The [Creative Commons Attribution][2] license seems to be the most appropriate fit (as opposed to the terms of [other Creative Commons licenses][3]). Public domain images are good too, of course, but many sites hosting them tend to be sloppy about noting their origin (raising the possibility of a lack of due diligence). I've had some success using [Google][4] and [Search by Creative Commons][5], but this is still a rather haphazard approach. **Are there any websites dedicated to hosting icon sets suitable for Apache licenses?** Trawling through various sites and checking the small print is somewhat tedious. **Have you come across any blogs that link to such works?** [1]: http://www.apache.org/licenses/LICENSE-2.0.html [2]: http://creativecommons.org/licenses/by/3.0/ [3]: http://creativecommons.org/licenses [4]: http://www.google.com [5]: http://search.creativecommons.org/ [6]: http://www.youtube.com/watch?v=MTbX1aMajow
licensing
icons
null
null
null
null
open
Are there any good icon sites to complement Apache License 2.0? === I'm writing a small GUI application that will be released under the [Apache License 2.0][1]. I'd like to pretty it up using some free icons. [Of course, just pirating content is wrong.][6] I'd like the copyright license of any images to complement that of the application - that is, permissive use of the content with appropriate attribution (including derivative, closed source and commercial use). The [Creative Commons Attribution][2] license seems to be the most appropriate fit (as opposed to the terms of [other Creative Commons licenses][3]). Public domain images are good too, of course, but many sites hosting them tend to be sloppy about noting their origin (raising the possibility of a lack of due diligence). I've had some success using [Google][4] and [Search by Creative Commons][5], but this is still a rather haphazard approach. **Are there any websites dedicated to hosting icon sets suitable for Apache licenses?** Trawling through various sites and checking the small print is somewhat tedious. **Have you come across any blogs that link to such works?** [1]: http://www.apache.org/licenses/LICENSE-2.0.html [2]: http://creativecommons.org/licenses/by/3.0/ [3]: http://creativecommons.org/licenses [4]: http://www.google.com [5]: http://search.creativecommons.org/ [6]: http://www.youtube.com/watch?v=MTbX1aMajow
0
45,824
09/05/2008 13:31:57
3,404
08/28/2008 13:13:02
219
15
Counting number of views for a page ignoring search engines?
I notice that Stack Overflow has a views count for each question and that these view numbers are fairly low and accurate. I have a similar thing on one of my sites. It basically logs a "hit" whenever the page is loaded in the backend code. Unfortunately it also does this for search engine hits giving bloated and inaccurate numbers. I guess one way to not count a robot would be to do the view counting with an AJAX call once the page has loaded, but I'm sure there's other, better ways to ignore search engines in your hit counters whilst still letting them in to crawl your site. Do you know any?
search-engine
null
null
null
null
null
open
Counting number of views for a page ignoring search engines? === I notice that Stack Overflow has a views count for each question and that these view numbers are fairly low and accurate. I have a similar thing on one of my sites. It basically logs a "hit" whenever the page is loaded in the backend code. Unfortunately it also does this for search engine hits giving bloated and inaccurate numbers. I guess one way to not count a robot would be to do the view counting with an AJAX call once the page has loaded, but I'm sure there's other, better ways to ignore search engines in your hit counters whilst still letting them in to crawl your site. Do you know any?
0
45,827
09/05/2008 13:33:44
305
08/04/2008 14:04:19
1,793
109
How do you automatically set the focus to a textbox when a web page loads?
OK, this has to be insanely easy but I honestly don't know how to do it. How do you automatically set the focus to a textbox when a web page loads? Is there an HTML tag to do it or does it have to be done via javascript?
javascript
html
null
null
null
null
open
How do you automatically set the focus to a textbox when a web page loads? === OK, this has to be insanely easy but I honestly don't know how to do it. How do you automatically set the focus to a textbox when a web page loads? Is there an HTML tag to do it or does it have to be done via javascript?
0
45,838
09/05/2008 13:37:33
3,475
08/28/2008 17:53:18
66
4
How many app.config files are you allowed to have per AppDomain?
I'm hoping there's a way to avoid custom configuration files if an application runs in a single AppDomain.
.net
configuration
null
null
null
null
open
How many app.config files are you allowed to have per AppDomain? === I'm hoping there's a way to avoid custom configuration files if an application runs in a single AppDomain.
0
45,841
09/05/2008 13:38:12
3,268
08/12/2008 03:24:22
1
0
What is the Best Practice to Kick-off Maintenance Process on ASP.NET
Given an ASP.NET application, I need to run a maintenance process on a regular basis (daily, hourly, etc.). What's the best way to accomplish this without relying on an external process like a scheduled task on the server (assume I don't have access to the server - shared hosting environment).
asp.net
maintenance
null
null
null
null
open
What is the Best Practice to Kick-off Maintenance Process on ASP.NET === Given an ASP.NET application, I need to run a maintenance process on a regular basis (daily, hourly, etc.). What's the best way to accomplish this without relying on an external process like a scheduled task on the server (assume I don't have access to the server - shared hosting environment).
0
45,846
09/05/2008 13:39:46
2,141
08/20/2008 14:38:34
365
5
Web Design for Google Chrome
What, if any, considerations (HTML, CSS, JavaScript) should you take when designing for Google Chrome?
chrome
null
null
null
null
null
open
Web Design for Google Chrome === What, if any, considerations (HTML, CSS, JavaScript) should you take when designing for Google Chrome?
0
45,861
09/05/2008 13:45:21
4,748
09/05/2008 12:44:55
1
1
How do I get js2-mode to use spaces instead of tabs in Emacs?
I am using [js2-mode][1] to edit Javascript in Emacs, but I can't seem to get it to stop using tabs instead of spaces for indentation. My other modes work fine, just having issues w/ js2. [1]: http://code.google.com/p/js2-mode/
javascript
ide
emacs
js2-mode
null
null
open
How do I get js2-mode to use spaces instead of tabs in Emacs? === I am using [js2-mode][1] to edit Javascript in Emacs, but I can't seem to get it to stop using tabs instead of spaces for indentation. My other modes work fine, just having issues w/ js2. [1]: http://code.google.com/p/js2-mode/
0
45,865
09/05/2008 13:48:32
4,513
09/04/2008 12:30:30
28
0
Can you disable the back button in a JFace wizard?
I'm writing a wizard for an Eclipse RCP application. After doing some processing on a file and taking some user input, I don't want to let the user go back to make changes. At this point they must either accept or reject the changes they are about to make to the system. What I can't seem to find is a method call that lets me override the buttons that display or the user's ability to hit the back button. I'd prefer that it not be there or at least be disabled. Has anyone found a way to do this using the [JFace Wizard][1] and [WizardPage][2]? Usability-wise, am I breaking wizard conventions? Should I consider a different approach to the problem? [1]: http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/jface/wizard/package-summary.html [2]: http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/jface/wizard/package-summary.html
java
eclipse
rcp
wizard
jface
null
open
Can you disable the back button in a JFace wizard? === I'm writing a wizard for an Eclipse RCP application. After doing some processing on a file and taking some user input, I don't want to let the user go back to make changes. At this point they must either accept or reject the changes they are about to make to the system. What I can't seem to find is a method call that lets me override the buttons that display or the user's ability to hit the back button. I'd prefer that it not be there or at least be disabled. Has anyone found a way to do this using the [JFace Wizard][1] and [WizardPage][2]? Usability-wise, am I breaking wizard conventions? Should I consider a different approach to the problem? [1]: http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/jface/wizard/package-summary.html [2]: http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/jface/wizard/package-summary.html
0
45,879
09/05/2008 13:59:07
4,497
09/04/2008 08:49:10
1
2
MySQL Partitioning / Sharding / Splitting - which way to go?
We have an InnoDB database that is about 70 GB and we expect it to grow to several hundred GB in the next 2 to 3 years. About 60 % of the data belong to a single table. Currently the database is working quite well as we have a server with 64 GB of RAM, so almost the whole database fits into memory, but we’re concerned about the future when the amount of data will be considerably larger. Right now we’re considering some way of splitting up the tables (especially the one that accounts for the biggest part of the data) and I’m now wondering, what would be the best way to do it. The options I’m currently aware of are - Using MySQL Partitioning that comes with version 5.1 - Using some kind of third party library that encapsulates the partitioning of the data (like hibernate shards) - Implementing it ourselves inside our application Our application is built on J2EE and EJB 2.1 (hopefully we’re switching to EJB 3 some day). What would you suggest?
mysql
partitioning
sharding
null
null
null
open
MySQL Partitioning / Sharding / Splitting - which way to go? === We have an InnoDB database that is about 70 GB and we expect it to grow to several hundred GB in the next 2 to 3 years. About 60 % of the data belong to a single table. Currently the database is working quite well as we have a server with 64 GB of RAM, so almost the whole database fits into memory, but we’re concerned about the future when the amount of data will be considerably larger. Right now we’re considering some way of splitting up the tables (especially the one that accounts for the biggest part of the data) and I’m now wondering, what would be the best way to do it. The options I’m currently aware of are - Using MySQL Partitioning that comes with version 5.1 - Using some kind of third party library that encapsulates the partitioning of the data (like hibernate shards) - Implementing it ourselves inside our application Our application is built on J2EE and EJB 2.1 (hopefully we’re switching to EJB 3 some day). What would you suggest?
0
45,882
09/05/2008 14:00:26
4,407
09/03/2008 14:57:06
124
8
View TFS checkin history across branches?
In TFS when you merge branch A to branch B and checkin, you get a single changeset on B (typically with a comment like "merged A->B"). This means B doesn't have any of the checkin history from A. So if someone created a new file on branch A, you can't tell who created it from branch B. And if someone updated a file on A, you can't tell who did the update from branch B. Is there any way to see this kind of detailed changeset history across branches? Some kind of power toy, or third party tool, or anything?
tfs
merge
branch
null
null
null
open
View TFS checkin history across branches? === In TFS when you merge branch A to branch B and checkin, you get a single changeset on B (typically with a comment like "merged A->B"). This means B doesn't have any of the checkin history from A. So if someone created a new file on branch A, you can't tell who created it from branch B. And if someone updated a file on A, you can't tell who did the update from branch B. Is there any way to see this kind of detailed changeset history across branches? Some kind of power toy, or third party tool, or anything?
0
45,888
09/05/2008 14:05:34
1,414
08/15/2008 15:07:31
951
74
What is the most efficient way to sort an Html Select's Options by value, while preserving the currently selected item?
I have jQuery but I'm not sure if it has any built-in sorting helpers. I could make a 2d array of each item's `text`, `value`, and `selected` properties, but I don't think that javascript's built in `Array.sort()` would work correctly.
javascript
jquery
arrays
sorting
html-select
null
open
What is the most efficient way to sort an Html Select's Options by value, while preserving the currently selected item? === I have jQuery but I'm not sure if it has any built-in sorting helpers. I could make a 2d array of each item's `text`, `value`, and `selected` properties, but I don't think that javascript's built in `Array.sort()` would work correctly.
0
45,898
09/05/2008 14:12:18
2,998
08/26/2008 11:02:36
143
7
Opening a non-standard URL in a Cocoa app
In an application that I'm writing I have some code like this: NSWorkspace* ws = [NSWorkspace sharedWorkspace]; NSString* myurl = @"http://www.somewebsite.com/method?a=%d"; NSURL* url = [NSURL URLWithString:myurl]; [ws openURL:url]; The main difference being that _myurl_ comes from somewhere outside my control. Note the %d in the URL which isn't entirely correct and means that URLWithString fails, returning _nil_. What is the "correct" way of handling this? Do I need to parse the string and properly encode the arguments? Or is there some clever method in Cocoa that does all the hard work for me?
osx
objectivec
cocoa
apple
null
null
open
Opening a non-standard URL in a Cocoa app === In an application that I'm writing I have some code like this: NSWorkspace* ws = [NSWorkspace sharedWorkspace]; NSString* myurl = @"http://www.somewebsite.com/method?a=%d"; NSURL* url = [NSURL URLWithString:myurl]; [ws openURL:url]; The main difference being that _myurl_ comes from somewhere outside my control. Note the %d in the URL which isn't entirely correct and means that URLWithString fails, returning _nil_. What is the "correct" way of handling this? Do I need to parse the string and properly encode the arguments? Or is there some clever method in Cocoa that does all the hard work for me?
0
45,903
09/05/2008 14:17:15
4,767
09/05/2008 14:17:15
1
0
Best Way to Convert PSD to CSS/HTML File?
I'm working to convert a Photoshop PSD to a HTML/CSS web layout. I know there are some tricks to doing this quickly, I just don't know what they are. The question is, do you?
html
css
photoshop
psd
null
null
open
Best Way to Convert PSD to CSS/HTML File? === I'm working to convert a Photoshop PSD to a HTML/CSS web layout. I know there are some tricks to doing this quickly, I just don't know what they are. The question is, do you?
0
45,904
09/05/2008 14:17:22
2,757
08/24/2008 21:53:16
329
19
How do you add an image in XSLT?
I have a simple XML document that contains image information. I need to transform it to HTML -- simple, right? However, when I use the XSL below, it blows up with the error **"Cannot write an attribute node when no element start tag is open."** I can't see where the open tag is -- any ideas? XML: <pre> &lt;root&gt; &lt;HeaderText&gt; &lt;HeaderText&gt;Dan Testing&lt;/HeaderText&gt; &lt;/HeaderText&gt; &lt;Image&gt; &lt;img width="100" height="100" alt="FPO lady" src="/uploadedImages/temp_photo_small.jpg"/&gt; &lt;/Image&gt; &lt;BodyText&gt; &lt;p&gt;This is a test of the body text&lt;br /&gt;&lt;/p&gt; &lt;/BodyText&gt; &lt;ShowLinkArrow&gt;false&lt;/ShowLinkArrow&gt; &lt;/root&gt; </pre> XSL: <pre> &lt;xsl:stylesheet version="1.0" extension-element-prefixes="msxsl" exclude-result-prefixes="msxsl js dl" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:js="urn:custom-javascript" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:dl="urn:datalist"&gt; &lt;xsl:output method="xml" version="1.0" omit-xml-declaration="yes" indent="yes" encoding="utf-8"/&gt; &lt;xsl:template match="/" xml:space="preserve"&gt; &lt;img&gt; &lt;xsl:attribute name="width"&gt; 100 &lt;/xsl:attribute&gt; &lt;xsl:attribute name="height"&gt; 100 &lt;/xsl:attribute&gt; &lt;xsl:attribute name="class"&gt; CalloutRightPhoto &lt;/xsl:attribute&gt; &lt;xsl:attribute name="src"&gt; &lt;xsl:copy-of select="/root/Image/node()"/&gt; &lt;/xsl:attribute&gt; &lt;/img&gt; &lt;/xsl:template&gt; &lt;/xsl:stylesheet&gt; </pre>
xslt
null
null
null
null
null
open
How do you add an image in XSLT? === I have a simple XML document that contains image information. I need to transform it to HTML -- simple, right? However, when I use the XSL below, it blows up with the error **"Cannot write an attribute node when no element start tag is open."** I can't see where the open tag is -- any ideas? XML: <pre> &lt;root&gt; &lt;HeaderText&gt; &lt;HeaderText&gt;Dan Testing&lt;/HeaderText&gt; &lt;/HeaderText&gt; &lt;Image&gt; &lt;img width="100" height="100" alt="FPO lady" src="/uploadedImages/temp_photo_small.jpg"/&gt; &lt;/Image&gt; &lt;BodyText&gt; &lt;p&gt;This is a test of the body text&lt;br /&gt;&lt;/p&gt; &lt;/BodyText&gt; &lt;ShowLinkArrow&gt;false&lt;/ShowLinkArrow&gt; &lt;/root&gt; </pre> XSL: <pre> &lt;xsl:stylesheet version="1.0" extension-element-prefixes="msxsl" exclude-result-prefixes="msxsl js dl" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:js="urn:custom-javascript" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:dl="urn:datalist"&gt; &lt;xsl:output method="xml" version="1.0" omit-xml-declaration="yes" indent="yes" encoding="utf-8"/&gt; &lt;xsl:template match="/" xml:space="preserve"&gt; &lt;img&gt; &lt;xsl:attribute name="width"&gt; 100 &lt;/xsl:attribute&gt; &lt;xsl:attribute name="height"&gt; 100 &lt;/xsl:attribute&gt; &lt;xsl:attribute name="class"&gt; CalloutRightPhoto &lt;/xsl:attribute&gt; &lt;xsl:attribute name="src"&gt; &lt;xsl:copy-of select="/root/Image/node()"/&gt; &lt;/xsl:attribute&gt; &lt;/img&gt; &lt;/xsl:template&gt; &lt;/xsl:stylesheet&gt; </pre>
0
45,908
09/05/2008 14:21:21
1,196
08/13/2008 12:33:04
1,859
130
Tips and tricks for working with Microsoft Visual Studio solutions and project
After answering on [this question][1] I thought it would be nice to collect some tips & tricks for working with MSVS solutions and projects. Here is my list: - How to avoid saving new projects automatically to reduce garbage in file system. Uncheck **Tools->Options->Projects and Solutions->Save new projects when created** - How to add common file to multiple projects without copying it to project’s directory. Right click on a project, select **Add->Existing Item->Add as link** (press on small arrow on Add button) - How to add project to solution without including it in the build process Right click on solution, select **Add->New solution folder**. Right click on created folder, **select Add->Add existing project** - How to edit project file from Visual Studio? Right click on project and select **Unload Project**, right click on unloaded project and select **Edit**. Or install [Power Commands][2] and select **Edit Project File** - How to group files in the project tree (like auto-generated files for WinForms controls) Open project file for editing. <pre> Change</pre> <Compile Include="MainFile.cs" /> <Compile Include="SecondaryFile.cs" /> To <Compile Include="SecondaryFile.cs "> <DependentUpon> MainFile.cs </DependentUpon> </Compile> Do you have anything else to add? [1]: http://stackoverflow.com/questions/45650/common-files-in-visual-studio-solution#45664 [2]: http://code.msdn.microsoft.com/PowerCommands
visual-studio
tips-and-tricks
null
null
null
05/06/2012 14:35:04
not constructive
Tips and tricks for working with Microsoft Visual Studio solutions and project === After answering on [this question][1] I thought it would be nice to collect some tips & tricks for working with MSVS solutions and projects. Here is my list: - How to avoid saving new projects automatically to reduce garbage in file system. Uncheck **Tools->Options->Projects and Solutions->Save new projects when created** - How to add common file to multiple projects without copying it to project’s directory. Right click on a project, select **Add->Existing Item->Add as link** (press on small arrow on Add button) - How to add project to solution without including it in the build process Right click on solution, select **Add->New solution folder**. Right click on created folder, **select Add->Add existing project** - How to edit project file from Visual Studio? Right click on project and select **Unload Project**, right click on unloaded project and select **Edit**. Or install [Power Commands][2] and select **Edit Project File** - How to group files in the project tree (like auto-generated files for WinForms controls) Open project file for editing. <pre> Change</pre> <Compile Include="MainFile.cs" /> <Compile Include="SecondaryFile.cs" /> To <Compile Include="SecondaryFile.cs "> <DependentUpon> MainFile.cs </DependentUpon> </Compile> Do you have anything else to add? [1]: http://stackoverflow.com/questions/45650/common-files-in-visual-studio-solution#45664 [2]: http://code.msdn.microsoft.com/PowerCommands
4
45,924
09/05/2008 14:31:54
4,770
09/05/2008 14:24:23
1
0
I need help with a MenuStrip Error
My users are having an intermittent error when using a Windows Forms application built in VB.NET 3.5. Apparently when they click on the form and the form re-paints, a red 'X' will be painted over the MenuStrip control and the app will crash with the following error. Has anyone seen this before? Can someone point me in the right direction? Thanks in advance, Joe System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.Collections.ArrayList.get_Item(Int32 index) at System.Windows.Forms.ToolStripItemCollection.get_Item(Int32 index) at System.Windows.Forms.ToolStrip.OnPaint(PaintEventArgs e) at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs) at System.Windows.Forms.Control.WmPaint(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ToolStrip.WndProc(Message& m) at System.Windows.Forms.MenuStrip.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
winforms
vb.net
exception
.net-3.5
null
null
open
I need help with a MenuStrip Error === My users are having an intermittent error when using a Windows Forms application built in VB.NET 3.5. Apparently when they click on the form and the form re-paints, a red 'X' will be painted over the MenuStrip control and the app will crash with the following error. Has anyone seen this before? Can someone point me in the right direction? Thanks in advance, Joe System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.Collections.ArrayList.get_Item(Int32 index) at System.Windows.Forms.ToolStripItemCollection.get_Item(Int32 index) at System.Windows.Forms.ToolStrip.OnPaint(PaintEventArgs e) at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs) at System.Windows.Forms.Control.WmPaint(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ToolStrip.WndProc(Message& m) at System.Windows.Forms.MenuStrip.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
0
45,941
09/05/2008 14:38:05
797
08/09/2008 02:14:04
1,421
50
Branch / merge management in Subversion 1.5
I've used subversion for a while, and used the svnmerge.py script for a while in my old job to manage merges between branches. I believe Subversion 1.5 is now out, and was supposed to have some branch / merge management system integrated with it. So, can someone give me a quick overview of how to track merges in a branch with Subversion 1.5? Are there any pitfalls with using this support? Do I need to ensure all the team upgrades to 1.5 before using this support?
version-control
subversion
null
null
null
null
open
Branch / merge management in Subversion 1.5 === I've used subversion for a while, and used the svnmerge.py script for a while in my old job to manage merges between branches. I believe Subversion 1.5 is now out, and was supposed to have some branch / merge management system integrated with it. So, can someone give me a quick overview of how to track merges in a branch with Subversion 1.5? Are there any pitfalls with using this support? Do I need to ensure all the team upgrades to 1.5 before using this support?
0
45,950
09/05/2008 14:41:23
1,776
08/18/2008 14:21:43
203
19
XML Editor for OS X
http://stackoverflow.com/questions/12073/what-is-the-best-xml-editor was a great question regarding XML editors on Windows. What about on OS X? Oxygen is feature complete, but, it's a Java app and a bit clunky on OSX. It's also extremely expensive. Anything Mac native and comparable in features for less than $300 ? Thanks Andrew
xml
osx
software-tools
null
null
null
open
XML Editor for OS X === http://stackoverflow.com/questions/12073/what-is-the-best-xml-editor was a great question regarding XML editors on Windows. What about on OS X? Oxygen is feature complete, but, it's a Java app and a bit clunky on OSX. It's also extremely expensive. Anything Mac native and comparable in features for less than $300 ? Thanks Andrew
0
45,953
09/05/2008 14:43:48
1,071
08/12/2008 10:00:19
31
2
php execute a background process
I need to execute a directory copy upon a user action, but the directories are quite large, so I would like to be able to perform such an action without the user being aware of the time it take for the copy to complete. Any suggestions would be much appreciated.
php
null
null
null
null
null
open
php execute a background process === I need to execute a directory copy upon a user action, but the directories are quite large, so I would like to be able to perform such an action without the user being aware of the time it take for the copy to complete. Any suggestions would be much appreciated.
0
45,954
09/05/2008 14:44:25
4,761
09/05/2008 13:41:59
1
0
Python libdwarf module
I'm working on a utility which needs to resolve hex addresses to a symbolic function name and source code line number within a binary. The utility will run on Linux on x86, though the binaries it analyzes will be for a MIPS-based embedded system. The MIPS binaries are in ELF format, using DWARF for the symbolic debugging information. I'm currently planning to fork objdump, passing in a list of hex addresses and parsing the output to get function names and source line numbers. I have compiled an objdump with support for MIPS binaries, and it is working. I'd prefer to have a package allowing me to look things up natively from the Python code without forking another process. I can find no mention of libdwarf, libelf, or libbfd on python.org, nor any mention of python on dwarfstd.org. Is there a suitable module available somewhere?
python
null
null
null
null
null
open
Python libdwarf module === I'm working on a utility which needs to resolve hex addresses to a symbolic function name and source code line number within a binary. The utility will run on Linux on x86, though the binaries it analyzes will be for a MIPS-based embedded system. The MIPS binaries are in ELF format, using DWARF for the symbolic debugging information. I'm currently planning to fork objdump, passing in a list of hex addresses and parsing the output to get function names and source line numbers. I have compiled an objdump with support for MIPS binaries, and it is working. I'd prefer to have a package allowing me to look things up natively from the Python code without forking another process. I can find no mention of libdwarf, libelf, or libbfd on python.org, nor any mention of python on dwarfstd.org. Is there a suitable module available somewhere?
0
45,964
09/05/2008 14:49:27
4,406
09/03/2008 14:38:45
23
5
How to multiply 10 to an "Integer" object in Java?
How do I multiply 10 to an Integer object and get back the Integer object? I am looking for the neatest way of doing this. I would probably do it this way: Get int from Integer object, multiply it with the other int and create another Integer object with this int value. Code will be something like ... integerObj = new Integer(integerObj.intValue() * 10); But, I saw a code where the author is doing it this way: Get the String from the Integer object, concatenate "0" at the end and then get Integer object back by using Integer.parseInt code is something like ... String s = integerObj + "0"; integerObj = Integer.parseInt(s); Is there any merit in doing it either way? And what would be the most efficient/neatest way in general and in this case?
java
null
null
null
null
null
open
How to multiply 10 to an "Integer" object in Java? === How do I multiply 10 to an Integer object and get back the Integer object? I am looking for the neatest way of doing this. I would probably do it this way: Get int from Integer object, multiply it with the other int and create another Integer object with this int value. Code will be something like ... integerObj = new Integer(integerObj.intValue() * 10); But, I saw a code where the author is doing it this way: Get the String from the Integer object, concatenate "0" at the end and then get Integer object back by using Integer.parseInt code is something like ... String s = integerObj + "0"; integerObj = Integer.parseInt(s); Is there any merit in doing it either way? And what would be the most efficient/neatest way in general and in this case?
0
45,965
09/05/2008 14:49:41
370,899
08/22/2008 12:32:04
54
7
How do I use the JavaScript Console in Google Chrome?
I have a Font Detect code that does not work in Google Chrome, and I thought I would find out what is going on. But I still can't figure out how I can add breakpoints or do watch etc. I am looking for something like FireBug. I assume I would need to install a third party debugger?
javascript
debugging
null
null
null
null
open
How do I use the JavaScript Console in Google Chrome? === I have a Font Detect code that does not work in Google Chrome, and I thought I would find out what is going on. But I still can't figure out how I can add breakpoints or do watch etc. I am looking for something like FireBug. I assume I would need to install a third party debugger?
0
45,972
09/05/2008 14:52:14
4,585
09/04/2008 18:42:37
1
1
mmap() vs. reading blocks
I'm working on a program that will be processing files that could potentially be 100GB or more in size. The files contain sets of variable length records. I've got a first implementation up and running and am now looking towards improving performance, particularly at doing I/O more efficiently since the input file gets scanned many times. Is there a rule of thumb for using mmap() versus reading in blocks via C++'s fstream library? What I'd like to do is read large blocks from disk into a buffer, process complete records from the buffer, and then read more. The mmap() code could potentially get very messy since mmap'd blocks need to lie on page sized boundaries (my understanding) and records could potentially like across page boundaries. With fstreams, I can just seek to the start of a record and begin reading again, since we're not limited to reading blocks that lie on page sized boundaries. How can I decide between these two options without actually writing up a complete implementation first? Any rules of thumb (e.g., mmap() is 2x faster) or simple tests?
c++
file-io
fstream
blocks
mmap
null
open
mmap() vs. reading blocks === I'm working on a program that will be processing files that could potentially be 100GB or more in size. The files contain sets of variable length records. I've got a first implementation up and running and am now looking towards improving performance, particularly at doing I/O more efficiently since the input file gets scanned many times. Is there a rule of thumb for using mmap() versus reading in blocks via C++'s fstream library? What I'd like to do is read large blocks from disk into a buffer, process complete records from the buffer, and then read more. The mmap() code could potentially get very messy since mmap'd blocks need to lie on page sized boundaries (my understanding) and records could potentially like across page boundaries. With fstreams, I can just seek to the start of a record and begin reading again, since we're not limited to reading blocks that lie on page sized boundaries. How can I decide between these two options without actually writing up a complete implementation first? Any rules of thumb (e.g., mmap() is 2x faster) or simple tests?
0
45,977
09/05/2008 14:55:47
3,631
08/29/2008 16:06:08
488
36
Meaning/cause of RPC Exception 'No interfaces have been exported.'
We have a pretty classic client-server app built using MS RPC, with both ends implemented in C++. The client establishes a session to the server, and makes calls to it over a long period before closing the session. Periodically, particularly under heavy load, we get an RPC exception via code 1754 (RPC_S_NOTHING_TO_EXPORT). This happens in the middle of a session: the user has been logged on for a while making calls, then one of the calls returns this error. As far as we can tell the server receives no indication that anything went wrong. It certainly doesn't see the call the client made. The error code appears permanent -- having the client retry the connection doesn't help. There are multiple user sessions active at the time between the same client and server and others are not affected. There are two questions: 1. Does anyone know what RPC_S_NOTHING_TO_EXPORT means? The MSDN documentation is terse: "No interfaces have been exported." ... what interfaces!? The session was working fine for numerous instances of the same call up until this point? 2. Any ideas on how to identify the problem? Capturing network traffic is something we would rather avoid -- the problem is sporadic enough that we would likely see multiple gigabytes of traffic before running into an occurrence.
windows
rpc
null
null
null
null
open
Meaning/cause of RPC Exception 'No interfaces have been exported.' === We have a pretty classic client-server app built using MS RPC, with both ends implemented in C++. The client establishes a session to the server, and makes calls to it over a long period before closing the session. Periodically, particularly under heavy load, we get an RPC exception via code 1754 (RPC_S_NOTHING_TO_EXPORT). This happens in the middle of a session: the user has been logged on for a while making calls, then one of the calls returns this error. As far as we can tell the server receives no indication that anything went wrong. It certainly doesn't see the call the client made. The error code appears permanent -- having the client retry the connection doesn't help. There are multiple user sessions active at the time between the same client and server and others are not affected. There are two questions: 1. Does anyone know what RPC_S_NOTHING_TO_EXPORT means? The MSDN documentation is terse: "No interfaces have been exported." ... what interfaces!? The session was working fine for numerous instances of the same call up until this point? 2. Any ideas on how to identify the problem? Capturing network traffic is something we would rather avoid -- the problem is sporadic enough that we would likely see multiple gigabytes of traffic before running into an occurrence.
0
45,988
09/05/2008 15:01:28
1,367
08/14/2008 18:33:20
443
27
Choosing a folder with .NET 3.5
In a C# .NET 3.5 app (a mix of WinForms and WPF) I want to let the user select a folder to import a load of data from. At the moment, it's using System.Windows.Forms.FolderBrowserDialog but that's a bit lame. Mainly because you can't type the path into it (so you need to map a network drive, instead of typing a UNC path). I'd like something more like the System.Windows.Forms.OpenFileDialog, but for folders instead of files. What can I use instead? A WinForms or WPF solution is fine, but I'd prefer not to PInvoke into the Windows API if I can avoid it.
c#
.net
winforms
wpf
null
null
open
Choosing a folder with .NET 3.5 === In a C# .NET 3.5 app (a mix of WinForms and WPF) I want to let the user select a folder to import a load of data from. At the moment, it's using System.Windows.Forms.FolderBrowserDialog but that's a bit lame. Mainly because you can't type the path into it (so you need to map a network drive, instead of typing a UNC path). I'd like something more like the System.Windows.Forms.OpenFileDialog, but for folders instead of files. What can I use instead? A WinForms or WPF solution is fine, but I'd prefer not to PInvoke into the Windows API if I can avoid it.
0
45,991
09/05/2008 15:04:16
681
08/07/2008 17:38:09
23
0
What's the easiest way to convert Wiki markup to HTML?
I'm building a website that requires very basic markup capabilities. I can't use any 3rd party plugins, so I just need a simple way to convert markup to HTML. I might have a total of 3 tags that I'll allow. What is the best way to convert "==Heading=="" to "< h2>Heading< / h2>", or "--bold--" to "< b> bold < /b>"? Can this be done simply with Regex, or does somebody have a simple function? I'm writing this in C#, but examples from other languages would probably work. thanks, Jim
html
wiki
markup
null
null
null
open
What's the easiest way to convert Wiki markup to HTML? === I'm building a website that requires very basic markup capabilities. I can't use any 3rd party plugins, so I just need a simple way to convert markup to HTML. I might have a total of 3 tags that I'll allow. What is the best way to convert "==Heading=="" to "< h2>Heading< / h2>", or "--bold--" to "< b> bold < /b>"? Can this be done simply with Regex, or does somebody have a simple function? I'm writing this in C#, but examples from other languages would probably work. thanks, Jim
0
46,003
09/05/2008 15:11:29
2,361
08/21/2008 20:41:09
398
22
How to change "Generate Method Stub" to throw NotImplementedException in VS?
How can I change default [Generate Method Stub][1] behavior in Visaul Studio to generate method with body throw new NotImplementedException(); instead of throw new Exception("The method or operation is not implemented."); [1]: http://msdn.microsoft.com/en-us/library/3a7hkh29.aspx
.net
configuration
visual-studio
trick
null
null
open
How to change "Generate Method Stub" to throw NotImplementedException in VS? === How can I change default [Generate Method Stub][1] behavior in Visaul Studio to generate method with body throw new NotImplementedException(); instead of throw new Exception("The method or operation is not implemented."); [1]: http://msdn.microsoft.com/en-us/library/3a7hkh29.aspx
0
46,004
09/05/2008 15:11:44
577
08/06/2008 21:36:25
325
13
How do you implement resource "edit" forms in a RESTful way?
We are trying to implement a REST API for an application we have now. We want to expose read/write capabilities for various resources using the REST API. How do we implement the "form" part of this? I get how to expose "read" of our data by creating RESTful URLs that essentially function as method calls and return the data: GET /restapi/myobject?param=object-id-maybe ...and an XML document representing some data structure is returned. Fine. But, normally, in a web application, an "edit" would involve two requests: one to load the current version of the resources and populate the form with that data, and one to post the modified data back. But I don't get how you would do the same thing with HTTP methods that REST is sort of mapped to. It's a PUT, right? Can someone explain this? (Additional consideration: The UI would be primarily done with AJAX)
rest
null
null
null
null
null
open
How do you implement resource "edit" forms in a RESTful way? === We are trying to implement a REST API for an application we have now. We want to expose read/write capabilities for various resources using the REST API. How do we implement the "form" part of this? I get how to expose "read" of our data by creating RESTful URLs that essentially function as method calls and return the data: GET /restapi/myobject?param=object-id-maybe ...and an XML document representing some data structure is returned. Fine. But, normally, in a web application, an "edit" would involve two requests: one to load the current version of the resources and populate the form with that data, and one to post the modified data back. But I don't get how you would do the same thing with HTTP methods that REST is sort of mapped to. It's a PUT, right? Can someone explain this? (Additional consideration: The UI would be primarily done with AJAX)
0
46,007
09/05/2008 15:13:51
4,782
09/05/2008 15:13:51
1
0
Tools for matching name/address data
Here's an interesting problem. I have an oracle database with name & address information which needs to be kept current. We get data feeds from a number of different gov't sources, and need to figure out matches, and whether or not to update the db with the data, or if a new record needs to be created. There isn't any sort of unique identifier that can be used to tie records together, and the data quality isn't always that good - there will always be typos, people using different names (i.e. Joe vs. Joseph), etc. Are there any tools to help with data matching? Because of privacy regulations, we can't send the data out, so it's something we have to do in-house. If you can't recommend tool, I'd be interested in hearing from anyone who's worked on this type of problem before as to how they solved it, or at least automated parts of it.
oracle
null
null
null
null
null
open
Tools for matching name/address data === Here's an interesting problem. I have an oracle database with name & address information which needs to be kept current. We get data feeds from a number of different gov't sources, and need to figure out matches, and whether or not to update the db with the data, or if a new record needs to be created. There isn't any sort of unique identifier that can be used to tie records together, and the data quality isn't always that good - there will always be typos, people using different names (i.e. Joe vs. Joseph), etc. Are there any tools to help with data matching? Because of privacy regulations, we can't send the data out, so it's something we have to do in-house. If you can't recommend tool, I'd be interested in hearing from anyone who's worked on this type of problem before as to how they solved it, or at least automated parts of it.
0
46,013
09/05/2008 15:15:49
4,778
09/05/2008 15:06:23
1
0
Self Updating
What's the best way to terminate a program and then run additional code from the program that's being terminated? For example, what would be the best way for a program to self update itself?
updating
patching
null
null
null
null
open
Self Updating === What's the best way to terminate a program and then run additional code from the program that's being terminated? For example, what would be the best way for a program to self update itself?
0
46,029
09/05/2008 15:24:39
1,108
08/12/2008 12:16:28
37
5
Data Validation Design Patterns
If I have a collection of database tables (in an Access file, for example) and need to validate each table in this collection against a rule set that has both common rules across all tables as well as individual rules specific to one or a subset of tables, can someone recommend a good design pattern to look into? Specifically, I would like to avoid code similar to: void Main() { ValidateTable1(); ValidateTable2(); ValidateTable3(); } private void ValidateTable1() { //Table1 validation code goes here } private void ValidateTable2() { //Table2 validation code goes here } private void ValidateTable3() { //Table3 validation code goes here } Also, I've decided to use log4net to log all of the errors and warnings, so that each method can be declared <code>void</code> and doesn't need to return anything. Is this a good idea or would it be better to create some sort of <code>ValidationException</code> that catches all exceptions and stores them in a <code>List&lt;ValidationException&gt;</code> before printing them all out at the end? I did find [this][1], which looks like it may work, but I'm hoping to actually find some code samples to work off of. Any suggestions? Has anyone done something similar in the past? For some background, the program will be written in either C# or VB.NET and the tables will more than likely be stored in either Access or SQL Server CE. [1]: http://www.hickorysystems.com/sw_validation.html
design-patterns
validation
oop
null
null
null
open
Data Validation Design Patterns === If I have a collection of database tables (in an Access file, for example) and need to validate each table in this collection against a rule set that has both common rules across all tables as well as individual rules specific to one or a subset of tables, can someone recommend a good design pattern to look into? Specifically, I would like to avoid code similar to: void Main() { ValidateTable1(); ValidateTable2(); ValidateTable3(); } private void ValidateTable1() { //Table1 validation code goes here } private void ValidateTable2() { //Table2 validation code goes here } private void ValidateTable3() { //Table3 validation code goes here } Also, I've decided to use log4net to log all of the errors and warnings, so that each method can be declared <code>void</code> and doesn't need to return anything. Is this a good idea or would it be better to create some sort of <code>ValidationException</code> that catches all exceptions and stores them in a <code>List&lt;ValidationException&gt;</code> before printing them all out at the end? I did find [this][1], which looks like it may work, but I'm hoping to actually find some code samples to work off of. Any suggestions? Has anyone done something similar in the past? For some background, the program will be written in either C# or VB.NET and the tables will more than likely be stored in either Access or SQL Server CE. [1]: http://www.hickorysystems.com/sw_validation.html
0
46,030
09/05/2008 15:25:11
1,358
08/14/2008 18:01:36
260
41
C# Force Form Focus
So, I did search google and SO prior to asking this question. Basically I have a DLL that has a form compiled into it. The form will be used to display information to the screen. Eventually it will be asynchronous and expose a lot of customization in the dll. For now I just want it to display properly. The problem that I am having is that I use the dll by loading it in a Powershell session. So when I try to display the form and get it to come to the top and have focus, It has no problem with displaying over all the other apps, but I can't for the life of me get it to display over the Powershell window. Here is the code that I am currently using to try and get it to display. I am sure that the majority of it won't be required once I figure it out, this just represents all the things that I found via google. CLass Blah { [DllImport("user32.dll", EntryPoint = "SystemParametersInfo")] public static extern bool SystemParametersInfo(uint uiAction, uint uiParam, uint pvParam, uint fWinIni); [DllImport("user32.dll", EntryPoint = "SetForegroundWindow")] public static extern bool SetForegroundWindow(IntPtr hWnd); [DllImport("User32.dll", EntryPoint = "ShowWindowAsync")] private static extern bool ShowWindowAsync(IntPtr hWnd, int cmdShow); private const int WS_SHOWNORMAL = 1; public void ShowMessage(string msg) { MessageForm msgFrm = new MessageForm(); msgFrm.lblMessage.Text = "FOO"; msgFrm.ShowDialog(); msgFrm.BringToFront(); msgFrm.TopMost = true; msgFrm.Activate(); SystemParametersInfo((uint)0x2001, 0, 0, 0x0002 | 0x0001); ShowWindowAsync(msgFrm.Handle, WS_SHOWNORMAL); SetForegroundWindow(msgFrm.Handle); SystemParametersInfo((uint)0x2001, 200000, 200000, 0x0002 | 0x0001); } } As I say I'm sure that most of that is either not needed or even flat out wrong, I just wanted to show the things that I had tried. Also, as I mentioned, I plan to have this be asynchronously displayed at some point which I suspect will wind up requiring a separate thread. Would splitting the form out into it's own thread make it easier to cause it to get focus over the Powershell session? Thanks in advance for the help.
c#
null
null
null
null
null
open
C# Force Form Focus === So, I did search google and SO prior to asking this question. Basically I have a DLL that has a form compiled into it. The form will be used to display information to the screen. Eventually it will be asynchronous and expose a lot of customization in the dll. For now I just want it to display properly. The problem that I am having is that I use the dll by loading it in a Powershell session. So when I try to display the form and get it to come to the top and have focus, It has no problem with displaying over all the other apps, but I can't for the life of me get it to display over the Powershell window. Here is the code that I am currently using to try and get it to display. I am sure that the majority of it won't be required once I figure it out, this just represents all the things that I found via google. CLass Blah { [DllImport("user32.dll", EntryPoint = "SystemParametersInfo")] public static extern bool SystemParametersInfo(uint uiAction, uint uiParam, uint pvParam, uint fWinIni); [DllImport("user32.dll", EntryPoint = "SetForegroundWindow")] public static extern bool SetForegroundWindow(IntPtr hWnd); [DllImport("User32.dll", EntryPoint = "ShowWindowAsync")] private static extern bool ShowWindowAsync(IntPtr hWnd, int cmdShow); private const int WS_SHOWNORMAL = 1; public void ShowMessage(string msg) { MessageForm msgFrm = new MessageForm(); msgFrm.lblMessage.Text = "FOO"; msgFrm.ShowDialog(); msgFrm.BringToFront(); msgFrm.TopMost = true; msgFrm.Activate(); SystemParametersInfo((uint)0x2001, 0, 0, 0x0002 | 0x0001); ShowWindowAsync(msgFrm.Handle, WS_SHOWNORMAL); SetForegroundWindow(msgFrm.Handle); SystemParametersInfo((uint)0x2001, 200000, 200000, 0x0002 | 0x0001); } } As I say I'm sure that most of that is either not needed or even flat out wrong, I just wanted to show the things that I had tried. Also, as I mentioned, I plan to have this be asynchronously displayed at some point which I suspect will wind up requiring a separate thread. Would splitting the form out into it's own thread make it easier to cause it to get focus over the Powershell session? Thanks in advance for the help.
0
46,031
09/05/2008 15:26:11
3,314
08/27/2008 20:05:23
137
11
Why does the ASP.Net Web Forms model "suck"?
I've heard Jeff Attwood, Joel Spolsky, and many other legendary people talk about how the ASP.Net Web Forms model sucks. (So this question is kind of directed to them, hopefully Jeff is reading) Now, I highly respect their opinion, given their background and expertise, but truth be told, i absolutely LOVE Asp.Net. I think the model is brilliant, and it sucks if you have no idea what you're doing, but once you understand how to control Viewstate, when to use handlers instead of pages, etc, it is generations ahead of all the other models. So every time I hear someone complain about how it sucks, I can't help ask the same question... Why? What is it that's so bad about it? I appreciate all opinions. I'm assuming there's probably a post at Jeff's blog talking about this too...
asp.net
webforms
null
null
null
11/28/2011 18:24:15
not constructive
Why does the ASP.Net Web Forms model "suck"? === I've heard Jeff Attwood, Joel Spolsky, and many other legendary people talk about how the ASP.Net Web Forms model sucks. (So this question is kind of directed to them, hopefully Jeff is reading) Now, I highly respect their opinion, given their background and expertise, but truth be told, i absolutely LOVE Asp.Net. I think the model is brilliant, and it sucks if you have no idea what you're doing, but once you understand how to control Viewstate, when to use handlers instead of pages, etc, it is generations ahead of all the other models. So every time I hear someone complain about how it sucks, I can't help ask the same question... Why? What is it that's so bad about it? I appreciate all opinions. I'm assuming there's probably a post at Jeff's blog talking about this too...
4
46,047
09/05/2008 15:35:10
2,894
08/25/2008 20:06:55
451
43
Need advice on getting a job in a foreign country
I am a citizen of the United States of America and I want to get a job in the United Kingdom. Sounds good on the surface but I am looking for some advice on what to expect in the way of taxes (and the salary planning associated with them), legal issues and anything else that might not be that obvious. If you have done the [ExPat][1] thing and have some advice for a poor sucker looking to make the leap, please let me know. If you are in the UK (and I know a bunch of you are) and have some advice from that side of the pond, that would be greatly appriciated as well!! [1]: http://en.wikipedia.org/wiki/Expatriate
jobs
abroad
expat
null
null
07/02/2012 09:52:43
off topic
Need advice on getting a job in a foreign country === I am a citizen of the United States of America and I want to get a job in the United Kingdom. Sounds good on the surface but I am looking for some advice on what to expect in the way of taxes (and the salary planning associated with them), legal issues and anything else that might not be that obvious. If you have done the [ExPat][1] thing and have some advice for a poor sucker looking to make the leap, please let me know. If you are in the UK (and I know a bunch of you are) and have some advice from that side of the pond, that would be greatly appriciated as well!! [1]: http://en.wikipedia.org/wiki/Expatriate
2
46,048
09/05/2008 15:35:39
4,786
09/05/2008 15:29:10
1
0
What is the best book to learn C#?
What is the best book to learn C# for someone who has little programming experience?
c#
books
null
null
null
10/09/2011 04:41:21
off topic
What is the best book to learn C#? === What is the best book to learn C# for someone who has little programming experience?
2
46,074
09/05/2008 15:43:15
3,135
08/26/2008 22:55:37
8
2
Redirect from domain name to a dotted quad hosted box
I have a php server that is running my domain name. For testing purposes I am running an asp.net on a dotted quad IP. I am hoping to link them together via either php or some kind of dns/htaccess voodoo. So if I go to www.mydomain.com/test it redirects (but keeps the url of (www.mydomain.com/test) in the main bar or awesome bar or whatever they call it these days) and the pages are served by the dotted quad asp.net box. is that possible?
php
hosting
dns
null
null
null
open
Redirect from domain name to a dotted quad hosted box === I have a php server that is running my domain name. For testing purposes I am running an asp.net on a dotted quad IP. I am hoping to link them together via either php or some kind of dns/htaccess voodoo. So if I go to www.mydomain.com/test it redirects (but keeps the url of (www.mydomain.com/test) in the main bar or awesome bar or whatever they call it these days) and the pages are served by the dotted quad asp.net box. is that possible?
0
46,079
09/05/2008 15:45:22
1,446
08/15/2008 16:12:45
23
1
What is the best approach for disabling a submit button?
Details: * Only disable after user clicks the submit button * ASP.NET Webforms (.NET 1.1) * Prefer jQuery (if any library at all) * Must be enabled if form reloads (i.e. credit card failed) This isn't a necessity that I do this, but if there is a simple way to do it without having to change too much, I'll do it. (i.e. if there isn't a simple solution, I probably won't do it, so don't worry about digging too deep)
webforms
asp.net
javascript
null
null
null
open
What is the best approach for disabling a submit button? === Details: * Only disable after user clicks the submit button * ASP.NET Webforms (.NET 1.1) * Prefer jQuery (if any library at all) * Must be enabled if form reloads (i.e. credit card failed) This isn't a necessity that I do this, but if there is a simple way to do it without having to change too much, I'll do it. (i.e. if there isn't a simple solution, I probably won't do it, so don't worry about digging too deep)
0
46,080
09/05/2008 15:45:53
1,463
08/15/2008 17:26:44
419
32
How do you move a file in SVN?
I'm using TortoiseSVN against the SourceForge SVN repository. I'd like to move a file from one folder to another in order to maintain its revision history. Is this possible? If so, how do you do it? (My current strategy has been to copy the file into the new folder and check it in and then delete the file from the current folder.)
svn
tortoisesvn
null
null
null
null
open
How do you move a file in SVN? === I'm using TortoiseSVN against the SourceForge SVN repository. I'd like to move a file from one folder to another in order to maintain its revision history. Is this possible? If so, how do you do it? (My current strategy has been to copy the file into the new folder and check it in and then delete the file from the current folder.)
0
46,084
09/05/2008 15:47:03
179
08/03/2008 02:38:27
111
7
Remote debugging an NT application from XP with Visual Studio 6.0
Is it possible to remote-debug a Visual C++ 6.0 application running on a Windows NT machine from a developer workstation running Windows XP? If so, is there a procedure written up somewhere?
debugging
windows-xp
vc++
remote
windows-nt
null
open
Remote debugging an NT application from XP with Visual Studio 6.0 === Is it possible to remote-debug a Visual C++ 6.0 application running on a Windows NT machine from a developer workstation running Windows XP? If so, is there a procedure written up somewhere?
0
46,096
09/05/2008 15:50:20
1,463
08/15/2008 17:26:44
419
32
What are the names given to these 2 LINQ expressions
I'm trying to find the correct names for these 2 "types" of coding expressions in LINQ so that I can refer to them correctly. I want to say that the first is called "Fluent Style"? var selectVar = arrayVar.Select( (a,i) => new { Line = a }); var selectVar = from s in arrayVar select new { Line = s };
linq
null
null
null
null
null
open
What are the names given to these 2 LINQ expressions === I'm trying to find the correct names for these 2 "types" of coding expressions in LINQ so that I can refer to them correctly. I want to say that the first is called "Fluent Style"? var selectVar = arrayVar.Select( (a,i) => new { Line = a }); var selectVar = from s in arrayVar select new { Line = s };
0
46,112
09/05/2008 15:55:23
4,786
09/05/2008 15:29:10
6
0
What is the best book to learn asp.net for someone who has little programming experience?
What is the best book to learn asp.net for someone who has little programming experience?
asp.net
books
null
null
null
null
open
What is the best book to learn asp.net for someone who has little programming experience? === What is the best book to learn asp.net for someone who has little programming experience?
0
46,124
09/05/2008 15:58:13
305
08/04/2008 14:04:19
1,853
111
Is there a list of browser conditionals for use including stylesheets?
I've seen people doing things like this in their HTML: <!--[if IE]> <link rel="stylesheet" href="ie.css" type="text/css" /> <![endif]--> Does this work across all modern browsers and is there a list of browser types that will work with that kind of if statement? **Edit** Thanks [Ross](http://stackoverflow.com/questions/46124/is-there-a-list-of-browser-conditionals-for-use-including-stylesheets#46126). Interesting to find out about **gt, lt, gte, & lte**.
css
browser
conditional
null
null
null
open
Is there a list of browser conditionals for use including stylesheets? === I've seen people doing things like this in their HTML: <!--[if IE]> <link rel="stylesheet" href="ie.css" type="text/css" /> <![endif]--> Does this work across all modern browsers and is there a list of browser types that will work with that kind of if statement? **Edit** Thanks [Ross](http://stackoverflow.com/questions/46124/is-there-a-list-of-browser-conditionals-for-use-including-stylesheets#46126). Interesting to find out about **gt, lt, gte, & lte**.
0
46,125
09/05/2008 15:58:16
1,228
08/13/2008 13:58:55
1,142
86
Can XPath match on parts of an element's name?
I want to do this: //*fu, which returns all nodes whose name ends in fu, such as &lt;tarfu /> and &lt;snafu />, but not &lt;fubar />
xpath
null
null
null
null
null
open
Can XPath match on parts of an element's name? === I want to do this: //*fu, which returns all nodes whose name ends in fu, such as &lt;tarfu /> and &lt;snafu />, but not &lt;fubar />
0