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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
46,130 | 09/05/2008 16:01:35 | 1,946 | 08/19/2008 14:53:06 | 169 | 9 | How do I group in memory lists? | I have a list of Foo. Foo has properties Bar and Lum. Some Foos have identical values for Bar. How can I use lambda/linq to group my Foos by Bar so I can iterate over each grouping's Lums? | c# | .net | linq | lambda | null | null | open | How do I group in memory lists?
===
I have a list of Foo. Foo has properties Bar and Lum. Some Foos have identical values for Bar. How can I use lambda/linq to group my Foos by Bar so I can iterate over each grouping's Lums? | 0 |
46,133 | 09/05/2008 16:03:46 | 4,231 | 09/02/2008 13:21:16 | 113 | 6 | File format for generating dynamic reports in applications | We generate dynamic reports in all of our business web applications written for .Net and J2EE. On the server side we use ActiveReports.Net and JasperReports to generate the reports. We then export them to PDF to send down to the browser.
Our clients all use Adobe Reader. We have endless problems with the different versions of Adobe Reader and how they are setup on the client.
What file format/readers are others using for their dynamic reports? We need something that allows for precise layout as many of the reports are forms that are printed with data from out systems. HTML is not expressive enough. | pdf | reporting | adobe | null | null | null | open | File format for generating dynamic reports in applications
===
We generate dynamic reports in all of our business web applications written for .Net and J2EE. On the server side we use ActiveReports.Net and JasperReports to generate the reports. We then export them to PDF to send down to the browser.
Our clients all use Adobe Reader. We have endless problems with the different versions of Adobe Reader and how they are setup on the client.
What file format/readers are others using for their dynamic reports? We need something that allows for precise layout as many of the reports are forms that are printed with data from out systems. HTML is not expressive enough. | 0 |
46,136 | 09/05/2008 16:04:36 | 1,409 | 08/15/2008 13:18:51 | 506 | 37 | What is the best approach to moving a preexisting project from Flash 7/AS2 to Flex/AS3? | I have a large codebase that targetted Flash 7, with a *lot* of AS2 classes. I'm hoping that I'll be able to use Flex for any new projects, but a lot of new stuff in our roadmap is additions to the old code.
The syntax for AS2 and AS3 is generally the same, so I'm starting to wonder how hard it would be to port the current codebase to Flex/AS3. I know all the UI-related stuff would be iffy (currently the UI is generated at runtime with a lot of createEmptyMovieClip() and attachMovie() stuff), but the UI and controller/model stuff is mostly separated.
Has anyone tried porting a large codebase of AS2 code to AS3? How difficult is it? What kinds of pitfalls did you run into? Any recommendations for approaches to doing this kind of project? | flex | flash | actionscript-3 | porting | null | null | open | What is the best approach to moving a preexisting project from Flash 7/AS2 to Flex/AS3?
===
I have a large codebase that targetted Flash 7, with a *lot* of AS2 classes. I'm hoping that I'll be able to use Flex for any new projects, but a lot of new stuff in our roadmap is additions to the old code.
The syntax for AS2 and AS3 is generally the same, so I'm starting to wonder how hard it would be to port the current codebase to Flex/AS3. I know all the UI-related stuff would be iffy (currently the UI is generated at runtime with a lot of createEmptyMovieClip() and attachMovie() stuff), but the UI and controller/model stuff is mostly separated.
Has anyone tried porting a large codebase of AS2 code to AS3? How difficult is it? What kinds of pitfalls did you run into? Any recommendations for approaches to doing this kind of project? | 0 |
46,146 | 09/05/2008 16:08:18 | 4,792 | 09/05/2008 16:08:18 | 1 | 0 | What are the Java regular expressions for matching IPv4 and IPv6 strings? | Looking for a string to pass to String#matches(String) that will match IPv4, and another to match IPv6. | java | regex | null | null | null | null | open | What are the Java regular expressions for matching IPv4 and IPv6 strings?
===
Looking for a string to pass to String#matches(String) that will match IPv4, and another to match IPv6. | 0 |
46,147 | 09/05/2008 16:08:19 | 1,220 | 08/13/2008 13:44:48 | 1,033 | 80 | why are all links in my site are red, in google chrome and safari? | just started using google chrome, and noticed in parts of our site, all the links on the page are bright red. They should be black with a dotted underline.
Is there some gotcha in webkit rendering that turns all links red regardless of style? | css | google-chrome | safari | webkit | null | null | open | why are all links in my site are red, in google chrome and safari?
===
just started using google chrome, and noticed in parts of our site, all the links on the page are bright red. They should be black with a dotted underline.
Is there some gotcha in webkit rendering that turns all links red regardless of style? | 0 |
46,149 | 09/05/2008 16:08:51 | 3,381 | 08/28/2008 11:39:48 | 326 | 44 | Best way to manage generated code in an automated build? | In my automated NAnt build we have a step that generates a lot of code off of the database (using SubSonic) and the code is separated into folders that match the schema name in the database. For example:
- /generated-code
- /dbo
- SomeTable.cs
- OtherTable.cs
- /abc
- Customer.cs
- Order.cs
The schema names are there to isolate the generated classes that an app will need. For example, there is an ABC app, that will pull in the generated code from this central folder. I'm doing that on a pre-build event, like this:
> del /F /Q $(ProjectDir)Entities\generated\*.cs
> copy $(ProjectDir)..\..\generated-code\abc\*.cs $(ProjectDir)Entities\generated\*.cs
So on every build, the Nant script runs the generator which puts all the code into a central holding place, then it kicks off the solution build... which includes pre-build events for each of the projects that need their generated classes.
So here's the friction I'm seeing:
1) Each new app needs to setup this pre-build event. It kind of sucks to have to do this.
2) In our build server we don't generate code, so I actually have an IF $(ConfigurationName) == "Debug" before each of those commands, so it doens't happen for release builds
3) Sometimes the commands fail, which fails our local build. It will fail if:
- there is no generated code yet (just setting up a new project, no database yet)
- there is no existing code in the directory (first build)
usually these are minor fixes and we've just hacked our way to getting a new project or a new machine up and running with the build, but it's preventing me from my 1-click-build Nirvana.
So I'd like to hear suggestions on how to improve this where it's a bit more durable. Maybe move the copying of the code into the application folders into the NAnt script? This seems kind of backwards to me, but I'm willing to listen to arguments for it.
OK, fire away :)
| build-process | automation | nant | code-generation | null | null | open | Best way to manage generated code in an automated build?
===
In my automated NAnt build we have a step that generates a lot of code off of the database (using SubSonic) and the code is separated into folders that match the schema name in the database. For example:
- /generated-code
- /dbo
- SomeTable.cs
- OtherTable.cs
- /abc
- Customer.cs
- Order.cs
The schema names are there to isolate the generated classes that an app will need. For example, there is an ABC app, that will pull in the generated code from this central folder. I'm doing that on a pre-build event, like this:
> del /F /Q $(ProjectDir)Entities\generated\*.cs
> copy $(ProjectDir)..\..\generated-code\abc\*.cs $(ProjectDir)Entities\generated\*.cs
So on every build, the Nant script runs the generator which puts all the code into a central holding place, then it kicks off the solution build... which includes pre-build events for each of the projects that need their generated classes.
So here's the friction I'm seeing:
1) Each new app needs to setup this pre-build event. It kind of sucks to have to do this.
2) In our build server we don't generate code, so I actually have an IF $(ConfigurationName) == "Debug" before each of those commands, so it doens't happen for release builds
3) Sometimes the commands fail, which fails our local build. It will fail if:
- there is no generated code yet (just setting up a new project, no database yet)
- there is no existing code in the directory (first build)
usually these are minor fixes and we've just hacked our way to getting a new project or a new machine up and running with the build, but it's preventing me from my 1-click-build Nirvana.
So I'd like to hear suggestions on how to improve this where it's a bit more durable. Maybe move the copying of the code into the application folders into the NAnt script? This seems kind of backwards to me, but I'm willing to listen to arguments for it.
OK, fire away :)
| 0 |
46,155 | 09/05/2008 16:10:11 | 72 | 08/01/2008 15:09:58 | 1,422 | 70 | Validate email address in Javascript? | What's the best way to validate an email address in Javascript?
_Though this solution may be simple, I'm sure this is one of those useful things that people will be Googling for and deserves its own entry on the site_ | javascript | email | validation | null | null | null | open | Validate email address in Javascript?
===
What's the best way to validate an email address in Javascript?
_Though this solution may be simple, I'm sure this is one of those useful things that people will be Googling for and deserves its own entry on the site_ | 0 |
46,156 | 09/05/2008 16:10:14 | 1,483 | 08/15/2008 20:40:17 | 211 | 19 | What could couse Run-time error 1012 Error accessing application data directories | Friend of mine has a problem :).
There is an application written in Visual Basic 6.0 (not by him).
One of users reported that when it run on Windows 2000 and tried to scan folders on disk it raised box with message:
*Run-time error 1012 Error accessing application data directories*
We couldn't google anything about it and didn't find anything about runtime error 1012 in VB6 help files.
My guess was that VB calls some old API function which returns folder to which app has no access (private, ciphered, belongs to other user and app is run by user without needed privileges).
But we could not reproduce this (on Windows XP professional).
Anyone meets with bug like this in the past?
| windows | vb6 | runtime-error | null | null | null | open | What could couse Run-time error 1012 Error accessing application data directories
===
Friend of mine has a problem :).
There is an application written in Visual Basic 6.0 (not by him).
One of users reported that when it run on Windows 2000 and tried to scan folders on disk it raised box with message:
*Run-time error 1012 Error accessing application data directories*
We couldn't google anything about it and didn't find anything about runtime error 1012 in VB6 help files.
My guess was that VB calls some old API function which returns folder to which app has no access (private, ciphered, belongs to other user and app is run by user without needed privileges).
But we could not reproduce this (on Windows XP professional).
Anyone meets with bug like this in the past?
| 0 |
46,160 | 09/05/2008 16:11:44 | 4,216 | 09/02/2008 11:21:18 | 1 | 0 | Getting an int representation of a String | I am looking for a way to create an int\long representation of an arbitrary alpha-numeric String. Hash codes won't do it, because I can't afford hash collisions i.e. the representation must be unique and repeatable.
The numeric representation will be used to perform efficient (hopefully) compares. The creation of the numeric key will take some time, but it only has to happen once, whereas I need to perform vast numbers of comparisons with it - which will hopefully be much faster than comparing the raw Strings.
Any other idea's on faster String comparison will be most appreciated too...
Thanks! | java | performance | string | null | null | null | open | Getting an int representation of a String
===
I am looking for a way to create an int\long representation of an arbitrary alpha-numeric String. Hash codes won't do it, because I can't afford hash collisions i.e. the representation must be unique and repeatable.
The numeric representation will be used to perform efficient (hopefully) compares. The creation of the numeric key will take some time, but it only has to happen once, whereas I need to perform vast numbers of comparisons with it - which will hopefully be much faster than comparing the raw Strings.
Any other idea's on faster String comparison will be most appreciated too...
Thanks! | 0 |
46,173 | 09/05/2008 16:13:53 | 1,206 | 08/13/2008 13:05:28 | 51 | 7 | What is the best way to set the permissions for a specific user on a specific folder on a remote machine? | We have a deployment system at my office where we can automatically deploy a given build of our code to a specified dev environment (dev01, dev02, etc.). These dev environments are generalized virtual machines, so our system has to configure them automatically. We have a new system requirement with our next version; we need to give certain user accounts read/write access to certain folders (specifically, giving the ASPNET user read/write to a logging folder).
I'm pretty sure we could do this with WMI or scripts (we use Sysinternals PSTools in a few places for deployment), but I'm not sure what is the best way to do it. The deployment system is written in C# 2.0, the dev environment is a VM with Windows XP. The VM is on the same domain as the deployment system and I have administrator access. | c# | .net | deployment | null | null | null | open | What is the best way to set the permissions for a specific user on a specific folder on a remote machine?
===
We have a deployment system at my office where we can automatically deploy a given build of our code to a specified dev environment (dev01, dev02, etc.). These dev environments are generalized virtual machines, so our system has to configure them automatically. We have a new system requirement with our next version; we need to give certain user accounts read/write access to certain folders (specifically, giving the ASPNET user read/write to a logging folder).
I'm pretty sure we could do this with WMI or scripts (we use Sysinternals PSTools in a few places for deployment), but I'm not sure what is the best way to do it. The deployment system is written in C# 2.0, the dev environment is a VM with Windows XP. The VM is on the same domain as the deployment system and I have administrator access. | 0 |
46,189 | 09/05/2008 16:17:16 | 781 | 08/08/2008 21:28:19 | 219 | 10 | Mapping collections with LINQ | I have a collection of objects to which I'd like to just add a new property. How do I do that with LINQ? | linq | functional-programming | null | null | null | null | open | Mapping collections with LINQ
===
I have a collection of objects to which I'd like to just add a new property. How do I do that with LINQ? | 0 |
46,214 | 09/05/2008 16:22:26 | 4,541 | 09/04/2008 17:37:04 | 23 | 1 | Good ways to improve jQuery selector performance? | I'm looking for any way that I can improve the selector performance of a jQuery call. Specifically things like this:
Is $("div.myclass") faster than $(".myclass")
I would think it might be, but I don't know if jQuery is smart enough to limit the search by tag name first, etc. Anyone have any ideas for how to formulate a jQuery selector string for best performance?
| javascript | jquery | null | null | null | null | open | Good ways to improve jQuery selector performance?
===
I'm looking for any way that I can improve the selector performance of a jQuery call. Specifically things like this:
Is $("div.myclass") faster than $(".myclass")
I would think it might be, but I don't know if jQuery is smart enough to limit the search by tag name first, etc. Anyone have any ideas for how to formulate a jQuery selector string for best performance?
| 0 |
46,219 | 09/05/2008 16:23:48 | 698 | 08/07/2008 23:31:56 | 23 | 8 | How to determine if user selected a file for file upload? | If I have a
`<input id="uploadFile" type="file" />`
tag, and a submit button, how do I determine, in IE6 (and above) if a file has been selected by the user.
In FF, I just do:
`var selected = document.getElementById("uploadBox").files.length > 0;`
But that doesn't work in IE. | javascript | html | upload | null | null | null | open | How to determine if user selected a file for file upload?
===
If I have a
`<input id="uploadFile" type="file" />`
tag, and a submit button, how do I determine, in IE6 (and above) if a file has been selected by the user.
In FF, I just do:
`var selected = document.getElementById("uploadBox").files.length > 0;`
But that doesn't work in IE. | 0 |
46,220 | 09/05/2008 16:23:57 | 2,293 | 08/21/2008 14:02:56 | 160 | 10 | iPhone App Crashing - Error Question | I'm writing my first iPhone app, so I haven't gotten around to figuring out much in the way of debugging.
Essentially my app displays an image and when touched plays a short sound.
When compiling and building the project in XCode, everything builds successfully, but when the app is run in the iPhone simulator, it crashes.
I get the following error:
Application Specific Information:
iPhone Simulator 1.0 (70), iPhone OS 2.0 (5A331)
*** Terminating app due to uncaught exception 'NSUnknownKeyException',
reason: '[<UIView 0x34efd0> setValue:forUndefinedKey:]: this class is not key value
coding-compliant for the key kramerImage.'
kramerImage here is the image I'm using for the background.
I'm not sure what NSUnknownKeyException means or why the class is not key value coding-compliant for the key. | iphone | image | user-interface | audio | null | null | open | iPhone App Crashing - Error Question
===
I'm writing my first iPhone app, so I haven't gotten around to figuring out much in the way of debugging.
Essentially my app displays an image and when touched plays a short sound.
When compiling and building the project in XCode, everything builds successfully, but when the app is run in the iPhone simulator, it crashes.
I get the following error:
Application Specific Information:
iPhone Simulator 1.0 (70), iPhone OS 2.0 (5A331)
*** Terminating app due to uncaught exception 'NSUnknownKeyException',
reason: '[<UIView 0x34efd0> setValue:forUndefinedKey:]: this class is not key value
coding-compliant for the key kramerImage.'
kramerImage here is the image I'm using for the background.
I'm not sure what NSUnknownKeyException means or why the class is not key value coding-compliant for the key. | 0 |
46,231 | 09/05/2008 16:28:34 | 1,130 | 08/12/2008 16:39:54 | 16 | 2 | How to generate a verification code/number ? | I'm working on an application where users have to make a call and type a verification number with the keypad of their phone.
I would like to be able to detect if the number they type is correct or not. The phone system does not have access to a list of valid numbers, but instead it will validate the number against an algorithm (like a credit card number).
Here are some of the requirements :
- It must be difficult to type a valid random code
- It must be difficult to have a valid code if I make a typo (tranposition of digits, wrong digit)
- I must have a reasonnable number of possible combinations (let's say 1M)
- The code must be as short as possible, to avoid errors from the user
Given these requirements, how would you generate such a number ?
Thanks ! | language-agnostic | number | generation | null | null | null | open | How to generate a verification code/number ?
===
I'm working on an application where users have to make a call and type a verification number with the keypad of their phone.
I would like to be able to detect if the number they type is correct or not. The phone system does not have access to a list of valid numbers, but instead it will validate the number against an algorithm (like a credit card number).
Here are some of the requirements :
- It must be difficult to type a valid random code
- It must be difficult to have a valid code if I make a typo (tranposition of digits, wrong digit)
- I must have a reasonnable number of possible combinations (let's say 1M)
- The code must be as short as possible, to avoid errors from the user
Given these requirements, how would you generate such a number ?
Thanks ! | 0 |
46,252 | 09/05/2008 16:38:39 | 572 | 08/06/2008 20:56:54 | 2,937 | 233 | Is there a way I can have a VM gain access to my computer? | I would like to have a VM to look at how applications appear and to develop OS-specific applications, however, I want to keep all my code on my Windows machine so if I decide to nuke a VM or anything like that, it's all still there.
If it matters, I'm using VirtualBox. | vm | null | null | null | null | null | open | Is there a way I can have a VM gain access to my computer?
===
I would like to have a VM to look at how applications appear and to develop OS-specific applications, however, I want to keep all my code on my Windows machine so if I decide to nuke a VM or anything like that, it's all still there.
If it matters, I'm using VirtualBox. | 0 |
46,260 | 09/05/2008 16:41:23 | 4,786 | 09/05/2008 15:29:10 | 6 | 1 | What is the best technology/framework to use for an online e-commerce site? | What is the best technology/framework to use for an online e-commerce site?
| framework | e-commerce | null | null | null | 09/19/2011 12:13:46 | not constructive | What is the best technology/framework to use for an online e-commerce site?
===
What is the best technology/framework to use for an online e-commerce site?
| 4 |
46,276 | 09/05/2008 16:48:44 | 3,238 | 08/27/2008 14:17:11 | 28 | 0 | Test Driven Development in PHP | I am a web-developer working in PHP. I have some limited experience with using Test Driven Development in C# desktop applications. In that case we used nUnit for the unit testing framework.
I would like to start using TDD in new projects but I'm really not sure where to begin.
What recommendations do you have for a PHP-based unit testing framework and what are some good resources for someone who is pretty new to the TDD concept? | php | unit-testing | tdd | null | null | null | open | Test Driven Development in PHP
===
I am a web-developer working in PHP. I have some limited experience with using Test Driven Development in C# desktop applications. In that case we used nUnit for the unit testing framework.
I would like to start using TDD in new projects but I'm really not sure where to begin.
What recommendations do you have for a PHP-based unit testing framework and what are some good resources for someone who is pretty new to the TDD concept? | 0 |
46,277 | 09/05/2008 16:49:07 | 781 | 08/08/2008 21:28:19 | 219 | 11 | Passing large files to WCF service. | We have an encryption service that we've exposed over net.tcp. Most of the time, the service is used to encrypt/decrypt strings. However, every now and then, we the need to encrypt large documents (pdf, jpg, bmp, etc).
What are the best endpoint settings for a scenario like this? Should I accept/return a stream? I've read a lot about this, but no one gives guidance on what to do when the large file doesn't occur frequently. | web-services | wcf | null | null | null | null | open | Passing large files to WCF service.
===
We have an encryption service that we've exposed over net.tcp. Most of the time, the service is used to encrypt/decrypt strings. However, every now and then, we the need to encrypt large documents (pdf, jpg, bmp, etc).
What are the best endpoint settings for a scenario like this? Should I accept/return a stream? I've read a lot about this, but no one gives guidance on what to do when the large file doesn't occur frequently. | 0 |
46,280 | 09/05/2008 16:50:10 | 1,071 | 08/12/2008 10:00:19 | 41 | 2 | web site structure/architecture | What web site structure(s)/architecture(s) would the community swear by, with a narrowing down in the direction towards more of a small facebook style project?
I understand the question to be rather broad/subjective; but being relatively new to the area of web development, I find just looking at and learning from examples of working projects most times extremely helpful, and that at other times just blows my mind and changes how I construct future assignments.
With the latter paragraph in mind, does the community have any suggestions on places to look/articles to read? | architecture | null | null | null | null | null | open | web site structure/architecture
===
What web site structure(s)/architecture(s) would the community swear by, with a narrowing down in the direction towards more of a small facebook style project?
I understand the question to be rather broad/subjective; but being relatively new to the area of web development, I find just looking at and learning from examples of working projects most times extremely helpful, and that at other times just blows my mind and changes how I construct future assignments.
With the latter paragraph in mind, does the community have any suggestions on places to look/articles to read? | 0 |
46,281 | 09/05/2008 16:50:23 | 3,458 | 08/28/2008 16:25:51 | 166 | 11 | How do DVCSs (DRCSs) work? | I have been hearing a lot of good things about DVCS systems, in particular about bazaar. Apart from the concept of distributed repository, I see two main advantages being touted: the merge is better automated, and the rename is handled right.
Could someone please point me at some text explaining how exactly the improvements work? How does bazaar know that I renamed a file? What if I rename two files as part of the same commit? What happens when I refactor by putting half of the file's contents into a new file, re-indenting everything and losing some whitespace in nearly every line?
In other words, I'd like to hear from people using bazaar (or another DVCS) in real life, or from people who know how it (they) works. Is the merge really that much better? And how is it achieved? | dvcs | bazaar | null | null | null | null | open | How do DVCSs (DRCSs) work?
===
I have been hearing a lot of good things about DVCS systems, in particular about bazaar. Apart from the concept of distributed repository, I see two main advantages being touted: the merge is better automated, and the rename is handled right.
Could someone please point me at some text explaining how exactly the improvements work? How does bazaar know that I renamed a file? What if I rename two files as part of the same commit? What happens when I refactor by putting half of the file's contents into a new file, re-indenting everything and losing some whitespace in nearly every line?
In other words, I'd like to hear from people using bazaar (or another DVCS) in real life, or from people who know how it (they) works. Is the merge really that much better? And how is it achieved? | 0 |
46,285 | 09/05/2008 16:51:14 | 4,786 | 09/05/2008 15:29:10 | 6 | 1 | Which tool do I use if I want to map a programming framework visually and see the relationship between all entities? | I find myself to be a visual person and sometimes it's easier to learn something if I can draw diagram/pictures out of it. My question is which tool do I use if I want to map a programming framework (for example .net) visually and see the relationship between all entities (such as classes and members) | mapping | visual | null | null | null | null | open | Which tool do I use if I want to map a programming framework visually and see the relationship between all entities?
===
I find myself to be a visual person and sometimes it's easier to learn something if I can draw diagram/pictures out of it. My question is which tool do I use if I want to map a programming framework (for example .net) visually and see the relationship between all entities (such as classes and members) | 0 |
46,292 | 09/05/2008 16:53:13 | 2,833 | 08/25/2008 12:57:53 | 11 | 2 | Plug In Design for .NET App | I’m looking at rewriting a portion of our application in C# (currently legacy VB6 code). The module I am starting with is responsible for importing data from a variety of systems into our database. About 5-6 times a year, a new client asks us to write a new import for the system that they use. Presently, this requires us to release a new version of our software for each new import option we add to the application.
One of the goals of the rewrite is to make the application support plug-ins. Every new import can become a separate assembly which the host application will recognize and allow the end user to interact with. This will hopefully simplify life to some degree as we can simply drop a new assembly into the directory and have it be recognized and used by the main (host) application.
One of the items I am struggling with relates to the differences between the import options we currently support. In some cases we actually let the user point to a directory and read all of the files within the directory into our system. In other cases we allow them to point to a single file and import its contents. Additionally, some imports have a date range restriction that the user applies while others do not.
My question is, how can I design the application in a manner that allows for some flexibility among the imports we build and support while at the same time implementing a common interface that will allow the host application to easily recognize the plug-ins and the options that each one exposes to the user?
| .net | plugins | interface-design | null | null | null | open | Plug In Design for .NET App
===
I’m looking at rewriting a portion of our application in C# (currently legacy VB6 code). The module I am starting with is responsible for importing data from a variety of systems into our database. About 5-6 times a year, a new client asks us to write a new import for the system that they use. Presently, this requires us to release a new version of our software for each new import option we add to the application.
One of the goals of the rewrite is to make the application support plug-ins. Every new import can become a separate assembly which the host application will recognize and allow the end user to interact with. This will hopefully simplify life to some degree as we can simply drop a new assembly into the directory and have it be recognized and used by the main (host) application.
One of the items I am struggling with relates to the differences between the import options we currently support. In some cases we actually let the user point to a directory and read all of the files within the directory into our system. In other cases we allow them to point to a single file and import its contents. Additionally, some imports have a date range restriction that the user applies while others do not.
My question is, how can I design the application in a manner that allows for some flexibility among the imports we build and support while at the same time implementing a common interface that will allow the host application to easily recognize the plug-ins and the options that each one exposes to the user?
| 0 |
46,305 | 09/05/2008 16:58:59 | 1,951 | 08/19/2008 15:06:09 | 691 | 40 | Setting Nameservers - how? | I understand how I can change the dns settings for my domains by editing my bind configs, when I run my own nameservers. I know that I can define the nameservers with my registrar via their online control panels. But I have no idea how that part works...
How does my registrar store the data about the nameservers? Is it something clever, like them having the authority to store NS records in the root nameservers?
I'm confused by this part, can anyone explain? | dns | null | null | null | null | null | open | Setting Nameservers - how?
===
I understand how I can change the dns settings for my domains by editing my bind configs, when I run my own nameservers. I know that I can define the nameservers with my registrar via their online control panels. But I have no idea how that part works...
How does my registrar store the data about the nameservers? Is it something clever, like them having the authority to store NS records in the root nameservers?
I'm confused by this part, can anyone explain? | 0 |
46,324 | 09/05/2008 17:09:13 | 4,249 | 09/02/2008 14:13:06 | 291 | 26 | Possible to perform cross-database queries with postgres? | I'm going to guess that the answer is no based on the below error message (and [this google result][1]), but is there anyway to perform a cross-database query using postgres?
databaseA=# select * from databaseB.public.someTableName;
ERROR: cross-database references are not implemented:
"databaseB.public.someTableName"
I'm working with some data that is partitioned across two databases although data is really shared between the two (userid columns in one database come from the `users` table in the other database). I have no idea why these are two seperate databases instead of schema, but c'est la vie...
[1]: http://archives.postgresql.org/pgsql-sql/2004-08/msg00076.php | sql | postgresql | null | null | null | null | open | Possible to perform cross-database queries with postgres?
===
I'm going to guess that the answer is no based on the below error message (and [this google result][1]), but is there anyway to perform a cross-database query using postgres?
databaseA=# select * from databaseB.public.someTableName;
ERROR: cross-database references are not implemented:
"databaseB.public.someTableName"
I'm working with some data that is partitioned across two databases although data is really shared between the two (userid columns in one database come from the `users` table in the other database). I have no idea why these are two seperate databases instead of schema, but c'est la vie...
[1]: http://archives.postgresql.org/pgsql-sql/2004-08/msg00076.php | 0 |
46,332 | 09/05/2008 17:15:51 | 337 | 08/04/2008 18:11:42 | 128 | 6 | How to organize a complex Flash project | Let's compile a list of tips.
(Understandably there will be some subjectivity involved, but some pointers would be useful to someone overwhelmed by tackling a large project within the Flash framework.) | flash | actionscript-3 | organizing | null | null | null | open | How to organize a complex Flash project
===
Let's compile a list of tips.
(Understandably there will be some subjectivity involved, but some pointers would be useful to someone overwhelmed by tackling a large project within the Flash framework.) | 0 |
46,338 | 09/05/2008 17:18:55 | 889 | 08/10/2008 08:04:03 | 218 | 12 | Can you access a model from inside another model in CodeIgniter? | I am writing a webapp using CodeIgniter that requires authentication. I created a model which handles all my authentication. However, I can't find a way to access this authentication model from inside another model.
Is there a way to access a model from inside another model?
or
Is there a better way to handle authentication inside CodeIgniter? | php | codeigniter | null | null | null | null | open | Can you access a model from inside another model in CodeIgniter?
===
I am writing a webapp using CodeIgniter that requires authentication. I created a model which handles all my authentication. However, I can't find a way to access this authentication model from inside another model.
Is there a way to access a model from inside another model?
or
Is there a better way to handle authentication inside CodeIgniter? | 0 |
46,339 | 09/05/2008 17:19:16 | 2,567 | 08/22/2008 22:50:45 | 225 | 28 | How to Dynamically Generate String Validation? | Does anyone know of a library (preferably php) or algorithm for auto-generating regex's from some common descriptions?
For example, have a form with the possible options of:
- Length (=x, between x & y, etc)
- Starts with
- Ends with
- Character(s) x(yz) at index i
- Specify one or more alternative behavior based on the above
- And so on..
The idea is that for certain data entities in a system, you'll be able to go to a form and set this criteria for a data field. Afterward, any time that data field for that type of data entity is entered, it will be validated against the regex.
This seems like it could grow into a complex problem though, so I'm not expecting anyone to solve it as a whole. Any suggestions are much appreciated. | php | regex | validation | webforms | form-validation | null | open | How to Dynamically Generate String Validation?
===
Does anyone know of a library (preferably php) or algorithm for auto-generating regex's from some common descriptions?
For example, have a form with the possible options of:
- Length (=x, between x & y, etc)
- Starts with
- Ends with
- Character(s) x(yz) at index i
- Specify one or more alternative behavior based on the above
- And so on..
The idea is that for certain data entities in a system, you'll be able to go to a form and set this criteria for a data field. Afterward, any time that data field for that type of data entity is entered, it will be validated against the regex.
This seems like it could grow into a complex problem though, so I'm not expecting anyone to solve it as a whole. Any suggestions are much appreciated. | 0 |
46,346 | 09/05/2008 17:22:53 | 194 | 08/03/2008 10:56:49 | 2,209 | 147 | .NET Console Application Tab Completion | Any ideas on how to implement tab completion for a .NET (C#) Console Application?
And I mean within an application that is run and then loops for user input (like if you run ftp.exe without any arguments), like this:
string line = string.Empty;
while (line != "exit")
{
//do something here
Console.ReadLine();
}
I know I probably couldn't actually use readline, but I would like to be able to do tab completion at that same point where you retrieve input from the user. | .net | console | null | null | null | null | open | .NET Console Application Tab Completion
===
Any ideas on how to implement tab completion for a .NET (C#) Console Application?
And I mean within an application that is run and then loops for user input (like if you run ftp.exe without any arguments), like this:
string line = string.Empty;
while (line != "exit")
{
//do something here
Console.ReadLine();
}
I know I probably couldn't actually use readline, but I would like to be able to do tab completion at that same point where you retrieve input from the user. | 0 |
46,347 | 09/05/2008 17:23:28 | 2,312 | 08/21/2008 15:19:59 | 36 | 1 | IIS7: HTTP->HTTPS Cleanly | Is there a clean way to redirect all attempts to going to an HTTP:// version of a site to its HTTPS:// equivalent? | http | iis7 | https | null | null | null | open | IIS7: HTTP->HTTPS Cleanly
===
Is there a clean way to redirect all attempts to going to an HTTP:// version of a site to its HTTPS:// equivalent? | 0 |
46,350 | 09/05/2008 17:24:42 | 4,264 | 09/02/2008 15:02:21 | 3 | 0 | HTML: center a block of content when you don't know in advance its width. | After lots of attempts and search I have never found a satisfactory way to do it with CSS2.
A simple way to accomplish it is to wrap it into a handy TABLE as shown in the sample below. Do you know how to do it avoiding table layouts and also avoiding quirky tricks?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<style type="text/css">
table
{
margin:0px auto 0 auto;
}
</style>
</head>
<body>
<table>
<tr>
<td>test<br/>test</td>
</tr>
</table>
</body>
<html> | html | css | null | null | null | null | open | HTML: center a block of content when you don't know in advance its width.
===
After lots of attempts and search I have never found a satisfactory way to do it with CSS2.
A simple way to accomplish it is to wrap it into a handy TABLE as shown in the sample below. Do you know how to do it avoiding table layouts and also avoiding quirky tricks?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<style type="text/css">
table
{
margin:0px auto 0 auto;
}
</style>
</head>
<body>
<table>
<tr>
<td>test<br/>test</td>
</tr>
</table>
</body>
<html> | 0 |
46,354 | 09/05/2008 17:26:38 | 1,807 | 08/18/2008 16:52:32 | 171 | 9 | "Invalid column name" error on SQL statement from OpenQuery results | I'm trying to perform a SQL query through a linked SSAS server. The initial query works fine:
SELECT "Ugly OLAP name" as "Value"
FROM OpenQuery( OLAP, 'OLAP Query')
But if I try to add:
WHERE "Value" > 0
I get an error
> Invalid column name 'Value'
Any ideas what I might be doing wrong?
| sql | null | null | null | null | null | open | "Invalid column name" error on SQL statement from OpenQuery results
===
I'm trying to perform a SQL query through a linked SSAS server. The initial query works fine:
SELECT "Ugly OLAP name" as "Value"
FROM OpenQuery( OLAP, 'OLAP Query')
But if I try to add:
WHERE "Value" > 0
I get an error
> Invalid column name 'Value'
Any ideas what I might be doing wrong?
| 0 |
46,365 | 09/05/2008 17:34:43 | 4,803 | 09/05/2008 17:24:10 | 1 | 0 | SQL Server Full-Text Search: Hung processes with MSSEARCH wait type | We have a SQL Server 2005 SP2 machine running a large number of databases, all of which contain full-text catalogs. Whenever we try to drop one of these databases or rebuild a full-text index, the drop or rebuild process hangs indefinitely with a MSSEARCH wait type. The process can’t be killed, and a server reboot is required to get things running again. Based on a Microsoft forums post[1], it appears that the problem might be an improperly removed full-text catalog. Can anyone recommend a way to determine which catalog is causing the problem, without having to remove all of them?
[1] [http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2681739&SiteID=1]
“Yes we did have full text catalogues in the database, but since I had disabled full text search for the database, and disabled msftesql, I didn't suspect them. I got however an article from Microsoft support, showing me how I could test for catalogues not properly removed. So I discovered that there still existed an old catalogue, which I ,after and only after re-enabling full text search, were able to delete, since then my backup has worked”
[1]: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2681739&SiteID=1 | sql-server | full-text-search | null | null | null | null | open | SQL Server Full-Text Search: Hung processes with MSSEARCH wait type
===
We have a SQL Server 2005 SP2 machine running a large number of databases, all of which contain full-text catalogs. Whenever we try to drop one of these databases or rebuild a full-text index, the drop or rebuild process hangs indefinitely with a MSSEARCH wait type. The process can’t be killed, and a server reboot is required to get things running again. Based on a Microsoft forums post[1], it appears that the problem might be an improperly removed full-text catalog. Can anyone recommend a way to determine which catalog is causing the problem, without having to remove all of them?
[1] [http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2681739&SiteID=1]
“Yes we did have full text catalogues in the database, but since I had disabled full text search for the database, and disabled msftesql, I didn't suspect them. I got however an article from Microsoft support, showing me how I could test for catalogues not properly removed. So I discovered that there still existed an old catalogue, which I ,after and only after re-enabling full text search, were able to delete, since then my backup has worked”
[1]: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2681739&SiteID=1 | 0 |
46,376 | 09/05/2008 17:42:33 | 3,776 | 08/30/2008 18:02:35 | 336 | 28 | Windows packet sniffer that can capture loopback traffic? | (This is a followup to my [previous question][1] about measuring .NET remoting traffic.)
When I am testing our Windows service / service controller GUI combination, it is often most convenient to run both pieces on my development box. With this setup, the remoting traffic between the two is via loopback, not through the Ethernet card.
Are there any software packet sniffers that can capture loopback traffic on a WinXP machine? [Wireshark](http://www.wireshark.org/) is a great package, but it can only capture external traffic on a Windows machine, not loopback.
[1]: http://stackoverflow.com/questions/42468/how-do-i-measure-bytes-inout-of-an-ip-port-used-for-net-remoting | .net | windows | networking | remoting | null | null | open | Windows packet sniffer that can capture loopback traffic?
===
(This is a followup to my [previous question][1] about measuring .NET remoting traffic.)
When I am testing our Windows service / service controller GUI combination, it is often most convenient to run both pieces on my development box. With this setup, the remoting traffic between the two is via loopback, not through the Ethernet card.
Are there any software packet sniffers that can capture loopback traffic on a WinXP machine? [Wireshark](http://www.wireshark.org/) is a great package, but it can only capture external traffic on a Windows machine, not loopback.
[1]: http://stackoverflow.com/questions/42468/how-do-i-measure-bytes-inout-of-an-ip-port-used-for-net-remoting | 0 |
46,377 | 09/05/2008 17:43:03 | 327 | 08/04/2008 17:08:49 | 584 | 39 | How do I specify multiple constraints on a generic type in C#? | What is the syntax for placing constraints on multiple types? The basic example:
class Animal<SpeciesType> where SpeciesType : Species
I would like to place constraints on both types in the following definition such that SpeciesType must inherit from Species and OrderType must inherit from Order:
class Animal<SpeciesType, OrderType> | c# | .net | oop | null | null | null | open | How do I specify multiple constraints on a generic type in C#?
===
What is the syntax for placing constraints on multiple types? The basic example:
class Animal<SpeciesType> where SpeciesType : Species
I would like to place constraints on both types in the following definition such that SpeciesType must inherit from Species and OrderType must inherit from Order:
class Animal<SpeciesType, OrderType> | 0 |
46,380 | 09/05/2008 17:45:02 | 3,474 | 08/28/2008 17:28:46 | 386 | 29 | Why doesn't Oracle tell you WHICH table or view does not exist? | If you've used Oracle, you've probably gotten the helpful message "ORA-00942: Table or view does not exist". Is there a legitimate technical reason the message doesn't include the name of the missing object?
Arguments about this being due to security sound like they were crafted by the TSA. If I'm an attacker, I'd know what table I just attempted to exploit, and be able to interpret this unhelpful message easily. If I'm a developer working with a complex join through several layers of application code, it's often very difficult to tell.
My guess is that when this error was originally implemented, someone neglected to add the object name, and now, people are afraid it will break compatibility to fix it. (Code doing silly things like parsing the error message will be confused if it changes.)
Is there a developer-friendly (as opposed to recruiting your DBA) way to determine the name of the missing table? | database | oracle | null | null | null | null | open | Why doesn't Oracle tell you WHICH table or view does not exist?
===
If you've used Oracle, you've probably gotten the helpful message "ORA-00942: Table or view does not exist". Is there a legitimate technical reason the message doesn't include the name of the missing object?
Arguments about this being due to security sound like they were crafted by the TSA. If I'm an attacker, I'd know what table I just attempted to exploit, and be able to interpret this unhelpful message easily. If I'm a developer working with a complex join through several layers of application code, it's often very difficult to tell.
My guess is that when this error was originally implemented, someone neglected to add the object name, and now, people are afraid it will break compatibility to fix it. (Code doing silly things like parsing the error message will be confused if it changes.)
Is there a developer-friendly (as opposed to recruiting your DBA) way to determine the name of the missing table? | 0 |
46,385 | 09/05/2008 17:46:33 | 298 | 08/04/2008 13:29:28 | 206 | 8 | Delete all but top n from database table in SQL | What's the best way to delete all rows from a table in sql but to keep n number of rows on the top? | sql | null | null | null | null | null | open | Delete all but top n from database table in SQL
===
What's the best way to delete all rows from a table in sql but to keep n number of rows on the top? | 0 |
46,387 | 09/05/2008 17:48:00 | 4,527 | 09/04/2008 16:03:56 | 38 | 7 | How to get the correct Content-Length for a POST request. | I am using a perl script to POST to Google Appengine application. I post a text file containing some XML using the -F option.
http://www.cpan.org/authors/id/E/EL/ELIJAH/bget-1.1
There is a version 1.2, already tested and get the same issue. The post looks something like this.
Host: foo.appspot.com
User-Agent: lwp-request/1.38
Content-Type: text/plain
Content-Length: 202
<XML>
<BLAH>Hello World</BLAH>
</XML>
I have modified the example so the 202 isn't right, don't worry about that. On to the problem. The Content-Length matches the number of bytes on the file, however unless I manually increase the Content-Length it does not send all of the file, a few bytes get truncated. The number of bytes truncated is not the same for files of different sizes. I used the -r option on the script and I can see what it is sending and it is sending all of the file, but Google Appengine self.request.body shows that not everything is received. I think the solution is to get the right number for Content-Length and apparently it isn't as simple as number of bytes on the file or the perl script is mangling it somehow.
| perl | http | google-app-engine | null | null | null | open | How to get the correct Content-Length for a POST request.
===
I am using a perl script to POST to Google Appengine application. I post a text file containing some XML using the -F option.
http://www.cpan.org/authors/id/E/EL/ELIJAH/bget-1.1
There is a version 1.2, already tested and get the same issue. The post looks something like this.
Host: foo.appspot.com
User-Agent: lwp-request/1.38
Content-Type: text/plain
Content-Length: 202
<XML>
<BLAH>Hello World</BLAH>
</XML>
I have modified the example so the 202 isn't right, don't worry about that. On to the problem. The Content-Length matches the number of bytes on the file, however unless I manually increase the Content-Length it does not send all of the file, a few bytes get truncated. The number of bytes truncated is not the same for files of different sizes. I used the -r option on the script and I can see what it is sending and it is sending all of the file, but Google Appengine self.request.body shows that not everything is received. I think the solution is to get the right number for Content-Length and apparently it isn't as simple as number of bytes on the file or the perl script is mangling it somehow.
| 0 |
46,389 | 09/05/2008 17:48:28 | 4,406 | 09/03/2008 14:38:45 | 48 | 7 | How to export findbugs results from Eclipse findbugs plugin? | I have findbugs plugin for eclipse which when run on my project will show results in Bugs explorer clubbed by the type of bug.
I need to be able to do two things:
- Export all these to excel sheet
- Find out the bugs reported in a set of files (and be able to do it recursively w/o running for whole project and exporting and finding out the classes to be modified.
Any suggestions?
FYI, I am using MyEclipse v 6.0.1 and FindBugs 1.3.4 | java | eclipse-plugin | findbugs | null | null | null | open | How to export findbugs results from Eclipse findbugs plugin?
===
I have findbugs plugin for eclipse which when run on my project will show results in Bugs explorer clubbed by the type of bug.
I need to be able to do two things:
- Export all these to excel sheet
- Find out the bugs reported in a set of files (and be able to do it recursively w/o running for whole project and exporting and finding out the classes to be modified.
Any suggestions?
FYI, I am using MyEclipse v 6.0.1 and FindBugs 1.3.4 | 0 |
46,394 | 09/05/2008 17:49:11 | 1,942 | 08/19/2008 14:45:43 | 294 | 25 | Automatic Timeout Web Client Use | One of the problems I have come accross having complext tasks on the browser is with automatic timeouts. Currently our site has a sliding expiration of 30 minutes. Normally this isn't a problem because we use asp.net and most of the time the users update one or two fields and then submit the form. This obviously keeps the session active. I have struggled with how to handle this with significantly more complex forms/user interaction where there are few if no round trips to the server. Now users can view reports, type emails etc. on our site, and I am struggling with how to keep their session active while they're actually using browser but they are not actively posting information back. I would dispense with the sliding expiration, but it's a requirement, so I am stuck with it. Most of our users are outside of the organization, so I can't use any form of SSO. Does anyone have an elegant solution (I'll even go for an ugly one if it works), or am I out of luck? | c# | asp.net | null | null | null | null | open | Automatic Timeout Web Client Use
===
One of the problems I have come accross having complext tasks on the browser is with automatic timeouts. Currently our site has a sliding expiration of 30 minutes. Normally this isn't a problem because we use asp.net and most of the time the users update one or two fields and then submit the form. This obviously keeps the session active. I have struggled with how to handle this with significantly more complex forms/user interaction where there are few if no round trips to the server. Now users can view reports, type emails etc. on our site, and I am struggling with how to keep their session active while they're actually using browser but they are not actively posting information back. I would dispense with the sliding expiration, but it's a requirement, so I am stuck with it. Most of our users are outside of the organization, so I can't use any form of SSO. Does anyone have an elegant solution (I'll even go for an ugly one if it works), or am I out of luck? | 0 |
46,415 | 09/05/2008 17:56:00 | 72 | 08/01/2008 15:09:58 | 1,434 | 70 | Passing untampered data from Flash app to server? | I'm looking for secure ways to pass data between a client running Flash and a server. The data in question will be generated BY the Flash app, which in this case is your score after finishing a game. I want to verify the data is untampered on the server. What are some good methods of getting this done?
One simple way is to perform some operations on the data such as a hash, and pass the hash back to the server along with the data. This is easily broken by someone with access to the client source code, however. | security | flash | encryption | null | null | null | open | Passing untampered data from Flash app to server?
===
I'm looking for secure ways to pass data between a client running Flash and a server. The data in question will be generated BY the Flash app, which in this case is your score after finishing a game. I want to verify the data is untampered on the server. What are some good methods of getting this done?
One simple way is to perform some operations on the data such as a hash, and pass the hash back to the server along with the data. This is easily broken by someone with access to the client source code, however. | 0 |
46,425 | 09/05/2008 17:59:01 | 2,450 | 08/22/2008 11:13:30 | 188 | 13 | Lisp list iteration | I have a function that gets x(a value) and xs(a list) and removes all values that are bigger than x from the list. Well it doesn't work, can you tell me why?
(defun biggerElems(x xs)
(let ((xst))
(dolist (elem xs)
(if (> x elem)
(setf xst (remove elem xs))))
xst)) | lisp | list | iteration | null | null | null | open | Lisp list iteration
===
I have a function that gets x(a value) and xs(a list) and removes all values that are bigger than x from the list. Well it doesn't work, can you tell me why?
(defun biggerElems(x xs)
(let ((xst))
(dolist (elem xs)
(if (> x elem)
(setf xst (remove elem xs))))
xst)) | 0 |
46,439 | 09/05/2008 18:06:46 | 300 | 08/04/2008 13:38:16 | 1 | 0 | SQL Server unused, but allocated table space | I have ms sql databases that grow very large. Upon examination I find that there is a bunch of unused space in certain tables. I don't do many physical deletes, so I don't think that its just deleted records. DBCC SHRINK doesn't make the file smaller. But, if I dump the table to a new, empty database, the size goes down about 80%. Instead of the 7gb I have in this table in the current database, I end up with about 1.5gb in the fresh database. Its as if sql server is allocating too much memory. Anyone encountered this before? I'd like to be able to shrink the table by removing unused allocated space without having to create a whole new database.
tia
Don | sql-server | null | null | null | null | 01/31/2012 19:44:52 | too localized | SQL Server unused, but allocated table space
===
I have ms sql databases that grow very large. Upon examination I find that there is a bunch of unused space in certain tables. I don't do many physical deletes, so I don't think that its just deleted records. DBCC SHRINK doesn't make the file smaller. But, if I dump the table to a new, empty database, the size goes down about 80%. Instead of the 7gb I have in this table in the current database, I end up with about 1.5gb in the fresh database. Its as if sql server is allocating too much memory. Anyone encountered this before? I'd like to be able to shrink the table by removing unused allocated space without having to create a whole new database.
tia
Don | 3 |
46,454 | 09/05/2008 18:12:31 | 1,385,358 | 08/25/2008 03:05:06 | 171 | 9 | WebBrowserControl Scroll to Bottom | I am working on a simple chat application using a System.Windows.Forms.WebBrowser Control to display the messages between the user and the recipient. How do I get the control to automatically scroll to the bottom every time I update the DocumentText of the control?
| .net | usercontrols | wysiwyg | null | null | null | open | WebBrowserControl Scroll to Bottom
===
I am working on a simple chat application using a System.Windows.Forms.WebBrowser Control to display the messages between the user and the recipient. How do I get the control to automatically scroll to the bottom every time I update the DocumentText of the control?
| 0 |
46,482 | 09/05/2008 18:29:04 | 1,108 | 08/12/2008 12:16:28 | 37 | 5 | Read Access File into a DataSet | Is there an easy way to read an entire Access file (.mdb) into a DataSet in .NET (specifically C# or VB)?
Or at least to get a list of tables from an access file so that I can loop through it and add them one at a time into a DataSet? | .net | ms-access | dataset | null | null | null | open | Read Access File into a DataSet
===
Is there an easy way to read an entire Access file (.mdb) into a DataSet in .NET (specifically C# or VB)?
Or at least to get a list of tables from an access file so that I can loop through it and add them one at a time into a DataSet? | 0 |
46,483 | 09/05/2008 18:29:12 | 4,137 | 09/02/2008 00:25:36 | 1 | 3 | htmlentities vs htmlspecialchars | What are the differences between htmlspecialchars and htmlentities. When should I use one or the other? | php | null | null | null | null | null | open | htmlentities vs htmlspecialchars
===
What are the differences between htmlspecialchars and htmlentities. When should I use one or the other? | 0 |
46,484 | 09/05/2008 18:29:25 | 4,241 | 09/02/2008 13:53:20 | 1 | 1 | How to encrypt email addresses using JQuery | Is there a way to use JQuery to cloak or encrypt email addresses on an HTML page without changing the syntax in the HREF? | jquery | email | null | null | null | null | open | How to encrypt email addresses using JQuery
===
Is there a way to use JQuery to cloak or encrypt email addresses on an HTML page without changing the syntax in the HREF? | 0 |
46,489 | 09/05/2008 18:31:39 | 67 | 08/01/2008 14:49:18 | 108 | 14 | Referencing Embedded resources from other resources in c# | In my web application I include all of my JavaScripts as js files that are embedded resources in the assembly, and add them to the page using `ClientScriptManager.GetWebResourceUrl()`. However, in some of my js files, I have references to other static assets like image urls. I would like to make those assembly resources as well. Is there a way to tokenize the reference to the resource? e.g.
this.drophint = document.createElement('img');
this.drophint.src = '/_layouts/images/dragdrophint.gif';
Could become something like:
this.drophint = document.createElement('img');
this.drophint.src = '{resource:assembly.location.dragdrophint.gif}';
| c# | asp.net | javascript | null | null | null | open | Referencing Embedded resources from other resources in c#
===
In my web application I include all of my JavaScripts as js files that are embedded resources in the assembly, and add them to the page using `ClientScriptManager.GetWebResourceUrl()`. However, in some of my js files, I have references to other static assets like image urls. I would like to make those assembly resources as well. Is there a way to tokenize the reference to the resource? e.g.
this.drophint = document.createElement('img');
this.drophint.src = '/_layouts/images/dragdrophint.gif';
Could become something like:
this.drophint = document.createElement('img');
this.drophint.src = '{resource:assembly.location.dragdrophint.gif}';
| 0 |
46,495 | 09/05/2008 18:32:21 | 2,184 | 08/20/2008 20:01:42 | 8 | 1 | SQL Server 2005 error | Why can't you do this and is there are work around?
declare @x int
set @x = 1
if (@x = 0)
begin
select 1 as Value into #temptable
end
else
begin
select 2 as Value into #temptable
end
select * from #temptable
drop table #temptable
| temptables | null | null | null | null | null | open | SQL Server 2005 error
===
Why can't you do this and is there are work around?
declare @x int
set @x = 1
if (@x = 0)
begin
select 1 as Value into #temptable
end
else
begin
select 2 as Value into #temptable
end
select * from #temptable
drop table #temptable
| 0 |
46,496 | 09/05/2008 18:32:25 | 2,628 | 08/23/2008 18:34:26 | 354 | 9 | Should I avoid using Java Label Statements? | Today I had a coworker suggest I refactor my code to use a label statement to control flow through 2 nested for loops I had created. I've never used them before because personally I think they decrease the readability of a program. I am willing to change my mind about using them if the argument is solid enough however. What are people's opinions on label statements? | java | null | null | null | null | null | open | Should I avoid using Java Label Statements?
===
Today I had a coworker suggest I refactor my code to use a label statement to control flow through 2 nested for loops I had created. I've never used them before because personally I think they decrease the readability of a program. I am willing to change my mind about using them if the argument is solid enough however. What are people's opinions on label statements? | 0 |
46,501 | 09/05/2008 18:33:31 | 4,811 | 09/05/2008 18:04:54 | 1 | 0 | Automated Unit Testing Gen Tools for .NET | Looking to get your take on an automated testing tool (voting should bring good ones to the top)
Ideal tool would:
- Eliminate the need to present a set
of values to a method.
- employ techniques such as Interactive
Exploratory Testing where the code
is examined to determine what values
are required to exercise all code
paths. i.e. the unit tests for a method is determined by the complexity of the code
For example, if a method checks that an integer argument is 123, at least 2 unit tests are generated: one where that argument is 123 and one where it is not.
For Java my understanding is these are some options but not .NET
- TestGen4J
- AgitarOne
Have heard of Pex - For .NET from Microsoft Research but this has a non-commercial license
Thanks | .net | unit-testing | testing | automated-tests | null | null | open | Automated Unit Testing Gen Tools for .NET
===
Looking to get your take on an automated testing tool (voting should bring good ones to the top)
Ideal tool would:
- Eliminate the need to present a set
of values to a method.
- employ techniques such as Interactive
Exploratory Testing where the code
is examined to determine what values
are required to exercise all code
paths. i.e. the unit tests for a method is determined by the complexity of the code
For example, if a method checks that an integer argument is 123, at least 2 unit tests are generated: one where that argument is 123 and one where it is not.
For Java my understanding is these are some options but not .NET
- TestGen4J
- AgitarOne
Have heard of Pex - For .NET from Microsoft Research but this has a non-commercial license
Thanks | 0 |
46,512 | 09/05/2008 18:37:09 | 4,790 | 09/05/2008 16:00:28 | 11 | 2 | Can Visual Studio put timestamps in the build log? | In the build log I'd like to the start and end time of each project's compilation. Is there any way to get VS to do this? | visual-studio | build | null | null | null | null | open | Can Visual Studio put timestamps in the build log?
===
In the build log I'd like to the start and end time of each project's compilation. Is there any way to get VS to do this? | 0 |
46,529 | 09/05/2008 18:42:15 | 4,215 | 09/02/2008 11:07:44 | 23 | 3 | Can i get an image output for a Developer Express WebChartControl? | I have a WebChartControl on my web page. When the chart was generated, an image is being produced and it was shown on the page.
Is there a way to get and save this chart as an image output on runtime? | asp.net | devexpress | webchartcontrol | null | null | null | open | Can i get an image output for a Developer Express WebChartControl?
===
I have a WebChartControl on my web page. When the chart was generated, an image is being produced and it was shown on the page.
Is there a way to get and save this chart as an image output on runtime? | 0 |
46,532 | 09/05/2008 18:43:25 | 1,228 | 08/13/2008 13:58:55 | 1,147 | 86 | Do namespaces propagate to children in XElement objects? | If I have an XElement that has child elements, and if I remove a child element from the parent, removing all references between the two, will the child XElement have the same namespaces as the parent?
In other words, if I have the following XML:
<parent xmlns:foo="abc">
<foo:child />
</parent>
and I remove the child element, will the child element's xml look like
<child xmlns="abc" />
or like
<child />
| .net | namespace | xelement | null | null | null | open | Do namespaces propagate to children in XElement objects?
===
If I have an XElement that has child elements, and if I remove a child element from the parent, removing all references between the two, will the child XElement have the same namespaces as the parent?
In other words, if I have the following XML:
<parent xmlns:foo="abc">
<foo:child />
</parent>
and I remove the child element, will the child element's xml look like
<child xmlns="abc" />
or like
<child />
| 0 |
46,541 | 09/05/2008 18:48:03 | 3,594 | 08/29/2008 08:46:29 | 144 | 10 | When to use singleton pattern versus static class | Name the design considerations in deciding between use of a [singleton][1] versus a static class. In doing this, you're kind of forced to contrast the two, so whatever contrasts you can come up with are also useful in showing your thought process! Also, every interviewer likes to see illustrative examples. :)
[1]: http://en.wikipedia.org/wiki/Singleton_pattern | interview-questions | design-patterns | null | null | null | null | open | When to use singleton pattern versus static class
===
Name the design considerations in deciding between use of a [singleton][1] versus a static class. In doing this, you're kind of forced to contrast the two, so whatever contrasts you can come up with are also useful in showing your thought process! Also, every interviewer likes to see illustrative examples. :)
[1]: http://en.wikipedia.org/wiki/Singleton_pattern | 0 |
46,545 | 09/05/2008 18:50:16 | 3,314 | 08/27/2008 20:05:23 | 167 | 13 | Backup for MySQL | How do I do backups in MySQL?
I'm hoping there'll be something better than just running mysqldump every "x" hours.
Is there anything like SQL Server has, where you can take a full backup each day, and then incrementals every hour, so if your DB dies you can restore up to the latest backup?
Something like the DB log, where as long as the log doesn't die, you can restore up to the exact point where the DB died?
Also, how do these things affect locking?
I'd expect the online transactions to be locked for a while if I do a mysqldump. | mysql | backup | null | null | null | null | open | Backup for MySQL
===
How do I do backups in MySQL?
I'm hoping there'll be something better than just running mysqldump every "x" hours.
Is there anything like SQL Server has, where you can take a full backup each day, and then incrementals every hour, so if your DB dies you can restore up to the latest backup?
Something like the DB log, where as long as the log doesn't die, you can restore up to the exact point where the DB died?
Also, how do these things affect locking?
I'd expect the online transactions to be locked for a while if I do a mysqldump. | 0 |
46,561 | 09/05/2008 18:55:22 | 1,965 | 08/19/2008 15:51:08 | 2,974 | 169 | ViewState and changing control order | This has been a fun week (if you look back at my questions you'll see a common theme).
I have a repeater that is bound to a collection. Each repeater item dynamic control that corresponds to the collection item, it also renders out a header over each control that contains a Delete link.
When the delete link is clicked, the appropriate item is removed from the collection, and the repeater is rebound.
The problem I am encountering is that once I alter the repeater items, the state on some of the usercontrols is lost. Its always the same controls, regardless of where they are in the collection.
I'm wondering if changing the bound collection is a no-no, and it may confuse viewstate from properly restoring the values.
Can anyone clarify? How else can I do this? | viewstate | arrrrrrrrrrrg | null | null | null | null | open | ViewState and changing control order
===
This has been a fun week (if you look back at my questions you'll see a common theme).
I have a repeater that is bound to a collection. Each repeater item dynamic control that corresponds to the collection item, it also renders out a header over each control that contains a Delete link.
When the delete link is clicked, the appropriate item is removed from the collection, and the repeater is rebound.
The problem I am encountering is that once I alter the repeater items, the state on some of the usercontrols is lost. Its always the same controls, regardless of where they are in the collection.
I'm wondering if changing the bound collection is a no-no, and it may confuse viewstate from properly restoring the values.
Can anyone clarify? How else can I do this? | 0 |
46,568 | 09/05/2008 19:00:08 | 4,257 | 09/02/2008 14:39:35 | 119 | 16 | Can you programmatically restart a j2ee application | Does anyone know if it is possible to restart a J2EE application (from the application)? If so, how? | java | java-ee | null | null | null | null | open | Can you programmatically restart a j2ee application
===
Does anyone know if it is possible to restart a J2EE application (from the application)? If so, how? | 0 |
46,569 | 09/05/2008 19:00:15 | 4,083 | 09/01/2008 17:39:58 | 246 | 23 | Solutions for multiple webcam meeting | Currently our team is partially distributed with several members not at our local office. We do a lot of collaboration, and have decided to move to using webcams. I've done this before where we've had dedicated video links, but that was typically point to point, connecting two rooms at a time.
What solutions exist out there for having multiple webcams streaming at one time? Audio would be nice, but not entirely necessary, since we can just do a conference call for audio while we stream the video. Any gotchas to those who have used it? | collaboration | webcam | null | null | null | 08/07/2011 21:54:10 | off topic | Solutions for multiple webcam meeting
===
Currently our team is partially distributed with several members not at our local office. We do a lot of collaboration, and have decided to move to using webcams. I've done this before where we've had dedicated video links, but that was typically point to point, connecting two rooms at a time.
What solutions exist out there for having multiple webcams streaming at one time? Audio would be nice, but not entirely necessary, since we can just do a conference call for audio while we stream the video. Any gotchas to those who have used it? | 2 |
46,571 | 09/05/2008 19:00:58 | 3,271 | 08/27/2008 15:59:58 | 41 | 3 | cfqueryparam with like operator in coldfusion | I have been tasked with going through a number of ColdFusion sites that have recently been the subject of a rather nasty SQL Injection attack. Basically my work involves adding `<cfqueryparam`> tags to all of the inline sql. For the most part I've got it down, but can anybody tell me how to use cfqueryparam with the LIKE operator?
If my query looks like this:
select * from Foo where name like '%Bob%'
what should my `<cfqueryparam`> tag look like?
| coldfusion | null | null | null | null | null | open | cfqueryparam with like operator in coldfusion
===
I have been tasked with going through a number of ColdFusion sites that have recently been the subject of a rather nasty SQL Injection attack. Basically my work involves adding `<cfqueryparam`> tags to all of the inline sql. For the most part I've got it down, but can anybody tell me how to use cfqueryparam with the LIKE operator?
If my query looks like this:
select * from Foo where name like '%Bob%'
what should my `<cfqueryparam`> tag look like?
| 0 |
46,572 | 09/05/2008 19:01:03 | 4,140 | 09/02/2008 01:10:54 | 215 | 24 | What is the ASP.NET process for IIS 7.0? |
Looking at what's running and nothing jumps out.
Thanks! | asp.net | iis7 | null | null | null | null | open | What is the ASP.NET process for IIS 7.0?
===
Looking at what's running and nothing jumps out.
Thanks! | 0 |
46,582 | 09/05/2008 19:03:46 | 232 | 08/03/2008 20:02:07 | 121 | 16 | Response.Redirect with POST instead of Get? | We have the requirement to take a form submission and save some data, then redirect the user to a page offsite, but in redirecting, we need to "submit" a form with POST, not GET.
I was hoping there was an easy way to accomplish this, but I'm starting to think there isn't. I think I must now create a simple other page, with just the form that I want, redirect to it, populate the form variables, then do a body.onload call to a script that merely calls document.forms[0].submit();
Can anyone tell me if there is an alternative? We might need to tweak this later in the project, and it might get sort of complicated, so if there was an easy we could do this all non-other page dependent that would be fantastic.
Anyway, thanks for any and all responses. | asp.net | response.redirect | null | null | null | null | open | Response.Redirect with POST instead of Get?
===
We have the requirement to take a form submission and save some data, then redirect the user to a page offsite, but in redirecting, we need to "submit" a form with POST, not GET.
I was hoping there was an easy way to accomplish this, but I'm starting to think there isn't. I think I must now create a simple other page, with just the form that I want, redirect to it, populate the form variables, then do a body.onload call to a script that merely calls document.forms[0].submit();
Can anyone tell me if there is an alternative? We might need to tweak this later in the project, and it might get sort of complicated, so if there was an easy we could do this all non-other page dependent that would be fantastic.
Anyway, thanks for any and all responses. | 0 |
46,584 | 09/05/2008 19:04:26 | 4,115 | 09/01/2008 20:54:03 | 16 | 0 | When should one use a project reference opposed to a binary reference? | My company has a common code library which consists of many class libary projects along with supporting test projects. Each class library project outputs a single binary, e.g. Company.Common.Serialization.dll. Since we own the compiled, tested binaries as well as the source code, there's debate as to whether our consuming applications should use binary or project references.
Some arguments in favor of project references:
- Project references would allow users to debug and view all solution code without the overhead of loading additional projects/solutions.
- Project references would assist in keeping up with common component changes committed to the source control system as changes would be easily identifiable without the active solution.
Some arguments in favor of binary references:
- Binary references would simplify solutions and make for faster solution loading times.
- Binary references would allow developers to focus on new code rather than potentially being distracted by code which is already baked and proven stable.
- Binary references would force us to appropriately dogfood our stuff as we would be using the common library just as those outside of our organization would be required to do.
- Since a binary reference can't be debugged (stepped into), one would be forced to replicate and fix issues by extending the existing test projects rather than testing and fixing within the context of the consuming application alone.
- Binary references will ensure that concurrent development on the class library project will have no impact on the consuming application as a stable version of the binary will be referenced rather than an influx version. It would be the decision of the project lead whether or not to incorporate a newer release of the component if necessary.
What is your policy/preference when it comes to using project or binary references?
| coding-style | standards | null | null | null | null | open | When should one use a project reference opposed to a binary reference?
===
My company has a common code library which consists of many class libary projects along with supporting test projects. Each class library project outputs a single binary, e.g. Company.Common.Serialization.dll. Since we own the compiled, tested binaries as well as the source code, there's debate as to whether our consuming applications should use binary or project references.
Some arguments in favor of project references:
- Project references would allow users to debug and view all solution code without the overhead of loading additional projects/solutions.
- Project references would assist in keeping up with common component changes committed to the source control system as changes would be easily identifiable without the active solution.
Some arguments in favor of binary references:
- Binary references would simplify solutions and make for faster solution loading times.
- Binary references would allow developers to focus on new code rather than potentially being distracted by code which is already baked and proven stable.
- Binary references would force us to appropriately dogfood our stuff as we would be using the common library just as those outside of our organization would be required to do.
- Since a binary reference can't be debugged (stepped into), one would be forced to replicate and fix issues by extending the existing test projects rather than testing and fixing within the context of the consuming application alone.
- Binary references will ensure that concurrent development on the class library project will have no impact on the consuming application as a stable version of the binary will be referenced rather than an influx version. It would be the decision of the project lead whether or not to incorporate a newer release of the component if necessary.
What is your policy/preference when it comes to using project or binary references?
| 0 |
46,585 | 09/05/2008 19:05:12 | 572 | 08/06/2008 20:56:54 | 2,991 | 241 | When do you use POST and when do you use GET? | From what I can gather, there are three categories - never use GET and use POST, never use POST and use GET, and it doesn't matter which one you use.
Am I correct in assuming those three cases? If so, what are some examples from each case? | http | post | get | null | null | 07/17/2012 13:50:17 | not constructive | When do you use POST and when do you use GET?
===
From what I can gather, there are three categories - never use GET and use POST, never use POST and use GET, and it doesn't matter which one you use.
Am I correct in assuming those three cases? If so, what are some examples from each case? | 4 |
46,586 | 09/05/2008 19:05:18 | 658 | 08/07/2008 15:07:47 | 1,482 | 83 | GOTO still considered harmful? | Everyone is aware of Dijkstra's [GOTO Considered Harmful [pdf]][1] and there has been a formidable push since that time to eschew the goto statement whenever possible. While it's possible to use goto to produce unmaintainable, sprawling code, it nevertheless remains in [modern programming languages][2]. Even the advanced [continuation][3] control structure in Scheme can be described as a sophisticated goto.
What circumstances warrant the use of goto? When is it best to avoid?
[1]: http://www.cs.utexas.edu/users/EWD/ewd02xx/EWD215.PDF
[2]: http://msdn.microsoft.com/en-us/library/13940fs2(VS.71).aspx
[3]: http://en.wikipedia.org/wiki/Goto#Continuations | goto | goto-considered-harmful | program-design | null | null | null | open | GOTO still considered harmful?
===
Everyone is aware of Dijkstra's [GOTO Considered Harmful [pdf]][1] and there has been a formidable push since that time to eschew the goto statement whenever possible. While it's possible to use goto to produce unmaintainable, sprawling code, it nevertheless remains in [modern programming languages][2]. Even the advanced [continuation][3] control structure in Scheme can be described as a sophisticated goto.
What circumstances warrant the use of goto? When is it best to avoid?
[1]: http://www.cs.utexas.edu/users/EWD/ewd02xx/EWD215.PDF
[2]: http://msdn.microsoft.com/en-us/library/13940fs2(VS.71).aspx
[3]: http://en.wikipedia.org/wiki/Goto#Continuations | 0 |
46,612 | 09/05/2008 19:11:45 | 1,228 | 08/13/2008 13:58:55 | 1,147 | 86 | What's a good freeware collaborative (i.e., multiuser) instant messenger? | I'm looking for an app that my development team that is essentially an IM app, but multiple people can be in one "room." Similar to IRC.
Additional requirements (that preclude hosting an IRC server myself):
IM style appliction -- Download and install one app on each PC. The app lives in the tray. New messages appear in a notification window on everybody's pc.
Secure -- No Ventrillo Harassment nonsense. Only those with access can see and read what's going on.
Not My Job -- Doesn't require us to host a server, set up a server, etc. I just want to log on and go.
No friggen smileys -- If the client app has smilies I will have to kill someone. | collaboration | im | null | null | null | 07/27/2011 14:31:55 | not constructive | What's a good freeware collaborative (i.e., multiuser) instant messenger?
===
I'm looking for an app that my development team that is essentially an IM app, but multiple people can be in one "room." Similar to IRC.
Additional requirements (that preclude hosting an IRC server myself):
IM style appliction -- Download and install one app on each PC. The app lives in the tray. New messages appear in a notification window on everybody's pc.
Secure -- No Ventrillo Harassment nonsense. Only those with access can see and read what's going on.
Not My Job -- Doesn't require us to host a server, set up a server, etc. I just want to log on and go.
No friggen smileys -- If the client app has smilies I will have to kill someone. | 4 |
46,621 | 09/05/2008 19:13:22 | 4,801 | 09/05/2008 17:22:45 | 1 | 0 | Dotnetnuke using PNG images with Transparency | I have a Dotnetnuke site where my main logo is a PNG file using transparency. I tried GIF but the quality wasn't good enough.
Anyways it worked great on IE7 but I just saw my site in IE6 and noticed that the transparency isn't working with my logo.
Does anyone know of a quick way to fix this in a dotnetnuke portal? | internet-explorer-6 | png | dotnetnuke | transparency | null | null | open | Dotnetnuke using PNG images with Transparency
===
I have a Dotnetnuke site where my main logo is a PNG file using transparency. I tried GIF but the quality wasn't good enough.
Anyways it worked great on IE7 but I just saw my site in IE6 and noticed that the transparency isn't working with my logo.
Does anyone know of a quick way to fix this in a dotnetnuke portal? | 0 |
46,636 | 09/05/2008 19:17:15 | 4,778 | 09/05/2008 15:06:23 | 13 | 1 | Copying from network share using BAT | What's the best way to copy a file from a network share to the local file system using a Windows batch file? Normally, I would use "net use *" but using this approach how can I get the drive letter? | windows | batch | null | null | null | null | open | Copying from network share using BAT
===
What's the best way to copy a file from a network share to the local file system using a Windows batch file? Normally, I would use "net use *" but using this approach how can I get the drive letter? | 0 |
46,642 | 09/05/2008 19:18:30 | 1,310 | 08/14/2008 13:42:16 | 568 | 29 | Does anyone here have a favorite memory profiling/memory leak tool they like to use for their java webapps? | I'm looking for a good tool to profile a java webapp. I'd like to get performance information and memory usage if possible.
Any suggestions? | java | web-applications | profiling | null | null | null | open | Does anyone here have a favorite memory profiling/memory leak tool they like to use for their java webapps?
===
I'm looking for a good tool to profile a java webapp. I'd like to get performance information and memory usage if possible.
Any suggestions? | 0 |
46,644 | 09/05/2008 19:18:34 | 1,220 | 08/13/2008 13:44:48 | 1,050 | 87 | Any way to handle Put and Delete verbs in ASP.Net MVC? | just wondering if anyone knows of a truly restful Put/delete implementation asp.net mvc preview 5 preferably. | asp.net-mvc | http | rest | null | null | null | open | Any way to handle Put and Delete verbs in ASP.Net MVC?
===
just wondering if anyone knows of a truly restful Put/delete implementation asp.net mvc preview 5 preferably. | 0 |
46,663 | 09/05/2008 19:23:00 | 1,288 | 08/14/2008 12:14:17 | 556 | 45 | How do you send email from a Java app using Gmail? | Is it possible to send an email from my Java application using a Gmail account? I have it configured to send using my company mail server, but that's not going to cut it when I distribute the application. Answers using Hotmail or Yahoo mail are also acceptable. | java | gmail | null | null | null | null | open | How do you send email from a Java app using Gmail?
===
Is it possible to send an email from my Java application using a Gmail account? I have it configured to send using my company mail server, but that's not going to cut it when I distribute the application. Answers using Hotmail or Yahoo mail are also acceptable. | 0 |
46,677 | 09/05/2008 19:26:18 | 317 | 08/04/2008 15:43:28 | 347 | 18 | Employee Web Usage From Proxy Logs | I need to find/create an application that will create employee web usage reports from HTTP proxy logs. Does anyone know of a good product that will do this? | reporting | null | null | null | null | null | open | Employee Web Usage From Proxy Logs
===
I need to find/create an application that will create employee web usage reports from HTTP proxy logs. Does anyone know of a good product that will do this? | 0 |
46,692 | 09/05/2008 19:30:37 | 4,301 | 09/02/2008 18:34:26 | 190 | 20 | Information Management Policy in SharePoint | An obscure puzzle, but it's driving me absolutely nuts:
I'm creating a custom Information Management Policy in MOSS. I've implemented IPolicyFeature, and my policy feature happily registers itself by configuring a new SPItemEventReceiver. All new items in my library fire the events as they should, and it all works fine.
IPolicyFeature also has a method ProcessListItem, which is supposed to retroactively apply the policy to items that were already in the library (at least, it's supposed to do that for as long as it keeps returning `true`). Except it doesn't. It only applies the policy to the ***first*** item in the library, and I have absolutely no idea why.
It doesn't seem to be throwing an exception, and it really does return true from processing that first item, and I can't think what else to look at. Anyone? | sharepoint | moss | information-management | null | null | null | open | Information Management Policy in SharePoint
===
An obscure puzzle, but it's driving me absolutely nuts:
I'm creating a custom Information Management Policy in MOSS. I've implemented IPolicyFeature, and my policy feature happily registers itself by configuring a new SPItemEventReceiver. All new items in my library fire the events as they should, and it all works fine.
IPolicyFeature also has a method ProcessListItem, which is supposed to retroactively apply the policy to items that were already in the library (at least, it's supposed to do that for as long as it keeps returning `true`). Except it doesn't. It only applies the policy to the ***first*** item in the library, and I have absolutely no idea why.
It doesn't seem to be throwing an exception, and it really does return true from processing that first item, and I can't think what else to look at. Anyone? | 0 |
46,693 | 09/05/2008 19:30:43 | 5,548 | 09/10/2008 12:45:40 | 1 | 0 | .Net 3.5, most secure way to pass string between processes | I'd like to be able to pass a SecureString (a cached passphrase) to a child process in C# (.Net 3.5), but I don't know what the most secure way is to do it. If I were to convert the SecureString back to a regular string and pass it as a command-line argument, for example, then I *think* the value may be prone to disk paging--which would make the plaintext touch the filesystem and ruin the point of using SecureString.
Can the IntPtr for the SecureString be passed instead? Could I use a named pipe without increasing the risk? | .net | security | ipc | null | null | null | open | .Net 3.5, most secure way to pass string between processes
===
I'd like to be able to pass a SecureString (a cached passphrase) to a child process in C# (.Net 3.5), but I don't know what the most secure way is to do it. If I were to convert the SecureString back to a regular string and pass it as a command-line argument, for example, then I *think* the value may be prone to disk paging--which would make the plaintext touch the filesystem and ruin the point of using SecureString.
Can the IntPtr for the SecureString be passed instead? Could I use a named pipe without increasing the risk? | 0 |
46,697 | 09/05/2008 19:31:59 | 4,778 | 09/05/2008 15:06:23 | 15 | 1 | Monitoring GDI calls | Is there a tool that allows one to monitor GDI calls? | windows | monitoring | gdi | null | null | null | open | Monitoring GDI calls
===
Is there a tool that allows one to monitor GDI calls? | 0 |
46,704 | 09/05/2008 19:35:44 | 2,755 | 08/24/2008 21:39:28 | 8 | 0 | Using JQuery, what is the best way to set onclick event listeners for radio buttons? | For the following HTML:
<form name="myForm">
<label>One<input name="area" type="radio" value="S" /></label>
<label>Two<input name="area" type="radio" value="R" /></label>
<label>Three<input name="area" type="radio" value="O" /></label>
<label>Four<input name="area" type="radio" value="U" /></label>
</form>
Changing from the following javascript code:
$(function() {
var myForm = document.myForm ;
var radios = myForm.radio ;
// Loop through radio buttons
for (var i=0; i<radios.length; i++) {
if (radios[i].value == "S") {
radios[i].checked = true ; // Selected when form displays
radioClicks() ; // Execute the function, initial setup
}
radios[i].onclick = radioClicks ; // Assign to run when clicked
}
});
Thanks | javascript | jquery | null | null | null | null | open | Using JQuery, what is the best way to set onclick event listeners for radio buttons?
===
For the following HTML:
<form name="myForm">
<label>One<input name="area" type="radio" value="S" /></label>
<label>Two<input name="area" type="radio" value="R" /></label>
<label>Three<input name="area" type="radio" value="O" /></label>
<label>Four<input name="area" type="radio" value="U" /></label>
</form>
Changing from the following javascript code:
$(function() {
var myForm = document.myForm ;
var radios = myForm.radio ;
// Loop through radio buttons
for (var i=0; i<radios.length; i++) {
if (radios[i].value == "S") {
radios[i].checked = true ; // Selected when form displays
radioClicks() ; // Execute the function, initial setup
}
radios[i].onclick = radioClicks ; // Assign to run when clicked
}
});
Thanks | 0 |
46,709 | 09/05/2008 19:37:55 | 1,219 | 08/13/2008 13:44:47 | 1,901 | 126 | Which ORM framework can best handle an MVCC database design? | When designing a database to use MVCC (Multi-Version Concurrency Control), you create tables with either a boolean field like "IsLatest" or an integer "VersionId", and you never do any updates, you only insert new records when things change.
MVCC gives you automatic auditing for applications that require a detailed history, and it also relieves pressure on the database with regards to update locks. The cons are that it makes your data size much bigger and slows down selects, due to the extra clause necessary to get the latest version. It also makes foreign keys more complicated.
(Note that I'm *not* talking about the native MVCC support in RDBMSs like SQL Server's snapshot isolation level)
This has been discussed in other posts here on Stack Overflow. [todo - links]
I am wondering, which of the prevalent entity/ORM frameworks (Linq to Sql, ADO.NET EF, Hibernate, etc) can cleanly support this type of design? This is a major change to the typical ActiveRecord design pattern, so I'm not sure if the majority of tools that are out there could help someone who decides to go this route with their data model. I'm particularly interested in how foreign keys would be handled, because I'm not even sure of the best way to data model them to support MVCC.
| database | orm | entity-framework | null | null | null | open | Which ORM framework can best handle an MVCC database design?
===
When designing a database to use MVCC (Multi-Version Concurrency Control), you create tables with either a boolean field like "IsLatest" or an integer "VersionId", and you never do any updates, you only insert new records when things change.
MVCC gives you automatic auditing for applications that require a detailed history, and it also relieves pressure on the database with regards to update locks. The cons are that it makes your data size much bigger and slows down selects, due to the extra clause necessary to get the latest version. It also makes foreign keys more complicated.
(Note that I'm *not* talking about the native MVCC support in RDBMSs like SQL Server's snapshot isolation level)
This has been discussed in other posts here on Stack Overflow. [todo - links]
I am wondering, which of the prevalent entity/ORM frameworks (Linq to Sql, ADO.NET EF, Hibernate, etc) can cleanly support this type of design? This is a major change to the typical ActiveRecord design pattern, so I'm not sure if the majority of tools that are out there could help someone who decides to go this route with their data model. I'm particularly interested in how foreign keys would be handled, because I'm not even sure of the best way to data model them to support MVCC.
| 0 |
46,714 | 09/05/2008 19:39:37 | 3,830 | 08/31/2008 05:08:21 | 11 | 1 | Why is ARG_MAX not defined via limits.h? | On Fedora Core 7, I'm writing some code that relies on ARG_MAX. However, even if I #include <limits.h>, the constant is still not defined. My investigations show that it's present in <sys/linux/limits.h>, but this is supposed to be portable across Win32/Mac/Linux, so directly including it isn't an option. What's going on here? | linux | limits | null | null | null | null | open | Why is ARG_MAX not defined via limits.h?
===
On Fedora Core 7, I'm writing some code that relies on ARG_MAX. However, even if I #include <limits.h>, the constant is still not defined. My investigations show that it's present in <sys/linux/limits.h>, but this is supposed to be portable across Win32/Mac/Linux, so directly including it isn't an option. What's going on here? | 0 |
46,718 | 09/05/2008 19:41:01 | 3,329 | 08/28/2008 00:09:50 | 11 | 1 | Best way to make a printer-friendly ASP.NET page? | I'm just curious how most people make their ASP.NET pages printer-friendly? Do you create a separate printer-friendly version of the ASPX page, use CSS or something else? How do you handle situations like page breaks and wide tables?
Is there one elegant solution that works for the majority of the cases? | asp.net | null | null | null | null | null | open | Best way to make a printer-friendly ASP.NET page?
===
I'm just curious how most people make their ASP.NET pages printer-friendly? Do you create a separate printer-friendly version of the ASPX page, use CSS or something else? How do you handle situations like page breaks and wide tables?
Is there one elegant solution that works for the majority of the cases? | 0 |
46,719 | 09/05/2008 19:41:30 | 1,368 | 08/14/2008 18:57:47 | 155 | 9 | Want to Encode text during Regex.Replace call | I have a regex call that I need help with.
I haven't posted my regex, because it is not relevant here.
What I want to be able to do is, during the Replace, I also want to modify the ${test} portion by doing a Html.Encode on the entire text that is effecting the regex.
Basically, wrap the entire text that is within the range of the regex with the bold tag, but also Html.Encode the text inbetween the bold tag.
<pre>
RegexOptions regexOptions = RegexOptions.Compiled | RegexOptions.IgnoreCase;
text = Regex.Replace(text, regexBold, @"<b>${text}</b>", regexOptions);
</pre>
| regex | null | null | null | null | null | open | Want to Encode text during Regex.Replace call
===
I have a regex call that I need help with.
I haven't posted my regex, because it is not relevant here.
What I want to be able to do is, during the Replace, I also want to modify the ${test} portion by doing a Html.Encode on the entire text that is effecting the regex.
Basically, wrap the entire text that is within the range of the regex with the bold tag, but also Html.Encode the text inbetween the bold tag.
<pre>
RegexOptions regexOptions = RegexOptions.Compiled | RegexOptions.IgnoreCase;
text = Regex.Replace(text, regexBold, @"<b>${text}</b>", regexOptions);
</pre>
| 0 |
46,758 | 09/05/2008 19:55:02 | 4,725 | 09/05/2008 11:21:05 | 21 | 6 | Tools for converting non-Java into Java source | Are there any good tools out there for automatically converting non-Java source code into Java source?
I'm not expecting something perfect, just to get the worst of the grunt work out of the way.
I guess there is a sliding scale of difficulty. C# should be relatively easy (so long as you ignore all the libraries). (well written) C++ not so bad. C requires making a little OO. (Statically type) functional languages may be easy to grok. Dynamic OO languages may require non-local analysis. | java | compiler | null | null | null | null | open | Tools for converting non-Java into Java source
===
Are there any good tools out there for automatically converting non-Java source code into Java source?
I'm not expecting something perfect, just to get the worst of the grunt work out of the way.
I guess there is a sliding scale of difficulty. C# should be relatively easy (so long as you ignore all the libraries). (well written) C++ not so bad. C requires making a little OO. (Statically type) functional languages may be easy to grok. Dynamic OO languages may require non-local analysis. | 0 |
46,777 | 09/05/2008 20:02:27 | 4,013 | 09/01/2008 10:58:24 | 48 | 11 | How to controll a webapplication through email? Or how to run php script by sending an email? | Ok here is the thing. I wanna run a webapplication on php and mysql, useing the CakePHP framework. And to keep the threshold of using the site at a very low place, I want to not use the standard login with username/password. (And I don't want to hassle my users with something like OpenID either. Goes to user type.) But everyone has email. So im thinking that the users shall be able to log in by sending a mail to [email protected] with no subject or content required. And they will get in reply an email with a link that will log them in (it will contain a hash). Also I will let the users do some actions without even visiting the site at all, just send an email with [email protected] and the command will be carried out. I will assume that the users and their email providers takes care of their email account security and as such there is no need for it on my site.
Now, how do I go from an email is sent to an account that is not read by humans to there being fired off some script (basically a "dummy browser client" calls an url( and the cakephp will take care of the rest)? | cakephp | email-integration | null | null | null | null | open | How to controll a webapplication through email? Or how to run php script by sending an email?
===
Ok here is the thing. I wanna run a webapplication on php and mysql, useing the CakePHP framework. And to keep the threshold of using the site at a very low place, I want to not use the standard login with username/password. (And I don't want to hassle my users with something like OpenID either. Goes to user type.) But everyone has email. So im thinking that the users shall be able to log in by sending a mail to [email protected] with no subject or content required. And they will get in reply an email with a link that will log them in (it will contain a hash). Also I will let the users do some actions without even visiting the site at all, just send an email with [email protected] and the command will be carried out. I will assume that the users and their email providers takes care of their email account security and as such there is no need for it on my site.
Now, how do I go from an email is sent to an account that is not read by humans to there being fired off some script (basically a "dummy browser client" calls an url( and the cakephp will take care of the rest)? | 0 |
46,788 | 09/05/2008 20:05:53 | 4,215 | 09/02/2008 11:07:44 | 23 | 3 | How to bind a MemoryStream to asp:image control? | Is there a way to bind a MemoryStream to asp:image control? | asp.net | image | memorystream | null | null | null | open | How to bind a MemoryStream to asp:image control?
===
Is there a way to bind a MemoryStream to asp:image control? | 0 |
46,805 | 09/05/2008 20:13:48 | 1,133 | 08/12/2008 17:34:48 | 46 | 5 | Custom cursor in WPF? | I want to use an image or icon as a custom cursor in WPF app. What's the best way to do it? | wpf | null | null | null | null | null | open | Custom cursor in WPF?
===
I want to use an image or icon as a custom cursor in WPF app. What's the best way to do it? | 0 |
46,812 | 09/05/2008 20:18:53 | 4,778 | 09/05/2008 15:06:23 | 25 | 1 | Terminating intermittently | Has anyone had and solved a problem where programs would terminate without any indication of why? I encounter this problem about every 6 months and I can get it to stop by having me (the administrator) log-in then out of the machine. After this things are back to normal for the next 6 months. I've seen this on Windows XP and Windows 2000 machines.
I've looked in the Event Viewer and monitored API calls and I cannot see anything out of the ordinary. | windows | intermittent | null | null | null | null | open | Terminating intermittently
===
Has anyone had and solved a problem where programs would terminate without any indication of why? I encounter this problem about every 6 months and I can get it to stop by having me (the administrator) log-in then out of the machine. After this things are back to normal for the next 6 months. I've seen this on Windows XP and Windows 2000 machines.
I've looked in the Event Viewer and monitored API calls and I cannot see anything out of the ordinary. | 0 |
46,820 | 09/05/2008 20:22:19 | 4,829 | 09/05/2008 19:58:59 | 11 | 1 | What is the best .WTV conversion tool? | .WTV is the new DVR-MR format for recorded TV-shows in the Vista Media Center with TV Pack 2008 installed. Since there is a bug in that TV Pack, not allowing to see the current playback posision within the MSAS COM State integration service, the only way to 'fix' the commercial skipping addin, is to convert the .WTV file into a .DVR-MR, and/or cutting out the commercial at that stage.
Does anyone know of a free command-line utility that can be used for that? | command-line | mediacenter | null | null | null | 11/27/2011 16:02:34 | off topic | What is the best .WTV conversion tool?
===
.WTV is the new DVR-MR format for recorded TV-shows in the Vista Media Center with TV Pack 2008 installed. Since there is a bug in that TV Pack, not allowing to see the current playback posision within the MSAS COM State integration service, the only way to 'fix' the commercial skipping addin, is to convert the .WTV file into a .DVR-MR, and/or cutting out the commercial at that stage.
Does anyone know of a free command-line utility that can be used for that? | 2 |
46,827 | 09/05/2008 20:26:12 | 1,943 | 08/19/2008 14:47:06 | 1 | 0 | How do you create a foreign key relationship in a SQL Server CE (Compact Edition) Database? | Visual Studio doesn't provide an interface for creating relationships between tables in a SQL Server CE database (I'm using version 3.0) and you can't open a Compact Edition DB using Management Studio as far as I know. Any ideas? | database | sqlserverce | sqlservercompactedition | null | null | null | open | How do you create a foreign key relationship in a SQL Server CE (Compact Edition) Database?
===
Visual Studio doesn't provide an interface for creating relationships between tables in a SQL Server CE database (I'm using version 3.0) and you can't open a Compact Edition DB using Management Studio as far as I know. Any ideas? | 0 |
46,833 | 09/05/2008 20:30:31 | 238 | 08/03/2008 21:42:37 | 1,657 | 74 | What is the the single best articles on the web for programmers? | In the spirit of Best of [RSS](http://stackoverflow.com/questions/5119/what-are-the-best-rss-feeds-for-programmersdevelopers) , [podcasts](http://stackoverflow.com/questions/1644/what-good-technology-podcasts-are-out-there) , [books](http://stackoverflow.com/questions/1711/what-is-the-single-most-influential-book-every-programmer-should-read) I ask you :
**What is the single best online article every programmer must read.** The older the better (timeless factor) .
I will kick off the discussion with some of my favorites in the answers so you can vote for them independently of the question.
As Joel suggested in the last podcast please provide one link per post so people can vote the answer they like up and the best links bubble to the top.
| article | null | null | null | null | null | open | What is the the single best articles on the web for programmers?
===
In the spirit of Best of [RSS](http://stackoverflow.com/questions/5119/what-are-the-best-rss-feeds-for-programmersdevelopers) , [podcasts](http://stackoverflow.com/questions/1644/what-good-technology-podcasts-are-out-there) , [books](http://stackoverflow.com/questions/1711/what-is-the-single-most-influential-book-every-programmer-should-read) I ask you :
**What is the single best online article every programmer must read.** The older the better (timeless factor) .
I will kick off the discussion with some of my favorites in the answers so you can vote for them independently of the question.
As Joel suggested in the last podcast please provide one link per post so people can vote the answer they like up and the best links bubble to the top.
| 0 |
46,837 | 09/05/2008 20:32:25 | 438 | 08/05/2008 18:28:20 | 30 | 2 | Anyone have any interesting ER diagrams to learn from? | Maybe stackoverflow can release theirs?
:) | databases | er-diagrams | null | null | null | null | open | Anyone have any interesting ER diagrams to learn from?
===
Maybe stackoverflow can release theirs?
:) | 0 |
46,841 | 09/05/2008 20:35:57 | 4,835 | 09/05/2008 20:35:57 | 1 | 0 | Why do I get this error "[DBNETLIB][ConnectionRead (recv()).]General network error" with ASP pages |
Occasionally, on a ASP (classic) site users will get this error:
[DBNETLIB][ConnectionRead (recv()).]General network error.
Seems to be random and not connected to any particular page. The SQL server is seperate from the web server and my guess is that every once and a while the "link" goes down between the two. Router/switch issue . . . or has someone else ran into this problem before? | networking | classicasp | null | null | null | null | open | Why do I get this error "[DBNETLIB][ConnectionRead (recv()).]General network error" with ASP pages
===
Occasionally, on a ASP (classic) site users will get this error:
[DBNETLIB][ConnectionRead (recv()).]General network error.
Seems to be random and not connected to any particular page. The SQL server is seperate from the web server and my guess is that every once and a while the "link" goes down between the two. Router/switch issue . . . or has someone else ran into this problem before? | 0 |
46,855 | 09/05/2008 20:45:11 | 4,589 | 09/04/2008 18:50:07 | 1 | 0 | C# Game Network Library | I am developing an online strategy game using .Net v2. Although the game is primarily strategic, it does have some tactical elements that require reasonable network performance.
I plan to use TCP packets for strategic data and UDP packets for tactical data.
I am looking for network library recommendations. I have found a few options, such as GarageGames' Torque Network Library (C++), RakNet (C++), and the lidgren network library (C#):
http://www.opentnl.org/
http://www.jenkinssoftware.com/
http://code.google.com/p/lidgren-network/
Does anyone have real-world experience with these or other libraries? | c# | network-programming | null | null | null | null | open | C# Game Network Library
===
I am developing an online strategy game using .Net v2. Although the game is primarily strategic, it does have some tactical elements that require reasonable network performance.
I plan to use TCP packets for strategic data and UDP packets for tactical data.
I am looking for network library recommendations. I have found a few options, such as GarageGames' Torque Network Library (C++), RakNet (C++), and the lidgren network library (C#):
http://www.opentnl.org/
http://www.jenkinssoftware.com/
http://code.google.com/p/lidgren-network/
Does anyone have real-world experience with these or other libraries? | 0 |
46,859 | 09/05/2008 20:47:44 | 93 | 08/01/2008 18:23:58 | 336 | 11 | Where do attached properties fit in a class diagram? | What is the most appropriate way to represent attached properties in a UML diagram or an almost-uml diagram like the VS2008 class diagram? | .net | wpf | uml | dependency-properties | class-diagram | null | open | Where do attached properties fit in a class diagram?
===
What is the most appropriate way to represent attached properties in a UML diagram or an almost-uml diagram like the VS2008 class diagram? | 0 |
46,860 | 09/05/2008 20:47:55 | 826 | 08/09/2008 05:24:54 | 196 | 16 | Showing a hint for a C# winforms edit control | I'm working on a C# winforms application (VS.NET 2008, .NET 3.5 sp 1). I have a search field on a form, and rather than have a label next to the search field I'd like to show some grey text in the background of the search field itself ('Search terms', for example). When the user starts entering text in the search field the text should disappear. How can I achieve this? | c# | winforms | gui | null | null | null | open | Showing a hint for a C# winforms edit control
===
I'm working on a C# winforms application (VS.NET 2008, .NET 3.5 sp 1). I have a search field on a form, and rather than have a label next to the search field I'd like to show some grey text in the background of the search field itself ('Search terms', for example). When the user starts entering text in the search field the text should disappear. How can I achieve this? | 0 |
46,863 | 09/05/2008 20:49:53 | 4,650 | 09/05/2008 00:25:16 | 1 | 0 | concatenating unknown-length strings in COBOL | How do I concatenate together two strings, of unknown length, in COBOL? So for example:
WORKING-STORAGE.
FIRST-NAME PIC X(15) VALUE SPACES.
LAST-NAME PIC X(15) VALUE SPACES.
FULL-NAME PIC X(31) VALUE SPACES.
If FIRST-NAME = 'JOHN ' (trailing spaces), and LAST-NAME = 'DOE ' (trailing spaces), how do I make FULL-NAME = 'JOHN DOE' (with trailing spaces)? | string | cobol | null | null | null | null | open | concatenating unknown-length strings in COBOL
===
How do I concatenate together two strings, of unknown length, in COBOL? So for example:
WORKING-STORAGE.
FIRST-NAME PIC X(15) VALUE SPACES.
LAST-NAME PIC X(15) VALUE SPACES.
FULL-NAME PIC X(31) VALUE SPACES.
If FIRST-NAME = 'JOHN ' (trailing spaces), and LAST-NAME = 'DOE ' (trailing spaces), how do I make FULL-NAME = 'JOHN DOE' (with trailing spaces)? | 0 |
46,869 | 09/05/2008 20:55:39 | 305 | 08/04/2008 14:04:19 | 1,925 | 118 | What's a good method for extracting text from a PDF using C# or classic ASP (VBScript)? | Is there a good library for extracting text from a PDF? I'm willing to pay for it if I have to.
Something that works with C# or classic ASP (VBScript) would be ideal and I also need to be able to separate the pages from the PDF.
[This question](http://stackoverflow.com/questions/25665/python-module-for-converting-pdf-to-text) had some interesting stuff, especially [pdftotext](http://en.wikipedia.org/wiki/Pdftotext) but I'd like to avoid calling to an external command-line app if I can. | pdf | text-extraction | null | null | null | null | open | What's a good method for extracting text from a PDF using C# or classic ASP (VBScript)?
===
Is there a good library for extracting text from a PDF? I'm willing to pay for it if I have to.
Something that works with C# or classic ASP (VBScript) would be ideal and I also need to be able to separate the pages from the PDF.
[This question](http://stackoverflow.com/questions/25665/python-module-for-converting-pdf-to-text) had some interesting stuff, especially [pdftotext](http://en.wikipedia.org/wiki/Pdftotext) but I'd like to avoid calling to an external command-line app if I can. | 0 |
46,873 | 09/05/2008 20:57:29 | 1,638 | 08/17/2008 17:58:57 | 425 | 45 | Developing a online exam application, how do I prevent cheaters? | I have the task of developing an online examination software for a small university, I need to implement measures to prevent cheating...
What are your ideas on how to do this?
I would like to possibly disable all IE / firefox tabs, or some how log internet activity so I know if they are googling anwsers...is there any realistic way to do such things from a flex / web application?
| flex | browser | howto | crossbrowser | null | null | open | Developing a online exam application, how do I prevent cheaters?
===
I have the task of developing an online examination software for a small university, I need to implement measures to prevent cheating...
What are your ideas on how to do this?
I would like to possibly disable all IE / firefox tabs, or some how log internet activity so I know if they are googling anwsers...is there any realistic way to do such things from a flex / web application?
| 0 |
46,885 | 09/05/2008 21:04:02 | 1,670 | 08/17/2008 21:56:17 | 47 | 2 | How to create symbolic links in Windows? | I've tried [Winbolic](http://www.pearlmagik.com/winbolic/) (Windows XP), but i can't get it to work the way I want.
Am I wrong here?:
If I create a symbolic link within a folder in my %PATH%, the referenced directory should work as if it had actually been added to %PATH%, right? | symlink | windowsxp | null | null | null | null | open | How to create symbolic links in Windows?
===
I've tried [Winbolic](http://www.pearlmagik.com/winbolic/) (Windows XP), but i can't get it to work the way I want.
Am I wrong here?:
If I create a symbolic link within a folder in my %PATH%, the referenced directory should work as if it had actually been added to %PATH%, right? | 0 |
46,898 | 09/05/2008 21:12:48 | 4,807 | 09/05/2008 17:31:33 | 21 | 1 | Iterate Over Map | If I have an object implementing the Map interface in Java and I wish to iterate over every pair contained within it, what is the most efficient way of going through the map? Will the ordering of elements depend on the specific map implementation that I have for the interface? | java | null | null | null | null | null | open | Iterate Over Map
===
If I have an object implementing the Map interface in Java and I wish to iterate over every pair contained within it, what is the most efficient way of going through the map? Will the ordering of elements depend on the specific map implementation that I have for the interface? | 0 |
46,918 | 09/05/2008 21:20:47 | 536 | 08/06/2008 15:30:22 | 585 | 24 | What's the proper way to minimize to tray a C# WinForms app? | What is the proper way to minimize a WinForms app to the system tray?
I've seen hackish solutions like, "minimize, set ShowInTaskbar = false, then show your NotifyIcon."
Solutions like that are hackish because the app doesn't appear to minimize to the tray like other apps, the code has to detect when to set ShowInTaskbar = true, among other issues.
What's the proper way to do this? | c# | winforms | trayicon | null | null | null | open | What's the proper way to minimize to tray a C# WinForms app?
===
What is the proper way to minimize a WinForms app to the system tray?
I've seen hackish solutions like, "minimize, set ShowInTaskbar = false, then show your NotifyIcon."
Solutions like that are hackish because the app doesn't appear to minimize to the tray like other apps, the code has to detect when to set ShowInTaskbar = true, among other issues.
What's the proper way to do this? | 0 |
46,924 | 09/05/2008 21:26:51 | 4,177 | 09/02/2008 09:02:28 | 117 | 15 | How can a simple tree algorithm be coded in a functional language? | Suppose I want to implement a reasonably efficient 'keyword recognition algorithm', that is first given a list of keyword, and must then answer if another given word was in the list.
In an imperative language, I would store the keywords in a tree (one node per character). Then, when receiving a word to test, I would scan my tree to test if the word is a keyword.
I'd like to understand how such an algorithm would be coded in a functional language. How does one get the benefits of 'stateless' programming while keeping the efficiency of 'imperative' algorithms. Isn't it necessary to store the tree somewhere between the lookups if you don't want to rebuild it each time? | algorithm | functional-programming | null | null | null | null | open | How can a simple tree algorithm be coded in a functional language?
===
Suppose I want to implement a reasonably efficient 'keyword recognition algorithm', that is first given a list of keyword, and must then answer if another given word was in the list.
In an imperative language, I would store the keywords in a tree (one node per character). Then, when receiving a word to test, I would scan my tree to test if the word is a keyword.
I'd like to understand how such an algorithm would be coded in a functional language. How does one get the benefits of 'stateless' programming while keeping the efficiency of 'imperative' algorithms. Isn't it necessary to store the tree somewhere between the lookups if you don't want to rebuild it each time? | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.