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
4,430
08/07/2008 05:48:33
349
08/04/2008 23:02:07
22
0
How to easily consume a web service from PHP
Is there a tool for PHP which can generate code for consuming a web service based on its WSDL? Something comparable to clicking "Add Web Reference" in Visual Studio or the Eclypse plugin which does the same thing for Java.
php
web-service
null
null
null
null
open
How to easily consume a web service from PHP === Is there a tool for PHP which can generate code for consuming a web service based on its WSDL? Something comparable to clicking "Add Web Reference" in Visual Studio or the Eclypse plugin which does the same thing for Java.
0
4,432
08/07/2008 05:49:04
202
08/03/2008 13:02:31
36
3
CSV string handling
Typical way of creating a csv string (psudokode): 1. create a csv container object (like a StringBuilder in C#) 2. Loop through the strings you want to add appending a comma after each one 3. After the loop, remove that last superfluous comma. Code sample: public string ReturnAsCSV(ContactList contactList) { StringBuilder sb = new StringBuilder(); foreach (Contact c in contactList) { sb.Append(c.Name + ","); } sb.Remove(sb.Length - 1, 1); //sb.Replace(",", "", sb.Length - 1, 1) return sb.ToString(); } I feel that there should be an easier / cleaner / more efficient way of removing that last comma. Any ideas?
csv
c#
null
null
null
null
open
CSV string handling === Typical way of creating a csv string (psudokode): 1. create a csv container object (like a StringBuilder in C#) 2. Loop through the strings you want to add appending a comma after each one 3. After the loop, remove that last superfluous comma. Code sample: public string ReturnAsCSV(ContactList contactList) { StringBuilder sb = new StringBuilder(); foreach (Contact c in contactList) { sb.Append(c.Name + ","); } sb.Remove(sb.Length - 1, 1); //sb.Replace(",", "", sb.Length - 1, 1) return sb.ToString(); } I feel that there should be an easier / cleaner / more efficient way of removing that last comma. Any ideas?
0
4,433
08/07/2008 05:49:46
51
08/01/2008 13:31:13
604
37
Vista or XP for Dev Machine
I am about to get a new PC from work, and it will include the option to have either Vista Business as the OS, or a downgrade to XP Pro. Aside from a tiny bit of testing, I have never used Vista, but overall I have heard many more bad reports than good regarding Vista. I don't think that hardware will be an issue (Intel Core Duo T9300, 4GB RAM, 256MB NVIDIA) in terms of performance. I am just uneasy about using Vista for my main dev system given its history, when I have the opportunity to keep on using XP. So is there anyone here who has experience with both Vista and XP as the OS on your dev machine? If you could choose one over the other, which would you go with? I will need to use Visual Studio 2003/2005/2008, SQL Server 2005, Virtual Machines, Office, as well as lots of multi-tasking and multi-tab web browsing. (Note: I am not interested in Microsoft-bashing. If you haven't used Vista but have just heard bad things about it then you have the same level of experience as me and you probably shouldn't be answering the question).
xp
windows-vista
operating-system
microsoft
null
null
open
Vista or XP for Dev Machine === I am about to get a new PC from work, and it will include the option to have either Vista Business as the OS, or a downgrade to XP Pro. Aside from a tiny bit of testing, I have never used Vista, but overall I have heard many more bad reports than good regarding Vista. I don't think that hardware will be an issue (Intel Core Duo T9300, 4GB RAM, 256MB NVIDIA) in terms of performance. I am just uneasy about using Vista for my main dev system given its history, when I have the opportunity to keep on using XP. So is there anyone here who has experience with both Vista and XP as the OS on your dev machine? If you could choose one over the other, which would you go with? I will need to use Visual Studio 2003/2005/2008, SQL Server 2005, Virtual Machines, Office, as well as lots of multi-tasking and multi-tab web browsing. (Note: I am not interested in Microsoft-bashing. If you haven't used Vista but have just heard bad things about it then you have the same level of experience as me and you probably shouldn't be answering the question).
0
4,434
08/07/2008 05:50:57
95
08/01/2008 18:28:24
133
16
Can I configure Visual Studio NOT to change StartUp Project everytime I open a file from one of the projects?
Let's say that there is a solution that contains two projects (Project1 and Project2). Project1 is set as a StartUp Project (its name is displayed in a bold font). I double-click some file in Project2 to open it. The file opens, but something else happens too - Project2 gets set as a StartUp Project. I tried to find an option in configuration to change it, but I found none. Can this feature (though it's more like a bug to me) be disabled?
.net
ide
visual-studio
null
null
null
open
Can I configure Visual Studio NOT to change StartUp Project everytime I open a file from one of the projects? === Let's say that there is a solution that contains two projects (Project1 and Project2). Project1 is set as a StartUp Project (its name is displayed in a bold font). I double-click some file in Project2 to open it. The file opens, but something else happens too - Project2 gets set as a StartUp Project. I tried to find an option in configuration to change it, but I found none. Can this feature (though it's more like a bug to me) be disabled?
0
4,442
08/07/2008 05:58:23
307
08/04/2008 14:26:05
260
24
RhinoMocks: How do you properly mock an IEnumerable<T>?
I just keep stumbling through mocking... The latest disaster was not grokking that I need to actually push results inside a mock object of IEnumerable<T>... Here's a sample (demonstration only of IEnumerable<T>, not actually good Interaction-based testing!): using System; using System.Collections.Generic; using Rhino.Mocks; using MbUnit.Framework; [TestFixture] public class ZooTest{ [Test] public void ZooCagesAnimals() { MockRepository mockery = new MockRepository(); IZoo zoo = new Zoo(); //this is the part that feels wrong to create IList<IAnimal> mockResults = mockery.DynamicMock<IList<IAnimal>>(); IAnimal mockLion = mockery.DynamicMock<IAnimal>(); IAnimal mockRhino = mockery.DynamicMock<IAnimal>(); using (mockery.Record()) { Expect.Call(zoo.Animals) .Return(mockResults) .Repeat.Once(); } using (mockery.Playback()) { zoo.CageThe(mockLion); zoo.CageThe(mockRhino); Assert.AreEqual(mockResults, new List<IAnimal>(zoo.Animals)); } } } public class Zoo : IZoo { private IList<IAnimal> animals = new List<IAnimal>(); public void CageThe(IAnimal animal) { animals.Add(animal); } public IEnumerable<IAnimal> Animals { get { foreach(IAnimal animal in animals) { yield return animal; } } } } public interface IAnimal { } public interface IZoo { IEnumerable<IAnimal> Animals { get;} void CageThe(IAnimal animal); } I don't like how I got it to work for the following reasons: - Had to consume the IEnumerable<IAnimal> results into IList<IAnimal>, I understand this puts the results for checking onto the heap - Had to setup the contents of the results ... I understand this as well, but my main point is to test that Zoo.Animals is returning IEnumerable<IAnimal>, and even better, that we're using "yield return" inside Any suggestions on doing this better, or simpler?
rhinomocks
mocking
tdd
unittesting
codereview
null
open
RhinoMocks: How do you properly mock an IEnumerable<T>? === I just keep stumbling through mocking... The latest disaster was not grokking that I need to actually push results inside a mock object of IEnumerable<T>... Here's a sample (demonstration only of IEnumerable<T>, not actually good Interaction-based testing!): using System; using System.Collections.Generic; using Rhino.Mocks; using MbUnit.Framework; [TestFixture] public class ZooTest{ [Test] public void ZooCagesAnimals() { MockRepository mockery = new MockRepository(); IZoo zoo = new Zoo(); //this is the part that feels wrong to create IList<IAnimal> mockResults = mockery.DynamicMock<IList<IAnimal>>(); IAnimal mockLion = mockery.DynamicMock<IAnimal>(); IAnimal mockRhino = mockery.DynamicMock<IAnimal>(); using (mockery.Record()) { Expect.Call(zoo.Animals) .Return(mockResults) .Repeat.Once(); } using (mockery.Playback()) { zoo.CageThe(mockLion); zoo.CageThe(mockRhino); Assert.AreEqual(mockResults, new List<IAnimal>(zoo.Animals)); } } } public class Zoo : IZoo { private IList<IAnimal> animals = new List<IAnimal>(); public void CageThe(IAnimal animal) { animals.Add(animal); } public IEnumerable<IAnimal> Animals { get { foreach(IAnimal animal in animals) { yield return animal; } } } } public interface IAnimal { } public interface IZoo { IEnumerable<IAnimal> Animals { get;} void CageThe(IAnimal animal); } I don't like how I got it to work for the following reasons: - Had to consume the IEnumerable<IAnimal> results into IList<IAnimal>, I understand this puts the results for checking onto the heap - Had to setup the contents of the results ... I understand this as well, but my main point is to test that Zoo.Animals is returning IEnumerable<IAnimal>, and even better, that we're using "yield return" inside Any suggestions on doing this better, or simpler?
0
4,458
08/07/2008 06:24:33
100
08/01/2008 20:41:59
248
8
Domain Specific Language resources
I was just listening to some older .Net Rocks! episodes, and I found #329 on DSLs to be interesting. My problem is that I can't find any good online resources for people trying to learn this technology. I get the basics of the creating new designers, but the MS docs on the T4 engine used by the DSL tools and then how to integrate the templates with the DSL models are lacking. Does anyone know of some good introductory resources for the MS DSL tools? Thanks.
ms
dsl
t4
vsx
null
08/16/2011 13:54:06
not constructive
Domain Specific Language resources === I was just listening to some older .Net Rocks! episodes, and I found #329 on DSLs to be interesting. My problem is that I can't find any good online resources for people trying to learn this technology. I get the basics of the creating new designers, but the MS docs on the T4 engine used by the DSL tools and then how to integrate the templates with the DSL models are lacking. Does anyone know of some good introductory resources for the MS DSL tools? Thanks.
4
4,506
08/07/2008 07:54:37
192
08/03/2008 10:15:38
166
20
How to know when to send a 304 Not Modified response
I'm writing a resource handling method where I control access to various files, and I'd like to be able to make use of the browser's cache. My question is two-fold: 1. Which are the definitive HTTP headers that I need to check in order to know for sure whether I should send a 304 response, and what am I looking for when I do check them? 2. Additionally, are there any headers that I need to send when I initially send the file (like 'Last-Modified') as a 200 response? Some psuedo-code would probably be the most useful answer. Thanks.
http
statuscodes
304
notmodified
language-agnostic
null
open
How to know when to send a 304 Not Modified response === I'm writing a resource handling method where I control access to various files, and I'd like to be able to make use of the browser's cache. My question is two-fold: 1. Which are the definitive HTTP headers that I need to check in order to know for sure whether I should send a 304 response, and what am I looking for when I do check them? 2. Additionally, are there any headers that I need to send when I initially send the file (like 'Last-Modified') as a 200 response? Some psuedo-code would probably be the most useful answer. Thanks.
0
4,508
08/07/2008 07:56:24
227
08/03/2008 17:53:19
219
22
MAPI and managed code experiences?
Using MAPI functions from within managed code is officially unsupported. Apparently, MAPI uses its own memory management and it crashes and burns within managed code (see [here](http://blogs.msdn.com/pcreehan/archive/2007/05/04/what-does-unsupported-mean.aspx) and [here](http://blogs.msdn.com/mstehle/archive/2007/10/03/fyi-why-are-mapi-and-cdo-1-21-not-supported-in-managed-net-code.aspx)) (But) I won't be fiddling with the advanced stuff such as opening an exchange mailbox or automatically sending mail on user's behalf. All I want to do is launch the default e-mail client with subject, body, AND one or more attachments. So I've been looking into [MAPISendDocuments](http://pinvoke.net/default.aspx/mapi32.MAPISendDocuments) and it seems to work. But I haven't been able to gather courage to actually use the function in production code. Has anybody used this function a lot? Do you have any horror stories? *PS. No, I won't shellExecute Outlook.exe with command line arguments for attachments.*
.net
mapi
pinvoke
e-mail
null
null
open
MAPI and managed code experiences? === Using MAPI functions from within managed code is officially unsupported. Apparently, MAPI uses its own memory management and it crashes and burns within managed code (see [here](http://blogs.msdn.com/pcreehan/archive/2007/05/04/what-does-unsupported-mean.aspx) and [here](http://blogs.msdn.com/mstehle/archive/2007/10/03/fyi-why-are-mapi-and-cdo-1-21-not-supported-in-managed-net-code.aspx)) (But) I won't be fiddling with the advanced stuff such as opening an exchange mailbox or automatically sending mail on user's behalf. All I want to do is launch the default e-mail client with subject, body, AND one or more attachments. So I've been looking into [MAPISendDocuments](http://pinvoke.net/default.aspx/mapi32.MAPISendDocuments) and it seems to work. But I haven't been able to gather courage to actually use the function in production code. Has anybody used this function a lot? Do you have any horror stories? *PS. No, I won't shellExecute Outlook.exe with command line arguments for attachments.*
0
4,511
08/07/2008 08:04:30
95
08/01/2008 18:28:24
150
17
Is there any trick that allows to use Management Studio's (ver. 2008) IntelliSense feature with earlier versions of SQL Server?
New version of Management Studio (i.e. the one that ships with SQL Server 2008) finally has a Transact-SQL IntelliSense feature. However, out-of-the-box it only works with SQL Server 2008 instances. Is there some workaround for this?
database
sql
mssql
sql-server
databases
null
open
Is there any trick that allows to use Management Studio's (ver. 2008) IntelliSense feature with earlier versions of SQL Server? === New version of Management Studio (i.e. the one that ships with SQL Server 2008) finally has a Transact-SQL IntelliSense feature. However, out-of-the-box it only works with SQL Server 2008 instances. Is there some workaround for this?
0
4,519
08/07/2008 08:20:47
381
08/05/2008 10:39:26
235
4
Using Xming X Window Server over a VPN
I have the Xming X Window Server installed on a laptop running Windows XP to connect to some UNIX development servers. It works fine when I connect directly to the company network in the office. However, it does not work when I connect to the network remotely over a VPN. When I start Xming when connected remotely none of my terminal windows are displayed. I think it may have something to do with the DISPLAY environment variable not being set correctly to the IP address of the laptop when it is connected. I've noticed that when I do an ipconfig whilst connected remotely that my laptop has two IP addresses, the one assigned to it from the company network and the local IP address I've set up for it on my "local network" from my modem/router. Are there some configuration changes I need to make in Xming to support its use through the VPN ?
xming
vpn
unix
hardware
null
null
open
Using Xming X Window Server over a VPN === I have the Xming X Window Server installed on a laptop running Windows XP to connect to some UNIX development servers. It works fine when I connect directly to the company network in the office. However, it does not work when I connect to the network remotely over a VPN. When I start Xming when connected remotely none of my terminal windows are displayed. I think it may have something to do with the DISPLAY environment variable not being set correctly to the IP address of the laptop when it is connected. I've noticed that when I do an ipconfig whilst connected remotely that my laptop has two IP addresses, the one assigned to it from the company network and the local IP address I've set up for it on my "local network" from my modem/router. Are there some configuration changes I need to make in Xming to support its use through the VPN ?
0
4,529
08/07/2008 08:35:30
267
08/04/2008 10:11:06
290
19
SQL Server 2005 and 2008 on same developer machine?
Has anyone tried installing SQL Server 2008 Developer on a machine that already has 2005 Developer installed? I am unsure if I should do this, and I need to keep 2005 on this machine for the foreseeable future in order to test our application easily. Since I sometimes need to take backup files of databases and make available for other people in the company I cannot just replace 2005 with 2008 as I suspect (but do not know) that the databases aren't 100% backwards compatible. What kind of issues would arise? Do I need to install the new version with an instance name, will that work? Can I use a different port number to distinguish them? I found this entry on technet: <http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=3496209&SiteID=17> It doesn't say more than just *yes you can do this* and I kinda suspected that this was doable anyway, but I need to know if there are anything I need to know before I start installing. Anyone?
sqlserver
microsoft
installation
2008
2005
null
open
SQL Server 2005 and 2008 on same developer machine? === Has anyone tried installing SQL Server 2008 Developer on a machine that already has 2005 Developer installed? I am unsure if I should do this, and I need to keep 2005 on this machine for the foreseeable future in order to test our application easily. Since I sometimes need to take backup files of databases and make available for other people in the company I cannot just replace 2005 with 2008 as I suspect (but do not know) that the databases aren't 100% backwards compatible. What kind of issues would arise? Do I need to install the new version with an instance name, will that work? Can I use a different port number to distinguish them? I found this entry on technet: <http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=3496209&SiteID=17> It doesn't say more than just *yes you can do this* and I kinda suspected that this was doable anyway, but I need to know if there are anything I need to know before I start installing. Anyone?
0
4,533
08/07/2008 08:45:07
192
08/03/2008 10:15:38
178
21
Generating ETags
How do I generate an ETag HTTP header for a resource file?
language-agnostic
http
etag
header
null
null
open
Generating ETags === How do I generate an ETag HTTP header for a resource file?
0
4,541
08/07/2008 08:58:18
501
08/06/2008 12:11:33
41
7
Simple MOLAP solution
To analyze lots of text logs I did some hackery that looks like this 1. Locally import logs into Access 2. Reprocess Cube link to previous mdb in Analisis Service 2000 (yes it is 2k) 3. Use Excel to visualize Cube (it is not big - up to milions raw entries) My hackery is a succes and more people are demanding an access to my Tool. As you see I see more automating and easier deployment. Do you now some tools/libraries that would give me the same but with easier deployment? Kind of **embedded OLAP** serwice?
database
text-files
olap
hackery
logging
null
open
Simple MOLAP solution === To analyze lots of text logs I did some hackery that looks like this 1. Locally import logs into Access 2. Reprocess Cube link to previous mdb in Analisis Service 2000 (yes it is 2k) 3. Use Excel to visualize Cube (it is not big - up to milions raw entries) My hackery is a succes and more people are demanding an access to my Tool. As you see I see more automating and easier deployment. Do you now some tools/libraries that would give me the same but with easier deployment? Kind of **embedded OLAP** serwice?
0
4,544
08/07/2008 09:08:52
86
08/01/2008 16:45:58
260
18
Http Auth in a Firefox 3 bookmarklet
Im trying to create a bookmarklet for posting del.icio.us bookmarks to a seperate account. I tested it from the command line like: wget -O - --no-check-certificate \ "https://seconduser:[email protected]/v1/posts/add?url=http://seet.dk&description=test" and this works great I then wanted to create a bookmarklet in my firefox. I googled and found bits and pieces and ended up with: javascript:void( open('https://seconduser:[email protected]/v1/posts/add?url=' +encodeURIComponent(location.href) +'&description='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=500,height=250' ) ); but all that happens is that i get this from del.icio.us: <?xml version="1.0" standalone="yes"?> <result code="access denied" /> <!-- fe04.api.del.ac4.yahoo.net uncompressed/chunked Thu Aug 7 02:02:54 PDT 2008 --> If I then go to the address bar and presses enter, it changes to: <?xml version='1.0' standalone='yes'?> <result code="done" /> <!-- fe02.api.del.ac4.yahoo.net uncompressed/chunked Thu Aug 7 02:07:45 PDT 2008 --> Any ideas how to get it to work directly from the bookmarks?
javascript
firefox
del.icio.us
null
null
null
open
Http Auth in a Firefox 3 bookmarklet === Im trying to create a bookmarklet for posting del.icio.us bookmarks to a seperate account. I tested it from the command line like: wget -O - --no-check-certificate \ "https://seconduser:[email protected]/v1/posts/add?url=http://seet.dk&description=test" and this works great I then wanted to create a bookmarklet in my firefox. I googled and found bits and pieces and ended up with: javascript:void( open('https://seconduser:[email protected]/v1/posts/add?url=' +encodeURIComponent(location.href) +'&description='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=500,height=250' ) ); but all that happens is that i get this from del.icio.us: <?xml version="1.0" standalone="yes"?> <result code="access denied" /> <!-- fe04.api.del.ac4.yahoo.net uncompressed/chunked Thu Aug 7 02:02:54 PDT 2008 --> If I then go to the address bar and presses enter, it changes to: <?xml version='1.0' standalone='yes'?> <result code="done" /> <!-- fe02.api.del.ac4.yahoo.net uncompressed/chunked Thu Aug 7 02:07:45 PDT 2008 --> Any ideas how to get it to work directly from the bookmarks?
0
4,545
08/07/2008 09:21:41
383
08/05/2008 10:46:37
748
91
<XMP> Tag
Does anyone remember the XMP tag? What was it used for and why was it depreciated?
html
xmp
null
null
null
null
open
<XMP> Tag === Does anyone remember the XMP tag? What was it used for and why was it depreciated?
0
4,556
08/07/2008 10:01:04
383
08/05/2008 10:46:37
759
95
C# DataTable Loop Performance
Which of the following has the best performance? I have seen method two implemented in JavaScript with huge performance gains, however, I was unable to measure any gain in C# and was wondering if the compiler already does method 2 even when written like method 1. The theory behind method 2 is that the code doesn't have to access DataTable.Rows.Count on every iteration, it can simple access the int c. **Method 1** for (int i = 0; i < DataTable.Rows.Count; i++) { // Do Something } **Method 2** for (int i = 0, c = DataTable.Rows.Count; i < c; i++) { // Do Something }
c#
performance
null
null
null
null
open
C# DataTable Loop Performance === Which of the following has the best performance? I have seen method two implemented in JavaScript with huge performance gains, however, I was unable to measure any gain in C# and was wondering if the compiler already does method 2 even when written like method 1. The theory behind method 2 is that the code doesn't have to access DataTable.Rows.Count on every iteration, it can simple access the int c. **Method 1** for (int i = 0; i < DataTable.Rows.Count; i++) { // Do Something } **Method 2** for (int i = 0, c = DataTable.Rows.Count; i < c; i++) { // Do Something }
0
4,565
08/07/2008 10:20:16
486
08/06/2008 09:19:11
41
8
How to setup Quality of Service?
I'm talking about <http://en.wikipedia.org/wiki/Quality_of_service>. With streaming stackoverflow podcasts and downloading the lastest updates to ubuntu, I would like to have QoS working so I can use stackoverflow without my http connections timing out or taking forever. I'm using an iConnect 624 ADSL modem which has QoS built-in but I can't seem to get it to work. Is it even possible to control the downstream (ie. from ISP to your modem)?
networking
isp
modem
adsl
qos
null
open
How to setup Quality of Service? === I'm talking about <http://en.wikipedia.org/wiki/Quality_of_service>. With streaming stackoverflow podcasts and downloading the lastest updates to ubuntu, I would like to have QoS working so I can use stackoverflow without my http connections timing out or taking forever. I'm using an iConnect 624 ADSL modem which has QoS built-in but I can't seem to get it to work. Is it even possible to control the downstream (ie. from ISP to your modem)?
0
4,582
08/07/2008 11:04:37
609
08/07/2008 10:26:12
1
0
Video Compression: What is direct cosine transform?
I've implemented an image/video transformation technique called direct cosine transform. This technique is used in MPEG video encoding. I based my algorithm on the ideas presented at the following URL: <a href="http://vsr.informatik.tu-chemnitz.de/~jan/MPEG/HTML/mpeg_tech.html">http://vsr.informatik.tu-chemnitz.de/~jan/MPEG/HTML/mpeg_tech.html</a> Now I can transform an 8x8 section of a black and white image, such as: <pre> 0140 0124 0124 0132 0130 0139 0102 0088 0140 0123 0126 0132 0134 0134 0088 0117 0143 0126 0126 0133 0134 0138 0081 0082 0148 0126 0128 0136 0137 0134 0079 0130 0147 0128 0126 0137 0138 0145 0132 0144 0147 0131 0123 0138 0137 0140 0145 0137 0142 0135 0122 0137 0140 0138 0143 0112 0140 0138 0125 0137 0140 0140 0148 0143 </pre> Into this an image with all the important information at the top right. The transformed block looks like this: <pre> 1041 0039 -023 0044 0027 0000 0021 -019 -050 0044 -029 0000 0009 -014 0032 -010 0000 0000 0000 0000 -018 0010 -017 0000 0014 -019 0010 0000 0000 0016 -012 0000 0010 -010 0000 0000 0000 0000 0000 0000 -016 0021 -014 0010 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 -010 0013 -014 0010 0000 0000 </pre> Now, I need to know how can I take advantage of this transformation? I'd like to detect other 8x8 blocks in the same image ( or another image ) that represent a good match. Also, What does this transformation give me? Why is the information stored int the top right of the converted image important?
c
c++
video
compression
direct
null
open
Video Compression: What is direct cosine transform? === I've implemented an image/video transformation technique called direct cosine transform. This technique is used in MPEG video encoding. I based my algorithm on the ideas presented at the following URL: <a href="http://vsr.informatik.tu-chemnitz.de/~jan/MPEG/HTML/mpeg_tech.html">http://vsr.informatik.tu-chemnitz.de/~jan/MPEG/HTML/mpeg_tech.html</a> Now I can transform an 8x8 section of a black and white image, such as: <pre> 0140 0124 0124 0132 0130 0139 0102 0088 0140 0123 0126 0132 0134 0134 0088 0117 0143 0126 0126 0133 0134 0138 0081 0082 0148 0126 0128 0136 0137 0134 0079 0130 0147 0128 0126 0137 0138 0145 0132 0144 0147 0131 0123 0138 0137 0140 0145 0137 0142 0135 0122 0137 0140 0138 0143 0112 0140 0138 0125 0137 0140 0140 0148 0143 </pre> Into this an image with all the important information at the top right. The transformed block looks like this: <pre> 1041 0039 -023 0044 0027 0000 0021 -019 -050 0044 -029 0000 0009 -014 0032 -010 0000 0000 0000 0000 -018 0010 -017 0000 0014 -019 0010 0000 0000 0016 -012 0000 0010 -010 0000 0000 0000 0000 0000 0000 -016 0021 -014 0010 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 -010 0013 -014 0010 0000 0000 </pre> Now, I need to know how can I take advantage of this transformation? I'd like to detect other 8x8 blocks in the same image ( or another image ) that represent a good match. Also, What does this transformation give me? Why is the information stored int the top right of the converted image important?
0
4,610
08/07/2008 12:00:50
383
08/05/2008 10:46:37
767
98
C#.Net Prototype Methods
How can I make prototype methods in C#.Net? In JavaScript, I can do the following to create a trim method for the string object: String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g,""); } How can I go about doing this in C#.Net
c#
.net
null
null
null
null
open
C#.Net Prototype Methods === How can I make prototype methods in C#.Net? In JavaScript, I can do the following to create a trim method for the string object: String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g,""); } How can I go about doing this in C#.Net
0
4,612
08/07/2008 12:01:14
608
08/07/2008 10:23:46
11
5
CSharpCodeProvider Compilation Performance
Is *CompileAssemblyFromDom* faster than *CompileAssemblyFromSource*?
c#
performance
null
null
null
null
open
CSharpCodeProvider Compilation Performance === Is *CompileAssemblyFromDom* faster than *CompileAssemblyFromSource*?
0
4,617
08/07/2008 12:05:48
287
08/04/2008 12:43:38
28
4
What is a good Mercurial usage pattern for this setup?
We've got two developers on the same closed (ugh, stupid gov) network, Another developer a couple minutes drive down the road, and a fourth developer half-way across the country. E-Mail, ftp, and removal media are all possible methods of transfer for the people not on the same network. I am one of the two closed network developers, consider us the "master" location. What is the best Mercurial setup/pattern for group? What is the best way to trasmit changes to/from the remote developers? As I am in charge, I figured that I would have to keep at least one master repo with another local repo in which I can develop. Each other person should just need a clone of the master. Is this right? I guess this also makes me responsible for the merging? As you can see, I'm still trying to wrap my head around distributed version control. I don't think there is any other way to do this with the connectivity situation.
versioncontrol
mercurial
pattern
null
null
null
open
What is a good Mercurial usage pattern for this setup? === We've got two developers on the same closed (ugh, stupid gov) network, Another developer a couple minutes drive down the road, and a fourth developer half-way across the country. E-Mail, ftp, and removal media are all possible methods of transfer for the people not on the same network. I am one of the two closed network developers, consider us the "master" location. What is the best Mercurial setup/pattern for group? What is the best way to trasmit changes to/from the remote developers? As I am in charge, I figured that I would have to keep at least one master repo with another local repo in which I can develop. Each other person should just need a clone of the master. Is this right? I guess this also makes me responsible for the merging? As you can see, I'm still trying to wrap my head around distributed version control. I don't think there is any other way to do this with the connectivity situation.
0
4,622
08/07/2008 12:13:01
383
08/05/2008 10:46:37
772
98
SQL Case Statement Syntax?
What is the *full* correct syntax for the SQL Case statement?
mssql
null
null
null
null
null
open
SQL Case Statement Syntax? === What is the *full* correct syntax for the SQL Case statement?
0
4,627
08/07/2008 12:21:25
383
08/05/2008 10:46:37
774
99
Upgrade to ASP.NET 3.x
I am currently aware that ASP.NET 2.0 is out and about and that there are 3.x versions of the .Net Framwork. Is it possible to upgrade my ASP.NET web server to version 3.x of the .Net Framwork?
asp.net
null
null
null
null
null
open
Upgrade to ASP.NET 3.x === I am currently aware that ASP.NET 2.0 is out and about and that there are 3.x versions of the .Net Framwork. Is it possible to upgrade my ASP.NET web server to version 3.x of the .Net Framwork?
0
4,629
08/07/2008 12:26:46
384
08/05/2008 11:03:36
147
16
C# eval equivalent?
I can do an `eval("something()");` to execute the code dynamically in JavaScript. Is there a way for me to do the same thing in C#? What I am exactly trying to do is that I have an integer variable (say i) and I have multiple properties by the names: "Property1","Property2","Property3" etc. Now, I want to perform some operations on the " Property*i* " property depending on the value of i. This is really simple with Javascript. Is there any way to do this with C#? Edit: Oh, and I am using C# 2.0
c#
null
null
null
null
null
open
C# eval equivalent? === I can do an `eval("something()");` to execute the code dynamically in JavaScript. Is there a way for me to do the same thing in C#? What I am exactly trying to do is that I have an integer variable (say i) and I have multiple properties by the names: "Property1","Property2","Property3" etc. Now, I want to perform some operations on the " Property*i* " property depending on the value of i. This is really simple with Javascript. Is there any way to do this with C#? Edit: Oh, and I am using C# 2.0
0
4,630
08/07/2008 12:26:50
287
08/04/2008 12:43:38
28
4
How can I Java webstart multiple, dependent, native libraries?
Example: I have two shared objects (same should apply to .dlls). The first shared object is from a third-party library, we'll call it libA.so. I have wrapped some of this with JNI and created my own library, libB.so. Now libB depends on libA. When webstarting, both libraries are places in some webstart working area. My java code attempts to load libB. At this point the system loader will attempt to load libA which is not in the system library path (java.library.path won't help this). The end result is that libB has an unsatisfied link and cannot be used. I have tried loading libA before libB, but that still does not work. Seems the OS wants to do that loading for me. Is there any way I can make this work other than statically compiling?
java
jni
webstart
nativelibrary
null
null
open
How can I Java webstart multiple, dependent, native libraries? === Example: I have two shared objects (same should apply to .dlls). The first shared object is from a third-party library, we'll call it libA.so. I have wrapped some of this with JNI and created my own library, libB.so. Now libB depends on libA. When webstarting, both libraries are places in some webstart working area. My java code attempts to load libB. At this point the system loader will attempt to load libA which is not in the system library path (java.library.path won't help this). The end result is that libB has an unsatisfied link and cannot be used. I have tried loading libA before libB, but that still does not work. Seems the OS wants to do that loading for me. Is there any way I can make this work other than statically compiling?
0
4,638
08/07/2008 12:31:42
307
08/04/2008 14:26:05
277
25
How do you create your own moniker on Windows systems?
How do you create your own custom moniker on Windows systems? Examples: - http: - mailto: - service:
windows
winapi
null
null
null
null
open
How do you create your own moniker on Windows systems? === How do you create your own custom moniker on Windows systems? Examples: - http: - mailto: - service:
0
4,661
08/07/2008 12:51:38
274
08/04/2008 10:43:23
41
8
Can you apply more than one OpenID to a StackOverflow account
I have more than one OpenID as I have tried out numerous. As people take up OpenID different suppliers are going to emerge I may want to switch provinders. As all IDs are me, and all are authenticated against the same email address, shouldn't I be able to log into stack overflow with any of them and be able to hit the same account?
stackoverflow
openid
null
null
null
05/22/2012 19:21:26
off topic
Can you apply more than one OpenID to a StackOverflow account === I have more than one OpenID as I have tried out numerous. As people take up OpenID different suppliers are going to emerge I may want to switch provinders. As all IDs are me, and all are authenticated against the same email address, shouldn't I be able to log into stack overflow with any of them and be able to hit the same account?
2
4,665
08/07/2008 12:54:51
406
08/05/2008 13:38:24
53
2
Verifying files for test
I was working with quality yesterday doing some formal testing. In their procedure they were verifying all files on the test machine were pulled from the release. The way they were verifying these files were the same was by checking the size and the date/time stamp windows put on them in explorer. These happened to be off for another reason which I was able to find out why. **But my question is this:** Is this a valid way to verify a file is the same? I would think not and started to argue, but I am younger here so thought I shouldn't push it too far. I wanted to argue they should do a binary compare on the file to verify its contents are exact. In my experience time/date stamps and size attributes don't always act as expected. Any thoughts???
testing
quality
windows
null
null
null
open
Verifying files for test === I was working with quality yesterday doing some formal testing. In their procedure they were verifying all files on the test machine were pulled from the release. The way they were verifying these files were the same was by checking the size and the date/time stamp windows put on them in explorer. These happened to be off for another reason which I was able to find out why. **But my question is this:** Is this a valid way to verify a file is the same? I would think not and started to argue, but I am younger here so thought I shouldn't push it too far. I wanted to argue they should do a binary compare on the file to verify its contents are exact. In my experience time/date stamps and size attributes don't always act as expected. Any thoughts???
0
4,670
08/07/2008 12:57:32
634
08/07/2008 12:15:58
1
3
DVCS Choices - What's good for Windows?
So I want to get a project on a distributed version control system, such as mercurial, git, or bazaar. The catch is that I need the Windows support to be good, i.e. no instructions that start off with "install cygwin...". Now I've *heard* that git's Windows support is decent these days, but don't have any first hand experience. Also, it sounds like the bazaar team has an explicit goal of making it as multiplatform as possible. Can I get any recommendations?
version-control
windows
null
null
null
null
open
DVCS Choices - What's good for Windows? === So I want to get a project on a distributed version control system, such as mercurial, git, or bazaar. The catch is that I need the Windows support to be good, i.e. no instructions that start off with "install cygwin...". Now I've *heard* that git's Windows support is decent these days, but don't have any first hand experience. Also, it sounds like the bazaar team has an explicit goal of making it as multiplatform as possible. Can I get any recommendations?
0
4,677
08/07/2008 13:00:07
25
08/01/2008 12:15:23
215
29
How do I create a Class using the Singleton Design Pattern in Ruby?
The singleton pattern is a design pattern that is used to restrict instantiation of a class to one object instance. Although I know how to code the singleton pattern in C++ and Java, I was wondering if anyone know how to implement it in Ruby?
designpatterns
ruby
null
null
null
null
open
How do I create a Class using the Singleton Design Pattern in Ruby? === The singleton pattern is a design pattern that is used to restrict instantiation of a class to one object instance. Although I know how to code the singleton pattern in C++ and Java, I was wondering if anyone know how to implement it in Ruby?
0
4,684
08/07/2008 13:05:38
91
08/01/2008 17:55:22
2,317
181
Automating VMWare or VirtualPC
I'm currently experimenting with build script, and since I have an ASP.net Web Part under source control, my build script should do that at the end: 1. Grab the "naked" Windows 2003 IIS VMWare or Virtual PC Image from the Network 2. Boot it up 3. Copy the Files from the Build Folder to the Server 4. Install it 5. Do whatever else is needed I have never tried automating a Virtual Machine, but I saw that both VMWare and Virtual Server offer automation facilities. While I cannot use Virtual Server (Windows XP Home :-(), Virtual PC works. Does anyone here have experience with either VMWare Server or Virtual PC 2007 SP1 in terms of automation? Which one is better suited (I run windows, so the Platform-independence of VMWare does not count) and easier to automate?
vmware
virtualization
null
null
null
null
open
Automating VMWare or VirtualPC === I'm currently experimenting with build script, and since I have an ASP.net Web Part under source control, my build script should do that at the end: 1. Grab the "naked" Windows 2003 IIS VMWare or Virtual PC Image from the Network 2. Boot it up 3. Copy the Files from the Build Folder to the Server 4. Install it 5. Do whatever else is needed I have never tried automating a Virtual Machine, but I saw that both VMWare and Virtual Server offer automation facilities. While I cannot use Virtual Server (Windows XP Home :-(), Virtual PC works. Does anyone here have experience with either VMWare Server or Virtual PC 2007 SP1 in terms of automation? Which one is better suited (I run windows, so the Platform-independence of VMWare does not count) and easier to automate?
0
4,689
08/07/2008 13:08:44
637
08/07/2008 12:33:15
1
0
Recommended Fonts for Programming?
What fonts do you use for programming, and for what language/ide? I use [Consolas][1] for all my Visual Studio work, any other recommendations? [1]: http://www.microsoft.com/downloads/details.aspx?familyid=22e69ae4-7e40-4807-8a86-b3d36fab68d3&displaylang=en "Consolas"
font
null
null
null
null
09/26/2011 22:55:42
not constructive
Recommended Fonts for Programming? === What fonts do you use for programming, and for what language/ide? I use [Consolas][1] for all my Visual Studio work, any other recommendations? [1]: http://www.microsoft.com/downloads/details.aspx?familyid=22e69ae4-7e40-4807-8a86-b3d36fab68d3&displaylang=en "Consolas"
4
4,724
08/07/2008 13:54:03
381
08/05/2008 10:39:26
257
5
Learning Lisp - Why ?
I really feel that I should learn Lisp and there are plenty of good resources out there to help me do it. I'm not put off by the complicated syntax, but where in "traditional commercial programming" would I find places it would make sense to use it instead of a procedural language. Is there a commercial killer-app out there that's been written in Lisp ?
lisp
null
null
null
null
null
open
Learning Lisp - Why ? === I really feel that I should learn Lisp and there are plenty of good resources out there to help me do it. I'm not put off by the complicated syntax, but where in "traditional commercial programming" would I find places it would make sense to use it instead of a procedural language. Is there a commercial killer-app out there that's been written in Lisp ?
0
4,736
08/07/2008 14:05:23
1,384,652
08/01/2008 12:01:23
489
39
Learning Regular Expressions
I already know the basics of RegEx but I'm not sure where to go from here, I'm looking for both a good and above all easy to understand guide but I am also looking for things to use RegEx's for, it's all well and good reading about it but if you never use them then they will not stick in your mind. I have already found [regular-expressions.info][1] but I'm sure there are more. [1]: http://www.regular-expressions.info/
regex
regularexpression
null
null
null
11/28/2011 18:56:46
not constructive
Learning Regular Expressions === I already know the basics of RegEx but I'm not sure where to go from here, I'm looking for both a good and above all easy to understand guide but I am also looking for things to use RegEx's for, it's all well and good reading about it but if you never use them then they will not stick in your mind. I have already found [regular-expressions.info][1] but I'm sure there are more. [1]: http://www.regular-expressions.info/
4
4,738
08/07/2008 14:07:21
205
08/03/2008 13:31:27
77
6
Using ConfigurationManager to load config from an arbitrary location
I'm developing a data access component that will be used in a website that contains a mix of classic ASP and ASP.NET pages, and need a good way to manage its configuration settings. I'd like to use a custom ConfigurationSection, and for the ASP.NET pages this works great. But when the component is called via COM interop from a classic ASP page, the component isn't running in the context of an ASP.NET request and therefore has no knowledge of web.config. Is there a way to tell the ConfigurationManager to just load the configuration from an arbitrary path (e.g. "..\web.config" if my assembly is in the /bin folder)? If there is then I'm thinking my component can fall back to that if the default ConfigurationManager.GetSection returns null for my custom section. Any other approaches to this would be welcome!
asp.net
configuration
classicasp
null
null
null
open
Using ConfigurationManager to load config from an arbitrary location === I'm developing a data access component that will be used in a website that contains a mix of classic ASP and ASP.NET pages, and need a good way to manage its configuration settings. I'd like to use a custom ConfigurationSection, and for the ASP.NET pages this works great. But when the component is called via COM interop from a classic ASP page, the component isn't running in the context of an ASP.NET request and therefore has no knowledge of web.config. Is there a way to tell the ConfigurationManager to just load the configuration from an arbitrary path (e.g. "..\web.config" if my assembly is in the /bin folder)? If there is then I'm thinking my component can fall back to that if the default ConfigurationManager.GetSection returns null for my custom section. Any other approaches to this would be welcome!
0
4,745
08/07/2008 14:12:29
194
08/03/2008 10:56:49
130
15
ASP.NET MVC - Is it worth it yet?
For any of you that have used ASP.NET MVC (especially the Stack Overflow team), do you think it's worth taking the plunge with a technology that's still in "Preview" releases, not even Beta yet? From what I've seen on the MVC site and various blogs, it seems that a lot is still in flux, making it so that upgrading to the latest MVC version would likely require a lot of code changes. Compared to WebForms, is it worth getting the MVC model at the expense of likely having to do re-writes later just to comply with the latest version? I ask this especially in terms of doing something that will be used, not just if I should try it out.
asp.netmvc
mvc
asp.net
null
null
05/10/2010 13:15:24
too localized
ASP.NET MVC - Is it worth it yet? === For any of you that have used ASP.NET MVC (especially the Stack Overflow team), do you think it's worth taking the plunge with a technology that's still in "Preview" releases, not even Beta yet? From what I've seen on the MVC site and various blogs, it seems that a lot is still in flux, making it so that upgrading to the latest MVC version would likely require a lot of code changes. Compared to WebForms, is it worth getting the MVC model at the expense of likely having to do re-writes later just to comply with the latest version? I ask this especially in terms of doing something that will be used, not just if I should try it out.
3
4,752
08/07/2008 14:21:10
636
08/07/2008 12:32:33
1
0
MOSS SSP problem - Failed database logons from deleted SSP
We've been having some issues with a SharePoint instance in a test environment. Thankfully this is not production ;) The problems started when the disk with the SQL Server databases and search index ran out of space. Following this, the search service would not run and search settings in the SSP were not accessible. Reclaiming the disk space did not resolve the issue. So rather than restoring the VM, we decided to try to fix the issue. We created a new SSP and changed the association of all services to the new SSP. The old SSP and it's databases were then deleted. Search results for PDF files are no longer appearing, but the search works fine otherwise. MySites also works OK. Following the implementation of this change, these problems occur: 1) An audit failure message started appearing in the application event log, for 'DOMAIN\SPMOSSSvc' which is the MOSS farm account. Event Type: Failure Audit Event Source: MSSQLSERVER Event Category: (4) Event ID: 18456 Date: 8/5/2008 Time: 3:55:19 PM User: DOMAIN\SPMOSSSvc Computer: dastest01 Description: Login failed for user 'DOMAIN\SPMOSSSvc'. [CLIENT: <local machine>] 2) SQL Server profiler is showing queries from SharePoint that reference the old (deleted) SSP database. So... * Where would these references to DOMAIN\SPMOSSSvc and the old SSP database exist? * Is there a way to 'completely' remove the SSP from the server, and re-create? The option to delete was not available (greyed out) when a single SSP is in place.
sql-server
database
sharepoint
search
ssp
null
open
MOSS SSP problem - Failed database logons from deleted SSP === We've been having some issues with a SharePoint instance in a test environment. Thankfully this is not production ;) The problems started when the disk with the SQL Server databases and search index ran out of space. Following this, the search service would not run and search settings in the SSP were not accessible. Reclaiming the disk space did not resolve the issue. So rather than restoring the VM, we decided to try to fix the issue. We created a new SSP and changed the association of all services to the new SSP. The old SSP and it's databases were then deleted. Search results for PDF files are no longer appearing, but the search works fine otherwise. MySites also works OK. Following the implementation of this change, these problems occur: 1) An audit failure message started appearing in the application event log, for 'DOMAIN\SPMOSSSvc' which is the MOSS farm account. Event Type: Failure Audit Event Source: MSSQLSERVER Event Category: (4) Event ID: 18456 Date: 8/5/2008 Time: 3:55:19 PM User: DOMAIN\SPMOSSSvc Computer: dastest01 Description: Login failed for user 'DOMAIN\SPMOSSSvc'. [CLIENT: <local machine>] 2) SQL Server profiler is showing queries from SharePoint that reference the old (deleted) SSP database. So... * Where would these references to DOMAIN\SPMOSSSvc and the old SSP database exist? * Is there a way to 'completely' remove the SSP from the server, and re-create? The option to delete was not available (greyed out) when a single SSP is in place.
0
4,767
08/07/2008 14:30:41
398
08/05/2008 12:58:30
29
4
Resources for getting into microcontroller programming
Recently I've been playing with an Arduino board as one of my hobbies, I'm having lots of fun with it and I'd like to get into circuits etc in a much bigger way. I've done a lot of research on various avenues I could go down, but I'm sure some of you guys know which books/sites are best. I'm comfortable in c++ and c#, I know there's a board that you can write c# code for and most chips use c, please feel free to answer any number of the following questions. 1) What are the best books/sites for someone looking to break into writing for microcontrollers, eg I've heard avrFreaks has lots of info **(Most important question)** 2) Is it true that for the majority of controllers C is the only choice? No OO possible? 3) Is there any emulation software that would give me a virtual microcontroller and let me try out code with different components etc connected to the controller, so I don't have to buy them to play with em? 4) I live in england, what sites do you know of that have a wide range of parts/good prices for components etc? Thanks in advance !
microcontroller
null
null
null
null
null
open
Resources for getting into microcontroller programming === Recently I've been playing with an Arduino board as one of my hobbies, I'm having lots of fun with it and I'd like to get into circuits etc in a much bigger way. I've done a lot of research on various avenues I could go down, but I'm sure some of you guys know which books/sites are best. I'm comfortable in c++ and c#, I know there's a board that you can write c# code for and most chips use c, please feel free to answer any number of the following questions. 1) What are the best books/sites for someone looking to break into writing for microcontrollers, eg I've heard avrFreaks has lots of info **(Most important question)** 2) Is it true that for the majority of controllers C is the only choice? No OO possible? 3) Is there any emulation software that would give me a virtual microcontroller and let me try out code with different components etc connected to the controller, so I don't have to buy them to play with em? 4) I live in england, what sites do you know of that have a wide range of parts/good prices for components etc? Thanks in advance !
0
4,769
08/07/2008 14:31:55
1,384,652
08/01/2008 12:01:23
519
39
Easiest language to start with
What is the language with the lowest barriers to entry, simplest syntax, easiest setup. I'm aware that there's not a best language but I am sure that there will be one that's got a good score in all three areas. It's for teaching friends how to program, I like PHP and Python but I don't want to be narrow minded and limit myself when there is a better option out there.
teaching
null
null
null
null
11/18/2011 18:31:50
not constructive
Easiest language to start with === What is the language with the lowest barriers to entry, simplest syntax, easiest setup. I'm aware that there's not a best language but I am sure that there will be one that's got a good score in all three areas. It's for teaching friends how to program, I like PHP and Python but I don't want to be narrow minded and limit myself when there is a better option out there.
4
4,782
08/07/2008 14:38:59
177
08/03/2008 02:15:39
1
0
How much database performance overhead when using LINQ?
How much database performance overhead is involved with using C# and LINQ compared to custom optimized queries loaded with mostly low-level C, both with a SQL Server 2008 backend? I'm specifically thinking here of a case where you have a fairly data-intensive program and will be doing a data refresh or update at least once per screen and will have 50-100 simultaneous users.
linq-to-sql
linq
sql-server
null
null
null
open
How much database performance overhead when using LINQ? === How much database performance overhead is involved with using C# and LINQ compared to custom optimized queries loaded with mostly low-level C, both with a SQL Server 2008 backend? I'm specifically thinking here of a case where you have a fairly data-intensive program and will be doing a data refresh or update at least once per screen and will have 50-100 simultaneous users.
0
4,785
08/07/2008 14:39:25
527
08/06/2008 14:44:09
56
12
What is called a Node in a WebSpere Network Deployment
In a installation of WebSphere Application Server with Network Deployment, a node is: <ol> <li>a physical machine</li> <li>an instance of operative system</li> <li>a logical set of WAS instances that is independent of physical machine or OS instance</li> </ol>
websphere
deployment
cluster-analysis
null
null
null
open
What is called a Node in a WebSpere Network Deployment === In a installation of WebSphere Application Server with Network Deployment, a node is: <ol> <li>a physical machine</li> <li>an instance of operative system</li> <li>a logical set of WAS instances that is independent of physical machine or OS instance</li> </ol>
0
4,816
08/07/2008 14:56:59
390
08/05/2008 11:53:49
61
7
How do you resolve a domain name to an IP address with .NET/C#?
How do you resolve a domain name to an IP address with .NET/C#?
c#
.net
null
null
null
null
open
How do you resolve a domain name to an IP address with .NET/C#? === How do you resolve a domain name to an IP address with .NET/C#?
0
4,824
08/07/2008 15:00:34
75
08/01/2008 15:54:25
58
9
String.indexOf function in C
Is there a C library function that will return the index of a character in a string? So far, all I've found are functions like strstr that will return the found char *, not it's location in the original string.
c
string
null
null
null
null
open
String.indexOf function in C === Is there a C library function that will return the index of a character in a string? So far, all I've found are functions like strstr that will return the found char *, not it's location in the original string.
0
4,839
08/07/2008 15:12:10
547
08/06/2008 16:09:22
65
12
How do I configure eclipse (zend studio 6) to hint and code complete several languages?
My dream IDE does full code hints, explains and completes PHP, Javascript, HTML and CSS. I know it exists! so far, [Zend studio 6][1], under the Eclipse IDE does a great job at hinting PHP, some Javascript and HTML, any way I can expand this? /mp [1]: http://www.zend.com/en/products/studio/features
zend
ide
codecompletion
null
null
null
open
How do I configure eclipse (zend studio 6) to hint and code complete several languages? === My dream IDE does full code hints, explains and completes PHP, Javascript, HTML and CSS. I know it exists! so far, [Zend studio 6][1], under the Eclipse IDE does a great job at hinting PHP, some Javascript and HTML, any way I can expand this? /mp [1]: http://www.zend.com/en/products/studio/features
0
4,849
08/07/2008 15:22:40
618
08/07/2008 11:16:45
1
3
Drag and Drop to a hosted Browser control
I have a WinForms program written on .NET 2 which hosts a webbrowser control and renders asp.net pages from a known server. I would like to be able to drag, say, a tree node from a treeview in my winforms app into a specific location in the hosted web page and have it trigger a javascript event there. Currently, I can implement the IDocHostUIHandler interface and getting drag\drop events on the browser control, then call Navigate("javascript:fire_event(...)") on the control to execute a script on the page. However, I want this to work only when I drop data on a *specific* part of the page. One solution, I suppose, would be to bite the bullet and write a custom browser plugin in the form of an activex control, embed that in the location I want to drop to and let that implement the needed drag\drop interfaces. Would that work? Is there a cleaner approach? Can I take advantage of the fact that the browser control is hosted in my app and provide some further level of interaction?
c#
browser
null
null
null
null
open
Drag and Drop to a hosted Browser control === I have a WinForms program written on .NET 2 which hosts a webbrowser control and renders asp.net pages from a known server. I would like to be able to drag, say, a tree node from a treeview in my winforms app into a specific location in the hosted web page and have it trigger a javascript event there. Currently, I can implement the IDocHostUIHandler interface and getting drag\drop events on the browser control, then call Navigate("javascript:fire_event(...)") on the control to execute a script on the page. However, I want this to work only when I drop data on a *specific* part of the page. One solution, I suppose, would be to bite the bullet and write a custom browser plugin in the form of an activex control, embed that in the location I want to drop to and let that implement the needed drag\drop interfaces. Would that work? Is there a cleaner approach? Can I take advantage of the fact that the browser control is hosted in my app and provide some further level of interaction?
0
4,850
08/07/2008 15:23:28
41
08/01/2008 12:56:51
36
3
C# and Arrow Keys
I am new to C# and am doing some work in an existing application. I have a DirectX viewport that has components in it that I want to be able to position using arrow keys. Currently I am overriding ProcessCmdKey and catching arrow input and send an OnKeyPress event. This works, but I want to be able to use modifiers(ALT + CTRL + SHIFT). As soon as I am holding a modifier and press an arrow no events are triggered that I am listening to. Does anyone have any ideas or suggestions on where I should go with this?
c#
gui
directx
null
null
null
open
C# and Arrow Keys === I am new to C# and am doing some work in an existing application. I have a DirectX viewport that has components in it that I want to be able to position using arrow keys. Currently I am overriding ProcessCmdKey and catching arrow input and send an OnKeyPress event. This works, but I want to be able to use modifiers(ALT + CTRL + SHIFT). As soon as I am holding a modifier and press an arrow no events are triggered that I am listening to. Does anyone have any ideas or suggestions on where I should go with this?
0
4,860
08/07/2008 15:33:59
661
08/07/2008 15:33:59
1
0
Authoritative source on XML-sig
We have a question with regards to XML-sig and need detail about the optional elements as well as some of the canonicalization and transform stuff. We're writing a spec for a very small XML-syntax payload that will go into the metadata of media files and it needs to by cryptographically signed. Rather than re-invent the wheel, We thought we should use the XML-sig spec but I think most of it is overkill for what we need, and so we like to have more information/dialogue with people who know the details. Specifically, do we need to care about either transforms or canonicalization if the XML is very basic with no tabs for formatting and is specific to our needs? THANKS TO ALL IN ADVANCE!
xml
xml-sig
null
null
null
null
open
Authoritative source on XML-sig === We have a question with regards to XML-sig and need detail about the optional elements as well as some of the canonicalization and transform stuff. We're writing a spec for a very small XML-syntax payload that will go into the metadata of media files and it needs to by cryptographically signed. Rather than re-invent the wheel, We thought we should use the XML-sig spec but I think most of it is overkill for what we need, and so we like to have more information/dialogue with people who know the details. Specifically, do we need to care about either transforms or canonicalization if the XML is very basic with no tabs for formatting and is specific to our needs? THANKS TO ALL IN ADVANCE!
0
4,870
08/07/2008 15:43:11
483
08/06/2008 08:54:52
1
3
Why is this regular expression faster?
I'm writing a Telnet client of sorts in C# and part of what I have to parse are ANSI/VT100 escape sequences, specifically, just those used for colour and formatting (detailed [here](http://www.termsys.demon.co.uk/vtansi.htm#colors)). One method I have is one to find all the codes and remove them, so I can render the text without any formatting if needed: public static string StripStringFormating(string formattedString) { if (rTest.IsMatch(formattedString)) return rTest.Replace(formattedString, string.Empty); else return formattedString; } I'm new to regular expressions and I was suggested to use this: static Regex rText = new Regex(@"\e\[[\d;]+m", RegexOptions.Compiled); However, this failed if the escape code was incomplete due to an error on the server. So then this was suggested, but my friend warned it might be slower (this one also matches another condition (z) that I might come across later): static Regex rTest = new Regex(@"(\e(\[([\d;]*[mz]?))?)?", RegexOptions.Compiled); This not only worked, but was in fact faster to and reduced the impact on my text rendering. Can someone explain to a regexp newbie, why? :)
regex
regularexpression
null
null
null
null
open
Why is this regular expression faster? === I'm writing a Telnet client of sorts in C# and part of what I have to parse are ANSI/VT100 escape sequences, specifically, just those used for colour and formatting (detailed [here](http://www.termsys.demon.co.uk/vtansi.htm#colors)). One method I have is one to find all the codes and remove them, so I can render the text without any formatting if needed: public static string StripStringFormating(string formattedString) { if (rTest.IsMatch(formattedString)) return rTest.Replace(formattedString, string.Empty); else return formattedString; } I'm new to regular expressions and I was suggested to use this: static Regex rText = new Regex(@"\e\[[\d;]+m", RegexOptions.Compiled); However, this failed if the escape code was incomplete due to an error on the server. So then this was suggested, but my friend warned it might be slower (this one also matches another condition (z) that I might come across later): static Regex rTest = new Regex(@"(\e(\[([\d;]*[mz]?))?)?", RegexOptions.Compiled); This not only worked, but was in fact faster to and reduced the impact on my text rendering. Can someone explain to a regexp newbie, why? :)
0
4,880
08/07/2008 15:54:22
323
08/04/2008 16:42:43
1
0
Is a "Confirm Email" input good practice when user changes email address?
My organization has a form to allow users to update their email address with us. It's suggested that we have two input boxes for email: the second as an email confirmation. I always copy/paste my email address when faced with the confirmation. I'm assuming most of our users are not so savvy. Regardless, is this considered a good practice? I can't stand it personally, but I also realize it probably isn't meant for me. If someone screws up their email, they can't login, and they must call to sort things out.
html
bestpractices
email
forms
confirm
null
open
Is a "Confirm Email" input good practice when user changes email address? === My organization has a form to allow users to update their email address with us. It's suggested that we have two input boxes for email: the second as an email confirmation. I always copy/paste my email address when faced with the confirmation. I'm assuming most of our users are not so savvy. Regardless, is this considered a good practice? I can't stand it personally, but I also realize it probably isn't meant for me. If someone screws up their email, they can't login, and they must call to sort things out.
0
4,884
08/07/2008 15:58:10
547
08/06/2008 16:09:22
80
12
Javascript keyboard events primer? (or rather: help me with my custom dropdown)
I need help finishing my custom built ajax [div] based dynamic dropdown. Basically, I have an [input] box which; onkeyup, runs an Ajax search which returns a bunch of results in divs and are drawn back in using innerHTML. These divs all have highlights onmouseover so, a typical successfull search yields the following structure (pardon the semicode): [input] [div id=results] //this gets overwritten contantly by my AJAX function [div id=result1 onmouseover=highlight onclick=input.value=result1] [div id=result2 onmouseover=highlight onclick=input.value=result2] [div id=result2 onmouseover=highlight onclick=input.value=result2] [/div] It works.. beautifully! looks elegant and is way more complete than any regular dropdown (those results div bring in a lot of information). However, I'm missing the most of important functions behind regular HTML elements, that is, I can't keyboard down or up between "options". How do I do this? I know javascript handles keyboard events but; I haven't been able to find a good guide on how to do this. (of course the follow up question to this will eventually end up being: "can I use <ENTER> to trigger that onclick event) Phew! Cheers, /mp
javascript
events
keyboard
null
null
null
open
Javascript keyboard events primer? (or rather: help me with my custom dropdown) === I need help finishing my custom built ajax [div] based dynamic dropdown. Basically, I have an [input] box which; onkeyup, runs an Ajax search which returns a bunch of results in divs and are drawn back in using innerHTML. These divs all have highlights onmouseover so, a typical successfull search yields the following structure (pardon the semicode): [input] [div id=results] //this gets overwritten contantly by my AJAX function [div id=result1 onmouseover=highlight onclick=input.value=result1] [div id=result2 onmouseover=highlight onclick=input.value=result2] [div id=result2 onmouseover=highlight onclick=input.value=result2] [/div] It works.. beautifully! looks elegant and is way more complete than any regular dropdown (those results div bring in a lot of information). However, I'm missing the most of important functions behind regular HTML elements, that is, I can't keyboard down or up between "options". How do I do this? I know javascript handles keyboard events but; I haven't been able to find a good guide on how to do this. (of course the follow up question to this will eventually end up being: "can I use <ENTER> to trigger that onclick event) Phew! Cheers, /mp
0
4,891
08/07/2008 16:06:33
567
08/06/2008 19:14:16
1
2
What point should someone decide to switch Database Systems
When developing whether its Web or Desktop at which point should a developer switch from SQLite, Mysql, MSSql, etc, etc
sql
database
null
null
null
null
open
What point should someone decide to switch Database Systems === When developing whether its Web or Desktop at which point should a developer switch from SQLite, Mysql, MSSql, etc, etc
0
4,911
08/07/2008 16:19:40
350
08/04/2008 23:06:23
153
7
ASP.NET authentication: user name Vs User ID
So in my simple learning website, I use the built in ASP.NET authentication system. I am adding now a user table to save stuff like his zip, DOB etc'. My question is: 1. In the new table, should the key be the user name (the string) or the user ID which is that GUID looking number they use in the asp_ tables. 2. If the best practice is to use that ugly guid, anyone knows how to get it? it seems to not be accessible as easily as the name
asp.net
authentication
null
null
null
null
open
ASP.NET authentication: user name Vs User ID === So in my simple learning website, I use the built in ASP.NET authentication system. I am adding now a user table to save stuff like his zip, DOB etc'. My question is: 1. In the new table, should the key be the user name (the string) or the user ID which is that GUID looking number they use in the asp_ tables. 2. If the best practice is to use that ugly guid, anyone knows how to get it? it seems to not be accessible as easily as the name
0
4,913
08/07/2008 16:21:59
626
08/07/2008 11:52:05
1
0
How to make a button appear as if it is pressed?
Using VS2008, C#, .Net 2 and Winforms how can I make a regular Button look "pressed"? Imagine this button is an on/off switch. ToolStripButton has the Checked property, but the regular Button does not.
c#
.net
winforms
gui
button
null
open
How to make a button appear as if it is pressed? === Using VS2008, C#, .Net 2 and Winforms how can I make a regular Button look "pressed"? Imagine this button is an on/off switch. ToolStripButton has the Checked property, but the regular Button does not.
0
4,930
08/07/2008 16:35:33
668
08/07/2008 16:05:06
1
0
How to reference to multiple version assembly
I'm developing a Sharepoint application and use .NET AjaxControlToolkit library, we are adding a custom aspx page to the Sharepoint. Sharepoint 2007 run in quirks mode so I've made some modification to the AJAX library to make it behave like it normally should. The problem is, the other team already use AJAX library and it is a different version with mine. This cause conflict because there could be only one dll in the bin folder with the same name. From what I know, .NET should be able to handle this situation easily. I've tried using strong name and GAC to solve it, but it still refer to the dll in the bin folder. If there is no AjaxControlToolkit.dll in the bin folder, the application will simply fail to load the assembly. If I use complete assembly information on my like this <%@ Register tagprefix="AjaxControlToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit, Version=1.0.299.18064, PublicKeyToken=12345678abcdefgh, Culture=neutral" %> It gives me Compiler Error CS0433 Can someone help me on how to use multiple version of assembly in an application?
c#
.net
sharepoint
assembly
null
null
open
How to reference to multiple version assembly === I'm developing a Sharepoint application and use .NET AjaxControlToolkit library, we are adding a custom aspx page to the Sharepoint. Sharepoint 2007 run in quirks mode so I've made some modification to the AJAX library to make it behave like it normally should. The problem is, the other team already use AJAX library and it is a different version with mine. This cause conflict because there could be only one dll in the bin folder with the same name. From what I know, .NET should be able to handle this situation easily. I've tried using strong name and GAC to solve it, but it still refer to the dll in the bin folder. If there is no AjaxControlToolkit.dll in the bin folder, the application will simply fail to load the assembly. If I use complete assembly information on my like this <%@ Register tagprefix="AjaxControlToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit, Version=1.0.299.18064, PublicKeyToken=12345678abcdefgh, Culture=neutral" %> It gives me Compiler Error CS0433 Can someone help me on how to use multiple version of assembly in an application?
0
4,939
08/07/2008 16:38:51
193
08/03/2008 10:44:38
114
18
LINQ to SQL strings to enums
LINQ to SQL allows table mappings to automatically convert back and forth to Enums by specifying the type for the column - this works for strings or integers. Is there a way to make the conversion case insensitive or add a custom mapping class or extenstion method into the mix so that I can specify what the string should look like in more detail. Reasons for doing so might be in order to supply a nicer naming convention inside some new funky C# code in a system where the data schema is already set (and is being relied upon by some legacy apps) so the actual text in the database can't be changed.
linq-to-sql
null
null
null
null
null
open
LINQ to SQL strings to enums === LINQ to SQL allows table mappings to automatically convert back and forth to Enums by specifying the type for the column - this works for strings or integers. Is there a way to make the conversion case insensitive or add a custom mapping class or extenstion method into the mix so that I can specify what the string should look like in more detail. Reasons for doing so might be in order to supply a nicer naming convention inside some new funky C# code in a system where the data schema is already set (and is being relied upon by some legacy apps) so the actual text in the database can't be changed.
0
4,941
08/07/2008 16:41:58
288
08/04/2008 12:50:02
1
0
Virtual machine supporting multiple displays
Is there a way to get MS virtual PC 2007 to support multiple displays? Or is there another virtual machine product available that will allow me to work with multiple displays? At the company I work for we do all of our development in virtual machines. We currently use MS Virtual PC 2007 for this. I would love to be able to spread my machine's display across multiple displays, but I don't know of any way to do this. Any advice would be appreciated.
hardware
environment
monitor
virtual
null
null
open
Virtual machine supporting multiple displays === Is there a way to get MS virtual PC 2007 to support multiple displays? Or is there another virtual machine product available that will allow me to work with multiple displays? At the company I work for we do all of our development in virtual machines. We currently use MS Virtual PC 2007 for this. I would love to be able to spread my machine's display across multiple displays, but I don't know of any way to do this. Any advice would be appreciated.
0
4,942
08/07/2008 16:43:21
1,384,652
08/01/2008 12:01:23
554
39
How to sell Python to a client/boss/person with lots of cash
When asked to create system XYZ and you ask to do it in Python over PHP or Ruby, what are the main features you can mention when they require you to explain it?
python
php
ruby
rubyonrails
null
null
open
How to sell Python to a client/boss/person with lots of cash === When asked to create system XYZ and you ask to do it in Python over PHP or Ruby, what are the main features you can mention when they require you to explain it?
0
4,949
08/07/2008 16:46:32
673
08/07/2008 16:33:05
1
2
Version control PHP Web Project
We have a php project that we would like to version control. Right now there are three of us working on a "Dev" version of the project that all have our Eclipse linked to it with just an external folder, and thus no version control. What is the right way, and what is the best way, to version control this (not necessarily the same I dont think) We have a SVN set up but just need to find a good way to check in and check out that lets us test on the dev server. Any ideas?
svn
server
webdevelopment
version-control
cvs
null
open
Version control PHP Web Project === We have a php project that we would like to version control. Right now there are three of us working on a "Dev" version of the project that all have our Eclipse linked to it with just an external folder, and thus no version control. What is the right way, and what is the best way, to version control this (not necessarily the same I dont think) We have a SVN set up but just need to find a good way to check in and check out that lets us test on the dev server. Any ideas?
0
4,952
08/07/2008 16:47:38
673
08/07/2008 16:33:05
1
2
Database Version Control
Is there a good way to check database structure into a SVN? Perhaps checking in a DDL file when changed? Any ideas?
svn
version-control
oracle
versioncontrol
null
null
open
Database Version Control === Is there a good way to check database structure into a SVN? Perhaps checking in a DDL file when changed? Any ideas?
0
4,954
08/07/2008 16:48:42
518
08/06/2008 14:07:17
21
5
What are good regular expressions?
i have worked for 5 years mainly in java desktop applications accessing Oracle databases and i have never used regular expressions. Now i enter Stackoverflow and i see a lot of questions about them and i feel like if i missed something. For what do you use regular expresions? P.D sorry for my bad english
regex
null
null
null
null
null
open
What are good regular expressions? === i have worked for 5 years mainly in java desktop applications accessing Oracle databases and i have never used regular expressions. Now i enter Stackoverflow and i see a lot of questions about them and i feel like if i missed something. For what do you use regular expresions? P.D sorry for my bad english
0
4,973
08/07/2008 17:02:23
404
08/05/2008 13:34:59
268
19
Setting a div's height in HTML with CSS
I am a CSS newbie trying to layout a table-like page with two columns. I want the rightmost column to dock to the right of the page, and this column should have a distinct background color. The content in the right side is almost always going to be smaller than that on the left. I would like the div on the right to always be tall enough to reach the separator for the row below it. How can I make my background color fill that space? <html> <body> <style type="text/css"> .rightfloat { color: red; background-color: #BBBBBB; float: right; width: 200px; } .left { font-size: 20pt; } .separator { clear: both; width: 100%; border-top: 1px solid black; } </style> <div class="separator"> <div class="rightfloat"> Some really short content. </div> <div class="left"> Some really really really really really really really really really really big content </div> </div> <div class="separator"> <div class="rightfloat"> Some more short content. </div> <div class="left"> Some really really really really really really really really really really big content </div> </div> </body> </html>
html
css
height
null
null
null
open
Setting a div's height in HTML with CSS === I am a CSS newbie trying to layout a table-like page with two columns. I want the rightmost column to dock to the right of the page, and this column should have a distinct background color. The content in the right side is almost always going to be smaller than that on the left. I would like the div on the right to always be tall enough to reach the separator for the row below it. How can I make my background color fill that space? <html> <body> <style type="text/css"> .rightfloat { color: red; background-color: #BBBBBB; float: right; width: 200px; } .left { font-size: 20pt; } .separator { clear: both; width: 100%; border-top: 1px solid black; } </style> <div class="separator"> <div class="rightfloat"> Some really short content. </div> <div class="left"> Some really really really really really really really really really really big content </div> </div> <div class="separator"> <div class="rightfloat"> Some more short content. </div> <div class="left"> Some really really really really really really really really really really big content </div> </div> </body> </html>
0
4,986
08/07/2008 17:14:08
673
08/07/2008 16:33:05
25
3
Web App Beta
What is a good way to get people to alpha test a web application that I am making. I want people to use it and to get feedback about in what ways I need to change it (cus there are a lot, but what is most important?) http://adamlerman.blogspot.com/2008/07/budgetjax.html for desctiption http://www.busgetjax.com for app. (No real docs)
web-applications
webstart
null
null
null
null
open
Web App Beta === What is a good way to get people to alpha test a web application that I am making. I want people to use it and to get feedback about in what ways I need to change it (cus there are a lot, but what is most important?) http://adamlerman.blogspot.com/2008/07/budgetjax.html for desctiption http://www.busgetjax.com for app. (No real docs)
0
4,994
08/07/2008 17:18:37
92
08/01/2008 17:55:41
1,228
30
How should I organize my master ddl script.
I am currently creating a master ddl for our database. Historically we have used backup/restore to version our database, and not maintained any ddl scripts. The schema is quite large. My current thinking: * Break script into parts (possibly in separate scripts): 1. table creation 2. add indexes 3. add triggers 4. add constraints * Each script would get called by the master script. * I might need a script to drop constraints temporarily for testing * There may be orphaned tables in the schema, I plan to identify suspect tables. Any other advice?
mssql
sql
schema
ddl
null
null
open
How should I organize my master ddl script. === I am currently creating a master ddl for our database. Historically we have used backup/restore to version our database, and not maintained any ddl scripts. The schema is quite large. My current thinking: * Break script into parts (possibly in separate scripts): 1. table creation 2. add indexes 3. add triggers 4. add constraints * Each script would get called by the master script. * I might need a script to drop constraints temporarily for testing * There may be orphaned tables in the schema, I plan to identify suspect tables. Any other advice?
0
4,995
08/07/2008 17:18:56
527
08/06/2008 14:44:09
68
15
What means the error SECJ0222E in WebSphere Application Server 5.1
I'm getting for that error this help in <a href="http://www-1.ibm.com/support/docview.wss?rs=404&uid=swg1PK06349">IBM's support site</a>: <blockquote> <b>Problem</b>A JAAS LoginContext could not be created due to the unexpected exception. <br/> <b>User response</b>The problem could be due to a configuration error. <br/> </blockquote> but I have not any other indication and can't determine the final reason for this error. Suggestions?
application
websphere
ibm
null
null
null
open
What means the error SECJ0222E in WebSphere Application Server 5.1 === I'm getting for that error this help in <a href="http://www-1.ibm.com/support/docview.wss?rs=404&uid=swg1PK06349">IBM's support site</a>: <blockquote> <b>Problem</b>A JAAS LoginContext could not be created due to the unexpected exception. <br/> <b>User response</b>The problem could be due to a configuration error. <br/> </blockquote> but I have not any other indication and can't determine the final reason for this error. Suggestions?
0
5,002
08/07/2008 17:21:58
627
08/07/2008 12:03:09
1
0
.NET Remoting Speed and VPNs
I'm working on a project which uses .NET Remoting for communication between the client application and an object server. For development, the client, server, and MSSQL database are all running on my local development machine. When I'm working at the office, the responsiveness is just fine. However, when I work from home the speed is ***significantly*** slower. If I disconnect from the VPN, it speeds up (I believe, but maybe that's just wishful thinking). If I turn off my wireless connection completely it immediately speeds up to full throttle. My assumption is that the remoting traffic is being routed through some point that is slowing everything down, albeit my home router and/or the VPN. Does anyone have any ideas of how to force the remoting traffic to remain completely localized?
.net
remoting
vpn
performance
wireless
null
open
.NET Remoting Speed and VPNs === I'm working on a project which uses .NET Remoting for communication between the client application and an object server. For development, the client, server, and MSSQL database are all running on my local development machine. When I'm working at the office, the responsiveness is just fine. However, when I work from home the speed is ***significantly*** slower. If I disconnect from the VPN, it speeds up (I believe, but maybe that's just wishful thinking). If I turn off my wireless connection completely it immediately speeds up to full throttle. My assumption is that the remoting traffic is being routed through some point that is slowing everything down, albeit my home router and/or the VPN. Does anyone have any ideas of how to force the remoting traffic to remain completely localized?
0
5,003
08/07/2008 17:23:47
52
08/01/2008 13:33:31
728
49
Do people actually get anything done using a laptop on a plane?
I see so many people using their laptops on the plane. Half of them watch movies/listen to music/use it for entertainment. But then there's the other half that has spreadsheets/documents/planners/productivity software opened up. I can't help but wonder how do they get anything done in such an uncomfortable environment? *Note: I'm talking about Economic class, Business class can be a comfortable place to use a laptop* **Is flight-time productive for you?**
productivity
null
null
null
null
05/24/2012 12:36:26
not constructive
Do people actually get anything done using a laptop on a plane? === I see so many people using their laptops on the plane. Half of them watch movies/listen to music/use it for entertainment. But then there's the other half that has spreadsheets/documents/planners/productivity software opened up. I can't help but wonder how do they get anything done in such an uncomfortable environment? *Note: I'm talking about Economic class, Business class can be a comfortable place to use a laptop* **Is flight-time productive for you?**
4
5,010
08/07/2008 17:26:25
667
08/07/2008 16:00:54
1
0
Best technical learning coference for developers?
In your opinion, what's the best technical conference for developers? What conferences have you attended, and what did you like about them/not like about them? I attended MS TechEd this year and learned a fair amount, but I'm interested in alternatives.
conferences
null
null
null
null
null
open
Best technical learning coference for developers? === In your opinion, what's the best technical conference for developers? What conferences have you attended, and what did you like about them/not like about them? I attended MS TechEd this year and learned a fair amount, but I'm interested in alternatives.
0
5,013
08/07/2008 17:28:16
527
08/06/2008 14:44:09
68
15
Error ADMA5026E for WebSphere Application Server Network Deployment
What I'm doing wrong that I get the ADMA5026E error when deployment an application with the NetworkDeployment Console?
deployment
server
networking
application
websphere
null
open
Error ADMA5026E for WebSphere Application Server Network Deployment === What I'm doing wrong that I get the ADMA5026E error when deployment an application with the NetworkDeployment Console?
0
5,017
08/07/2008 17:31:12
26
08/01/2008 12:18:14
317
56
Open local file with AIR / Flex
I have written an AIR Application that downloads videos and documents from a server. The videos play inside of the application, but I would like the user to be able to open the documents in their native applications. I am looking for a way to prompt the user to Open / Save As on a local file stored in the Application Storage Directory. I have tried using the FileReference + URLRequest classes but this throws an exception that it needs a remote url. My last resort is just copying the file to their desktop : \
flex
actionscript-3
air
null
null
null
open
Open local file with AIR / Flex === I have written an AIR Application that downloads videos and documents from a server. The videos play inside of the application, but I would like the user to be able to open the documents in their native applications. I am looking for a way to prompt the user to Open / Save As on a local file stored in the Application Storage Directory. I have tried using the FileReference + URLRequest classes but this throws an exception that it needs a remote url. My last resort is just copying the file to their desktop : \
0
5,024
08/07/2008 17:34:27
277
08/04/2008 10:55:22
40
2
The Perl Journal Online
Does anyone know where online copies of the old Perl Journal articles can be found? I know they are now owned by Dr. Dobb's, just the main page for it says they are part of whatever section the subject matter is relevant too, rather than being indexed together. That said, I have never been able to find any of them online on that site. I know Mark Jason Dominius has a few of his articles on his site: <http://perl.plover.com/>, any one know of any other good places? Or even what search terms to use at Dr. Dobb's?
perl
theperljournal
null
null
null
null
open
The Perl Journal Online === Does anyone know where online copies of the old Perl Journal articles can be found? I know they are now owned by Dr. Dobb's, just the main page for it says they are part of whatever section the subject matter is relevant too, rather than being indexed together. That said, I have never been able to find any of them online on that site. I know Mark Jason Dominius has a few of his articles on his site: <http://perl.plover.com/>, any one know of any other good places? Or even what search terms to use at Dr. Dobb's?
0
5,025
08/07/2008 17:36:23
657
08/07/2008 15:05:02
44
4
Locking a MSSQL Database with PHP
I'm wanting extra security for a particular point in my web app. So I want to lock the database (MSSQL 2005). Any suggestions or is this even necessary with MSSQL?
database
php
mssql
null
null
null
open
Locking a MSSQL Database with PHP === I'm wanting extra security for a particular point in my web app. So I want to lock the database (MSSQL 2005). Any suggestions or is this even necessary with MSSQL?
0
5,027
08/07/2008 17:38:09
681
08/07/2008 17:38:09
1
0
Reduce ASP.NET menu control size (without 3rd party libraries)
I have a fairly simple ASP.NET 2.0 menu control using a sitemap file and security trimmings. There are only 21 menu options, but the results HTML of the menu is a whopping 14k. The site is hosted on our company's intranet and must be serverd to people worldwide on limited bandwidth, so I'd like to reduce the size of the menus. What is the best way to do this? Does anybody have a good reference? I have the following constraints: - The solution cannot reference any 3rd part DLL files (getting approval would be a nightmare) - Must work with IE 6 CSS and JavaScript are fine, as long as they work with IE 6.
asp.net
size
null
null
null
null
open
Reduce ASP.NET menu control size (without 3rd party libraries) === I have a fairly simple ASP.NET 2.0 menu control using a sitemap file and security trimmings. There are only 21 menu options, but the results HTML of the menu is a whopping 14k. The site is hosted on our company's intranet and must be serverd to people worldwide on limited bandwidth, so I'd like to reduce the size of the menus. What is the best way to do this? Does anybody have a good reference? I have the following constraints: - The solution cannot reference any 3rd part DLL files (getting approval would be a nightmare) - Must work with IE 6 CSS and JavaScript are fine, as long as they work with IE 6.
0
5,061
08/07/2008 17:59:42
296
08/04/2008 13:26:48
76
9
ASP.NET version of Joomla
Does anyone ever found/used an ASP.NET application similar to Joomla?<br /> I need to set up a quick and dirty CMS on a Windows Server and our client doesn't want us to use something else than ASP.NET.<br /> Thanks!
asp.net
content-management-system
joomla
null
null
07/14/2012 04:33:40
not constructive
ASP.NET version of Joomla === Does anyone ever found/used an ASP.NET application similar to Joomla?<br /> I need to set up a quick and dirty CMS on a Windows Server and our client doesn't want us to use something else than ASP.NET.<br /> Thanks!
4
5,071
08/07/2008 18:05:28
422
08/05/2008 15:11:55
138
13
How to add CVS directories recursively
I've played with CVS a little bit and am not the most familiar with all of its capabilities, but a huge annoyance for me is trying to add new directories that contain more directories in them. Running "`cvs add`" only adds the contents of the current directory, and using "`cvs import`" didn't look like the right thing either since it's still all code I'm producing (this howto claimed import is for [3rd party sources][1]) Do you guys know any way to recursively add everything in a given directory to the current CVS project (or if SVN or git makes this notably easier)? [1]: http://www.thathost.com/wincvs-howto/cvsdoc/cvs_16.html#SEC136
svn
version-control
git
cvs
null
null
open
How to add CVS directories recursively === I've played with CVS a little bit and am not the most familiar with all of its capabilities, but a huge annoyance for me is trying to add new directories that contain more directories in them. Running "`cvs add`" only adds the contents of the current directory, and using "`cvs import`" didn't look like the right thing either since it's still all code I'm producing (this howto claimed import is for [3rd party sources][1]) Do you guys know any way to recursively add everything in a given directory to the current CVS project (or if SVN or git makes this notably easier)? [1]: http://www.thathost.com/wincvs-howto/cvsdoc/cvs_16.html#SEC136
0
5,075
08/07/2008 18:07:48
1,384,652
08/01/2008 12:01:23
590
42
Bigger than a char but smaller than a blob
Char's are great because they are fixed size and thus make for a faster table. They are however limited to 255 characters. I want to hold 500 characters but a blob is variable length and that's not what I want. Is there some way to have a fixed length field of 500 characters in MySQL or am I going to have to use 2 char fields?
mysql
null
null
null
null
null
open
Bigger than a char but smaller than a blob === Char's are great because they are fixed size and thus make for a faster table. They are however limited to 255 characters. I want to hold 500 characters but a blob is variable length and that's not what I want. Is there some way to have a fixed length field of 500 characters in MySQL or am I going to have to use 2 char fields?
0
5,078
08/07/2008 18:10:17
318
08/04/2008 15:47:15
36
10
Personal Linux web server
I'd like to set up a cheap Linux box as a web server to host a variety of web technologies (PHP & Java EE come to mind, but I'd like to experiment with Ruby or Python in the future as well). I'm fairly versed in setting up Tomcat to run on Linux for serving up Java EE applications, but I'd like to be able to open this server up, even just so I can create some tools I can use while I am working in the office. All the experience I've had with configuring Java EE sites has all been for intranet applications where we were told not to focus on securing the pages for external users. What is your advice on setting up a personal Linux web server in a secure enough way to open it up for external traffic?
java
php
linux
security
server
null
open
Personal Linux web server === I'd like to set up a cheap Linux box as a web server to host a variety of web technologies (PHP & Java EE come to mind, but I'd like to experiment with Ruby or Python in the future as well). I'm fairly versed in setting up Tomcat to run on Linux for serving up Java EE applications, but I'd like to be able to open this server up, even just so I can create some tools I can use while I am working in the office. All the experience I've had with configuring Java EE sites has all been for intranet applications where we were told not to focus on securing the pages for external users. What is your advice on setting up a personal Linux web server in a secure enough way to open it up for external traffic?
0
5,084
08/07/2008 18:16:00
576
08/06/2008 21:34:52
8
1
Upload form does not work in FireFox 3 with Mac OS X
Just ran into this weird problem with a user using Mac OS X. This user always had a failed upload. The form uses a regular "input type=file". The user could upload using any browser except FireFox 3 on his Mac. Only this particular user was seeing this error. Obviously, the problem is only with this one particular user.
firefox
upload
osx
null
null
null
open
Upload form does not work in FireFox 3 with Mac OS X === Just ran into this weird problem with a user using Mac OS X. This user always had a failed upload. The form uses a regular "input type=file". The user could upload using any browser except FireFox 3 on his Mac. Only this particular user was seeing this error. Obviously, the problem is only with this one particular user.
0
5,087
08/07/2008 18:17:22
682
08/07/2008 17:50:09
11
2
Learning Ruby on Rails any good for Grails?
My company is in the process of starting down the Grails path. The reason for that is that the current developers are heavy on Java but felt the need for a MVC-style language for some future web development projects. Personally, I'm coming from the design/usability world, but as I take more "front-end" responsibilities I'm starting to feel the need for learning a language more intensively so I can code some logic but especially the front-end code for my UIs and stuff. I've been trying to get into Python/Django personally, but just never invested too much time on it. Now that my company is "jumping" into Grails I bought the "Agile Web Development with Rails (3rd Ed - Beta)" and I'm starting to get into RoR. I'd still like to learn Python in the future or on the side, but my biggest question is: - Should I be learning RoR, and have a more versatile language in my "portfolio", knowing that my RoR knowledge will be useful for my Grails needs as well?? -OR- - Should I just skip RoR and focus on learning Grails that I'll be needing for work soon, and work on learning RoR/Django (Ruby/Python) later? Basically the question revolves around the usefulness of Grails in a non-corporate setting and the similarities between Rails and Grails. (and this, while trying to avoid the centennial discussion of Python vs Ruby (on Rails) :) hehe) Thanks in advance folks! :)
rubyonrails
python
django
ruby
grails
null
open
Learning Ruby on Rails any good for Grails? === My company is in the process of starting down the Grails path. The reason for that is that the current developers are heavy on Java but felt the need for a MVC-style language for some future web development projects. Personally, I'm coming from the design/usability world, but as I take more "front-end" responsibilities I'm starting to feel the need for learning a language more intensively so I can code some logic but especially the front-end code for my UIs and stuff. I've been trying to get into Python/Django personally, but just never invested too much time on it. Now that my company is "jumping" into Grails I bought the "Agile Web Development with Rails (3rd Ed - Beta)" and I'm starting to get into RoR. I'd still like to learn Python in the future or on the side, but my biggest question is: - Should I be learning RoR, and have a more versatile language in my "portfolio", knowing that my RoR knowledge will be useful for my Grails needs as well?? -OR- - Should I just skip RoR and focus on learning Grails that I'll be needing for work soon, and work on learning RoR/Django (Ruby/Python) later? Basically the question revolves around the usefulness of Grails in a non-corporate setting and the similarities between Rails and Grails. (and this, while trying to avoid the centennial discussion of Python vs Ruby (on Rails) :) hehe) Thanks in advance folks! :)
0
5,100
08/07/2008 18:23:54
659
08/07/2008 15:08:33
11
1
Portable Apps for Development?
Can anybody recommend some good portable apps for development? I'd prefer not to deal with U3, but what I'm hoping for is an IDE/editor with code completion and syntax highlighting.
softwaretools
null
null
null
null
null
open
Portable Apps for Development? === Can anybody recommend some good portable apps for development? I'd prefer not to deal with U3, but what I'm hoping for is an IDE/editor with code completion and syntax highlighting.
0
5,102
08/07/2008 18:24:12
556
08/06/2008 16:48:23
146
8
How do you set up Python scripts to work in Apache 2.0?
I tried to follow a couple of googled up tutorials on setting up mod_python, but failed every time. Do you have a good, step-by step, rock-solid howto?
python
apache
null
null
null
null
open
How do you set up Python scripts to work in Apache 2.0? === I tried to follow a couple of googled up tutorials on setting up mod_python, but failed every time. Do you have a good, step-by step, rock-solid howto?
0
5,118
08/07/2008 18:31:22
5
07/31/2008 14:22:31
125
10
How to set up a CSS switcher in ASP.NET
I'm working on a website which will switch to a new style on a set date. The site's built in semantic HTML and CSS, so the change should just require a CSS reference change. I'm working with a designer who will need to be able to see how it's looking, as well as a client who will need to be able to review content updates in the current look as well as design progress on the new look. I'm planning to use a magic querystring value and / or a javascript link in the footer which writes out a cookie to select the new CSS page. We're working in ASP.NET 3.5. Any recommendations?
asp.net
css
javascript
null
null
null
open
How to set up a CSS switcher in ASP.NET === I'm working on a website which will switch to a new style on a set date. The site's built in semantic HTML and CSS, so the change should just require a CSS reference change. I'm working with a designer who will need to be able to see how it's looking, as well as a client who will need to be able to review content updates in the current look as well as design progress on the new look. I'm planning to use a magic querystring value and / or a javascript link in the footer which writes out a cookie to select the new CSS page. We're working in ASP.NET 3.5. Any recommendations?
0
10,381,615
04/30/2012 09:49:45
1,365,464
04/30/2012 09:31:46
1
0
unrecognized selector exception when handling sudzc.com soap result
I have build an app around the sudzc.com generated code to access my soap web service. The soap request and the handling are placed in my UITableViewController subclass. This is the relevant code: 1 - (void)viewDidLoad { 2 [...] 3 NSLog(@"Starting Soap Request"); 4 CCExample_ManagerService* soapService = [[CCExample_ManagerService alloc] init]; 5 [soapService getActiveVehicles:self action:@selector(getActiveVehiclesHandler:)]; 6 } 7 8 - (void) getActiveVehiclesHandler: (id) value { 9 [...] 10 } I'm getting the following exception at line 5: > *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI addObject:]: unrecognized selector sent to instance 0x112730' After a lot of searching, I am really desperate, since the selector method is in the same class and thus visible. The very same code is also perfectly working in another project, so I'm unsure what prevents it from running in this particular case.
iphone
objective-c
selectors
unrecognized-selector
sudzc
null
open
unrecognized selector exception when handling sudzc.com soap result === I have build an app around the sudzc.com generated code to access my soap web service. The soap request and the handling are placed in my UITableViewController subclass. This is the relevant code: 1 - (void)viewDidLoad { 2 [...] 3 NSLog(@"Starting Soap Request"); 4 CCExample_ManagerService* soapService = [[CCExample_ManagerService alloc] init]; 5 [soapService getActiveVehicles:self action:@selector(getActiveVehiclesHandler:)]; 6 } 7 8 - (void) getActiveVehiclesHandler: (id) value { 9 [...] 10 } I'm getting the following exception at line 5: > *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI addObject:]: unrecognized selector sent to instance 0x112730' After a lot of searching, I am really desperate, since the selector method is in the same class and thus visible. The very same code is also perfectly working in another project, so I'm unsure what prevents it from running in this particular case.
0
10,381,590
04/30/2012 09:48:27
1,340,131
04/18/2012 02:00:02
2
0
Schedule post on facebook's wall using spring social
I would schedule post on facebook's wall using spring social ?How can I do this !!
facebook
spring
facebook-graph-api
spring-social
null
null
open
Schedule post on facebook's wall using spring social === I would schedule post on facebook's wall using spring social ?How can I do this !!
0
10,381,592
04/30/2012 09:48:28
1,192,188
02/06/2012 11:51:48
31
19
Sql select query out put with specific formated value
I need, if possible, a t-sql query that, returning the values with specific data value from column, i can to do from progamatically(c#) dotnet. but is it possible to do in query using ms sql 2008 ? heres the current query select id,server_name,domain_name from mastertable Current Out id server_name domanin_name 1 sys1 one.abc.in 2 sys2 two.pqr.in 3 sys3 three.abc.in 4 sys4 four.xyz.in i need to display data as skip value after (.) for column domain_name id server_name domanin_name 1 sys1 one 2 sys2 two 3 sys3 three 4 sys4 four Thanks in advance
sql-server
sql-server-2008
tsql
null
null
null
open
Sql select query out put with specific formated value === I need, if possible, a t-sql query that, returning the values with specific data value from column, i can to do from progamatically(c#) dotnet. but is it possible to do in query using ms sql 2008 ? heres the current query select id,server_name,domain_name from mastertable Current Out id server_name domanin_name 1 sys1 one.abc.in 2 sys2 two.pqr.in 3 sys3 three.abc.in 4 sys4 four.xyz.in i need to display data as skip value after (.) for column domain_name id server_name domanin_name 1 sys1 one 2 sys2 two 3 sys3 three 4 sys4 four Thanks in advance
0
10,381,620
04/30/2012 09:50:16
1,365,495
04/30/2012 09:47:25
1
0
How can I fix the background of wikipedia pages as displayed in Google Chrome?
See image here: http://i.imgur.com/VAww8.png The background of all wikipedia pages is always blue in Chrome. I am not sure how to fix this, I have tried the obvious stuff like closing and re-opening Chrome and deleting my cache.
osx
google-chrome
google
null
null
null
open
How can I fix the background of wikipedia pages as displayed in Google Chrome? === See image here: http://i.imgur.com/VAww8.png The background of all wikipedia pages is always blue in Chrome. I am not sure how to fix this, I have tried the obvious stuff like closing and re-opening Chrome and deleting my cache.
0
10,381,623
04/30/2012 09:50:34
843,787
07/14/2011 02:36:57
800
34
RoR change format of date displayed from database?
I have a row in my database that displays the date in the following format: `2012-04-26` . Say i take that value and store it in a variable `@date`. How can i change that format to say, 04-26-2012, or maybe even April 26th ?
ruby-on-rails
ruby
null
null
null
null
open
RoR change format of date displayed from database? === I have a row in my database that displays the date in the following format: `2012-04-26` . Say i take that value and store it in a variable `@date`. How can i change that format to say, 04-26-2012, or maybe even April 26th ?
0
10,381,626
04/30/2012 09:50:37
1,365,445
04/30/2012 09:24:33
1
0
php imagick setCompressionQuality and compositeImage
I have experienced a problem obtaining the effect of compression during joining two images together - an image and background. Gennerally the idea is to make an final image while first, main image doesn't lose its quality but the background does (in effect is compressed). <? /* --- */ $imageOutput = new Imagick(); $image = new Imagick( $orginalPath ); $wathermark = new Imagick( $watherMarkFile ); // I'm compressing background image $image->setImageCompression(imagick::COMPRESSION_JPEG ); $image->setimagecompressionquality( 20 ); $image->flattenimages(); // We're creating an image wich contains compressed background $imageOutput->newImage($image->getimagewidth(), $image->getimageheight(), new ImagickPixel('white') ); $imageOutput->compositeimage($image, Imagick::COMPOSITE_DEFAULT, 0, 0); $imageOutput->setImageFormat('jpeg'); // And we are composing them $imageOutput->compositeImage( $wathermark, Imagick::COMPOSITE_OVERLAY, 10,10) $data = $imageOutput->getimageblob(); /.... output..../ ?> Does anyone know how to do it without saving compressed file which contains background. Excuse for my english and thanks for any response. pawella
php
image
merge
compression
imagick
null
open
php imagick setCompressionQuality and compositeImage === I have experienced a problem obtaining the effect of compression during joining two images together - an image and background. Gennerally the idea is to make an final image while first, main image doesn't lose its quality but the background does (in effect is compressed). <? /* --- */ $imageOutput = new Imagick(); $image = new Imagick( $orginalPath ); $wathermark = new Imagick( $watherMarkFile ); // I'm compressing background image $image->setImageCompression(imagick::COMPRESSION_JPEG ); $image->setimagecompressionquality( 20 ); $image->flattenimages(); // We're creating an image wich contains compressed background $imageOutput->newImage($image->getimagewidth(), $image->getimageheight(), new ImagickPixel('white') ); $imageOutput->compositeimage($image, Imagick::COMPOSITE_DEFAULT, 0, 0); $imageOutput->setImageFormat('jpeg'); // And we are composing them $imageOutput->compositeImage( $wathermark, Imagick::COMPOSITE_OVERLAY, 10,10) $data = $imageOutput->getimageblob(); /.... output..../ ?> Does anyone know how to do it without saving compressed file which contains background. Excuse for my english and thanks for any response. pawella
0
10,381,610
04/30/2012 09:49:24
864,952
07/27/2011 08:22:45
1
0
Using boost::iostreams mapped_file_source and filtering_stream_bug to decompress file
I plan to process large compressed files and I would like to memory map the files to speedup reading. I adopted the existing example with regular file input but cannot get it either compile nor work :-) I'm using C++ Boost 1.49 Any suggestion welcome! #include<iostream> #include<boost/iostreams/filtering_streambuf.hpp> #include<boost/iostreams/copy.hpp> #include<boost/iostreams/filter/zlib.hpp> #include<boost/iostreams/device/file.hpp> #include<boost/iostreams/device/mapped_file.hpp> void test_decoder_mmf() { using namespace std; using namespace boost::iostreams; //ifstream file("my_file.txt", ios_base::in | ios_base::binary); mapped_file_source file( "my_file.txt" ); filtering_streambuf< input > in; in.push(zlib_decompressor()); in.push(file); copy(in,cout); } int main() { test_decoder_mmf(); return 0; }
c++
boost-iostreams
null
null
null
null
open
Using boost::iostreams mapped_file_source and filtering_stream_bug to decompress file === I plan to process large compressed files and I would like to memory map the files to speedup reading. I adopted the existing example with regular file input but cannot get it either compile nor work :-) I'm using C++ Boost 1.49 Any suggestion welcome! #include<iostream> #include<boost/iostreams/filtering_streambuf.hpp> #include<boost/iostreams/copy.hpp> #include<boost/iostreams/filter/zlib.hpp> #include<boost/iostreams/device/file.hpp> #include<boost/iostreams/device/mapped_file.hpp> void test_decoder_mmf() { using namespace std; using namespace boost::iostreams; //ifstream file("my_file.txt", ios_base::in | ios_base::binary); mapped_file_source file( "my_file.txt" ); filtering_streambuf< input > in; in.push(zlib_decompressor()); in.push(file); copy(in,cout); } int main() { test_decoder_mmf(); return 0; }
0
5,134
08/07/2008 18:47:50
563
08/06/2008 18:24:06
11
2
Best strategy to write hooks for subversion in Windows
What is the best approach to write **hooks** for **Subversion** in **Windows**? As far as I know, only executable files can used. So what is the best choice? - Plain batch files (very limited but perhaps OK for very simple solutions) - Dedicated compiled executable applications (sledgehammer to crack a nutshell) - Some other hybrid choice (like a batch file running a Powershell script)
subversion
hook
null
null
null
null
open
Best strategy to write hooks for subversion in Windows === What is the best approach to write **hooks** for **Subversion** in **Windows**? As far as I know, only executable files can used. So what is the best choice? - Plain batch files (very limited but perhaps OK for very simple solutions) - Dedicated compiled executable applications (sledgehammer to crack a nutshell) - Some other hybrid choice (like a batch file running a Powershell script)
0
5,136
08/07/2008 18:47:58
676
08/07/2008 16:46:54
56
10
Anyone have experience creating a shared library in MATLAB?
A researcher has created a small simulation in MATLAB, and we want to make it accessible to others. My plan is to take the simulation, clean up a few things, and turn it into a set of functions. Then, I plan to compile it into a C library and use SWIG to create a Python wrapper. At that point, I should be able to call the simulation from a small Django app. At least, I hope so. Do I have the right plan? Has anyone else done something similar? Can you let me know if there are some serious pitfalls I'm not aware of at the moment?
python
c
matlab
null
null
null
open
Anyone have experience creating a shared library in MATLAB? === A researcher has created a small simulation in MATLAB, and we want to make it accessible to others. My plan is to take the simulation, clean up a few things, and turn it into a set of functions. Then, I plan to compile it into a C library and use SWIG to create a Python wrapper. At that point, I should be able to call the simulation from a small Django app. At least, I hope so. Do I have the right plan? Has anyone else done something similar? Can you let me know if there are some serious pitfalls I'm not aware of at the moment?
0
5,142
08/07/2008 18:52:07
431
08/05/2008 17:00:01
164
19
Firebird's SQL's Substring function not working
I created a view on a machine using the *substring* function from Firebird, and it worked. When I copied the database to a different machine, the view was broken. This is the way I used it: SELECT SUBSTRING(field FROM 5 FOR 15) FROM table; And this is the output on the machine that does not accept the function: token unknown: FROM Both computers have this configuration: - *IB Expert* version 2.5.0.42 to run the queries and deal with the database. - *Firebird* version 1.5 as server to database. - *BDE Administration* version 5.01 installed, with *Interbase* 4.0 drivers. Any ideas about why it's behaving differently on these machines?
sql
firebird
interbase
null
null
null
open
Firebird's SQL's Substring function not working === I created a view on a machine using the *substring* function from Firebird, and it worked. When I copied the database to a different machine, the view was broken. This is the way I used it: SELECT SUBSTRING(field FROM 5 FOR 15) FROM table; And this is the output on the machine that does not accept the function: token unknown: FROM Both computers have this configuration: - *IB Expert* version 2.5.0.42 to run the queries and deal with the database. - *Firebird* version 1.5 as server to database. - *BDE Administration* version 5.01 installed, with *Interbase* 4.0 drivers. Any ideas about why it's behaving differently on these machines?
0
5,170
08/07/2008 19:06:03
383
08/05/2008 10:46:37
975
124
SQL Server Management Studio Alternatives
I was wondering if there are any alternatives to Microsoft's SQL Server Management Studio? Not there's anything wrong with SSMS, but sometimes it just seem too big an application where all I want todo is browse/edit tables and run queries.
mssql
null
null
null
null
null
open
SQL Server Management Studio Alternatives === I was wondering if there are any alternatives to Microsoft's SQL Server Management Studio? Not there's anything wrong with SSMS, but sometimes it just seem too big an application where all I want todo is browse/edit tables and run queries.
0
5,179
08/07/2008 19:13:04
111
08/02/2008 03:35:55
126
6
How Do I Post and then redirect to an external URL from ASP.Net?
ASP.Net server side controls postback to their own page. This makes cases where you want to redirect a user to an external page, but need to Post to that page for some reason (for authentication, for instance) a pain. An HttpWebRequest works great if you don't want to redirect, and Javascript is fine in some cases, but can get tricky if you really do need the server-side code to get the data together for the post. So how do you both post to an external URL and redirect the user to the result from your ASP.Net codebehind code?
c#
asp.net
forms
null
null
null
open
How Do I Post and then redirect to an external URL from ASP.Net? === ASP.Net server side controls postback to their own page. This makes cases where you want to redirect a user to an external page, but need to Post to that page for some reason (for authentication, for instance) a pain. An HttpWebRequest works great if you don't want to redirect, and Javascript is fine in some cases, but can get tricky if you really do need the server-side code to get the data together for the post. So how do you both post to an external URL and redirect the user to the result from your ASP.Net codebehind code?
0
5,188
08/07/2008 19:20:27
326
08/04/2008 16:59:58
26
4
How do you pull the URL for an ASP.NET web reference from a configuration file?
I have a web reference for our report server embedded in our application. The server that the reports live on could change though, and I'd like to be able to change it "on the fly" if necessary. I know I've done this before, but can't seem to remember how. Thanks for your help.
asp.net
webreference
configurationfiles
null
null
null
open
How do you pull the URL for an ASP.NET web reference from a configuration file? === I have a web reference for our report server embedded in our application. The server that the reports live on could change though, and I'd like to be able to change it "on the fly" if necessary. I know I've done this before, but can't seem to remember how. Thanks for your help.
0
5,222
08/07/2008 19:39:31
429
08/05/2008 16:44:40
167
15
Accessing post variables using Java Servlets
The title says it all. All I really want is the equivalent of PHP's $_POST[], and after searching the web for an hour, I'm still nowhere closer.
java
servlet
null
null
null
null
open
Accessing post variables using Java Servlets === The title says it all. All I really want is the equivalent of PHP's $_POST[], and after searching the web for an hour, I'm still nowhere closer.
0
5,223
08/07/2008 19:42:21
147
08/02/2008 14:57:08
103
3
Length of Javascript Associative Array
If I have a javascript associative array say: var myArray = new Object(); myArray["firstname"] = "Gareth"; myArray["lastname"] = "Simpson"; myArray["age"] = 21; Is there a built in or accepted best practice way to get the length of this array?
javascript
arrays
null
null
null
null
open
Length of Javascript Associative Array === If I have a javascript associative array say: var myArray = new Object(); myArray["firstname"] = "Gareth"; myArray["lastname"] = "Simpson"; myArray["age"] = 21; Is there a built in or accepted best practice way to get the length of this array?
0
5,226
08/07/2008 19:46:47
383
08/05/2008 10:46:37
974
127
HTML Comments Markup
I am currently in the process of creating my own blog and I have got to marking up the comments, but what is the best way to mark it up? The information I need to present is: 1. Persons Name 2. Gravatar Icon 3. Comment Date 4. The Comment Any idea's would be much appriciated. *PS: I'm only interested in semantic xhtml markup.*
xhtml
null
null
null
null
null
open
HTML Comments Markup === I am currently in the process of creating my own blog and I have got to marking up the comments, but what is the best way to mark it up? The information I need to present is: 1. Persons Name 2. Gravatar Icon 3. Comment Date 4. The Comment Any idea's would be much appriciated. *PS: I'm only interested in semantic xhtml markup.*
0
5,237
08/07/2008 19:57:53
633
08/07/2008 12:15:28
1
0
Solutions for working with multiple branches in ASP.Net
At work, we are often working on multiple branches of our product at one time. For example, right now, we have a maintenance branch, a branch with code just going to QA, and a branch for a new major initiative, that won't be merged for some time now. Our web project is set up to use IIS, so every time we switch to a different branch, we have to go in to IIS Admin and change the path on the virtual directory, then reset IIS, and sometimes even restart Visual Studio, to avoid getting build errors. Is there any way to simplify this, other than not having our web project set up as a virtual directory? I'm not sure we want to make that change at this point. What do you do to make this easier, assuming you do this? Corey
iis
asp.net
virtual-directory
null
null
07/14/2012 16:12:10
not constructive
Solutions for working with multiple branches in ASP.Net === At work, we are often working on multiple branches of our product at one time. For example, right now, we have a maintenance branch, a branch with code just going to QA, and a branch for a new major initiative, that won't be merged for some time now. Our web project is set up to use IIS, so every time we switch to a different branch, we have to go in to IIS Admin and change the path on the virtual directory, then reset IIS, and sometimes even restart Visual Studio, to avoid getting build errors. Is there any way to simplify this, other than not having our web project set up as a virtual directory? I'm not sure we want to make that change at this point. What do you do to make this easier, assuming you do this? Corey
4
5,251
08/07/2008 20:12:16
573
08/06/2008 21:00:42
8
0
Stand alone charts in GWT
I've been trying to get pretty charts to work in GWT on our internal network. Playing around with [GWT-Ext][1]'s charts is nice, but it requires flash and is really messy to control (it seems buggy, in general). I'd like to hear about something that works with the least amount of dependencies and it also must work without a connection to the web (so, Google' charts API isn't a solution). Thank you all! [1]: http://gwt-ext.com
gwt
google
charts
null
null
null
open
Stand alone charts in GWT === I've been trying to get pretty charts to work in GWT on our internal network. Playing around with [GWT-Ext][1]'s charts is nice, but it requires flash and is really messy to control (it seems buggy, in general). I'd like to hear about something that works with the least amount of dependencies and it also must work without a connection to the web (so, Google' charts API isn't a solution). Thank you all! [1]: http://gwt-ext.com
0
5,260
08/07/2008 20:21:52
106
08/02/2008 00:12:12
133
31
What is the best way to wrap time around the work day?
I have a situation where I want to add hours to a date and have the new date wrap around the work-day. I cobbled up a function to determine this new date, but want to make sure that I'm not forgetting anything. The hours to be added is called "delay". It could easily be a parameter to the function instead. Please post any suggestions. [VB.NET Warning] Private Function GetDateRequired() As Date ''// A decimal representation of the current hour Dim hours As Decimal = Decimal.Parse(Date.Now.Hour) + (Decimal.Parse(Date.Now.Minute) / 60.0) Dim delay As Decimal = 3.0 ''// delay in hours Dim endOfDay As Decimal = 12.0 + 5.0 ''// end of day, in hours Dim startOfDay As Decimal = 8.0 ''// start of day, in hours Dim newHour As Integer Dim newMinute As Integer Dim dateRequired As Date = Now Dim delta As Decimal = hours + delay ''// Wrap around to the next day, if necessary If delta > endOfDay Then delta = delta - endOfDay dateRequired = dateRequired.AddDays(1) newHour = Integer.Parse(Decimal.Truncate(delta)) newMinute = Integer.Parse(Decimal.Truncate((delta - newHour) * 60)) newHour = startOfDay + newHour Else newHour = Integer.Parse(Decimal.Truncate(delta)) newMinute = Integer.Parse(Decimal.Truncate((delta - newHour) * 60)) End If dateRequired = New Date(dateRequired.Year, dateRequired.Month, dateRequired.Day, newHour, newMinute, 0) Return dateRequired End Sub **Note 1**: The comments were breaking the syntax highlighting, so I used **''//** to allow them to be highlighted somewhat correctly while still working if copy-pasted into a VB project. **Note 2**: This will probably not work if delay is more 9 hours long. It should never change from 3, through.
vb.net
work-hours
null
null
null
null
open
What is the best way to wrap time around the work day? === I have a situation where I want to add hours to a date and have the new date wrap around the work-day. I cobbled up a function to determine this new date, but want to make sure that I'm not forgetting anything. The hours to be added is called "delay". It could easily be a parameter to the function instead. Please post any suggestions. [VB.NET Warning] Private Function GetDateRequired() As Date ''// A decimal representation of the current hour Dim hours As Decimal = Decimal.Parse(Date.Now.Hour) + (Decimal.Parse(Date.Now.Minute) / 60.0) Dim delay As Decimal = 3.0 ''// delay in hours Dim endOfDay As Decimal = 12.0 + 5.0 ''// end of day, in hours Dim startOfDay As Decimal = 8.0 ''// start of day, in hours Dim newHour As Integer Dim newMinute As Integer Dim dateRequired As Date = Now Dim delta As Decimal = hours + delay ''// Wrap around to the next day, if necessary If delta > endOfDay Then delta = delta - endOfDay dateRequired = dateRequired.AddDays(1) newHour = Integer.Parse(Decimal.Truncate(delta)) newMinute = Integer.Parse(Decimal.Truncate((delta - newHour) * 60)) newHour = startOfDay + newHour Else newHour = Integer.Parse(Decimal.Truncate(delta)) newMinute = Integer.Parse(Decimal.Truncate((delta - newHour) * 60)) End If dateRequired = New Date(dateRequired.Year, dateRequired.Month, dateRequired.Day, newHour, newMinute, 0) Return dateRequired End Sub **Note 1**: The comments were breaking the syntax highlighting, so I used **''//** to allow them to be highlighted somewhat correctly while still working if copy-pasted into a VB project. **Note 2**: This will probably not work if delay is more 9 hours long. It should never change from 3, through.
0