question_id int64 4 6.31M | answer_id int64 7 6.31M | title stringlengths 9 150 | question_body stringlengths 0 28.8k | answer_body stringlengths 60 27.2k | question_text stringlengths 40 28.9k | combined_text stringlengths 124 39.6k | tags listlengths 1 6 | question_score int64 0 26.3k | answer_score int64 0 28.8k | view_count int64 15 14M | answer_count int64 0 182 | favorite_count int64 0 32 | question_creation_date stringdate 2008-07-31 21:42:52 2011-06-10 18:12:18 | answer_creation_date stringdate 2008-07-31 22:17:57 2011-06-10 18:14:17 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19,011 | 62,837 | Best practice for storing large amounts of data with J2ME | I am developing a J2ME application that has a large amount of data to store on the device (in the region of 1MB but variable). I can't rely on the file system so I'm stuck the Record Management System (RMS), which allows multiple record stores but each have a limited size. My initial target platform, Blackberry, limits... | For anything past a few kilobytes you need to use either JSR 75 or a remote server. RMS records are extremely limited in size and speed, even in some higher end handsets. If you need to juggle 1MB of data in J2ME the only reliable, portable way is to store it on the network. The HttpConnection class and the GET and POS... | Best practice for storing large amounts of data with J2ME I am developing a J2ME application that has a large amount of data to store on the device (in the region of 1MB but variable). I can't rely on the file system so I'm stuck the Record Management System (RMS), which allows multiple record stores but each have a li... | TITLE:
Best practice for storing large amounts of data with J2ME
QUESTION:
I am developing a J2ME application that has a large amount of data to store on the device (in the region of 1MB but variable). I can't rely on the file system so I'm stuck the Record Management System (RMS), which allows multiple record stores ... | [
"java",
"java-me",
"rms"
] | 9 | 9 | 7,365 | 8 | 0 | 2008-08-20T22:42:04.200000 | 2008-09-15T13:25:10.517000 |
19,014 | 20,468 | Using Lucene to search for email addresses | I want to use Lucene (in particular, Lucene.NET) to search for email address domains. E.g. I want to search for "@gmail.com" to find all emails sent to a gmail address. Running a Lucene query for "*@gmail.com" results in an error, asterisks cannot be at the start of queries. Running a query for "@gmail.com" doesn't ret... | No one gave a satisfactory answer, so we started poking around Lucene documentation and discovered we can accomplish this using custom Analyzers and Tokenizers. The answer is this: create a WhitespaceAndAtSymbolTokenizer and a WhitespaceAndAtSymbolAnalyzer, then recreate your index using this analyzer. Once you do this... | Using Lucene to search for email addresses I want to use Lucene (in particular, Lucene.NET) to search for email address domains. E.g. I want to search for "@gmail.com" to find all emails sent to a gmail address. Running a Lucene query for "*@gmail.com" results in an error, asterisks cannot be at the start of queries. R... | TITLE:
Using Lucene to search for email addresses
QUESTION:
I want to use Lucene (in particular, Lucene.NET) to search for email address domains. E.g. I want to search for "@gmail.com" to find all emails sent to a gmail address. Running a Lucene query for "*@gmail.com" results in an error, asterisks cannot be at the s... | [
".net",
"search",
"lucene"
] | 7 | 13 | 7,557 | 4 | 0 | 2008-08-20T22:44:17.610000 | 2008-08-21T16:38:40.307000 |
19,030 | 21,302 | How to check set of files conform to a naming scheme | I have a bunch of files (TV episodes, although that is fairly arbitrary) that I want to check match a specific naming/organisation scheme.. Currently: I have three arrays of regex, one for valid filenames, one for files missing an episode name, and one for valid paths. Then, I loop though each valid-filename regex, if ... | I want to add a rule that checks for the presence of a folder.jpg file in each directory, but to add this would make the code substantially more messy in it's current state.. This doesn't look bad. In fact your current code does it very nicely, and Sven mentioned a good way to do it as well: Get a list of all the files... | How to check set of files conform to a naming scheme I have a bunch of files (TV episodes, although that is fairly arbitrary) that I want to check match a specific naming/organisation scheme.. Currently: I have three arrays of regex, one for valid filenames, one for files missing an episode name, and one for valid path... | TITLE:
How to check set of files conform to a naming scheme
QUESTION:
I have a bunch of files (TV episodes, although that is fairly arbitrary) that I want to check match a specific naming/organisation scheme.. Currently: I have three arrays of regex, one for valid filenames, one for files missing an episode name, and ... | [
"python",
"validation",
"naming"
] | 4 | 2 | 837 | 2 | 0 | 2008-08-20T22:50:55.643000 | 2008-08-21T22:02:01.853000 |
19,035 | 19,348 | JavaScript Load Order | I am working with both amq.js (ActiveMQ) and Google Maps. I load my scripts in this order AMQ & Maps Demo However in my application.js it loads Maps fine but I get an error when trying to subscribe to a Topic with AMQ. AMQ depends on prototype which the error console in Firefox says object is not defined. I think I hav... | Is there a way to make sure both scripts load before I use them in my application.js? JavaScript files should load sequentially and block so unless the scripts you are depending on are doing something unusual all you should need to do is load application.js after the other files. Non-blocking JavaScript Downloads has s... | JavaScript Load Order I am working with both amq.js (ActiveMQ) and Google Maps. I load my scripts in this order AMQ & Maps Demo However in my application.js it loads Maps fine but I get an error when trying to subscribe to a Topic with AMQ. AMQ depends on prototype which the error console in Firefox says object is not ... | TITLE:
JavaScript Load Order
QUESTION:
I am working with both amq.js (ActiveMQ) and Google Maps. I load my scripts in this order AMQ & Maps Demo However in my application.js it loads Maps fine but I get an error when trying to subscribe to a Topic with AMQ. AMQ depends on prototype which the error console in Firefox s... | [
"javascript",
"google-maps"
] | 30 | 27 | 38,837 | 8 | 0 | 2008-08-20T22:53:25.373000 | 2008-08-21T04:46:39.690000 |
19,047 | 19,053 | TortoiseSVN side-by-side configuration is incorrect | After upgrading to the latest version of TortoiseSVN (1.5.2.13595), it's context menu is no longer available. When attempting to run it manually, I get this error: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail The applicatio... | I remembered I'd seen this thing before just after posting to SO It seems that later versions of TortoiseSVN are built with Visual Studio 2008 SP1 (hence the 9.0.30411.0 build number) Installing the VC2008 SP1 Redistributable fixes it | TortoiseSVN side-by-side configuration is incorrect After upgrading to the latest version of TortoiseSVN (1.5.2.13595), it's context menu is no longer available. When attempting to run it manually, I get this error: The application has failed to start because its side-by-side configuration is incorrect. Please see the ... | TITLE:
TortoiseSVN side-by-side configuration is incorrect
QUESTION:
After upgrading to the latest version of TortoiseSVN (1.5.2.13595), it's context menu is no longer available. When attempting to run it manually, I get this error: The application has failed to start because its side-by-side configuration is incorrec... | [
"tortoisesvn",
"winsxs"
] | 8 | 9 | 5,291 | 2 | 0 | 2008-08-20T23:02:18.083000 | 2008-08-20T23:03:53.960000 |
19,058 | 19,061 | What is the difference between oracle's 'yy' and 'rr' date mask? | Example: select ename from emp where hiredate = todate('01/05/81','dd/mm/yy') and select ename from emp where hiredate = todate('01/05/81','dd/mm/rr') return different results | http://oracle.ittoolbox.com/groups/technical-functional/oracle-dev-l/difference-between-yyyy-and-rrrr-format-519525 YY allows you to retrieve just two digits of a year, for example, the 99 in 1999. The other digits (19) are automatically assigned to the current century. RR converts two-digit years into four-digit years... | What is the difference between oracle's 'yy' and 'rr' date mask? Example: select ename from emp where hiredate = todate('01/05/81','dd/mm/yy') and select ename from emp where hiredate = todate('01/05/81','dd/mm/rr') return different results | TITLE:
What is the difference between oracle's 'yy' and 'rr' date mask?
QUESTION:
Example: select ename from emp where hiredate = todate('01/05/81','dd/mm/yy') and select ename from emp where hiredate = todate('01/05/81','dd/mm/rr') return different results
ANSWER:
http://oracle.ittoolbox.com/groups/technical-functio... | [
"sql",
"oracle"
] | 30 | 50 | 86,597 | 6 | 0 | 2008-08-20T23:07:51.250000 | 2008-08-20T23:11:32.710000 |
19,089 | 19,109 | How do I do an Upsert Into Table? | I have a view that has a list of jobs in it, with data like who they're assigned to and the stage they are in. I need to write a stored procedure that returns how many jobs each person has at each stage. So far I have this (simplified): DECLARE @ResultTable table ( StaffName nvarchar(100), Stage1Count int, Stage2Count ... | IIRC there is some sort of "On Duplicate" (name might be wrong) syntax that lets you update if a row exists (MySQL) Alternately some form of: INSERT INTO @ResultTable (StaffName, Stage1Count, Stage2Count) SELECT StaffName,0,0 FROM ViewJob GROUP BY StaffName
UPDATE @ResultTable Stage1Count= ( SELECT COUNT(*) AS count F... | How do I do an Upsert Into Table? I have a view that has a list of jobs in it, with data like who they're assigned to and the stage they are in. I need to write a stored procedure that returns how many jobs each person has at each stage. So far I have this (simplified): DECLARE @ResultTable table ( StaffName nvarchar(1... | TITLE:
How do I do an Upsert Into Table?
QUESTION:
I have a view that has a list of jobs in it, with data like who they're assigned to and the stage they are in. I need to write a stored procedure that returns how many jobs each person has at each stage. So far I have this (simplified): DECLARE @ResultTable table ( St... | [
"sql",
"sql-server",
"t-sql"
] | 3 | 1 | 3,975 | 6 | 0 | 2008-08-20T23:46:13.360000 | 2008-08-21T00:09:16.580000 |
19,113 | 19,128 | Should menu items always be enabled? And how do you tell the user? | One of the things that has been talked about a few times on the podcast is whether menu items should always be enabled to prevent "WHY ISN'T THIS AVAILABLE!" frustration for the end user. This strikes me as a good idea, but then there's the issue of communicating the lack of availability (and the reason why) to the use... | One thing I've seen a printer manufacturer do with their printer properties dialog is to have a little help baloon icon beside disabled items that display a tooltip when hovered over. Another thing you can do with disabled items is to add in parenthesis why it's disabled or what the user would have to do to enable it. ... | Should menu items always be enabled? And how do you tell the user? One of the things that has been talked about a few times on the podcast is whether menu items should always be enabled to prevent "WHY ISN'T THIS AVAILABLE!" frustration for the end user. This strikes me as a good idea, but then there's the issue of com... | TITLE:
Should menu items always be enabled? And how do you tell the user?
QUESTION:
One of the things that has been talked about a few times on the podcast is whether menu items should always be enabled to prevent "WHY ISN'T THIS AVAILABLE!" frustration for the end user. This strikes me as a good idea, but then there'... | [
"user-interface",
"usability",
"menu-items"
] | 4 | 4 | 283 | 4 | 0 | 2008-08-21T00:14:56.660000 | 2008-08-21T00:24:47.400000 |
19,122 | 19,383 | Bash Pipe Handling | Does anyone know how bash handles sending data through pipes? cat file.txt | tail -20 Does this command print all the contents of file.txt into a buffer, which is then read by tail? Or does this command, say, print the contents of file.txt line by line, and then pause at each line for tail to process, and then ask for ... | I decided to write a slightly more detailed explanation. The "magic" here lies in the operating system. Both programs do start up at roughly the same time, and run at the same time (the operating system assigns them slices of time on the processor to run) as every other simultaneously running process on your computer (... | Bash Pipe Handling Does anyone know how bash handles sending data through pipes? cat file.txt | tail -20 Does this command print all the contents of file.txt into a buffer, which is then read by tail? Or does this command, say, print the contents of file.txt line by line, and then pause at each line for tail to process... | TITLE:
Bash Pipe Handling
QUESTION:
Does anyone know how bash handles sending data through pipes? cat file.txt | tail -20 Does this command print all the contents of file.txt into a buffer, which is then read by tail? Or does this command, say, print the contents of file.txt line by line, and then pause at each line f... | [
"linux",
"bash",
"pipe"
] | 31 | 55 | 13,150 | 3 | 0 | 2008-08-21T00:20:34.133000 | 2008-08-21T05:46:23.337000 |
19,127 | 19,199 | Best way to fix CSS/JS drop-down in IE7 when page includes Google Map | I have a page using lists for navigation (Javascript changes the styling to display or not on mouseover). This is working fine for me except in IE6 and IE7 when I have a Google Map on the page. In this case the drop-down simply does not work. However, the page continues to work in FireFox 2. I have done a little bit of... | I don't know if this will fix your problem but you may want to try this solution at ccsplay.co.uk which fixes the problem of menus appearing underneath drop-down lists. I don't know if it will work for sure, but it's worth a shot. | Best way to fix CSS/JS drop-down in IE7 when page includes Google Map I have a page using lists for navigation (Javascript changes the styling to display or not on mouseover). This is working fine for me except in IE6 and IE7 when I have a Google Map on the page. In this case the drop-down simply does not work. However... | TITLE:
Best way to fix CSS/JS drop-down in IE7 when page includes Google Map
QUESTION:
I have a page using lists for navigation (Javascript changes the styling to display or not on mouseover). This is working fine for me except in IE6 and IE7 when I have a Google Map on the page. In this case the drop-down simply does... | [
"javascript",
"css",
"cross-browser",
"browser",
"client-side"
] | 6 | 2 | 2,276 | 5 | 0 | 2008-08-21T00:24:15.093000 | 2008-08-21T01:41:16.547000 |
19,132 | 19,224 | Expression versus Statement | I'm asking with regards to C#, but I assume it's the same in most other languages. Does anyone have a good definition of expressions and statements and what the differences are? | Expression: Something which evaluates to a value. Example: 1+2/x Statement: A line of code which does something. Example: GOTO 100 In the earliest general-purpose programming languages, like FORTRAN, the distinction was crystal-clear. In FORTRAN, a statement was one unit of execution, a thing that you did. The only rea... | Expression versus Statement I'm asking with regards to C#, but I assume it's the same in most other languages. Does anyone have a good definition of expressions and statements and what the differences are? | TITLE:
Expression versus Statement
QUESTION:
I'm asking with regards to C#, but I assume it's the same in most other languages. Does anyone have a good definition of expressions and statements and what the differences are?
ANSWER:
Expression: Something which evaluates to a value. Example: 1+2/x Statement: A line of c... | [
"language-agnostic",
"expression",
"language-features"
] | 480 | 585 | 82,563 | 21 | 0 | 2008-08-21T00:28:00.263000 | 2008-08-21T02:17:21 |
19,147 | 522,874 | What is the correct way to create a single-instance WPF application? | Using C# and WPF under.NET (rather than Windows Forms or console), what is the correct way to create an application that can only be run as a single instance? I know it has something to do with some mythical thing called a mutex, rarely can I find someone that bothers to stop and explain what one of these are. The code... | Here is a very good article regarding the Mutex solution. The approach described by the article is advantageous for two reasons. First, it does not require a dependency on the Microsoft.VisualBasic assembly. If my project already had a dependency on that assembly, I would probably advocate using the approach shown in a... | What is the correct way to create a single-instance WPF application? Using C# and WPF under.NET (rather than Windows Forms or console), what is the correct way to create an application that can only be run as a single instance? I know it has something to do with some mythical thing called a mutex, rarely can I find som... | TITLE:
What is the correct way to create a single-instance WPF application?
QUESTION:
Using C# and WPF under.NET (rather than Windows Forms or console), what is the correct way to create an application that can only be run as a single instance? I know it has something to do with some mythical thing called a mutex, rar... | [
"c#",
".net",
"wpf",
"mutex"
] | 742 | 612 | 260,583 | 39 | 0 | 2008-08-21T00:33:59.453000 | 2009-02-07T01:18:20.277000 |
19,151 | 24,377 | How to build a basic iterator? | How can I create an iterator in Python? For example, suppose I have a class whose instances logically "contain" some values: class Example: def __init__(self, values): self.values = values I want to be able to write code like: e = Example([1, 2, 3]) # Each time through the loop, expose one of the values from e.values f... | Iterator objects in python conform to the iterator protocol, which basically means they provide two methods: __iter__() and __next__(). The __iter__ returns the iterator object and is implicitly called at the start of loops. The __next__() method returns the next value and is implicitly called at each loop increment. T... | How to build a basic iterator? How can I create an iterator in Python? For example, suppose I have a class whose instances logically "contain" some values: class Example: def __init__(self, values): self.values = values I want to be able to write code like: e = Example([1, 2, 3]) # Each time through the loop, expose on... | TITLE:
How to build a basic iterator?
QUESTION:
How can I create an iterator in Python? For example, suppose I have a class whose instances logically "contain" some values: class Example: def __init__(self, values): self.values = values I want to be able to write code like: e = Example([1, 2, 3]) # Each time through t... | [
"python",
"object",
"iterator"
] | 695 | 761 | 484,428 | 10 | 0 | 2008-08-21T00:36:11.773000 | 2008-08-23T16:57:28.637000 |
19,162 | 19,171 | PHP Script to populate MySQL tables | Is anyone aware of a script/class (preferably in PHP) that would parse a given MySQL table's structure and then fill it with x number of rows of random test data based on the field types? I have never seen or heard of something like this and thought I would check before writing one myself. | What you are after would be a data generator. There is one available here which i had bookmarked but i haven't got around to trying it yet. | PHP Script to populate MySQL tables Is anyone aware of a script/class (preferably in PHP) that would parse a given MySQL table's structure and then fill it with x number of rows of random test data based on the field types? I have never seen or heard of something like this and thought I would check before writing one m... | TITLE:
PHP Script to populate MySQL tables
QUESTION:
Is anyone aware of a script/class (preferably in PHP) that would parse a given MySQL table's structure and then fill it with x number of rows of random test data based on the field types? I have never seen or heard of something like this and thought I would check be... | [
"php",
"mysql",
"testing",
"dataset",
"test-data"
] | 14 | 21 | 5,196 | 1 | 0 | 2008-08-21T00:46:52.293000 | 2008-08-21T00:54:24.147000 |
19,173 | 23,208 | Are there reasons not to use JSONP for AJA~X requests? | If you're building an AJA~Xy app, are there any downsides to using JSONP requests/responses even if you're not planning on any cross-domain requests? The only thing I can think of is that there are a couple extra bytes for the callback wrapper... Edit: I found this which also suggests security and error handling as pot... | Downside? It's fairly limited - you trigger a "GET" request and get back some script that's executed. You don't get error handling if your server throws an error, so you need to wrap all errors in JSON as well. You can't really cancel or retry the request. You're at the mercy of the various browser author opinions of "... | Are there reasons not to use JSONP for AJA~X requests? If you're building an AJA~Xy app, are there any downsides to using JSONP requests/responses even if you're not planning on any cross-domain requests? The only thing I can think of is that there are a couple extra bytes for the callback wrapper... Edit: I found this... | TITLE:
Are there reasons not to use JSONP for AJA~X requests?
QUESTION:
If you're building an AJA~Xy app, are there any downsides to using JSONP requests/responses even if you're not planning on any cross-domain requests? The only thing I can think of is that there are a couple extra bytes for the callback wrapper... ... | [
"javascript",
"ajax",
"json",
"jsonp"
] | 9 | 10 | 3,427 | 4 | 0 | 2008-08-21T00:56:45.217000 | 2008-08-22T19:03:51.183000 |
19,185 | 19,188 | Is there a way to check to see if the user is currently idle? | There is some documentation on the internet that shows that Windows changes the behavior of the NotifyIcon.BalloonTipShown command if the user is currently idle and this is detected by checking for keyboard and mouse events. I am currently working on an application that spends most of its time in the system tray, but p... | How about the Win32 LASTINPUTINFO function? using System.Runtime.InteropServices;
[DllImport("User32.dll")] static extern bool GetLastInputInfo(ref LASTINPUTINFO plii);
struct LASTINPUTINFO { public uint cbSize; public uint dwTime; } | Is there a way to check to see if the user is currently idle? There is some documentation on the internet that shows that Windows changes the behavior of the NotifyIcon.BalloonTipShown command if the user is currently idle and this is detected by checking for keyboard and mouse events. I am currently working on an appl... | TITLE:
Is there a way to check to see if the user is currently idle?
QUESTION:
There is some documentation on the internet that shows that Windows changes the behavior of the NotifyIcon.BalloonTipShown command if the user is currently idle and this is detected by checking for keyboard and mouse events. I am currently ... | [
".net",
"windows",
"user-interface",
"tray"
] | 3 | 4 | 578 | 3 | 0 | 2008-08-21T01:15:00.213000 | 2008-08-21T01:19:35.600000 |
19,193 | 19,255 | How to make a tree in C++? | How do I make a tree data structure in C++ that uses iterators instead of pointers? I couldn't find anything in the STL that can do this. What I would like to do is to be able to create and manipulate trees like this: #include #include using namespace std;
int main() { tree myTree;
tree::iterator i = myTree.root(); *... | Here is tree.hh which is a bit close to what you want to do, though a bit different. Here is a piece of code extracted from its website. int main(int, char **) { tree tr; tree::iterator top, one, two, loc, banana;
top=tr.begin(); one=tr.insert(top, "one"); two=tr.append_child(one, "two"); tr.append_child(two, "apple")... | How to make a tree in C++? How do I make a tree data structure in C++ that uses iterators instead of pointers? I couldn't find anything in the STL that can do this. What I would like to do is to be able to create and manipulate trees like this: #include #include using namespace std;
int main() { tree myTree;
tree::it... | TITLE:
How to make a tree in C++?
QUESTION:
How do I make a tree data structure in C++ that uses iterators instead of pointers? I couldn't find anything in the STL that can do this. What I would like to do is to be able to create and manipulate trees like this: #include #include using namespace std;
int main() { tree... | [
"c++",
"tree",
"iterator"
] | 6 | 5 | 19,642 | 2 | 0 | 2008-08-21T01:28:06.470000 | 2008-08-21T02:57:14.663000 |
19,245 | 19,396 | IIS 6/COM+ hangs | I have a web application that sometimes just hangs over heavy load. To make it come back I have to kill the "dllhost.exe" process. Does someone know what to do? This is an Classic ASP (VBScript) app with lots of COM+ objects. The server has the following configuration: Intel Core 2 Duo 2.2 GHz / 4 GB RAM Windows Server... | Sounds like dodgy COM objects causing the problem.. do you load them into the "Application", if you do then are they threadsafe; or are they used and discarded on each request? Yes, recycling every few hours would help 'hide' the problem, but they ought to be debugged and fixed properly... have you tried divide/conquer... | IIS 6/COM+ hangs I have a web application that sometimes just hangs over heavy load. To make it come back I have to kill the "dllhost.exe" process. Does someone know what to do? This is an Classic ASP (VBScript) app with lots of COM+ objects. The server has the following configuration: Intel Core 2 Duo 2.2 GHz / 4 GB R... | TITLE:
IIS 6/COM+ hangs
QUESTION:
I have a web application that sometimes just hangs over heavy load. To make it come back I have to kill the "dllhost.exe" process. Does someone know what to do? This is an Classic ASP (VBScript) app with lots of COM+ objects. The server has the following configuration: Intel Core 2 Du... | [
"iis",
"dll",
"asp-classic",
"crash"
] | 4 | 2 | 1,801 | 3 | 0 | 2008-08-21T02:43:23.153000 | 2008-08-21T06:08:34.830000 |
19,280 | 19,290 | Code to ask yes/no question in javascript | I could only find the function confirm() that gives OK/Cancel buttons. Is there any way to give Yes/No buttons? | Javascript offers 3 modal boxes. prompt, confirm and alert. None of those satisfy your request. There are a plethora of js modal popup solutions. Here's an example. ModalBox | Code to ask yes/no question in javascript I could only find the function confirm() that gives OK/Cancel buttons. Is there any way to give Yes/No buttons? | TITLE:
Code to ask yes/no question in javascript
QUESTION:
I could only find the function confirm() that gives OK/Cancel buttons. Is there any way to give Yes/No buttons?
ANSWER:
Javascript offers 3 modal boxes. prompt, confirm and alert. None of those satisfy your request. There are a plethora of js modal popup solu... | [
"javascript"
] | 22 | 7 | 19,679 | 7 | 0 | 2008-08-21T03:20:05.780000 | 2008-08-21T03:31:16.097000 |
19,294 | 19,306 | Calling base Methods When Overriding Page Level Events | In my code behind I wire up my events like so: protected override void OnInit(EventArgs e) { base.OnInit(e); btnUpdateUser.Click += btnUpateUserClick; } I've done it this way because that's what I've seen in examples. Does the base.OnInit() method need to be called? Will it be implicitly be called? Is it better to call... | I should clarify: The guidelines recommend that firing an event should involve calling a virtual "On EventName " method, but they also say that if a derived class overrides that method and forgets to call the base method, the event should still fire. See the "Important Note" about halfway down this page: Derived classe... | Calling base Methods When Overriding Page Level Events In my code behind I wire up my events like so: protected override void OnInit(EventArgs e) { base.OnInit(e); btnUpdateUser.Click += btnUpateUserClick; } I've done it this way because that's what I've seen in examples. Does the base.OnInit() method need to be called... | TITLE:
Calling base Methods When Overriding Page Level Events
QUESTION:
In my code behind I wire up my events like so: protected override void OnInit(EventArgs e) { base.OnInit(e); btnUpdateUser.Click += btnUpateUserClick; } I've done it this way because that's what I've seen in examples. Does the base.OnInit() method... | [
"asp.net",
"events",
"webforms"
] | 3 | 3 | 5,440 | 6 | 0 | 2008-08-21T03:33:25.920000 | 2008-08-21T03:46:51.800000 |
19,295 | 19,308 | Database backed i18n for java web-app | I'd like to use a database to store i18n key/value pairs so we can modify / reload the i18n data at runtime. Has anyone done this? Or does anyone have an idea of how to implement this? I've read several threads on this, but I haven't seen a workable solution. I'm specifically refering to something that would work with ... | Are you just asking how to store UTF-8/16 characters in a DB? in mysql it's just a matter of making sure you build with UTF8 support and setting that as the default, or specifying it at the column or table level. I've done this in oracle and mysql before. Create a table and cut and paste some i18n data into it and see ... | Database backed i18n for java web-app I'd like to use a database to store i18n key/value pairs so we can modify / reload the i18n data at runtime. Has anyone done this? Or does anyone have an idea of how to implement this? I've read several threads on this, but I haven't seen a workable solution. I'm specifically refer... | TITLE:
Database backed i18n for java web-app
QUESTION:
I'd like to use a database to store i18n key/value pairs so we can modify / reload the i18n data at runtime. Has anyone done this? Or does anyone have an idea of how to implement this? I've read several threads on this, but I haven't seen a workable solution. I'm ... | [
"java",
"internationalization"
] | 6 | 2 | 12,931 | 4 | 0 | 2008-08-21T03:36:38.110000 | 2008-08-21T03:48:51.590000 |
19,314 | 19,344 | Alternatives to Windows Workflow Foundation? | I've been using WWF for a while as part of an internal call center application (ASP.NET), and while learning it was a good practice in understanding how a state machine based workflow system should work, I am definitely not in love with WWF itself. In my opinion it is: Overly complex, especially for use within web apps... | You could try Simple State Machine. You would have to implement access control and background timers yourself, but that shouldn't be a big deal. SSM was also built out of frustration with WF. There are some other state machine implementations on Codeplex as well. If one of them doesn't fit he bill out of the box, they ... | Alternatives to Windows Workflow Foundation? I've been using WWF for a while as part of an internal call center application (ASP.NET), and while learning it was a good practice in understanding how a state machine based workflow system should work, I am definitely not in love with WWF itself. In my opinion it is: Overl... | TITLE:
Alternatives to Windows Workflow Foundation?
QUESTION:
I've been using WWF for a while as part of an internal call center application (ASP.NET), and while learning it was a good practice in understanding how a state machine based workflow system should work, I am definitely not in love with WWF itself. In my op... | [
"asp.net",
"workflow"
] | 15 | 14 | 10,295 | 9 | 0 | 2008-08-21T03:58:11.507000 | 2008-08-21T04:38:42.127000 |
19,318 | 19,328 | Calling ASP.NET web service from ASP using SOAPClient | I have an ASP.NET webservice with along the lines of: [WebService(Namespace = "http://internalservice.net/messageprocessing")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ToolboxItem(false)] public class ProvisioningService: WebService { [WebMethod] public XmlDocument ProcessMessage(XmlDocument messa... | I solved this: The SOAP client request node was picking up the default namespace from: Adding an empty default namespace to the XML sent by the ASP client overrides this behaviour: xmlMessage = "....various xml " | Calling ASP.NET web service from ASP using SOAPClient I have an ASP.NET webservice with along the lines of: [WebService(Namespace = "http://internalservice.net/messageprocessing")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ToolboxItem(false)] public class ProvisioningService: WebService { [WebMetho... | TITLE:
Calling ASP.NET web service from ASP using SOAPClient
QUESTION:
I have an ASP.NET webservice with along the lines of: [WebService(Namespace = "http://internalservice.net/messageprocessing")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ToolboxItem(false)] public class ProvisioningService: WebS... | [
".net",
"asp.net",
"web-services",
"soap",
"asp-classic"
] | 3 | 0 | 13,802 | 3 | 0 | 2008-08-21T04:07:59.253000 | 2008-08-21T04:18:45.200000 |
19,339 | 19,343 | Transpose/Unzip Function (inverse of zip)? | I have a list of 2-item tuples and I'd like to convert them to 2 lists where the first contains the first item in each tuple and the second list holds the second item. For example: original = [('a', 1), ('b', 2), ('c', 3), ('d', 4)] # and I want to become... result = (['a', 'b', 'c', 'd'], [1, 2, 3, 4]) Is there a buil... | In 2.x, zip is its own inverse! Provided you use the special * operator. >>> zip(*[('a', 1), ('b', 2), ('c', 3), ('d', 4)]) [('a', 'b', 'c', 'd'), (1, 2, 3, 4)] This is equivalent to calling zip with each element of the list as a separate argument: zip(('a', 1), ('b', 2), ('c', 3), ('d', 4)) except the arguments are pa... | Transpose/Unzip Function (inverse of zip)? I have a list of 2-item tuples and I'd like to convert them to 2 lists where the first contains the first item in each tuple and the second list holds the second item. For example: original = [('a', 1), ('b', 2), ('c', 3), ('d', 4)] # and I want to become... result = (['a', 'b... | TITLE:
Transpose/Unzip Function (inverse of zip)?
QUESTION:
I have a list of 2-item tuples and I'd like to convert them to 2 lists where the first contains the first item in each tuple and the second list holds the second item. For example: original = [('a', 1), ('b', 2), ('c', 3), ('d', 4)] # and I want to become... ... | [
"python",
"list",
"matrix",
"transpose"
] | 606 | 910 | 208,550 | 14 | 0 | 2008-08-21T04:29:07.580000 | 2008-08-21T04:36:29.590000 |
19,347 | 19,372 | What is the best way to go from Java/C# to C++? | At my university most of my classes have been in Java. I have also recently learned C# (and the Visual Studio environment) at a summer internship. Now I'm taking an Intro to Computer Graphics class and the grad student teaching the class prefers us to use C++ to access the OpenGL bindings via GLUT. Does anyone have any... | Yeah, I got bit by the same bug. The university tended to lean on Java, and then allowed you to choose the language you wanted to work with during projects. The best way is to just jump in. Start small, take baby steps, and just Google things that confuse you when you get there. Also find projects that have released th... | What is the best way to go from Java/C# to C++? At my university most of my classes have been in Java. I have also recently learned C# (and the Visual Studio environment) at a summer internship. Now I'm taking an Intro to Computer Graphics class and the grad student teaching the class prefers us to use C++ to access th... | TITLE:
What is the best way to go from Java/C# to C++?
QUESTION:
At my university most of my classes have been in Java. I have also recently learned C# (and the Visual Studio environment) at a summer internship. Now I'm taking an Intro to Computer Graphics class and the grad student teaching the class prefers us to us... | [
"c#",
"java",
"c++",
"visual-studio"
] | 10 | 8 | 946 | 10 | 0 | 2008-08-21T04:46:02.313000 | 2008-08-21T05:25:22.373000 |
19,349 | 19,367 | "Data Execution Prevention" kills (VS2008) local ASP.Net Development Server (aka Cassini) on Vista 64 | Occasionally, I find that while debugging an ASP.Net application (written in visual studio 2008, running on Vista 64-bit) the local ASP.Net development server (i.e. 'Cassini') stops responding. A message often comes up telling me that "Data Execution Prevention (DEP)" has killed WebDev.WebServer.exe The event logs simp... | The only way to know for sure would be to dig through the Cassini source and see if there are any areas where it generates code on the heap and then executes it without clearing the NX flag. However, instead of doing that, why not use IIS? EDIT: The danger of disabling DEP is that you open up security holes. DEP works ... | "Data Execution Prevention" kills (VS2008) local ASP.Net Development Server (aka Cassini) on Vista 64 Occasionally, I find that while debugging an ASP.Net application (written in visual studio 2008, running on Vista 64-bit) the local ASP.Net development server (i.e. 'Cassini') stops responding. A message often comes up... | TITLE:
"Data Execution Prevention" kills (VS2008) local ASP.Net Development Server (aka Cassini) on Vista 64
QUESTION:
Occasionally, I find that while debugging an ASP.Net application (written in visual studio 2008, running on Vista 64-bit) the local ASP.Net development server (i.e. 'Cassini') stops responding. A mess... | [
"asp.net",
"cassini",
"dep"
] | 3 | 3 | 1,298 | 5 | 0 | 2008-08-21T04:50:13.720000 | 2008-08-21T05:15:01.073000 |
19,353 | 19,373 | Detecting audio silence in WAV files using C# | I'm tasked with building a.NET client app to detect silence in a WAV files. Is this possible with the built-in Windows APIs? Or alternately, any good libraries out there to help with this? | Audio analysis is a difficult thing requiring a lot of complex math (think Fourier Transforms). The question you have to ask is "what is silence". If the audio that you are trying to edit is captured from an analog source, the chances are that there isn't any silence... they will only be areas of soft noise (line hum, ... | Detecting audio silence in WAV files using C# I'm tasked with building a.NET client app to detect silence in a WAV files. Is this possible with the built-in Windows APIs? Or alternately, any good libraries out there to help with this? | TITLE:
Detecting audio silence in WAV files using C#
QUESTION:
I'm tasked with building a.NET client app to detect silence in a WAV files. Is this possible with the built-in Windows APIs? Or alternately, any good libraries out there to help with this?
ANSWER:
Audio analysis is a difficult thing requiring a lot of com... | [
"c#",
".net",
"audio"
] | 33 | 14 | 34,153 | 8 | 0 | 2008-08-21T04:56:33.380000 | 2008-08-21T05:30:09.740000 |
19,355 | 19,361 | How to manage Configuration Settings for each Developer | In a.NET project, say you have a configuration setting - like a connection string - stored in a app.config file, which is different for each developer on your team (they may be using a local SQL Server, or a specific server instance, or using a remote server, etc). How can you structure your solution so that each devel... | AppSettings can be overridden with a local file: This allows for each developer to keep their own local settings. As far as the connection string, in a perfect world all developers should connect to a test DB, not run SQL Server each. However, I've found it best to keep a file named Web.Config.Prd in source control, an... | How to manage Configuration Settings for each Developer In a.NET project, say you have a configuration setting - like a connection string - stored in a app.config file, which is different for each developer on your team (they may be using a local SQL Server, or a specific server instance, or using a remote server, etc)... | TITLE:
How to manage Configuration Settings for each Developer
QUESTION:
In a.NET project, say you have a configuration setting - like a connection string - stored in a app.config file, which is different for each developer on your team (they may be using a local SQL Server, or a specific server instance, or using a r... | [
".net",
"configuration-files"
] | 3 | 4 | 764 | 5 | 0 | 2008-08-21T04:59:53.700000 | 2008-08-21T05:05:24.370000 |
19,358 | 34,213 | Experience documentation about Shared Nothing Architecture | Do you have any experience of designing a Real Shared-Nothing Architecture? Would you have some readings to recommend me? | Building Scalable Web Sites by Flickr architect Cal Henderson is pretty much the holy book for scalable web architectures. The presentations by Brad Fitzpatrick of Danga Interactive, creators of LiveJournal, are also excellent case studies. Check out this one first. | Experience documentation about Shared Nothing Architecture Do you have any experience of designing a Real Shared-Nothing Architecture? Would you have some readings to recommend me? | TITLE:
Experience documentation about Shared Nothing Architecture
QUESTION:
Do you have any experience of designing a Real Shared-Nothing Architecture? Would you have some readings to recommend me?
ANSWER:
Building Scalable Web Sites by Flickr architect Cal Henderson is pretty much the holy book for scalable web arch... | [
"architecture",
"shared-nothing"
] | 1 | 4 | 1,012 | 3 | 0 | 2008-08-21T05:02:08.310000 | 2008-08-29T09:06:21.607000 |
19,387 | 19,392 | Rich GUI OS X Frameworks? | What would you recommend for OS X development of a graphical application like those possible in WPF? My specific background is in Smalltalk & Java, but I currently work mostly in DHTML/.NET (ASP.NET/C#). | Cocoa. Considered by many to be the best application framework ever. The language is Objective-C, SmallTalk-like language that inspired the creators of Java. Really, there is no reasonable alternative to Cocoa for OS X development, unless you have specific needs like wanting to be cross-platform. | Rich GUI OS X Frameworks? What would you recommend for OS X development of a graphical application like those possible in WPF? My specific background is in Smalltalk & Java, but I currently work mostly in DHTML/.NET (ASP.NET/C#). | TITLE:
Rich GUI OS X Frameworks?
QUESTION:
What would you recommend for OS X development of a graphical application like those possible in WPF? My specific background is in Smalltalk & Java, but I currently work mostly in DHTML/.NET (ASP.NET/C#).
ANSWER:
Cocoa. Considered by many to be the best application framework ... | [
"wpf",
"user-interface",
"macos",
"frameworks"
] | 6 | 15 | 2,236 | 8 | 0 | 2008-08-21T05:57:14.857000 | 2008-08-21T06:01:20.353000 |
19,388 | 19,403 | GOTO command in PHP? | I've heard rumors that PHP is planning on introducing a "goto" command. What is it supposed to be doing? I've tried searching a bit, but haven't found anything awfully descriptive. I understand that it won't be a " GOTO 10 "-like command... | They are not adding a real GOTO, but extending the BREAK keyword to use static labels. Basically, it will be enhancing the ability to break out of switch nested if statements. Here's the concept example I found: Of course, once the GOTO "rumor" was out, there was nothing to stop some evil guys to propagate an additiona... | GOTO command in PHP? I've heard rumors that PHP is planning on introducing a "goto" command. What is it supposed to be doing? I've tried searching a bit, but haven't found anything awfully descriptive. I understand that it won't be a " GOTO 10 "-like command... | TITLE:
GOTO command in PHP?
QUESTION:
I've heard rumors that PHP is planning on introducing a "goto" command. What is it supposed to be doing? I've tried searching a bit, but haven't found anything awfully descriptive. I understand that it won't be a " GOTO 10 "-like command...
ANSWER:
They are not adding a real GOTO... | [
"php",
"language-features",
"goto"
] | 5 | 9 | 3,503 | 7 | 0 | 2008-08-21T05:57:59.673000 | 2008-08-21T06:14:47.763000 |
19,409 | 19,453 | Incrementing from 0 to 100 in assembly language | This is kinda oddball, but I was poking around with the GNU assembler today (I want to be able to at least read the syntax), and was trying to get this little contrived example of mine to work. Namely I just want to go from 0 to 100, printing out numbers all the while. So a few minutes later I come up with this: # coun... | You can't trust what any called procedure does to any of the registers. Either push the registers onto the stack and pop them back off after calling printf or have the increment and end point values held in memory and read/written into registers as you need them. I hope the following works. I'm assuming that pushl has ... | Incrementing from 0 to 100 in assembly language This is kinda oddball, but I was poking around with the GNU assembler today (I want to be able to at least read the syntax), and was trying to get this little contrived example of mine to work. Namely I just want to go from 0 to 100, printing out numbers all the while. So... | TITLE:
Incrementing from 0 to 100 in assembly language
QUESTION:
This is kinda oddball, but I was poking around with the GNU assembler today (I want to be able to at least read the syntax), and was trying to get this little contrived example of mine to work. Namely I just want to go from 0 to 100, printing out numbers... | [
"gnu-assembler",
"assembly"
] | 8 | 12 | 9,310 | 6 | 0 | 2008-08-21T06:20:08.233000 | 2008-08-21T07:47:00.007000 |
19,412 | 19,419 | How to request a random row in SQL? | How can I request a random row (or as close to truly random as possible) in pure SQL? | See this post: SQL to Select a random row from a database table. It goes through methods for doing this in MySQL, PostgreSQL, Microsoft SQL Server, IBM DB2 and Oracle (the following is copied from that link): Select a random row with MySQL: SELECT column FROM table ORDER BY RAND() LIMIT 1 Select a random row with Postg... | How to request a random row in SQL? How can I request a random row (or as close to truly random as possible) in pure SQL? | TITLE:
How to request a random row in SQL?
QUESTION:
How can I request a random row (or as close to truly random as possible) in pure SQL?
ANSWER:
See this post: SQL to Select a random row from a database table. It goes through methods for doing this in MySQL, PostgreSQL, Microsoft SQL Server, IBM DB2 and Oracle (the... | [
"sql",
"random"
] | 609 | 877 | 587,341 | 32 | 0 | 2008-08-21T06:28:49.927000 | 2008-08-21T06:32:32.853000 |
19,433 | 19,467 | What is a good free library for editing MP3s/FLACs? | What is a good free library for editing MP3s/FLACs. By editing I mean: Cutting audio file into multiple parts Joining multiple audio files together Increase playback speed of file without affecting the pitch (eg. podcasts up to 1.3x) Re-encoding audio file from Flac -> MP3 or vice versa I don't mean software, I mean a ... | Just about every language has bindings to C, so you'll probably want to get the applicable C libraries for encoding/decoding mp3's and FLAC files. This list might include libFLAC http://flac.sourceforge.net/api/index.html FLAC encoding/decoding LAME http://lame.sourceforge.net/index.php MP3 encoding MAD http://www.unde... | What is a good free library for editing MP3s/FLACs? What is a good free library for editing MP3s/FLACs. By editing I mean: Cutting audio file into multiple parts Joining multiple audio files together Increase playback speed of file without affecting the pitch (eg. podcasts up to 1.3x) Re-encoding audio file from Flac -... | TITLE:
What is a good free library for editing MP3s/FLACs?
QUESTION:
What is a good free library for editing MP3s/FLACs. By editing I mean: Cutting audio file into multiple parts Joining multiple audio files together Increase playback speed of file without affecting the pitch (eg. podcasts up to 1.3x) Re-encoding audi... | [
"audio"
] | 4 | 5 | 697 | 3 | 0 | 2008-08-21T07:06:38.153000 | 2008-08-21T08:08:21.763000 |
19,436 | 19,447 | Delete Datalist row with multiple primary keys | I have a datalist with a OnDeleteCommand="Delete_Command". I want the delete a record with multiple primary Keys but I do not know how to access it from the Delete_Command event. If I use DataKeyField I'm limited to only one key. Any workarounds for this? | You can access all of the keys: gridView.DataKeys[rowNum][dataKeyName] where rowNum is e.RowIndex from the gridView_RowDeleting event handler, and dataKeyName is the key you want to get: protected void gridView_RowDeleting(object sender, GridViewDeleteEventArgs e) { gridView.DataKeys[e.RowIndex]["userid"]... gridView.D... | Delete Datalist row with multiple primary keys I have a datalist with a OnDeleteCommand="Delete_Command". I want the delete a record with multiple primary Keys but I do not know how to access it from the Delete_Command event. If I use DataKeyField I'm limited to only one key. Any workarounds for this? | TITLE:
Delete Datalist row with multiple primary keys
QUESTION:
I have a datalist with a OnDeleteCommand="Delete_Command". I want the delete a record with multiple primary Keys but I do not know how to access it from the Delete_Command event. If I use DataKeyField I'm limited to only one key. Any workarounds for this?... | [
"asp.net"
] | 4 | 1 | 2,360 | 2 | 0 | 2008-08-21T07:13:24.487000 | 2008-08-21T07:31:42.600000 |
19,437 | 19,444 | Custom font in SQL Server 2005 Reporting Services | I'm having issues with my SQL Reporting Services reports. I'm using a custom font for report headers, and when deployed to the server it does not render correctly when I print or export to PDF/TIFF. I have installed the font on the server. Is there anything else I need to do in order to use custom fonts? When viewing t... | The PDF files served up from SSRS, like many PDF files, have embedded postscript fonts. So, the local fonts used in the report are converted to a best matching postscript font when the conversion takes place so the PDF is totally portable without relying on locally installed fonts. You can see the official MS guideline... | Custom font in SQL Server 2005 Reporting Services I'm having issues with my SQL Reporting Services reports. I'm using a custom font for report headers, and when deployed to the server it does not render correctly when I print or export to PDF/TIFF. I have installed the font on the server. Is there anything else I need ... | TITLE:
Custom font in SQL Server 2005 Reporting Services
QUESTION:
I'm having issues with my SQL Reporting Services reports. I'm using a custom font for report headers, and when deployed to the server it does not render correctly when I print or export to PDF/TIFF. I have installed the font on the server. Is there any... | [
"sql",
"reporting-services"
] | 11 | 4 | 18,882 | 5 | 0 | 2008-08-21T07:16:16.087000 | 2008-08-21T07:29:10.390000 |
19,442 | 19,443 | how to allow files starting with period and no extension in windows 2003 server? | How can I create this file in a directory in windows 2003 SP2:.hgignore I get error: You must type a file name. | That's a "feature" of Windows Explorer. Try to create your files from a command line (or from a batch/program you wrote) and it should work fine. Try this from a dos prompt: echo Hello there! >.hgignore | how to allow files starting with period and no extension in windows 2003 server? How can I create this file in a directory in windows 2003 SP2:.hgignore I get error: You must type a file name. | TITLE:
how to allow files starting with period and no extension in windows 2003 server?
QUESTION:
How can I create this file in a directory in windows 2003 SP2:.hgignore I get error: You must type a file name.
ANSWER:
That's a "feature" of Windows Explorer. Try to create your files from a command line (or from a batc... | [
"mercurial",
"windows-server-2003",
"hgignore"
] | 23 | 27 | 5,451 | 2 | 0 | 2008-08-21T07:26:27.030000 | 2008-08-21T07:28:37.320000 |
19,445 | 26,105 | Content Management system recommendations | Management is thinking of changing out Content Management Systems. What do you use/recommend? What UCM solution is your company using? How big is your company? Are you happy with the implementation? Current setup: The company I work for uses Oracle ECM (formerly Stellent UCM). We have somewhere over 10,000 employees ac... | 1) CMS: Oracle's BEA Aqualogic 2) Size: 10,000+ 3) Experience: As an end user with full community and content admin privileges, I find the tool to be outdated and stifling in terms of knowledge sharing and trying to get the benefits that exist in social networks. Perhaps this is due to the implementation, and not an in... | Content Management system recommendations Management is thinking of changing out Content Management Systems. What do you use/recommend? What UCM solution is your company using? How big is your company? Are you happy with the implementation? Current setup: The company I work for uses Oracle ECM (formerly Stellent UCM). ... | TITLE:
Content Management system recommendations
QUESTION:
Management is thinking of changing out Content Management Systems. What do you use/recommend? What UCM solution is your company using? How big is your company? Are you happy with the implementation? Current setup: The company I work for uses Oracle ECM (former... | [
"content-management-system",
"content-management",
"ecm"
] | 0 | 1 | 1,175 | 13 | 0 | 2008-08-21T07:29:46.990000 | 2008-08-25T14:25:58.500000 |
19,448 | 19,495 | In a DDS file can you detect textures with 0/1 alpha bits? | In my engine I have a need to be able to detect DXT1 textures that have texels with 0 alpha (e.g. a cutout for a window frame). This is easy for textures I compress myself, but I'm not sure about textures that are already compressed. Is there an easy way to tell from the header whether a DDS image contains alpha? | As far as I know, there's no way to tell from the header. There's a DDPF_ALPHAPIXELS flag, but I don't think that will get set based on what's in the pixel data. You'd need to parse the DXT1 blocks, and look for colours that have 0 alpha in them (making sure to check that the colour is actually used in the block, too, ... | In a DDS file can you detect textures with 0/1 alpha bits? In my engine I have a need to be able to detect DXT1 textures that have texels with 0 alpha (e.g. a cutout for a window frame). This is easy for textures I compress myself, but I'm not sure about textures that are already compressed. Is there an easy way to tel... | TITLE:
In a DDS file can you detect textures with 0/1 alpha bits?
QUESTION:
In my engine I have a need to be able to detect DXT1 textures that have texels with 0 alpha (e.g. a cutout for a window frame). This is easy for textures I compress myself, but I'm not sure about textures that are already compressed. Is there ... | [
"graphics",
"directx",
"directdraw",
"dds-format"
] | 1 | 2 | 1,223 | 4 | 0 | 2008-08-21T07:33:10.867000 | 2008-08-21T08:46:47.303000 |
19,454 | 19,455 | Enforce Attribute Decoration of Classes/Methods | Following on from my recent question on Large, Complex Objects as a Web Service Result. I have been thinking about how I can ensure all future child classes are serializable to XML. Now, obviously I could implement the IXmlSerializable interface and then chuck a reader/writer to it but I would like to avoid that since ... | I'd write a unit/integration test that verifies that any class matching some given criteria (ie subclassing X) is decorated appropriately. If you set up your build to run with tests, you can have the build fail when this test fails. UPDATE: You said, "Looks like I will just have to roll my sleeves up and make sure that... | Enforce Attribute Decoration of Classes/Methods Following on from my recent question on Large, Complex Objects as a Web Service Result. I have been thinking about how I can ensure all future child classes are serializable to XML. Now, obviously I could implement the IXmlSerializable interface and then chuck a reader/wr... | TITLE:
Enforce Attribute Decoration of Classes/Methods
QUESTION:
Following on from my recent question on Large, Complex Objects as a Web Service Result. I have been thinking about how I can ensure all future child classes are serializable to XML. Now, obviously I could implement the IXmlSerializable interface and then... | [
"c#",
"xml",
"serialization",
"coding-style",
".net-attributes"
] | 18 | 19 | 4,966 | 5 | 0 | 2008-08-21T07:49:56.083000 | 2008-08-21T07:54:12.670000 |
19,466 | 19,472 | Check file permissions | How can I check file permissions, without having to run operating system specific command via passthru() or exec()? | Use fileperms() function clearstatcache(); echo substr(sprintf('%o', fileperms('/etc/passwd')), -4); | Check file permissions How can I check file permissions, without having to run operating system specific command via passthru() or exec()? | TITLE:
Check file permissions
QUESTION:
How can I check file permissions, without having to run operating system specific command via passthru() or exec()?
ANSWER:
Use fileperms() function clearstatcache(); echo substr(sprintf('%o', fileperms('/etc/passwd')), -4); | [
"php",
"file-permissions"
] | 18 | 23 | 23,123 | 6 | 0 | 2008-08-21T08:06:06.933000 | 2008-08-21T08:10:44.817000 |
19,471 | 19,480 | Weird yellow bar pops-up: 'Microsoft Data Access - Remote Data Services | When I access my site from any computer, I see this warning popping up: "This web site wants to run the following add-on: 'Microsoft Data Access - Remote Data Services Dat...' from 'Microsoft Corporation'. If you trust the web site and the add-on and want to allow it to run, click here..." I am guessing this is some ki... | Id be very concerned if this is on your own server. I found the following blog post that warns on the issue: http://msmvps.com/blogs/hostsnews/archive/2007/09/13/can-you-spot-the-fake.aspx but doesn't provide any way of removing it. I'd recommend making sure both the server and the client are up to date on Windows Upda... | Weird yellow bar pops-up: 'Microsoft Data Access - Remote Data Services When I access my site from any computer, I see this warning popping up: "This web site wants to run the following add-on: 'Microsoft Data Access - Remote Data Services Dat...' from 'Microsoft Corporation'. If you trust the web site and the add-on a... | TITLE:
Weird yellow bar pops-up: 'Microsoft Data Access - Remote Data Services
QUESTION:
When I access my site from any computer, I see this warning popping up: "This web site wants to run the following add-on: 'Microsoft Data Access - Remote Data Services Dat...' from 'Microsoft Corporation'. If you trust the web sit... | [
"security",
"internet-explorer-7"
] | 1 | 3 | 594 | 1 | 0 | 2008-08-21T08:10:14.910000 | 2008-08-21T08:22:28.190000 |
19,487 | 22,087 | What's the best way to go from a Photoshop mockup to semantic HTML and CSS? | I generally use a manual process: Look at the page, figure out the semantic elements, and build the HTML Slice up the images I think I'll need Start writing CSS Tweak and repeat different steps as necessary Got a better approach, or a tool? | I have a fairly natural way of coding. The key is to treat the page like a document or an article. If you think of it like this the following becomes logically clear: The page title is a top level heading Whether you make the site title or actual page title the h1 is up to you - personally I'd make About Us the h1 rath... | What's the best way to go from a Photoshop mockup to semantic HTML and CSS? I generally use a manual process: Look at the page, figure out the semantic elements, and build the HTML Slice up the images I think I'll need Start writing CSS Tweak and repeat different steps as necessary Got a better approach, or a tool? | TITLE:
What's the best way to go from a Photoshop mockup to semantic HTML and CSS?
QUESTION:
I generally use a manual process: Look at the page, figure out the semantic elements, and build the HTML Slice up the images I think I'll need Start writing CSS Tweak and repeat different steps as necessary Got a better approa... | [
"html",
"css"
] | 23 | 10 | 1,221 | 8 | 0 | 2008-08-21T08:32:34.873000 | 2008-08-22T11:21:22.697000 |
19,493 | 19,597 | mod_rewrite rule to redirect all requests except for one specific path | I'm trying to redirect all requests to my domain to another domain using mod_rewrite in an Apache 2.2 VirtualHost declaration. There is one exception to this -- I'd like all requests to the /audio path not to be redirected. I've written a RewriteCond and RewriteRule to do this but it's not quite right and I can't figur... | The HTTP_HOST only contains the host name, not the path of the URL requested. RewriteCond %{REQUEST_URI}!^/audio Should be all you need. Further, you can get debug info from the rewrite engine with the following, which is really useful to see how your conditions and rules are being matched: RewriteLog /path/to/log/file... | mod_rewrite rule to redirect all requests except for one specific path I'm trying to redirect all requests to my domain to another domain using mod_rewrite in an Apache 2.2 VirtualHost declaration. There is one exception to this -- I'd like all requests to the /audio path not to be redirected. I've written a RewriteCon... | TITLE:
mod_rewrite rule to redirect all requests except for one specific path
QUESTION:
I'm trying to redirect all requests to my domain to another domain using mod_rewrite in an Apache 2.2 VirtualHost declaration. There is one exception to this -- I'd like all requests to the /audio path not to be redirected. I've wr... | [
"apache",
"mod-rewrite"
] | 40 | 49 | 56,008 | 1 | 0 | 2008-08-21T08:42:17.407000 | 2008-08-21T10:41:08.590000 |
19,516 | 19,521 | SQL2005: Linking a table to multiple tables and retaining Ref Integrity? | Here is a simplification of my database: Table: Property Fields: ID, Address
Table: Quote Fields: ID, PropertyID, BespokeQuoteFields...
Table: Job Fields: ID, PropertyID, BespokeJobFields... Then we have other tables that relate to the Quote and Job tables individually. I now need to add a Message table where users c... | Create one Message table, containing a unique MessageId and the various properties you need to store for a message. Table: Message Fields: Id, TimeReceived, MessageDetails, WhateverElse... Create two link tables - QuoteMessage and JobMessage. These will just contain two fields each, foreign keys to the Quote/Job and th... | SQL2005: Linking a table to multiple tables and retaining Ref Integrity? Here is a simplification of my database: Table: Property Fields: ID, Address
Table: Quote Fields: ID, PropertyID, BespokeQuoteFields...
Table: Job Fields: ID, PropertyID, BespokeJobFields... Then we have other tables that relate to the Quote and... | TITLE:
SQL2005: Linking a table to multiple tables and retaining Ref Integrity?
QUESTION:
Here is a simplification of my database: Table: Property Fields: ID, Address
Table: Quote Fields: ID, PropertyID, BespokeQuoteFields...
Table: Job Fields: ID, PropertyID, BespokeJobFields... Then we have other tables that relat... | [
"database",
"sql-server-2005",
"referential-integrity"
] | 3 | 4 | 1,200 | 4 | 0 | 2008-08-21T09:12:00.083000 | 2008-08-21T09:26:24.103000 |
19,517 | 21,841 | Is anybody using the Specter BDD Framework? | I was reading the example chapter from the book by Ayende and on the website of the Boo language I saw a reference to the Specter BDD Framework. I am wondering if anybody is using it in their project, how that works out and if there are more examples and/or suggested readings. Just in case you are wondering, I'm a C# d... | I'm not using it, but I've seen demos of it. It's very nice. Boo has a lot of interesting extensibility points in parsing and interpreting the language itself that make it ideal for writing frameworks like Specter. The end result is much nicer looking than you'd be able to get with languages like C#. Unfortunately, the... | Is anybody using the Specter BDD Framework? I was reading the example chapter from the book by Ayende and on the website of the Boo language I saw a reference to the Specter BDD Framework. I am wondering if anybody is using it in their project, how that works out and if there are more examples and/or suggested readings... | TITLE:
Is anybody using the Specter BDD Framework?
QUESTION:
I was reading the example chapter from the book by Ayende and on the website of the Boo language I saw a reference to the Specter BDD Framework. I am wondering if anybody is using it in their project, how that works out and if there are more examples and/or ... | [
"c#",
".net",
"bdd",
"boo"
] | 7 | 1 | 1,385 | 2 | 0 | 2008-08-21T09:23:56.137000 | 2008-08-22T05:28:38.987000 |
19,553 | 19,835 | Enforcing required function call | I have a "Status" class in C#, used like this: Status MyFunction() { if(...) // something bad return new Status(false, "Something went wrong") else return new Status(true, "OK"); } You get the idea. All callers of MyFunction should check the returned Status: Status myStatus = MyFunction(); if (! myStatus.IsOK() ) // ha... | I am fairly certain you can't get the effect you want as a return value from a method. C# just can't do some of the things C++ can. However, a somewhat ugly way to get a similar effect is the following: using System;
public class Example { public class Toy { private bool inCupboard = false; public void Play() { Consol... | Enforcing required function call I have a "Status" class in C#, used like this: Status MyFunction() { if(...) // something bad return new Status(false, "Something went wrong") else return new Status(true, "OK"); } You get the idea. All callers of MyFunction should check the returned Status: Status myStatus = MyFunction... | TITLE:
Enforcing required function call
QUESTION:
I have a "Status" class in C#, used like this: Status MyFunction() { if(...) // something bad return new Status(false, "Something went wrong") else return new Status(true, "OK"); } You get the idea. All callers of MyFunction should check the returned Status: Status myS... | [
"c#",
"garbage-collection",
"dispose",
"destructor"
] | 10 | 2 | 785 | 11 | 0 | 2008-08-21T09:57:26.463000 | 2008-08-21T13:17:05.203000 |
19,589 | 19,596 | Loading System.ServiceModel configuration section using ConfigurationManager | Using C#.NET 3.5 and WCF, I'm trying to write out some of the WCF configuration in a client application (the name of the server the client is connecting to). The obvious way is to use ConfigurationManager to load the configuration section and write out the data I need. var serviceModelSection = ConfigurationManager.Get... | The element is for a configuration section group, not a section. You'll need to use System.ServiceModel.Configuration.ServiceModelSectionGroup.GetSectionGroup() to get the whole group. | Loading System.ServiceModel configuration section using ConfigurationManager Using C#.NET 3.5 and WCF, I'm trying to write out some of the WCF configuration in a client application (the name of the server the client is connecting to). The obvious way is to use ConfigurationManager to load the configuration section and ... | TITLE:
Loading System.ServiceModel configuration section using ConfigurationManager
QUESTION:
Using C#.NET 3.5 and WCF, I'm trying to write out some of the WCF configuration in a client application (the name of the server the client is connecting to). The obvious way is to use ConfigurationManager to load the configur... | [
"c#",
".net",
"xml",
"wcf",
"configurationmanager"
] | 67 | 51 | 61,451 | 5 | 0 | 2008-08-21T10:27:59.137000 | 2008-08-21T10:38:07.083000 |
19,604 | 23,556 | Best TinyMce editor Image Manager / File upload for Asp.net Mvc | What is the best Image Manager to integrate in TinyMce editor apart the official Moxiecode commercial ones? I'm looking to integrate a light texteditor in an asp.net mvc application and I choosed the Tinymce solution (and not the classic FCKEditor as this seems more lightweight and more jquery friendly). Sadly TinyMce ... | There are a couple of open source plugins on SourceForge, http://sourceforge.net/tracker/?group_id=103281&atid=738747 (search for image) The plugin architecture is easy to understand if you know Javascript. If you have the time you could roll out your own. | Best TinyMce editor Image Manager / File upload for Asp.net Mvc What is the best Image Manager to integrate in TinyMce editor apart the official Moxiecode commercial ones? I'm looking to integrate a light texteditor in an asp.net mvc application and I choosed the Tinymce solution (and not the classic FCKEditor as this ... | TITLE:
Best TinyMce editor Image Manager / File upload for Asp.net Mvc
QUESTION:
What is the best Image Manager to integrate in TinyMce editor apart the official Moxiecode commercial ones? I'm looking to integrate a light texteditor in an asp.net mvc application and I choosed the Tinymce solution (and not the classic ... | [
"asp.net",
"asp.net-mvc",
".net-2.0"
] | 28 | 5 | 60,501 | 10 | 0 | 2008-08-21T10:53:54.283000 | 2008-08-22T21:33:39.183000 |
19,653 | 19,678 | Is Visual C++ memory managed by the Dot Net framework | Recently, I've been dealing with an error with accessing MAPI via the.NET framework (as described in this article ). I am now left with a series of memory access violation errors. To get past the issues, I have been trying to use this 3rd party component, which has a Visual C++ core. Unfortunately - we are still having... | I'm not entirely sure what you're asking, but i'll give it a shot. Visual C++ is a pure C/C++ compiler so has none of.NET's memory management, nor any of its runtime -- You have to manually call new and delete..NET also provides C++/CLI, which is a slightly modified version of C++ that targets the.NET runtime, and is G... | Is Visual C++ memory managed by the Dot Net framework Recently, I've been dealing with an error with accessing MAPI via the.NET framework (as described in this article ). I am now left with a series of memory access violation errors. To get past the issues, I have been trying to use this 3rd party component, which has ... | TITLE:
Is Visual C++ memory managed by the Dot Net framework
QUESTION:
Recently, I've been dealing with an error with accessing MAPI via the.NET framework (as described in this article ). I am now left with a series of memory access violation errors. To get past the issues, I have been trying to use this 3rd party com... | [
".net",
"visual-c++",
"memory"
] | 1 | 0 | 1,357 | 3 | 0 | 2008-08-21T11:47:11.630000 | 2008-08-21T12:00:51.690000 |
19,654 | 19,715 | Introducing Python | The company I used to work with has two developers working fulltime, and a handful of freelancers. They're in the process of hiring a new lead developer to try to bring order and management to the development. But, currently, one of the developers has seen the light of Django (the company has only developed in PHP to d... | I recently introduced Python to my company, which does consulting work for the Post Office. I did this by waiting until there was a project for which I would be the only programmer, then getting permission to do this new project in Python. I then did another small project in Python with similarly impressive results. In... | Introducing Python The company I used to work with has two developers working fulltime, and a handful of freelancers. They're in the process of hiring a new lead developer to try to bring order and management to the development. But, currently, one of the developers has seen the light of Django (the company has only de... | TITLE:
Introducing Python
QUESTION:
The company I used to work with has two developers working fulltime, and a handful of freelancers. They're in the process of hiring a new lead developer to try to bring order and management to the development. But, currently, one of the developers has seen the light of Django (the c... | [
"php",
"python"
] | 6 | 15 | 667 | 8 | 0 | 2008-08-21T11:48:03 | 2008-08-21T12:25:21.210000 |
19,656 | 19,663 | How to find an implementation of a C# interface in the current assembly with a specific name? | I have an Interface called IStep that can do some computation (See " Execution in the Kingdom of Nouns "). At runtime, I want to select the appropriate implementation by class name. // use like this: IStep step = GetStep(sName); | Your question is very confusing... If you want to find types that implement IStep, then do this: foreach (Type t in Assembly.GetCallingAssembly().GetTypes()) { if (!typeof(IStep).IsAssignableFrom(t)) continue; Console.WriteLine(t.FullName + " implements " + typeof(IStep).FullName); } If you know already the name of the... | How to find an implementation of a C# interface in the current assembly with a specific name? I have an Interface called IStep that can do some computation (See " Execution in the Kingdom of Nouns "). At runtime, I want to select the appropriate implementation by class name. // use like this: IStep step = GetStep(sName... | TITLE:
How to find an implementation of a C# interface in the current assembly with a specific name?
QUESTION:
I have an Interface called IStep that can do some computation (See " Execution in the Kingdom of Nouns "). At runtime, I want to select the appropriate implementation by class name. // use like this: IStep st... | [
"c#",
"linq",
"reflection",
"linq-to-objects"
] | 7 | 8 | 5,648 | 4 | 0 | 2008-08-21T11:49:08.020000 | 2008-08-21T11:53:00.647000 |
19,708 | 19,716 | Fast(er) way to get file inode using PHP | To grab the inode of a file in PHP, you can use this: $fs = stat($file); echo $fs['ino']; The problem with this is EVERYWHERE says it's slow and you should avoid it. So the question becomes what's the fast(er) way to do it? | You could use fileinode() but you should run benchmarks if you think it is slow. | Fast(er) way to get file inode using PHP To grab the inode of a file in PHP, you can use this: $fs = stat($file); echo $fs['ino']; The problem with this is EVERYWHERE says it's slow and you should avoid it. So the question becomes what's the fast(er) way to do it? | TITLE:
Fast(er) way to get file inode using PHP
QUESTION:
To grab the inode of a file in PHP, you can use this: $fs = stat($file); echo $fs['ino']; The problem with this is EVERYWHERE says it's slow and you should avoid it. So the question becomes what's the fast(er) way to do it?
ANSWER:
You could use fileinode() bu... | [
"php",
"inode"
] | 0 | 1 | 1,260 | 2 | 0 | 2008-08-21T12:22:44.570000 | 2008-08-21T12:25:25.080000 |
19,713 | 19,732 | Interlocked.Exchange, but not for booleans? | Is there an equivalent for Interlocked.Exchange for boolean? Such as an atomic exchange of values that returns the previous value and doesn't require locks? | No; use integers instead of booleans. In principle such a thing could be written (cmpxchg, the underlying processor instruction, can operate on 8, 16, 32, and 64-bit operands on x86, 8, 16, 32, 64, and 128-bit operands on x64), but in practice most APIs stick to pointer and double pointer (32 and 64-bit on x86, 64 and ... | Interlocked.Exchange, but not for booleans? Is there an equivalent for Interlocked.Exchange for boolean? Such as an atomic exchange of values that returns the previous value and doesn't require locks? | TITLE:
Interlocked.Exchange, but not for booleans?
QUESTION:
Is there an equivalent for Interlocked.Exchange for boolean? Such as an atomic exchange of values that returns the previous value and doesn't require locks?
ANSWER:
No; use integers instead of booleans. In principle such a thing could be written (cmpxchg, t... | [
".net",
"multithreading"
] | 11 | 8 | 2,107 | 1 | 0 | 2008-08-21T12:24:23.333000 | 2008-08-21T12:33:13.907000 |
19,721 | 19,736 | How do I secure my new web server (Server 2008)? | I've just put my new server up on an IP address with a domain pointing to it. I need to be able to remote admin it. I've opened the firewall for Remote Desktop and HTTP traffic. Is this going to be secure enough? I guess I should probably rename the administrator user... | The absolute minimum you should do is change the Remote Desktop port, change the Admin username, and have a very strong admin password. | How do I secure my new web server (Server 2008)? I've just put my new server up on an IP address with a domain pointing to it. I need to be able to remote admin it. I've opened the firewall for Remote Desktop and HTTP traffic. Is this going to be secure enough? I guess I should probably rename the administrator user... | TITLE:
How do I secure my new web server (Server 2008)?
QUESTION:
I've just put my new server up on an IP address with a domain pointing to it. I need to be able to remote admin it. I've opened the firewall for Remote Desktop and HTTP traffic. Is this going to be secure enough? I guess I should probably rename the adm... | [
"security"
] | 3 | 4 | 652 | 4 | 0 | 2008-08-21T12:28:47.193000 | 2008-08-21T12:33:33.577000 |
19,725 | 19,740 | How do I unregister COM dlls initially added with RegSvr32 when the /u arg doesn't work? | Right, initially ran: c:\regsvr32 Amazing.dll then, (accidentally - I might add) I must have run it again, and (indeed) again when new versions of 'Amazing.dll' were released. Yes - I know now I should've run: c:\regsvr32 /u Amazing.dll beforehand - but hey! I forgot. To cut to the chase, when add the COM reference in ... | Your object's GUID's should not be changing. In other words, once you register the COM object, re-registering shouldn't be adding anything additional to the registry. Unless you added additional COM interfaces or objects to the project. In any case, if this is a one time deal (and it sounds like it is), open regedit an... | How do I unregister COM dlls initially added with RegSvr32 when the /u arg doesn't work? Right, initially ran: c:\regsvr32 Amazing.dll then, (accidentally - I might add) I must have run it again, and (indeed) again when new versions of 'Amazing.dll' were released. Yes - I know now I should've run: c:\regsvr32 /u Amazin... | TITLE:
How do I unregister COM dlls initially added with RegSvr32 when the /u arg doesn't work?
QUESTION:
Right, initially ran: c:\regsvr32 Amazing.dll then, (accidentally - I might add) I must have run it again, and (indeed) again when new versions of 'Amazing.dll' were released. Yes - I know now I should've run: c:\... | [
"visual-studio",
"com",
"regsvr32",
"dllregistration"
] | 14 | 14 | 16,222 | 3 | 0 | 2008-08-21T12:30:49.107000 | 2008-08-21T12:35:41.543000 |
19,728 | 19,774 | What is the best strategy for retainment of large data sets? | I'm leading a project where we'll be recording metrics data. I'd like to retain the data for years. However, I'd also like to keep the primary table from becoming bloated with data that, while necessary for long term trending, isn't required for short term reporting. What is the best strategy for handling this situatio... | We use both methods at my work, but slightly different, we keep all sales data in the primary table for 30 days, then at night (part of the nightly jobs) the days sales are rolled up into summaries (n qty of x product sold today ect) in a separate table for reporting reasons, and sales over 30 days are archived into a ... | What is the best strategy for retainment of large data sets? I'm leading a project where we'll be recording metrics data. I'd like to retain the data for years. However, I'd also like to keep the primary table from becoming bloated with data that, while necessary for long term trending, isn't required for short term re... | TITLE:
What is the best strategy for retainment of large data sets?
QUESTION:
I'm leading a project where we'll be recording metrics data. I'd like to retain the data for years. However, I'd also like to keep the primary table from becoming bloated with data that, while necessary for long term trending, isn't required... | [
"database-design",
"dataset"
] | 9 | 4 | 748 | 5 | 0 | 2008-08-21T12:31:54.783000 | 2008-08-21T12:54:23.463000 |
19,744 | 30,681 | Trigger without a transaction? | Is it possible to create a trigger that will not be in a transaction? I want to update data on a linked server with a trigger but due to firewall issues we can't create a distributed transaction between the two servers. | What you probably want is a combination of a queue that contains updates for the linked server and a process that reads data from the queue and updates the remote server. The trigger will then insert a message into the queue as part of the normal transaction. This data will be read by the separate process and used to u... | Trigger without a transaction? Is it possible to create a trigger that will not be in a transaction? I want to update data on a linked server with a trigger but due to firewall issues we can't create a distributed transaction between the two servers. | TITLE:
Trigger without a transaction?
QUESTION:
Is it possible to create a trigger that will not be in a transaction? I want to update data on a linked server with a trigger but due to firewall issues we can't create a distributed transaction between the two servers.
ANSWER:
What you probably want is a combination of... | [
"sql-server",
"t-sql",
"triggers"
] | 4 | 3 | 2,483 | 2 | 0 | 2008-08-21T12:36:42.540000 | 2008-08-27T17:24:42.250000 |
19,746 | 35,250 | Views in separate assemblies in ASP.NET MVC | I'm trying to create a webapplication where I want to be able to plug-in separate assemblies. I'm using MVC preview 4 combined with Unity for dependency injection, which I use to create the controllers from my plugin assemblies. I'm using WebForms (default aspx) as my view engine. If I want to use a view, I'm stuck on ... | Essentially this is the same issue as people had with WebForms and trying to compile their UserControl ASCX files into a DLL. I found this http://www.codeproject.com/KB/aspnet/ASP2UserControlLibrary.aspx that might work for you too. | Views in separate assemblies in ASP.NET MVC I'm trying to create a webapplication where I want to be able to plug-in separate assemblies. I'm using MVC preview 4 combined with Unity for dependency injection, which I use to create the controllers from my plugin assemblies. I'm using WebForms (default aspx) as my view en... | TITLE:
Views in separate assemblies in ASP.NET MVC
QUESTION:
I'm trying to create a webapplication where I want to be able to plug-in separate assemblies. I'm using MVC preview 4 combined with Unity for dependency injection, which I use to create the controllers from my plugin assemblies. I'm using WebForms (default a... | [
"c#",
"asp.net-mvc",
"plugins"
] | 54 | 15 | 30,670 | 4 | 0 | 2008-08-21T12:37:23.490000 | 2008-08-29T20:34:48.740000 |
19,766 | 19,804 | How do I make a list with checkboxes in Java Swing? | What would be the best way to have a list of items with a checkbox each in Java Swing? I.e. a JList with items that have some text and a checkbox each? | Create a custom ListCellRenderer and asign it to the JList. This custom ListCellRenderer must return a JCheckbox in the implementantion of getListCellRendererComponent(...) method. But this JCheckbox will not be editable, is a simple paint in the screen is up to you to choose when this JCheckbox must be 'ticked' or not... | How do I make a list with checkboxes in Java Swing? What would be the best way to have a list of items with a checkbox each in Java Swing? I.e. a JList with items that have some text and a checkbox each? | TITLE:
How do I make a list with checkboxes in Java Swing?
QUESTION:
What would be the best way to have a list of items with a checkbox each in Java Swing? I.e. a JList with items that have some text and a checkbox each?
ANSWER:
Create a custom ListCellRenderer and asign it to the JList. This custom ListCellRenderer ... | [
"java",
"swing",
"jcheckbox"
] | 35 | 17 | 90,011 | 11 | 0 | 2008-08-21T12:49:12.400000 | 2008-08-21T13:05:26.637000 |
19,772 | 19,778 | CMD.exe replacement | Does anyone know of a good Command Prompt replacement? I've tried bash/Cygwin, but that does not really meet my needs at work because it's too heavy. I'd like a function-for-function identical wrapper on cmd.exe, but with highlighting, intellisense, and (critically) a tabbed interface. Powershell is okay, but the inter... | Edited: I've been using ConEmu ( http://conemu.github.io/ ) for quite some time now. This one is a wrapper too, since it is not really possible to replace the Windows console without rewriting the whole command interpreter. Below the line is my original answer for an earlier alternative. Not exactly a replacement (actu... | CMD.exe replacement Does anyone know of a good Command Prompt replacement? I've tried bash/Cygwin, but that does not really meet my needs at work because it's too heavy. I'd like a function-for-function identical wrapper on cmd.exe, but with highlighting, intellisense, and (critically) a tabbed interface. Powershell is... | TITLE:
CMD.exe replacement
QUESTION:
Does anyone know of a good Command Prompt replacement? I've tried bash/Cygwin, but that does not really meet my needs at work because it's too heavy. I'd like a function-for-function identical wrapper on cmd.exe, but with highlighting, intellisense, and (critically) a tabbed interf... | [
"command-line",
"terminal"
] | 90 | 64 | 52,720 | 10 | 0 | 2008-08-21T12:53:46.663000 | 2008-08-21T12:56:01.323000 |
19,773 | 19,784 | Huge Web App With Memory Leak in IE 6 | I have a huge web app that is having issues with memory leak in IE 6. Fixing a memory leak in a 5 line code sample that demonstrates the problem is easy. But if I have a very huge application, where should a start from? | Check out Drip. That usually takes the guesswork out of IE memory leaks. If for some reason Drip doesn't find it, take a close look at any JavaScript code that works with events. That is almost always the source of any significant memory leak in a browser. Destroying a DOM element with handlers attached to it, without ... | Huge Web App With Memory Leak in IE 6 I have a huge web app that is having issues with memory leak in IE 6. Fixing a memory leak in a 5 line code sample that demonstrates the problem is easy. But if I have a very huge application, where should a start from? | TITLE:
Huge Web App With Memory Leak in IE 6
QUESTION:
I have a huge web app that is having issues with memory leak in IE 6. Fixing a memory leak in a 5 line code sample that demonstrates the problem is easy. But if I have a very huge application, where should a start from?
ANSWER:
Check out Drip. That usually takes ... | [
"memory-leaks",
"internet-explorer-6"
] | 3 | 7 | 1,589 | 3 | 0 | 2008-08-21T12:54:18.037000 | 2008-08-21T12:59:03.173000 |
19,786 | 19,920 | Local Currency String conversion | I am maintaining an app for a client that is used in two locations. One in England and one in Poland. The database is stored in England and uses the format £1000.00 for currency, but the information is being gathered locally in Poland where 1000,00 is the format. My question is, in VB6 is there a function that takes a ... | The data is not actually stored as the string "£1000.00"; it's stored in some numeric format. Sidebar: Usually databases are set up to store money amounts using either the decimal data type (also called money in some DBs), or as a floating point number (also called double ). The difference is that when it's stored as d... | Local Currency String conversion I am maintaining an app for a client that is used in two locations. One in England and one in Poland. The database is stored in England and uses the format £1000.00 for currency, but the information is being gathered locally in Poland where 1000,00 is the format. My question is, in VB6 ... | TITLE:
Local Currency String conversion
QUESTION:
I am maintaining an app for a client that is used in two locations. One in England and one in Poland. The database is stored in England and uses the format £1000.00 for currency, but the information is being gathered locally in Poland where 1000,00 is the format. My qu... | [
"vb6",
"localization",
"internationalization"
] | 2 | 8 | 4,749 | 4 | 0 | 2008-08-21T12:59:45.340000 | 2008-08-21T13:40:13.540000 |
19,787 | 19,826 | How Do I Find a File in a Subversion Repository History? | Is it possible to look back through the history of a Subversion repository for files of a certain name (even better would be for them to have a wildcard search)? I want to see if a.bat file has been committed to the repository at some point in the past but has since been removed in later updates. Even a dump of the fil... | TortoiseSVN can search the logs very easily, and on my system I can enter ".plg" in the search box and find all adds, modifies, and deletes for those files. Without Tortoise, the only way I can think of doing that would be to grep the full logs or parse the logs and do your own searching for 'A' and 'D' indicators on t... | How Do I Find a File in a Subversion Repository History? Is it possible to look back through the history of a Subversion repository for files of a certain name (even better would be for them to have a wildcard search)? I want to see if a.bat file has been committed to the repository at some point in the past but has si... | TITLE:
How Do I Find a File in a Subversion Repository History?
QUESTION:
Is it possible to look back through the history of a Subversion repository for files of a certain name (even better would be for them to have a wildcard search)? I want to see if a.bat file has been committed to the repository at some point in t... | [
"svn",
"repository"
] | 26 | 23 | 19,015 | 5 | 0 | 2008-08-21T12:59:53.357000 | 2008-08-21T13:11:29.180000 |
19,790 | 19,805 | Display rows in multiple columns in Asp.net Gridview | By default each row of a Gridview maps to each row in a datatable or dataset attached to its datasource. But what if I want to display these rows in multiple columns. For example if it has 10 rows, 5 rows each should be displayed in 2 columns side by side. Also can I do this with the Infragistics grid. Is this possible... | You can use a DataList control instead. It has a RepeatColumns property that you can define the number of columns you want to display. In.NET Framework 3.5, there is an even better solution, the ListView control. You can find further information about how to use the ListView control here. | Display rows in multiple columns in Asp.net Gridview By default each row of a Gridview maps to each row in a datatable or dataset attached to its datasource. But what if I want to display these rows in multiple columns. For example if it has 10 rows, 5 rows each should be displayed in 2 columns side by side. Also can I... | TITLE:
Display rows in multiple columns in Asp.net Gridview
QUESTION:
By default each row of a Gridview maps to each row in a datatable or dataset attached to its datasource. But what if I want to display these rows in multiple columns. For example if it has 10 rows, 5 rows each should be displayed in 2 columns side b... | [
"asp.net",
"gridview",
"infragistics",
"ultrawebgrid"
] | 8 | 14 | 29,879 | 3 | 0 | 2008-08-21T13:00:56.787000 | 2008-08-21T13:05:57.243000 |
19,803 | 19,874 | Profiling/Optimizing (Sharepoint 2007) Web Parts | I just wonder what options there are to properly measure/profile/optimize ASP.net 2.0 Web Parts, especially the ones for Sharepoint 2007? As Web Parts are a layer on another layer of technology, getting resource usage, open handles and stuff only for the web part seems to be a bit difficult. Does anyone know some good ... | Back when we started with SP2003, we used to worry about not closing connection in apps or web parts. We used the following query to check if the base number of connections (not counting the initial spike) would increase as the app is used on the development server: SELECT hostname, sysdatabases.name, sysprocesses.stat... | Profiling/Optimizing (Sharepoint 2007) Web Parts I just wonder what options there are to properly measure/profile/optimize ASP.net 2.0 Web Parts, especially the ones for Sharepoint 2007? As Web Parts are a layer on another layer of technology, getting resource usage, open handles and stuff only for the web part seems t... | TITLE:
Profiling/Optimizing (Sharepoint 2007) Web Parts
QUESTION:
I just wonder what options there are to properly measure/profile/optimize ASP.net 2.0 Web Parts, especially the ones for Sharepoint 2007? As Web Parts are a layer on another layer of technology, getting resource usage, open handles and stuff only for th... | [
"asp.net",
"sharepoint"
] | 1 | 0 | 388 | 3 | 0 | 2008-08-21T13:05:21.863000 | 2008-08-21T13:32:06.760000 |
19,837 | 20,427 | PHP with SQL Server 2005+ | Currently we have a hybrid ASP/PHP setup connecting to a SQL Server 2005 database. But all the query work is done on the client side, I'd like to move some of this to PHP. What driver and/or connection string is needed to connect to Sql Svr and what is the syntax to use in PHP? Update: OK so I was definitely trying to ... | You have two options: 1) php_mssql extension: If you'd like something that has the same API mysql and mysqli has, then use the php_mssql extension. But there is a catch, the bundled ntwdblib.dll file with PHP is not working. You have to find this file from a SQL Server 2000 installation or you can find it on the Intern... | PHP with SQL Server 2005+ Currently we have a hybrid ASP/PHP setup connecting to a SQL Server 2005 database. But all the query work is done on the client side, I'd like to move some of this to PHP. What driver and/or connection string is needed to connect to Sql Svr and what is the syntax to use in PHP? Update: OK so I... | TITLE:
PHP with SQL Server 2005+
QUESTION:
Currently we have a hybrid ASP/PHP setup connecting to a SQL Server 2005 database. But all the query work is done on the client side, I'd like to move some of this to PHP. What driver and/or connection string is needed to connect to Sql Svr and what is the syntax to use in PH... | [
"php",
"sql-server"
] | 3 | 5 | 508 | 3 | 0 | 2008-08-21T13:17:44.297000 | 2008-08-21T16:20:25.700000 |
19,838 | 20,154 | Ruby blocks/Java closures in C | I've been trying to understand how Ruby blocks work, and to do that I've been trying to implement them in C. One easy way to implement closures is to pass a void* to the enclosing stack to the closure/function but Ruby blocks also seem to handle returns and break statements from the scope that uses the block. loop do b... | The concept of closures requires the concept of contexts. C's context is based on the stack and the registers of the CPU, so to create a block/closure, you need to be able to manipulate the stack pointer in a correct (and reentrant) way, and store/restore registers as needed. The way this is done by interpreters or vir... | Ruby blocks/Java closures in C I've been trying to understand how Ruby blocks work, and to do that I've been trying to implement them in C. One easy way to implement closures is to pass a void* to the enclosing stack to the closure/function but Ruby blocks also seem to handle returns and break statements from the scope... | TITLE:
Ruby blocks/Java closures in C
QUESTION:
I've been trying to understand how Ruby blocks work, and to do that I've been trying to implement them in C. One easy way to implement closures is to pass a void* to the enclosing stack to the closure/function but Ruby blocks also seem to handle returns and break stateme... | [
"java",
"c",
"ruby"
] | 6 | 10 | 1,323 | 3 | 0 | 2008-08-21T13:17:50.367000 | 2008-08-21T14:53:49.933000 |
19,843 | 20,139 | Generics in c# & accessing the static members of T | My question concerns c# and how to access Static members... Well I don't really know how to explain it (which kind of is bad for a question isn't it?) I will just give you some sample code: Class test { int method1(Obj Parameter1){ //in here I want to do something which I would explain as T.TryParse(Parameter1);
//my ... | One more way to do it, this time some reflection in the mix: static class Parser { public static bool TryParse ( string str, out TType x ) { // Get the type on that TryParse shall be called Type objType = typeof( TType );
// Enumerate the methods of TType foreach( MethodInfo mi in objType.GetMethods() ) { if( mi.Name ... | Generics in c# & accessing the static members of T My question concerns c# and how to access Static members... Well I don't really know how to explain it (which kind of is bad for a question isn't it?) I will just give you some sample code: Class test { int method1(Obj Parameter1){ //in here I want to do something whic... | TITLE:
Generics in c# & accessing the static members of T
QUESTION:
My question concerns c# and how to access Static members... Well I don't really know how to explain it (which kind of is bad for a question isn't it?) I will just give you some sample code: Class test { int method1(Obj Parameter1){ //in here I want to... | [
"c#",
"generics",
"static",
"methods",
"data-access"
] | 15 | 2 | 9,048 | 12 | 0 | 2008-08-21T13:20:05.710000 | 2008-08-21T14:46:46.097000 |
19,852 | 1,849,792 | Maximum length of a MIME Content-Type header field? | I'm just designing the schema for a database table which will hold details of email attachments - their size in bytes, filename and content-type (i.e. "image/jpg", "audio/mp3", etc). Does anybody know the maximum length that I can expect a content-type to be? | I hope I havn't misread, but it looks like the length is max 127/127 or 255 total. RFC 4288 has a reference in 4.2 (page 6): Type and subtype names MUST conform to the following ABNF:
type-name = reg-name subtype-name = reg-name
reg-name = 1*127reg-name-chars reg-name-chars = ALPHA / DIGIT / "!" / "#" / "$" / "&" / "... | Maximum length of a MIME Content-Type header field? I'm just designing the schema for a database table which will hold details of email attachments - their size in bytes, filename and content-type (i.e. "image/jpg", "audio/mp3", etc). Does anybody know the maximum length that I can expect a content-type to be? | TITLE:
Maximum length of a MIME Content-Type header field?
QUESTION:
I'm just designing the schema for a database table which will hold details of email attachments - their size in bytes, filename and content-type (i.e. "image/jpg", "audio/mp3", etc). Does anybody know the maximum length that I can expect a content-ty... | [
"email",
"mime"
] | 41 | 49 | 21,097 | 3 | 0 | 2008-08-21T13:23:09.480000 | 2009-12-04T21:35:52.013000 |
19,883 | 19,896 | Is there a bug/issue tracking system which integrates with Mercurial? | I've used Trac/Subversion before and really like the integration. My current project is using Mercurial for distributed development and it'd be nice to be able to track issues/bugs and have this be integrated with Mercurial. I realized this could be tricky with the nature of DVCS. | TracMercurial integrates Trac with Mercurial. Assembla provides free Mercurial hosting with Trac integration. The idea is that you have a central repository as your master and upload all the subsidiary changes from local repositories into the main one. | Is there a bug/issue tracking system which integrates with Mercurial? I've used Trac/Subversion before and really like the integration. My current project is using Mercurial for distributed development and it'd be nice to be able to track issues/bugs and have this be integrated with Mercurial. I realized this could be ... | TITLE:
Is there a bug/issue tracking system which integrates with Mercurial?
QUESTION:
I've used Trac/Subversion before and really like the integration. My current project is using Mercurial for distributed development and it'd be nice to be able to track issues/bugs and have this be integrated with Mercurial. I reali... | [
"mercurial",
"integration",
"bug-tracking"
] | 20 | 11 | 12,667 | 12 | 0 | 2008-08-21T13:34:43.150000 | 2008-08-21T13:37:10.367000 |
19,893 | 19,904 | How do you embed binary data in XML? | I have two applications written in Java that communicate with each other using XML messages over the network. I'm using a SAX parser at the receiving end to get the data back out of the messages. One of the requirements is to embed binary data in an XML message, but SAX doesn't like this. Does anyone know how to do thi... | You could encode the binary data using base64 and put it into a Base64 element; the below article is a pretty good one on the subject. Handling Binary Data in XML Documents | How do you embed binary data in XML? I have two applications written in Java that communicate with each other using XML messages over the network. I'm using a SAX parser at the receiving end to get the data back out of the messages. One of the requirements is to embed binary data in an XML message, but SAX doesn't like... | TITLE:
How do you embed binary data in XML?
QUESTION:
I have two applications written in Java that communicate with each other using XML messages over the network. I'm using a SAX parser at the receiving end to get the data back out of the messages. One of the requirements is to embed binary data in an XML message, bu... | [
"java",
"xml",
"binary",
"binary-data"
] | 114 | 231 | 122,847 | 12 | 0 | 2008-08-21T13:35:46.830000 | 2008-08-21T13:37:58.600000 |
19,941 | 19,949 | How do I redirect a user to a custom 404 page in ASP.NET MVC instead of throwing an exception? | I want to be able to capture the exception that is thrown when a user requests a non-existent controller and re-direct it to a 404 page. How can I do this? For example, the user requests http://www.nosite.com/paeges/1 ( should be /pages/ ). How do I make it so they get re-directed to the 404 rather than the exception s... | Take a look at this page for routing your 404-errors to a specified page. | How do I redirect a user to a custom 404 page in ASP.NET MVC instead of throwing an exception? I want to be able to capture the exception that is thrown when a user requests a non-existent controller and re-direct it to a 404 page. How can I do this? For example, the user requests http://www.nosite.com/paeges/1 ( shoul... | TITLE:
How do I redirect a user to a custom 404 page in ASP.NET MVC instead of throwing an exception?
QUESTION:
I want to be able to capture the exception that is thrown when a user requests a non-existent controller and re-direct it to a 404 page. How can I do this? For example, the user requests http://www.nosite.co... | [
"asp.net-mvc",
"exception",
"routes"
] | 18 | 6 | 15,386 | 3 | 0 | 2008-08-21T13:46:58.563000 | 2008-08-21T13:50:20.303000 |
19,952 | 19,983 | Algorithm to perform RFC calculation in Java | The RFC for a Java class is set of all methods that can be invoked in response to a message to an object of the class or by some method in the class. RFC = M + R where M = Number of methods in the class. R = Total number of other methods directly invoked from the M. Thinking C is the.class and J is the.java file of whi... | You could use the Byte Code Engineering Library with binaries. You can use a DescendingVisitor to visit a class' members and references. I've used it to find class dependencies. Alternatively, you could reuse some model of the source files. I'm pretty sure the Java editor in the Eclipse JDT is backed by some form of mo... | Algorithm to perform RFC calculation in Java The RFC for a Java class is set of all methods that can be invoked in response to a message to an object of the class or by some method in the class. RFC = M + R where M = Number of methods in the class. R = Total number of other methods directly invoked from the M. Thinking... | TITLE:
Algorithm to perform RFC calculation in Java
QUESTION:
The RFC for a Java class is set of all methods that can be invoked in response to a message to an object of the class or by some method in the class. RFC = M + R where M = Number of methods in the class. R = Total number of other methods directly invoked fr... | [
"java",
"regex",
"algorithm",
"reflection"
] | 4 | 2 | 1,194 | 4 | 0 | 2008-08-21T13:50:35.997000 | 2008-08-21T14:01:58.247000 |
19,956 | 23,022 | What to use Windows CardSpace for? | I'm doing some funky authentication work (and yes, I know, open-id is awesome, but then again my open-id doesn't work right at this moment!). Stumbling across Windows CardSpace I was wondering if anyone has used this in a real product-system. If you have used it, what were the pros and cons for you? And how can i use i... | Umm no you don't; you can accept information cards on a web site using a cheap and cheerful certificate (but not self signed) or no certificate at all. And yes, I've used it as part of a production system which grew out of a proof of concept I did at Microsoft. Cons: If you don't have an EV SSL certificate you get warn... | What to use Windows CardSpace for? I'm doing some funky authentication work (and yes, I know, open-id is awesome, but then again my open-id doesn't work right at this moment!). Stumbling across Windows CardSpace I was wondering if anyone has used this in a real product-system. If you have used it, what were the pros an... | TITLE:
What to use Windows CardSpace for?
QUESTION:
I'm doing some funky authentication work (and yes, I know, open-id is awesome, but then again my open-id doesn't work right at this moment!). Stumbling across Windows CardSpace I was wondering if anyone has used this in a real product-system. If you have used it, wha... | [
"windows",
"security",
"authentication"
] | 2 | 2 | 406 | 1 | 0 | 2008-08-21T13:53:35.880000 | 2008-08-22T17:51:57.890000 |
19,963 | 1,729,083 | What's the best way of diffing Crystal Reports? | If you have two versions of the same report (.rpt) and you want to establish what the exact differences are, what is the best way to go about this? I've seen some commercial tools to do this, but I'm not too interested in forking out cash for something that should be relatively straight forward. Can I hook into the Cry... | Can I hook into the Crystal API and simply list all of the properties of every field or something? Please someone tell me that there's an Open Source project somewhere that does this... @:-) There is in fact, such an API. I wrote a VB6 application to do just what you asked and more. I think I even migrated it to VB.Net... | What's the best way of diffing Crystal Reports? If you have two versions of the same report (.rpt) and you want to establish what the exact differences are, what is the best way to go about this? I've seen some commercial tools to do this, but I'm not too interested in forking out cash for something that should be rela... | TITLE:
What's the best way of diffing Crystal Reports?
QUESTION:
If you have two versions of the same report (.rpt) and you want to establish what the exact differences are, what is the best way to go about this? I've seen some commercial tools to do this, but I'm not too interested in forking out cash for something t... | [
"crystal-reports",
"diff"
] | 19 | 12 | 8,381 | 3 | 0 | 2008-08-21T13:56:06.903000 | 2009-11-13T12:59:24.943000 |
19,970 | 20,000 | Best way to keep an ordered list of windows (from most-recently created to oldest)? | What is the best way to manage a list of windows (keeping them in order) to be able to promote the next window to the top-level when the current top-level window is closed. This is for a web application, so we're using jQuery Javascript. We'd talked through a few simplistic solutions, such as using an array and just tr... | A stack if you want to just close the window on top. A queue if you also need to open windows at the end. | Best way to keep an ordered list of windows (from most-recently created to oldest)? What is the best way to manage a list of windows (keeping them in order) to be able to promote the next window to the top-level when the current top-level window is closed. This is for a web application, so we're using jQuery Javascript... | TITLE:
Best way to keep an ordered list of windows (from most-recently created to oldest)?
QUESTION:
What is the best way to manage a list of windows (keeping them in order) to be able to promote the next window to the top-level when the current top-level window is closed. This is for a web application, so we're using... | [
"javascript"
] | 4 | 1 | 327 | 3 | 0 | 2008-08-21T13:58:25.697000 | 2008-08-21T14:06:11.747000 |
19,988 | 20,029 | Being as DRY as possible in a Ruby on Rails App | I'm currently using the awesome attachment-fu plugin for a Rails app, but as a novice developer, I've never encountered a scenario like the one I've found myself in. Essentially, I'm using the attachment-fu plugin on two levels. Is for user avatars in the user class. Is to allow file attachments ( PDFs, etc) in a messa... | I would lean towards using a parent class, with subclassing for the different ways you intend to actually use the attachments in your application. It may not be the DRYest solution available, however, it lends itself to a logical pattern rather well. | Being as DRY as possible in a Ruby on Rails App I'm currently using the awesome attachment-fu plugin for a Rails app, but as a novice developer, I've never encountered a scenario like the one I've found myself in. Essentially, I'm using the attachment-fu plugin on two levels. Is for user avatars in the user class. Is t... | TITLE:
Being as DRY as possible in a Ruby on Rails App
QUESTION:
I'm currently using the awesome attachment-fu plugin for a Rails app, but as a novice developer, I've never encountered a scenario like the one I've found myself in. Essentially, I'm using the attachment-fu plugin on two levels. Is for user avatars in th... | [
"ruby-on-rails",
"ruby",
"model-view-controller",
"attachment-fu"
] | 0 | 1 | 717 | 6 | 0 | 2008-08-21T14:02:56.467000 | 2008-08-21T14:12:05.540000 |
19,995 | 20,004 | Is there some way to PUSH data from web server to browser? | Of course I am aware of Ajax, but the problem with Ajax is that the browser should poll the server frequently to find whether there is new data. This increases server load. Is there any better method (even using Ajax) other than polling the server frequently? | Yes, what you're looking for is COMET http://en.wikipedia.org/wiki/Comet_(programming). Other good Google terms to search for are AJAX-push and reverse-ajax. | Is there some way to PUSH data from web server to browser? Of course I am aware of Ajax, but the problem with Ajax is that the browser should poll the server frequently to find whether there is new data. This increases server load. Is there any better method (even using Ajax) other than polling the server frequently? | TITLE:
Is there some way to PUSH data from web server to browser?
QUESTION:
Of course I am aware of Ajax, but the problem with Ajax is that the browser should poll the server frequently to find whether there is new data. This increases server load. Is there any better method (even using Ajax) other than polling the se... | [
"ajax",
"webserver",
"comet"
] | 137 | 70 | 78,470 | 18 | 0 | 2008-08-21T14:04:55.540000 | 2008-08-21T14:07:00.340000 |
20,003 | 20,682 | Repository layout for large Maven projects | I have a large application (~50 modules) using a structure similar to the following: Application Communication modules Color communication module SSN communication module etc. communication module Router module Service modules Voting service module Web interface submodule for voting Vote collector submodule for voting ... | We have a largish application (160+ OSGi bundles where each bundle is a Maven module) and the lesson we learned, and continue to learn, is that flat is better. The problem with encoding semantics in your hierarchy is that you lose flexibility. A module that is 100% say "communication" today may be partly "service" tomo... | Repository layout for large Maven projects I have a large application (~50 modules) using a structure similar to the following: Application Communication modules Color communication module SSN communication module etc. communication module Router module Service modules Voting service module Web interface submodule for ... | TITLE:
Repository layout for large Maven projects
QUESTION:
I have a large application (~50 modules) using a structure similar to the following: Application Communication modules Color communication module SSN communication module etc. communication module Router module Service modules Voting service module Web interf... | [
"java",
"svn",
"maven-2"
] | 15 | 16 | 4,133 | 2 | 0 | 2008-08-21T14:06:44.850000 | 2008-08-21T18:07:00.513000 |
20,021 | 20,215 | Version track, automate DB schema changes with django | I'm currently looking at the Python framework Django for future db-based web apps as well as for a port of some apps currently written in PHP. One of the nastier issues during my last years was keeping track of database schema changes and deploying these changes to productive systems. I haven't dared asking for being a... | There are at least two third party utilities to handle DB schema migrations, South and Django Evolution. I haven't tried either one, but I have heard some good things about South, though Evolution has been around a little longer. Also, look at SchemaEvolution on the Django wiki. It is just a wiki page about migrating t... | Version track, automate DB schema changes with django I'm currently looking at the Python framework Django for future db-based web apps as well as for a port of some apps currently written in PHP. One of the nastier issues during my last years was keeping track of database schema changes and deploying these changes to ... | TITLE:
Version track, automate DB schema changes with django
QUESTION:
I'm currently looking at the Python framework Django for future db-based web apps as well as for a port of some apps currently written in PHP. One of the nastier issues during my last years was keeping track of database schema changes and deploying... | [
"database",
"django",
"svn"
] | 11 | 12 | 1,821 | 6 | 0 | 2008-08-21T14:10:25.123000 | 2008-08-21T15:20:00.040000 |
20,034 | 485,304 | Is Project Darkstar Realistic? | Project Darkstar was the topic of the monthly JavaSIG meeting down at the Google offices in NYC last night. For those that don't know (probably everyone), Project Darkstar is a framework for massively multiplayer online games that attempts to take care of all of the "hard stuff." The basic idea is that you write your g... | Edit: This was written before Oracle bought Sun and started a rampage to kill everything that does not make them a billion $ per day. See the comments for an OSS Fork. I still stand by my opinion that stuff like that (MMO Middleware) is realistic, you just need a company that doesn't suck behind it. The Market may be d... | Is Project Darkstar Realistic? Project Darkstar was the topic of the monthly JavaSIG meeting down at the Google offices in NYC last night. For those that don't know (probably everyone), Project Darkstar is a framework for massively multiplayer online games that attempts to take care of all of the "hard stuff." The basi... | TITLE:
Is Project Darkstar Realistic?
QUESTION:
Project Darkstar was the topic of the monthly JavaSIG meeting down at the Google offices in NYC last night. For those that don't know (probably everyone), Project Darkstar is a framework for massively multiplayer online games that attempts to take care of all of the "har... | [
"java",
"concurrency",
"distributed"
] | 26 | 26 | 4,975 | 7 | 0 | 2008-08-21T14:13:11.327000 | 2009-01-27T21:20:26.120000 |
20,040 | 20,058 | What are the most important things to learn about .net as a Project Manager? | Thinking about getting into.net technology project management I've had plenty of experience with PHP projects: I'm aware of most of the existing frameworks and libraries, and I've written specs and case studies based on this knowledge. What should I know about.net? Which top resources would you recommend me to know so ... | Start with the basics before you get to the higher level stuff like web services (though that is important too). The most important things you need to learn, as a project manager, are the things you're going to be questioning your underlings about later. For example, my PM (also a PHP guy) has absolutely no knowledge o... | What are the most important things to learn about .net as a Project Manager? Thinking about getting into.net technology project management I've had plenty of experience with PHP projects: I'm aware of most of the existing frameworks and libraries, and I've written specs and case studies based on this knowledge. What sh... | TITLE:
What are the most important things to learn about .net as a Project Manager?
QUESTION:
Thinking about getting into.net technology project management I've had plenty of experience with PHP projects: I'm aware of most of the existing frameworks and libraries, and I've written specs and case studies based on this ... | [
".net",
"project-management"
] | 3 | 2 | 2,700 | 5 | 0 | 2008-08-21T14:14:53.287000 | 2008-08-21T14:23:40.753000 |
20,047 | 21,158 | Diagnosing Deadlocks in SQL Server 2005 | We're seeing some pernicious, but rare, deadlock conditions in the Stack Overflow SQL Server 2005 database. I attached the profiler, set up a trace profile using this excellent article on troubleshooting deadlocks, and captured a bunch of examples. The weird thing is that the deadlocking write is always the same: UPDAT... | According to MSDN: http://msdn.microsoft.com/en-us/library/ms191242.aspx When either the READ COMMITTED SNAPSHOT or ALLOW SNAPSHOT ISOLATION database options are ON, logical copies (versions) are maintained for all data modifications performed in the database. Every time a row is modified by a specific transaction, the... | Diagnosing Deadlocks in SQL Server 2005 We're seeing some pernicious, but rare, deadlock conditions in the Stack Overflow SQL Server 2005 database. I attached the profiler, set up a trace profile using this excellent article on troubleshooting deadlocks, and captured a bunch of examples. The weird thing is that the dea... | TITLE:
Diagnosing Deadlocks in SQL Server 2005
QUESTION:
We're seeing some pernicious, but rare, deadlock conditions in the Stack Overflow SQL Server 2005 database. I attached the profiler, set up a trace profile using this excellent article on troubleshooting deadlocks, and captured a bunch of examples. The weird thi... | [
"sql-server",
"sql-server-2005",
"deadlock"
] | 82 | 44 | 29,597 | 22 | 0 | 2008-08-21T14:18:41.640000 | 2008-08-21T20:53:51.283000 |
20,054 | 20,072 | Any tips on getting Rails to run with an Access back-end? | I shudder to ask, but my client might offer no other SQL (or SQL-like) solution. I know Access has some SQL hooks; are they enough for basic ActiveRecord? Later: I appreciate all the suggestions to use other databases, but trust me: I've tried convincing them. There is an "approved" list, and no SQL databases are on it... | It's a long shot but there's an ODBC adapter for ActiveRecord that might work. | Any tips on getting Rails to run with an Access back-end? I shudder to ask, but my client might offer no other SQL (or SQL-like) solution. I know Access has some SQL hooks; are they enough for basic ActiveRecord? Later: I appreciate all the suggestions to use other databases, but trust me: I've tried convincing them. T... | TITLE:
Any tips on getting Rails to run with an Access back-end?
QUESTION:
I shudder to ask, but my client might offer no other SQL (or SQL-like) solution. I know Access has some SQL hooks; are they enough for basic ActiveRecord? Later: I appreciate all the suggestions to use other databases, but trust me: I've tried ... | [
"ruby-on-rails",
"ruby",
"ms-access",
"activerecord"
] | 5 | 3 | 2,370 | 7 | 0 | 2008-08-21T14:21:55.687000 | 2008-08-21T14:27:24.880000 |
20,059 | 20,132 | Suggestions on starting a child programming | What languages and tools do you consider a youngster starting out in programming should use in the modern era? Lots of us started with proprietary Basics and they didn't do all of us long term harm:) but given the experiences you have had since then and your knowledge of the domain now are there better options? There a... | I would suggest LEGO Mindstorm, it provides an intuitive drag and drop interface for programming and because it comes with hardware it provides something tangible for a child to grasp. Also, because it is "LEGO" they might think of it as more of a game then a programming exercise. | Suggestions on starting a child programming What languages and tools do you consider a youngster starting out in programming should use in the modern era? Lots of us started with proprietary Basics and they didn't do all of us long term harm:) but given the experiences you have had since then and your knowledge of the ... | TITLE:
Suggestions on starting a child programming
QUESTION:
What languages and tools do you consider a youngster starting out in programming should use in the modern era? Lots of us started with proprietary Basics and they didn't do all of us long term harm:) but given the experiences you have had since then and your... | [
"language-agnostic",
"children"
] | 45 | 43 | 8,720 | 46 | 0 | 2008-08-21T14:23:53.483000 | 2008-08-21T14:43:13.670000 |
20,061 | 20,130 | Store data from a C# application | I've recently taken up learning some C# and wrote a Yahtzee clone. My next step (now that the game logic is in place and functioning correctly) is to integrate some method of keeping stats across all the games played. My question is this, how should I go about storing this information? My first thought would be to use ... | Here is one idea: use Xml Serialization. Design your GameStats data structure and optionally use Xml attributes to influence the schema as you like. I like to use this method for small data sets because its quick and easy and all I need to do is design and manipulate the data structure. using (FileStream fs = new FileS... | Store data from a C# application I've recently taken up learning some C# and wrote a Yahtzee clone. My next step (now that the game logic is in place and functioning correctly) is to integrate some method of keeping stats across all the games played. My question is this, how should I go about storing this information? ... | TITLE:
Store data from a C# application
QUESTION:
I've recently taken up learning some C# and wrote a Yahtzee clone. My next step (now that the game logic is in place and functioning correctly) is to integrate some method of keeping stats across all the games played. My question is this, how should I go about storing ... | [
"c#",
".net"
] | 16 | 17 | 9,509 | 9 | 0 | 2008-08-21T14:24:25.120000 | 2008-08-21T14:42:36.560000 |
20,063 | 26,910 | What's the best way to parse command line arguments? | What's the easiest, tersest, and most flexible method or library for parsing Python command line arguments? | This answer suggests optparse which is appropriate for older Python versions. For Python 2.7 and above, argparse replaces optparse. See this answer for more information. As other people pointed out, you are better off going with optparse over getopt. getopt is pretty much a one-to-one mapping of the standard getopt(3) ... | What's the best way to parse command line arguments? What's the easiest, tersest, and most flexible method or library for parsing Python command line arguments? | TITLE:
What's the best way to parse command line arguments?
QUESTION:
What's the easiest, tersest, and most flexible method or library for parsing Python command line arguments?
ANSWER:
This answer suggests optparse which is appropriate for older Python versions. For Python 2.7 and above, argparse replaces optparse. ... | [
"python",
"command-line",
"command-line-arguments"
] | 360 | 211 | 374,143 | 15 | 0 | 2008-08-21T14:24:41.530000 | 2008-08-25T21:11:03.567000 |
20,081 | 97,091 | Best way to encapsulate complex Oracle PL/SQL cursor logic as a view? | I've written PL/SQL code to denormalize a table into a much-easer-to-query form. The code uses a temporary table to do some of its work, merging some rows from the original table together. The logic is written as a pipelined table function, following the pattern from the linked article. The table function uses a PRAGMA... | I think a way to approach this is to use analytic functions... I set up your test case using: create table employee_job ( emp_id integer, job_id integer, status varchar2(1 char), eff_date date );
insert into employee_job values (1,10,'A',to_date('10-JAN-2008','DD-MON-YYYY')); insert into employee_job values (2,11,'A',... | Best way to encapsulate complex Oracle PL/SQL cursor logic as a view? I've written PL/SQL code to denormalize a table into a much-easer-to-query form. The code uses a temporary table to do some of its work, merging some rows from the original table together. The logic is written as a pipelined table function, following... | TITLE:
Best way to encapsulate complex Oracle PL/SQL cursor logic as a view?
QUESTION:
I've written PL/SQL code to denormalize a table into a much-easer-to-query form. The code uses a temporary table to do some of its work, merging some rows from the original table together. The logic is written as a pipelined table f... | [
"sql",
"oracle",
"plsql"
] | 4 | 4 | 6,463 | 6 | 0 | 2008-08-21T14:29:48.773000 | 2008-09-18T21:19:12.863000 |
20,084 | 985,495 | XML Serialization and Inherited Types | Following on from my previous question I have been working on getting my object model to serialize to XML. But I have now run into a problem (quelle surprise!). The problem I have is that I have a collection, which is of a abstract base class type, which is populated by the concrete derived types. I thought it would be... | Problem Solved! OK, so I finally got there (admittedly with a lot of help from here!). So summarise: Goals: I didn't want to go down the XmlInclude route due to the maintenence headache. Once a solution was found, I wanted it to be quick to implement in other applications. Collections of Abstract types may be used, as ... | XML Serialization and Inherited Types Following on from my previous question I have been working on getting my object model to serialize to XML. But I have now run into a problem (quelle surprise!). The problem I have is that I have a collection, which is of a abstract base class type, which is populated by the concret... | TITLE:
XML Serialization and Inherited Types
QUESTION:
Following on from my previous question I have been working on getting my object model to serialize to XML. But I have now run into a problem (quelle surprise!). The problem I have is that I have a collection, which is of a abstract base class type, which is popula... | [
"c#",
"xml",
"inheritance",
"serialization",
"xml-serialization"
] | 86 | 57 | 58,582 | 7 | 0 | 2008-08-21T14:30:53.497000 | 2009-06-12T07:42:23.883000 |
20,088 | 20,114 | Is there a way to make Firefox ignore invalid ssl-certificates? | I am maintaining a few web applications. The development and qa environments use invalid/outdated ssl-certificates. Although it is generally a good thing, that Firefox makes me click like a dozen times to accept the certificate, this is pretty annoying. Is there a configuration-parameter to make Firefox (and possibly I... | Go to Tools > Options > Advanced "Tab"(?) > Encryption Tab Click the "Validation" button, and uncheck the checkbox for checking validity Be advised though that this is pretty unsecure as it leaves you wide open to accept any invalid certificate. I'd only do this if using the browser on an Intranet where the validity of... | Is there a way to make Firefox ignore invalid ssl-certificates? I am maintaining a few web applications. The development and qa environments use invalid/outdated ssl-certificates. Although it is generally a good thing, that Firefox makes me click like a dozen times to accept the certificate, this is pretty annoying. Is... | TITLE:
Is there a way to make Firefox ignore invalid ssl-certificates?
QUESTION:
I am maintaining a few web applications. The development and qa environments use invalid/outdated ssl-certificates. Although it is generally a good thing, that Firefox makes me click like a dozen times to accept the certificate, this is p... | [
"debugging",
"ssl",
"firefox",
"ssl-certificate",
"web-development-server"
] | 126 | 26 | 347,383 | 10 | 0 | 2008-08-21T14:31:50.063000 | 2008-08-21T14:37:43.293000 |
20,107 | 20,118 | YUI Reset CSS Makes <strong><em>this not work</em></strong> | This line in YUI's Reset CSS is causing trouble for me: address,caption,cite,code,dfn,em,strong,th,var { font-style: normal; font-weight: normal; } It makes my em not italic and my strong not bold. Which is okay. I know how to override that in my own stylesheet. strong, b { font-weight: bold; }
em, i { font-style: ita... | If your strong declaration comes after YUI's yours should override it. You can force it like this: strong, b, strong *, b * { font-weight: bold; } em, i, em *, i * { font-style: italic; } If you still support IE7 you'll need to add!important. strong, b, strong *, b * { font-weight: bold!important; } em, i, em *, i * { ... | YUI Reset CSS Makes <strong><em>this not work</em></strong> This line in YUI's Reset CSS is causing trouble for me: address,caption,cite,code,dfn,em,strong,th,var { font-style: normal; font-weight: normal; } It makes my em not italic and my strong not bold. Which is okay. I know how to override that in my own styleshee... | TITLE:
YUI Reset CSS Makes <strong><em>this not work</em></strong>
QUESTION:
This line in YUI's Reset CSS is causing trouble for me: address,caption,cite,code,dfn,em,strong,th,var { font-style: normal; font-weight: normal; } It makes my em not italic and my strong not bold. Which is okay. I know how to override that i... | [
"css",
"yui"
] | 12 | 19 | 11,655 | 10 | 0 | 2008-08-21T14:36:41.097000 | 2008-08-21T14:39:10.810000 |
20,127 | 20,870 | Virtual Machine Optimization | I am messing around with a toy interpreter in Java and I was considering trying to write a simple compiler that can generate bytecode for the Java Virtual Machine. Which got me thinking, how much optimization needs to be done by compilers that target virtual machines such as JVM and CLI? Do Just In Time (JIT) compilers... | I'm just gonna add two links which explain Java's bytecode pretty well and some of the various optimization of the JVM during runtime. | Virtual Machine Optimization I am messing around with a toy interpreter in Java and I was considering trying to write a simple compiler that can generate bytecode for the Java Virtual Machine. Which got me thinking, how much optimization needs to be done by compilers that target virtual machines such as JVM and CLI? Do... | TITLE:
Virtual Machine Optimization
QUESTION:
I am messing around with a toy interpreter in Java and I was considering trying to write a simple compiler that can generate bytecode for the Java Virtual Machine. Which got me thinking, how much optimization needs to be done by compilers that target virtual machines such ... | [
"java",
"jvm",
"jit",
"cil"
] | 12 | 6 | 4,148 | 7 | 0 | 2008-08-21T14:41:31.023000 | 2008-08-21T19:22:21.300000 |
20,156 | 20,175 | Is there an easy way to create ordinals in C#? | Is there an easy way in C# to create Ordinals for a number? For example: 1 returns 1st 2 returns 2nd 3 returns 3rd...etc Can this be done through String.Format() or are there any functions available to do this? | This page gives you a complete listing of all custom numerical formatting rules: Custom numeric format strings As you can see, there is nothing in there about ordinals, so it can't be done using String.Format. However its not really that hard to write a function to do it. public static string AddOrdinal(int num) { if( ... | Is there an easy way to create ordinals in C#? Is there an easy way in C# to create Ordinals for a number? For example: 1 returns 1st 2 returns 2nd 3 returns 3rd...etc Can this be done through String.Format() or are there any functions available to do this? | TITLE:
Is there an easy way to create ordinals in C#?
QUESTION:
Is there an easy way in C# to create Ordinals for a number? For example: 1 returns 1st 2 returns 2nd 3 returns 3rd...etc Can this be done through String.Format() or are there any functions available to do this?
ANSWER:
This page gives you a complete list... | [
"c#",
".net",
"ordinals"
] | 231 | 352 | 70,767 | 23 | 0 | 2008-08-21T14:55:48.947000 | 2008-08-21T15:03:47.973000 |
20,168 | 20,181 | C# application detected as a virus | Regarding the same program as my question a few minutes ago... I added a setup project and built an MSI for the program (just to see if I could figure it out) and it works great except for one thing. When I tried to install it on my parent's laptop, their antivirus (the free Avast Home Edition) set off an alarm and acc... | Indeed, boot from a clean CD (use a known good machine to build BartPE or something similar) and scan your machine thoroughly. Another good thing to check, though, would be exactly which virus Avast! thinks your program is. Once you know that, you should be able to look it up in one of the virus databases and insure th... | C# application detected as a virus Regarding the same program as my question a few minutes ago... I added a setup project and built an MSI for the program (just to see if I could figure it out) and it works great except for one thing. When I tried to install it on my parent's laptop, their antivirus (the free Avast Hom... | TITLE:
C# application detected as a virus
QUESTION:
Regarding the same program as my question a few minutes ago... I added a setup project and built an MSI for the program (just to see if I could figure it out) and it works great except for one thing. When I tried to install it on my parent's laptop, their antivirus (... | [
"c#",
".net",
"antivirus"
] | 3 | 3 | 5,849 | 5 | 0 | 2008-08-21T14:59:48.157000 | 2008-08-21T15:10:33.777000 |
20,173 | 20,178 | MSTest and NHibernate | Does anyone have any experience getting MSTest to copy hibernate.cfg.xml properly to the output directory? All my MSTests fail with a cannot find hibernate.cfg.xml error (I have it set to Copy Always), but my MBUnit tests pass. | You can try adding the DeploymentItemAttribute to one of your tests, or edit your.testrunconfig file and add the file to the Deployment list. | MSTest and NHibernate Does anyone have any experience getting MSTest to copy hibernate.cfg.xml properly to the output directory? All my MSTests fail with a cannot find hibernate.cfg.xml error (I have it set to Copy Always), but my MBUnit tests pass. | TITLE:
MSTest and NHibernate
QUESTION:
Does anyone have any experience getting MSTest to copy hibernate.cfg.xml properly to the output directory? All my MSTests fail with a cannot find hibernate.cfg.xml error (I have it set to Copy Always), but my MBUnit tests pass.
ANSWER:
You can try adding the DeploymentItemAttrib... | [
"nhibernate",
"mstest",
"mbunit"
] | 7 | 12 | 2,129 | 5 | 0 | 2008-08-21T15:02:53.110000 | 2008-08-21T15:07:13.223000 |
20,185 | 20,200 | Is there a way to make a constructor only visible to a parent class in C#? | I have a collection of classes that inherit from an abstract class I created. I'd like to use the abstract class as a factory for creating instances of concrete implementations of my abstract class. Is there any way to hide a constructor from all code except a parent class. I'd like to do this basically public abstract... | You can make the sub classes child classes, something like this: public abstract class AbstractClass { public static AbstractClass MakeAbstractClass(string args) { if (args == "a") return new ConcreteClassA(); if (args == "b") return new ConcreteClassB(); }
private class ConcreteClassA: AbstractClass { }
private clas... | Is there a way to make a constructor only visible to a parent class in C#? I have a collection of classes that inherit from an abstract class I created. I'd like to use the abstract class as a factory for creating instances of concrete implementations of my abstract class. Is there any way to hide a constructor from al... | TITLE:
Is there a way to make a constructor only visible to a parent class in C#?
QUESTION:
I have a collection of classes that inherit from an abstract class I created. I'd like to use the abstract class as a factory for creating instances of concrete implementations of my abstract class. Is there any way to hide a c... | [
"c#",
"inheritance",
"oop"
] | 5 | 2 | 1,677 | 9 | 0 | 2008-08-21T15:12:48.063000 | 2008-08-21T15:15:20.647000 |
20,198 | 20,219 | How does the ASP.NET "Yellow Screen of Death" display code? | I thought.Net code gets compiled into MSIL, so I always wondered how do Yellow Screens produce the faulty code. If it's executing the compiled code, how is the compiler able to produce code from the source files in the error message? Feel free to edit this question/title, I know it doesn't really make sense. | A.Net assembly is compiled with metadata about the bytecode included that allows easy decompilation of the code - that's how tools like.Net Reflector work. The PDB files are debug symbols only - the difference in the Yellow Screen Of Death is that you'll get line numbers in the stack trace. In other words, you'd get th... | How does the ASP.NET "Yellow Screen of Death" display code? I thought.Net code gets compiled into MSIL, so I always wondered how do Yellow Screens produce the faulty code. If it's executing the compiled code, how is the compiler able to produce code from the source files in the error message? Feel free to edit this que... | TITLE:
How does the ASP.NET "Yellow Screen of Death" display code?
QUESTION:
I thought.Net code gets compiled into MSIL, so I always wondered how do Yellow Screens produce the faulty code. If it's executing the compiled code, how is the compiler able to produce code from the source files in the error message? Feel fre... | [
".net",
"asp.net",
"yellow-screen-of-death"
] | 13 | 9 | 3,358 | 5 | 0 | 2008-08-21T15:14:44.827000 | 2008-08-21T15:21:08.213000 |
20,207 | 20,243 | Does the Microsoft Report Viewer Redistributable 2008 really require .NET Framework version 3.5? | I'm packaging up a.NET 2.0 based web app for deployment through a Windows Installer based package. Our app uses Report Viewer 2008 and I'm including the Microsoft Report Viewer Redistributable 2008 installer. When I check the download page for Report Viewer 2008, it lists.NET 3.5 as a requirement. Is having.Net 3.5 ins... | So far testing with or with out the.NET Framework works as expected. My installer has the user install version 2.0 of the Framework and everything works as expected. My concern is that 3.5 is listed as a prerequisite on the Report Viewer download page. | Does the Microsoft Report Viewer Redistributable 2008 really require .NET Framework version 3.5? I'm packaging up a.NET 2.0 based web app for deployment through a Windows Installer based package. Our app uses Report Viewer 2008 and I'm including the Microsoft Report Viewer Redistributable 2008 installer. When I check t... | TITLE:
Does the Microsoft Report Viewer Redistributable 2008 really require .NET Framework version 3.5?
QUESTION:
I'm packaging up a.NET 2.0 based web app for deployment through a Windows Installer based package. Our app uses Report Viewer 2008 and I'm including the Microsoft Report Viewer Redistributable 2008 install... | [
".net-3.5",
"reportviewer",
"web-deployment-project",
"reportviewer2008"
] | 3 | 0 | 6,542 | 5 | 0 | 2008-08-21T15:16:53.513000 | 2008-08-21T15:29:42.640000 |
20,227 | 20,670 | How do I use 3DES encryption/decryption in Java? | Every method I write to encode a string in Java using 3DES can't be decrypted back to the original string. Does anyone have a simple code snippet that can just encode and then decode the string back to the original string? I know I'm making a very silly mistake somewhere in this code. Here's what I've been working with... | Your code was fine except for the Base 64 encoding bit (which you mentioned was a test), the reason the output may not have made sense is that you were displaying a raw byte array (doing toString() on a byte array returns its internal Java reference, not the String representation of the contents ). Here's a version tha... | How do I use 3DES encryption/decryption in Java? Every method I write to encode a string in Java using 3DES can't be decrypted back to the original string. Does anyone have a simple code snippet that can just encode and then decode the string back to the original string? I know I'm making a very silly mistake somewhere... | TITLE:
How do I use 3DES encryption/decryption in Java?
QUESTION:
Every method I write to encode a string in Java using 3DES can't be decrypted back to the original string. Does anyone have a simple code snippet that can just encode and then decode the string back to the original string? I know I'm making a very silly... | [
"java",
"encryption",
"3des"
] | 77 | 73 | 199,316 | 6 | 0 | 2008-08-21T15:25:22.540000 | 2008-08-21T17:59:50.767000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.