PostId
int64
4
11.8M
PostCreationDate
stringlengths
19
19
OwnerUserId
int64
1
1.57M
OwnerCreationDate
stringlengths
10
19
ReputationAtPostCreation
int64
-55
461k
OwnerUndeletedAnswerCountAtPostTime
int64
0
21.5k
Title
stringlengths
3
250
BodyMarkdown
stringlengths
5
30k
Tag1
stringlengths
1
25
Tag2
stringlengths
1
25
Tag3
stringlengths
1
25
Tag4
stringlengths
1
25
Tag5
stringlengths
1
25
PostClosedDate
stringlengths
19
19
OpenStatus
stringclasses
5 values
unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
21,879
08/22/2008 06:15:39
1,588
08/17/2008 01:05:22
121
5
Where can I find a "Math topic dependency tree" to assist my self-guided refresher on the subject?
I'm trying to reteach myself some long forgotten math skills. This is part of a much larger project to effectively "teach myself software development" from the ground up (the details are [here](http://www.appscanadian.ca/archives/cs-101-introduction-to-computer-science/) if you're interested in helping out). My biggest stumbling block so far has been math - how can I learn about algorithms and asymptotic notation without it?? What I'm looking for is some sort of "dependency tree" showing what I need to know. Is calculus required before discrete? What do I need to know before calculus (read: components to the general "pre-calculus" topic)? What can I cut out to fast track the project ("what can I go back for later")? Thank!
math
null
null
null
null
08/18/2011 13:15:20
off topic
Where can I find a "Math topic dependency tree" to assist my self-guided refresher on the subject? === I'm trying to reteach myself some long forgotten math skills. This is part of a much larger project to effectively "teach myself software development" from the ground up (the details are [here](http://www.appscanadian.ca/archives/cs-101-introduction-to-computer-science/) if you're interested in helping out). My biggest stumbling block so far has been math - how can I learn about algorithms and asymptotic notation without it?? What I'm looking for is some sort of "dependency tree" showing what I need to know. Is calculus required before discrete? What do I need to know before calculus (read: components to the general "pre-calculus" topic)? What can I cut out to fast track the project ("what can I go back for later")? Thank!
2
21,908
08/22/2008 06:59:56
181
08/03/2008 03:43:40
1
0
"Silent" Printing in a Web Application
I'm working on a web application that needs to prints silently -- that is without user involvement. What's the best way to accomplish this? It doesn't like it can be done with strictly with Javascript, nor Flash and/or AIR. The closest I've seen involves a Java applet. I can understand why it would a Bad Idea for just any website to be able to do this. This specific instance is for an internal application, and it's perfectly acceptable if the user needs to add the URL to a trusted site list, install an addon, etc.
printing
internet
null
null
null
null
open
"Silent" Printing in a Web Application === I'm working on a web application that needs to prints silently -- that is without user involvement. What's the best way to accomplish this? It doesn't like it can be done with strictly with Javascript, nor Flash and/or AIR. The closest I've seen involves a Java applet. I can understand why it would a Bad Idea for just any website to be able to do this. This specific instance is for an internal application, and it's perfectly acceptable if the user needs to add the URL to a trusted site list, install an addon, etc.
0
21,912
08/22/2008 07:07:17
920
08/10/2008 12:52:43
75
5
IntelliSenss for XElements object with XML schema
Reading an article called "Increase LINQ Query Performance" in Jully's MSDN magazine, the author states that using an Imports in VB providing a path to schema in the current project will turn IntelliSense on for XElement. In the code provided, he uses statements like xelement.@name to retreive attributes values, and so on. I did not try this out myself in VB, but I would like to use that in C#. This really looks like Linq to Xsd. Is there any equivalent in C#? It seems that it is not possible to use a namespace inside C# code, there is no using equivalent to this Import statement.
linq
linq-to-xml
xsd
c#
vb
null
open
IntelliSenss for XElements object with XML schema === Reading an article called "Increase LINQ Query Performance" in Jully's MSDN magazine, the author states that using an Imports in VB providing a path to schema in the current project will turn IntelliSense on for XElement. In the code provided, he uses statements like xelement.@name to retreive attributes values, and so on. I did not try this out myself in VB, but I would like to use that in C#. This really looks like Linq to Xsd. Is there any equivalent in C#? It seems that it is not possible to use a namespace inside C# code, there is no using equivalent to this Import statement.
0
21,956
08/22/2008 09:00:26
966
08/11/2008 07:35:55
26
4
How do I compare two arrays of DataRow objects in PowerShell?
I have two arrays of System.Data.DataRow objects which I want to compare. The rows have two columns A and B. Column A is a key and I want to find out which rows have had their B column changed and which rows have been added or deleted. How do I do this in PowerShell?
arrays
powershell
comparison
null
null
null
open
How do I compare two arrays of DataRow objects in PowerShell? === I have two arrays of System.Data.DataRow objects which I want to compare. The rows have two columns A and B. Column A is a key and I want to find out which rows have had their B column changed and which rows have been added or deleted. How do I do this in PowerShell?
0
21,961
08/22/2008 09:06:43
2,427
08/22/2008 05:39:54
11
0
Why does this python date/time conversion seem wrong?
>>> import time >>> time.strptime("01-31-2009", "%m-%d-%Y") (2009, 1, 31, 0, 0, 0, 5, 31, -1) >>> time.mktime((2009, 1, 31, 0, 0, 0, 5, 31, -1)) 1233378000.0 >>> 60*60*24 # seconds in a day 86400 >>> 1233378000.0 / 86400 14275.208333333334 time.mktime should return the number of seconds since the epoch. Since I'm giving it a time at midnight and the epoch is at midnight, shouldn't the result be evenly divisible by the number of seconds in a day? Thanks!
python
datetime
null
null
null
null
open
Why does this python date/time conversion seem wrong? === >>> import time >>> time.strptime("01-31-2009", "%m-%d-%Y") (2009, 1, 31, 0, 0, 0, 5, 31, -1) >>> time.mktime((2009, 1, 31, 0, 0, 0, 5, 31, -1)) 1233378000.0 >>> 60*60*24 # seconds in a day 86400 >>> 1233378000.0 / 86400 14275.208333333334 time.mktime should return the number of seconds since the epoch. Since I'm giving it a time at midnight and the epoch is at midnight, shouldn't the result be evenly divisible by the number of seconds in a day? Thanks!
0
21,965
08/22/2008 09:12:54
2,429
08/22/2008 08:48:22
1
0
Programmatically encrypting a config-file in .NET
Could somebody please do a rundown of how to programmatically encrypt a config-file in .NET, preferably in C#. What I would like to do is do some kind of check on an application's startup to see if a section is unprotected, and if it is, then encrypt it. This for both settings and connection-strings. Also if anyone could list the types of encryption-providers and what is the difference between them. I don't know if the code for doing this in a normal WinForms-application is transparent to doing this in ASP.NET.
.net
c#
configurationfiles
encryption
null
null
open
Programmatically encrypting a config-file in .NET === Could somebody please do a rundown of how to programmatically encrypt a config-file in .NET, preferably in C#. What I would like to do is do some kind of check on an application's startup to see if a section is unprotected, and if it is, then encrypt it. This for both settings and connection-strings. Also if anyone could list the types of encryption-providers and what is the difference between them. I don't know if the code for doing this in a normal WinForms-application is transparent to doing this in ASP.NET.
0
21,987
08/22/2008 09:42:41
2,090
08/20/2008 10:46:39
1
0
FlashWindowEx FLASHW_STOP still keeps taskbar colored
<p>I am developing an application that controls an Machine.<br/> When I receive an error from the Machine the users should be able to directly notice it, one way that is done is Flashing the tray on the taskbar. When the machine clears the error the tray should stop flashing.</p> <p>There's one little annoyance using the FlashWindowEx function, when I clear the flashing of the window, it stays (in my case winXP) orange (not flashing).<br/> <img src="http://files.stormenet.be/flashwinex_stop.gif" alt="Sample of status"/></p> <pre><code> [Flags] public enum FlashMode { /// <summary> /// Stop flashing. The system restores the window to its original state. /// </summary> FLASHW_STOP = 0, /// <summary> /// Flash the window caption. /// </summary> FLASHW_CAPTION = 1, /// <summary> /// Flash the taskbar button. /// </summary> FLASHW_TRAY = 2, /// <summary> /// Flash both the window caption and taskbar button. /// This is equivalent to setting the FLASHW_CAPTION | FLASHW_TRAY flags. /// </summary> FLASHW_ALL = 3, /// <summary> /// Flash continuously, until the FLASHW_STOP flag is set. /// </summary> FLASHW_TIMER = 4, /// <summary> /// Flash continuously until the window comes to the foreground. /// </summary> FLASHW_TIMERNOFG = 12 } public static bool FlashWindowEx(IntPtr hWnd, FlashMode fm) { FLASHWINFO fInfo = new FLASHWINFO(); fInfo.cbSize = Convert.ToUInt32(Marshal.SizeOf(fInfo)); fInfo.hwnd = hWnd; fInfo.dwFlags = (UInt32)fm; fInfo.uCount = UInt32.MaxValue; fInfo.dwTimeout = 0; return FlashWindowEx(ref fInfo); } [StructLayout(LayoutKind.Sequential)] public struct FLASHWINFO { public UInt32 cbSize; public IntPtr hwnd; public UInt32 dwFlags; public UInt32 uCount; public UInt32 dwTimeout; } </code></pre> <p>In my case I use FLASHW_TRAY to start flashing and FLASHW_STOP to stop the flashing.</p> <p>Am I doing something wrong or is this a known bug of WinXP and is there a fix for it?</p>
c#
winapi
pinvoke
null
null
null
open
FlashWindowEx FLASHW_STOP still keeps taskbar colored === <p>I am developing an application that controls an Machine.<br/> When I receive an error from the Machine the users should be able to directly notice it, one way that is done is Flashing the tray on the taskbar. When the machine clears the error the tray should stop flashing.</p> <p>There's one little annoyance using the FlashWindowEx function, when I clear the flashing of the window, it stays (in my case winXP) orange (not flashing).<br/> <img src="http://files.stormenet.be/flashwinex_stop.gif" alt="Sample of status"/></p> <pre><code> [Flags] public enum FlashMode { /// <summary> /// Stop flashing. The system restores the window to its original state. /// </summary> FLASHW_STOP = 0, /// <summary> /// Flash the window caption. /// </summary> FLASHW_CAPTION = 1, /// <summary> /// Flash the taskbar button. /// </summary> FLASHW_TRAY = 2, /// <summary> /// Flash both the window caption and taskbar button. /// This is equivalent to setting the FLASHW_CAPTION | FLASHW_TRAY flags. /// </summary> FLASHW_ALL = 3, /// <summary> /// Flash continuously, until the FLASHW_STOP flag is set. /// </summary> FLASHW_TIMER = 4, /// <summary> /// Flash continuously until the window comes to the foreground. /// </summary> FLASHW_TIMERNOFG = 12 } public static bool FlashWindowEx(IntPtr hWnd, FlashMode fm) { FLASHWINFO fInfo = new FLASHWINFO(); fInfo.cbSize = Convert.ToUInt32(Marshal.SizeOf(fInfo)); fInfo.hwnd = hWnd; fInfo.dwFlags = (UInt32)fm; fInfo.uCount = UInt32.MaxValue; fInfo.dwTimeout = 0; return FlashWindowEx(ref fInfo); } [StructLayout(LayoutKind.Sequential)] public struct FLASHWINFO { public UInt32 cbSize; public IntPtr hwnd; public UInt32 dwFlags; public UInt32 uCount; public UInt32 dwTimeout; } </code></pre> <p>In my case I use FLASHW_TRAY to start flashing and FLASHW_STOP to stop the flashing.</p> <p>Am I doing something wrong or is this a known bug of WinXP and is there a fix for it?</p>
0
21,992
08/22/2008 09:47:15
909
08/10/2008 09:56:57
95
11
XmlHttpRequest return values
For an application I'm building in my spare time I am looking for (arguably) the correct way to return data from an XmlHttpRequest. Options I see are: - Plain HTML. Let the request format the data and return it in a usable format. Advantage: easy to consume by the calling page. Disadvantage: Very rigid, stuck with a fixed layout. - XML. Let the request return XML, format it using XSLT on the calling page. Advantage: the requested service is easily consumed by other sources. Disadvantage: Is browser support for XSLT good enough? - JSON. Let the request return JSON, consume it using javascript, render HTML accordingly. Advantage: easier to 'OO-ify' the javascript making the request. Disadvantage: Probably not as easy to use as the previous two options. I've also thought about going for option one while abstracting the view logic in the called service in such a way that switching in and out different layouts would be trivial. Personally I think this option is the best out of three, for compatibility reasons. While typing this, I got another insight. Would it be a good idea to allow all three response formats, based on a parameter added to the request?
javascript
ajax
null
null
null
null
open
XmlHttpRequest return values === For an application I'm building in my spare time I am looking for (arguably) the correct way to return data from an XmlHttpRequest. Options I see are: - Plain HTML. Let the request format the data and return it in a usable format. Advantage: easy to consume by the calling page. Disadvantage: Very rigid, stuck with a fixed layout. - XML. Let the request return XML, format it using XSLT on the calling page. Advantage: the requested service is easily consumed by other sources. Disadvantage: Is browser support for XSLT good enough? - JSON. Let the request return JSON, consume it using javascript, render HTML accordingly. Advantage: easier to 'OO-ify' the javascript making the request. Disadvantage: Probably not as easy to use as the previous two options. I've also thought about going for option one while abstracting the view logic in the called service in such a way that switching in and out different layouts would be trivial. Personally I think this option is the best out of three, for compatibility reasons. While typing this, I got another insight. Would it be a good idea to allow all three response formats, based on a parameter added to the request?
0
21,999
08/22/2008 09:54:43
1,013
08/11/2008 13:24:18
158
25
Anti aliasing workaround
Anti aliasing [cannot be turned off][1] in WPF. But I want to remove the blurred look of WPF fonts when they are small. One possibility would be to use a .net 2.0 component. This looks like it would lose the transparency capability and Blend support. Never tried it though. Anyone has a solution for this? Any drawbacks from it? Thank you [1]: http://forums.msdn.microsoft.com/en-US/wpf/thread/1ad9a62a-d1a4-4ca2-a950-3b7bf5240de5
wpf
null
null
null
null
null
open
Anti aliasing workaround === Anti aliasing [cannot be turned off][1] in WPF. But I want to remove the blurred look of WPF fonts when they are small. One possibility would be to use a .net 2.0 component. This looks like it would lose the transparency capability and Blend support. Never tried it though. Anyone has a solution for this? Any drawbacks from it? Thank you [1]: http://forums.msdn.microsoft.com/en-US/wpf/thread/1ad9a62a-d1a4-4ca2-a950-3b7bf5240de5
0
22,000
08/22/2008 09:55:34
1,384,652
08/01/2008 12:01:23
1,247
71
Table cells larger than they are meant to be
I've created a map system for a game that runs on the principle of drawing the picture of the map from tiles. There are many reasons for this which I won't go into here but if you really want to know then I'm sure you can find out how to contact me ;) I have [made the latest version live][1] so you can see exactly where the problem lies and the source. The issue is the line between the top 2 tiles and the bottom 2 tiles, I can't figure out why it's gone like this and any help would be appreciated. In the source is a marker called "stackoverflow", if you search for "stackoverflow" when viewing source then it should take you to the table in question. I have also uploaded an [image of the issue][2]. Thanks in advance for any help you can offer. [1]: http://woarl.com/board/rob.php?mode=map&x=-1&y=9&w=2&h=2 [2]: http://woarl.com/badMap.png
html
css
null
null
null
null
open
Table cells larger than they are meant to be === I've created a map system for a game that runs on the principle of drawing the picture of the map from tiles. There are many reasons for this which I won't go into here but if you really want to know then I'm sure you can find out how to contact me ;) I have [made the latest version live][1] so you can see exactly where the problem lies and the source. The issue is the line between the top 2 tiles and the bottom 2 tiles, I can't figure out why it's gone like this and any help would be appreciated. In the source is a marker called "stackoverflow", if you search for "stackoverflow" when viewing source then it should take you to the table in question. I have also uploaded an [image of the issue][2]. Thanks in advance for any help you can offer. [1]: http://woarl.com/board/rob.php?mode=map&x=-1&y=9&w=2&h=2 [2]: http://woarl.com/badMap.png
0
22,011
08/22/2008 10:05:44
1,116
08/12/2008 13:25:41
467
31
Swtiching to ORMs
I'm toying with the idea of phasing in an ORM into an application I support. The app is not very structured with no unit tests. So any change will be risky. I'm obviously concerned that I've got a good enough reason to change. The idea is that there will be less boiler plate code for data access and there for greater productivity. Do this ring true with your experiences? Is it possible or even a good idea to phase it in? What are the downsides of an ORM?
orm
language-agnostic
null
null
null
null
open
Swtiching to ORMs === I'm toying with the idea of phasing in an ORM into an application I support. The app is not very structured with no unit tests. So any change will be risky. I'm obviously concerned that I've got a good enough reason to change. The idea is that there will be less boiler plate code for data access and there for greater productivity. Do this ring true with your experiences? Is it possible or even a good idea to phase it in? What are the downsides of an ORM?
0
22,012
08/22/2008 10:06:48
2,374
08/21/2008 22:14:30
16
1
Loading assemblies and its dependencies
My application dynamically loads assemblies at runtime from specific subfolders. These assemblies are compiled with dependencies to other assemblies. The runtime trys to load these from the application directory. But I want to put them into the modules directory. Is there a way to tell the runtime that the dlls are in a seperate subfolder? Thanks, Jens
c#
.net
null
null
null
null
open
Loading assemblies and its dependencies === My application dynamically loads assemblies at runtime from specific subfolders. These assemblies are compiled with dependencies to other assemblies. The runtime trys to load these from the application directory. But I want to put them into the modules directory. Is there a way to tell the runtime that the dlls are in a seperate subfolder? Thanks, Jens
0
22,015
08/22/2008 10:09:02
2,249
08/21/2008 09:30:32
6
4
OpenID as a Single Sign On option??
I'm just looking for different opinions. Do you consider OpenID a good "Single Sign On" solution? The way it works seems to be a little bit confusing for an average user and there could be problems related to "putting all your eggs in the same basket". Anyway, have anyone tried to implement his own OpenId solution within the context of an Intranet where there are many different applications (Wordpress, Elgg, Media Wiki, ..)?? I consider it could be a great solution to solve the "Digital Identity" problem but I dont know if it will work with the "login once and surf the Intranet" problem. Opinions? Thanks in advanced.
openid
sso
null
null
null
null
open
OpenID as a Single Sign On option?? === I'm just looking for different opinions. Do you consider OpenID a good "Single Sign On" solution? The way it works seems to be a little bit confusing for an average user and there could be problems related to "putting all your eggs in the same basket". Anyway, have anyone tried to implement his own OpenId solution within the context of an Intranet where there are many different applications (Wordpress, Elgg, Media Wiki, ..)?? I consider it could be a great solution to solve the "Digital Identity" problem but I dont know if it will work with the "login once and surf the Intranet" problem. Opinions? Thanks in advanced.
0
22,051
08/22/2008 10:43:16
572
08/06/2008 20:56:54
1,059
88
Free (and/or open source) security software
I know about my options for antivirus, antispyware, and firewall, but are there any higher end security tools for any operating systems (although I'm running Windows and Cygwin, so those options would be especially appreciated) to do things like password recovery, computer forensics, and that sort of thing? I'm currently running the Microsoft Network Monitor and WireShark (they are pretty much the same thing), so that's covered...
windows
computer-forensics
computer-security
foss
nix
null
open
Free (and/or open source) security software === I know about my options for antivirus, antispyware, and firewall, but are there any higher end security tools for any operating systems (although I'm running Windows and Cygwin, so those options would be especially appreciated) to do things like password recovery, computer forensics, and that sort of thing? I'm currently running the Microsoft Network Monitor and WireShark (they are pretty much the same thing), so that's covered...
0
22,072
08/22/2008 11:10:14
1,116
08/12/2008 13:25:41
477
33
From Desktop to Web browser considerations
I'm sure many of you have travelled this route. What are the main things to consider/lookout for when a desktop app developer fist steps in the the web development world?
webdevelopment
null
null
null
null
07/20/2012 16:50:58
not constructive
From Desktop to Web browser considerations === I'm sure many of you have travelled this route. What are the main things to consider/lookout for when a desktop app developer fist steps in the the web development world?
4
22,084
08/22/2008 11:18:07
1,344
08/14/2008 16:03:00
719
54
ASP.NET - asp:xxx Controls versus standard HTML
I'm getting into ASP.NET (C# - I know it doesn't matter for this particular question, but full disclosure and all that), and while I love that the `asp:`-style controls save me a lot of tedious HTML-crafting, I am often frustrated with certain behaviors. I encountered one last night when working with Master Pages: my `<asp:BulletedList ID="nav">`, when converted into HTML, became `<ul id="ct100_nav">`. There are other issues--I noticed that when you auto-populate a DataGrid, it adds attributes to the resulting table that I don't necessarily want there. I know that there is a certain amount of "convention over configuration" that you have to accept when you rely on a framework to take over some of your tedious duties, but the "conventions" in these cases aren't so much any established conventions, but rather unnecessary extras. I know *why* the ID adds the prefix, but I should be able to tweak and turn things like this off, especially since, as a bit of a web standards evangelist, I don't duplicated HTML id's in a single page anyway. So the question here is for those ASP.NET devs more seasoned than I: in your experiences in developing and deploying apps, how do you leverage these controls? Do you find yourself resorting back to hard-coded HTML? Do you use a blend? I don't want to design my HTML around idiosyncratic quirks in these controls, but, if possible, I'd like to leverage them when possible. What's a boy to do?
asp.net
controls
webdevelopment
null
null
null
open
ASP.NET - asp:xxx Controls versus standard HTML === I'm getting into ASP.NET (C# - I know it doesn't matter for this particular question, but full disclosure and all that), and while I love that the `asp:`-style controls save me a lot of tedious HTML-crafting, I am often frustrated with certain behaviors. I encountered one last night when working with Master Pages: my `<asp:BulletedList ID="nav">`, when converted into HTML, became `<ul id="ct100_nav">`. There are other issues--I noticed that when you auto-populate a DataGrid, it adds attributes to the resulting table that I don't necessarily want there. I know that there is a certain amount of "convention over configuration" that you have to accept when you rely on a framework to take over some of your tedious duties, but the "conventions" in these cases aren't so much any established conventions, but rather unnecessary extras. I know *why* the ID adds the prefix, but I should be able to tweak and turn things like this off, especially since, as a bit of a web standards evangelist, I don't duplicated HTML id's in a single page anyway. So the question here is for those ASP.NET devs more seasoned than I: in your experiences in developing and deploying apps, how do you leverage these controls? Do you find yourself resorting back to hard-coded HTML? Do you use a blend? I don't want to design my HTML around idiosyncratic quirks in these controls, but, if possible, I'd like to leverage them when possible. What's a boy to do?
0
22,106
08/22/2008 11:29:57
1,585
08/16/2008 21:03:55
51
4
What is /dev/ttys# (notice the little s)?
I'm working on linux, trying to get the serial port to work. I know /dev/ttyS0 is a serial port, but what is /dev/ttys0?
linux
serial
serial-port
null
null
null
open
What is /dev/ttys# (notice the little s)? === I'm working on linux, trying to get the serial port to work. I know /dev/ttyS0 is a serial port, but what is /dev/ttys0?
0
22,115
08/22/2008 11:35:41
2,455
08/22/2008 11:29:07
1
0
Using Regex to generate Strings rather than match them
I am writing a Java utility which helps me to generate loads of data for performance testing. It would be *really* cool to be able to specify a regex for Strings so that my generator spits out things which match this. Is there something out there already baked which I can use to do this? Or is there a library which gets me most of the way there? Thanks
java
regex
null
null
null
null
open
Using Regex to generate Strings rather than match them === I am writing a Java utility which helps me to generate loads of data for performance testing. It would be *really* cool to be able to specify a regex for Strings so that my generator spits out things which match this. Is there something out there already baked which I can use to do this? Or is there a library which gets me most of the way there? Thanks
0
22,117
08/22/2008 11:36:45
1,709
08/18/2008 07:05:30
266
29
How do you organize your (online) resources and researched data?
Reading up on some of the answers to <a href="http://stackoverflow.com/questions/1831/what-can-someone-do-to-get-organized-around-here">another question</a> I found a tip about <a href="http://www.amazon.com/dp/0142000280/">a book I wanted to take a closer look at</a>. The provided link goes to <a href="http://www.amazon.com">amazon.com</a>, but for historical reasons I have my wish lists at <a href="http://www.amazon.co.uk">amazon.co.uk</a>. I have quite a few titles on my various lists, so I prefer to add all new books to the same site, making it easier to keep track of what I plan to buy. However, sometimes I will find a book that is not available on the UK site, so I have to maintain a separate list on the US site anyway. I would like to have my book lists on a different site, ideally stored alongside other resources I want to keep track of. So far I have come up with the following types of information that I need to organize: * Books I plan on buying or researching further. * Events, courses and conferences I plan to attend or find out more about * Articles I want to read or keep for future reference. * Various URLs. * Movies I want to see (i.e. IMDB links). * Music (albums, songs) I want to check out. * Various thoughts, notes and ideas (possibly related to a current or future project) Today I use a combination of browser bookmarks, <a href="http://www.evernote.com">Evernote</a> notes, Amazon wish lists, blog drafts and files stored on <a href="http://www.jungledisk.com">JungleDisk</a> drives too keep track of all this information. If something is specific to a given project, I will store the information in the project's Subversion repository. Common for all these types of information is that many of them would benefit from some integration with a third-party provider (i.e. links to book information on Amazon, links to music/band information on <a href="http://www.allmusic.com">allmusic.com</a> or Wikipedia, links to movie reviews on IMDB, etc.). I would also like to be able to organize everything in one place, ideally with tags and folders. I know I can make everything into links and organize them on delicious or make everything into notes and put them on Evernote, but maybe there exists a better site with direct support for many of these information types already? How do people here organize their (online) resources, notes and ideas? Note: Some of you may wonder what this has to do with programming, but since programming is a natural part of my everyday life, I don't really see any significant difference between organizing articles on functional programming or reviews of the latest Batman movie. I would still like to have it all accessible&mdash;and searchable&mdash;in one place. Also note that I'm not looking for yet another social bookmarking web site. I only need the information to be accessible to me, and sharing them with other people or adding friends on the site is of no importance. I guess a desktop application would do the job, but a web site would be more convenient to access from anywhere.
self-improvement
organizing
research
online-resources
null
01/28/2012 01:09:04
off topic
How do you organize your (online) resources and researched data? === Reading up on some of the answers to <a href="http://stackoverflow.com/questions/1831/what-can-someone-do-to-get-organized-around-here">another question</a> I found a tip about <a href="http://www.amazon.com/dp/0142000280/">a book I wanted to take a closer look at</a>. The provided link goes to <a href="http://www.amazon.com">amazon.com</a>, but for historical reasons I have my wish lists at <a href="http://www.amazon.co.uk">amazon.co.uk</a>. I have quite a few titles on my various lists, so I prefer to add all new books to the same site, making it easier to keep track of what I plan to buy. However, sometimes I will find a book that is not available on the UK site, so I have to maintain a separate list on the US site anyway. I would like to have my book lists on a different site, ideally stored alongside other resources I want to keep track of. So far I have come up with the following types of information that I need to organize: * Books I plan on buying or researching further. * Events, courses and conferences I plan to attend or find out more about * Articles I want to read or keep for future reference. * Various URLs. * Movies I want to see (i.e. IMDB links). * Music (albums, songs) I want to check out. * Various thoughts, notes and ideas (possibly related to a current or future project) Today I use a combination of browser bookmarks, <a href="http://www.evernote.com">Evernote</a> notes, Amazon wish lists, blog drafts and files stored on <a href="http://www.jungledisk.com">JungleDisk</a> drives too keep track of all this information. If something is specific to a given project, I will store the information in the project's Subversion repository. Common for all these types of information is that many of them would benefit from some integration with a third-party provider (i.e. links to book information on Amazon, links to music/band information on <a href="http://www.allmusic.com">allmusic.com</a> or Wikipedia, links to movie reviews on IMDB, etc.). I would also like to be able to organize everything in one place, ideally with tags and folders. I know I can make everything into links and organize them on delicious or make everything into notes and put them on Evernote, but maybe there exists a better site with direct support for many of these information types already? How do people here organize their (online) resources, notes and ideas? Note: Some of you may wonder what this has to do with programming, but since programming is a natural part of my everyday life, I don't really see any significant difference between organizing articles on functional programming or reviews of the latest Batman movie. I would still like to have it all accessible&mdash;and searchable&mdash;in one place. Also note that I'm not looking for yet another social bookmarking web site. I only need the information to be accessible to me, and sharing them with other people or adding friends on the site is of no importance. I guess a desktop application would do the job, but a web site would be more convenient to access from anywhere.
2
22,128
08/22/2008 11:50:58
1,662
08/17/2008 20:30:20
41
4
Where can open source developers "showcase" their projects and ask for help with development?
After not having much luck with writing to the Python mailing list, I've been on a search for the appropriate place to post my project to and receive developer support. I don't want to blacklist it by posting it to a general site and make it appear as spamming, but I also want to make sure it gets seen by as many developers with experience in that particular field.
python
opensource
null
null
null
null
open
Where can open source developers "showcase" their projects and ask for help with development? === After not having much luck with writing to the Python mailing list, I've been on a search for the appropriate place to post my project to and receive developer support. I don't want to blacklist it by posting it to a general site and make it appear as spamming, but I also want to make sure it gets seen by as many developers with experience in that particular field.
0
22,135
08/22/2008 11:55:45
309,844
08/05/2008 14:28:34
446
23
How do I use NTLM authentication with Active Directory
I am trying to implement NTLM authentication on one of our internal sites and everything is working. The one piece of the puzzle I do not have is how to take the information from NTLM and authenticate with Active Directory. There is a [good description of NTLM][1] and the [encryption used for the passwords][2], which I used to implement this, but I am not sure of how to verify if the user's password is valid. I am using Coldfusion but a solution to this problem can be in any language (Java, Python, PHP, etc). [2]:http://us1.samba.org/samba/docs/man/Samba-Developers-Guide/pwencrypt.html [1]:http://www.innovation.ch/personal/ronald/ntlm.html
ntlm
activedirectory
http
authentication
coldfusion
null
open
How do I use NTLM authentication with Active Directory === I am trying to implement NTLM authentication on one of our internal sites and everything is working. The one piece of the puzzle I do not have is how to take the information from NTLM and authenticate with Active Directory. There is a [good description of NTLM][1] and the [encryption used for the passwords][2], which I used to implement this, but I am not sure of how to verify if the user's password is valid. I am using Coldfusion but a solution to this problem can be in any language (Java, Python, PHP, etc). [2]:http://us1.samba.org/samba/docs/man/Samba-Developers-Guide/pwencrypt.html [1]:http://www.innovation.ch/personal/ronald/ntlm.html
0
22,140
08/22/2008 11:57:53
381
08/05/2008 10:39:26
1,236
25
Can you compile Apache HTTP Server and redeploy its binaries to a different location ?
As part of our product release we ship Apache HTTP Server binaries that we have compiled on our (UNIX) development machine. We tell our clients to install the binaries (on their UNIX servers) under the same directory structure that we compiled it under. For some clients this is not appropriate, e.g. where there are restictions on where they can install software on their servers. Is there a way of compiling Apache HTTP Server so its installation location(s) can be specified dynamically using environment variables ? I spent a few days trying to sort this out and couldn't find a way to do it. It led me to believe that the Apache binaries were hard coding some directory paths at compilation preventing the portability we require. Has anyone managed to do this ?
unix
apache
http-server
null
null
null
open
Can you compile Apache HTTP Server and redeploy its binaries to a different location ? === As part of our product release we ship Apache HTTP Server binaries that we have compiled on our (UNIX) development machine. We tell our clients to install the binaries (on their UNIX servers) under the same directory structure that we compiled it under. For some clients this is not appropriate, e.g. where there are restictions on where they can install software on their servers. Is there a way of compiling Apache HTTP Server so its installation location(s) can be specified dynamically using environment variables ? I spent a few days trying to sort this out and couldn't find a way to do it. It led me to believe that the Apache binaries were hard coding some directory paths at compilation preventing the portability we require. Has anyone managed to do this ?
0
22,145
08/22/2008 11:58:56
1,142
08/12/2008 18:52:53
54
3
Calculating a cutting list with the least amount of off cut waste.
I have a project where I produce an aluminium extrusion cutting list. The aluminium extrusions come in lengths of 5m. I have a list of smaller lengths that need to be cut from the 5m lengths of aluminium extrusions. The smaller lengths need to be cut in the order that produces the least amount of off cut waste from the 5m lengths of aluminium extrusions. Currently I order the cutting list in such a way that generally the longest of the smaller lengths gets cut first and the shortest of smaller lengths gets cut last. The exception to this rule is whenever a shorter length will not fit in what is left of the 5m length of aluminium extrusion, I use the longest shorter length that will fit. This seems to produce a very efficient (very little off cut waste) cutting list and doesn't take long to calculate. I imagine, however, that even though the cutting list is **very** efficient, it is not necessarily the **most** efficient. Does anyone know of a way to calculate the most efficient cutting list which can be calculated in a reasonable amount of time?
algorithm
null
null
null
null
null
open
Calculating a cutting list with the least amount of off cut waste. === I have a project where I produce an aluminium extrusion cutting list. The aluminium extrusions come in lengths of 5m. I have a list of smaller lengths that need to be cut from the 5m lengths of aluminium extrusions. The smaller lengths need to be cut in the order that produces the least amount of off cut waste from the 5m lengths of aluminium extrusions. Currently I order the cutting list in such a way that generally the longest of the smaller lengths gets cut first and the shortest of smaller lengths gets cut last. The exception to this rule is whenever a shorter length will not fit in what is left of the 5m length of aluminium extrusion, I use the longest shorter length that will fit. This seems to produce a very efficient (very little off cut waste) cutting list and doesn't take long to calculate. I imagine, however, that even though the cutting list is **very** efficient, it is not necessarily the **most** efficient. Does anyone know of a way to calculate the most efficient cutting list which can be calculated in a reasonable amount of time?
0
22,149
08/22/2008 12:01:53
2,077
08/20/2008 07:26:21
66
1
Unicode vs UTF-8 confusion in Python / Django?
I stumbled over this passage in the [Django tutorial][1]: > Django models have a default __str__() method that calls __unicode__() and converts the result to a UTF-8 bytestring. This means that unicode(p) will return a Unicode string, and str(p) will return a normal string, with characters encoded as UTF-8. Now, I'm confused because afaik Unicode is not any particular representation, so what is a "Unicode string" in Python? Does that mean UCS-2? Googling turned up [this "Python Unicode Tutorial"][2] which boldly states > Unicode is a two-byte encoding which covers all of the world's common writing systems. which is plain wrong, or is it? I have been confused many times by character set and encoding issues, but here I'm quite sure that the documentation I'm reading is confused. Does anybody know what's going on in Python when it gives me a "Unicode string"? [1]: http://www.djangoproject.com/documentation/tutorial01/ [2]: http://www.reportlab.com/i18n/python_unicode_tutorial.html
python
django
unicode
null
null
null
open
Unicode vs UTF-8 confusion in Python / Django? === I stumbled over this passage in the [Django tutorial][1]: > Django models have a default __str__() method that calls __unicode__() and converts the result to a UTF-8 bytestring. This means that unicode(p) will return a Unicode string, and str(p) will return a normal string, with characters encoded as UTF-8. Now, I'm confused because afaik Unicode is not any particular representation, so what is a "Unicode string" in Python? Does that mean UCS-2? Googling turned up [this "Python Unicode Tutorial"][2] which boldly states > Unicode is a two-byte encoding which covers all of the world's common writing systems. which is plain wrong, or is it? I have been confused many times by character set and encoding issues, but here I'm quite sure that the documentation I'm reading is confused. Does anybody know what's going on in Python when it gives me a "Unicode string"? [1]: http://www.djangoproject.com/documentation/tutorial01/ [2]: http://www.reportlab.com/i18n/python_unicode_tutorial.html
0
22,156
08/22/2008 12:03:36
2,385
08/22/2008 00:18:38
1
0
What is the difference between HttpHandler and a Web User Control and when to use each one?
I've been using user controls extensively but never use a HttpHandler and was wondering if I am doing something suboptimal or wrong
asp.net
null
null
null
null
null
open
What is the difference between HttpHandler and a Web User Control and when to use each one? === I've been using user controls extensively but never use a HttpHandler and was wondering if I am doing something suboptimal or wrong
0
22,165
08/22/2008 12:08:40
983
08/11/2008 12:09:41
1
0
Transactional Design Pattern
I have a need to create a "transactional" process using an external API that does not support COM+ or .NET transactions (Sharepoint to be exact) What I need to do is to be able to perform a number of processes in a sequence, but any failure in that sequence means that I will have to manually undo all of the previous steps. In my case there are only 2 types of step, both af which are fairly easy to undo/roll back. Does anyony have any suggestions for design patterns or structures that could be usefull for this ? Thanks
sharepoint
transaction
designpatterns
null
null
null
open
Transactional Design Pattern === I have a need to create a "transactional" process using an external API that does not support COM+ or .NET transactions (Sharepoint to be exact) What I need to do is to be able to perform a number of processes in a sequence, but any failure in that sequence means that I will have to manually undo all of the previous steps. In my case there are only 2 types of step, both af which are fairly easy to undo/roll back. Does anyony have any suggestions for design patterns or structures that could be usefull for this ? Thanks
0
22,187
08/22/2008 12:19:29
1,175
08/13/2008 10:21:54
412
55
Erlang-style Concurrency for Other Languages
What libraries exist for other programming languages to provide an Erlang-style concurrency model (processes, mailboxes, pattern-matching receive, etc.)? Note: I am specifically interested in things that are intended to be similar to Erlang, not just any threading or queueing library.
erlang
concurrency
threads
library
language-agnostic
null
open
Erlang-style Concurrency for Other Languages === What libraries exist for other programming languages to provide an Erlang-style concurrency model (processes, mailboxes, pattern-matching receive, etc.)? Note: I am specifically interested in things that are intended to be similar to Erlang, not just any threading or queueing library.
0
22,211
08/22/2008 12:34:32
2,468
08/22/2008 12:34:32
1
0
Web framework programming mindset
I am just starting to play with Django/Python and am trying to shift into the MTV mode of programming that Django asks for (insists on). Deciding on what functions should be methods of a model vs simple being a function in a view has so far been confusing. Does anyone know of a book, website, blog, slideshow, whatever that discusses Web Framework programming in more general, abstract terms? I imagine just a book on object oriented programming would do it, but I feel like that would be overkill - I was looking for something web framework specific.
web
framework
object
abstract
null
null
open
Web framework programming mindset === I am just starting to play with Django/Python and am trying to shift into the MTV mode of programming that Django asks for (insists on). Deciding on what functions should be methods of a model vs simple being a function in a view has so far been confusing. Does anyone know of a book, website, blog, slideshow, whatever that discusses Web Framework programming in more general, abstract terms? I imagine just a book on object oriented programming would do it, but I feel like that would be overkill - I was looking for something web framework specific.
0
22,212
08/22/2008 12:34:44
727
08/08/2008 12:16:17
205
14
TClientDataSet Aggregates specification aren't added automatically when creating an Aggregate field.
I need to create an Aggregate Field in a TClientDataSet, but as said in the docs: > Choose OK. The newly defined aggregate > field is automatically added to the > client dataset and its Aggregates > property is automatically updated to > include the appropriate aggregate > specification. When I add a new aggregate field, the aggregate specification isn't added to the TClientDataSet's Aggregates, therefore I can't use its OnUpdateMethod. I also tried handling the OnChange event of my new Aggregate Field, but it isn't fired at all. Am I doing something wrong? I just want to have an aggregated field and fire an event everything it's value change. Is this broken on delphi? Because what is in the documentation doesn't reflect the actual behavior.
delphi
null
null
null
null
null
open
TClientDataSet Aggregates specification aren't added automatically when creating an Aggregate field. === I need to create an Aggregate Field in a TClientDataSet, but as said in the docs: > Choose OK. The newly defined aggregate > field is automatically added to the > client dataset and its Aggregates > property is automatically updated to > include the appropriate aggregate > specification. When I add a new aggregate field, the aggregate specification isn't added to the TClientDataSet's Aggregates, therefore I can't use its OnUpdateMethod. I also tried handling the OnChange event of my new Aggregate Field, but it isn't fired at all. Am I doing something wrong? I just want to have an aggregated field and fire an event everything it's value change. Is this broken on delphi? Because what is in the documentation doesn't reflect the actual behavior.
0
22,239
08/22/2008 12:49:37
2,222
08/21/2008 01:28:06
13
3
Why does int main() {} compile?
(I'm using Visual C++ 2008) I've always heard that main() is _required_ to return an integer, but here I didn't put in `return 0;` and and it compiled with 0 errors and 0 warnings! In the debug window it says the program has exited with code 0. If this function is named anything other than main(), the compiler complains saying 'blah' must return a value. Sticking a `return;` also causes the error to appear. But leaving it out completely, it compiles just fine. #include <iostream> using namespace std; int main() { cout << "Hey look I'm supposed to return an int but I'm not gonna!\n"; } Could this be a bug in VC++?
c++
main
return
int
null
null
open
Why does int main() {} compile? === (I'm using Visual C++ 2008) I've always heard that main() is _required_ to return an integer, but here I didn't put in `return 0;` and and it compiled with 0 errors and 0 warnings! In the debug window it says the program has exited with code 0. If this function is named anything other than main(), the compiler complains saying 'blah' must return a value. Sticking a `return;` also causes the error to appear. But leaving it out completely, it compiles just fine. #include <iostream> using namespace std; int main() { cout << "Hey look I'm supposed to return an int but I'm not gonna!\n"; } Could this be a bug in VC++?
0
22,245
08/22/2008 12:51:03
1,228
08/13/2008 13:58:55
780
50
How do I change my workstation in Team Foundation Server 2k5 and 2k8?
I've got multiple projects in a couple different workstations. However, it seems like I can never figure out how to change my current workstation. The result is that files that I have checked out on my machine are shown to be checked out by somebody else and are not accessible.
teamfoundationserver
workstations
null
null
null
null
open
How do I change my workstation in Team Foundation Server 2k5 and 2k8? === I've got multiple projects in a couple different workstations. However, it seems like I can never figure out how to change my current workstation. The result is that files that I have checked out on my machine are shown to be checked out by somebody else and are not accessible.
0
22,259
08/22/2008 12:53:54
1,820
08/18/2008 18:06:03
492
27
How do i resize and convert an uploaded image to a PNG using GD
I want to allow users to upload avatar-type images in a variety of formats (GIF,JPEG,PNG at least), but to save them all as PNG database BLOBs. If the images are oversize, pixelwise, i want to resize them before DB-insertion. What is the best way to use GD to do the resizing and PNG conversion?
php
gd
image
database
png
null
open
How do i resize and convert an uploaded image to a PNG using GD === I want to allow users to upload avatar-type images in a variety of formats (GIF,JPEG,PNG at least), but to save them all as PNG database BLOBs. If the images are oversize, pixelwise, i want to resize them before DB-insertion. What is the best way to use GD to do the resizing and PNG conversion?
0
22,265
08/22/2008 12:56:36
445
08/05/2008 19:37:25
110
6
Get a list of available domains (NT4 and Active Directory)
Does anyone know (in c#) a way of getting the available NT4 domains (a bit like the WinXP login box dropdown)? I know that this is fairly easy for Active Directory using the DirectoryServices namespace, but I can't find anything for the old NT4 domains. I'd rather not use API calls if at all possible (that might be asking a bit much however). Also, for bonus points (!), we are finally switching to Active Directory later on this autumn, so how would I construct a way of my domain list automatically switching over from NT4 to AD, when we migrate (so I don't need to recompile and re-release)
c#
activedirectory
nt4
null
null
null
open
Get a list of available domains (NT4 and Active Directory) === Does anyone know (in c#) a way of getting the available NT4 domains (a bit like the WinXP login box dropdown)? I know that this is fairly easy for Active Directory using the DirectoryServices namespace, but I can't find anything for the old NT4 domains. I'd rather not use API calls if at all possible (that might be asking a bit much however). Also, for bonus points (!), we are finally switching to Active Directory later on this autumn, so how would I construct a way of my domain list automatically switching over from NT4 to AD, when we migrate (so I don't need to recompile and re-release)
0
22,269
08/22/2008 12:57:41
111
08/02/2008 03:35:55
211
13
Authenticate on an ASP.Net Forms Authorization website from a console app
I'm trying to build a C# console application to automate grabbing certain files from our website, mostly to save myself clicks and - frankly - just to have done it. But I've hit a snag that for which I've been unable to find a working solution. The website I'm trying to which I'm trying to connect uses ASP.Net forms authorization, and I cannot figure out how to authenticate myself with it. This application is a complete hack so I can hard code my username and password or any other needed auth info, and the solution itself doesn't need to be something that is viable enough to release to general users. In other words, if the only possible solution is a hack, I'm fine with that. Basically, I'm trying to use HttpWebRequest to pull the site that has the list of files, iterating through that list and then downloading what I need. So the actual work on the site is fairly trivial once I can get the website to consider me authorized. Thanks! -Eric Sipple
c#
asp.net
authentication
null
null
null
open
Authenticate on an ASP.Net Forms Authorization website from a console app === I'm trying to build a C# console application to automate grabbing certain files from our website, mostly to save myself clicks and - frankly - just to have done it. But I've hit a snag that for which I've been unable to find a working solution. The website I'm trying to which I'm trying to connect uses ASP.Net forms authorization, and I cannot figure out how to authenticate myself with it. This application is a complete hack so I can hard code my username and password or any other needed auth info, and the solution itself doesn't need to be something that is viable enough to release to general users. In other words, if the only possible solution is a hack, I'm fine with that. Basically, I'm trying to use HttpWebRequest to pull the site that has the list of files, iterating through that list and then downloading what I need. So the actual work on the site is fairly trivial once I can get the website to consider me authorized. Thanks! -Eric Sipple
0
22,278
08/22/2008 13:04:29
1,219
08/13/2008 13:44:47
1,044
66
What's a good way to encapsulate data access with PHP/MySQL?
Most of my experience is on the MSFT stack, but I am now working on a side project, helping someone with a personal site with cheap hosting that is built on the LAMP stack. My options for installing extras are limited, so I'm wondering about how to write my data access code without embedding raw queries in the .php files. I like to keep things simple, even with .NET. I generally write stored procedures for everything, and I have a helper class that wraps all calls to execute procedures and return data sets. I'm not looking for a full-blown ORM or any kind of entity model. Remember that I'm on a $7/month GoDaddy account, so I'm limited to what's already installed in their basic package.
php
mysql
database
lamp
null
null
open
What's a good way to encapsulate data access with PHP/MySQL? === Most of my experience is on the MSFT stack, but I am now working on a side project, helping someone with a personal site with cheap hosting that is built on the LAMP stack. My options for installing extras are limited, so I'm wondering about how to write my data access code without embedding raw queries in the .php files. I like to keep things simple, even with .NET. I generally write stored procedures for everything, and I have a helper class that wraps all calls to execute procedures and return data sets. I'm not looking for a full-blown ORM or any kind of entity model. Remember that I'm on a $7/month GoDaddy account, so I'm limited to what's already installed in their basic package.
0
22,306
08/22/2008 13:15:52
2,292
08/21/2008 14:02:38
1
0
Good Starting Places for SQL Server Alerts/Notifications?
Just recently started having issues with a SQL Server Agent Job that contains a SSIS package to extract production data and summarize it into a separate reporting database. I *think* that some of the Alerts/Notifications settings I tried playing with caused the problem as the job had been running to completion unattended for the previous two weeks. So... Where's a good place to start reading up on SQL Agent Alerts and Notifications? I want to enable some sort of alert/notification so that I'm always informed: 1. That the job completes successfully (as a check to ensure that it's always executed), or 2. That the job ran into some sort of error, which should include enough info (such as error number) that I can diagnose the cause of the error As always, any help will be greatly appreciated!
sql-server
ssis
etl
notifications
alert
null
open
Good Starting Places for SQL Server Alerts/Notifications? === Just recently started having issues with a SQL Server Agent Job that contains a SSIS package to extract production data and summarize it into a separate reporting database. I *think* that some of the Alerts/Notifications settings I tried playing with caused the problem as the job had been running to completion unattended for the previous two weeks. So... Where's a good place to start reading up on SQL Agent Alerts and Notifications? I want to enable some sort of alert/notification so that I'm always informed: 1. That the job completes successfully (as a check to ensure that it's always executed), or 2. That the job ran into some sort of error, which should include enough info (such as error number) that I can diagnose the cause of the error As always, any help will be greatly appreciated!
0
22,309
08/22/2008 13:17:48
194
08/03/2008 10:56:49
1,858
102
ARMV4i (Windows Mobile 6) Native Code disassembler
Does anyone know of a disassembler for ARMV4i compiled executables and dlls? I've got a plugin DLL I'm writing and it has a very rare data abort (<5% of the time) that I have narrowed down to a specific function (via dumpbin and the memory address output by the data abort) however it's a fairly large function and I would like to narrow it down a little. I know it's happening in a memset() call, but that particular function has about 35 of them, so I was hoping that by looking at the disassembly I could figure out where about the problem actually is.
windows-mobile
arm
disassembler
null
null
null
open
ARMV4i (Windows Mobile 6) Native Code disassembler === Does anyone know of a disassembler for ARMV4i compiled executables and dlls? I've got a plugin DLL I'm writing and it has a very rare data abort (<5% of the time) that I have narrowed down to a specific function (via dumpbin and the memory address output by the data abort) however it's a fairly large function and I would like to narrow it down a little. I know it's happening in a memset() call, but that particular function has about 35 of them, so I was hoping that by looking at the disassembly I could figure out where about the problem actually is.
0
22,318
08/22/2008 13:21:18
466
08/06/2008 00:59:59
73
2
IE Securty Zone Issues
I'm developing a website which will be used in the corporate intranet which uses JCIFS and NTLM to automatically authenticate the users without asking them to log on. Everything seems to be working in IE 6, but some users are being prompted for their passwords in IE 7. We've had some success by getting the users to change their Lonon option to "Automatic logon using current username and password" (Tools > Internet Options > Securty Tab > Select Local Intranet > Custom Level > All the way at the bottom User Authentication > Logon), but we are still having a few users who are getting username/password prompts. Also, we've had some users report they can just click cancel when the prompt comes up and the page will come up correctly. If anyone has any other suggestions, I'd greatly appreciate them.
internet-explorer
security-zone
ntlm
jcifs
intranet
null
open
IE Securty Zone Issues === I'm developing a website which will be used in the corporate intranet which uses JCIFS and NTLM to automatically authenticate the users without asking them to log on. Everything seems to be working in IE 6, but some users are being prompted for their passwords in IE 7. We've had some success by getting the users to change their Lonon option to "Automatic logon using current username and password" (Tools > Internet Options > Securty Tab > Select Local Intranet > Custom Level > All the way at the bottom User Authentication > Logon), but we are still having a few users who are getting username/password prompts. Also, we've had some users report they can just click cancel when the prompt comes up and the page will come up correctly. If anyone has any other suggestions, I'd greatly appreciate them.
0
22,319
08/22/2008 13:22:31
26
08/01/2008 12:18:14
1,938
114
Send out email at a user's local time.
I am writing a program that needs to send out an email every hour on the hour, but at a time local to the user. Say I have 2 users in different time zones. John is in New York and Fred is in Los Angeles. The server is in Chicago. If I want to send an email at 6 PM local to each user, I'd have to send the email to John at 7 PM Server time and Fred at 4 PM Server time. What's a good approach to this in .NET / Sql Server? I have found an xml file with all of the time zone information, so I am considering writing a script to import it into the database, then querying off of it. Thanks
.net
sql
timezone
null
null
null
open
Send out email at a user's local time. === I am writing a program that needs to send out an email every hour on the hour, but at a time local to the user. Say I have 2 users in different time zones. John is in New York and Fred is in Los Angeles. The server is in Chicago. If I want to send an email at 6 PM local to each user, I'd have to send the email to John at 7 PM Server time and Fred at 4 PM Server time. What's a good approach to this in .NET / Sql Server? I have found an xml file with all of the time zone information, so I am considering writing a script to import it into the database, then querying off of it. Thanks
0
22,321
08/22/2008 13:22:38
227
08/03/2008 17:53:19
1,078
59
Remoting server discovery.
I have a client/server application that communicates with .Net remoting. I need my clients to be able to find the server(s) on the network without requiring client-side configuration. As far as I know, there is no support for discovery in remoting. I am prepared to implement a UDP solution where the clients will be able to find the servers via broadcast messages. I want to hear the collective SO wisdom before I go ahead. Is this the best way? Any other suggestions?
.net
remoting
udp
broadcast
networking
null
open
Remoting server discovery. === I have a client/server application that communicates with .Net remoting. I need my clients to be able to find the server(s) on the network without requiring client-side configuration. As far as I know, there is no support for discovery in remoting. I am prepared to implement a UDP solution where the clients will be able to find the servers via broadcast messages. I want to hear the collective SO wisdom before I go ahead. Is this the best way? Any other suggestions?
0
22,322
08/22/2008 13:23:15
2,102
08/20/2008 11:37:35
44
6
How to late bind 32bit/64 bit libs at runtime
I've got a problem similar to,but subtly different from, that described [here][1] (Loading assemblies and their dependencies). I have a C++ DLL for 3D rendering that is what we sell to customers. For .NET users we will have a CLR wrapper around it. The C++ DLL can be built in both 32 and 64bit versions, but I think this means we need to have two CLR wrappers since the CLR binds to a specific DLL? Say now our customer has a .NET app that can be either 32 or 64bit, and that it being a pure .NET app it leaves the CLR to work it out from a single set of assemblies. The question is how can the app code dynamically choose between our 32 and 64bit CLR/DLL combinations at run-time? Even more specifically, is the suggested answer to the aforementioned question applicable here too (i.e. create a ResolveEvent handler)? Thanks in advance. [1]: http://stackoverflow.com/questions/22012/loading-assemblies-and-its-dependencies
c#
.net
64bit
null
null
null
open
How to late bind 32bit/64 bit libs at runtime === I've got a problem similar to,but subtly different from, that described [here][1] (Loading assemblies and their dependencies). I have a C++ DLL for 3D rendering that is what we sell to customers. For .NET users we will have a CLR wrapper around it. The C++ DLL can be built in both 32 and 64bit versions, but I think this means we need to have two CLR wrappers since the CLR binds to a specific DLL? Say now our customer has a .NET app that can be either 32 or 64bit, and that it being a pure .NET app it leaves the CLR to work it out from a single set of assemblies. The question is how can the app code dynamically choose between our 32 and 64bit CLR/DLL combinations at run-time? Even more specifically, is the suggested answer to the aforementioned question applicable here too (i.e. create a ResolveEvent handler)? Thanks in advance. [1]: http://stackoverflow.com/questions/22012/loading-assemblies-and-its-dependencies
0
22,326
08/22/2008 13:24:24
1,508
08/16/2008 02:29:14
97
7
Word Automation: Write RTF text without going through clipboard
I am trying to replace the current selection in Word by some RTF string stored in a variable. Here is the current code: Clipboard.SetText(strRTFString, TextDataFormat.Rtf) oWord.ActiveDocument.ActiveWindow.Selection.PasteAndFormat(0) Is there any way to do the same thing without going through the clipboard. Or is there any way to push the clipboard data to a safe place and restore it after?
c#
vb.net
.net
word
automation
null
open
Word Automation: Write RTF text without going through clipboard === I am trying to replace the current selection in Word by some RTF string stored in a variable. Here is the current code: Clipboard.SetText(strRTFString, TextDataFormat.Rtf) oWord.ActiveDocument.ActiveWindow.Selection.PasteAndFormat(0) Is there any way to do the same thing without going through the clipboard. Or is there any way to push the clipboard data to a safe place and restore it after?
0
22,338
08/22/2008 13:27:26
1,000
08/11/2008 12:41:19
332
16
How do people choose product names?
I flatter myself that I'm a good programmer, and can get away with graphic design. But something I'm incapable of doing is coming up with good names - and it seems neither are the people I work with. We're now in the slightly ludicrous situation that the product we've been working on for a couple of years is being installed to customers, is well received and is making money - but doesn't yet have a name. We're too small a company to have anything like a proper marketing division to do this thing. So how have people tended to choose names, logos and branding?
business
name
null
null
null
null
open
How do people choose product names? === I flatter myself that I'm a good programmer, and can get away with graphic design. But something I'm incapable of doing is coming up with good names - and it seems neither are the people I work with. We're now in the slightly ludicrous situation that the product we've been working on for a couple of years is being installed to customers, is well received and is making money - but doesn't yet have a name. We're too small a company to have anything like a proper marketing division to do this thing. So how have people tended to choose names, logos and branding?
0
22,340
08/22/2008 13:27:53
2,440
08/22/2008 10:47:46
1
0
WCF push to client through firewall?
I need to use push-technology with WCF through client firewalls. This must be a common problem, and I know for a fact it works in theory (see links below), but I have failed to get it working, and I haven't been able to find a code sample that demonstrates it. Requirements: - WCF - Clients connects to server through tcp port 80 (netTcpBinding). - Server pushes back information at irregular intervals (1 min to several hours). - Users should not have to configure their firewalls, server pushes must pass through firewalls that have all inbound ports closed. TCP duplex on the same connection is needed for this, a dual binding does not work since a port has to be opened on the client firewall. - Clients sends heartbeats to server at regular intervals (perhaps every 15 mins) so server knows client is still alive. - Server is IIS7 with WAS. The solution seems to be duplex netTcpBinding. Based on this information: [WCF through firewalls and NATs][1] [Keeping connections open in IIS][2] But I have yet to find a code sample that works.. I've tried combining the "Duplex" and "TcpActivation" samples from Microsoft's WCF Samples without any luck. Please can someone point me to example code that works, or build a small sample app. Thanks a lot! [1]: http://blogs.msdn.com/drnick/archive/2006/05/01/configuring-wcf-for-nats-and-firewalls.aspx [2]: http://blogs.msdn.com/drnick/archive/2006/10/20/keeping-connections-open-in-iis.aspx
.net
wcf
firewall
push
duplex
null
open
WCF push to client through firewall? === I need to use push-technology with WCF through client firewalls. This must be a common problem, and I know for a fact it works in theory (see links below), but I have failed to get it working, and I haven't been able to find a code sample that demonstrates it. Requirements: - WCF - Clients connects to server through tcp port 80 (netTcpBinding). - Server pushes back information at irregular intervals (1 min to several hours). - Users should not have to configure their firewalls, server pushes must pass through firewalls that have all inbound ports closed. TCP duplex on the same connection is needed for this, a dual binding does not work since a port has to be opened on the client firewall. - Clients sends heartbeats to server at regular intervals (perhaps every 15 mins) so server knows client is still alive. - Server is IIS7 with WAS. The solution seems to be duplex netTcpBinding. Based on this information: [WCF through firewalls and NATs][1] [Keeping connections open in IIS][2] But I have yet to find a code sample that works.. I've tried combining the "Duplex" and "TcpActivation" samples from Microsoft's WCF Samples without any luck. Please can someone point me to example code that works, or build a small sample app. Thanks a lot! [1]: http://blogs.msdn.com/drnick/archive/2006/05/01/configuring-wcf-for-nats-and-firewalls.aspx [2]: http://blogs.msdn.com/drnick/archive/2006/10/20/keeping-connections-open-in-iis.aspx
0
22,346
08/22/2008 13:30:25
324
08/04/2008 16:46:29
53
2
How do I extract/insert text into RTF string in C#
In a C# console app I have the need to extract the text from an RTF string, add some more text to it, and then convert it back into RTF. I have been able to do this using the System.Windows.Forms.RichTexBox class, but I find it a bit odd to use a Forms control in a non-Forms app. Any better way to do this?
c#
rtf
null
null
null
null
open
How do I extract/insert text into RTF string in C# === In a C# console app I have the need to extract the text from an RTF string, add some more text to it, and then convert it back into RTF. I have been able to do this using the System.Windows.Forms.RichTexBox class, but I find it a bit odd to use a Forms control in a non-Forms app. Any better way to do this?
0
22,354
08/22/2008 13:33:37
2,470
08/22/2008 12:42:38
1
1
Sharepoint COMException 0x81020037
I am working on a SharePoint application that supports importing multiple documents in a single operation. I also have an ItemAdded event handler that performs some basic maintenance of the item metadata. This event fires for both imported documents and manually created ones. The final piece of the puzzle is a batch operation feature that I implemented to kick off a workflow and update another metadata field. I am able to cause a COMException 0x81020037 by extracting the file data of a SPListItem. This file is just an InfoPath form/XML document. I am able to modify the XML and sucessfully push it back into the SPListItem. When I fire off the custom feature immediately afterwards and modify metadata, it occassionally causes the COM error. The error message basically indicates that the file was modified by another thread. It would seem that the ItemAdded event is still writing the file back to the database while the custom feature is changing metadata. I have tried putting in delays and error catching loops to try to detect that the SPListItem is safe to modify with little success. Is there a way to tell if another thread has a lock on a document?
sharepoint
multithreading
null
null
null
null
open
Sharepoint COMException 0x81020037 === I am working on a SharePoint application that supports importing multiple documents in a single operation. I also have an ItemAdded event handler that performs some basic maintenance of the item metadata. This event fires for both imported documents and manually created ones. The final piece of the puzzle is a batch operation feature that I implemented to kick off a workflow and update another metadata field. I am able to cause a COMException 0x81020037 by extracting the file data of a SPListItem. This file is just an InfoPath form/XML document. I am able to modify the XML and sucessfully push it back into the SPListItem. When I fire off the custom feature immediately afterwards and modify metadata, it occassionally causes the COM error. The error message basically indicates that the file was modified by another thread. It would seem that the ItemAdded event is still writing the file back to the database while the custom feature is changing metadata. I have tried putting in delays and error catching loops to try to detect that the SPListItem is safe to modify with little success. Is there a way to tell if another thread has a lock on a document?
0
22,356
08/22/2008 13:34:02
1,490
08/15/2008 21:35:24
172
35
Cleanest Way to Invoke Cross-Thread Events
I find that the .NET event model is such that I'll often be raising an event on one thread and listening for it on another thread. I was wondering what the cleanest way to marshal an event from a background thread onto my UI thread is. Currently I use code like this: delegate void CoolObject_CoolEventCallback( object sender, UpdateManagerEventArgs e); private void mCoolObject_CoolEvent(object sender, CoolObjectEventArgs args) { if (InvokeRequired) { CoolObject_CoolEventCallback cb = new CoolObject_CoolEventCallback( mCoolObject_CoolEvent); BeginInvoke(cb, new object[] { sender, args }); return; } // do the dirty work of my method here }
c#
events
multithreading
null
null
null
open
Cleanest Way to Invoke Cross-Thread Events === I find that the .NET event model is such that I'll often be raising an event on one thread and listening for it on another thread. I was wondering what the cleanest way to marshal an event from a background thread onto my UI thread is. Currently I use code like this: delegate void CoolObject_CoolEventCallback( object sender, UpdateManagerEventArgs e); private void mCoolObject_CoolEvent(object sender, CoolObjectEventArgs args) { if (InvokeRequired) { CoolObject_CoolEventCallback cb = new CoolObject_CoolEventCallback( mCoolObject_CoolEvent); BeginInvoke(cb, new object[] { sender, args }); return; } // do the dirty work of my method here }
0
22,358
08/22/2008 13:35:01
2,454
08/22/2008 11:22:25
1
0
How can I develop for iPhone using a Windows development machine?
Is there any way to tinker with the iPhone SDK on a Windows machine? Is there plans for an iPhone SDK version for Windows? The only other way I can think of doing this is to run a Mac VM image on VMWare server running on Windows, although I'm not too sure how legal this is.
iphone
null
null
null
null
05/25/2012 15:05:17
not constructive
How can I develop for iPhone using a Windows development machine? === Is there any way to tinker with the iPhone SDK on a Windows machine? Is there plans for an iPhone SDK version for Windows? The only other way I can think of doing this is to run a Mac VM image on VMWare server running on Windows, although I'm not too sure how legal this is.
4
22,379
08/22/2008 13:40:32
486
08/06/2008 09:19:11
425
47
Implementing a log watcher
I wondering how in C/C++ you can implement a program (similar to tail -f) that watches for new lines added to a log file and then process them?
c++
c
file
io
null
null
open
Implementing a log watcher === I wondering how in C/C++ you can implement a program (similar to tail -f) that watches for new lines added to a log file and then process them?
0
22,401
08/22/2008 13:47:43
572
08/06/2008 20:56:54
1,117
97
Does PHP have built-in data structures?
I'm looking at the [PHP Manual][1], and I'm not seeing a section on data structures that most languages have, such as lists and sets. Am I just blind or does PHP not have anything like this built in? [1]: http://www.php.net/manual/en/
php
data-structures
null
null
null
null
open
Does PHP have built-in data structures? === I'm looking at the [PHP Manual][1], and I'm not seeing a section on data structures that most languages have, such as lists and sets. Am I just blind or does PHP not have anything like this built in? [1]: http://www.php.net/manual/en/
0
22,409
08/22/2008 13:51:39
751
08/08/2008 14:26:58
78
6
How do I convert images between CMYK and RGB in ColdFusion (java)?
I have a need to convert images from CMYK to RGB - not necessarily back again, but hey, if it can be done... With the release of ColdFusion 8, we got the [CFImage][1] tag, but it doesn't support this conversion; and nor does [Image.cfc][2], or [Alagad's Image Component][3]. However, it should be possible in Java; which we can leverage through CF. For example here's how you might create a java thread to sleep a process: [1]:http://cfquickdocs.com/cf8/?getDoc=cfimage [2]:http://x.com [3]:http://x.com <cfset jthread = createObject("java", "java.lang.thread")/> <cfset jthread.sleep(5000)/> I would guess a similar method could be used to leverage java to do this image conversion, but not being a java developer, I don't have a clue where to start. Can anyone lend a hand here?
java
image
coldfusion
null
null
null
open
How do I convert images between CMYK and RGB in ColdFusion (java)? === I have a need to convert images from CMYK to RGB - not necessarily back again, but hey, if it can be done... With the release of ColdFusion 8, we got the [CFImage][1] tag, but it doesn't support this conversion; and nor does [Image.cfc][2], or [Alagad's Image Component][3]. However, it should be possible in Java; which we can leverage through CF. For example here's how you might create a java thread to sleep a process: [1]:http://cfquickdocs.com/cf8/?getDoc=cfimage [2]:http://x.com [3]:http://x.com <cfset jthread = createObject("java", "java.lang.thread")/> <cfset jthread.sleep(5000)/> I would guess a similar method could be used to leverage java to do this image conversion, but not being a java developer, I don't have a clue where to start. Can anyone lend a hand here?
0
22,417
08/22/2008 13:53:46
1,975
08/19/2008 16:30:04
59
14
SQL Query Help - Scoring Multiple Choice Tests
Say I have a Student table, it's got an int ID. I have a fixed set of 10 multiple choice questions with 5 possible answers. I have a normalized answer table that has the question id, the Student.answer (1-5) and the Student.ID I'm trying to write a single query that will return all scores over a certain pecentage. To this end I wrote a simple UDF that accepts the Student.answers and the correct answer, so it has 20 parameters. I'm starting to wonder if it's better to denormalize the answer table, bring it into my applcation and let my application do the scoring. Anyone ever tackle something like this and have insight?
dynamicsql
null
null
null
null
null
open
SQL Query Help - Scoring Multiple Choice Tests === Say I have a Student table, it's got an int ID. I have a fixed set of 10 multiple choice questions with 5 possible answers. I have a normalized answer table that has the question id, the Student.answer (1-5) and the Student.ID I'm trying to write a single query that will return all scores over a certain pecentage. To this end I wrote a simple UDF that accepts the Student.answers and the correct answer, so it has 20 parameters. I'm starting to wonder if it's better to denormalize the answer table, bring it into my applcation and let my application do the scoring. Anyone ever tackle something like this and have insight?
0
22,429
08/22/2008 14:04:13
2,418
08/22/2008 03:32:43
1
1
Adding Inline Search function to web page
Is it possible to embed an inline search box into a web page which provides similar functionality to the [IE7Pro Inline Search][1] or similar plugins for Firefox/Safari? [1]: http://www.ie7pro.com/inline-search.html
javascript
html
null
null
null
null
open
Adding Inline Search function to web page === Is it possible to embed an inline search box into a web page which provides similar functionality to the [IE7Pro Inline Search][1] or similar plugins for Firefox/Safari? [1]: http://www.ie7pro.com/inline-search.html
0
22,431
08/22/2008 14:05:05
2,169
08/20/2008 17:54:21
11
1
Search strategies in ORMs
I am looking for information on handling search in different ORMs. Currently I am redeveloping some old application in PHP and one of requirements is: make everything or almost everything searchable, so user just types "punkrock live" and the app finds videos clips, music tracks, reviews, upcoming events or even user comments labeled that way. In environment where everything is searchable ORM need to support this feature in two ways: - providing some indexing API on "O" side of ORM - providing means for bulk database retrieval on "R" side Ideal solution would return ready made objects based on searched string. Do you know any good end-to-end solutions that does the job, not necessarily in PHP? If you dealt with similar problem it would be nice to listen what your experience is. Something more than *Use Lucene* or *semantic web is the way* oneliners, tho ;-)*
search
orm
engine
doctrine
propel
null
open
Search strategies in ORMs === I am looking for information on handling search in different ORMs. Currently I am redeveloping some old application in PHP and one of requirements is: make everything or almost everything searchable, so user just types "punkrock live" and the app finds videos clips, music tracks, reviews, upcoming events or even user comments labeled that way. In environment where everything is searchable ORM need to support this feature in two ways: - providing some indexing API on "O" side of ORM - providing means for bulk database retrieval on "R" side Ideal solution would return ready made objects based on searched string. Do you know any good end-to-end solutions that does the job, not necessarily in PHP? If you dealt with similar problem it would be nice to listen what your experience is. Something more than *Use Lucene* or *semantic web is the way* oneliners, tho ;-)*
0
22,444
08/22/2008 14:10:40
305
08/04/2008 14:04:19
481
33
My regex is matching too much. How do I make it stop?
J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000100: Machine name: DEV J0000100: Project file: E:\mbiek\foo.pf J0000100: Template file: E:\mbiek\foot.xdt J0000100: Job name: MBiek J0000100: Output folder: E:\foo\A0001401 J0000100: Temp folder: E:\foo\Output\A0001401 J0000100: Document 1 - Starting document J0005000: Document 1 - Text overflowed on page 1 (warning) J0000101: Document 1 - 1 page(s) composed J0000102: Document 1 - 1 page(s) rendered at 500 x 647 pixels J0000100: Document 1 - Completed successfully J0000020: I have this gigantic ugly string and I'm tring to extract pieces from it using regex. In this case, I want to grab everything after "Project Name" up to the part where it says "J0000011:" (the 11 is going to be a different number every time). Here's the regex I've been playing with Project name:\s+(.*)\s+J[0-9]{7}: The problem is that it doesn't stop until it hits the **J0000020:** at the end. How do I make the regex stop at the first ocurrence of **J[0-9]{7}**?
regex
null
null
null
null
null
open
My regex is matching too much. How do I make it stop? === J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000100: Machine name: DEV J0000100: Project file: E:\mbiek\foo.pf J0000100: Template file: E:\mbiek\foot.xdt J0000100: Job name: MBiek J0000100: Output folder: E:\foo\A0001401 J0000100: Temp folder: E:\foo\Output\A0001401 J0000100: Document 1 - Starting document J0005000: Document 1 - Text overflowed on page 1 (warning) J0000101: Document 1 - 1 page(s) composed J0000102: Document 1 - 1 page(s) rendered at 500 x 647 pixels J0000100: Document 1 - Completed successfully J0000020: I have this gigantic ugly string and I'm tring to extract pieces from it using regex. In this case, I want to grab everything after "Project Name" up to the part where it says "J0000011:" (the 11 is going to be a different number every time). Here's the regex I've been playing with Project name:\s+(.*)\s+J[0-9]{7}: The problem is that it doesn't stop until it hits the **J0000020:** at the end. How do I make the regex stop at the first ocurrence of **J[0-9]{7}**?
0
22,459
08/22/2008 14:17:01
194
08/03/2008 10:56:49
1,868
103
memset() causing data abort
I'm getting some strange, intermittent, data aborts (< 5% of the time) in some of my code, when calling memset. The problem is that is usually doesn't happen unless the code is running for a couple days, so it's hard to catch it in the act. I'm using the following code: char *msg = (char*)malloc(sizeof(char)*2048); char *temp = (char*)malloc(sizeof(char)*1024); memset(msg, 0, 2048); memset(temp, 0, 1024); char *tempstr = (char*)malloc(sizeof(char)*128); sprintf(temp, "%s %s/%s %s%s", EZMPPOST, EZMPTAG, EZMPVER, TYPETXT, EOL); strcat(msg, temp); //Add Data memset(tempstr, '\0', 128); wcstombs(tempstr, gdevID, wcslen(gdevID)); sprintf(temp, "%s: %s%s", "DeviceID", tempstr, EOL); strcat(msg, temp); As you can see, I'm not trying to use memset with a size larger that what's originally allocated with malloc() Anyone see what might be wrong with this?
c
c++
memory
null
null
null
open
memset() causing data abort === I'm getting some strange, intermittent, data aborts (< 5% of the time) in some of my code, when calling memset. The problem is that is usually doesn't happen unless the code is running for a couple days, so it's hard to catch it in the act. I'm using the following code: char *msg = (char*)malloc(sizeof(char)*2048); char *temp = (char*)malloc(sizeof(char)*1024); memset(msg, 0, 2048); memset(temp, 0, 1024); char *tempstr = (char*)malloc(sizeof(char)*128); sprintf(temp, "%s %s/%s %s%s", EZMPPOST, EZMPTAG, EZMPVER, TYPETXT, EOL); strcat(msg, temp); //Add Data memset(tempstr, '\0', 128); wcstombs(tempstr, gdevID, wcslen(gdevID)); sprintf(temp, "%s: %s%s", "DeviceID", tempstr, EOL); strcat(msg, temp); As you can see, I'm not trying to use memset with a size larger that what's originally allocated with malloc() Anyone see what might be wrong with this?
0
22,465
08/22/2008 14:19:13
635
08/07/2008 12:16:06
36
2
I'm looking for a Windows hosting provider that supports custom os images (like AMZN EC2)
I've come to love [Amazon's EC2 service][1] and I'm looking for something similar that supports the ability to save a running Windows server image and start new instances from it. I contacted [GoGrid][2] (the feature is planned in future) and [Mosso][3] (no joy) Anyone know of any hosting/cloud providers that can dothis? [1]: http://en.wikipedia.org/wiki/Amazon_Elastic_Compute_Cloud [2]: http://www.gogrid.com/ [3]: http://www.mosso.com/
windows2003server
hosting
virtual
cloud
amazon-ec2
null
open
I'm looking for a Windows hosting provider that supports custom os images (like AMZN EC2) === I've come to love [Amazon's EC2 service][1] and I'm looking for something similar that supports the ability to save a running Windows server image and start new instances from it. I contacted [GoGrid][2] (the feature is planned in future) and [Mosso][3] (no joy) Anyone know of any hosting/cloud providers that can dothis? [1]: http://en.wikipedia.org/wiki/Amazon_Elastic_Compute_Cloud [2]: http://www.gogrid.com/ [3]: http://www.mosso.com/
0
22,466
08/22/2008 14:19:49
1,446
08/15/2008 16:12:45
11
1
jQuery AJAX vs. UpdatePanel
We've got a page with a ton of jQuery (approximately 2000 lines) that we want to trim down b/c it is a maintenance nightmare, and it might be easier to maintain on the server. We've thought about using UpdatePanel for this. However, we don't like the fact that the UpdatePanel is sending the whole page back to the server. Looking for suggestions.
asp.net
jquery
updatepanel
null
null
null
open
jQuery AJAX vs. UpdatePanel === We've got a page with a ton of jQuery (approximately 2000 lines) that we want to trim down b/c it is a maintenance nightmare, and it might be easier to maintain on the server. We've thought about using UpdatePanel for this. However, we don't like the fact that the UpdatePanel is sending the whole page back to the server. Looking for suggestions.
0
22,469
08/22/2008 14:20:35
543
08/06/2008 15:41:31
298
20
What a good machine for iPhone development?
I'm going to be working on some iPhone apps so I've been given a golden ticket to buy a Mac. However the golden ticket isn't worth that much, and I'm thinking iMac. Now, Macs are great, I love 'em and use 'em at home, but I know that the iMac is geared more towards the average consumer than the professional. Is an iMac going to be powerful enough to do iPhone development on? If it helps any, the only thing I envision doing on the Mac is running XCode and maybe a web browser. Is there anybody out there doing iPhone development and having trouble running the required tools on their machine? If so, what do you have?
iphone
apple
osx
imac
null
null
open
What a good machine for iPhone development? === I'm going to be working on some iPhone apps so I've been given a golden ticket to buy a Mac. However the golden ticket isn't worth that much, and I'm thinking iMac. Now, Macs are great, I love 'em and use 'em at home, but I know that the iMac is geared more towards the average consumer than the professional. Is an iMac going to be powerful enough to do iPhone development on? If it helps any, the only thing I envision doing on the Mac is running XCode and maybe a web browser. Is there anybody out there doing iPhone development and having trouble running the required tools on their machine? If so, what do you have?
0
22,474
08/22/2008 14:21:47
453,046
08/22/2008 10:55:53
1
0
How do I display records containing specific information in SQl
How do I select all records that contain "LCS" within the title column in sql.
mssql
null
null
null
null
null
open
How do I display records containing specific information in SQl === How do I select all records that contain "LCS" within the title column in sql.
0
22,493
08/22/2008 14:28:18
205
08/03/2008 13:31:27
156
12
Using cached credentials to connect to SQL 2005 across a domain boundary
Ever since moving to Vista some time ago on my development machine, connecting to SQL Servers in our DMZ active directory domain from client tools like SSMS has not worked like it used to. In XP, as long as I had authenticated in some way on the server (for example directing Explorer to \\server.dmzdomain\c$ and entering valid creds into the login prompt), SSMS would use those cached credentials to connect. However since switching to Vista, when trying to connect SSMS to a server in the DMZ domain I get the message *Login failed for user ''. The user is not associated with a trusted SQL Server connection.* If I change the connection options to use Named Pipes instead of the default TCP/IP, my cached credentials are sent and everything works fine. This is the case whether Windows Firewall is off or on, and connections to servers in our internal domain (the same domain my dev PC is in) work fine over TCP/IP or named pipes. I don't mind too much using named pipes for these connections as a workaround, but it seems like TCP/IP is the recommended connection method and I don't like not understanding why it's not working as I'd expect. Any ideas?
mssql
ssms
null
null
null
null
open
Using cached credentials to connect to SQL 2005 across a domain boundary === Ever since moving to Vista some time ago on my development machine, connecting to SQL Servers in our DMZ active directory domain from client tools like SSMS has not worked like it used to. In XP, as long as I had authenticated in some way on the server (for example directing Explorer to \\server.dmzdomain\c$ and entering valid creds into the login prompt), SSMS would use those cached credentials to connect. However since switching to Vista, when trying to connect SSMS to a server in the DMZ domain I get the message *Login failed for user ''. The user is not associated with a trusted SQL Server connection.* If I change the connection options to use Named Pipes instead of the default TCP/IP, my cached credentials are sent and everything works fine. This is the case whether Windows Firewall is off or on, and connections to servers in our internal domain (the same domain my dev PC is in) work fine over TCP/IP or named pipes. I don't mind too much using named pipes for these connections as a workaround, but it seems like TCP/IP is the recommended connection method and I don't like not understanding why it's not working as I'd expect. Any ideas?
0
22,499
08/22/2008 14:29:23
2,494
08/22/2008 14:29:22
1
0
SQL 2005 Book For Optimization Techniques
My knowledge of SQL has been mostly gathered through immediate need as opposed to formal training. The project I'm working on now requires the next level of SQL (specifically SQL Server 2005) knowledge. That is, I need to know techniques for optimizing the schema, writing optimized queries and even some information about replication and mirroring. Is there a book that anyone here would recommend for that level of expertise as it pertains to SQL in general or SQL Server specifically?
sql-server
optimization
sql-server-2005
training
bookmarks
06/19/2012 19:15:30
off topic
SQL 2005 Book For Optimization Techniques === My knowledge of SQL has been mostly gathered through immediate need as opposed to formal training. The project I'm working on now requires the next level of SQL (specifically SQL Server 2005) knowledge. That is, I need to know techniques for optimizing the schema, writing optimized queries and even some information about replication and mirroring. Is there a book that anyone here would recommend for that level of expertise as it pertains to SQL in general or SQL Server specifically?
2
22,500
08/22/2008 14:29:27
572
08/06/2008 20:56:54
1,139
98
What are the major differences between ANSI C and K&R C?
The [Wikipedia article on ANSI C][1] says: > One of the aims of the ANSI C standardization process was to produce a superset of K&R C (the first published standard), incorporating many of the unofficial features subsequently introduced. However, the standards committee also included several new features, such as function prototypes (borrowed from the C++ programming language), and a more capable preprocessor. The syntax for parameter declarations was also changed to reflect the C++ style. That makes me think that there are differences. However, I didn't see a comparison between K&R C and ANSI C. Is there such a document? If not, what are the major differences? EDIT: I believe the K&R book says "ANSI C" on the cover. At least I believe the version that I have at home does. So perhaps there isn't a difference anymore? [1]: http://en.wikipedia.org/wiki/ANSI_C
c
ansi-c
kr-c
null
null
null
open
What are the major differences between ANSI C and K&R C? === The [Wikipedia article on ANSI C][1] says: > One of the aims of the ANSI C standardization process was to produce a superset of K&R C (the first published standard), incorporating many of the unofficial features subsequently introduced. However, the standards committee also included several new features, such as function prototypes (borrowed from the C++ programming language), and a more capable preprocessor. The syntax for parameter declarations was also changed to reflect the C++ style. That makes me think that there are differences. However, I didn't see a comparison between K&R C and ANSI C. Is there such a document? If not, what are the major differences? EDIT: I believe the K&R book says "ANSI C" on the cover. At least I believe the version that I have at home does. So perhaps there isn't a difference anymore? [1]: http://en.wikipedia.org/wiki/ANSI_C
0
22,503
08/22/2008 14:30:33
2,496
08/22/2008 14:30:33
1
0
Formview problem
I have a form view, in the edit template I have two drop downs. Drop down 1 is explicitly set with a list of allowed values. It is also set to autopostback. Drop down 2 is databound to an objectdatasource, this objectdatasource uses the first dropdown as one of it's parameters. (The idea is that drop down 1 limits what is shown in drop down 2) On the first view of the edit template for an item it works fine. But if drop down 1 has a different item selected it post back and generates an error > Databinding methods such as Eval(), > XPath(), and Bind() can only be used > in the context of a databound control. Here is the drop down list #2: <asp:DropDownList ID="ProjectList" runat="server" SelectedValue='<%# Bind("ConnectToProject_ID","{0:D}") %>' DataSourceID="MasterProjectsDataSource2" DataTextField="Name" DataValueField="ID" AppendDataBoundItems="true"> <asp:ListItem Value="0" Text="{No Master Project}" Selected="True" /> </asp:DropDownList> And here is the MasterProjectDataSource2: <asp:ObjectDataSource ID="MasterProjectsDataSource2" runat="server" SelectMethod="GetMasterProjectList" TypeName="WebWorxData.Project" > <SelectParameters> <asp:ControlParameter ControlID="RPMTypeList" Name="RPMType_ID" PropertyName="SelectedValue" Type="Int32" /> </SelectParameters> </asp:ObjectDataSource> Any help on how to get this to work would be greatly appriciated.
asp.net
formview
null
null
null
null
open
Formview problem === I have a form view, in the edit template I have two drop downs. Drop down 1 is explicitly set with a list of allowed values. It is also set to autopostback. Drop down 2 is databound to an objectdatasource, this objectdatasource uses the first dropdown as one of it's parameters. (The idea is that drop down 1 limits what is shown in drop down 2) On the first view of the edit template for an item it works fine. But if drop down 1 has a different item selected it post back and generates an error > Databinding methods such as Eval(), > XPath(), and Bind() can only be used > in the context of a databound control. Here is the drop down list #2: <asp:DropDownList ID="ProjectList" runat="server" SelectedValue='<%# Bind("ConnectToProject_ID","{0:D}") %>' DataSourceID="MasterProjectsDataSource2" DataTextField="Name" DataValueField="ID" AppendDataBoundItems="true"> <asp:ListItem Value="0" Text="{No Master Project}" Selected="True" /> </asp:DropDownList> And here is the MasterProjectDataSource2: <asp:ObjectDataSource ID="MasterProjectsDataSource2" runat="server" SelectMethod="GetMasterProjectList" TypeName="WebWorxData.Project" > <SelectParameters> <asp:ControlParameter ControlID="RPMTypeList" Name="RPMType_ID" PropertyName="SelectedValue" Type="Int32" /> </SelectParameters> </asp:ObjectDataSource> Any help on how to get this to work would be greatly appriciated.
0
22,509
08/22/2008 14:33:00
1,212
08/13/2008 13:17:40
73
3
ASP.NET gzip compression corrupting CSS
I have an ASP.NET webforms application (3.5 SP1) that I'm working on, and attempting to enable gzip fpr HTML and CSS that comes down the pipe. I'm using [this implementation][1] (and tried a few others that hook into Application_BeginRequest), and it seems to be corrupting the external CSS file that the pages use, but intermittently...suddenly all styles will disappear on a page refresh, stay that way for awhile, and then suddenly start working again. Both IE7 and FF3 exhibit this behavior. When viewing the CSS using the web developer toolbar, it returns jibberish. The cache-control header is coming through as "private," but I don't know enough to figure out if that's a contributing factor or not. Also, this is running on the ASP.NET Development Server. Maybe it'd be fine with IIS, but I'm developing on XP and it'd be IIS5. [1]: http://www.stardeveloper.com/articles/display.html?article=2007110401&page=1
asp.net
compression
gzip
null
null
null
open
ASP.NET gzip compression corrupting CSS === I have an ASP.NET webforms application (3.5 SP1) that I'm working on, and attempting to enable gzip fpr HTML and CSS that comes down the pipe. I'm using [this implementation][1] (and tried a few others that hook into Application_BeginRequest), and it seems to be corrupting the external CSS file that the pages use, but intermittently...suddenly all styles will disappear on a page refresh, stay that way for awhile, and then suddenly start working again. Both IE7 and FF3 exhibit this behavior. When viewing the CSS using the web developer toolbar, it returns jibberish. The cache-control header is coming through as "private," but I don't know enough to figure out if that's a contributing factor or not. Also, this is running on the ASP.NET Development Server. Maybe it'd be fine with IIS, but I'm developing on XP and it'd be IIS5. [1]: http://www.stardeveloper.com/articles/display.html?article=2007110401&page=1
0
22,514
08/22/2008 14:34:40
572
08/06/2008 20:56:54
1,139
98
How much should a "software guy" (or "software gal") know about hardware?
Aside from the software developers working on embedded systems and hardware modeling or any other job that deals with software for or on hardware, how much should a software engineer know about the underlying hardware that they might be developing for? Should it be treated as a black box that just works or should there be a very strong working knowledge of the hardware systems? EDIT: This question was inspired by [this post][1]. [1]: http://stackoverflow.com/questions/22088/why-do-the-others-think-you-can-fix-their-computer
hardware
education
knowledge
null
null
11/02/2011 18:39:38
not constructive
How much should a "software guy" (or "software gal") know about hardware? === Aside from the software developers working on embedded systems and hardware modeling or any other job that deals with software for or on hardware, how much should a software engineer know about the underlying hardware that they might be developing for? Should it be treated as a black box that just works or should there be a very strong working knowledge of the hardware systems? EDIT: This question was inspired by [this post][1]. [1]: http://stackoverflow.com/questions/22088/why-do-the-others-think-you-can-fix-their-computer
4
22,519
08/22/2008 14:38:15
2,385
08/22/2008 00:18:38
8
1
How do I secure a folder used to let users upload files?
I have a folder in my web server used for the user to upload photos. I don't want to config the folder with Everyone Write permissions because I know that a hacker could put stuff in it, and even if the folder don't have execute permission, the hacker could save big stuff in it, filling the hard drive. I'm using ASP classic and IIS6 on Windows 2003 Server
iis
windows-server-2003
classicasp
null
null
null
open
How do I secure a folder used to let users upload files? === I have a folder in my web server used for the user to upload photos. I don't want to config the folder with Everyone Write permissions because I know that a hacker could put stuff in it, and even if the folder don't have execute permission, the hacker could save big stuff in it, filling the hard drive. I'm using ASP classic and IIS6 on Windows 2003 Server
0
22,524
08/22/2008 14:39:14
2,495
08/22/2008 14:30:23
1
0
execute shortcuts like programs in powershell
Example: You have a shortcut <code>s</code> to <code>SomeProgram</code> in the current directory. In <code>cmd.exe</code>, you can type <code>s</code> and it will launch the program. In PowerShell, typing <code>s</code> gives: > <code>The term 's' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.</code> If you type <code>s.lnk</code> or <code>SomeProgram</code>, it runs the program just fine. How can I configure PowerShell to execute shortcuts just like programs?
powershell
null
null
null
null
null
open
execute shortcuts like programs in powershell === Example: You have a shortcut <code>s</code> to <code>SomeProgram</code> in the current directory. In <code>cmd.exe</code>, you can type <code>s</code> and it will launch the program. In PowerShell, typing <code>s</code> gives: > <code>The term 's' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.</code> If you type <code>s.lnk</code> or <code>SomeProgram</code>, it runs the program just fine. How can I configure PowerShell to execute shortcuts just like programs?
0
22,528
08/22/2008 14:41:20
2,490
08/22/2008 13:52:54
1
1
PHP includes vs OOP
I would like to have a reference for the pros and cons of using include files vs objects(classes) when developing PHP applications. I know I would benefit from having one place to go for this answer...I have a few opinions of my own but I look forward to hearing others. A Simple Example: Certain pages on my site are only accessible to logged in users. I have two options for implementation (there are others but let's limit it to these two) 1. Create an authenticate.php file and include it on every page. It holds the logic for authentication. 2. Create a user object, which has an authenticate function, reference the object for authentication on every page.
php
codingstandards
null
null
null
null
open
PHP includes vs OOP === I would like to have a reference for the pros and cons of using include files vs objects(classes) when developing PHP applications. I know I would benefit from having one place to go for this answer...I have a few opinions of my own but I look forward to hearing others. A Simple Example: Certain pages on my site are only accessible to logged in users. I have two options for implementation (there are others but let's limit it to these two) 1. Create an authenticate.php file and include it on every page. It holds the logic for authentication. 2. Create a user object, which has an authenticate function, reference the object for authentication on every page.
0
10,400,782
05/01/2012 16:23:47
1,177,788
01/30/2012 10:00:04
24
0
Getting error in manage categories - not found for attribute "navigation_column"
After tried install one extension and tried uninstall, deleted all their files (extension) - we getting now errors when trying to go in admin > manage categories: Source model "gomage_navigation/adminhtml_system_config_source_category_column" not found for attribute "navigation_column" Trace: #0 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php(387): Mage::exception('Mage_Eav', 'Source model "g...') #1 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(201): Mage_Eav_Model_Entity_Attribute_Abstract->getSource() #2 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Attributes.php(113): Mage_Adminhtml_Block_Widget_Form->_setFieldset(Array, Object(Varien_Data_Form_Element_Fieldset)) #3 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(144): Mage_Adminhtml_Block_Catalog_Category_Tab_Attributes->_prepareForm() #4 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Block/Abstract.php(862): Mage_Adminhtml_Block_Widget_Form->_beforeToHtml() #5 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tabs.php(140): Mage_Core_Block_Abstract->toHtml() #6 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Block/Abstract.php(238): Mage_Adminhtml_Block_Catalog_Category_Tabs->_prepareLayout() #7 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Model/Layout.php(430): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout)) #8 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Edit/Form.php(55): Mage_Core_Model_Layout->createBlock('adminhtml/catal...', 'tabs') #9 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Block/Abstract.php(238): Mage_Adminhtml_Block_Catalog_Category_Edit_Form->_prepareLayout() #10 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Model/Layout.php(430): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout)) #11 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Adminhtml/Block/Widget/Form/Container.php(82): Mage_Core_Model_Layout->createBlock('adminhtml/catal...') #12 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Block/Abstract.php(238): Mage_Adminhtml_Block_Widget_Form_Container->_prepareLayout() #13 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Model/Layout.php(430): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout)) #14 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Model/Layout.php(446): Mage_Core_Model_Layout->createBlock('adminhtml/catal...', 'category.edit') #15 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Model/Layout.php(238): Mage_Core_Model_Layout->addBlock('adminhtml/catal...', 'category.edit') #16 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Model/Layout.php(204): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element)) #17 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Model/Layout.php(209): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element)) #18 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(345): Mage_Core_Model_Layout->generateBlocks() #19 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(270): Mage_Core_Controller_Varien_Action->generateLayoutBlocks() #20 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Adminhtml/Controller/Action.php(263): Mage_Core_Controller_Varien_Action->loadLayout(NULL, true, true) #21 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Adminhtml/controllers/Catalog/CategoryController.php(191): Mage_Adminhtml_Controller_Action->loadLayout() #22 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(420): Mage_Adminhtml_Catalog_CategoryController->editAction() #23 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('edit') #24 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) #25 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->dispatch() #26 /home/vinylshop/domains/vinylshop.lt/public_html/app/Mage.php(640): Mage_Core_Model_App->run(Array) #27 /home/vinylshop/domains/vinylshop.lt/public_html/index.php(80): Mage::run('', 'store') #28 {main}
magento
null
null
null
null
null
open
Getting error in manage categories - not found for attribute "navigation_column" === After tried install one extension and tried uninstall, deleted all their files (extension) - we getting now errors when trying to go in admin > manage categories: Source model "gomage_navigation/adminhtml_system_config_source_category_column" not found for attribute "navigation_column" Trace: #0 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php(387): Mage::exception('Mage_Eav', 'Source model "g...') #1 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(201): Mage_Eav_Model_Entity_Attribute_Abstract->getSource() #2 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Attributes.php(113): Mage_Adminhtml_Block_Widget_Form->_setFieldset(Array, Object(Varien_Data_Form_Element_Fieldset)) #3 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(144): Mage_Adminhtml_Block_Catalog_Category_Tab_Attributes->_prepareForm() #4 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Block/Abstract.php(862): Mage_Adminhtml_Block_Widget_Form->_beforeToHtml() #5 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tabs.php(140): Mage_Core_Block_Abstract->toHtml() #6 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Block/Abstract.php(238): Mage_Adminhtml_Block_Catalog_Category_Tabs->_prepareLayout() #7 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Model/Layout.php(430): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout)) #8 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Edit/Form.php(55): Mage_Core_Model_Layout->createBlock('adminhtml/catal...', 'tabs') #9 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Block/Abstract.php(238): Mage_Adminhtml_Block_Catalog_Category_Edit_Form->_prepareLayout() #10 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Model/Layout.php(430): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout)) #11 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Adminhtml/Block/Widget/Form/Container.php(82): Mage_Core_Model_Layout->createBlock('adminhtml/catal...') #12 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Block/Abstract.php(238): Mage_Adminhtml_Block_Widget_Form_Container->_prepareLayout() #13 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Model/Layout.php(430): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout)) #14 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Model/Layout.php(446): Mage_Core_Model_Layout->createBlock('adminhtml/catal...', 'category.edit') #15 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Model/Layout.php(238): Mage_Core_Model_Layout->addBlock('adminhtml/catal...', 'category.edit') #16 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Model/Layout.php(204): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element)) #17 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Model/Layout.php(209): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element)) #18 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(345): Mage_Core_Model_Layout->generateBlocks() #19 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(270): Mage_Core_Controller_Varien_Action->generateLayoutBlocks() #20 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Adminhtml/Controller/Action.php(263): Mage_Core_Controller_Varien_Action->loadLayout(NULL, true, true) #21 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Adminhtml/controllers/Catalog/CategoryController.php(191): Mage_Adminhtml_Controller_Action->loadLayout() #22 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(420): Mage_Adminhtml_Catalog_CategoryController->editAction() #23 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('edit') #24 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) #25 /home/vinylshop/domains/vinylshop.lt/public_html/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->dispatch() #26 /home/vinylshop/domains/vinylshop.lt/public_html/app/Mage.php(640): Mage_Core_Model_App->run(Array) #27 /home/vinylshop/domains/vinylshop.lt/public_html/index.php(80): Mage::run('', 'store') #28 {main}
0
10,400,778
05/01/2012 16:23:22
659,835
03/15/2011 01:44:29
60
3
Is it possible to set .ToString("C") with a minimum number
So I am curious if its possible for me to use the .ToString("C") method to generate a currency value off of my number, but have it display the value combined with a minimum value. An example, lets say that my number would never ever go above $1,000.00. However, the values that are usually generated are below like this, $0,487.00. I know your probably thinking why would you want to do that. In this situation I don't want the label size to increase or decrease based on the content. Also, I want the numbers to be substituted with 0's if they are not filled in by the actual dollar amount. Any suggestions?
c#
string-formatting
currency
null
null
null
open
Is it possible to set .ToString("C") with a minimum number === So I am curious if its possible for me to use the .ToString("C") method to generate a currency value off of my number, but have it display the value combined with a minimum value. An example, lets say that my number would never ever go above $1,000.00. However, the values that are usually generated are below like this, $0,487.00. I know your probably thinking why would you want to do that. In this situation I don't want the label size to increase or decrease based on the content. Also, I want the numbers to be substituted with 0's if they are not filled in by the actual dollar amount. Any suggestions?
0
10,400,779
05/01/2012 16:23:29
1,136,542
01/07/2012 23:41:32
82
0
Compile error concerning variables (scope?) in JSP
Consider this example: <% int testNumber = 1; %> //Some HTML goes here <%=testNumber%> I get compile error: testNumber cannot be resolved to a variable Can someone explain what is going on?
java
jsp
null
null
null
null
open
Compile error concerning variables (scope?) in JSP === Consider this example: <% int testNumber = 1; %> //Some HTML goes here <%=testNumber%> I get compile error: testNumber cannot be resolved to a variable Can someone explain what is going on?
0
10,400,791
05/01/2012 16:24:23
364,516
06/11/2010 12:16:41
24
1
Flex varargs parameters
I've seen plenty of examples of how to retrieve and pass varargs method parameters in Flex. For instance, we want to pass varargs parameters from a to be: private function call_a():void { a("Hello", "Goodbye"); } private function a(... args:*):void { trace("a-args: " + format(args)); b(args); } private function b(... args:*):void { trace("b-args: " + format(args)); } // output arrays in readable format private static function format(arg:Object):String { var s:String = ""; if (arg is Array) { var tmp:Array = new Array(); for each (var a:Object in arg as Array) { tmp.push(format(a)); } s += "[ " + tmp + " ]"; } else { s += arg.toString(); } return s; } The output of which is: a-args: [ Hello,Goodbye ] b-args: [ [ Hello,Goodbye ] ] The args passed to b are wrapped in an array. To get around this we use apply within our definition of a: protected function a(... args:*):void { trace("a-args: " + format(args)); b.apply(null, args); } The output of which is: a-args: [ Hello,Goodbye ] b-args: [ Hello,Goodbye ] Sorted. My question is how do we apply the above methodology when passing a varargs parameter to a constructor? I don't know how to call the apply method for a constructor...
flex
varargs
null
null
null
null
open
Flex varargs parameters === I've seen plenty of examples of how to retrieve and pass varargs method parameters in Flex. For instance, we want to pass varargs parameters from a to be: private function call_a():void { a("Hello", "Goodbye"); } private function a(... args:*):void { trace("a-args: " + format(args)); b(args); } private function b(... args:*):void { trace("b-args: " + format(args)); } // output arrays in readable format private static function format(arg:Object):String { var s:String = ""; if (arg is Array) { var tmp:Array = new Array(); for each (var a:Object in arg as Array) { tmp.push(format(a)); } s += "[ " + tmp + " ]"; } else { s += arg.toString(); } return s; } The output of which is: a-args: [ Hello,Goodbye ] b-args: [ [ Hello,Goodbye ] ] The args passed to b are wrapped in an array. To get around this we use apply within our definition of a: protected function a(... args:*):void { trace("a-args: " + format(args)); b.apply(null, args); } The output of which is: a-args: [ Hello,Goodbye ] b-args: [ Hello,Goodbye ] Sorted. My question is how do we apply the above methodology when passing a varargs parameter to a constructor? I don't know how to call the apply method for a constructor...
0
10,400,785
05/01/2012 16:23:58
220,761
11/29/2009 06:34:45
1,540
106
jQuery delegate click function speed + crash issue in iPad
In iPad ios 5.1, https://s140452.gridserver.com/property/4123 (in landscape view) Clicking the "show details" button takes about 15 seconds to execute on iPad. Sometimes it crashes mobile safari. It happens instantly in chrome or firefox. Am I doing something wrong? $j('#locations').delegate('.sidebar-expand', 'click', function(){ var $me = $j(this), $locations = $j('#locations'); if($locations.hasClass('expand')) { $locations.removeClass('expand'); } else { $locations.addClass('expand'); } });
jquery
ipad
null
null
null
null
open
jQuery delegate click function speed + crash issue in iPad === In iPad ios 5.1, https://s140452.gridserver.com/property/4123 (in landscape view) Clicking the "show details" button takes about 15 seconds to execute on iPad. Sometimes it crashes mobile safari. It happens instantly in chrome or firefox. Am I doing something wrong? $j('#locations').delegate('.sidebar-expand', 'click', function(){ var $me = $j(this), $locations = $j('#locations'); if($locations.hasClass('expand')) { $locations.removeClass('expand'); } else { $locations.addClass('expand'); } });
0
10,400,795
05/01/2012 16:24:52
1,368,112
05/01/2012 16:01:12
1
0
VBA Internet Explorer Automation - How to Select "Open" When Downloading a File
This is my first question ever here on stackoverflow! I've been searching for a solution to this problem for a while and haven't found any help. I may just be using the wrong keywords in my searches, but so far I've had no luck. Here's the question: **In VBA, how can I select the "Open" option from the file download dialog in Internet Explorer?** Just for extra clarification, I'm talking about the yellow-orange bar that pops up across the bottom of the screen in IE9 when a file is downloaded. I'm doing some VBA automation to download hundreds of PDFs from the web using Internet Explorer, but there is an intermediate step where a .fdf file has to be opened before I get to the actual PDF. So I first need to select the "Open" option so that I can move on to the next step of the automation. Like I said earlier, I've done a lot of searching and had no luck so far. I've tried using SendKeys in hopes that hitting Enter would work, and that was a last ditch effort that didn't work. Thanks in advance for the help!
vba
automation
internet-explorer-9
file-download
null
null
open
VBA Internet Explorer Automation - How to Select "Open" When Downloading a File === This is my first question ever here on stackoverflow! I've been searching for a solution to this problem for a while and haven't found any help. I may just be using the wrong keywords in my searches, but so far I've had no luck. Here's the question: **In VBA, how can I select the "Open" option from the file download dialog in Internet Explorer?** Just for extra clarification, I'm talking about the yellow-orange bar that pops up across the bottom of the screen in IE9 when a file is downloaded. I'm doing some VBA automation to download hundreds of PDFs from the web using Internet Explorer, but there is an intermediate step where a .fdf file has to be opened before I get to the actual PDF. So I first need to select the "Open" option so that I can move on to the next step of the automation. Like I said earlier, I've done a lot of searching and had no luck so far. I've tried using SendKeys in hopes that hitting Enter would work, and that was a last ditch effort that didn't work. Thanks in advance for the help!
0
10,400,796
05/01/2012 16:25:00
1,147,879
01/13/2012 14:34:39
73
4
Is it possible to configure the Output .dbschema of a Database VS
I have a Visual Studio Database project 2010 which output a .dbschema file. I would like the name of the database to change based on the Configuration. Is that possible ? Else I'll have to write a command that manually change the name and put that in the post events and thats a hack.
database
visual-studio-2010
database-project
null
null
null
open
Is it possible to configure the Output .dbschema of a Database VS === I have a Visual Studio Database project 2010 which output a .dbschema file. I would like the name of the database to change based on the Configuration. Is that possible ? Else I'll have to write a command that manually change the name and put that in the post events and thats a hack.
0
10,400,801
05/01/2012 16:25:16
726,922
04/27/2011 09:26:25
101
0
TeX-run-Tex wrong type argument in emacs
I use such a function for compiling LaTeX in emacs (AUCTeX) taken from [here][1] (accepted answer by Jouni K. Seppänen): <!-- language: lang-lisp --> (defun run-latexmkk () (interactive) (let ((TeX-save-query nil) (TeX-process-asynchronous nil) (master-file (TeX-master-file))) (TeX-save-document "") (TeX-run-TeX "latexmk" "latexmk" master-file) (if (plist-get TeX-error-report-switches (intern master-file)) (TeX-next-error t) (minibuffer-message "latexmk done")))) It works really well but today I observed some problem when I compile a multifile document. I have some `master.tex` and `\input{chap1.tex}` in it. When I use `run-latexmk` while editing `chap1.tex` (master file is properly set in chap1.tex) then I get a message TeX-run-TeX: Wrong type argument: stringp, nil. Output pdf/dvi file seems to be good but I am curious why I get this message. I tried changing the line `(TeX-run-TeX "latexmk" "latexmk" master-file)` in many ways but without success. Of course when I compile singlefile document then all works good without any messages. What should I change to get rid of this warning? [1]: http://stackoverflow.com/a/7811232/726922
emacs
latex
elisp
tex
auctex
null
open
TeX-run-Tex wrong type argument in emacs === I use such a function for compiling LaTeX in emacs (AUCTeX) taken from [here][1] (accepted answer by Jouni K. Seppänen): <!-- language: lang-lisp --> (defun run-latexmkk () (interactive) (let ((TeX-save-query nil) (TeX-process-asynchronous nil) (master-file (TeX-master-file))) (TeX-save-document "") (TeX-run-TeX "latexmk" "latexmk" master-file) (if (plist-get TeX-error-report-switches (intern master-file)) (TeX-next-error t) (minibuffer-message "latexmk done")))) It works really well but today I observed some problem when I compile a multifile document. I have some `master.tex` and `\input{chap1.tex}` in it. When I use `run-latexmk` while editing `chap1.tex` (master file is properly set in chap1.tex) then I get a message TeX-run-TeX: Wrong type argument: stringp, nil. Output pdf/dvi file seems to be good but I am curious why I get this message. I tried changing the line `(TeX-run-TeX "latexmk" "latexmk" master-file)` in many ways but without success. Of course when I compile singlefile document then all works good without any messages. What should I change to get rid of this warning? [1]: http://stackoverflow.com/a/7811232/726922
0
10,400,806
05/01/2012 16:25:53
1,278,561
03/19/2012 12:41:35
24
0
Jquery Mobile code for Flickering Navigation with Phone gap
I believe this post is the resolution to my trouble. http://stackoverflow.com/questions/5953753/flickering-when-navigating-between-pages Specifically: $(document).bind("mobileinit", function() { if (navigator.userAgent.indexOf("Android") != -1) { $.mobile.defaultPageTransition = 'none'; $.mobile.defaultDialogTransition = 'none'; } }); My problem is me! I am coming from the C# world and pretty much clueless as to Jquery mobile. I would like to add this snippet but not sure where...if it matters. I think that I would add it to jquery.mobile-1.1.0.rc.1.js but then I don't know where in there....if that's the right file. TIA JB
jquery-mobile
phonegap
null
null
null
null
open
Jquery Mobile code for Flickering Navigation with Phone gap === I believe this post is the resolution to my trouble. http://stackoverflow.com/questions/5953753/flickering-when-navigating-between-pages Specifically: $(document).bind("mobileinit", function() { if (navigator.userAgent.indexOf("Android") != -1) { $.mobile.defaultPageTransition = 'none'; $.mobile.defaultDialogTransition = 'none'; } }); My problem is me! I am coming from the C# world and pretty much clueless as to Jquery mobile. I would like to add this snippet but not sure where...if it matters. I think that I would add it to jquery.mobile-1.1.0.rc.1.js but then I don't know where in there....if that's the right file. TIA JB
0
10,400,807
05/01/2012 16:25:55
1,171,647
01/26/2012 16:01:51
1
0
N2 CMS Style Sheet Changes - News Items
We are using the N2 CMS software for our Intranet pretty much out of the box with no customizations. The goal for right now is to allow our Graphics personnel to make changes to the content as well as the styles. I was able to change the font size and color of the News Items list by changing the anchor tag CSS settings in the App_Themes directory. However, I cannot find out where to change the padding between items in the News Item lists. Is there a CSS setting i can change to make this happen? Thanks, Anton
css
content-management-system
n2
null
null
null
open
N2 CMS Style Sheet Changes - News Items === We are using the N2 CMS software for our Intranet pretty much out of the box with no customizations. The goal for right now is to allow our Graphics personnel to make changes to the content as well as the styles. I was able to change the font size and color of the News Items list by changing the anchor tag CSS settings in the App_Themes directory. However, I cannot find out where to change the padding between items in the News Item lists. Is there a CSS setting i can change to make this happen? Thanks, Anton
0
10,400,808
05/01/2012 16:26:06
1,182,505
02/01/2012 10:53:44
11
0
Vicidial Installation
I am having problems installing the Vicidial software on a server. I get far enough through the installation untill I am required to input 'os-install' on the vicibox bash line. (I am obviously required to login before hand) I have tried the zypper commands and this is my error message No such client module live-installer The search path follows. It does not include the current directory. /y2update/clients /root.yast2/clients /usr/share/YaST2/clients It seems it cannot download the files from the vicidial site to complete the installation. I am new to this and I am pushing for time. Thanks in advance. Cheers Cein
linux
suse
null
null
null
null
open
Vicidial Installation === I am having problems installing the Vicidial software on a server. I get far enough through the installation untill I am required to input 'os-install' on the vicibox bash line. (I am obviously required to login before hand) I have tried the zypper commands and this is my error message No such client module live-installer The search path follows. It does not include the current directory. /y2update/clients /root.yast2/clients /usr/share/YaST2/clients It seems it cannot download the files from the vicidial site to complete the installation. I am new to this and I am pushing for time. Thanks in advance. Cheers Cein
0
10,400,809
05/01/2012 16:26:13
1,367,304
05/01/2012 06:50:13
20
0
What is the advantage of JCXZ?
I have the following code, Objective: ---------- Display a row of N `*` symbols Code: ----- MOV CX, N MOV AH, 2 MOV DL, '*' JCXZ END_P BACK: INT 21H LOOP BACK END_P: The above example was shown to tell how to use `JCXZ` but I don't get it. Even if I remove `JCXZ`, it would do the same work. Please help me out. Thanks
dos
8086
assembly
null
null
null
open
What is the advantage of JCXZ? === I have the following code, Objective: ---------- Display a row of N `*` symbols Code: ----- MOV CX, N MOV AH, 2 MOV DL, '*' JCXZ END_P BACK: INT 21H LOOP BACK END_P: The above example was shown to tell how to use `JCXZ` but I don't get it. Even if I remove `JCXZ`, it would do the same work. Please help me out. Thanks
0
10,400,296
05/01/2012 15:50:59
57,159
01/20/2009 16:21:54
13,121
488
How do to MVVM for vector graphics?
I wish to display some vector graphic and let the user select items. For augment sake assume I am displaying an office plan that contains - Walls, - Corners, - Doors, - Windows, - Desks I wish to be able to write tests against the view model to check both the “logical” and “physical” layout. E.g. I wish to be able to write a test that confirm the walls meats the corner as well as tests that confirm how they are displayed. I also need to test commands like “insert door into the selected wall” Where do I start….
wpf
silverlight
design-patterns
mvvm
null
05/02/2012 15:11:52
not a real question
How do to MVVM for vector graphics? === I wish to display some vector graphic and let the user select items. For augment sake assume I am displaying an office plan that contains - Walls, - Corners, - Doors, - Windows, - Desks I wish to be able to write tests against the view model to check both the “logical” and “physical” layout. E.g. I wish to be able to write a test that confirm the walls meats the corner as well as tests that confirm how they are displayed. I also need to test commands like “insert door into the selected wall” Where do I start….
1
22,538
08/22/2008 14:46:07
1,842
08/18/2008 20:40:25
31
1
What's a good 3rd party ASP.NET menu control replacement?
The ASP menu control emits tables instead of div's, and I don't want to bother learning control adapters. I want it to emit CSS-friendly code, and I need to be able to style the menu items individually. Nice transition effects are a plus, but at this point I'd settle for something straightforward and reasonably priced.
asp.net
css
controls
null
null
null
open
What's a good 3rd party ASP.NET menu control replacement? === The ASP menu control emits tables instead of div's, and I don't want to bother learning control adapters. I want it to emit CSS-friendly code, and I need to be able to style the menu items individually. Nice transition effects are a plus, but at this point I'd settle for something straightforward and reasonably priced.
0
22,552
08/22/2008 14:49:36
305
08/04/2008 14:04:19
498
35
Passing a commented, multi-line (freespace) regex to preg_match
I have a regex that is going to end up being a bit long and it'd make it much easier to read to have it across multiple lines. I tried this but it just barfs. preg_match(' ^J[0-9]{7}:\s+ (.*?) #Extract the Transaction Start Date msg \s+J[0-9]{7}:\s+Project\sname:\s+ (.*?) #Extract the Project Name \s+J[0-9]{7}:\s+Job\sname:\s+ (.*?) #Extract the Job Name \s+J[0-9]{7}:\s+ ', $this->getResultVar('FullMessage'), $atmp); Is there are way to pass a regex in the above form to preg_match?
php
regex
null
null
null
null
open
Passing a commented, multi-line (freespace) regex to preg_match === I have a regex that is going to end up being a bit long and it'd make it much easier to read to have it across multiple lines. I tried this but it just barfs. preg_match(' ^J[0-9]{7}:\s+ (.*?) #Extract the Transaction Start Date msg \s+J[0-9]{7}:\s+Project\sname:\s+ (.*?) #Extract the Project Name \s+J[0-9]{7}:\s+Job\sname:\s+ (.*?) #Extract the Job Name \s+J[0-9]{7}:\s+ ', $this->getResultVar('FullMessage'), $atmp); Is there are way to pass a regex in the above form to preg_match?
0
22,570
08/22/2008 14:53:47
1,219
08/13/2008 13:44:47
1,059
68
What's a good way to check if two datetimes are on the same calendar day in TSQL?
Here is the issue I am having: I have a large query that needs to compare datetimes in the where clause to see if two dates are on the same day. My current solution, which sucks, is to send the datetimes into a UDF to convert them to midnight of the same day, and then check those dates for equality. When it comes to the query plan, this is a disaster, as are almost all UDFs in joins or where clauses. This is one of the only places in my application that I haven't been able to root out the functions and give the query optimizer something it can actually use to locate the best index. In this case, merging the function code back into the query seems impractical. I think I am missing something simple here. Here's the function for reference. if not exists (select * from dbo.sysobjects where id = object_id(N'dbo.f_MakeDate') and type in (N'FN', N'IF', N'TF', N'FS', N'FT')) exec('create function dbo.f_MakeDate() returns int as begin declare @retval int return @retval end') go alter function dbo.f_MakeDate ( @Day datetime, @Hour int, @Minute int ) returns datetime as /* Creates a datetime using the year-month-day portion of @Day, and the @Hour and @Minute provided */ begin declare @retval datetime set @retval = cast( cast(datepart(m, @Day) as varchar(2)) + '/' + cast(datepart(d, @Day) as varchar(2)) + '/' + cast(datepart(yyyy, @Day) as varchar(4)) + ' ' + cast(@Hour as varchar(2)) + ':' + cast(@Minute as varchar(2)) as datetime) return @retval end go To complicate matters, I am joining on time zone tables to check the date against the local time, which could be different for every row: where dbo.f_MakeDate(dateadd(hh, tz.Offset + case when ds.LocalTimeZone is not null then 1 else 0 end, t.TheDateINeedToCheck), 0, 0) = @activityDateMidnight
mssql
tsql
sql
udf
null
null
open
What's a good way to check if two datetimes are on the same calendar day in TSQL? === Here is the issue I am having: I have a large query that needs to compare datetimes in the where clause to see if two dates are on the same day. My current solution, which sucks, is to send the datetimes into a UDF to convert them to midnight of the same day, and then check those dates for equality. When it comes to the query plan, this is a disaster, as are almost all UDFs in joins or where clauses. This is one of the only places in my application that I haven't been able to root out the functions and give the query optimizer something it can actually use to locate the best index. In this case, merging the function code back into the query seems impractical. I think I am missing something simple here. Here's the function for reference. if not exists (select * from dbo.sysobjects where id = object_id(N'dbo.f_MakeDate') and type in (N'FN', N'IF', N'TF', N'FS', N'FT')) exec('create function dbo.f_MakeDate() returns int as begin declare @retval int return @retval end') go alter function dbo.f_MakeDate ( @Day datetime, @Hour int, @Minute int ) returns datetime as /* Creates a datetime using the year-month-day portion of @Day, and the @Hour and @Minute provided */ begin declare @retval datetime set @retval = cast( cast(datepart(m, @Day) as varchar(2)) + '/' + cast(datepart(d, @Day) as varchar(2)) + '/' + cast(datepart(yyyy, @Day) as varchar(4)) + ' ' + cast(@Hour as varchar(2)) + ':' + cast(@Minute as varchar(2)) as datetime) return @retval end go To complicate matters, I am joining on time zone tables to check the date against the local time, which could be different for every row: where dbo.f_MakeDate(dateadd(hh, tz.Offset + case when ds.LocalTimeZone is not null then 1 else 0 end, t.TheDateINeedToCheck), 0, 0) = @activityDateMidnight
0
22,577
08/22/2008 14:55:59
1,154
08/12/2008 23:39:07
288
36
Search Plugin for Safari
Anyone know is we can create a search plug in for Safari. Like [this post][1] [1]: http://stackoverflow.com/questions/20830/firefox-users-here-is-your-stackoverflow-search-plugin
safari
search
null
null
null
null
open
Search Plugin for Safari === Anyone know is we can create a search plug in for Safari. Like [this post][1] [1]: http://stackoverflow.com/questions/20830/firefox-users-here-is-your-stackoverflow-search-plugin
0
22,590
08/22/2008 15:02:06
1,432
08/15/2008 15:33:54
581
21
How do I cluster an upload folder with ASP.Net?
We have a situation where users are allowed to upload content, and then separately make some changes, then submit a form based on those changes. This works fine in a single-server, non-failover environment, however we would like some sort of solution for sharing the files between servers that supports failover. Has anyone run into this in the past? And what kind of solutions were you able to develop? Obviously persisting to the database is one option, but we'd prefer to avoid that.
asp.net
iis6
clustering
failover
server2003
null
open
How do I cluster an upload folder with ASP.Net? === We have a situation where users are allowed to upload content, and then separately make some changes, then submit a form based on those changes. This works fine in a single-server, non-failover environment, however we would like some sort of solution for sharing the files between servers that supports failover. Has anyone run into this in the past? And what kind of solutions were you able to develop? Obviously persisting to the database is one option, but we'd prefer to avoid that.
0
22,607
08/22/2008 15:08:50
1,367
08/14/2008 18:33:20
321
22
Virtual Mac?
I’m thinking about trying some development for the iPhone, is it possible to install Leopard inside VMWare? I already have a pretty high spec PC with a comfy setup that I’d like to use, or do I need to buy a real Mac?
osx
iphone
virtualization
null
null
null
open
Virtual Mac? === I’m thinking about trying some development for the iPhone, is it possible to install Leopard inside VMWare? I already have a pretty high spec PC with a comfy setup that I’d like to use, or do I need to buy a real Mac?
0
22,617
08/22/2008 15:10:46
2,504
08/22/2008 15:10:26
1
0
Format numbers to strings in Python
I need to find out how to format numbers as strings. My code is here: return str(hours)+":"+str(minutes)+":"+str(seconds)+" "+ampm Hours and minutes are integers, and seconds is a float. the str() function will convert all of these numbers to the tenths (0.1) place. So instead of my string outputting "5:30:59.07 pm", it would display something like "5.0:30.0:59.1 pm". Bottom line, what library / function do I need to do this for me?
python
null
null
null
null
null
open
Format numbers to strings in Python === I need to find out how to format numbers as strings. My code is here: return str(hours)+":"+str(minutes)+":"+str(seconds)+" "+ampm Hours and minutes are integers, and seconds is a float. the str() function will convert all of these numbers to the tenths (0.1) place. So instead of my string outputting "5:30:59.07 pm", it would display something like "5.0:30.0:59.1 pm". Bottom line, what library / function do I need to do this for me?
0
22,623
08/22/2008 15:12:15
357
08/05/2008 01:29:23
945
60
.NET - Throwing Exceptions best practices
What are the best practices to consider when catching exceptions, and re-throwing them. I want to make sure that the Exception object's InnerException and stack trace are preserved. Is there a difference between the following code blocks in how they handle this? try { //some code } catch (Exception ex) { throw ex; } //...... try { //some code } catch { throw; }
.net
error-handling
null
null
null
null
open
.NET - Throwing Exceptions best practices === What are the best practices to consider when catching exceptions, and re-throwing them. I want to make sure that the Exception object's InnerException and stack trace are preserved. Is there a difference between the following code blocks in how they handle this? try { //some code } catch (Exception ex) { throw ex; } //...... try { //some code } catch { throw; }
0
22,674
08/22/2008 15:33:39
184
08/03/2008 05:34:19
649
8
What are the main differences between programming for windows XP and for Vista?
From a desktop application developer point of view, is there any difference between developing for windows XP and developing for windows Vista?
windows
windows-vista
xp
null
null
null
open
What are the main differences between programming for windows XP and for Vista? === From a desktop application developer point of view, is there any difference between developing for windows XP and developing for windows Vista?
0
22,676
08/22/2008 15:34:13
2,109
08/20/2008 12:02:54
83
5
How do I download a file over HTTP using Python?
I have a small utility that I use to download an MP3 from a website on a schedule and then builds/updates a podcast XML file which I've obviously added to iTunes. The text processing that creates/updates the XML file is written in Python. I use wget inside a Windows .bat file to download the actual MP3 however. I would prefer to have the entire utility written in Python though. (It was the project I used to begin learning Python.) I struggled though to find a way to actually down load the file in Python, thus why I resorted to wget. So, how do I download the file using Python?
python
podcast
podcasting
null
null
null
open
How do I download a file over HTTP using Python? === I have a small utility that I use to download an MP3 from a website on a schedule and then builds/updates a podcast XML file which I've obviously added to iTunes. The text processing that creates/updates the XML file is written in Python. I use wget inside a Windows .bat file to download the actual MP3 however. I would prefer to have the entire utility written in Python though. (It was the project I used to begin learning Python.) I struggled though to find a way to actually down load the file in Python, thus why I resorted to wget. So, how do I download the file using Python?
0
22,687
08/22/2008 15:41:08
2,118
08/20/2008 12:54:09
166
4
Alternative SSH Application to Plink
I have recently started having problems with TortoiseCVS, or more specifically with plink, the SSH application that comes with it. The IP address it tries to connect to can not be changed and is stuck with the old CVS repository's IP. Downloading plink from it's home site and calling from the command line still has this problem. TortoiseCVS has the option to choose the SSH application it uses and I was wondering which other alternatives there are that I can use instead?
cvs
ssh
tortoisecvs
plink
null
null
open
Alternative SSH Application to Plink === I have recently started having problems with TortoiseCVS, or more specifically with plink, the SSH application that comes with it. The IP address it tries to connect to can not be changed and is stuck with the old CVS repository's IP. Downloading plink from it's home site and calling from the command line still has this problem. TortoiseCVS has the option to choose the SSH application it uses and I was wondering which other alternatives there are that I can use instead?
0
22,694
08/22/2008 15:44:28
1,960
08/19/2008 15:42:31
324
10
Use of 3rd party libraries/components in production
When using 3rd party libraries/components in production projects, are you rigorous about using only released versions of said libraries? When do you consider using a pre-release or beta version of a library (in dev? in production, under certain circumstances)? If you come across a bug or shortcoming of the library and you're already committed to using it, do you apply a patch to the library or create a workaround in your code?
bestpractices
null
null
null
null
null
open
Use of 3rd party libraries/components in production === When using 3rd party libraries/components in production projects, are you rigorous about using only released versions of said libraries? When do you consider using a pre-release or beta version of a library (in dev? in production, under certain circumstances)? If you come across a bug or shortcoming of the library and you're already committed to using it, do you apply a patch to the library or create a workaround in your code?
0
22,697
08/22/2008 15:45:11
2,030
08/19/2008 21:25:22
21
2
What's the best mock framework for Java?
What's the best framework for creating mock objects in Java? Why? What are the pros and cons of each framework?
java
mocking
null
null
null
10/01/2011 12:19:41
not constructive
What's the best mock framework for Java? === What's the best framework for creating mock objects in Java? Why? What are the pros and cons of each framework?
4
22,704
08/22/2008 15:48:44
290
08/04/2008 12:57:50
341
45
How do you tackle web application performance improvement?
The web application in question uses an Oracle database. The main functionality the application delivers is in reporting, where a user can get PDFs of reports at a high level and drill down to lower levels of supporting details. As the number of supporting detail records has grown into the millions, the performance of the system has significantly degraded. For now, the bottleneck seems to be in the logic hitting the DB and the DB performance, not the view/presentation of the data. Partioning, indexing, and running stats are things that have been done on the DB side to try to help improve performance. While they've helped, they haven't solved the issue. Changing the DB model is being explored. The development team is brainstorming different ideas... Any recommended strategies for improving the performance of a data-driven web application? Any personal experience in overcoming hurdles like this in the past?
performance
oracle
web-application
null
null
null
open
How do you tackle web application performance improvement? === The web application in question uses an Oracle database. The main functionality the application delivers is in reporting, where a user can get PDFs of reports at a high level and drill down to lower levels of supporting details. As the number of supporting detail records has grown into the millions, the performance of the system has significantly degraded. For now, the bottleneck seems to be in the logic hitting the DB and the DB performance, not the view/presentation of the data. Partioning, indexing, and running stats are things that have been done on the DB side to try to help improve performance. While they've helped, they haven't solved the issue. Changing the DB model is being explored. The development team is brainstorming different ideas... Any recommended strategies for improving the performance of a data-driven web application? Any personal experience in overcoming hurdles like this in the past?
0
22,708
08/22/2008 15:49:53
940
08/10/2008 19:58:38
195
5
How do I find the Excel column name that corresponds to a given integer?
How would you determine the column name (e.g. "AQ" or "BH") of the nth column in Excel?
excel
algorithm
language-agnostic
null
null
null
open
How do I find the Excel column name that corresponds to a given integer? === How would you determine the column name (e.g. "AQ" or "BH") of the nth column in Excel?
0
22,720
08/22/2008 15:58:13
2,362
08/21/2008 20:46:43
3
1
How to configure a Java Socket to fail-fast on disconnect
I have a listening port on my server that I'm connecting to using a Java class and the Socket interface, i.e. Socket mySocket = new Socket(host,port); I then grab an OutputStream, decorate with a PrintWriter in autoflush mode and I'm laughing - except if the listening port closes. Then I get tcp4 0 0 *.9999 *.* LISTEN tcp 0 0 127.0.0.1.45737 127.0.0.1.9999 CLOSE_WAIT and I can't seem to detect the problem in the program - I've tried using the isConnected() Socket method but it doesn't seem to know that the connection is closed. I want to be aware of the problem the next time I try and write to the Socket so that I can try and reconnect and report the issue. Any advice please? Thanks all
java
socket
networking
exception
null
null
open
How to configure a Java Socket to fail-fast on disconnect === I have a listening port on my server that I'm connecting to using a Java class and the Socket interface, i.e. Socket mySocket = new Socket(host,port); I then grab an OutputStream, decorate with a PrintWriter in autoflush mode and I'm laughing - except if the listening port closes. Then I get tcp4 0 0 *.9999 *.* LISTEN tcp 0 0 127.0.0.1.45737 127.0.0.1.9999 CLOSE_WAIT and I can't seem to detect the problem in the program - I've tried using the isConnected() Socket method but it doesn't seem to know that the connection is closed. I want to be aware of the problem the next time I try and write to the Socket so that I can try and reconnect and report the issue. Any advice please? Thanks all
0
22,732
08/22/2008 16:03:00
636
08/07/2008 12:32:33
283
24
PowerShell - How do I pass string parameters correctly?
Is there documentation or an article on the rules for passing strings into PowerShell functions? I just trying to do some string concatenation/formatting, but it's putting all the parameters into the first placeholder. **Code** function CreateAppPoolScript([string]$AppPoolName, [string]$AppPoolUser, [string]$AppPoolPass) { # Command to create an IIS application pool $AppPoolScript = "cscript adsutil.vbs CREATE ""w3svc/AppPools/$AppPoolName"" IIsApplicationPool`n" $AppPoolScript += "cscript adsutil.vbs SET ""w3svc/AppPools/$AppPoolName/WamUserName"" ""$AppPoolUser""`n" $AppPoolScript += "cscript adsutil.vbs SET ""w3svc/AppPools/$AppPoolName/WamUserPass"" ""$AppPoolPass""`n" $AppPoolScript += "cscript adsutil.vbs SET ""w3svc/AppPools/$AppPoolName/AppPoolIdentityType"" 3" return $AppPoolScript } $s = CreateAppPoolScript("name", "user", "pass") write-host $s **Output** cscript adsutil.vbs CREATE "w3svc/AppPools/name user pass" IIsApplicationPool cscript adsutil.vbs SET "w3svc/AppPools/name user pass/WamUserName" "" cscript adsutil.vbs SET "w3svc/AppPools/name user pass/WamUserPass" "" cscript adsutil.vbs SET "w3svc/AppPools/name user pass/AppPoolIdentityType" 3
string
powershell
parameters
arguments
null
null
open
PowerShell - How do I pass string parameters correctly? === Is there documentation or an article on the rules for passing strings into PowerShell functions? I just trying to do some string concatenation/formatting, but it's putting all the parameters into the first placeholder. **Code** function CreateAppPoolScript([string]$AppPoolName, [string]$AppPoolUser, [string]$AppPoolPass) { # Command to create an IIS application pool $AppPoolScript = "cscript adsutil.vbs CREATE ""w3svc/AppPools/$AppPoolName"" IIsApplicationPool`n" $AppPoolScript += "cscript adsutil.vbs SET ""w3svc/AppPools/$AppPoolName/WamUserName"" ""$AppPoolUser""`n" $AppPoolScript += "cscript adsutil.vbs SET ""w3svc/AppPools/$AppPoolName/WamUserPass"" ""$AppPoolPass""`n" $AppPoolScript += "cscript adsutil.vbs SET ""w3svc/AppPools/$AppPoolName/AppPoolIdentityType"" 3" return $AppPoolScript } $s = CreateAppPoolScript("name", "user", "pass") write-host $s **Output** cscript adsutil.vbs CREATE "w3svc/AppPools/name user pass" IIsApplicationPool cscript adsutil.vbs SET "w3svc/AppPools/name user pass/WamUserName" "" cscript adsutil.vbs SET "w3svc/AppPools/name user pass/WamUserPass" "" cscript adsutil.vbs SET "w3svc/AppPools/name user pass/AppPoolIdentityType" 3
0
22,764
08/22/2008 16:09:50
1,190
08/13/2008 12:15:38
547
47
How does Ruby 1.9 handle character cases in source code?
In Ruby 1.8 and earlier, Foo is a constant (a Class, a Module, or another constant). Whereas foo is a variable. The key difference is as follows: module Foo bar = 7 BAZ = 8 end Foo::BAZ # => 8 Foo::bar # NoMethodError: undefined method 'bar' for Foo:Module That's all well and good, but Ruby 1.9 [allows UTF-8 source code][1]. So is ℃ "uppercase" or "lowecase" as far as this is concerned? What about  or Ɖ Is there a general rule? [1]: http://pragdave.blogs.pragprog.com/pragdave/2008/04/fun-with-ruby-1.html
ruby
utf8
encoding
null
null
null
open
How does Ruby 1.9 handle character cases in source code? === In Ruby 1.8 and earlier, Foo is a constant (a Class, a Module, or another constant). Whereas foo is a variable. The key difference is as follows: module Foo bar = 7 BAZ = 8 end Foo::BAZ # => 8 Foo::bar # NoMethodError: undefined method 'bar' for Foo:Module That's all well and good, but Ruby 1.9 [allows UTF-8 source code][1]. So is ℃ "uppercase" or "lowecase" as far as this is concerned? What about  or Ɖ Is there a general rule? [1]: http://pragdave.blogs.pragprog.com/pragdave/2008/04/fun-with-ruby-1.html
0