question_id int64 4 6.31M | answer_id int64 7 6.31M | title stringlengths 9 150 | question_body stringlengths 0 28.8k | answer_body stringlengths 60 27.2k | question_text stringlengths 40 28.9k | combined_text stringlengths 124 39.6k | tags listlengths 1 6 | question_score int64 0 26.3k | answer_score int64 0 28.8k | view_count int64 15 14M | answer_count int64 0 182 | favorite_count int64 0 32 | question_creation_date stringdate 2008-07-31 21:42:52 2011-06-10 18:12:18 | answer_creation_date stringdate 2008-07-31 22:17:57 2011-06-10 18:14:17 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
165,135 | 165,625 | How do i set the dns search suffix for a network adapter in .net? | I've written a command line utility that detects which network interface is connected, and sets the staitc ip address and dns servers for it (by calling netsh). However, I can't seem to figure out how to set the dns search suffixes. netsh doesnt appear capable of doing that. How do I do that otherwise (WMI perhaps)? | I think you have to set the value(s) you want in the DNSDomainSuffixSearchOrder property of the Win32_NetworkAdapterConfiguration WMI object. Here's and example of setting values in WMI, if you need it: Modifying Objects & Running Methods | How do i set the dns search suffix for a network adapter in .net? I've written a command line utility that detects which network interface is connected, and sets the staitc ip address and dns servers for it (by calling netsh). However, I can't seem to figure out how to set the dns search suffixes. netsh doesnt appear c... | TITLE:
How do i set the dns search suffix for a network adapter in .net?
QUESTION:
I've written a command line utility that detects which network interface is connected, and sets the staitc ip address and dns servers for it (by calling netsh). However, I can't seem to figure out how to set the dns search suffixes. net... | [
"c#",
".net",
"networking",
"wmi"
] | 3 | 3 | 2,016 | 2 | 0 | 2008-10-03T00:00:16.910000 | 2008-10-03T03:50:11.583000 |
165,140 | 165,234 | SubSonic SubSonic.SqlQuery & Dates | Does SubSonic.SqlQuery have a between/and for date ranges? If not, what would be the best way to get a range. | Try something like this: SqlQuery query = new SqlQuery().From("Table").WhereExpression("Column").IsBetweenAnd("1/1/2008", "12/31/2008"); DataSet dataSet = query.ExecuteDataSet(); // Or whatever output you need | SubSonic SubSonic.SqlQuery & Dates Does SubSonic.SqlQuery have a between/and for date ranges? If not, what would be the best way to get a range. | TITLE:
SubSonic SubSonic.SqlQuery & Dates
QUESTION:
Does SubSonic.SqlQuery have a between/and for date ranges? If not, what would be the best way to get a range.
ANSWER:
Try something like this: SqlQuery query = new SqlQuery().From("Table").WhereExpression("Column").IsBetweenAnd("1/1/2008", "12/31/2008"); DataSet dat... | [
"subsonic",
"date"
] | 0 | 3 | 1,430 | 3 | 0 | 2008-10-03T00:01:52.507000 | 2008-10-03T00:31:17.007000 |
165,143 | 167,211 | How do I create a Routed Event in Silverlight 2? | Anyone know how to create a routed event in Silverlight 2? In WPF, the code would be like below. However, there’s no EventManager in Silverlight. public static readonly RoutedEvent ShowVideoEvent = EventManager.RegisterRoutedEvent("ShowVideo", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(NavBar));
public... | At least for the time being, there doesn't seem to be a way to create your own. That post was however for Beta2, looking at the document for Beta2->RC0 breaking changes, there doesn't seem to be any mention of anything. But then I guess it could be no breaking change, we can always hope eh;) There are a number of event... | How do I create a Routed Event in Silverlight 2? Anyone know how to create a routed event in Silverlight 2? In WPF, the code would be like below. However, there’s no EventManager in Silverlight. public static readonly RoutedEvent ShowVideoEvent = EventManager.RegisterRoutedEvent("ShowVideo", RoutingStrategy.Bubble, typ... | TITLE:
How do I create a Routed Event in Silverlight 2?
QUESTION:
Anyone know how to create a routed event in Silverlight 2? In WPF, the code would be like below. However, there’s no EventManager in Silverlight. public static readonly RoutedEvent ShowVideoEvent = EventManager.RegisterRoutedEvent("ShowVideo", RoutingSt... | [
"silverlight",
"events"
] | 1 | 1 | 2,669 | 1 | 0 | 2008-10-03T00:02:38.933000 | 2008-10-03T14:42:49.903000 |
165,149 | 175,365 | Redirect the parent frame inside an UpdatePanel on PostBack | This is kind of a weird problem, but I have to create a search box for our site that will be iframed on another site. When the user clicks the search button, it needs to redirect the parent frame to our search results page. At the moment what I've done is to make the search button a postback trigger then registering a ... | OK, since noone else has answered, I'll give this a go. First off, are you testing the code you're using in a real-world way? I am concerned that in a real-world application that your iframed page and the parent page will not reside on the same domain. If so, there is not likely to be any way for your code to direct th... | Redirect the parent frame inside an UpdatePanel on PostBack This is kind of a weird problem, but I have to create a search box for our site that will be iframed on another site. When the user clicks the search button, it needs to redirect the parent frame to our search results page. At the moment what I've done is to m... | TITLE:
Redirect the parent frame inside an UpdatePanel on PostBack
QUESTION:
This is kind of a weird problem, but I have to create a search box for our site that will be iframed on another site. When the user clicks the search button, it needs to redirect the parent frame to our search results page. At the moment what... | [
".net",
"javascript",
"asp.net-ajax",
"updatepanel"
] | 1 | 1 | 2,821 | 1 | 0 | 2008-10-03T00:04:53.920000 | 2008-10-06T17:43:25.667000 |
165,151 | 165,197 | Is Dreamweaver worth getting if I probably won't use its WYSIWYG editor? | In the past I've done web application development using Visual Studio. Initially I'd use the design view, editing the page visually. But over time I learned more and more (X)HTML, CSS, and Javascript. I became familiar with the tags for ASP.NET server controls and their common attributes. I got to the point where I'd d... | I do 95% of my web dev stuff using Dreamweaver's code editor. But, for the other 5%, the WYSIWYG stuff really comes in handy. Plus, it's not your money anyway. I'd say get it and if the WYSIWYG stuff is too much for you just keep it in source code mode and use it as an editor. | Is Dreamweaver worth getting if I probably won't use its WYSIWYG editor? In the past I've done web application development using Visual Studio. Initially I'd use the design view, editing the page visually. But over time I learned more and more (X)HTML, CSS, and Javascript. I became familiar with the tags for ASP.NET se... | TITLE:
Is Dreamweaver worth getting if I probably won't use its WYSIWYG editor?
QUESTION:
In the past I've done web application development using Visual Studio. Initially I'd use the design view, editing the page visually. But over time I learned more and more (X)HTML, CSS, and Javascript. I became familiar with the t... | [
"wysiwyg"
] | 2 | 2 | 2,620 | 12 | 0 | 2008-10-03T00:05:17.117000 | 2008-10-03T00:19:53.133000 |
165,156 | 165,254 | Easy mysql question regarding primary keys and an insert | In mysql, how do I get the primary key used for an insert operation, when it is autoincrementing. Basically, i want the new autoincremented value to be returned when the statement completes. Thanks! | Your clarification comment says that you're interested in making sure that LAST_INSERT_ID() doesn't give the wrong result if another concurrent INSERT happens. Rest assured that it is safe to use LAST_INSERT_ID() regardless of other concurrent activity. LAST_INSERT_ID() returns only the most recent ID generated during ... | Easy mysql question regarding primary keys and an insert In mysql, how do I get the primary key used for an insert operation, when it is autoincrementing. Basically, i want the new autoincremented value to be returned when the statement completes. Thanks! | TITLE:
Easy mysql question regarding primary keys and an insert
QUESTION:
In mysql, how do I get the primary key used for an insert operation, when it is autoincrementing. Basically, i want the new autoincremented value to be returned when the statement completes. Thanks!
ANSWER:
Your clarification comment says that ... | [
"mysql",
"insert",
"primary-key"
] | 8 | 12 | 6,680 | 4 | 0 | 2008-10-03T00:07:26.223000 | 2008-10-03T00:42:32.550000 |
165,170 | 165,213 | In Ruby on Rails, how do I format a date with the "th" suffix, as in, "Sun Oct 5th"? | I want to display dates in the format: short day of week, short month, day of month without leading zero but including "th", "st", "nd", or "rd" suffix. For example, the day this question was asked would display "Thu Oct 2nd". I'm using Ruby 1.8.7, and Time.strftime just doesn't seem to do this. I'd prefer a standard l... | Use the ordinalize method from 'active_support'. >> time = Time.new => Fri Oct 03 01:24:48 +0100 2008 >> time.strftime("%a %b #{time.day.ordinalize}") => "Fri Oct 3rd" Note, if you are using IRB with Ruby 2.0, you must first run: require 'active_support/core_ext/integer/inflections' | In Ruby on Rails, how do I format a date with the "th" suffix, as in, "Sun Oct 5th"? I want to display dates in the format: short day of week, short month, day of month without leading zero but including "th", "st", "nd", or "rd" suffix. For example, the day this question was asked would display "Thu Oct 2nd". I'm usin... | TITLE:
In Ruby on Rails, how do I format a date with the "th" suffix, as in, "Sun Oct 5th"?
QUESTION:
I want to display dates in the format: short day of week, short month, day of month without leading zero but including "th", "st", "nd", or "rd" suffix. For example, the day this question was asked would display "Thu ... | [
"ruby-on-rails",
"ruby",
"date"
] | 192 | 300 | 55,517 | 7 | 0 | 2008-10-03T00:12:07.317000 | 2008-10-03T00:25:37.660000 |
165,175 | 165,190 | Confusing return statement | I'm failing to understand exactly what the IF statement is doing, from what I can see it is checking if the variable x is equal to the int 0. If this is true the ABSOLUTE value of the variable y is returned... this is when I lose the plot, why would the return statement then go on to include <= ESPILON? Surely this mea... | Floating-point math is by its nature inaccurate, so rather than testing for equivalence (which is always a bad idea), instead the developer has chosen a small number (1x10^-14 in this case) as the acceptable tolerance for proximity to zero. The return statement returns a comparison, so what this will do is take the abs... | Confusing return statement I'm failing to understand exactly what the IF statement is doing, from what I can see it is checking if the variable x is equal to the int 0. If this is true the ABSOLUTE value of the variable y is returned... this is when I lose the plot, why would the return statement then go on to include ... | TITLE:
Confusing return statement
QUESTION:
I'm failing to understand exactly what the IF statement is doing, from what I can see it is checking if the variable x is equal to the int 0. If this is true the ABSOLUTE value of the variable y is returned... this is when I lose the plot, why would the return statement then... | [
"java",
"floating-point",
"operator-precedence"
] | 1 | 12 | 851 | 8 | 0 | 2008-10-03T00:14:29.123000 | 2008-10-03T00:17:44.183000 |
165,188 | 165,203 | printf + uint_64 on Solaris 9? | I have some c(++) code that uses sprintf to convert a uint_64 to a string. This needs to be portable to both linux and Solaris. On linux we use %ju, but there does not appear to be any equivalent on Solaris. The closest I can find is %lu, but this produces incorrect output. Some sample code: #include #include #ifdef Su... | If you have have inttypes.h available you can use the macros it provides: printf( "%" PRIu64 "\n", val); Not pretty (I seem to be saying that a lot recently), but it works. | printf + uint_64 on Solaris 9? I have some c(++) code that uses sprintf to convert a uint_64 to a string. This needs to be portable to both linux and Solaris. On linux we use %ju, but there does not appear to be any equivalent on Solaris. The closest I can find is %lu, but this produces incorrect output. Some sample co... | TITLE:
printf + uint_64 on Solaris 9?
QUESTION:
I have some c(++) code that uses sprintf to convert a uint_64 to a string. This needs to be portable to both linux and Solaris. On linux we use %ju, but there does not appear to be any equivalent on Solaris. The closest I can find is %lu, but this produces incorrect outp... | [
"c++",
"c",
"printf"
] | 9 | 11 | 4,529 | 5 | 0 | 2008-10-03T00:17:40.207000 | 2008-10-03T00:22:30.070000 |
165,212 | 165,718 | linux: getting umask of an already running process? | How can I check the umask of a program which is currently running? [update: another process, not the current process.] | You can attach gdb to a running process and then call umask in the debugger: (gdb) attach... (gdb) call umask(0) [Switching to Thread -1217489200 (LWP 11037)] $1 = 18 # this is the umask (gdb) call umask(18) # reset umask $2 = 0 (gdb) (note: 18 corresponds to a umask of O22 in this example) This suggests that there may... | linux: getting umask of an already running process? How can I check the umask of a program which is currently running? [update: another process, not the current process.] | TITLE:
linux: getting umask of an already running process?
QUESTION:
How can I check the umask of a program which is currently running? [update: another process, not the current process.]
ANSWER:
You can attach gdb to a running process and then call umask in the debugger: (gdb) attach... (gdb) call umask(0) [Switchin... | [
"linux",
"unix",
"umask"
] | 33 | 28 | 20,112 | 6 | 0 | 2008-10-03T00:24:43.607000 | 2008-10-03T04:46:39.717000 |
165,231 | 165,252 | Vim Dvorak keybindings (rebindings :) | Although I played with it before, I'm finally starting to use Dvorak (Simplified) regularly. I've been in a steady relationship with Vim for several years now, and I'm trying to figure out the best way to remap the key bindings to suit my newfound Dvorak skills. How do you remap Vim's key bindings to best work with Dvo... | I use one of the more common recommended keybindings: Dvorak it! no d h no h j no t k no n l no s: no S: no j d no l n no L N Added benefits no - $ no _ ^ no N no T no H 8 no T 8 no D Movement keys stay in the same location. Other changes: Delete 'd' -> Junk 'j' Next 'n' -> Look 'l' Previous 'N' -> Look Back 'L' There ... | Vim Dvorak keybindings (rebindings :) Although I played with it before, I'm finally starting to use Dvorak (Simplified) regularly. I've been in a steady relationship with Vim for several years now, and I'm trying to figure out the best way to remap the key bindings to suit my newfound Dvorak skills. How do you remap Vi... | TITLE:
Vim Dvorak keybindings (rebindings :)
QUESTION:
Although I played with it before, I'm finally starting to use Dvorak (Simplified) regularly. I've been in a steady relationship with Vim for several years now, and I'm trying to figure out the best way to remap the key bindings to suit my newfound Dvorak skills. H... | [
"vim",
"keyboard-shortcuts",
"dvorak"
] | 37 | 36 | 11,705 | 7 | 0 | 2008-10-03T00:30:43.157000 | 2008-10-03T00:41:15.750000 |
165,249 | 165,293 | How do you force a .net application to display on a particular monitor in a dual monitor setup? | I would like to run multiple copies of my application and force the first to open on one monitor and the second instance on a second monitor | Screen monitor1 = System.Windows.Forms.Screen.AllScreens[0]; Screen monitor2 = System.Windows.Forms.Screen.AllScreens[1]; will give you the size and position information for both monitors. Form f = new Form(); f.Location = monitor2.Location; f.Size = monitor2.Size; f.StartPosition = FormStartPosition.Manual; f.WindowSt... | How do you force a .net application to display on a particular monitor in a dual monitor setup? I would like to run multiple copies of my application and force the first to open on one monitor and the second instance on a second monitor | TITLE:
How do you force a .net application to display on a particular monitor in a dual monitor setup?
QUESTION:
I would like to run multiple copies of my application and force the first to open on one monitor and the second instance on a second monitor
ANSWER:
Screen monitor1 = System.Windows.Forms.Screen.AllScreens... | [
".net",
"multiple-monitors"
] | 5 | 8 | 2,763 | 1 | 0 | 2008-10-03T00:39:41.120000 | 2008-10-03T00:58:44.243000 |
165,253 | 165,310 | JavaScript: how to force Image() not to use the browser cache? | If I load the nextimg URL manually in the browser, it gives a new picture every time I reload. But this bit of code shows the same image every iteration of draw(). How can I force myimg not to be cached? | That actually sounds like a bug in the browser -- you could file at http://bugs.webkit.org if it's in Safari or https://bugzilla.mozilla.org/ for Firefox. Why do i say potential browser bug? Because the browser realises it should not be caching on reload, yet it does give you a cached copy of the image when you request... | JavaScript: how to force Image() not to use the browser cache? If I load the nextimg URL manually in the browser, it gives a new picture every time I reload. But this bit of code shows the same image every iteration of draw(). How can I force myimg not to be cached? | TITLE:
JavaScript: how to force Image() not to use the browser cache?
QUESTION:
If I load the nextimg URL manually in the browser, it gives a new picture every time I reload. But this bit of code shows the same image every iteration of draw(). How can I force myimg not to be cached?
ANSWER:
That actually sounds like ... | [
"javascript",
"image",
"caching"
] | 12 | 5 | 32,472 | 4 | 0 | 2008-10-03T00:41:40.867000 | 2008-10-03T01:10:12.390000 |
165,314 | 165,323 | How do I get my hands on a Dvorak keyboard? | I've always assumed that before I can use the Dvorak layout I need to purchase a Dvorak keyboard. But I can't find one on Amazon. Is it simply a matter of popping the keys off a Qwerty keyboard and moving them around? | To help you learn your way around the keyboard layout, you can physically rearrange the keys on your Qwerty keyboard. Or you can simply re-label the keys with stickers. I personally learned to type using the Dvorak layout without re-labeling or re-arranging keys, and found that it was not difficult. Most modern OSes al... | How do I get my hands on a Dvorak keyboard? I've always assumed that before I can use the Dvorak layout I need to purchase a Dvorak keyboard. But I can't find one on Amazon. Is it simply a matter of popping the keys off a Qwerty keyboard and moving them around? | TITLE:
How do I get my hands on a Dvorak keyboard?
QUESTION:
I've always assumed that before I can use the Dvorak layout I need to purchase a Dvorak keyboard. But I can't find one on Amazon. Is it simply a matter of popping the keys off a Qwerty keyboard and moving them around?
ANSWER:
To help you learn your way arou... | [
"keyboard",
"dvorak"
] | 9 | 16 | 12,497 | 16 | 0 | 2008-10-03T01:13:04.567000 | 2008-10-03T01:17:45.833000 |
165,316 | 165,357 | STAThread and multithreading | From the MSDN article on STAThread: Indicates that the COM threading model for an application is single-threaded apartment (STA). (For reference, that's the entire article.) Single-threaded apartment... OK, that went over my head. Also, I read somewhere that unless your application uses COM interop, this attribute actu... | Apartment threading is a COM concept; if you're not using COM, and none of the APIs you call use COM "under the covers", then you don't need to worry about apartments. If you do need to be aware of apartments, then the details can get a little complicated; a probably-oversimplified version is that COM objects tagged as... | STAThread and multithreading From the MSDN article on STAThread: Indicates that the COM threading model for an application is single-threaded apartment (STA). (For reference, that's the entire article.) Single-threaded apartment... OK, that went over my head. Also, I read somewhere that unless your application uses COM... | TITLE:
STAThread and multithreading
QUESTION:
From the MSDN article on STAThread: Indicates that the COM threading model for an application is single-threaded apartment (STA). (For reference, that's the entire article.) Single-threaded apartment... OK, that went over my head. Also, I read somewhere that unless your ap... | [
"c#",
".net",
"multithreading",
"sta"
] | 105 | 63 | 83,433 | 3 | 0 | 2008-10-03T01:14:01.570000 | 2008-10-03T01:42:26.010000 |
165,331 | 165,349 | How to get the asp.net login control to auto authenticate a previously authenticated user? | I am trying to to set up the login control to remember the login credentials of a user who has previously entered their user name and password successfully. I set the remember me property to true, but it doesnt seem to triger any events where I could read the cookie and auto login the user. Is there a straightforward m... | You need to Google for Forms Authentication in ASP.NET 2.0 You will need to set up your application (via web.config) and may also need to alter IIS settings. While it's all quite straightforward, there are heaps of settings that can be used, so best is to read some of the articles. ScottGu has a blog entry that goes in... | How to get the asp.net login control to auto authenticate a previously authenticated user? I am trying to to set up the login control to remember the login credentials of a user who has previously entered their user name and password successfully. I set the remember me property to true, but it doesnt seem to triger any... | TITLE:
How to get the asp.net login control to auto authenticate a previously authenticated user?
QUESTION:
I am trying to to set up the login control to remember the login credentials of a user who has previously entered their user name and password successfully. I set the remember me property to true, but it doesnt ... | [
"asp.net",
"cookies",
"authentication",
"controls"
] | 3 | 5 | 13,322 | 1 | 0 | 2008-10-03T01:22:00.160000 | 2008-10-03T01:36:27.973000 |
165,338 | 165,367 | Relative paths in Visual Studio | I'm working in Visual Studio 2005 and have added a text file that needs to be parsed by right-clicking the project in the solution explorer and add --> new item. This places the.txt file to the project folder. The debug.exe file is in the /bin/debug folder. How do I properly point to the txt file from code using relati... | Check out the Application Class. It has several members that can be used to locate files, etc. relative to the application once it's been installed. For example, Application.ExecutablePath tells you where the running EXE file is located; you could then use a relative path to find the file e.g...\..\FileToBeParsed.txt. ... | Relative paths in Visual Studio I'm working in Visual Studio 2005 and have added a text file that needs to be parsed by right-clicking the project in the solution explorer and add --> new item. This places the.txt file to the project folder. The debug.exe file is in the /bin/debug folder. How do I properly point to the... | TITLE:
Relative paths in Visual Studio
QUESTION:
I'm working in Visual Studio 2005 and have added a text file that needs to be parsed by right-clicking the project in the solution explorer and add --> new item. This places the.txt file to the project folder. The debug.exe file is in the /bin/debug folder. How do I pro... | [
".net",
"visual-studio",
"path",
"relative-path"
] | 10 | 6 | 21,228 | 7 | 0 | 2008-10-03T01:28:13.890000 | 2008-10-03T01:48:11.487000 |
165,346 | 170,069 | Varying Colors in Processing | I've been working on porting some of my Processing code over to regular Java in NetBeans. So far so well, most everything works great, except for when I go to use non-grayscale colors. I have a script that draws a spiral pattern, and should vary the colors in the spiral based on a modulus check. The script seems to han... | Have you considered adding debugging statements (System.out.println) and looking at the Java Console? There may be a massive amount of output and definitive slowdown, but you can at least see what happens when nothing seems to happen. What I do think is a logic error is the filling if statement; every iteratation you d... | Varying Colors in Processing I've been working on porting some of my Processing code over to regular Java in NetBeans. So far so well, most everything works great, except for when I go to use non-grayscale colors. I have a script that draws a spiral pattern, and should vary the colors in the spiral based on a modulus c... | TITLE:
Varying Colors in Processing
QUESTION:
I've been working on porting some of my Processing code over to regular Java in NetBeans. So far so well, most everything works great, except for when I go to use non-grayscale colors. I have a script that draws a spiral pattern, and should vary the colors in the spiral ba... | [
"java",
"colors",
"processing",
"spiral"
] | 4 | 2 | 1,425 | 3 | 0 | 2008-10-03T01:33:18.497000 | 2008-10-04T09:55:53.180000 |
165,355 | 165,374 | Why do these two date formats differ? | I'm trying to produce just the day number in a WPF text block, without leading zeroes and without extra space padding (which throws off the layout). The first produces the day number with a space, the second produces the entire date. According to the docs, 'd' should produce the day (1-31). string.Format("{0:d }", Date... | See here d, %d The day of the month. Single-digit days do not have a leading zero. The application specifies "%d" if the format pattern is not combined with other format patterns. Otherwise d is interpreted as: d - 'ShortDatePattern' PS. For messing around with format strings, using LinqPad is invaluable. | Why do these two date formats differ? I'm trying to produce just the day number in a WPF text block, without leading zeroes and without extra space padding (which throws off the layout). The first produces the day number with a space, the second produces the entire date. According to the docs, 'd' should produce the da... | TITLE:
Why do these two date formats differ?
QUESTION:
I'm trying to produce just the day number in a WPF text block, without leading zeroes and without extra space padding (which throws off the layout). The first produces the day number with a space, the second produces the entire date. According to the docs, 'd' sho... | [
"c#",
".net",
"datetime",
"formatting"
] | 2 | 5 | 379 | 3 | 0 | 2008-10-03T01:40:23.270000 | 2008-10-03T01:51:24.303000 |
165,383 | 165,444 | Optimal RAID setup for SQL server | We have an SQL 2005 database backend for our website, currently about 10GB in size. There are a lot more reads than writes, though I don't have the exact statistics. We're upgrading our database server and I was thinking of getting 4 disks and setting them up in two RAID 1 arrays - one for the data files and the other ... | Your concept of using independent RAID 1 mirrors is the correct strategy. We have implemented similar scenarios at my work and they work very well. RAID 1 RAID 1 gives you the speed of 1 disk for writing but 2 disks for reading. When you write data to a RAID 1 array, it has to write that data to both disks, so you do n... | Optimal RAID setup for SQL server We have an SQL 2005 database backend for our website, currently about 10GB in size. There are a lot more reads than writes, though I don't have the exact statistics. We're upgrading our database server and I was thinking of getting 4 disks and setting them up in two RAID 1 arrays - one... | TITLE:
Optimal RAID setup for SQL server
QUESTION:
We have an SQL 2005 database backend for our website, currently about 10GB in size. There are a lot more reads than writes, though I don't have the exact statistics. We're upgrading our database server and I was thinking of getting 4 disks and setting them up in two R... | [
"sql-server",
"database",
"performance",
"hardware"
] | 16 | 18 | 39,920 | 10 | 0 | 2008-10-03T02:01:33.903000 | 2008-10-03T02:32:49.087000 |
165,386 | 165,391 | Improve compiling speed in VS project using C++ Boost Libraries | I have just started using Boost 1.36. These libraries would be very useful in reducing the amount of code needed in the unmanaged C++ software project that I am working on. However when I tried to used these libraries my compile times increased ten fold. This would pretty much offset the productivity gains I would rece... | Have you tried using precompiled headers? That is including the boost headers in StdAfx.h or whatever header file you use for precompiled headers? | Improve compiling speed in VS project using C++ Boost Libraries I have just started using Boost 1.36. These libraries would be very useful in reducing the amount of code needed in the unmanaged C++ software project that I am working on. However when I tried to used these libraries my compile times increased ten fold. T... | TITLE:
Improve compiling speed in VS project using C++ Boost Libraries
QUESTION:
I have just started using Boost 1.36. These libraries would be very useful in reducing the amount of code needed in the unmanaged C++ software project that I am working on. However when I tried to used these libraries my compile times inc... | [
"c++",
"performance",
"visual-studio",
"boost"
] | 3 | 5 | 756 | 2 | 0 | 2008-10-03T02:03:54.833000 | 2008-10-03T02:06:26.967000 |
165,399 | 165,553 | Does ASP.NET transfer ALL session data from SQL server at the start of a request, or only as needed? | I'm using ASP.NET, with session state stored out of process in SQL Server. When a page request begins, are the entire contents of a user's session retrieved from the DB, deserialized, and sent to the ASP.NET process in one fell swoop, or are individual objects transferred to the ASP.NET process only as needed? Basicall... | It's all in one go. The session object is recreated from the store at the beginning of the request. It lets ASP.NET work the same way no matter what the underlying store is. You can find the gory details here. | Does ASP.NET transfer ALL session data from SQL server at the start of a request, or only as needed? I'm using ASP.NET, with session state stored out of process in SQL Server. When a page request begins, are the entire contents of a user's session retrieved from the DB, deserialized, and sent to the ASP.NET process in ... | TITLE:
Does ASP.NET transfer ALL session data from SQL server at the start of a request, or only as needed?
QUESTION:
I'm using ASP.NET, with session state stored out of process in SQL Server. When a page request begins, are the entire contents of a user's session retrieved from the DB, deserialized, and sent to the A... | [
"asp.net",
"session",
"sql-session-state"
] | 3 | 5 | 418 | 1 | 0 | 2008-10-03T02:10:56.800000 | 2008-10-03T03:13:15.760000 |
165,401 | 167,208 | how to compare/validate sql schema | I'm looking for a way to validate the SQL schema on a production DB after updating an application version. If the application does not match the DB schema version, there should be a way to warn the user and list the changes needed. Is there a tool or a framework (to use programatically) with built-in features to do tha... | Try this SQL. - Run it against each database. - Save the output to text files. - Diff the text files. /* get list of objects in the database */ SELECT name, type FROM sysobjects ORDER BY type, name
/* get list of columns in each table / parameters for each stored procedure */ SELECT so.name, so.type, sc.name, sc.numbe... | how to compare/validate sql schema I'm looking for a way to validate the SQL schema on a production DB after updating an application version. If the application does not match the DB schema version, there should be a way to warn the user and list the changes needed. Is there a tool or a framework (to use programaticall... | TITLE:
how to compare/validate sql schema
QUESTION:
I'm looking for a way to validate the SQL schema on a production DB after updating an application version. If the application does not match the DB schema version, there should be a way to warn the user and list the changes needed. Is there a tool or a framework (to ... | [
"sql",
"redgate"
] | 15 | 23 | 13,930 | 11 | 0 | 2008-10-03T02:11:21.230000 | 2008-10-03T14:42:15.473000 |
165,402 | 165,409 | Html control and Server control can be used in single aspx page | I need help on this following aspx code aspx Code: Consider this is my aspx page content. I am going to populate the values for the TextBox only after the postback from server. But the label is also posting to the server ( runat="server" ) even though it's not necessary. Should I write my code like this to save time fr... | If you take the runat='server' out of the element then it won't be parsed as a server control. If you're not going to do anything with lblNames from the server then it is perfectly okay to leave it out. | Html control and Server control can be used in single aspx page I need help on this following aspx code aspx Code: Consider this is my aspx page content. I am going to populate the values for the TextBox only after the postback from server. But the label is also posting to the server ( runat="server" ) even though it's... | TITLE:
Html control and Server control can be used in single aspx page
QUESTION:
I need help on this following aspx code aspx Code: Consider this is my aspx page content. I am going to populate the values for the TextBox only after the postback from server. But the label is also posting to the server ( runat="server" ... | [
"asp.net"
] | 0 | 3 | 434 | 3 | 0 | 2008-10-03T02:11:29.357000 | 2008-10-03T02:15:41.343000 |
165,404 | 165,980 | Resources for 2d game physics | I'm looking for some good references for learning how to model 2d physics in games. I am not looking for a library to do it for me - I want to think and learn, not blindly use someone else's work. I've done a good bit of Googling, and while I've found a few tutorials on GameDev, etc., I find their tutorials hard to und... | Here are some resources I assembled a few years ago. Of note is the Verlet Integration. I am also including links to some open source and commercial physics engines I found at that time. There is a stackoverflow article on this subject here: 2d game physics? Physics Methods Verlet Integration (Wikipedia Article) Advanc... | Resources for 2d game physics I'm looking for some good references for learning how to model 2d physics in games. I am not looking for a library to do it for me - I want to think and learn, not blindly use someone else's work. I've done a good bit of Googling, and while I've found a few tutorials on GameDev, etc., I fi... | TITLE:
Resources for 2d game physics
QUESTION:
I'm looking for some good references for learning how to model 2d physics in games. I am not looking for a library to do it for me - I want to think and learn, not blindly use someone else's work. I've done a good bit of Googling, and while I've found a few tutorials on G... | [
"c#",
"f#",
"2d",
"physics"
] | 42 | 21 | 14,228 | 8 | 0 | 2008-10-03T02:13:12.097000 | 2008-10-03T07:20:45.417000 |
165,421 | 165,436 | Adding field to open recordset | I there a simple way to append a new field to an existing open ADO RecordSet? fields.append() won't work if the RecordSet is open, and closing appears to kill the existing data. NB: I'm using Microsoft ActiveX DataObject 2.8 Library | You can't append fields to a recordset while it's open. You can create a clone of the recordset, append your required fields, open it and copy the data from the original. The other option is to persist the recordset as xml, modify the rowset schema, add required fields & then load xml into a new recordset. | Adding field to open recordset I there a simple way to append a new field to an existing open ADO RecordSet? fields.append() won't work if the RecordSet is open, and closing appears to kill the existing data. NB: I'm using Microsoft ActiveX DataObject 2.8 Library | TITLE:
Adding field to open recordset
QUESTION:
I there a simple way to append a new field to an existing open ADO RecordSet? fields.append() won't work if the RecordSet is open, and closing appears to kill the existing data. NB: I'm using Microsoft ActiveX DataObject 2.8 Library
ANSWER:
You can't append fields to a ... | [
"ado",
"recordset"
] | 0 | 2 | 3,837 | 1 | 0 | 2008-10-03T02:20:46.277000 | 2008-10-03T02:27:35.807000 |
165,424 | 169,123 | How does ItemContainerGenerator.ContainerFromItem work with a grouped list? | I have a ListBox which until recently was displaying a flat list of items. I was able to use myList.ItemContainerGenerator.ConainerFromItem(thing) to retrieve the ListBoxItem hosting "thing" in the list. This week I've modified the ListBox slightly in that the CollectionViewSource that it binds to for its items has gro... | You have to listen and react to the ItemsGenerator.StatusChanged Event and wait until the ItemContainers are generated before you can access them with ContainerFromElement. Searching further, I've found a thread in the MSDN forum from someone who has the same problem. This seems to be a bug in WPF, when one has a Group... | How does ItemContainerGenerator.ContainerFromItem work with a grouped list? I have a ListBox which until recently was displaying a flat list of items. I was able to use myList.ItemContainerGenerator.ConainerFromItem(thing) to retrieve the ListBoxItem hosting "thing" in the list. This week I've modified the ListBox slig... | TITLE:
How does ItemContainerGenerator.ContainerFromItem work with a grouped list?
QUESTION:
I have a ListBox which until recently was displaying a flat list of items. I was able to use myList.ItemContainerGenerator.ConainerFromItem(thing) to retrieve the ListBoxItem hosting "thing" in the list. This week I've modifie... | [
".net",
"wpf",
"listbox"
] | 31 | 41 | 29,233 | 3 | 0 | 2008-10-03T02:22:07.350000 | 2008-10-03T22:21:58.370000 |
165,443 | 165,532 | How do I convert a "title" attribute to a mouse over event with jQuery? | I have a "span" element inside a "table" "td" element. The span tag has a Title. I want to get the title of that span tag and pull it out to make it the "mouseover" tip for the "td" element. For example: I want to turn this: Acres Into this: Acres EDIT: I don't think you guys understand. I am trying to put the onmouseo... | Based on your edit, you might check out jQuery's DOM traversal methods: http://docs.jquery.com/Traversing Something along these lines (not tested, I don't claim it's syntactically correct, just general ideas here)... $("td").each(function() { $(this).mouseover(function() { tip($(this).children("span").attr("title")); }... | How do I convert a "title" attribute to a mouse over event with jQuery? I have a "span" element inside a "table" "td" element. The span tag has a Title. I want to get the title of that span tag and pull it out to make it the "mouseover" tip for the "td" element. For example: I want to turn this: Acres Into this: Acres ... | TITLE:
How do I convert a "title" attribute to a mouse over event with jQuery?
QUESTION:
I have a "span" element inside a "table" "td" element. The span tag has a Title. I want to get the title of that span tag and pull it out to make it the "mouseover" tip for the "td" element. For example: I want to turn this: Acres... | [
"jquery",
"html"
] | 1 | 6 | 6,935 | 5 | 0 | 2008-10-03T02:31:51.147000 | 2008-10-03T03:02:45.817000 |
165,455 | 165,472 | Why do people like case sensitivity? | Just wondering why people like case sensitivity in a programming language? I'm not trying to start a flame war just curious thats all. Personally I have never really liked it because I find my productivity goes down when ever I have tried a language that has case sensitivity, mind you I am slowly warming up/getting use... | Consistency. Code is more difficult to read if "foo", "Foo", "fOO", and "fOo" are considered to be identical. SOME PEOPLE WOULD WRITE EVERYTHING IN ALL CAPS, MAKING EVERYTHING LESS READABLE. Case sensitivity makes it easy to use the "same name" in different ways, according to a capitalization convention, e.g., Foo foo ... | Why do people like case sensitivity? Just wondering why people like case sensitivity in a programming language? I'm not trying to start a flame war just curious thats all. Personally I have never really liked it because I find my productivity goes down when ever I have tried a language that has case sensitivity, mind y... | TITLE:
Why do people like case sensitivity?
QUESTION:
Just wondering why people like case sensitivity in a programming language? I'm not trying to start a flame war just curious thats all. Personally I have never really liked it because I find my productivity goes down when ever I have tried a language that has case s... | [
"c#",
"case-sensitive"
] | 15 | 33 | 2,409 | 25 | 0 | 2008-10-03T02:40:08.150000 | 2008-10-03T02:45:22.737000 |
165,458 | 165,462 | Which is correct way to check for Null exception? | Which is the most correct code? if (HttpContext.Current.Response.Cookies[authCookieName]!= null) { HttpContext.Current.Response.Cookies[authCookieName].Value = "New Value"; } or if (HttpContext.Current!= null) if (HttpContext.Current.Response!= null) if (HttpContext.Current.Response.Cookies!= null) if (HttpContext.Curr... | If any one of HttpContext, HttpContext.Current, HttpContext.Current.Response, or Http.Current.Response.Cookies is null, you're already in trouble. Let the exception happen and fix your web server. | Which is correct way to check for Null exception? Which is the most correct code? if (HttpContext.Current.Response.Cookies[authCookieName]!= null) { HttpContext.Current.Response.Cookies[authCookieName].Value = "New Value"; } or if (HttpContext.Current!= null) if (HttpContext.Current.Response!= null) if (HttpContext.Cur... | TITLE:
Which is correct way to check for Null exception?
QUESTION:
Which is the most correct code? if (HttpContext.Current.Response.Cookies[authCookieName]!= null) { HttpContext.Current.Response.Cookies[authCookieName].Value = "New Value"; } or if (HttpContext.Current!= null) if (HttpContext.Current.Response!= null) i... | [
"c#",
"asp.net"
] | 5 | 19 | 4,936 | 7 | 0 | 2008-10-03T02:41:44.713000 | 2008-10-03T02:43:56.063000 |
165,466 | 171,863 | Avoiding TSQL Data-conversion errors | I think this is best asked in the form of a simple example. The following chunk of SQL causes a "DB-Library Error:20049 Severity:4 Message:Data-conversion resulted in overflow" message, but how come? declare @a numeric(18,6), @b numeric(18,6), @c numeric(18,6) select @a = 1.000000, @b = 1.000000, @c = 1.000000 select @... | I ran into the same problem the last time I tried to use Sybase (many years ago). Coming from a SQL Server mindset, I didn't realize that Sybase would attempt to coerce the decimals out -- which, mathematically, is what it should do.:) From the Sybase manual: Arithmetic overflow errors occur when the new type has too f... | Avoiding TSQL Data-conversion errors I think this is best asked in the form of a simple example. The following chunk of SQL causes a "DB-Library Error:20049 Severity:4 Message:Data-conversion resulted in overflow" message, but how come? declare @a numeric(18,6), @b numeric(18,6), @c numeric(18,6) select @a = 1.000000, ... | TITLE:
Avoiding TSQL Data-conversion errors
QUESTION:
I think this is best asked in the form of a simple example. The following chunk of SQL causes a "DB-Library Error:20049 Severity:4 Message:Data-conversion resulted in overflow" message, but how come? declare @a numeric(18,6), @b numeric(18,6), @c numeric(18,6) sele... | [
"t-sql",
"sybase",
"data-conversion"
] | 4 | 4 | 8,785 | 4 | 0 | 2008-10-03T02:44:32.723000 | 2008-10-05T11:58:26.583000 |
165,474 | 165,501 | What is better practice when programming a member function? | I have seen member functions programed both inside of the class they belong to and outside of the class with a function prototype inside of the class. I have only ever programmed using the first method, but was wondering if it is better practice to use the other or just personal preference? | Assuming you mean C++, it is always better to define functions outside of the class, because if you put it inside the class, compiler may try to inline it, which is not always desirable: Increase in code size (every object file that includes this header might end up with a copy of the function in their code). Breaking ... | What is better practice when programming a member function? I have seen member functions programed both inside of the class they belong to and outside of the class with a function prototype inside of the class. I have only ever programmed using the first method, but was wondering if it is better practice to use the oth... | TITLE:
What is better practice when programming a member function?
QUESTION:
I have seen member functions programed both inside of the class they belong to and outside of the class with a function prototype inside of the class. I have only ever programmed using the first method, but was wondering if it is better pract... | [
"class",
"member-functions"
] | 4 | 6 | 334 | 8 | 0 | 2008-10-03T02:45:49.243000 | 2008-10-03T02:53:32.627000 |
165,495 | 168,996 | Detecting Mouse clicks in windows using python | How can I detect mouse clicks regardless of the window the mouse is in? Perferabliy in python, but if someone can explain it in any langauge I might be able to figure it out. I found this on microsoft's site: http://msdn.microsoft.com/en-us/library/ms645533(VS.85).aspx But I don't see how I can detect or pick up the no... | The only way to detect mouse events outside your program is to install a Windows hook using SetWindowsHookEx. The pyHook module encapsulates the nitty-gritty details. Here's a sample that will print the location of every mouse click: import pyHook import pythoncom
def onclick(event): print event.Position return True
... | Detecting Mouse clicks in windows using python How can I detect mouse clicks regardless of the window the mouse is in? Perferabliy in python, but if someone can explain it in any langauge I might be able to figure it out. I found this on microsoft's site: http://msdn.microsoft.com/en-us/library/ms645533(VS.85).aspx But... | TITLE:
Detecting Mouse clicks in windows using python
QUESTION:
How can I detect mouse clicks regardless of the window the mouse is in? Perferabliy in python, but if someone can explain it in any langauge I might be able to figure it out. I found this on microsoft's site: http://msdn.microsoft.com/en-us/library/ms6455... | [
"python",
"windows",
"mouse"
] | 27 | 32 | 92,885 | 5 | 0 | 2008-10-03T02:51:44.470000 | 2008-10-03T21:38:15.320000 |
165,496 | 165,529 | Is it possible to convince GCC to mimic the fastcall calling convention? | So i have a piece of assembly that needs to call a function with the fastcall calling convention on windows, but gcc doesn't (afaict) support it. GCC does provide the regparm attribute but that expects the first 3 parameters to be passed in eax, edx and ecx, whereas fastcall expects the first two parameters to be passe... | GCC does support fastcall, via __attribute__((fastcall)). It appears to have been introduced in GCC 3.4. | Is it possible to convince GCC to mimic the fastcall calling convention? So i have a piece of assembly that needs to call a function with the fastcall calling convention on windows, but gcc doesn't (afaict) support it. GCC does provide the regparm attribute but that expects the first 3 parameters to be passed in eax, e... | TITLE:
Is it possible to convince GCC to mimic the fastcall calling convention?
QUESTION:
So i have a piece of assembly that needs to call a function with the fastcall calling convention on windows, but gcc doesn't (afaict) support it. GCC does provide the regparm attribute but that expects the first 3 parameters to b... | [
"gcc",
"visual-c++"
] | 3 | 12 | 6,679 | 3 | 0 | 2008-10-03T02:51:57.450000 | 2008-10-03T03:01:09.440000 |
165,539 | 168,561 | iPhone Proximity Sensor | Can the iPhone SDK take advantage of the iPhone's proximity sensors? If so, why hasn't anyone taken advantage of them? I could picture a few decent uses. For example, in a racing game, you could put your finger on the proximity sensor to go instead of taking up screen real-estate with your thumb. Of course though, if t... | Assuming you mean the sensor that shuts off the screen when you hold it to your ear, I'm pretty sure that is just an infrared sensor inside the ear speaker. If you start the phone app (you don't have to be making a call) and hold something to cast a shadow over the ear speaker, you can make the display shut off. When y... | iPhone Proximity Sensor Can the iPhone SDK take advantage of the iPhone's proximity sensors? If so, why hasn't anyone taken advantage of them? I could picture a few decent uses. For example, in a racing game, you could put your finger on the proximity sensor to go instead of taking up screen real-estate with your thumb... | TITLE:
iPhone Proximity Sensor
QUESTION:
Can the iPhone SDK take advantage of the iPhone's proximity sensors? If so, why hasn't anyone taken advantage of them? I could picture a few decent uses. For example, in a racing game, you could put your finger on the proximity sensor to go instead of taking up screen real-esta... | [
"ios",
"iphone",
"sensors",
"proximity"
] | 20 | 17 | 52,771 | 13 | 0 | 2008-10-03T03:06:11.550000 | 2008-10-03T19:41:14.060000 |
165,551 | 167,045 | How to tell if text on the windows clipboard is ISO 8859 or UTF-8 in C++? | I would like to know if there is an easy way to detect if the text on the clipboard is in ISO 8859 or UTF-8? Here is my current code: COleDataObject obj;
if (obj.AttachClipboard()) { if (obj.IsDataAvailable(CF_TEXT)) { HGLOBAL hmem = obj.GetGlobalData(CF_TEXT); CMemFile sf((BYTE*)::GlobalLock(hmem),(UINT)::GlobalSize(... | Check out the definition of CF_LOCALE at this Microsoft page. It tells you the locale of the text in the clipboard. Better yet, if you use CF_UNICODETEXT instead, Windows will convert to UTF-16 for you. | How to tell if text on the windows clipboard is ISO 8859 or UTF-8 in C++? I would like to know if there is an easy way to detect if the text on the clipboard is in ISO 8859 or UTF-8? Here is my current code: COleDataObject obj;
if (obj.AttachClipboard()) { if (obj.IsDataAvailable(CF_TEXT)) { HGLOBAL hmem = obj.GetGlob... | TITLE:
How to tell if text on the windows clipboard is ISO 8859 or UTF-8 in C++?
QUESTION:
I would like to know if there is an easy way to detect if the text on the clipboard is in ISO 8859 or UTF-8? Here is my current code: COleDataObject obj;
if (obj.AttachClipboard()) { if (obj.IsDataAvailable(CF_TEXT)) { HGLOBAL ... | [
"c++",
"windows",
"utf-8",
"clipboard"
] | 6 | 5 | 4,473 | 4 | 0 | 2008-10-03T03:12:03.487000 | 2008-10-03T14:05:59.180000 |
165,556 | 199,164 | How do I get the filename of the currently playing file in Vista Media Center? | I have Windows Vista MCML app, and I need to figure out the current name of the file playing. The Media Center SDK alludes to using MediaMetadata["Title"] to get this information, unfortunately this does not work with playlists (.wpl) files as there is no method for getting the position in the playlist. | Turns out this can not be easily done. There are 4 options. Never use play lists, in that case MediaMetadata["Title"] is good enough. Examine remote file handles in ehshell.exe. Inject a remote thread in ehshell.exe, establish communication and use reflection to read it. Write a DirectShow filter and communicate with i... | How do I get the filename of the currently playing file in Vista Media Center? I have Windows Vista MCML app, and I need to figure out the current name of the file playing. The Media Center SDK alludes to using MediaMetadata["Title"] to get this information, unfortunately this does not work with playlists (.wpl) files ... | TITLE:
How do I get the filename of the currently playing file in Vista Media Center?
QUESTION:
I have Windows Vista MCML app, and I need to figure out the current name of the file playing. The Media Center SDK alludes to using MediaMetadata["Title"] to get this information, unfortunately this does not work with playl... | [
"c#",
".net",
"mcml"
] | 2 | 1 | 381 | 2 | 0 | 2008-10-03T03:15:48.080000 | 2008-10-13T22:00:44.213000 |
165,575 | 165,604 | Learning about Auto-Implemented Properties | I have the simple class using auto-implemented properies: Public Class foo { public foo() { }
public string BarName {get; set;} } I obviously use the variable BarName throughout my class and now need to add logic when the property value is set (it must be all upper case, go figure). Does this mean that I need to now c... | Does this mean that I need to now create a private variable for BarName Yes and change the current BarName variable used throughout my class Do not change the rest of the code in your class to use the new private variable you create. BarName, as a property, is intended to hide the private variable (among other things),... | Learning about Auto-Implemented Properties I have the simple class using auto-implemented properies: Public Class foo { public foo() { }
public string BarName {get; set;} } I obviously use the variable BarName throughout my class and now need to add logic when the property value is set (it must be all upper case, go f... | TITLE:
Learning about Auto-Implemented Properties
QUESTION:
I have the simple class using auto-implemented properies: Public Class foo { public foo() { }
public string BarName {get; set;} } I obviously use the variable BarName throughout my class and now need to add logic when the property value is set (it must be al... | [
"c#",
".net-3.5",
"properties",
"automatic-properties"
] | 4 | 7 | 4,081 | 6 | 0 | 2008-10-03T03:24:29.227000 | 2008-10-03T03:41:23.180000 |
165,595 | 198,038 | Running a SWF from file:/// without having the user change their Flash Player security settings | I have a Flex app that does a a fair amount of network traffic, it uses ExternalInterface to make some javascript calls (for SCORM), it loads XML files, images, video, audio and it has a series of modules that it could be loading at some point... So the problem is - we now have a requirement where the user needs to run... | What you are trying to do is exactly the problem solved by AIR. You should really give it a try, it's not that hard to pick up. If you really really can't use AIR (you didn't specify why, so I assume it's just because you don't want to have to learn a new system), then modifying the security config file will solve the ... | Running a SWF from file:/// without having the user change their Flash Player security settings I have a Flex app that does a a fair amount of network traffic, it uses ExternalInterface to make some javascript calls (for SCORM), it loads XML files, images, video, audio and it has a series of modules that it could be lo... | TITLE:
Running a SWF from file:/// without having the user change their Flash Player security settings
QUESTION:
I have a Flex app that does a a fair amount of network traffic, it uses ExternalInterface to make some javascript calls (for SCORM), it loads XML files, images, video, audio and it has a series of modules t... | [
"apache-flex",
"flash",
"actionscript-3"
] | 3 | 6 | 2,930 | 6 | 0 | 2008-10-03T03:35:30.980000 | 2008-10-13T15:43:06.113000 |
165,603 | 165,623 | How can I access the raw HTTP request data with PHP/apache? | I was wondering if there was a way to get at the raw HTTP request data in PHP running on apache that doesn't involve using any additional extensions. I've seen the HTTP functions in the manual, but I don't have the option of installing an extension in my environment. While I can access the information from $_SERVER, I ... | Do you mean the information contained in $_SERVER? print_r($_SERVER); Edit: Would this do then? foreach(getallheaders() as $key=>$value) { print $key.': '.$value." "; } | How can I access the raw HTTP request data with PHP/apache? I was wondering if there was a way to get at the raw HTTP request data in PHP running on apache that doesn't involve using any additional extensions. I've seen the HTTP functions in the manual, but I don't have the option of installing an extension in my envir... | TITLE:
How can I access the raw HTTP request data with PHP/apache?
QUESTION:
I was wondering if there was a way to get at the raw HTTP request data in PHP running on apache that doesn't involve using any additional extensions. I've seen the HTTP functions in the manual, but I don't have the option of installing an ext... | [
"php",
"apache"
] | 17 | 10 | 19,086 | 3 | 0 | 2008-10-03T03:41:22.370000 | 2008-10-03T03:49:25.703000 |
165,637 | 165,737 | How do I create a custom slot in qt4 designer? | Whenever I use the signal/slot editor dialog box, I have to choose from the existing list of slots. So the question is how do I create a custom named slot? | Unfortunately this is not possible in Qt4. In Qt3 you could create custom slots which where then implemented in the ui.h file. However, Qt4 does not use this file so custom slots are not supported. There is some discussion of this issue over on QtForum | How do I create a custom slot in qt4 designer? Whenever I use the signal/slot editor dialog box, I have to choose from the existing list of slots. So the question is how do I create a custom named slot? | TITLE:
How do I create a custom slot in qt4 designer?
QUESTION:
Whenever I use the signal/slot editor dialog box, I have to choose from the existing list of slots. So the question is how do I create a custom named slot?
ANSWER:
Unfortunately this is not possible in Qt4. In Qt3 you could create custom slots which wher... | [
"c++",
"qt",
"qt4",
"qt-creator",
"qt-designer"
] | 21 | 4 | 36,210 | 10 | 0 | 2008-10-03T03:56:18.357000 | 2008-10-03T04:55:20.303000 |
165,648 | 919,442 | How can I display a calendar control (date picker) in Oracle forms 9/10? | How can I display a calendar control (date picker) in Oracle forms 9/10? | Most forms projects I've worked already have a date picker, implemented as a separate form - e.g. I think one gets generated by HeadStart. I think it's also been implemented using a separate canvas in the standard forms template. However, this question also asked on ittoolbox and answered here: Creating date picker cal... | How can I display a calendar control (date picker) in Oracle forms 9/10? How can I display a calendar control (date picker) in Oracle forms 9/10? | TITLE:
How can I display a calendar control (date picker) in Oracle forms 9/10?
QUESTION:
How can I display a calendar control (date picker) in Oracle forms 9/10?
ANSWER:
Most forms projects I've worked already have a date picker, implemented as a separate form - e.g. I think one gets generated by HeadStart. I think ... | [
"oracleforms"
] | 1 | 0 | 15,572 | 2 | 0 | 2008-10-03T03:59:53.433000 | 2009-05-28T06:19:50.983000 |
165,650 | 165,668 | How to add a Tooltip to a "td" with jquery? | I need to add a tooltip/alt to a "td" element inside of my tables with jquery. Can someone help me out? I tried: var tTip ="Hello world"; $(this).attr("onmouseover", tip(tTip)); where I have verified that I am using the "td" as "this". **Edit:**I am able to capture the "td" element through using the "alert" command and... | you might want to have a look at http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ | How to add a Tooltip to a "td" with jquery? I need to add a tooltip/alt to a "td" element inside of my tables with jquery. Can someone help me out? I tried: var tTip ="Hello world"; $(this).attr("onmouseover", tip(tTip)); where I have verified that I am using the "td" as "this". **Edit:**I am able to capture the "td" e... | TITLE:
How to add a Tooltip to a "td" with jquery?
QUESTION:
I need to add a tooltip/alt to a "td" element inside of my tables with jquery. Can someone help me out? I tried: var tTip ="Hello world"; $(this).attr("onmouseover", tip(tTip)); where I have verified that I am using the "td" as "this". **Edit:**I am able to ... | [
"jquery",
"html"
] | 8 | 13 | 50,647 | 6 | 0 | 2008-10-03T04:00:48.593000 | 2008-10-03T04:13:33.650000 |
165,660 | 165,681 | Why is my Perl regex using so much memory? | I'm running a regular expression against a large scalar. Though this match isn't capturing anything, my process grows by 30M after this match: # A if (${$c} =~ m/\G<<\s*/cgs) { #B... } $c is a reference to a pretty big scalar (around 21M), but I've verified that pos(${$c}) is in the right place and the expression match... | Just a quick sanity check, are you mentioning $&, $` or $' (sometimes called $MATCH, $PREMATCH and $POSTMATCH) anywhere in your code? If so, Perl will copy your entire string for every regular expression match, just in case you want to inspect those variables. "In your code" in this case means indirectly, including usi... | Why is my Perl regex using so much memory? I'm running a regular expression against a large scalar. Though this match isn't capturing anything, my process grows by 30M after this match: # A if (${$c} =~ m/\G<<\s*/cgs) { #B... } $c is a reference to a pretty big scalar (around 21M), but I've verified that pos(${$c}) is ... | TITLE:
Why is my Perl regex using so much memory?
QUESTION:
I'm running a regular expression against a large scalar. Though this match isn't capturing anything, my process grows by 30M after this match: # A if (${$c} =~ m/\G<<\s*/cgs) { #B... } $c is a reference to a pretty big scalar (around 21M), but I've verified t... | [
"regex",
"perl",
"memory-management"
] | 5 | 20 | 1,108 | 1 | 0 | 2008-10-03T04:10:22.427000 | 2008-10-03T04:21:32.680000 |
165,699 | 165,853 | how do I specify the source code directory in VS when looking at the call stack of a memory dump? | I am analyzing a.dmp file that was created and I have a call stack which gives me a lot of info. But I'd like to double click on the call stack and have it bring me to the source code. I can right click on the call stack and select symbol settings.. where I can put the location to the PDB. But there is no option for th... | The source code directory is unfortunately hard coded into the pdb's however if you know the folders required you can use windows concept of symbolic links, junctions. I use the tool Junction Link Magic | how do I specify the source code directory in VS when looking at the call stack of a memory dump? I am analyzing a.dmp file that was created and I have a call stack which gives me a lot of info. But I'd like to double click on the call stack and have it bring me to the source code. I can right click on the call stack a... | TITLE:
how do I specify the source code directory in VS when looking at the call stack of a memory dump?
QUESTION:
I am analyzing a.dmp file that was created and I have a call stack which gives me a lot of info. But I'd like to double click on the call stack and have it bring me to the source code. I can right click o... | [
"c++",
"visual-studio",
"crash-reports",
"memory-dump"
] | 6 | 3 | 3,138 | 4 | 0 | 2008-10-03T04:35:21.977000 | 2008-10-03T06:01:30.303000 |
165,713 | 165,745 | How do I provide a suffix for days of the month? | I need a function to return a suffix for days when displaying text like the " th " in " Wednesday June 5th, 2008 ". It only need work for the numbers 1 through 31 (no error checking required) and English. | Here is an alternative which should work for larger numbers too: static const char *daySuffixLookup[] = { "th","st","nd","rd","th", "th","th","th","th","th" };
const char *daySuffix(int n) { if(n % 100 >= 11 && n % 100 <= 13) return "th";
return daySuffixLookup[n % 10]; } | How do I provide a suffix for days of the month? I need a function to return a suffix for days when displaying text like the " th " in " Wednesday June 5th, 2008 ". It only need work for the numbers 1 through 31 (no error checking required) and English. | TITLE:
How do I provide a suffix for days of the month?
QUESTION:
I need a function to return a suffix for days when displaying text like the " th " in " Wednesday June 5th, 2008 ". It only need work for the numbers 1 through 31 (no error checking required) and English.
ANSWER:
Here is an alternative which should wor... | [
"c",
"date"
] | 4 | 9 | 4,250 | 4 | 0 | 2008-10-03T04:43:07.480000 | 2008-10-03T04:58:56.880000 |
165,719 | 165,728 | Practical uses for the "internal" keyword in C# | Could you please explain what the practical usage is for the internal keyword in C#? I know that the internal modifier limits access to the current assembly, but when and in which circumstance should I use it? | Utility or helper classes/methods that you would like to access from many other classes within the same assembly, but that you want to ensure code in other assemblies can't access. From MSDN (via archive.org): A common use of internal access is in component-based development because it enables a group of components to ... | Practical uses for the "internal" keyword in C# Could you please explain what the practical usage is for the internal keyword in C#? I know that the internal modifier limits access to the current assembly, but when and in which circumstance should I use it? | TITLE:
Practical uses for the "internal" keyword in C#
QUESTION:
Could you please explain what the practical usage is for the internal keyword in C#? I know that the internal modifier limits access to the current assembly, but when and in which circumstance should I use it?
ANSWER:
Utility or helper classes/methods t... | [
"c#",
".net-assembly",
"access-modifiers",
"internals"
] | 502 | 437 | 262,836 | 22 | 0 | 2008-10-03T04:46:50.310000 | 2008-10-03T04:51:48.363000 |
165,720 | 165,900 | How to debug RESTful services? | I'm looking for an easy way to debug RESTful services. For example, most webapps can be debugged using your average web browser. Unfortunately that same browser won't allow me to test HTTP PUT, DELETE, and to a certain degree even HTTP POST. I am not looking to automate tests. I'd like to run new services through a qui... | Use an existing 'REST client' tool that makes it easy to inspect the requests and responses, like RESTClient. | How to debug RESTful services? I'm looking for an easy way to debug RESTful services. For example, most webapps can be debugged using your average web browser. Unfortunately that same browser won't allow me to test HTTP PUT, DELETE, and to a certain degree even HTTP POST. I am not looking to automate tests. I'd like to... | TITLE:
How to debug RESTful services?
QUESTION:
I'm looking for an easy way to debug RESTful services. For example, most webapps can be debugged using your average web browser. Unfortunately that same browser won't allow me to test HTTP PUT, DELETE, and to a certain degree even HTTP POST. I am not looking to automate ... | [
"debugging",
"http",
"rest"
] | 60 | 35 | 67,572 | 17 | 0 | 2008-10-03T04:47:58.980000 | 2008-10-03T06:29:04.307000 |
165,723 | 165,743 | Do programmers of other languages, besides C++, use, know or understand RAII? | I've noticed RAII has been getting lots of attention on Stackoverflow, but in my circles (mostly C++) RAII is so obvious its like asking what's a class or a destructor. So I'm really curious if that's because I'm surrounded daily, by hard-core C++ programmers, and RAII just isn't that well known in general (including C... | For people who are commenting in this thread about RAII (resource acquisition is initialisation), here's a motivational example. class StdioFile { FILE* file_; std::string mode_;
static FILE* fcheck(FILE* stream) { if (!stream) throw std::runtime_error("Cannot open file"); return stream; }
FILE* fdup() const { int du... | Do programmers of other languages, besides C++, use, know or understand RAII? I've noticed RAII has been getting lots of attention on Stackoverflow, but in my circles (mostly C++) RAII is so obvious its like asking what's a class or a destructor. So I'm really curious if that's because I'm surrounded daily, by hard-cor... | TITLE:
Do programmers of other languages, besides C++, use, know or understand RAII?
QUESTION:
I've noticed RAII has been getting lots of attention on Stackoverflow, but in my circles (mostly C++) RAII is so obvious its like asking what's a class or a destructor. So I'm really curious if that's because I'm surrounded ... | [
"c++",
"language-agnostic",
"raii"
] | 37 | 11 | 7,926 | 17 | 0 | 2008-10-03T04:48:44.563000 | 2008-10-03T04:58:38.707000 |
165,735 | 165,746 | How do you show animated GIFs on a Windows Form (c#) | I have a form showing progress messages as a fairly long process runs. It's a call to a web service so I can't really show a percentage complete figure on a progress bar meaningfully. (I don't particularly like the Marquee property of the progress bar) I would like to show an animated GIF to give the process the feel o... | It's not too hard. Drop a picturebox onto your form. Add the.gif file as the image in the picturebox Show the picturebox when you are loading. Things to take into consideration: Disabling the picturebox will prevent the gif from being animated. Another way of doing it: Another way that I have found that works quite wel... | How do you show animated GIFs on a Windows Form (c#) I have a form showing progress messages as a fairly long process runs. It's a call to a web service so I can't really show a percentage complete figure on a progress bar meaningfully. (I don't particularly like the Marquee property of the progress bar) I would like t... | TITLE:
How do you show animated GIFs on a Windows Form (c#)
QUESTION:
I have a form showing progress messages as a fairly long process runs. It's a call to a web service so I can't really show a percentage complete figure on a progress bar meaningfully. (I don't particularly like the Marquee property of the progress b... | [
"c#",
"winforms",
"animated-gif"
] | 156 | 272 | 328,163 | 9 | 0 | 2008-10-03T04:54:22.273000 | 2008-10-03T04:59:05.147000 |
165,771 | 165,784 | Assembly dependencies with .Net projects | If I have an assembly (A) which references another assembly (B). I want to reference A in a project, I add the reference and it copies A into my BIN directory. It does not copy B as well, even though A depends on it, so the code doesn't compile. How can I set things up so that whenever I reference A, both A and B get c... | I dont think there is any way around what you ask other than to explicitly add both. I dont think however adding projects for the sake of getting references copied is a viable solution to the issue. Not all projects that a solution depends on should necassarily be added to the solution. This would completely depdend on... | Assembly dependencies with .Net projects If I have an assembly (A) which references another assembly (B). I want to reference A in a project, I add the reference and it copies A into my BIN directory. It does not copy B as well, even though A depends on it, so the code doesn't compile. How can I set things up so that w... | TITLE:
Assembly dependencies with .Net projects
QUESTION:
If I have an assembly (A) which references another assembly (B). I want to reference A in a project, I add the reference and it copies A into my BIN directory. It does not copy B as well, even though A depends on it, so the code doesn't compile. How can I set t... | [
"c#",
".net",
"vb.net"
] | 1 | 3 | 579 | 5 | 0 | 2008-10-03T05:20:24.237000 | 2008-10-03T05:29:13.657000 |
165,779 | 166,501 | Are the PUT, DELETE, HEAD, etc methods available in most web browsers? | I've seen a couple questions around here like How to debug RESTful services, which mentions: Unfortunately that same browser won't allow me to test HTTP PUT, DELETE, and to a certain degree even HTTP POST. I've also heard that browsers support only GET and POST, from some other sources like: http://www.packetizer.com/w... | No. The HTML 5 spec mentions: The method and formmethod content attributes are enumerated attributes with the following keywords and states: The keyword get, mapping to the state GET, indicating the HTTP GET method. The GET method should only request and retrieve data and should have no other effect. The keyword post, ... | Are the PUT, DELETE, HEAD, etc methods available in most web browsers? I've seen a couple questions around here like How to debug RESTful services, which mentions: Unfortunately that same browser won't allow me to test HTTP PUT, DELETE, and to a certain degree even HTTP POST. I've also heard that browsers support only ... | TITLE:
Are the PUT, DELETE, HEAD, etc methods available in most web browsers?
QUESTION:
I've seen a couple questions around here like How to debug RESTful services, which mentions: Unfortunately that same browser won't allow me to test HTTP PUT, DELETE, and to a certain degree even HTTP POST. I've also heard that brow... | [
"http",
"cross-browser",
"browser",
"ajax"
] | 635 | 476 | 254,855 | 7 | 0 | 2008-10-03T05:26:59.697000 | 2008-10-03T12:02:06.047000 |
165,783 | 165,893 | Opinion: in HTML, Possible Duplicate IDs or Non-Standard Attributes? | It seems pretty common to want to let your javascript know a particular dom node corresponds to a record in the database. So, how do you do it? One way I've seen that's pretty common is to use a class for the type and an id for the id: There's a slight html standards issue with this though -- if you have more than one ... | Note that an ID cannot start with a digit, so: is invalid HTML. See What are valid values for the id attribute in HTML? In your case, I would use ID's like thing5 or thing.5. | Opinion: in HTML, Possible Duplicate IDs or Non-Standard Attributes? It seems pretty common to want to let your javascript know a particular dom node corresponds to a record in the database. So, how do you do it? One way I've seen that's pretty common is to use a class for the type and an id for the id: There's a sligh... | TITLE:
Opinion: in HTML, Possible Duplicate IDs or Non-Standard Attributes?
QUESTION:
It seems pretty common to want to let your javascript know a particular dom node corresponds to a record in the database. So, how do you do it? One way I've seen that's pretty common is to use a class for the type and an id for the i... | [
"javascript",
"html",
"database"
] | 9 | 17 | 7,918 | 10 | 0 | 2008-10-03T05:28:11.910000 | 2008-10-03T06:24:55.160000 |
165,790 | 166,062 | What's the nicest way to do observer/observable in objective-c (iphone version) | I'm used to coding Java Swing UIs, and in those if you have some properties that change, and you want your UI to update, you would implement the observer/observable pattern. In Java you do this normally by having your class maintain a list of listeners that it notifies of different events. I've played with Objective-C ... | There are two built-in ways of doing observation in Cocoa: Key-Value Observing and notifications. In neither system do you need to maintain or notify a collection of observers yourself; the framework will handle that for you. Key-Value Observing (KVO) lets you observe a property of an object — including even a property... | What's the nicest way to do observer/observable in objective-c (iphone version) I'm used to coding Java Swing UIs, and in those if you have some properties that change, and you want your UI to update, you would implement the observer/observable pattern. In Java you do this normally by having your class maintain a list ... | TITLE:
What's the nicest way to do observer/observable in objective-c (iphone version)
QUESTION:
I'm used to coding Java Swing UIs, and in those if you have some properties that change, and you want your UI to update, you would implement the observer/observable pattern. In Java you do this normally by having your clas... | [
"iphone",
"objective-c",
"cocoa"
] | 14 | 37 | 21,487 | 3 | 0 | 2008-10-03T05:33:32.133000 | 2008-10-03T09:16:51.380000 |
165,796 | 165,799 | Using ini-files with VB 6.0 | I must be getting daft, but I can't seem to find how to read old-fashioned ini files with VB 6.0. All I can seem to find is about reading from and writing to the registry. Can someone push me in the right direction? Mind you, I am not a programmer, just a hobbyist trying to have some harmless fun with his computer, so ... | See the top answer on this thread. Nope, it's no different in VB!:-) | Using ini-files with VB 6.0 I must be getting daft, but I can't seem to find how to read old-fashioned ini files with VB 6.0. All I can seem to find is about reading from and writing to the registry. Can someone push me in the right direction? Mind you, I am not a programmer, just a hobbyist trying to have some harmles... | TITLE:
Using ini-files with VB 6.0
QUESTION:
I must be getting daft, but I can't seem to find how to read old-fashioned ini files with VB 6.0. All I can seem to find is about reading from and writing to the registry. Can someone push me in the right direction? Mind you, I am not a programmer, just a hobbyist trying to... | [
"vb6"
] | 2 | 1 | 4,109 | 2 | 0 | 2008-10-03T05:34:26.200000 | 2008-10-03T05:35:59.613000 |
165,800 | 165,823 | What is the best way for me to implement record locking? | I have a question about locking. This doesn't have to be only about record locking, but anyway. Let's say I'm writing a web accessible CMS. I am struggling with some ideas. I could, on the moment when a user opens an article for editing, flag the article as being 'in use'. so far so good. but when do I remove the flag?... | Why not use timestamps? Don't actually worry about locking anything, just react to the event where the record (article) has changed. Basically, before you save the article, check if your version (timestamp) is the same as what is on disk. If same, then you still have latest copy so write it, if not then... offer to mer... | What is the best way for me to implement record locking? I have a question about locking. This doesn't have to be only about record locking, but anyway. Let's say I'm writing a web accessible CMS. I am struggling with some ideas. I could, on the moment when a user opens an article for editing, flag the article as being... | TITLE:
What is the best way for me to implement record locking?
QUESTION:
I have a question about locking. This doesn't have to be only about record locking, but anyway. Let's say I'm writing a web accessible CMS. I am struggling with some ideas. I could, on the moment when a user opens an article for editing, flag th... | [
"database",
"locking"
] | 2 | 3 | 1,082 | 3 | 0 | 2008-10-03T05:36:28.910000 | 2008-10-03T05:48:57.947000 |
165,808 | 212,707 | Simple insecure two-way data "obfuscation"? | I'm looking for very simple obfuscation (like encrypt and decrypt but not necessarily secure) functionality for some data. It's not mission critical. I need something to keep honest people honest, but something a little stronger than ROT13 or Base64. I'd prefer something that is already included in the.NET framework 2.... | Other answers here work fine, but AES is a more secure and up-to-date encryption algorithm. This is a class that I obtained a few years ago to perform AES encryption that I have modified over time to be more friendly for web applications (e,g. I've built Encrypt/Decrypt methods that work with URL-friendly string). It a... | Simple insecure two-way data "obfuscation"? I'm looking for very simple obfuscation (like encrypt and decrypt but not necessarily secure) functionality for some data. It's not mission critical. I need something to keep honest people honest, but something a little stronger than ROT13 or Base64. I'd prefer something that... | TITLE:
Simple insecure two-way data "obfuscation"?
QUESTION:
I'm looking for very simple obfuscation (like encrypt and decrypt but not necessarily secure) functionality for some data. It's not mission critical. I need something to keep honest people honest, but something a little stronger than ROT13 or Base64. I'd pre... | [
"c#",
"obfuscation"
] | 443 | 475 | 232,856 | 17 | 0 | 2008-10-03T05:41:31.800000 | 2008-10-17T15:45:38.273000 |
165,809 | 167,301 | Is there a way to count the number of IL instructions executed? | I want to do some benchmarking of a C# process, but I don't want to use time as my vector - I want to count the number of IL instructions that get executed in a particular method call. Is this possible? Edit I don't mean static analysis of a method body - I'm referring to the actual number of instructions that are exec... | I don't think it's possible to do what you want. This is because the IL is only used during JIT (Just-In-Time) compilation. By the time the method is running the IL has been translated into native machine code. So, while it might be possible to count the number of IL instructions in a given method/type/assembly statica... | Is there a way to count the number of IL instructions executed? I want to do some benchmarking of a C# process, but I don't want to use time as my vector - I want to count the number of IL instructions that get executed in a particular method call. Is this possible? Edit I don't mean static analysis of a method body - ... | TITLE:
Is there a way to count the number of IL instructions executed?
QUESTION:
I want to do some benchmarking of a C# process, but I don't want to use time as my vector - I want to count the number of IL instructions that get executed in a particular method call. Is this possible? Edit I don't mean static analysis o... | [
"c#",
".net",
"benchmarking",
"cil"
] | 5 | 4 | 1,944 | 5 | 0 | 2008-10-03T05:43:12.437000 | 2008-10-03T15:02:28.850000 |
165,811 | 165,841 | Design of an performance assertion checking system | What are opinions on the design of a "performance assertion checking" system? The idea is that a developer makes some assertions about his/her code and use these to test the evolution of the performance of the code. What is the experience with such a system? My current block is "What's a better way to translate these a... | Do we embed performance checks in our application? No. The reason is that the performance checks themselves take time and our application is very sensitive to performance. Instead, we make our performance checks a test. And for that we use NUnit. For our nightly builds, we run the test, we generate a log with detailed ... | Design of an performance assertion checking system What are opinions on the design of a "performance assertion checking" system? The idea is that a developer makes some assertions about his/her code and use these to test the evolution of the performance of the code. What is the experience with such a system? My current... | TITLE:
Design of an performance assertion checking system
QUESTION:
What are opinions on the design of a "performance assertion checking" system? The idea is that a developer makes some assertions about his/her code and use these to test the evolution of the performance of the code. What is the experience with such a ... | [
"assertions"
] | 2 | 3 | 222 | 3 | 0 | 2008-10-03T05:43:31.873000 | 2008-10-03T05:54:43.127000 |
165,828 | 165,876 | Transactional queueing/dequeueing | I need to queue events and tasks for external systems in a reliable/transactional way. Using things like MSMQ or ActiveMQ look very seductive, but the transactional part becomes complicated (MSDTC, etc). We could use the database (SQL Server 2005+, Oracle 9+) and achieve easier transactional support, but the queuing pa... | our system has 60 computers, each running 12 tasks (threads) which need to "get next job". All in all, it comes to 50K "jobs" per day. do the math of how many transactions per minute and realize task time is variable, so it is possible to get multiple "pop" events at the exact same time. We had our first version using ... | Transactional queueing/dequeueing I need to queue events and tasks for external systems in a reliable/transactional way. Using things like MSMQ or ActiveMQ look very seductive, but the transactional part becomes complicated (MSDTC, etc). We could use the database (SQL Server 2005+, Oracle 9+) and achieve easier transac... | TITLE:
Transactional queueing/dequeueing
QUESTION:
I need to queue events and tasks for external systems in a reliable/transactional way. Using things like MSMQ or ActiveMQ look very seductive, but the transactional part becomes complicated (MSDTC, etc). We could use the database (SQL Server 2005+, Oracle 9+) and achi... | [
"architecture",
"transactional",
"queuing"
] | 5 | 5 | 1,719 | 6 | 0 | 2008-10-03T05:50:11.437000 | 2008-10-03T06:13:17.153000 |
165,831 | 165,858 | Daily Build vs. Zero Defect | How do you go about doing a daily build and striving for a zero-defect environment? Does it mean I never get to go home until I've killed all the bugs in my new code? Or does it mean I just don't check my code back in until I've fully tested it, which leaves the code effectively branched for a much longer time? I'm wor... | Yes, please adopt a software development process. There are a variety out there, of which I'm sure more than one will fit your team. Even one that isn't a perfect match is much better than no process at all. So how does my company go about having daily builds and striving for zero-defects? We run our test suite before ... | Daily Build vs. Zero Defect How do you go about doing a daily build and striving for a zero-defect environment? Does it mean I never get to go home until I've killed all the bugs in my new code? Or does it mean I just don't check my code back in until I've fully tested it, which leaves the code effectively branched for... | TITLE:
Daily Build vs. Zero Defect
QUESTION:
How do you go about doing a daily build and striving for a zero-defect environment? Does it mean I never get to go home until I've killed all the bugs in my new code? Or does it mean I just don't check my code back in until I've fully tested it, which leaves the code effect... | [
"continuous-integration",
"development-environment"
] | 14 | 6 | 1,130 | 11 | 0 | 2008-10-03T05:51:09.873000 | 2008-10-03T06:03:18.427000 |
165,840 | 169,926 | Site-Mining tools | Many of the questions asked here are relevant to research I'm doing. These questions and answers are widely dispersed and not always easy to find, doing manual browsing, and sometimes an insightful answer or comment occurs in unrelated topics as well. I want to automate finding these relevant Q's & A's, based on sets o... | It is not clear from your question whether you are a programmer or not, so I'm not sure whether you are after tools in the sense of apps or services that to what you want, or a library that makes site-mining easier. If the latter is the case and you use ruby, I can thoroughly recommend WWW::Mechanize. It provides a nic... | Site-Mining tools Many of the questions asked here are relevant to research I'm doing. These questions and answers are widely dispersed and not always easy to find, doing manual browsing, and sometimes an insightful answer or comment occurs in unrelated topics as well. I want to automate finding these relevant Q's & A'... | TITLE:
Site-Mining tools
QUESTION:
Many of the questions asked here are relevant to research I'm doing. These questions and answers are widely dispersed and not always easy to find, doing manual browsing, and sometimes an insightful answer or comment occurs in unrelated topics as well. I want to automate finding these... | [
"site-mining"
] | 2 | 1 | 204 | 4 | 0 | 2008-10-03T05:53:52.957000 | 2008-10-04T07:37:28.763000 |
165,846 | 166,440 | Best enterprise repository tool for Maven 2? | Some of the other questions and answers here on SO extol the virtues of using an enterprise repository tool like Archiva, Artifactory, or Nexus. What are the pros and cons of each? How do I choose between them? In case it helps: We use both Maven 1 and Maven 2 (at least for a while) We want to store both internally-gen... | We had been using Archiva for a while, and were happy with it. We recently switched hardware, and decided to try out Nexus because we had read some good things about it. We didn't know what we were missing in Archiva, but Nexus is far better. The repository aspect is easier because it "groups" all the repositories into... | Best enterprise repository tool for Maven 2? Some of the other questions and answers here on SO extol the virtues of using an enterprise repository tool like Archiva, Artifactory, or Nexus. What are the pros and cons of each? How do I choose between them? In case it helps: We use both Maven 1 and Maven 2 (at least for ... | TITLE:
Best enterprise repository tool for Maven 2?
QUESTION:
Some of the other questions and answers here on SO extol the virtues of using an enterprise repository tool like Archiva, Artifactory, or Nexus. What are the pros and cons of each? How do I choose between them? In case it helps: We use both Maven 1 and Mave... | [
"java",
"maven-2",
"build-automation",
"devtools"
] | 16 | 10 | 6,696 | 6 | 0 | 2008-10-03T05:57:20.670000 | 2008-10-03T11:40:33.313000 |
165,848 | 165,994 | Dynamic Database Binding in C# | I have a project here that connects to an in-production database and grabs tables and views. The code I've inherited connects to a SQL Server database via a SqlConnection, with the user's provided credentials and the database location they provide. When data is required, it uses the connection and a SQL string to creat... | It should work fine as long as you have specified the table name (else IIRC the first table is used). Of course, you can simplify things by giving the appropriate DataTable (rather than the DataSet) to the DGV. You might also want to check that auto column-generation is enabled on the DGV. But binding to an ad-hoc Data... | Dynamic Database Binding in C# I have a project here that connects to an in-production database and grabs tables and views. The code I've inherited connects to a SQL Server database via a SqlConnection, with the user's provided credentials and the database location they provide. When data is required, it uses the conne... | TITLE:
Dynamic Database Binding in C#
QUESTION:
I have a project here that connects to an in-production database and grabs tables and views. The code I've inherited connects to a SQL Server database via a SqlConnection, with the user's provided credentials and the database location they provide. When data is required,... | [
".net",
"database"
] | 3 | 1 | 2,022 | 3 | 0 | 2008-10-03T05:57:46.800000 | 2008-10-03T07:26:39.037000 |
165,866 | 256,527 | Apache configuration help -- Why are different processes "in" different time zones? | I have Apache 2 running on a VPS server (running Debian). I recently changed the timezone on the server (using dpkg-reconfigure tzdata) from America/New_York to America/Los_Angeles to match my move across country. I have also rebooted the virtual machine since making the change. However, the Apache processes seem to fl... | As it turns out, I had two Django projects running on this Apache instance, one of which I had fixed to point to America/Los_Angeles, but the other I had left behind. Depending on which app was accessed first when a new Apache process was created, it would muck up the time zone! | Apache configuration help -- Why are different processes "in" different time zones? I have Apache 2 running on a VPS server (running Debian). I recently changed the timezone on the server (using dpkg-reconfigure tzdata) from America/New_York to America/Los_Angeles to match my move across country. I have also rebooted t... | TITLE:
Apache configuration help -- Why are different processes "in" different time zones?
QUESTION:
I have Apache 2 running on a VPS server (running Debian). I recently changed the timezone on the server (using dpkg-reconfigure tzdata) from America/New_York to America/Los_Angeles to match my move across country. I ha... | [
"linux",
"apache",
"apache2",
"timezone",
"debian"
] | 2 | 2 | 768 | 3 | 0 | 2008-10-03T06:06:22.490000 | 2008-11-02T04:50:13.820000 |
165,883 | 165,911 | Python object attributes - methodology for access | Suppose I have a class with some attributes. How is it best (in the Pythonic-OOP) sense to access these attributes? Just like obj.attr? Or perhaps write get accessors? What are the accepted naming styles for such things? Edit: Can you elaborate on the best-practices of naming attributes with a single or double leading ... | The generally accepted way of doing things is just using simple attributes, like so >>> class MyClass:... myAttribute = 0... >>> c = MyClass() >>> c.myAttribute 0 >>> c.myAttribute = 1 >>> c.myAttribute 1 If you do find yourself needing to be able to write getters and setters, then what you want to look for is "python ... | Python object attributes - methodology for access Suppose I have a class with some attributes. How is it best (in the Pythonic-OOP) sense to access these attributes? Just like obj.attr? Or perhaps write get accessors? What are the accepted naming styles for such things? Edit: Can you elaborate on the best-practices of ... | TITLE:
Python object attributes - methodology for access
QUESTION:
Suppose I have a class with some attributes. How is it best (in the Pythonic-OOP) sense to access these attributes? Just like obj.attr? Or perhaps write get accessors? What are the accepted naming styles for such things? Edit: Can you elaborate on the ... | [
"python",
"oop",
"object",
"attributes"
] | 23 | 23 | 44,649 | 7 | 0 | 2008-10-03T06:18:37.250000 | 2008-10-03T06:35:37.007000 |
165,887 | 165,929 | .NET Date Compare: Count the amount of working days since a date? | What's the easiest way to compute the amount of working days since a date? VB.NET preferred, but C# is okay. And by "working days", I mean all days excluding Saturday and Sunday. If the algorithm can also take into account a list of specific 'exclusion' dates that shouldn't count as working days, that would be gravy. T... | This'll do what you want it to. It should be easy enough to convert to VB.NET, it's been too long for me to be able to do it though. DateTime start = DateTime.Now; DateTime end = start.AddDays(9); IEnumerable holidays = new DateTime[0];
// basic data int days = (int)(end - start).TotalDays; int weeks = days / 7;
// c... | .NET Date Compare: Count the amount of working days since a date? What's the easiest way to compute the amount of working days since a date? VB.NET preferred, but C# is okay. And by "working days", I mean all days excluding Saturday and Sunday. If the algorithm can also take into account a list of specific 'exclusion' ... | TITLE:
.NET Date Compare: Count the amount of working days since a date?
QUESTION:
What's the easiest way to compute the amount of working days since a date? VB.NET preferred, but C# is okay. And by "working days", I mean all days excluding Saturday and Sunday. If the algorithm can also take into account a list of spe... | [
".net",
"algorithm",
"comparison",
"date"
] | 11 | 16 | 15,667 | 7 | 0 | 2008-10-03T06:21:12.720000 | 2008-10-03T06:43:35.457000 |
165,938 | 165,942 | How can I debug a .BAT script? | Is there a way to step through a.bat script? The thing is, I have a build script, which calls a lot of other scripts, and I would like to see what is the order in which they are called, so that I may know where exactly I have to go about and add my modifications. | I don't know of anyway to step through the execution of a.bat file but you can use echo and pause to help with debugging. ECHO Will echo a message in the batch file. Such as ECHO Hello World will print Hello World on the screen when executed. However, without @ECHO OFF at the beginning of the batch file you'll also get... | How can I debug a .BAT script? Is there a way to step through a.bat script? The thing is, I have a build script, which calls a lot of other scripts, and I would like to see what is the order in which they are called, so that I may know where exactly I have to go about and add my modifications. | TITLE:
How can I debug a .BAT script?
QUESTION:
Is there a way to step through a.bat script? The thing is, I have a build script, which calls a lot of other scripts, and I would like to see what is the order in which they are called, so that I may know where exactly I have to go about and add my modifications.
ANSWER... | [
"windows",
"batch-file",
"debugging",
"cmd",
"dos"
] | 116 | 83 | 212,228 | 11 | 0 | 2008-10-03T06:46:53.267000 | 2008-10-03T06:50:13.680000 |
165,949 | 172,772 | Mono created features available on .NET? | I noticed the following today: Mono at the PDC 2008? My talk will cover new technologies that we have created as part of Mono. Some of them are reusable on.NET (we try to make our code cross platform) and some other are features that specific to Mono's implementation of the CLI. Posted by Miguel de Icaza on 01 Oct 2008... | These are some of the major libraries that you can use: Gtk#, the Cross platform GUI API Unix, Windows, MacOS X, this is an entire stack of libraries and includes widgets (with Gtk+), Accessibility and international text rendering (with PangoSharp). Mono.DataConvert - System.BitConverter implemented correctly, and well... | Mono created features available on .NET? I noticed the following today: Mono at the PDC 2008? My talk will cover new technologies that we have created as part of Mono. Some of them are reusable on.NET (we try to make our code cross platform) and some other are features that specific to Mono's implementation of the CLI.... | TITLE:
Mono created features available on .NET?
QUESTION:
I noticed the following today: Mono at the PDC 2008? My talk will cover new technologies that we have created as part of Mono. Some of them are reusable on.NET (we try to make our code cross platform) and some other are features that specific to Mono's implemen... | [
".net",
"mono",
"pdc"
] | 18 | 55 | 2,339 | 9 | 0 | 2008-10-03T06:56:15.100000 | 2008-10-05T22:32:57.457000 |
165,951 | 165,955 | How can I run a CLI Application as a Windows Service? | Say I have a third party Application that does background work, but prints out all errors and messages to the console. This means, that currently, we have to keep a user logged on to the server, and restart the application (double-click) every time we reboot. Not so very cool. I was kind of sure, that there was an easy... | Check out srvany.exe from the Resource Kit. This will let run anything as a service. You can pass parameters in the service definition to your executable via srvany.exe so you could run a batch file as a service by seting the registry as follows: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyService\Parameter... | How can I run a CLI Application as a Windows Service? Say I have a third party Application that does background work, but prints out all errors and messages to the console. This means, that currently, we have to keep a user logged on to the server, and restart the application (double-click) every time we reboot. Not so... | TITLE:
How can I run a CLI Application as a Windows Service?
QUESTION:
Say I have a third party Application that does background work, but prints out all errors and messages to the console. This means, that currently, we have to keep a user logged on to the server, and restart the application (double-click) every time... | [
"windows",
"windows-services"
] | 7 | 11 | 7,721 | 6 | 0 | 2008-10-03T06:57:24.240000 | 2008-10-03T06:59:33.190000 |
165,971 | 165,992 | What is Code compiled unit in ASP.net | I need to know what is code compiled unit in.net. It s located in this path C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\App_folders I need to know why its created ccu file also an complied file with application extension dll. Do this take any reference from here. Thanks | I suggest you take a look at the article at: http://msdn.microsoft.com/en-us/magazine/cc163496.aspx "By default, when you compile a Web application the compiled code is placed in the Temporary ASP.NET Files folder. This folder is a subdirectory of the location where you installed the.NET framework. Typically, the locat... | What is Code compiled unit in ASP.net I need to know what is code compiled unit in.net. It s located in this path C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\App_folders I need to know why its created ccu file also an complied file with application extension dll. Do this take any reference fro... | TITLE:
What is Code compiled unit in ASP.net
QUESTION:
I need to know what is code compiled unit in.net. It s located in this path C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\App_folders I need to know why its created ccu file also an complied file with application extension dll. Do this take... | [
"asp.net"
] | 1 | 1 | 450 | 1 | 0 | 2008-10-03T07:14:31.420000 | 2008-10-03T07:25:50.257000 |
165,975 | 166,005 | Determining Referer in PHP | What is the most reliable and secure way to determine what page either sent, or called (via AJAX), the current page. I don't want to use the $_SERVER['HTTP_REFERER'], because of the (lack of) reliability, and I need the page being called to only come from requests originating on my site. Edit: I am looking to verify th... | The REFERER is sent by the client's browser as part of the HTTP protocol, and is therefore unreliable indeed. It might not be there, it might be forged, you just can't trust it if it's for security reasons. If you want to verify if a request is coming from your site, well you can't, but you can verify the user has been... | Determining Referer in PHP What is the most reliable and secure way to determine what page either sent, or called (via AJAX), the current page. I don't want to use the $_SERVER['HTTP_REFERER'], because of the (lack of) reliability, and I need the page being called to only come from requests originating on my site. Edit... | TITLE:
Determining Referer in PHP
QUESTION:
What is the most reliable and secure way to determine what page either sent, or called (via AJAX), the current page. I don't want to use the $_SERVER['HTTP_REFERER'], because of the (lack of) reliability, and I need the page being called to only come from requests originatin... | [
"php",
"http-referer"
] | 106 | 95 | 157,489 | 5 | 0 | 2008-10-03T07:17:41.837000 | 2008-10-03T07:33:54.463000 |
165,984 | 166,651 | Moving between dialog controls in Windows Mobile without the tab key | I have a windows mobile 5.0 app, written in C++ MFC, with lots of dialogs. One of the devices I'm currently targetting does not have a tab key, so I would like to use another key to move between controls. This is fine for buttons but not edit controls or combo boxes. I have looked at a similar question but the answer d... | I don't know MFC that good, but maybe you could pull it off by subclassing window procedures of all those controls with a single class, which would only handle cases of pressing cursor keys and pass the rest of events to the original procedures. You would have to provide your own mechanism of moving to an appropriate c... | Moving between dialog controls in Windows Mobile without the tab key I have a windows mobile 5.0 app, written in C++ MFC, with lots of dialogs. One of the devices I'm currently targetting does not have a tab key, so I would like to use another key to move between controls. This is fine for buttons but not edit controls... | TITLE:
Moving between dialog controls in Windows Mobile without the tab key
QUESTION:
I have a windows mobile 5.0 app, written in C++ MFC, with lots of dialogs. One of the devices I'm currently targetting does not have a tab key, so I would like to use another key to move between controls. This is fine for buttons but... | [
"c++",
"windows-mobile",
"mfc",
"windows-ce"
] | 0 | 1 | 890 | 2 | 0 | 2008-10-03T07:22:23.167000 | 2008-10-03T12:49:49.537000 |
165,987 | 166,555 | Automatically starting Windows Sound Recorder | My division has been tasked with recording the morning presentation audio for future use, using the built-in Windows Sound Recorder. Because of human nature, we don't always remember to start it on time. Windows doesn't have a built-in equivalent to the Unix cron function. Besides installing a new software program (whi... | set WshShell = WScript.CreateObject("WScript.Shell") WScript.Sleep(100) WshShell.Run "%SystemRoot%\system32\sndrec32.exe" WScript.Sleep(100) WshShell.AppActivate "Sound - Sound Recorder" WScript.Sleep(100) WshShell.SendKeys " " WScript.Sleep(100) Save the above text as RunSoundRecorder.vbs. This will start the sound re... | Automatically starting Windows Sound Recorder My division has been tasked with recording the morning presentation audio for future use, using the built-in Windows Sound Recorder. Because of human nature, we don't always remember to start it on time. Windows doesn't have a built-in equivalent to the Unix cron function. ... | TITLE:
Automatically starting Windows Sound Recorder
QUESTION:
My division has been tasked with recording the morning presentation audio for future use, using the built-in Windows Sound Recorder. Because of human nature, we don't always remember to start it on time. Windows doesn't have a built-in equivalent to the Un... | [
"windows",
"automation",
"scheduled-tasks"
] | 2 | 3 | 7,938 | 4 | 0 | 2008-10-03T07:22:54.227000 | 2008-10-03T12:22:46.300000 |
166,015 | 166,024 | Need assistance with accelerating a GOval object (making a Breakout game) | Hey peoples, I've been studying Java for a couple of weeks, and have decided to produce my own version of Breakout. The game is working fine, apart from the method which is supposed to modify the ball (GOval) speed based on the speed of the paddle (GRect). Anyway, this is the method: private double paddleVelocity(){ do... | I can't see where you are setting paddleXTracker and friends when paddle velocity is updated. So here are some possible fixes: You are not updating the past values continuously, only once at the start. you never updated the paddleXTrackerTwo and paddleXTrackerThree values so the average is to the left (due to divide by... | Need assistance with accelerating a GOval object (making a Breakout game) Hey peoples, I've been studying Java for a couple of weeks, and have decided to produce my own version of Breakout. The game is working fine, apart from the method which is supposed to modify the ball (GOval) speed based on the speed of the paddl... | TITLE:
Need assistance with accelerating a GOval object (making a Breakout game)
QUESTION:
Hey peoples, I've been studying Java for a couple of weeks, and have decided to produce my own version of Breakout. The game is working fine, apart from the method which is supposed to modify the ball (GOval) speed based on the ... | [
"java"
] | 0 | 2 | 1,223 | 1 | 0 | 2008-10-03T07:40:11.577000 | 2008-10-03T07:47:45.180000 |
166,023 | 166,891 | Does ASP Classic has its own security framework or does it use that of IIS? | I'm supporting a site that still uses mixed ASP.NET and ASP Classic. The user receives a 'You are not authorized' error page while accessing certain ASP Classic page. I've checked her active directory account and she could access other pages in the said site. Can it be attributed to classic ASP or to IIS? | ASP is entirely dependent on the underlying IIS and the OS for security. It has none of its own. In ASP you access Request.ServerVariables("AUTH_USER"), etc. when the connection is authenticated, but this is done by IIS. | Does ASP Classic has its own security framework or does it use that of IIS? I'm supporting a site that still uses mixed ASP.NET and ASP Classic. The user receives a 'You are not authorized' error page while accessing certain ASP Classic page. I've checked her active directory account and she could access other pages in... | TITLE:
Does ASP Classic has its own security framework or does it use that of IIS?
QUESTION:
I'm supporting a site that still uses mixed ASP.NET and ASP Classic. The user receives a 'You are not authorized' error page while accessing certain ASP Classic page. I've checked her active directory account and she could acc... | [
"security",
"asp-classic"
] | 1 | 2 | 950 | 3 | 0 | 2008-10-03T07:47:19.503000 | 2008-10-03T13:36:57.897000 |
166,033 | 166,039 | What do ‘value semantics’ and ‘pointer semantics’ mean? | What is meant by ‘value semantics’, and what is meant by ‘implicit pointer semantics’? | Java is using implicit pointer semantics for Object types and value semantics for primitives. Value semantics means that you deal directly with values and that you pass copies around. The point here is that when you have a value, you can trust it won't change behind your back. With pointer semantics, you don't have a v... | What do ‘value semantics’ and ‘pointer semantics’ mean? What is meant by ‘value semantics’, and what is meant by ‘implicit pointer semantics’? | TITLE:
What do ‘value semantics’ and ‘pointer semantics’ mean?
QUESTION:
What is meant by ‘value semantics’, and what is meant by ‘implicit pointer semantics’?
ANSWER:
Java is using implicit pointer semantics for Object types and value semantics for primitives. Value semantics means that you deal directly with values... | [
"java",
"c++",
"terminology",
"semantics"
] | 24 | 20 | 13,768 | 4 | 0 | 2008-10-03T09:04:08.083000 | 2008-10-03T09:08:20.650000 |
166,044 | 166,290 | Sleeping in a batch file | When writing a batch file to automate something on a Windows box, I've needed to pause its execution for several seconds (usually in a test/wait loop, waiting for a process to start). At the time, the best solution I could find uses ping (I kid you not) to achieve the desired effect. I've found a better write-up of it ... | UPDATE The timeout command, available from Windows Vista and onwards should be the command used, as described in another answer to this question. What follows here is an old answer. Old answer If you have Python installed, or don't mind installing it (it has other uses too:), just create the following sleep.py script a... | Sleeping in a batch file When writing a batch file to automate something on a Windows box, I've needed to pause its execution for several seconds (usually in a test/wait loop, waiting for a process to start). At the time, the best solution I could find uses ping (I kid you not) to achieve the desired effect. I've found... | TITLE:
Sleeping in a batch file
QUESTION:
When writing a batch file to automate something on a Windows box, I've needed to pause its execution for several seconds (usually in a test/wait loop, waiting for a process to start). At the time, the best solution I could find uses ping (I kid you not) to achieve the desired ... | [
"python",
"batch-file"
] | 165 | 19 | 155,875 | 34 | 0 | 2008-10-03T09:10:29.023000 | 2008-10-03T10:42:19.897000 |
166,051 | 166,069 | How should I name packages if I don't have a domain associated with me? | So most Java resources when speaking of packages mention a com.yourcompany.project setup. However, I do not work for a company, and don't have a website. Are there any naming conventions that are common? An email address, perhaps? | Use a top-level domain like 'bernard' or something else unique. The important part is that the domain is unique so that you avoid clashes, and not that it starts with a real Internet top-level domain like org or com. E.g. import java.util.*; import bernard.myProject.*; import org.apache.commons.lang.*; | How should I name packages if I don't have a domain associated with me? So most Java resources when speaking of packages mention a com.yourcompany.project setup. However, I do not work for a company, and don't have a website. Are there any naming conventions that are common? An email address, perhaps? | TITLE:
How should I name packages if I don't have a domain associated with me?
QUESTION:
So most Java resources when speaking of packages mention a com.yourcompany.project setup. However, I do not work for a company, and don't have a website. Are there any naming conventions that are common? An email address, perhaps?... | [
"java",
"namespaces",
"package"
] | 37 | 19 | 13,080 | 10 | 0 | 2008-10-03T09:12:58.470000 | 2008-10-03T09:22:22.743000 |
166,067 | 166,070 | C# structural highlighting in Visual Studio 2008 | I'm looking for an add-in to VS2008 that can enable structural highlighting ( vertical lines in blocks of code) in the C# code editor. I tried out CodeRush, but while the structural highlighting was great, I was annoyed with all the other stuff in CodeRush. No matter how much I disabled in the options, I couldn't quite... | While browsing the ViEmu site, I saw the Codekana product which looks like it may do what you want. | C# structural highlighting in Visual Studio 2008 I'm looking for an add-in to VS2008 that can enable structural highlighting ( vertical lines in blocks of code) in the C# code editor. I tried out CodeRush, but while the structural highlighting was great, I was annoyed with all the other stuff in CodeRush. No matter how... | TITLE:
C# structural highlighting in Visual Studio 2008
QUESTION:
I'm looking for an add-in to VS2008 that can enable structural highlighting ( vertical lines in blocks of code) in the C# code editor. I tried out CodeRush, but while the structural highlighting was great, I was annoyed with all the other stuff in CodeR... | [
"c#",
"visual-studio"
] | 5 | 7 | 1,925 | 4 | 0 | 2008-10-03T09:20:18.020000 | 2008-10-03T09:23:06.283000 |
166,089 | 166,094 | What is a C# analog of C++ std::pair? | What is a C#'s analog of std::pair in C++? I found System.Web.UI.Pair class, but I'd prefer something template-based. | Tuples are available since.NET4.0 and support generics: Tuple t = new Tuple ("Hello", 4); In previous versions you can use System.Collections.Generic.KeyValuePair or a solution like the following: public class Pair { public Pair() { }
public Pair(T first, U second) { this.First = first; this.Second = second; }
public... | What is a C# analog of C++ std::pair? What is a C#'s analog of std::pair in C++? I found System.Web.UI.Pair class, but I'd prefer something template-based. | TITLE:
What is a C# analog of C++ std::pair?
QUESTION:
What is a C#'s analog of std::pair in C++? I found System.Web.UI.Pair class, but I'd prefer something template-based.
ANSWER:
Tuples are available since.NET4.0 and support generics: Tuple t = new Tuple ("Hello", 4); In previous versions you can use System.Collect... | [
"c#",
".net",
"data-structures",
"std-pair",
"base-class-library"
] | 340 | 385 | 288,969 | 14 | 0 | 2008-10-03T09:33:06.980000 | 2008-10-03T09:35:49.407000 |
166,113 | 166,118 | Function returning the return of another function | If I want to call Bar() instead of Foo(), does Bar() return me a copy (additional overhead) of what Foo() returns, or it returns the same object which Foo() places on the temporary stack? vector Foo(){ vector result; result.push_back(1); return result; } vector Bar(){ return Foo(); } | Both may happen. However, most compiler will not do copy as soon as you optimize. Your code indicate there should be a copy. However, the compiler is allowed to remove any copy that do not change the semantic and the program. Note: This is why you should NEVER have a copy constructor that does anything but copying corr... | Function returning the return of another function If I want to call Bar() instead of Foo(), does Bar() return me a copy (additional overhead) of what Foo() returns, or it returns the same object which Foo() places on the temporary stack? vector Foo(){ vector result; result.push_back(1); return result; } vector Bar(){ r... | TITLE:
Function returning the return of another function
QUESTION:
If I want to call Bar() instead of Foo(), does Bar() return me a copy (additional overhead) of what Foo() returns, or it returns the same object which Foo() places on the temporary stack? vector Foo(){ vector result; result.push_back(1); return result;... | [
"c++",
"function",
"vector",
"return-value"
] | 7 | 10 | 850 | 3 | 0 | 2008-10-03T09:44:31.120000 | 2008-10-03T09:45:59.137000 |
166,125 | 166,225 | C++: Multithreading and refcounted object | I'm currently trying to pass a mono threaded program to multithread. This software do heavy usage of "refCounted" objects, which lead to some issues in multithread. I'm looking for some design pattern or something that might solve my problem. The main problem is object deletion between thread, normally deletion only de... | If the count is part of the object then you have an inherent problem if one thread can be trying to increase the reference count whilst another is trying to remove the last reference. There needs to be an extra value on the ref count for each globally accessible pointer to the object, so you can always safely increase ... | C++: Multithreading and refcounted object I'm currently trying to pass a mono threaded program to multithread. This software do heavy usage of "refCounted" objects, which lead to some issues in multithread. I'm looking for some design pattern or something that might solve my problem. The main problem is object deletion... | TITLE:
C++: Multithreading and refcounted object
QUESTION:
I'm currently trying to pass a mono threaded program to multithread. This software do heavy usage of "refCounted" objects, which lead to some issues in multithread. I'm looking for some design pattern or something that might solve my problem. The main problem ... | [
"c++",
"multithreading",
"refcounting"
] | 7 | 4 | 5,125 | 7 | 0 | 2008-10-03T09:47:55.793000 | 2008-10-03T10:24:12.023000 |
166,127 | 786,261 | Prevent Default Behavior in Key Listeners in YUI | I have a web page where I'd like to remap Ctrl+N to a different behavior. I followed YUI's example of register Key Listeners and my function is called but Firefox still creates a new browser window. Things seem to work fine on IE7. How do I stop the new window from showing up? Example: var kl2 = new YAHOO.util.KeyListe... | The trick is the 'fn' function is whack. Experimentally, you can see that the function type for fn takes two parameters. The first param actually contains the TYPE of event. The second one contains... and this is screwy: an array containing the codepoint at index 0 and the actual event object at index 1. So changing yo... | Prevent Default Behavior in Key Listeners in YUI I have a web page where I'd like to remap Ctrl+N to a different behavior. I followed YUI's example of register Key Listeners and my function is called but Firefox still creates a new browser window. Things seem to work fine on IE7. How do I stop the new window from showi... | TITLE:
Prevent Default Behavior in Key Listeners in YUI
QUESTION:
I have a web page where I'd like to remap Ctrl+N to a different behavior. I followed YUI's example of register Key Listeners and my function is called but Firefox still creates a new browser window. Things seem to work fine on IE7. How do I stop the new... | [
"javascript",
"firefox",
"yui"
] | 4 | 7 | 4,293 | 4 | 0 | 2008-10-03T09:48:20.863000 | 2009-04-24T15:09:25.913000 |
166,132 | 166,157 | Maximum length of the textual representation of an IPv6 address? | I want to store the data returned by $_SERVER["REMOTE_ADDR"] in PHP into a DB field, pretty simple task, really. The problem is that I can't find any proper information about the maximum length of the textual representation of an IPv6 address, which is what a webserver provides through $_SERVER["REMOTE_ADDR"]. I'm not ... | 45 characters. You might expect an address to be 0000:0000:0000:0000:0000:0000:0000:0000 8 * 4 + 7 = 39 8 groups of 4 digits with 7: between them. But if you have an IPv4-mapped IPv6 address, the last two groups can be written in base 10 separated by., eg. [::ffff:192.168.100.228]. Written out fully: 0000:0000:0000:000... | Maximum length of the textual representation of an IPv6 address? I want to store the data returned by $_SERVER["REMOTE_ADDR"] in PHP into a DB field, pretty simple task, really. The problem is that I can't find any proper information about the maximum length of the textual representation of an IPv6 address, which is wh... | TITLE:
Maximum length of the textual representation of an IPv6 address?
QUESTION:
I want to store the data returned by $_SERVER["REMOTE_ADDR"] in PHP into a DB field, pretty simple task, really. The problem is that I can't find any proper information about the maximum length of the textual representation of an IPv6 ad... | [
"ip",
"ip-address",
"ipv6"
] | 548 | 781 | 214,558 | 6 | 0 | 2008-10-03T09:51:51.870000 | 2008-10-03T09:59:21.637000 |
166,134 | 166,215 | What's quicker; including another file or querying a MySQL database in PHP? | In PHP, which is quicker; using include('somefile.php') or querying a MySQL database with a simple SELECT query to get the same information? For example, say you had a JavaScript autocomplete search field which needed 3,000 terms to match against. Is it quicker to read those terms in from another file using include or ... | It depends. If your file is stored locally in your server and the database is installed in another machine, then the faster is to include the file. Buuuuut, because it depends on your system it could be not true. I suggest to you to make a PHP test script and run it 100 times from the command line, and repeat the test ... | What's quicker; including another file or querying a MySQL database in PHP? In PHP, which is quicker; using include('somefile.php') or querying a MySQL database with a simple SELECT query to get the same information? For example, say you had a JavaScript autocomplete search field which needed 3,000 terms to match again... | TITLE:
What's quicker; including another file or querying a MySQL database in PHP?
QUESTION:
In PHP, which is quicker; using include('somefile.php') or querying a MySQL database with a simple SELECT query to get the same information? For example, say you had a JavaScript autocomplete search field which needed 3,000 te... | [
"php",
"mysql",
"performance",
"include"
] | 8 | 16 | 6,227 | 12 | 0 | 2008-10-03T09:52:01.403000 | 2008-10-03T10:19:13.097000 |
166,159 | 778,232 | Is there a difference between DataTable.Clear and DataTable.Rows.Clear? | I recall there is a difference between some methods/properties called directly on the DataTable class, and the identically named methods/properties on the DataTable.Rows property. (Might have been the RowCount/Count property for which I read this.) The difference is one of them disregards DataRow.RowState, and the othe... | In.Net 1.1, DataRowCollection.Clear calls DataTable.Clear However, in.Net 2.0, there is a difference. If I understand the source correctly, DataTable.Clear will clear unattached rows (created using DataTable.NewRow ) whereas DataRowCollection.Clear won't. The difference is in RecordManager.Clear (source below, from the... | Is there a difference between DataTable.Clear and DataTable.Rows.Clear? I recall there is a difference between some methods/properties called directly on the DataTable class, and the identically named methods/properties on the DataTable.Rows property. (Might have been the RowCount/Count property for which I read this.)... | TITLE:
Is there a difference between DataTable.Clear and DataTable.Rows.Clear?
QUESTION:
I recall there is a difference between some methods/properties called directly on the DataTable class, and the identically named methods/properties on the DataTable.Rows property. (Might have been the RowCount/Count property for w... | [
".net"
] | 8 | 8 | 37,108 | 7 | 0 | 2008-10-03T09:59:38.610000 | 2009-04-22T16:58:50.063000 |
166,174 | 166,207 | How can I convert List<object> to Hashtable in C#? | I have a list of objects, each containing an Id, Code and Description. I need to convert this list into a Hashtable, using Description as the key and Id as the value. This is so the Hashtable can then be serialised to JSON. Is there a way to convert from List to Hashtable without writing a loop to go through each item ... | Let's assume that your List contains objects of type Foo (with an int Id and a string Description). You can use Linq to turn that list into a Dictionary like this: var dict = myList.Cast ().ToDictionary(o => o.Description, o => o.Id); | How can I convert List<object> to Hashtable in C#? I have a list of objects, each containing an Id, Code and Description. I need to convert this list into a Hashtable, using Description as the key and Id as the value. This is so the Hashtable can then be serialised to JSON. Is there a way to convert from List to Hashta... | TITLE:
How can I convert List<object> to Hashtable in C#?
QUESTION:
I have a list of objects, each containing an Id, Code and Description. I need to convert this list into a Hashtable, using Description as the key and Id as the value. This is so the Hashtable can then be serialised to JSON. Is there a way to convert f... | [
"c#",
"list",
"hashtable"
] | 19 | 33 | 21,077 | 4 | 0 | 2008-10-03T10:04:30.457000 | 2008-10-03T10:13:52.047000 |
166,178 | 259,004 | Searching date meta tags in Sharepoint | I'm currently looking at indexing an ASP website from Sharepoint and I need to replicate the old "advanced search" schema that the users are familiar with. In order to do this I need to index a few meta tags from the web pages. This is easily done and for the text fields I can use them in the search as well. However fo... | You're not doing anything wrong, this is how the product works. To add to what was said earlier, it's not easy to customize. The proper way to approach this is to create a custom protocol handler for HTML. This is a custom COM Object that implements a few interfaces. The MOSS 2007 SDK has a protocol handler reference. ... | Searching date meta tags in Sharepoint I'm currently looking at indexing an ASP website from Sharepoint and I need to replicate the old "advanced search" schema that the users are familiar with. In order to do this I need to index a few meta tags from the web pages. This is easily done and for the text fields I can use... | TITLE:
Searching date meta tags in Sharepoint
QUESTION:
I'm currently looking at indexing an ASP website from Sharepoint and I need to replicate the old "advanced search" schema that the users are familiar with. In order to do this I need to index a few meta tags from the web pages. This is easily done and for the tex... | [
"sharepoint",
"search"
] | 5 | 3 | 2,169 | 2 | 0 | 2008-10-03T10:06:05.820000 | 2008-11-03T15:35:37.870000 |
166,198 | 166,246 | How can I capture all exceptions from a wxPython application? | I'm writing a little debug app for a bit of kit we're developing and I'd like to roll it out to a few users to see if they can provoke any crashes. Does anyone know a way of effectively wrapping a wxPython app to catch any and all unhandled exceptions that would cause the app to crash? Ideally I'd want to capture all o... | For logging standard output, you can use a stdout wrapper, such as this one: from __future__ import with_statement
class OutWrapper(object): def __init__(self, realOutput, logFileName): self._realOutput = realOutput self._logFileName = logFileName
def _log(self, text): with open(self._logFileName, 'a') as logFile: lo... | How can I capture all exceptions from a wxPython application? I'm writing a little debug app for a bit of kit we're developing and I'd like to roll it out to a few users to see if they can provoke any crashes. Does anyone know a way of effectively wrapping a wxPython app to catch any and all unhandled exceptions that w... | TITLE:
How can I capture all exceptions from a wxPython application?
QUESTION:
I'm writing a little debug app for a bit of kit we're developing and I'd like to roll it out to a few users to see if they can provoke any crashes. Does anyone know a way of effectively wrapping a wxPython app to catch any and all unhandled... | [
"python",
"exception",
"error-handling",
"wxwidgets",
"error-reporting"
] | 7 | 6 | 4,675 | 4 | 0 | 2008-10-03T10:11:16.403000 | 2008-10-03T10:30:07.440000 |
166,210 | 166,253 | How to convert a DB2 date-time string into an Excel Date | I'll regularly get an extract from a DB/2 database with dates and timestaps formatted like this: 2002-01-15-00.00.00.000000 2008-01-05-12.36.05.190000 9999-12-31-24.00.00.000000 Is there an easier way to convert this into the Excel date format than decomposing with substrings? DB2date = DateValue(Left(a, 4) + "/" + Mid... | It's not clear if you talk about formula functions or VBA functions. Formula functions Don't use the DateValue function, which expects a string; use the Date function, which expects numeric Year, Month, Day: =DATE(INT(LEFT(A1,4)),INT(MID(A1,6,2)),INT(MID(A1,9,2))) assuming that the date-as-string is in A1. VBA function... | How to convert a DB2 date-time string into an Excel Date I'll regularly get an extract from a DB/2 database with dates and timestaps formatted like this: 2002-01-15-00.00.00.000000 2008-01-05-12.36.05.190000 9999-12-31-24.00.00.000000 Is there an easier way to convert this into the Excel date format than decomposing wi... | TITLE:
How to convert a DB2 date-time string into an Excel Date
QUESTION:
I'll regularly get an extract from a DB/2 database with dates and timestaps formatted like this: 2002-01-15-00.00.00.000000 2008-01-05-12.36.05.190000 9999-12-31-24.00.00.000000 Is there an easier way to convert this into the Excel date format t... | [
"excel",
"vba"
] | 2 | 2 | 13,771 | 4 | 0 | 2008-10-03T10:16:50.120000 | 2008-10-03T10:32:16.237000 |
166,212 | 166,236 | Software development process for small teams | I might be an exception here but I have never worked on a team with more than three developers and / or five people. Still we could manage to get the job done (somehow). Is there a software development process which fits this "extreme" scenario? And, if you work as a standalone programmer is there something you can ada... | The agile methodologies are a good starting point because, imho, they are better suited for small groups. As for keeping your personal working pace I'd recommend a method based on TODO lists and some tool like Task2Gather. You might want to look at GTD, too. Things I would never give up even for a team of me: source ve... | Software development process for small teams I might be an exception here but I have never worked on a team with more than three developers and / or five people. Still we could manage to get the job done (somehow). Is there a software development process which fits this "extreme" scenario? And, if you work as a standal... | TITLE:
Software development process for small teams
QUESTION:
I might be an exception here but I have never worked on a team with more than three developers and / or five people. Still we could manage to get the job done (somehow). Is there a software development process which fits this "extreme" scenario? And, if you... | [
"architecture",
"project-management"
] | 25 | 23 | 7,636 | 8 | 0 | 2008-10-03T10:17:17.453000 | 2008-10-03T10:26:23.987000 |
166,217 | 166,329 | Rails named_scopes with joins | I'm trying to create a named_scope that uses a join, but although the generated SQL looks right, the result are garbage. For example: class Clip < ActiveRecord::Base named_scope:visible, {:joins => "INNER JOIN series ON series.id = clips.owner_id INNER JOIN shows on shows.id = series.show_id",:conditions=>"shows.visibl... | The problem is that "SELECT *" - the query picks up all the columns from clips, series, and shows, in that order. Each table has an id column, and result in conflicts between the named columns in the results. The last id column pulled back (from shows) overrides the one you want. You should be using a:select option wit... | Rails named_scopes with joins I'm trying to create a named_scope that uses a join, but although the generated SQL looks right, the result are garbage. For example: class Clip < ActiveRecord::Base named_scope:visible, {:joins => "INNER JOIN series ON series.id = clips.owner_id INNER JOIN shows on shows.id = series.show_... | TITLE:
Rails named_scopes with joins
QUESTION:
I'm trying to create a named_scope that uses a join, but although the generated SQL looks right, the result are garbage. For example: class Clip < ActiveRecord::Base named_scope:visible, {:joins => "INNER JOIN series ON series.id = clips.owner_id INNER JOIN shows on shows... | [
"ruby-on-rails",
"ruby",
"activerecord",
"named-scope"
] | 20 | 26 | 15,486 | 2 | 0 | 2008-10-03T10:20:41.017000 | 2008-10-03T10:56:23.723000 |
166,231 | 172,061 | Tcl/Tk examples? | Tcl/Tk is a simple way to script small GUIs. Can anyone give a nice example with a button and a text widget. When the button is pressed should a shell command be executed and the output piped to the text widget. If you have other nice and clean examples for useful tasks, please add them too. | Here's a more complete example using fileevents. This will auto-scroll all the time. For usability purposes you probably only want to auto-scroll if the bottom of the text is visible (ie: if the user hasn't moved the scrollbar) but I'll leave that as an exercise for the reader to keep this already long example from get... | Tcl/Tk examples? Tcl/Tk is a simple way to script small GUIs. Can anyone give a nice example with a button and a text widget. When the button is pressed should a shell command be executed and the output piped to the text widget. If you have other nice and clean examples for useful tasks, please add them too. | TITLE:
Tcl/Tk examples?
QUESTION:
Tcl/Tk is a simple way to script small GUIs. Can anyone give a nice example with a button and a text widget. When the button is pressed should a shell command be executed and the output piped to the text widget. If you have other nice and clean examples for useful tasks, please add th... | [
"user-interface",
"scripting",
"tcl",
"tk-toolkit"
] | 13 | 16 | 15,362 | 4 | 0 | 2008-10-03T10:25:17.827000 | 2008-10-05T14:27:23.613000 |
166,239 | 170,849 | How to remotely run a DTSX package from bat file? | I am trying to remotely run a DTSX package from a bat file with this command: DTEXEC /DTS "\File System\MY_PACKAGE_NAME" /SERVER MY_SERVER_NAME /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING V This is working fine locally but failing remotely (I do have admin rights on the machine I am pointing to and I have SQL p... | After a bit of research it looks like it is impossible to run DTEXEC remotely (it needs to be run locally - remote execution is not supported). To overcome this limitation the following method seems to be broadly implemented: set up a SQL job to run the DTSX package set up a Stored Procedure to run the job use isql com... | How to remotely run a DTSX package from bat file? I am trying to remotely run a DTSX package from a bat file with this command: DTEXEC /DTS "\File System\MY_PACKAGE_NAME" /SERVER MY_SERVER_NAME /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING V This is working fine locally but failing remotely (I do have admin right... | TITLE:
How to remotely run a DTSX package from bat file?
QUESTION:
I am trying to remotely run a DTSX package from a bat file with this command: DTEXEC /DTS "\File System\MY_PACKAGE_NAME" /SERVER MY_SERVER_NAME /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING V This is working fine locally but failing remotely (I d... | [
"sql-server-2005",
"ssis"
] | 3 | 3 | 16,263 | 3 | 0 | 2008-10-03T10:27:32.203000 | 2008-10-04T19:00:09.960000 |
166,270 | 169,479 | Oracle instant client with OraOLE DB provider? | Is it possible to use oracle instant client for application that use oraoledb driver for connecting to oracle 9i DB. | I don't believe so. The Instant Client FAQ states What can Instant Client be used for? Instant Client can be used to run your OCI, OCCI, Pro C, JDBC, and ODBC applications without installing a full Oracle Client. In addition, Instant Client supports SQL Plus. As of Instant Client 10.2, it is also possible to develop ap... | Oracle instant client with OraOLE DB provider? Is it possible to use oracle instant client for application that use oraoledb driver for connecting to oracle 9i DB. | TITLE:
Oracle instant client with OraOLE DB provider?
QUESTION:
Is it possible to use oracle instant client for application that use oraoledb driver for connecting to oracle 9i DB.
ANSWER:
I don't believe so. The Instant Client FAQ states What can Instant Client be used for? Instant Client can be used to run your OCI... | [
"oracle",
"oledb",
"driver"
] | 5 | 3 | 12,472 | 3 | 0 | 2008-10-03T10:37:09.940000 | 2008-10-04T01:11:20.070000 |
166,298 | 166,312 | Differences between JDK and Java SDK | Is there any substantial difference between those two terms?. I understand that JDK stands for Java Development Kit that is a subset of SDK (Software Development Kit). But specifying Java SDK, it should mean the same as JDK. | From this wikipedia entry: The JDK is a subset of what is loosely defined as a software development kit (SDK) in the general sense. In the descriptions which accompany their recent releases for Java SE, EE, and ME, Sun acknowledge that under their terminology, the JDK forms the subset of the SDK which is responsible fo... | Differences between JDK and Java SDK Is there any substantial difference between those two terms?. I understand that JDK stands for Java Development Kit that is a subset of SDK (Software Development Kit). But specifying Java SDK, it should mean the same as JDK. | TITLE:
Differences between JDK and Java SDK
QUESTION:
Is there any substantial difference between those two terms?. I understand that JDK stands for Java Development Kit that is a subset of SDK (Software Development Kit). But specifying Java SDK, it should mean the same as JDK.
ANSWER:
From this wikipedia entry: The ... | [
"sdk",
"java"
] | 100 | 106 | 212,208 | 15 | 0 | 2008-10-03T10:44:22.937000 | 2008-10-03T10:48:45.047000 |
166,299 | 169,991 | jQuery slideToggle jumps around | I'm using the jQuery slideToggle function on a site to reveal 'more information' about something. When I trigger the slide, the content is gradually revealed, but is located to the right by about 100 pixels until the end of the animation when it suddenly jumps to the correct position. Going the other way, the content j... | I have found a workaround, but I'm still not sure of the details. It seemed that when the 'overflow: hidden' style was added by jQuery, the effect that a nearby floated element had changed. The workaround was to place a permanent 'overflow: hidden' on the slideToggle'd div, and also a negative margin-left to counterbal... | jQuery slideToggle jumps around I'm using the jQuery slideToggle function on a site to reveal 'more information' about something. When I trigger the slide, the content is gradually revealed, but is located to the right by about 100 pixels until the end of the animation when it suddenly jumps to the correct position. Go... | TITLE:
jQuery slideToggle jumps around
QUESTION:
I'm using the jQuery slideToggle function on a site to reveal 'more information' about something. When I trigger the slide, the content is gradually revealed, but is located to the right by about 100 pixels until the end of the animation when it suddenly jumps to the co... | [
"jquery"
] | 11 | 35 | 27,482 | 18 | 0 | 2008-10-03T10:44:28.473000 | 2008-10-04T08:33:44.233000 |
166,309 | 167,068 | .Net Localization problem | I am currently building an Excel 2007 Add-in using VSTO (latest version + sp1) and.Net 3.5 The code simply takes the position a chart using the Top and Left properties and stores it in an XML file. The problem im facing is that when the xml is generated using a Vista Ultimate + Excel 2007 + English environment the code... | I'm not sure if this will help or not, but you may want to check out the System.Xml.XmlConvert class. This class will allow you to serialize data types to a string value that is locale independent. When you extract the xml on another machine you can convert the value back into the appropriate data type using this same ... | .Net Localization problem I am currently building an Excel 2007 Add-in using VSTO (latest version + sp1) and.Net 3.5 The code simply takes the position a chart using the Top and Left properties and stores it in an XML file. The problem im facing is that when the xml is generated using a Vista Ultimate + Excel 2007 + En... | TITLE:
.Net Localization problem
QUESTION:
I am currently building an Excel 2007 Add-in using VSTO (latest version + sp1) and.Net 3.5 The code simply takes the position a chart using the Top and Left properties and stores it in an XML file. The problem im facing is that when the xml is generated using a Vista Ultimate... | [
".net",
"excel",
"localization",
"vsto"
] | 2 | 2 | 370 | 2 | 0 | 2008-10-03T10:47:53.803000 | 2008-10-03T14:12:44.970000 |
166,322 | 167,092 | obtain current svn revision in webapp | what is the best way of displaying/using the revision number in a java webapp? we just use ant to build our.war archive, no buildserver or such. i'd hope there was some kind if $ref that i could write in a resource file, but this is only updated when the file in question is committed. i need it globally. what would you... | There are a couple of Ant tasks that can do this for you. SvnAnt task from tigris is the oldest. Documentation is here - in particular take a look at the info element which exposes the Subversion repository's revision number as an Ant property which it calls rev. You can write this value to your resouces file using the... | obtain current svn revision in webapp what is the best way of displaying/using the revision number in a java webapp? we just use ant to build our.war archive, no buildserver or such. i'd hope there was some kind if $ref that i could write in a resource file, but this is only updated when the file in question is committ... | TITLE:
obtain current svn revision in webapp
QUESTION:
what is the best way of displaying/using the revision number in a java webapp? we just use ant to build our.war archive, no buildserver or such. i'd hope there was some kind if $ref that i could write in a resource file, but this is only updated when the file in q... | [
"java",
"svn",
"web-applications",
"revision"
] | 9 | 3 | 5,778 | 6 | 0 | 2008-10-03T10:54:52.493000 | 2008-10-03T14:19:02.463000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.