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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
192,888 | 192,904 | .hide(), .show(), tables, and IE | I have some nested tables that I want to hide/show upon a click on one of the top-level rows. The markup is, in a nutshell, this: stuff.... more tds here Now, I'm using some jQuery to target a link in the first table row. When that link is clicked, it pulls some data down, formats it as a bunch of table rows, and appen... | Keep in mind that the innerHTML of a element is read-only in IE(6 for sure, not sure about 7). That being the case, are you explicitly adding a element? If not, try adding one and adding the rows to the body element rather than the table element. Microsoft info (sort-of) about this: PRB: Error Setting table.innerHTML i... | .hide(), .show(), tables, and IE I have some nested tables that I want to hide/show upon a click on one of the top-level rows. The markup is, in a nutshell, this: stuff.... more tds here Now, I'm using some jQuery to target a link in the first table row. When that link is clicked, it pulls some data down, formats it as... | TITLE:
.hide(), .show(), tables, and IE
QUESTION:
I have some nested tables that I want to hide/show upon a click on one of the top-level rows. The markup is, in a nutshell, this: stuff.... more tds here Now, I'm using some jQuery to target a link in the first table row. When that link is clicked, it pulls some data d... | [
"jquery",
"internet-explorer"
] | 4 | 6 | 1,497 | 2 | 0 | 2008-10-10T20:14:23.227000 | 2008-10-10T20:21:38.783000 |
192,900 | 192,967 | Wait cursor over entire html page | Is it possible to set the cursor to 'wait' on the entire html page in a simple way? The idea is to show the user that something is going on while an ajax call is being completed. The code below shows a simplified version of what I tried and also demonstrate the problems I run into: if an element (#id1) has a cursor sty... | I understand you may not have control over this, but you might instead go for a "masking" div that covers the entire body with a z-index higher than 1. The center part of the div could contain a loading message if you like. Then, you can set the cursor to wait on the div and don't have to worry about links as they are ... | Wait cursor over entire html page Is it possible to set the cursor to 'wait' on the entire html page in a simple way? The idea is to show the user that something is going on while an ajax call is being completed. The code below shows a simplified version of what I tried and also demonstrate the problems I run into: if ... | TITLE:
Wait cursor over entire html page
QUESTION:
Is it possible to set the cursor to 'wait' on the entire html page in a simple way? The idea is to show the user that something is going on while an ajax call is being completed. The code below shows a simplified version of what I tried and also demonstrate the proble... | [
"javascript",
"html",
"css",
"dynamic-css"
] | 100 | 35 | 100,309 | 16 | 0 | 2008-10-10T20:18:47.337000 | 2008-10-10T20:46:08.467000 |
192,902 | 197,773 | Software to Administrate Network Connections | I need a software to admin my networks connections, I go to diferents clients with my notebook and I have to manually change my settings. Best software to do this? Windows and Mac, I use a MacBook with Vmware Fusion. | Go to the Network tab in your system preferences and create a new "location" for every network that doesn't work with the default "automatic" profile. That should help for most situations. For some special networks, try to fiddle with particular settings in the corresponding location's settings. HTH - at least for the ... | Software to Administrate Network Connections I need a software to admin my networks connections, I go to diferents clients with my notebook and I have to manually change my settings. Best software to do this? Windows and Mac, I use a MacBook with Vmware Fusion. | TITLE:
Software to Administrate Network Connections
QUESTION:
I need a software to admin my networks connections, I go to diferents clients with my notebook and I have to manually change my settings. Best software to do this? Windows and Mac, I use a MacBook with Vmware Fusion.
ANSWER:
Go to the Network tab in your s... | [
"windows",
"networking"
] | 0 | 1 | 155 | 1 | 0 | 2008-10-10T20:20:04.167000 | 2008-10-13T14:30:37.587000 |
192,907 | 194,248 | XML parsing - ElementTree vs SAX and DOM | Python has several ways to parse XML... I understand the very basics of parsing with SAX. It functions as a stream parser, with an event-driven API. I understand the DOM parser also. It reads the XML into memory and converts it to objects that can be accessed with Python. Generally speaking, it was easy to choose betwe... | ElementTree is much easier to use, because it represents an XML tree (basically) as a structure of lists, and attributes are represented as dictionaries. ElementTree needs much less memory for XML trees than DOM (and thus is faster), and the parsing overhead via iterparse is comparable to SAX. Additionally, iterparse r... | XML parsing - ElementTree vs SAX and DOM Python has several ways to parse XML... I understand the very basics of parsing with SAX. It functions as a stream parser, with an event-driven API. I understand the DOM parser also. It reads the XML into memory and converts it to objects that can be accessed with Python. Genera... | TITLE:
XML parsing - ElementTree vs SAX and DOM
QUESTION:
Python has several ways to parse XML... I understand the very basics of parsing with SAX. It functions as a stream parser, with an event-driven API. I understand the DOM parser also. It reads the XML into memory and converts it to objects that can be accessed w... | [
"python",
"xml",
"dom",
"sax",
"elementtree"
] | 90 | 84 | 35,752 | 4 | 0 | 2008-10-10T20:22:24.553000 | 2008-10-11T16:02:41.003000 |
192,915 | 192,965 | Best way to replace a whole directory tree in Subversion? | Within my Subversion project I have a few directories that contain other open source projects that my code needs. For example ffmpeg, freetype, matrixssl and a few others. What is the best way to update SVN to hold the the latest version of one of these projects? Essentially I will be doing the following (using ffmpeg ... | You can take a look to svnbook talking about vendor branches. This is exactly what you try to accomplish You can use svn_load_dirs.pl to replace your manual steps 1-5. svn_load_dirs.pl will also keep track of new, moved or deleted files. | Best way to replace a whole directory tree in Subversion? Within my Subversion project I have a few directories that contain other open source projects that my code needs. For example ffmpeg, freetype, matrixssl and a few others. What is the best way to update SVN to hold the the latest version of one of these projects... | TITLE:
Best way to replace a whole directory tree in Subversion?
QUESTION:
Within my Subversion project I have a few directories that contain other open source projects that my code needs. For example ffmpeg, freetype, matrixssl and a few others. What is the best way to update SVN to hold the the latest version of one... | [
"svn",
"replace",
"directory"
] | 11 | 11 | 13,910 | 5 | 0 | 2008-10-10T20:26:05.497000 | 2008-10-10T20:45:36.877000 |
192,920 | 192,928 | Generating a globally unique identifier in Java | Summary: I'm developing a persistent Java web application, and I need to make sure that all resources I persist have globally unique identifiers to prevent duplicates. The Fine Print: I'm not using an RDBMS, so I don't have any fancy sequence generators (such as the one provided by Oracle) I'd like it to be fast, prefe... | Pretty sure UUIDs are "good enough". There are 340,282,366,920,938,463,463,374,607,431,770,000,000 UUIDs available. http://www.wilybeagle.com/guid_store/guid_explain.htm "To put these numbers into perspective, one's annual risk of being hit by a meteorite is estimated to be one chance in 17 billion, that means the prob... | Generating a globally unique identifier in Java Summary: I'm developing a persistent Java web application, and I need to make sure that all resources I persist have globally unique identifiers to prevent duplicates. The Fine Print: I'm not using an RDBMS, so I don't have any fancy sequence generators (such as the one p... | TITLE:
Generating a globally unique identifier in Java
QUESTION:
Summary: I'm developing a persistent Java web application, and I need to make sure that all resources I persist have globally unique identifiers to prevent duplicates. The Fine Print: I'm not using an RDBMS, so I don't have any fancy sequence generators ... | [
"java",
"persistence",
"uuid",
"uniqueidentifier"
] | 13 | 33 | 28,167 | 6 | 0 | 2008-10-10T20:27:59.847000 | 2008-10-10T20:32:29.807000 |
192,924 | 192,933 | SQL distinct for 2 fields in a database | Can you get the distinct combination of 2 different fields in a database table? if so, can you provide the SQL example. | How about simply: select distinct c1, c2 from t or select c1, c2, count(*) from t group by c1, c2 | SQL distinct for 2 fields in a database Can you get the distinct combination of 2 different fields in a database table? if so, can you provide the SQL example. | TITLE:
SQL distinct for 2 fields in a database
QUESTION:
Can you get the distinct combination of 2 different fields in a database table? if so, can you provide the SQL example.
ANSWER:
How about simply: select distinct c1, c2 from t or select c1, c2, count(*) from t group by c1, c2 | [
"sql",
"distinct"
] | 87 | 132 | 175,046 | 5 | 0 | 2008-10-10T20:31:12.367000 | 2008-10-10T20:33:58.617000 |
192,938 | 192,955 | How to programmatically update the Outlook contact name resolution order | When in Outlook 2003, open the Address Book, select Tools->Options. You get the address dialog showing the option "When sending mail, check names using these address lists in the following order:" For most people, this will contain only "Contacts". For corporate networks, it'll probably also contain "Global Address Lis... | I have done this for a company in the past. It was a.NET application, that ran on every PC and reordered this listing. This is where you need to start: http://msdn.microsoft.com/en-us/library/bb820991.aspx | How to programmatically update the Outlook contact name resolution order When in Outlook 2003, open the Address Book, select Tools->Options. You get the address dialog showing the option "When sending mail, check names using these address lists in the following order:" For most people, this will contain only "Contacts"... | TITLE:
How to programmatically update the Outlook contact name resolution order
QUESTION:
When in Outlook 2003, open the Address Book, select Tools->Options. You get the address dialog showing the option "When sending mail, check names using these address lists in the following order:" For most people, this will conta... | [
"outlook",
"registry",
"exchange-server"
] | 1 | 3 | 2,851 | 3 | 0 | 2008-10-10T20:35:07.867000 | 2008-10-10T20:41:46.417000 |
192,940 | 192,979 | Storing PCRE compiled regexes in C/C++ | Is there an efficient way to store the compiled regexes (compiled via regcomp(), PCRE) in a binary file, so that later I can just read from the file and call regexec()? Or is it just a matter of dumping the compiled regex_t structs to the file and reading them back when needed? | Unless you have a super-complex regex, I hardly see an advantage of serializing the compiled regex, the compilation time shouldn't be that big. Unless you are on a super-tight embed system? In any case, indeed dumping the structure might be a solution, at least you can try... [EDIT] I just looked at the source I have (... | Storing PCRE compiled regexes in C/C++ Is there an efficient way to store the compiled regexes (compiled via regcomp(), PCRE) in a binary file, so that later I can just read from the file and call regexec()? Or is it just a matter of dumping the compiled regex_t structs to the file and reading them back when needed? | TITLE:
Storing PCRE compiled regexes in C/C++
QUESTION:
Is there an efficient way to store the compiled regexes (compiled via regcomp(), PCRE) in a binary file, so that later I can just read from the file and call regexec()? Or is it just a matter of dumping the compiled regex_t structs to the file and reading them ba... | [
"c++",
"c",
"regex",
"pcre"
] | 4 | 4 | 914 | 1 | 0 | 2008-10-10T20:35:24.543000 | 2008-10-10T20:51:50.360000 |
192,942 | 192,956 | What is a good way to output an asp.net, C# GridView into a PDF | I tried using the Microsoft ReportingControls but found them overly cumbersome, with too little documentation. I'd like a simple control that would convert a GridView control into a PDF document. I've started looking into PDFSHarp and am running into dead ends with documentation. Same thing with iTextSharp. I'm willing... | You could iterate over the data in your gridview and write it to a PDF table using iTextSharp. Have a look here: http://www.codeproject.com/KB/cs/iTextSharpPdfTables.aspx I also recommend getting the book iText In Action. | What is a good way to output an asp.net, C# GridView into a PDF I tried using the Microsoft ReportingControls but found them overly cumbersome, with too little documentation. I'd like a simple control that would convert a GridView control into a PDF document. I've started looking into PDFSHarp and am running into dead ... | TITLE:
What is a good way to output an asp.net, C# GridView into a PDF
QUESTION:
I tried using the Microsoft ReportingControls but found them overly cumbersome, with too little documentation. I'd like a simple control that would convert a GridView control into a PDF document. I've started looking into PDFSHarp and am ... | [
"c#",
"asp.net",
"pdf",
"gridview"
] | 0 | 1 | 1,915 | 2 | 0 | 2008-10-10T20:36:07.943000 | 2008-10-10T20:41:50.177000 |
192,944 | 193,171 | What's the best way to validate a user-entered URL in a Cocoa application? | I am trying to build a homebrew web brower to get more proficient at Cocoa. I need a good way to validate whether the user has entered a valid URL. I have tried some regular expressions but NSString has some interesting quirks and doesn't like some of the back-quoting that most regular expressions I've seen use. | You could start with the + (id)URLWithString:(NSString *)URLString method of NSURL, which returns nil if the string is malformed. If you need further validation, you can use the baseURL, host, parameterString, path, etc methods to give you particular components of the URL, which you can then evaluate in whatever way yo... | What's the best way to validate a user-entered URL in a Cocoa application? I am trying to build a homebrew web brower to get more proficient at Cocoa. I need a good way to validate whether the user has entered a valid URL. I have tried some regular expressions but NSString has some interesting quirks and doesn't like s... | TITLE:
What's the best way to validate a user-entered URL in a Cocoa application?
QUESTION:
I am trying to build a homebrew web brower to get more proficient at Cocoa. I need a good way to validate whether the user has entered a valid URL. I have tried some regular expressions but NSString has some interesting quirks ... | [
"regex",
"cocoa",
"validation",
"url"
] | 4 | 5 | 3,509 | 2 | 0 | 2008-10-10T20:36:20.377000 | 2008-10-10T21:57:35.063000 |
192,951 | 192,983 | Pushing pixels on the iPhone | What's the fastest way to get a framebuffer and render to in software on the iPhone? Basically getting into a mode 13h style thing going so I can make some effects?:) | You need to create a CGImageContext, in a bitmap format that you can directly manipulate. Then, you can draw that image on the screen, use it as a GL texture, or whatever. Pretty simple stuff - check the Core Graphics documentation. I don't think there's a good way to get actual raw frameBuffer access, but that's proba... | Pushing pixels on the iPhone What's the fastest way to get a framebuffer and render to in software on the iPhone? Basically getting into a mode 13h style thing going so I can make some effects?:) | TITLE:
Pushing pixels on the iPhone
QUESTION:
What's the fastest way to get a framebuffer and render to in software on the iPhone? Basically getting into a mode 13h style thing going so I can make some effects?:)
ANSWER:
You need to create a CGImageContext, in a bitmap format that you can directly manipulate. Then, y... | [
"iphone",
"framebuffer",
"pixel",
"demo-effects"
] | 2 | 4 | 1,057 | 2 | 0 | 2008-10-10T20:39:18.373000 | 2008-10-10T20:52:49.173000 |
192,957 | 1,346,398 | Efficiently querying one string against multiple regexes | Lets say that I have 10,000 regexes and one string and I want to find out if the string matches any of them and get all the matches. The trivial way to do it would be to just query the string one by one against all regexes. Is there a faster,more efficient way to do it? EDIT: I have tried substituting it with DFA's (le... | Martin Sulzmann Has done quite a bit of work in this field. He has a HackageDB project explained breifly here which use partial derivatives seems to be tailor made for this. The language used is Haskell and thus will be very hard to translate to a non functional language if that is the desire (I would think translation... | Efficiently querying one string against multiple regexes Lets say that I have 10,000 regexes and one string and I want to find out if the string matches any of them and get all the matches. The trivial way to do it would be to just query the string one by one against all regexes. Is there a faster,more efficient way to... | TITLE:
Efficiently querying one string against multiple regexes
QUESTION:
Lets say that I have 10,000 regexes and one string and I want to find out if the string matches any of them and get all the matches. The trivial way to do it would be to just query the string one by one against all regexes. Is there a faster,mor... | [
"regex",
"algorithm",
"pcre"
] | 55 | 10 | 14,257 | 18 | 0 | 2008-10-10T20:42:16.683000 | 2009-08-28T11:21:44.863000 |
192,960 | 222,270 | TListBox Drag and Drop problems with MultiSelect enabled | I have a TListBox with multiselect and ExtendedSelect both set to true. I need to be able to drag multiple items in the list box to re-arrange them. My problem is what happens when the user clicks on an item that is already selected without holding down the CTRL or SHIFT key. Case 1: DragMode is set to dmManual The sel... | I'm not sure why this makes a difference but if I change the DragObject to be a TDrag Control ObjectEx (instead of a TDragObjectEx) I get the behavior I am looking for. Drag mode is set to Automatic. I tried to look and see what this was affecting but I could not figure it out. | TListBox Drag and Drop problems with MultiSelect enabled I have a TListBox with multiselect and ExtendedSelect both set to true. I need to be able to drag multiple items in the list box to re-arrange them. My problem is what happens when the user clicks on an item that is already selected without holding down the CTRL ... | TITLE:
TListBox Drag and Drop problems with MultiSelect enabled
QUESTION:
I have a TListBox with multiselect and ExtendedSelect both set to true. I need to be able to drag multiple items in the list box to re-arrange them. My problem is what happens when the user clicks on an item that is already selected without hold... | [
"delphi",
"drag-and-drop",
"vcl"
] | 2 | 0 | 3,418 | 4 | 0 | 2008-10-10T20:44:05.603000 | 2008-10-21T15:20:35.983000 |
192,976 | 193,007 | How to simplify (reduce number of points) in KML? | I have a similar problem to this post. I need to display up to 1000 polygons on an embedded Google map. The polygons are in a SQL database, and I can render each one as a single KML file on the fly using a custom HttpHandler (in ASP.NET), like this http://alpha.foresttransparency.org/concession.1.kml. Even on my (very ... | For your second question: you need the Douglas-Peucker Generalization Algorithm | How to simplify (reduce number of points) in KML? I have a similar problem to this post. I need to display up to 1000 polygons on an embedded Google map. The polygons are in a SQL database, and I can render each one as a single KML file on the fly using a custom HttpHandler (in ASP.NET), like this http://alpha.foresttr... | TITLE:
How to simplify (reduce number of points) in KML?
QUESTION:
I have a similar problem to this post. I need to display up to 1000 polygons on an embedded Google map. The polygons are in a SQL database, and I can render each one as a single KML file on the fly using a custom HttpHandler (in ASP.NET), like this htt... | [
"google-maps",
"maps",
"kml"
] | 11 | 13 | 10,279 | 5 | 0 | 2008-10-10T20:49:53.280000 | 2008-10-10T21:02:55.143000 |
192,980 | 193,038 | Boiler plate code replacement - is there anything bad about this code? | I've recently created these two (unrelated) methods to replace lots of boiler-plate code in my winforms application. As far as I can tell, they work ok, but I need some reassurance/advice on whether there are some problems I might be missing. (from memory) static class SafeInvoker { //Utility to avoid boiler-plate Invo... | This is good stuff. Make them extension methods though to clean up your code a little more. For example: //Replaces OnMyEventRaised boiler-plate code //Usage: SafeInvoker.RaiseEvent(this, MyEventRaised) public static void Raise(this EventHandler eventToRaise, object sender) { EventHandler eventHandler = eventToRaise;
... | Boiler plate code replacement - is there anything bad about this code? I've recently created these two (unrelated) methods to replace lots of boiler-plate code in my winforms application. As far as I can tell, they work ok, but I need some reassurance/advice on whether there are some problems I might be missing. (from ... | TITLE:
Boiler plate code replacement - is there anything bad about this code?
QUESTION:
I've recently created these two (unrelated) methods to replace lots of boiler-plate code in my winforms application. As far as I can tell, they work ok, but I need some reassurance/advice on whether there are some problems I might ... | [
"c#",
"coding-style"
] | 18 | 15 | 5,068 | 3 | 0 | 2008-10-10T20:51:50.483000 | 2008-10-10T21:12:14.687000 |
192,993 | 193,626 | Binary Database Aligned or Packed | Is there a way to see, via hex editor or otherwise, if data in a binary file is aligned or packed, specifically for an HPUX system? | If you know what you are looking for and can recognize it in a hex dump, then you can make informed estimates about whether the data is aligned or not, or packed. But in many ways, your question is unanswerable. Where did the data come from? Why can't you ask the person (driving a program, presumably) how it was create... | Binary Database Aligned or Packed Is there a way to see, via hex editor or otherwise, if data in a binary file is aligned or packed, specifically for an HPUX system? | TITLE:
Binary Database Aligned or Packed
QUESTION:
Is there a way to see, via hex editor or otherwise, if data in a binary file is aligned or packed, specifically for an HPUX system?
ANSWER:
If you know what you are looking for and can recognize it in a hex dump, then you can make informed estimates about whether the... | [
"hex",
"alignment"
] | 0 | 1 | 166 | 1 | 0 | 2008-10-10T20:58:02.780000 | 2008-10-11T04:11:26.650000 |
192,997 | 193,023 | .NET webservice using an instance of a parameter type? | I have a Windows forms project and a Web Service project in my solution, and I'm trying to call the web service and return a customer object as the result. The problem is that when I try to receive the return object, I get an error that it can't convert it. For example, here is the signature for my webservice: Public F... | This is actually pretty common. What's happening is that the Web Service has defined in it the definitions of all the types used in the web service. When you add a reference to that web service, it auto-generates a proxy type in a sub namespace of your namespace. That is what is being returned by your web service when ... | .NET webservice using an instance of a parameter type? I have a Windows forms project and a Web Service project in my solution, and I'm trying to call the web service and return a customer object as the result. The problem is that when I try to receive the return object, I get an error that it can't convert it. For exa... | TITLE:
.NET webservice using an instance of a parameter type?
QUESTION:
I have a Windows forms project and a Web Service project in my solution, and I'm trying to call the web service and return a customer object as the result. The problem is that when I try to receive the return object, I get an error that it can't c... | [
"vb.net",
"web-services",
"types",
"proxy-classes"
] | 2 | 2 | 1,562 | 2 | 0 | 2008-10-10T20:59:31.327000 | 2008-10-10T21:08:17.660000 |
193,002 | 197,013 | Capicom 3des: 2 key or 3 key? | Much searching and reading has not told me whether the capicom.encrypteddata class module (it's VB6, but that shouldn't matter in answering this question) is using 2-key 3DES or 3-key 3DES. (.Algorithm.Name = CAPICOM_ENCRYPTION_ALGORITHM_3DES ) Anyone know which one it is using? A source of this information would also ... | CAPICOM is a thin wrapper on top of CryptoAPI. If you decode the output from EncryptedData.Encrypt() you will see something like this (it is ASN.1 encoded in a proprietary format): SEQUENCE { OBJECT IDENTIFIER '1 3 6 1 4 1 311 88 3' [0] { SEQUENCE { OBJECT IDENTIFIER '1 3 6 1 4 1 311 88 3 1' [0] { SEQUENCE { INTEGER 13... | Capicom 3des: 2 key or 3 key? Much searching and reading has not told me whether the capicom.encrypteddata class module (it's VB6, but that shouldn't matter in answering this question) is using 2-key 3DES or 3-key 3DES. (.Algorithm.Name = CAPICOM_ENCRYPTION_ALGORITHM_3DES ) Anyone know which one it is using? A source o... | TITLE:
Capicom 3des: 2 key or 3 key?
QUESTION:
Much searching and reading has not told me whether the capicom.encrypteddata class module (it's VB6, but that shouldn't matter in answering this question) is using 2-key 3DES or 3-key 3DES. (.Algorithm.Name = CAPICOM_ENCRYPTION_ALGORITHM_3DES ) Anyone know which one it is... | [
"winapi",
"encryption",
"capicom"
] | 1 | 2 | 1,407 | 1 | 0 | 2008-10-10T21:01:31.557000 | 2008-10-13T08:31:08.607000 |
193,039 | 193,068 | Set ContentPlaceHolder data through code ASP.NET | Is it possible to set the data in a ContentPlaceHolder through code? This is what I am thinking of: dim oCPH as new ContentPlaceHolder oCPH.id = "column1" 'this id is the one that corresponds with the ID I set on the page oCPH.content = "content here" '<-- not real code Obviously that is not correct syntax, I hope that... | You should be able to reference it through the MasterPage element on the current page. Something like: ContentPlaceHolder cph = (ContentPlaceHolder)Master.FindControl("column1"); If in the MasterPage codebehind, just reference it by name. | Set ContentPlaceHolder data through code ASP.NET Is it possible to set the data in a ContentPlaceHolder through code? This is what I am thinking of: dim oCPH as new ContentPlaceHolder oCPH.id = "column1" 'this id is the one that corresponds with the ID I set on the page oCPH.content = "content here" '<-- not real code ... | TITLE:
Set ContentPlaceHolder data through code ASP.NET
QUESTION:
Is it possible to set the data in a ContentPlaceHolder through code? This is what I am thinking of: dim oCPH as new ContentPlaceHolder oCPH.id = "column1" 'this id is the one that corresponds with the ID I set on the page oCPH.content = "content here" '... | [
"asp.net",
"contentplaceholder"
] | 5 | 6 | 5,806 | 1 | 0 | 2008-10-10T21:12:41.770000 | 2008-10-10T21:20:53.233000 |
193,044 | 193,072 | Does PHP have a DEBUG symbol that can be used in code? | Languages like C and even C# (which technically doesn't have a preprocessor) allow you to write code like: #DEFINE DEBUG...
string returnedStr = this.SomeFoo(); #if DEBUG Debug.WriteLine("returned string =" + returnedStr); #endif This is something I like to use in my code as a form of scaffolding, and I'm wondering if... | PHP doesn't have anything like this. but you could definitely whip up something quickly (and perhaps a regex parse to strip it out later if you wanted). i'd do it as such: define('DEBUG', true);... if (DEBUG): $debug->writeLine("stuff"); endif; of course you'd have to write your own debug module to handle all that. if ... | Does PHP have a DEBUG symbol that can be used in code? Languages like C and even C# (which technically doesn't have a preprocessor) allow you to write code like: #DEFINE DEBUG...
string returnedStr = this.SomeFoo(); #if DEBUG Debug.WriteLine("returned string =" + returnedStr); #endif This is something I like to use in... | TITLE:
Does PHP have a DEBUG symbol that can be used in code?
QUESTION:
Languages like C and even C# (which technically doesn't have a preprocessor) allow you to write code like: #DEFINE DEBUG...
string returnedStr = this.SomeFoo(); #if DEBUG Debug.WriteLine("returned string =" + returnedStr); #endif This is somethin... | [
"php",
"debugging"
] | 6 | 11 | 6,197 | 3 | 0 | 2008-10-10T21:13:43.060000 | 2008-10-10T21:23:46.770000 |
193,073 | 195,250 | Is there an alternative to RawInput in Mac OS X/Linux | I'm developing an application that runs on a machine that has several usb keyboards attached. Occasionally keyboards will added or removed. Each time a key is pressed, the application needs to find out which key was pressed, and which keyboard was used. I have got a working version of the application which uses RawInpu... | On Mac OS X, you can use the HID Manager to get direct visibility into which HID elements are being actuated on which devices. That should work not just for keyboard but for all HID devices — mice, game pads, etc. — though of course you can restrict what your code pays attention to to only specific devices or devices o... | Is there an alternative to RawInput in Mac OS X/Linux I'm developing an application that runs on a machine that has several usb keyboards attached. Occasionally keyboards will added or removed. Each time a key is pressed, the application needs to find out which key was pressed, and which keyboard was used. I have got a... | TITLE:
Is there an alternative to RawInput in Mac OS X/Linux
QUESTION:
I'm developing an application that runs on a machine that has several usb keyboards attached. Occasionally keyboards will added or removed. Each time a key is pressed, the application needs to find out which key was pressed, and which keyboard was ... | [
"macos"
] | 2 | 3 | 2,011 | 1 | 0 | 2008-10-10T21:24:14.897000 | 2008-10-12T08:57:32.877000 |
193,080 | 193,120 | HOWTO: specify in app.config to call a function before Main() is called? | I really want to put in some sort of section handler into App.config that will execute some code before the application actually starts executing at Main. Is there any way to do such a thing? | Why dont you put that call as the first instruction in your main function? Otherwise you can define another entry point for your program and call your main from there but its basicaly the same | HOWTO: specify in app.config to call a function before Main() is called? I really want to put in some sort of section handler into App.config that will execute some code before the application actually starts executing at Main. Is there any way to do such a thing? | TITLE:
HOWTO: specify in app.config to call a function before Main() is called?
QUESTION:
I really want to put in some sort of section handler into App.config that will execute some code before the application actually starts executing at Main. Is there any way to do such a thing?
ANSWER:
Why dont you put that call a... | [
".net",
"app-config",
"startup"
] | 1 | 1 | 414 | 2 | 0 | 2008-10-10T21:27:57.200000 | 2008-10-10T21:39:35.240000 |
193,089 | 193,159 | What is your favorite source formatting tool? | We all know that deadlines and/or critical bugfixes and make us forget a bit about source formatting guidelines. Or sometimes you need to work with 3rd party source code which seems to have been coded by someone who doesn't know the meaning of whitespace and readability. What is your favorite tool to tabulate your code... | One can also use Uncrustify and the UniversalIndentGUI, also good for mass tagging. | What is your favorite source formatting tool? We all know that deadlines and/or critical bugfixes and make us forget a bit about source formatting guidelines. Or sometimes you need to work with 3rd party source code which seems to have been coded by someone who doesn't know the meaning of whitespace and readability. Wh... | TITLE:
What is your favorite source formatting tool?
QUESTION:
We all know that deadlines and/or critical bugfixes and make us forget a bit about source formatting guidelines. Or sometimes you need to work with 3rd party source code which seems to have been coded by someone who doesn't know the meaning of whitespace a... | [
"formatting"
] | 0 | 1 | 1,056 | 12 | 0 | 2008-10-10T21:30:35.227000 | 2008-10-10T21:50:13.830000 |
193,092 | 193,323 | C# - How to add an Excel Worksheet programmatically - Office XP / 2003 | I am just starting to fiddle with Excel via C# to be able to automate the creation, and addition to an Excel file. I can open the file and update its data and move through the existing worksheets. My problem is how can I add new sheets? I tried: Excel.Worksheet newWorksheet; newWorksheet = (Excel.Worksheet)excelApp.Thi... | You need to add a COM reference in your project to the " Microsoft Excel 11.0 Object Library " - or whatever version is appropriate. This code works for me: private void AddWorksheetToExcelWorkbook(string fullFilename,string worksheetName) { Microsoft.Office.Interop.Excel.Application xlApp = null; Workbook xlWorkbook =... | C# - How to add an Excel Worksheet programmatically - Office XP / 2003 I am just starting to fiddle with Excel via C# to be able to automate the creation, and addition to an Excel file. I can open the file and update its data and move through the existing worksheets. My problem is how can I add new sheets? I tried: Exc... | TITLE:
C# - How to add an Excel Worksheet programmatically - Office XP / 2003
QUESTION:
I am just starting to fiddle with Excel via C# to be able to automate the creation, and addition to an Excel file. I can open the file and update its data and move through the existing worksheets. My problem is how can I add new sh... | [
"c#",
"excel",
"com",
"office-interop",
"worksheet"
] | 25 | 44 | 115,895 | 9 | 0 | 2008-10-10T21:30:56.227000 | 2008-10-10T23:19:47.660000 |
193,096 | 193,247 | Is VS Debugger Wrong? IndexOutOfRangeException thrown by the code: f++ | Why is an exception being thrown in the "f++" part of the code below ("IndexOutOfRangeException was unhandled by user code"): for (int f = 0; f < gnf; f++) { fieldNames[g] = grid.FieldName(f); } The bug is in the "fieldNames[g] =..." part of the code, my algorithm should be: for (int f = 0; f < gnf; f++) { fieldNames[f... | Could be the optimizer. Is your build set to DEBUG or RELEASE? | Is VS Debugger Wrong? IndexOutOfRangeException thrown by the code: f++ Why is an exception being thrown in the "f++" part of the code below ("IndexOutOfRangeException was unhandled by user code"): for (int f = 0; f < gnf; f++) { fieldNames[g] = grid.FieldName(f); } The bug is in the "fieldNames[g] =..." part of the cod... | TITLE:
Is VS Debugger Wrong? IndexOutOfRangeException thrown by the code: f++
QUESTION:
Why is an exception being thrown in the "f++" part of the code below ("IndexOutOfRangeException was unhandled by user code"): for (int f = 0; f < gnf; f++) { fieldNames[g] = grid.FieldName(f); } The bug is in the "fieldNames[g] =..... | [
"c#",
"debugging",
"exception",
"visual-studio-2005"
] | 1 | 2 | 885 | 2 | 0 | 2008-10-10T21:32:00.060000 | 2008-10-10T22:34:32.447000 |
193,104 | 193,129 | Installing .net Framework 3.5SP1 on top of 3.0 - as simple as "install and go"? | This maybe a stupid question, but as I can not easily undo my change if I decide to do it, I think i'd ask here first: I got a Sharepoint 2007 Server. Pretty standard stuff: Windows 2003 (32-Bit), IIS 6, Sharepoint 2007,.net 3.0. At the moment, I use Visual Studio 2005 with.net 3.0 as my target. However, I'd like to us... | I certainly wouldn't just happily install the 3.5SP1 Framework on all [your production servers]. Use Virtual Server or VMware and build a virtual machine with your configuration, then upgrade that and test, test, test. If you think it is worth the money, there are tools that will provide a way to do P2V (Physical to Vi... | Installing .net Framework 3.5SP1 on top of 3.0 - as simple as "install and go"? This maybe a stupid question, but as I can not easily undo my change if I decide to do it, I think i'd ask here first: I got a Sharepoint 2007 Server. Pretty standard stuff: Windows 2003 (32-Bit), IIS 6, Sharepoint 2007,.net 3.0. At the mom... | TITLE:
Installing .net Framework 3.5SP1 on top of 3.0 - as simple as "install and go"?
QUESTION:
This maybe a stupid question, but as I can not easily undo my change if I decide to do it, I think i'd ask here first: I got a Sharepoint 2007 Server. Pretty standard stuff: Windows 2003 (32-Bit), IIS 6, Sharepoint 2007,.n... | [
".net"
] | 1 | 1 | 472 | 1 | 0 | 2008-10-10T21:35:00.350000 | 2008-10-10T21:42:16.593000 |
193,107 | 360,029 | Print text in Oracle SQL Developer SQL Worksheet window | I am using Oracle SQL (in SQLDeveloper, using the SQL Worksheet). I would like to print a statement before my select, such as PRINT 'Querying Table1'; SELECT * from Table1; What do I use to Print / show text output? It's not Print, because that gives me the error: Bind Variable Table1 is NOT DECLARED. DBMS_OUTPUT.PUT_L... | for simple comments: set serveroutput on format wrapped; begin DBMS_OUTPUT.put_line('simple comment'); end; /
-- do something
begin DBMS_OUTPUT.put_line('second simple comment'); end; / you should get: anonymous block completed simple comment
anonymous block completed second simple comment if you want to print out t... | Print text in Oracle SQL Developer SQL Worksheet window I am using Oracle SQL (in SQLDeveloper, using the SQL Worksheet). I would like to print a statement before my select, such as PRINT 'Querying Table1'; SELECT * from Table1; What do I use to Print / show text output? It's not Print, because that gives me the error:... | TITLE:
Print text in Oracle SQL Developer SQL Worksheet window
QUESTION:
I am using Oracle SQL (in SQLDeveloper, using the SQL Worksheet). I would like to print a statement before my select, such as PRINT 'Querying Table1'; SELECT * from Table1; What do I use to Print / show text output? It's not Print, because that g... | [
"oracle",
"printing",
"oracle-sqldeveloper"
] | 111 | 164 | 479,622 | 8 | 0 | 2008-10-10T21:35:29.303000 | 2008-12-11T16:45:59.830000 |
193,118 | 193,671 | Using pbuffer with GLUT? | I have been scouring the web for a code sample that shows how to use pbuffer with GLUT but I could not find anything... I am puzzled with the context switching between pbuffer and the rendering window. I guess that I will have to use glutSetWindow to switch between the two rendering surface but I am not too sure about ... | The short answer is that there's no good way of doing it. The longer answer is that pbuffers are not cross-platform, so you necessarily have to use platform-specific APIs to access them. How you switch between rendering surfaces depends on your platform; on Windows you'd use wglMakeCurrent() and the like. The meta-answ... | Using pbuffer with GLUT? I have been scouring the web for a code sample that shows how to use pbuffer with GLUT but I could not find anything... I am puzzled with the context switching between pbuffer and the rendering window. I guess that I will have to use glutSetWindow to switch between the two rendering surface but... | TITLE:
Using pbuffer with GLUT?
QUESTION:
I have been scouring the web for a code sample that shows how to use pbuffer with GLUT but I could not find anything... I am puzzled with the context switching between pbuffer and the rendering window. I guess that I will have to use glutSetWindow to switch between the two ren... | [
"opengl",
"glut"
] | 1 | 3 | 822 | 2 | 0 | 2008-10-10T21:38:18.690000 | 2008-10-11T05:00:32.900000 |
193,123 | 216,982 | How to use prepared statements with Enterprise Library? | Is there a way to tell Enterprise Library to use prepared statements? If so, how? | The short answer is to use DbCommand.Prepare(); The long answer is that it is completely irrelevant, and results in a noop, when calling stored procedures. Also, it should only really be used when the code is about to make several calls (as in a loop) with the same query. | How to use prepared statements with Enterprise Library? Is there a way to tell Enterprise Library to use prepared statements? If so, how? | TITLE:
How to use prepared statements with Enterprise Library?
QUESTION:
Is there a way to tell Enterprise Library to use prepared statements? If so, how?
ANSWER:
The short answer is to use DbCommand.Prepare(); The long answer is that it is completely irrelevant, and results in a noop, when calling stored procedures.... | [
"c#",
"enterprise-library"
] | 0 | 2 | 654 | 2 | 0 | 2008-10-10T21:40:13.040000 | 2008-10-19T21:11:28.413000 |
193,142 | 260,600 | Why does handling WM_NCCALCSIZE cause my window to jump? | I have a WPF app which snaps to screen edges (I just set the.Top or.Left of the window if you're within 20 pixels of the screen edge), but I recently added some code provided by the WPF SDK Team to "mess" with the window chrome, and although it's working great ( screenshot ), it's causing the "snapto" to move the windo... | The reason this happens is that handling the WM_NCCALCSIZE changes the overall size of the window... but if you're moving the window, changing your position during WM_MOVE or WM_WINDOWPOSCHANGED (which corresponds to the WPF WindowPositionChanged event) causes another WM_NCCALCSIZE message... Making changes during WM_N... | Why does handling WM_NCCALCSIZE cause my window to jump? I have a WPF app which snaps to screen edges (I just set the.Top or.Left of the window if you're within 20 pixels of the screen edge), but I recently added some code provided by the WPF SDK Team to "mess" with the window chrome, and although it's working great ( ... | TITLE:
Why does handling WM_NCCALCSIZE cause my window to jump?
QUESTION:
I have a WPF app which snaps to screen edges (I just set the.Top or.Left of the window if you're within 20 pixels of the screen edge), but I recently added some code provided by the WPF SDK Team to "mess" with the window chrome, and although it'... | [
"wpf",
"windows",
"winapi",
"pinvoke"
] | 5 | 6 | 4,548 | 2 | 0 | 2008-10-10T21:45:25.120000 | 2008-11-04T02:09:20.743000 |
193,143 | 198,334 | How to force a MSTEST TestMethod to reset all singletons/statics before running? | I'm using MSTEST inside Visual Studio 2008. How can I have each unit test method in a certain test class act as if it were the first test to run so that all global state is reset before running each test? I do not want to explicitly clean up the world using TestInitialize, ClassInitialize, AssemblyInitialize, etc. For ... | In the end, I wrote a helper that used AppDomain.CreateDomain and then used reflection to call the unit test under a different AppDomain. It provides the isolation I needed. This post on MSDN's forums shows how to handle the situation if you only have a few statics that need to be reset. It does mention some options (e... | How to force a MSTEST TestMethod to reset all singletons/statics before running? I'm using MSTEST inside Visual Studio 2008. How can I have each unit test method in a certain test class act as if it were the first test to run so that all global state is reset before running each test? I do not want to explicitly clean ... | TITLE:
How to force a MSTEST TestMethod to reset all singletons/statics before running?
QUESTION:
I'm using MSTEST inside Visual Studio 2008. How can I have each unit test method in a certain test class act as if it were the first test to run so that all global state is reset before running each test? I do not want to... | [
"c#",
"unit-testing",
"visual-studio-2008",
"mstest",
"appdomain"
] | 15 | 7 | 7,093 | 4 | 0 | 2008-10-10T21:45:52.060000 | 2008-10-13T17:24:49.357000 |
193,154 | 203,394 | "The operation is not valid for the state of the transaction" error and transaction scope | I am getting the following error when I try to call a stored procedure that contains a SELECT Statement: The operation is not valid for the state of the transaction Here is the structure of my calls: public void MyAddUpdateMethod() {
using (TransactionScope Scope = new TransactionScope(TransactionScopeOption.RequiresN... | After doing some research, it seems I cannot have two connections opened to the same database with the TransactionScope block. I needed to modify my code to look like this: public void MyAddUpdateMethod() { using (TransactionScope Scope = new TransactionScope(TransactionScopeOption.RequiresNew)) { using(SQLServer Sql =... | "The operation is not valid for the state of the transaction" error and transaction scope I am getting the following error when I try to call a stored procedure that contains a SELECT Statement: The operation is not valid for the state of the transaction Here is the structure of my calls: public void MyAddUpdateMethod(... | TITLE:
"The operation is not valid for the state of the transaction" error and transaction scope
QUESTION:
I am getting the following error when I try to call a stored procedure that contains a SELECT Statement: The operation is not valid for the state of the transaction Here is the structure of my calls: public void ... | [
"c#",
".net",
"sql-server",
"transactions",
"transactionscope"
] | 88 | 72 | 136,547 | 11 | 0 | 2008-10-10T21:49:52.130000 | 2008-10-15T01:07:19.267000 |
193,155 | 193,241 | Insert Into: Is one syntax more optimal or is it preference? | SQL Server (2005/2008) Each of the below statements have the same result. Does anyone know if one outperforms the other? insert into SOMETABLE values ('FieldOneValue','FieldTwoValue',3,4.55,'10/10/2008 16:42:00.000')
insert into SOMETABLE select 'FieldOneValue','FieldTwoValue',3,4.55,'10/10/2008 16:42:00.000'
insert ... | I just tested this. 5 million iterations of both approaches on two sets of hardware, one a server with 16GB RAM, one a notebook with 1GB. Result: They appear to be the same. The query plans for these are the same, and the performance differential is statistically insignificant. | Insert Into: Is one syntax more optimal or is it preference? SQL Server (2005/2008) Each of the below statements have the same result. Does anyone know if one outperforms the other? insert into SOMETABLE values ('FieldOneValue','FieldTwoValue',3,4.55,'10/10/2008 16:42:00.000')
insert into SOMETABLE select 'FieldOneVal... | TITLE:
Insert Into: Is one syntax more optimal or is it preference?
QUESTION:
SQL Server (2005/2008) Each of the below statements have the same result. Does anyone know if one outperforms the other? insert into SOMETABLE values ('FieldOneValue','FieldTwoValue',3,4.55,'10/10/2008 16:42:00.000')
insert into SOMETABLE s... | [
"sql",
"performance",
"optimization",
"insert"
] | 1 | 7 | 1,219 | 6 | 0 | 2008-10-10T21:50:05.250000 | 2008-10-10T22:31:30.440000 |
193,160 | 193,174 | Apache htaccess on Win2k is not being processed | I am trying to rewrite URLs using mod_rewrite. It is enabled in httpd.conf and url rewriting works if the lines are in the httpd.conf file. However, I would like the rules to be in the.htaccess file. It doesn't appear that.htaccess is being processed at all by Apache on Win2k. I have ReWriteLogging turned all the way u... | Check that AllowOverride FileInfo is enabled in httpd.conf for the directories affected; see also http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride. You might also check permissions on the.htaccess files themselves, to ensure there's nothing preventing Apache from reading them. | Apache htaccess on Win2k is not being processed I am trying to rewrite URLs using mod_rewrite. It is enabled in httpd.conf and url rewriting works if the lines are in the httpd.conf file. However, I would like the rules to be in the.htaccess file. It doesn't appear that.htaccess is being processed at all by Apache on W... | TITLE:
Apache htaccess on Win2k is not being processed
QUESTION:
I am trying to rewrite URLs using mod_rewrite. It is enabled in httpd.conf and url rewriting works if the lines are in the httpd.conf file. However, I would like the rules to be in the.htaccess file. It doesn't appear that.htaccess is being processed at ... | [
"apache",
".htaccess",
"mod-rewrite"
] | 0 | 1 | 268 | 1 | 0 | 2008-10-10T21:50:14.767000 | 2008-10-10T22:01:21.827000 |
193,161 | 193,181 | What is the best project structure for a Python application? | Imagine that you want to develop a non-trivial end-user desktop (not web) application in Python. What is the best way to structure the project's folder hierarchy? Desirable features are ease of maintenance, IDE-friendliness, suitability for source control branching/merging, and easy generation of install packages. In p... | Doesn't too much matter. Whatever makes you happy will work. There aren't a lot of silly rules because Python projects can be simple. /scripts or /bin for that kind of command-line interface stuff /tests for your tests /lib for your C-language libraries /doc for most documentation /apidoc for the Epydoc-generated API d... | What is the best project structure for a Python application? Imagine that you want to develop a non-trivial end-user desktop (not web) application in Python. What is the best way to structure the project's folder hierarchy? Desirable features are ease of maintenance, IDE-friendliness, suitability for source control bra... | TITLE:
What is the best project structure for a Python application?
QUESTION:
Imagine that you want to develop a non-trivial end-user desktop (not web) application in Python. What is the best way to structure the project's folder hierarchy? Desirable features are ease of maintenance, IDE-friendliness, suitability for ... | [
"python",
"directory-structure",
"organization",
"project-structure"
] | 961 | 509 | 704,312 | 8 | 0 | 2008-10-10T21:50:34.220000 | 2008-10-10T22:03:40.637000 |
193,166 | 193,704 | Good Java Process Control Library | Java process control is notoriously bad - primarily due to inadequate support by the Java VM/JDK classes (e.g. java.lang.Process). I am wondering, are there any good open source libraries out there that are reliable. The requirements would be: OSS Start/Stop processes Manage STDIN and STDOUT cross platform (at least Li... | Java Service Wrapper might be what you're looking for. It's cross-platform, can be used to start things as a Windows service, capture IO, and generally completely manage any java app. It's very light weight and well designed. Atlassian uses it to wrap their products (Jira, Bamboo, etc), so it's battle tested. | Good Java Process Control Library Java process control is notoriously bad - primarily due to inadequate support by the Java VM/JDK classes (e.g. java.lang.Process). I am wondering, are there any good open source libraries out there that are reliable. The requirements would be: OSS Start/Stop processes Manage STDIN and ... | TITLE:
Good Java Process Control Library
QUESTION:
Java process control is notoriously bad - primarily due to inadequate support by the Java VM/JDK classes (e.g. java.lang.Process). I am wondering, are there any good open source libraries out there that are reliable. The requirements would be: OSS Start/Stop processes... | [
"java",
"open-source",
"process"
] | 29 | 5 | 22,069 | 3 | 0 | 2008-10-10T21:54:01.623000 | 2008-10-11T05:39:47.720000 |
193,170 | 193,175 | Subversion & switching between tags | My automated deployment system updates a latest version of my site trough subversion. Instead of having my live site point to the trunk (which is always almost a work in progress version), I have my live site point to a tag. E.g. I work on trunk and when my v1.0 is finished I create a tag called 1.0 and do a checkout o... | There actually is a switch function that does just that. I use TortiseSVN which is a windows shell/gui for Subversion, so I'm not familiar with how to do it manually, but this looks like it should help: http://svnbook.red-bean.com/en/1.1/ch04s05.html | Subversion & switching between tags My automated deployment system updates a latest version of my site trough subversion. Instead of having my live site point to the trunk (which is always almost a work in progress version), I have my live site point to a tag. E.g. I work on trunk and when my v1.0 is finished I create ... | TITLE:
Subversion & switching between tags
QUESTION:
My automated deployment system updates a latest version of my site trough subversion. Instead of having my live site point to the trunk (which is always almost a work in progress version), I have my live site point to a tag. E.g. I work on trunk and when my v1.0 is ... | [
"svn",
"tags"
] | 6 | 7 | 17,848 | 3 | 0 | 2008-10-10T21:56:59.090000 | 2008-10-10T22:01:22.263000 |
193,172 | 193,194 | Putting newbies on Reports. Beneficial/Harmful? | In my work experience, most fresh out of school programmers are set right to creating reports for 6-12 months or so. While I see the benefit of doing something non-crucial, it seems to really discourage them. So my question is, should organizations allow newbies to work with someone experienced right off the bat, obvio... | Ah, there really is nothing like exploiting interns for remedial jobs... Seriously though, you get back what you put in. Forcing them to do a thoughtless, thankless job for a long period of time is a quick way to build up a useless team member. | Putting newbies on Reports. Beneficial/Harmful? In my work experience, most fresh out of school programmers are set right to creating reports for 6-12 months or so. While I see the benefit of doing something non-crucial, it seems to really discourage them. So my question is, should organizations allow newbies to work w... | TITLE:
Putting newbies on Reports. Beneficial/Harmful?
QUESTION:
In my work experience, most fresh out of school programmers are set right to creating reports for 6-12 months or so. While I see the benefit of doing something non-crucial, it seems to really discourage them. So my question is, should organizations allow... | [
"report"
] | 7 | 23 | 1,145 | 14 | 0 | 2008-10-10T21:58:32.753000 | 2008-10-10T22:07:05.653000 |
193,173 | 429,197 | How do I turn off ABCpdf's paragraph indenting during a chain? | The project I'm working on uses a 3rd party component called ABCpdf to generate PDF documents. It has this feature where you can "chain" text from one content area to the next, which we're using to flow text across columns. You can also define an indent size to be used at the start of "paragraphs." This is all great, e... | And, in case this helps anyone else, I now have an answer. It turns out that this is a bug with Version 6 - upgrading to the new Version 7 fixed the problem. V7 only puts the indent where you'd expect. Hope this helps someone else. | How do I turn off ABCpdf's paragraph indenting during a chain? The project I'm working on uses a 3rd party component called ABCpdf to generate PDF documents. It has this feature where you can "chain" text from one content area to the next, which we're using to flow text across columns. You can also define an indent siz... | TITLE:
How do I turn off ABCpdf's paragraph indenting during a chain?
QUESTION:
The project I'm working on uses a 3rd party component called ABCpdf to generate PDF documents. It has this feature where you can "chain" text from one content area to the next, which we're using to flow text across columns. You can also de... | [
"pdf",
"abcpdf"
] | 1 | 2 | 519 | 1 | 0 | 2008-10-10T22:00:50.597000 | 2009-01-09T18:41:01.777000 |
193,182 | 1,685,369 | Programmatically get own phone number in iOS | Is there any way to get own phone number by standard APIs from iPhone SDK? | At the risk of getting negative marks, I want to suggest that the highest ranking solution (currently the first response) violates the latest SDK Agreement as of Nov 5, 2009. Our application was just rejected for using it. Here's the response from Apple: "For security reasons, iPhone OS restricts an application (includ... | Programmatically get own phone number in iOS Is there any way to get own phone number by standard APIs from iPhone SDK? | TITLE:
Programmatically get own phone number in iOS
QUESTION:
Is there any way to get own phone number by standard APIs from iPhone SDK?
ANSWER:
At the risk of getting negative marks, I want to suggest that the highest ranking solution (currently the first response) violates the latest SDK Agreement as of Nov 5, 2009... | [
"ios",
"iphone",
"phone-number"
] | 339 | 328 | 236,117 | 9 | 0 | 2008-10-10T22:03:53.897000 | 2009-11-06T04:16:35.673000 |
193,185 | 193,874 | Is it possible to set a default value when deserializing xml in C# (.NET 3.5)? | I've got a little problem that's slightly frustrating. Is it possible to set a default value when deserializing xml in C# (.NET 3.5)? Basically I'm trying to deserialize some xml that is not under my control and one element looks like this: 38628 it can also look like this: Now, in my class I have the following propert... | It looks like your source XML is using xsi:type and xsi:nil, but not prefixing them with a namespace. What you could do is process these with XSLT to turn this: 123456 into this: 123456 This would then be handled correctly by the XmlSerializer without needing any custom code. The XSLT for this is rather trivial, and a ... | Is it possible to set a default value when deserializing xml in C# (.NET 3.5)? I've got a little problem that's slightly frustrating. Is it possible to set a default value when deserializing xml in C# (.NET 3.5)? Basically I'm trying to deserialize some xml that is not under my control and one element looks like this: ... | TITLE:
Is it possible to set a default value when deserializing xml in C# (.NET 3.5)?
QUESTION:
I've got a little problem that's slightly frustrating. Is it possible to set a default value when deserializing xml in C# (.NET 3.5)? Basically I'm trying to deserialize some xml that is not under my control and one element... | [
"c#",
"xml",
"serialization"
] | 3 | 3 | 4,725 | 3 | 0 | 2008-10-10T22:04:31.353000 | 2008-10-11T08:57:53.203000 |
193,204 | 193,227 | XPS with Windows Forms | What is the best way to display and print XPS files in a Windows Forms application? | I think the easiest way is to use WPF, you can host a WPF control inside a WinForms application - you don't have to rewrite your GUI in WPF or anything like that. more information here: http://msdn.microsoft.com/en-us/library/ms745781.aspx | XPS with Windows Forms What is the best way to display and print XPS files in a Windows Forms application? | TITLE:
XPS with Windows Forms
QUESTION:
What is the best way to display and print XPS files in a Windows Forms application?
ANSWER:
I think the easiest way is to use WPF, you can host a WPF control inside a WinForms application - you don't have to rewrite your GUI in WPF or anything like that. more information here: ... | [
".net",
"wpf",
"winforms",
"xps",
"xpsdocument"
] | 5 | 4 | 3,945 | 3 | 0 | 2008-10-10T22:11:26.410000 | 2008-10-10T22:21:55.297000 |
193,215 | 193,224 | Is this slash character in an Oracle PL/SQL script an error? | I'm sorting out a series of SQL scripts for my company written in Oracle PL/SQL. I came across an essential script with a strangely placed slash near the bottom. It is checked into CVS this way. Is this a pure syntax error or does it have some function I'm not aware of. The slightly obfuscated script: set serveroutput ... | The slash has a meaning: Executes the most recently executed SQL command or PL/SQL block which is stored in the SQL buffer. You can enter a slash (/) at the command prompt or at a line number prompt of a multi-line command. The slash command functions similarly to RUN, but does not list the command. | Is this slash character in an Oracle PL/SQL script an error? I'm sorting out a series of SQL scripts for my company written in Oracle PL/SQL. I came across an essential script with a strangely placed slash near the bottom. It is checked into CVS this way. Is this a pure syntax error or does it have some function I'm no... | TITLE:
Is this slash character in an Oracle PL/SQL script an error?
QUESTION:
I'm sorting out a series of SQL scripts for my company written in Oracle PL/SQL. I came across an essential script with a strangely placed slash near the bottom. It is checked into CVS this way. Is this a pure syntax error or does it have so... | [
"oracle",
"plsql"
] | 7 | 21 | 17,472 | 5 | 0 | 2008-10-10T22:16:43.620000 | 2008-10-10T22:20:43.287000 |
193,257 | 193,456 | In MS SQL Server, is there a way to "atomically" increment a column being used as a counter? | Assuming a Read Committed Snapshot transaction isolation setting, is the following statement "atomic" in the sense that you won't ever "lose" a concurrent increment? update mytable set counter = counter + 1 I would assume that in the general case, where this update statement is part of a larger transaction, that it wou... | Read Committed Snapshot only deals with locks on selecting data from tables. In t1 and t2 however, you're UPDATEing the data, which is a different scenario. When you UPDATE the counter you escalate to a write lock (on the row), preventing the other update from occurring. t2 could read, but t2 will block on its UPDATE u... | In MS SQL Server, is there a way to "atomically" increment a column being used as a counter? Assuming a Read Committed Snapshot transaction isolation setting, is the following statement "atomic" in the sense that you won't ever "lose" a concurrent increment? update mytable set counter = counter + 1 I would assume that ... | TITLE:
In MS SQL Server, is there a way to "atomically" increment a column being used as a counter?
QUESTION:
Assuming a Read Committed Snapshot transaction isolation setting, is the following statement "atomic" in the sense that you won't ever "lose" a concurrent increment? update mytable set counter = counter + 1 I ... | [
"sql",
"sql-server-2005",
"transactions"
] | 45 | 17 | 20,439 | 5 | 0 | 2008-10-10T22:39:25.557000 | 2008-10-11T00:21:51.717000 |
193,260 | 193,272 | Simplifying VisualSVN Server's URLs | We're currently running an svnserve instance as NT service. While this works, it's needlessly cumbersome to administer, and I'd like to move on to the much simpler VisualSVN Server. (Bonus side benefits include Windows-integrated authentication and, thanks to HTTP/WebDAV, browsing of the latest revision.) That said, th... | You can configure the apache location to use SVNPath instead of SVNParentPath. It is inside the -Block of your httpd.conf you also should rename this block to the name of your repository. Then the../svn/.. part of your URL is gone. | Simplifying VisualSVN Server's URLs We're currently running an svnserve instance as NT service. While this works, it's needlessly cumbersome to administer, and I'd like to move on to the much simpler VisualSVN Server. (Bonus side benefits include Windows-integrated authentication and, thanks to HTTP/WebDAV, browsing of... | TITLE:
Simplifying VisualSVN Server's URLs
QUESTION:
We're currently running an svnserve instance as NT service. While this works, it's needlessly cumbersome to administer, and I'd like to move on to the much simpler VisualSVN Server. (Bonus side benefits include Windows-integrated authentication and, thanks to HTTP/W... | [
"svn",
"friendly-url",
"visualsvn-server"
] | 1 | 0 | 3,561 | 2 | 0 | 2008-10-10T22:40:39.843000 | 2008-10-10T22:51:37.013000 |
193,269 | 725,339 | server-side css selectors | I am creating a tool that will check dynamically generated XHTML and validate it against expected contents. I need to confirm the structure is correct and that specific attributes exist/match. There may be other attributes which I'm not interested in, so a direct string comparison is not suitable. One way of validating... | I've just released an open source project which is a W3C CSS Selectors Level 3 implementation in Java. Please give it a try. I was looking for the same thing and decided to implement my own engine. It's inspired by the code in WebKit etc. http://github.com/chrsan/css-selectors/tree | server-side css selectors I am creating a tool that will check dynamically generated XHTML and validate it against expected contents. I need to confirm the structure is correct and that specific attributes exist/match. There may be other attributes which I'm not interested in, so a direct string comparison is not suita... | TITLE:
server-side css selectors
QUESTION:
I am creating a tool that will check dynamically generated XHTML and validate it against expected contents. I need to confirm the structure is correct and that specific attributes exist/match. There may be other attributes which I'm not interested in, so a direct string compa... | [
"java",
"html",
"coldfusion",
"css-selectors"
] | 6 | 8 | 3,461 | 6 | 0 | 2008-10-10T22:47:43.107000 | 2009-04-07T12:03:53.703000 |
193,271 | 193,279 | Can CVS and Subversion be set to ignore whitespace in merging? | CVS and Subversion both have a handy merge feature so that when you update a source file that you have modified, it merges in changes that others have made on the same file. However, if your changes and the other ones are incompatible - generally if you have both changed the same parts of the code - it will create a co... | For SVN: In commandline tool, there is the option -x which you can set to " b " or " w " to ignore space changes resp. all spaces. You can also supply a third party tool for doing the merges. So if you have a merger which ignores whitespaces, you can use this one. TortoiseSVN, as always, is a frontend to all parameters... | Can CVS and Subversion be set to ignore whitespace in merging? CVS and Subversion both have a handy merge feature so that when you update a source file that you have modified, it merges in changes that others have made on the same file. However, if your changes and the other ones are incompatible - generally if you hav... | TITLE:
Can CVS and Subversion be set to ignore whitespace in merging?
QUESTION:
CVS and Subversion both have a handy merge feature so that when you update a source file that you have modified, it merges in changes that others have made on the same file. However, if your changes and the other ones are incompatible - ge... | [
"svn",
"version-control",
"cvs",
"whitespace"
] | 21 | 11 | 12,104 | 3 | 0 | 2008-10-10T22:50:02.523000 | 2008-10-10T22:57:22.183000 |
193,281 | 193,300 | Visual Studio 2005 vs 2008 - What are the benefits? | What are the benefits of upgrading from Visual Studio 2005 to 2008? Any thoughts on whether it's worth the jump, or is it better to wait for whatever's coming next? | There are tons of improvements. The best part is you can continue to target.Net 2.0 with VS 2008 ( Multi-Targeting ) and use all the new IDE features. Posting couple of screencasts but you can find more on web: Script intellisense and debugging in Visual Studio 2008 Multi-threading Debugging Enhancements in Visual Stud... | Visual Studio 2005 vs 2008 - What are the benefits? What are the benefits of upgrading from Visual Studio 2005 to 2008? Any thoughts on whether it's worth the jump, or is it better to wait for whatever's coming next? | TITLE:
Visual Studio 2005 vs 2008 - What are the benefits?
QUESTION:
What are the benefits of upgrading from Visual Studio 2005 to 2008? Any thoughts on whether it's worth the jump, or is it better to wait for whatever's coming next?
ANSWER:
There are tons of improvements. The best part is you can continue to target.... | [
".net",
"visual-studio",
"visual-studio-2008",
"visual-studio-2005"
] | 10 | 16 | 19,868 | 10 | 0 | 2008-10-10T22:57:46.253000 | 2008-10-10T23:05:41.557000 |
193,288 | 193,640 | What is the cost of using autorelease in Cocoa? | Most of Apples documentation seems to avoid using autoreleased objects especially when creating gui views, but I want to know what the cost of using autoreleased objects is? UIScrollView *timeline = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 20, 320, 34)]; [self addSubview:timeline]; [timeline release]; Ultimate... | There are two costs: (Assuming you have an option to avoid autoreleased objects.) You effectively unnecessarily extend the lifetime of your objects. This can mean that your memory footprint grows -- unnecessarily. On a constrained platform, this can mean that your application is terminated if it exceeds a limit. Even i... | What is the cost of using autorelease in Cocoa? Most of Apples documentation seems to avoid using autoreleased objects especially when creating gui views, but I want to know what the cost of using autoreleased objects is? UIScrollView *timeline = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 20, 320, 34)]; [self ad... | TITLE:
What is the cost of using autorelease in Cocoa?
QUESTION:
Most of Apples documentation seems to avoid using autoreleased objects especially when creating gui views, but I want to know what the cost of using autoreleased objects is? UIScrollView *timeline = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 20, 3... | [
"objective-c",
"cocoa",
"memory-management"
] | 11 | 21 | 8,256 | 11 | 0 | 2008-10-10T23:00:13.113000 | 2008-10-11T04:23:37.030000 |
193,293 | 193,316 | Getting image metadata in .NET without regards to metadata format | Given a filename, I need to be able to access certain metadata in an image for a (closed source) project I'm currently developing, without regard to how the metadata is stored (that is, Exif, IPTC, or XMP). In particular, I want to access geotagging data. Is there a way of doing this without requiring any third party a... | Check the FreeImage project - a C++ image loading and processing that has.NET wrapper. perhaps it can do that | Getting image metadata in .NET without regards to metadata format Given a filename, I need to be able to access certain metadata in an image for a (closed source) project I'm currently developing, without regard to how the metadata is stored (that is, Exif, IPTC, or XMP). In particular, I want to access geotagging data... | TITLE:
Getting image metadata in .NET without regards to metadata format
QUESTION:
Given a filename, I need to be able to access certain metadata in an image for a (closed source) project I'm currently developing, without regard to how the metadata is stored (that is, Exif, IPTC, or XMP). In particular, I want to acce... | [
".net",
"image",
"metadata",
"geotagging"
] | 3 | 3 | 1,951 | 2 | 0 | 2008-10-10T23:03:10.330000 | 2008-10-10T23:16:11.753000 |
193,315 | 193,331 | Creating a sortable tree/grid in Javascript | I'd like to create a tree structure from JSON, but with multiple columns that can be sorted. I've seen lots of implementations of trees and grids but never one mixed. Does anyone know of a plugin or feature for any Javascript toolkit that can make this happen so I don't have to re-invent the wheel here? | This seems pretty nice: http://www.max-bazhenov.com/dev/ux.maximgb.treegrid/index.html Uses ExtJS, which has some licensing limitations you have to consider. | Creating a sortable tree/grid in Javascript I'd like to create a tree structure from JSON, but with multiple columns that can be sorted. I've seen lots of implementations of trees and grids but never one mixed. Does anyone know of a plugin or feature for any Javascript toolkit that can make this happen so I don't have ... | TITLE:
Creating a sortable tree/grid in Javascript
QUESTION:
I'd like to create a tree structure from JSON, but with multiple columns that can be sorted. I've seen lots of implementations of trees and grids but never one mixed. Does anyone know of a plugin or feature for any Javascript toolkit that can make this happe... | [
"javascript",
"json",
"extjs",
"treetable"
] | 7 | 8 | 15,085 | 7 | 0 | 2008-10-10T23:16:02.393000 | 2008-10-10T23:24:09.413000 |
193,328 | 193,329 | Nondeterministic functions in sql partitioning functions | How are non-deterministic functions used in SQL partitioning functions and are they useful? | MsSql allows non-deterministic functions in partitioning functions: CREATE PARTITION FUNCTION MyArchive(datetime) AS RANGE LEFT FOR VALUES (GETDATE() – 10) GO Does that mean that records older then 10 days are automatically moved to the archive (first) partition? Of course not. The database stores the date when the par... | Nondeterministic functions in sql partitioning functions How are non-deterministic functions used in SQL partitioning functions and are they useful? | TITLE:
Nondeterministic functions in sql partitioning functions
QUESTION:
How are non-deterministic functions used in SQL partitioning functions and are they useful?
ANSWER:
MsSql allows non-deterministic functions in partitioning functions: CREATE PARTITION FUNCTION MyArchive(datetime) AS RANGE LEFT FOR VALUES (GETD... | [
"sql",
"database-partitioning"
] | 0 | 3 | 479 | 1 | 0 | 2008-10-10T23:20:47.330000 | 2008-10-10T23:21:01.883000 |
193,336 | 193,348 | Third-party windows command-line program? | Looking for a better Windows XP command-line interface. The Visual Studio Command Prompt isn't near as nice as the Linux/OSX terminals. Thoughts? edit: Answers: Console on Sourceforge, and the Windows Powershell. Thanks, I'll go dig them up and evaluate them. The Cygwin package is too much overhead for what I want. edi... | As has your question been tagged, have you tried Windows PowerShell? It's paradigm is based on unix's pipes but instead of outputting text the processes output.Net objects. | Third-party windows command-line program? Looking for a better Windows XP command-line interface. The Visual Studio Command Prompt isn't near as nice as the Linux/OSX terminals. Thoughts? edit: Answers: Console on Sourceforge, and the Windows Powershell. Thanks, I'll go dig them up and evaluate them. The Cygwin package... | TITLE:
Third-party windows command-line program?
QUESTION:
Looking for a better Windows XP command-line interface. The Visual Studio Command Prompt isn't near as nice as the Linux/OSX terminals. Thoughts? edit: Answers: Console on Sourceforge, and the Windows Powershell. Thanks, I'll go dig them up and evaluate them. ... | [
"shell",
"command-line",
"windows-xp",
"upgrade"
] | 5 | 2 | 6,685 | 10 | 0 | 2008-10-10T23:30:08.637000 | 2008-10-10T23:34:53.823000 |
193,339 | 193,376 | Simple 3D graphics project? | I'm looking for some good ideas for a simple 3d graphics program as my final project for an intro to computer graphics class. As for some background information, we'll be using opengl and will have a little over a month to work on it, so nothing too far-fetched. The simpler and "prettier" looking, the better. It does, ... | A 3D text/code editor. Text is 3D, errors stand out, code indentations not only indent, but protrude on z axis, pages/files are 3D and can be flipped like a ringpad. Probably not useful, but fun and more interesting than a game IMO. | Simple 3D graphics project? I'm looking for some good ideas for a simple 3d graphics program as my final project for an intro to computer graphics class. As for some background information, we'll be using opengl and will have a little over a month to work on it, so nothing too far-fetched. The simpler and "prettier" lo... | TITLE:
Simple 3D graphics project?
QUESTION:
I'm looking for some good ideas for a simple 3d graphics program as my final project for an intro to computer graphics class. As for some background information, we'll be using opengl and will have a little over a month to work on it, so nothing too far-fetched. The simpler... | [
"opengl",
"graphics",
"3d",
"rubiks-cube"
] | 16 | 24 | 10,048 | 16 | 0 | 2008-10-10T23:31:15.593000 | 2008-10-10T23:44:27.220000 |
193,341 | 534,447 | How can I best take advantage of Trac? | I have a Trac project installed on top of a Subversion implementation (easy to do thanks to Webfaction's control panel), but now I have configuration work to do. With that in mind, are there easy ways to do the following in Trac: 1) Ensure that customers can only see a high level progress indicator. 2) Give daily summa... | 1) high level progress indicator: The roadmap tab gives you kind of a high level progress indicator. It lists all milestones, and for each milestone it shows you: milestone title short description date on which the milestone is due how much time is left until then (or how long you are behind you schedule) how many tick... | How can I best take advantage of Trac? I have a Trac project installed on top of a Subversion implementation (easy to do thanks to Webfaction's control panel), but now I have configuration work to do. With that in mind, are there easy ways to do the following in Trac: 1) Ensure that customers can only see a high level ... | TITLE:
How can I best take advantage of Trac?
QUESTION:
I have a Trac project installed on top of a Subversion implementation (easy to do thanks to Webfaction's control panel), but now I have configuration work to do. With that in mind, are there easy ways to do the following in Trac: 1) Ensure that customers can only... | [
"svn",
"project-management",
"trac"
] | 16 | 8 | 2,562 | 7 | 0 | 2008-10-10T23:32:34.747000 | 2009-02-10T22:11:13.713000 |
193,351 | 193,381 | Debugging: break at runtime when file is modified ? (windows) | Is it possible to break at runtime when a particular file has been modified? ie. monitor the file and break into a debugger once a change has been made to it. This is for a windows app...is this possible in visual studio or windbg? edit: i should have mentioned that this is for a Win32 app.. | you can use the System.IO.FileSystemWatcher class. FileSystemWatcher watcher = = new FileSystemWatcher(); watcher.Filter = @"myFile.ini"; watcher.Changed += new FileSystemEventHandler(watcher_Changed); and then you implement the delegate of type FileSystemEventHandler: static void watcher_Changed(object sender, FileSys... | Debugging: break at runtime when file is modified ? (windows) Is it possible to break at runtime when a particular file has been modified? ie. monitor the file and break into a debugger once a change has been made to it. This is for a windows app...is this possible in visual studio or windbg? edit: i should have mentio... | TITLE:
Debugging: break at runtime when file is modified ? (windows)
QUESTION:
Is it possible to break at runtime when a particular file has been modified? ie. monitor the file and break into a debugger once a change has been made to it. This is for a windows app...is this possible in visual studio or windbg? edit: i ... | [
"windows",
"debugging"
] | 3 | 2 | 184 | 2 | 0 | 2008-10-10T23:36:03.697000 | 2008-10-10T23:45:29.120000 |
193,364 | 193,425 | Naming your projects: does it matter? | I work on a variety of projects using different languages and platforms. Parts of them I abstract out into their own separate projects, and I want to open some of these up to the public. What gets me stuck is the christening. So, does it matter? Should I just choose something and stick with it? And if it does matter, w... | I think naming is an important part of getting ideas to spread. What I look for in a name are: Memorable. It should be different than other names but easy to remember. Accurate. It is helpful if the name reflects something about the project. Positive. It is helpful if the opposite of the name is unattractive. For examp... | Naming your projects: does it matter? I work on a variety of projects using different languages and platforms. Parts of them I abstract out into their own separate projects, and I want to open some of these up to the public. What gets me stuck is the christening. So, does it matter? Should I just choose something and s... | TITLE:
Naming your projects: does it matter?
QUESTION:
I work on a variety of projects using different languages and platforms. Parts of them I abstract out into their own separate projects, and I want to open some of these up to the public. What gets me stuck is the christening. So, does it matter? Should I just choo... | [
"language-agnostic",
"naming",
"projects"
] | 18 | 41 | 2,929 | 13 | 0 | 2008-10-10T23:40:10.630000 | 2008-10-11T00:03:26.603000 |
193,398 | 193,416 | Multiplication of very long integers | Is there an algorithm for accurately multiplying two arbitrarily long integers together? The language I am working with is limited to 64-bit unsigned integer length (maximum integer size of 18446744073709551615). Realistically, I would like to be able to do this by breaking up each number, processing them somehow using... | Most languages have functions or libraries that do this, usually called a Bignum library ( GMP is a good one.) If you want to do it yourself, I would do it the same way that people do long multiplication on paper. To do this you could either work with strings containing the number, or do it in binary using bitwise oper... | Multiplication of very long integers Is there an algorithm for accurately multiplying two arbitrarily long integers together? The language I am working with is limited to 64-bit unsigned integer length (maximum integer size of 18446744073709551615). Realistically, I would like to be able to do this by breaking up each ... | TITLE:
Multiplication of very long integers
QUESTION:
Is there an algorithm for accurately multiplying two arbitrarily long integers together? The language I am working with is limited to 64-bit unsigned integer length (maximum integer size of 18446744073709551615). Realistically, I would like to be able to do this by... | [
"algorithm",
"math",
"64-bit"
] | 7 | 14 | 15,896 | 7 | 0 | 2008-10-10T23:53:26.937000 | 2008-10-11T00:00:13.460000 |
193,406 | 1,443,980 | SQLite and Caching Application Block | Has anyone used the Caching Application Block with SQLite to persist data? I'd like to get some details. Thanks | objCatch.Add("DsFromDb", ds, CacheItemPriority.Normal, null, new Microsoft.Practices.EnterpriseLibrary.Caching.Expirations.AbsoluteTime(TimeSpan.FromMinutes(5))); | SQLite and Caching Application Block Has anyone used the Caching Application Block with SQLite to persist data? I'd like to get some details. Thanks | TITLE:
SQLite and Caching Application Block
QUESTION:
Has anyone used the Caching Application Block with SQLite to persist data? I'd like to get some details. Thanks
ANSWER:
objCatch.Add("DsFromDb", ds, CacheItemPriority.Normal, null, new Microsoft.Practices.EnterpriseLibrary.Caching.Expirations.AbsoluteTime(TimeSpan... | [
"sqlite",
"caching-application-block"
] | 0 | 0 | 349 | 1 | 0 | 2008-10-10T23:56:22.983000 | 2009-09-18T11:31:54.830000 |
193,423 | 193,446 | Building a Decoupled N-Tier App With Entity Framework and VB.NET | So we are building an application with a UI Layer (web, mobile, Ajax client, etc) Service/API Layer Business Logic Layer Data Access Layer Our goal is to have an Entity Framework dependency from the Service Layer on down to the DAL. That means the Sevice layer will only accept and return POCOs (plain old CLR objects). ... | You should be performing business logic on POCOs. The entire purpose of ORM is that it is an implementation detail. The business logic should be implemented in the domain model and in the domain services - in a business application, "domain" means "business". The DAL should be there to take a POCO and persist it - in y... | Building a Decoupled N-Tier App With Entity Framework and VB.NET So we are building an application with a UI Layer (web, mobile, Ajax client, etc) Service/API Layer Business Logic Layer Data Access Layer Our goal is to have an Entity Framework dependency from the Service Layer on down to the DAL. That means the Sevice ... | TITLE:
Building a Decoupled N-Tier App With Entity Framework and VB.NET
QUESTION:
So we are building an application with a UI Layer (web, mobile, Ajax client, etc) Service/API Layer Business Logic Layer Data Access Layer Our goal is to have an Entity Framework dependency from the Service Layer on down to the DAL. That... | [
"asp.net",
"vb.net",
"entity-framework"
] | 5 | 2 | 3,375 | 2 | 0 | 2008-10-11T00:03:17.557000 | 2008-10-11T00:16:45.750000 |
193,438 | 193,443 | What is a free tool to compare two SQL Server Databases? | What is a free tool to compare two Sql Server tables (data and schema). It would be great if the tool can script the differences found. I also went through some older posts. The closest I have seen is SQLDBDiff but I would love to try more options. | TableDiff.exe should have everything you need. It is one of the hidden gems in SQL Server 2005. So you don't have to download anything. • Table Difference tool allows you to discover and reconcile differences between a source and destination table or a view. Tablediff Utility can report differences on schema and data. ... | What is a free tool to compare two SQL Server Databases? What is a free tool to compare two Sql Server tables (data and schema). It would be great if the tool can script the differences found. I also went through some older posts. The closest I have seen is SQLDBDiff but I would love to try more options. | TITLE:
What is a free tool to compare two SQL Server Databases?
QUESTION:
What is a free tool to compare two Sql Server tables (data and schema). It would be great if the tool can script the differences found. I also went through some older posts. The closest I have seen is SQLDBDiff but I would love to try more optio... | [
"sql-server"
] | 55 | 58 | 87,768 | 7 | 0 | 2008-10-11T00:13:11.063000 | 2008-10-11T00:15:21.853000 |
193,439 | 194,987 | What are the limitations on using SSRS with SQL Server 2005 Express edition? | I found this extremely old document which appears to say that many of the web client features are not availiable when running on express edition--scheduling, subscription, etc--as well as no access to the report builder. Is that information still current, and are there any other features which are unavailable? | Subscriptions and scheduling are indeed absent in both MSSQLEx2005 and MSSQLEx2008, but I have never found this to be much of a problem. The underlying platform has a scheduler and the web service will do all the rendering, so you can recreate the missing elements without too much trouble. The report builder is also ab... | What are the limitations on using SSRS with SQL Server 2005 Express edition? I found this extremely old document which appears to say that many of the web client features are not availiable when running on express edition--scheduling, subscription, etc--as well as no access to the report builder. Is that information st... | TITLE:
What are the limitations on using SSRS with SQL Server 2005 Express edition?
QUESTION:
I found this extremely old document which appears to say that many of the web client features are not availiable when running on express edition--scheduling, subscription, etc--as well as no access to the report builder. Is t... | [
"reporting-services",
"sql-server-express"
] | 1 | 2 | 4,190 | 2 | 0 | 2008-10-11T00:13:22.717000 | 2008-10-12T02:11:46.127000 |
193,448 | 193,451 | Php's json_decode and firefox's javascript compatibility | it appears if you have something like var my_var = {"foo": "bar"}; in javascript (with firefox at least) and post it to a php server you will receive a string like {foo:"bar",} on the server side. But json_decode in php doesn't like the trailing ',' or the lack or quotes around 'foo'. Is there a nice way to clean up th... | What code are you using to POST the data? Make sure you're using something like json2.js. | Php's json_decode and firefox's javascript compatibility it appears if you have something like var my_var = {"foo": "bar"}; in javascript (with firefox at least) and post it to a php server you will receive a string like {foo:"bar",} on the server side. But json_decode in php doesn't like the trailing ',' or the lack o... | TITLE:
Php's json_decode and firefox's javascript compatibility
QUESTION:
it appears if you have something like var my_var = {"foo": "bar"}; in javascript (with firefox at least) and post it to a php server you will receive a string like {foo:"bar",} on the server side. But json_decode in php doesn't like the trailing... | [
"php",
"javascript",
"drupal",
"compatibility",
"json"
] | 2 | 2 | 1,050 | 1 | 0 | 2008-10-11T00:18:08.913000 | 2008-10-11T00:19:36.133000 |
193,457 | 193,465 | Getting drawable area of an AWT frame in Mac OS X? | I have subclassed java.awt.Frame and have overridden the paint() method as I wish to draw the entire contents of the window manually. However, on the graphics object, (0,0) corresponds to the upper left hand corner of the window inside the title bar decoration, not the first drawable pixel. Can I determine the co-ordin... | You can find the frame insets by calling the getInsets method (defined in Container). Frame insets are discussed at the top of the Frame API docs. | Getting drawable area of an AWT frame in Mac OS X? I have subclassed java.awt.Frame and have overridden the paint() method as I wish to draw the entire contents of the window manually. However, on the graphics object, (0,0) corresponds to the upper left hand corner of the window inside the title bar decoration, not the... | TITLE:
Getting drawable area of an AWT frame in Mac OS X?
QUESTION:
I have subclassed java.awt.Frame and have overridden the paint() method as I wish to draw the entire contents of the window manually. However, on the graphics object, (0,0) corresponds to the upper left hand corner of the window inside the title bar d... | [
"java",
"macos",
"graphics",
"awt",
"paint"
] | 6 | 3 | 6,154 | 2 | 0 | 2008-10-11T00:21:59.423000 | 2008-10-11T00:28:00.127000 |
193,469 | 193,770 | How do I make Visual Studio pause after executing a console application in debug mode? | I have a collection of Boost unit tests I want to run as a console application. When I'm working on the project and I run the tests I would like to be able to debug the tests, and I would like to have the console stay open after the tests run. I see that if I run in release mode the console window stays up after the pr... | Boost test offers the following usage recommendations for Visual Studio that would enable you to run the unit tests automatically at the end of compilation and capture the output into the build window. The nice side effect of this trick is it enable you to treat test failures as compilation errors. "...you could jump t... | How do I make Visual Studio pause after executing a console application in debug mode? I have a collection of Boost unit tests I want to run as a console application. When I'm working on the project and I run the tests I would like to be able to debug the tests, and I would like to have the console stay open after the ... | TITLE:
How do I make Visual Studio pause after executing a console application in debug mode?
QUESTION:
I have a collection of Boost unit tests I want to run as a console application. When I'm working on the project and I run the tests I would like to be able to debug the tests, and I would like to have the console st... | [
"c++",
"visual-studio",
"unit-testing",
"boost",
"console"
] | 67 | 19 | 121,222 | 17 | 0 | 2008-10-11T00:30:31.433000 | 2008-10-11T06:56:49.687000 |
193,471 | 687,302 | Which is better BOOST_MPL_ASSERT or BOOST_STATIC_ASSERT? | As I recall BOOST_MPL_ASSERT was once preferred. Is this still true? Anyone know why? | [Answering my own question] It depends. This is an apples to oranges comparison. Although similar, these macros are NOT interchangeable. Here's a summary of how each works: BOOST_STATIC_ASSERT( P ) generates a compilation error if P!= true. BOOST_MPL_ASSERT(( P )) generates a compilation error if P::type::value!= true.... | Which is better BOOST_MPL_ASSERT or BOOST_STATIC_ASSERT? As I recall BOOST_MPL_ASSERT was once preferred. Is this still true? Anyone know why? | TITLE:
Which is better BOOST_MPL_ASSERT or BOOST_STATIC_ASSERT?
QUESTION:
As I recall BOOST_MPL_ASSERT was once preferred. Is this still true? Anyone know why?
ANSWER:
[Answering my own question] It depends. This is an apples to oranges comparison. Although similar, these macros are NOT interchangeable. Here's a summ... | [
"c++",
"boost"
] | 12 | 15 | 4,047 | 2 | 0 | 2008-10-11T00:32:26.373000 | 2009-03-26T19:51:02.063000 |
193,474 | 193,987 | How to create an .INI file to store some settings in Java? | I want to create an ini file to store some settings for my application. Is it a good idea to find where the jar file is located and create an ini file there? If yes, then how can I find the location of the jar file? But if you know a better solution for something like this, I would like to hear some of them. EDIT: I'm ... | You can locate your application directory using the ClassLoader. See: Java: finding the application directory. Rather than an.INI file, use a.properties file - you can load and save this via the Properties class. As others have noted, you should not write user settings to your application directory. What if the user do... | How to create an .INI file to store some settings in Java? I want to create an ini file to store some settings for my application. Is it a good idea to find where the jar file is located and create an ini file there? If yes, then how can I find the location of the jar file? But if you know a better solution for somethi... | TITLE:
How to create an .INI file to store some settings in Java?
QUESTION:
I want to create an ini file to store some settings for my application. Is it a good idea to find where the jar file is located and create an ini file there? If yes, then how can I find the location of the jar file? But if you know a better so... | [
"java",
"settings",
"configuration-files"
] | 21 | 22 | 31,085 | 6 | 0 | 2008-10-11T00:35:03.357000 | 2008-10-11T11:35:11.810000 |
193,483 | 195,007 | How to specify JVM argument for Maven built executable JAR | When using Maven to build an executable JAR, how do I specify the JVM arguments that are used when the JAR is executed? I can specify the main class using. I suspect there's a similar attribute for JVM arguments. Specially I need to specify the maximum memory (example -Xmx500m). Here's my assembly plugin: maven-assembl... | I don't know of any such mechanism. The JVM configuration is specified by the calling java command. Here's the jar file specification which conspicuously doesn't mention any attribute other than Main-Class for stand-alone execution: http://java.sun.com/javase/6/docs/technotes/guides/jar/jar.html | How to specify JVM argument for Maven built executable JAR When using Maven to build an executable JAR, how do I specify the JVM arguments that are used when the JAR is executed? I can specify the main class using. I suspect there's a similar attribute for JVM arguments. Specially I need to specify the maximum memory (... | TITLE:
How to specify JVM argument for Maven built executable JAR
QUESTION:
When using Maven to build an executable JAR, how do I specify the JVM arguments that are used when the JAR is executed? I can specify the main class using. I suspect there's a similar attribute for JVM arguments. Specially I need to specify th... | [
"java",
"maven-2",
"jar",
"executable-jar"
] | 11 | 5 | 19,063 | 5 | 0 | 2008-10-11T00:43:42.763000 | 2008-10-12T02:34:04.770000 |
193,514 | 193,566 | A Project Euler Puzzler (specifically in PHP) | There is another recent Project Euler question but I think this is a bit more specific (I'm only really interested in PHP based solutions) so I'm asking anyway. Question #5 tasks you with: "What is the smallest number that is evenly divisible by all of the numbers from 1 to 20?" Now, I have solved it twice. Once very i... | in php it will look like this: 0 && $b>0) { if($a>$b) $a=$a-$b; else $b=$b-$a; } if($a==0) return $b; return $a; } function euler5($i=20) { $euler=$x=1; while($x++<$i) { $euler*=$x/gcd($euler,$x); } return $euler; }?> Its at least twice as fast than what you posted. | A Project Euler Puzzler (specifically in PHP) There is another recent Project Euler question but I think this is a bit more specific (I'm only really interested in PHP based solutions) so I'm asking anyway. Question #5 tasks you with: "What is the smallest number that is evenly divisible by all of the numbers from 1 to... | TITLE:
A Project Euler Puzzler (specifically in PHP)
QUESTION:
There is another recent Project Euler question but I think this is a bit more specific (I'm only really interested in PHP based solutions) so I'm asking anyway. Question #5 tasks you with: "What is the smallest number that is evenly divisible by all of the... | [
"php",
"math",
"puzzle"
] | 0 | 3 | 1,627 | 8 | 0 | 2008-10-11T01:05:12.173000 | 2008-10-11T01:37:24.247000 |
193,547 | 193,563 | What is the best way to do loops in JavaScript | I have stumbled into several methods of looping in JavaScript, what I like the most is: for(var i = 0; i < a.length; i++){ var element = a[i]; } But as tested here ( http://www.robertnyman.com/2008/04/11/javascript-loop-performance/ ), it should probably be written so that the length is only calculated once. In jQuery ... | I've started using iterators where relevant. Performance is reasonable, however more importantly it allows you to encapsulate the looping logic: function createIterator(x) { var i = 0;
return function(){ return x[i++]; }; } Then to use: var iterator=createIterator(['a','b','c','d','e','f','g']);
iterator(); returns "... | What is the best way to do loops in JavaScript I have stumbled into several methods of looping in JavaScript, what I like the most is: for(var i = 0; i < a.length; i++){ var element = a[i]; } But as tested here ( http://www.robertnyman.com/2008/04/11/javascript-loop-performance/ ), it should probably be written so that... | TITLE:
What is the best way to do loops in JavaScript
QUESTION:
I have stumbled into several methods of looping in JavaScript, what I like the most is: for(var i = 0; i < a.length; i++){ var element = a[i]; } But as tested here ( http://www.robertnyman.com/2008/04/11/javascript-loop-performance/ ), it should probably ... | [
"javascript",
"jquery",
"loops",
"macros"
] | 29 | 37 | 3,096 | 9 | 0 | 2008-10-11T01:21:18.397000 | 2008-10-11T01:35:12.737000 |
193,560 | 193,562 | Writing a compiler in its own language | Intuitively, it would seems that a compiler for language Foo cannot itself be written in Foo. More specifically, the first compiler for language Foo cannot be written in Foo, but any subsequent compiler could be written for Foo. But is this actually true? I have some very vague recollection of reading about a language ... | This is called "bootstrapping". You must first build a compiler (or interpreter) for your language in some other language (usually Java or C). Once that is done, you can write a new version of the compiler in language Foo. You use the first bootstrap compiler to compile the compiler, and then use this compiled compiler... | Writing a compiler in its own language Intuitively, it would seems that a compiler for language Foo cannot itself be written in Foo. More specifically, the first compiler for language Foo cannot be written in Foo, but any subsequent compiler could be written for Foo. But is this actually true? I have some very vague re... | TITLE:
Writing a compiler in its own language
QUESTION:
Intuitively, it would seems that a compiler for language Foo cannot itself be written in Foo. More specifically, the first compiler for language Foo cannot be written in Foo, but any subsequent compiler could be written for Foo. But is this actually true? I have ... | [
"compiler-construction",
"bootstrapping"
] | 234 | 268 | 46,810 | 14 | 0 | 2008-10-11T01:30:56.600000 | 2008-10-11T01:34:48.493000 |
193,602 | 193,623 | Simple Java web services | Does anyone know of a really simple way of publishing Java methods as web services? I don't really want the overhead of using Tomcat or Jetty or any of the other container frameworks. Scenario: I've got a set of Java methods in a service type application that I want to access from other machines on the local LAN. | Well, Tomcat or Jetty may be overkill for publishing just some methods as a web service. But on the other hand its not too complicated and they do the job, so why not? I had a similar problem not too long ago and used a Tomcat together with Axis2. Just download Tomcat, unpack it, deploy the Axis2 WAR. To publish a webs... | Simple Java web services Does anyone know of a really simple way of publishing Java methods as web services? I don't really want the overhead of using Tomcat or Jetty or any of the other container frameworks. Scenario: I've got a set of Java methods in a service type application that I want to access from other machine... | TITLE:
Simple Java web services
QUESTION:
Does anyone know of a really simple way of publishing Java methods as web services? I don't really want the overhead of using Tomcat or Jetty or any of the other container frameworks. Scenario: I've got a set of Java methods in a service type application that I want to access ... | [
"java",
"web-services",
"remoting"
] | 3 | 6 | 1,642 | 5 | 0 | 2008-10-11T02:12:36.423000 | 2008-10-11T04:05:37.240000 |
193,603 | 193,667 | Simple wireframe format? | I'm looking for a simple file format to use for wireframe models. I am aware of VRML, u3D, etc, but these seem heavyweight for my needs. My criterea are: Must have a clear spec. Either open or very well established/documented. I only need (want) simple models - vertices and edges. I don't want to handle faces or object... | I don't know of any formats that actively target wireframe views. (Edge/vertex only) You'll almost always have to deal with faces at the very least. The fortunate part there is that unless you have a very specific need for nothing but an edge list wireframe rendering can be done with just about any API from a face list... | Simple wireframe format? I'm looking for a simple file format to use for wireframe models. I am aware of VRML, u3D, etc, but these seem heavyweight for my needs. My criterea are: Must have a clear spec. Either open or very well established/documented. I only need (want) simple models - vertices and edges. I don't want ... | TITLE:
Simple wireframe format?
QUESTION:
I'm looking for a simple file format to use for wireframe models. I am aware of VRML, u3D, etc, but these seem heavyweight for my needs. My criterea are: Must have a clear spec. Either open or very well established/documented. I only need (want) simple models - vertices and ed... | [
"opengl",
"3d",
"file-format",
"wireframe"
] | 6 | 3 | 3,000 | 5 | 0 | 2008-10-11T02:12:38.200000 | 2008-10-11T04:59:26.507000 |
193,630 | 194,262 | Best approach for using AJAX loaders? | I've implemented a few poor solutions for bringing up an AJAX loader before dynamically updating a content DIV, but none seem to be "universal", and I find each time I do it I'm reworking it. If I have a DIV with content that updates depending on what a user clicks on the page, and I want to display the loader over thi... | Some JavaScript libraries allow listening to opening and closing requests. Check out Prototype's request Responder http://www.prototypejs.org/api/ajax/responders. You would do something like this: Ajax.Responders.register({ onCreate: function() { $('loader').show(); Ajax.activeRequestCount++; }, onComplete: function() ... | Best approach for using AJAX loaders? I've implemented a few poor solutions for bringing up an AJAX loader before dynamically updating a content DIV, but none seem to be "universal", and I find each time I do it I'm reworking it. If I have a DIV with content that updates depending on what a user clicks on the page, and... | TITLE:
Best approach for using AJAX loaders?
QUESTION:
I've implemented a few poor solutions for bringing up an AJAX loader before dynamically updating a content DIV, but none seem to be "universal", and I find each time I do it I'm reworking it. If I have a DIV with content that updates depending on what a user click... | [
"ajax",
"loader"
] | 2 | 2 | 2,055 | 2 | 0 | 2008-10-11T04:17:20.273000 | 2008-10-11T16:17:00.353000 |
193,634 | 193,637 | HTML footer problem | Is it possible to create a footer div that sits at the bottom of a site regardless of how much information is present in the middle? Currently the div I have is positioned depending on how much content i have in the body. See also: How do you get the footer to stay at the bottom of a Web page? | I am by no means a css expert, but this works for me across the major browsers:.d_footer { position:fixed; bottom:0px; background-color: #336699; width:100%; text-align:center; padding-top:5px; padding-bottom:5px; color:#ffffff; } | HTML footer problem Is it possible to create a footer div that sits at the bottom of a site regardless of how much information is present in the middle? Currently the div I have is positioned depending on how much content i have in the body. See also: How do you get the footer to stay at the bottom of a Web page? | TITLE:
HTML footer problem
QUESTION:
Is it possible to create a footer div that sits at the bottom of a site regardless of how much information is present in the middle? Currently the div I have is positioned depending on how much content i have in the body. See also: How do you get the footer to stay at the bottom of... | [
"html",
"footer"
] | 10 | 11 | 9,499 | 4 | 0 | 2008-10-11T04:18:45.170000 | 2008-10-11T04:20:58.427000 |
193,651 | 193,972 | Testing Delphi DLL crashes VB6 IDE | I've had my first go at writing a DLL in Delphi. So far so good. By using a typelib I've been able to pass Widestrings to and from the DLL without difficulty. What's curious at the moment is that I'm using VB6 as the testbed, and every time I run a test within the IDE, the program runs and then the IDE process suddenly... | To elaborate on GSerg's answer: result:= PWideString(s); you'd think it would be ok because s was initialized with a string literal... but wide strings in Delphi are not reference counted like normal strings, so s actually holds a bit of dynamically allocated heap memory, and as soon as the function returns this memory... | Testing Delphi DLL crashes VB6 IDE I've had my first go at writing a DLL in Delphi. So far so good. By using a typelib I've been able to pass Widestrings to and from the DLL without difficulty. What's curious at the moment is that I'm using VB6 as the testbed, and every time I run a test within the IDE, the program run... | TITLE:
Testing Delphi DLL crashes VB6 IDE
QUESTION:
I've had my first go at writing a DLL in Delphi. So far so good. By using a typelib I've been able to pass Widestrings to and from the DLL without difficulty. What's curious at the moment is that I'm using VB6 as the testbed, and every time I run a test within the ID... | [
"delphi",
"dll",
"vb6",
"typelib"
] | 4 | 1 | 2,468 | 5 | 0 | 2008-10-11T04:36:02.140000 | 2008-10-11T11:18:54.527000 |
193,656 | 232,165 | Is it necessary for Qt::paintEvent to be reentrant? | Can I put the painter into the class variables?: protected: QPainter *myPainter;...
void MyWidget::paintEvent(QPaintEvent *event) { myPainter = new QPainter(this); | A new anser to address more reentrancy more specifically... danatel left the following comment to this message (in part): By reentrancy I mean this specific situation: 1) paintEvent handler saves a QPainter to a class variable. 2) paintEvent handler calls subroutines to draw something 3) one of the subroutines calls a ... | Is it necessary for Qt::paintEvent to be reentrant? Can I put the painter into the class variables?: protected: QPainter *myPainter;...
void MyWidget::paintEvent(QPaintEvent *event) { myPainter = new QPainter(this); | TITLE:
Is it necessary for Qt::paintEvent to be reentrant?
QUESTION:
Can I put the painter into the class variables?: protected: QPainter *myPainter;...
void MyWidget::paintEvent(QPaintEvent *event) { myPainter = new QPainter(this);
ANSWER:
A new anser to address more reentrancy more specifically... danatel left the... | [
"qt"
] | 1 | 3 | 2,148 | 3 | 0 | 2008-10-11T04:40:33.767000 | 2008-10-24T01:10:57.617000 |
193,663 | 193,668 | Any alternative to ASP.NET 'Page Templates'? | Classic ASP had 'server side includes' so that one could easily design a generic layout for the header, footer, left or right side bar. In ASP.NET, I think we must use 'Page Templates'. Although most people say that it is easy to use, I find it rather complicated, as we must copy the whole HTML code inside the 'Render'... | I would have thought Master Pages were the standard approach in ASP.NET (2.0 and later). Design the master page in the designer. Designate the content area or areas within this master page. Then simply design separate "content" pages and indicate the original master page in the Page directive. Note this is all visually... | Any alternative to ASP.NET 'Page Templates'? Classic ASP had 'server side includes' so that one could easily design a generic layout for the header, footer, left or right side bar. In ASP.NET, I think we must use 'Page Templates'. Although most people say that it is easy to use, I find it rather complicated, as we must... | TITLE:
Any alternative to ASP.NET 'Page Templates'?
QUESTION:
Classic ASP had 'server side includes' so that one could easily design a generic layout for the header, footer, left or right side bar. In ASP.NET, I think we must use 'Page Templates'. Although most people say that it is easy to use, I find it rather compl... | [
"asp.net",
".net"
] | 3 | 12 | 2,114 | 5 | 0 | 2008-10-11T04:55:24.190000 | 2008-10-11T04:59:57.160000 |
193,677 | 194,234 | What ideas do you think can it be applied to this GUI to make it more effective for real people usage? | I am talking about Google Text Translation User Interface, in Google Language Tools. I like the fact that you can get translations of text for a lot of languages. However, I think is not so good always to show all options of translation. I believe is preferably to show, in first instance, only the most frequent options... | I've been frustrated with this interface as well. I think it would be a good idea to (a) use cookies to give preference to the languages this user has selected in the past; and (b) to display a limited list (4-8 languages) of the most common languages, with a "more..." option that expands the list. I really appreciate ... | What ideas do you think can it be applied to this GUI to make it more effective for real people usage? I am talking about Google Text Translation User Interface, in Google Language Tools. I like the fact that you can get translations of text for a lot of languages. However, I think is not so good always to show all opt... | TITLE:
What ideas do you think can it be applied to this GUI to make it more effective for real people usage?
QUESTION:
I am talking about Google Text Translation User Interface, in Google Language Tools. I like the fact that you can get translations of text for a lot of languages. However, I think is not so good alwa... | [
"javascript",
"user-interface"
] | 0 | 1 | 242 | 6 | 0 | 2008-10-11T05:10:47.357000 | 2008-10-11T15:54:39.103000 |
193,682 | 193,685 | phpBB equivalent for Ruby on Rails | I'm looking for Forum software similar to phpBB, but intended to run within a RoR application. I'm looking for a list of sites, along with one recommendation for which one is currently the ideal choice (ease of setup, simplicity, aesthetics). | RForum? Used by ruby-forum.com. e: There's also Beast, but it looks very minimal. | phpBB equivalent for Ruby on Rails I'm looking for Forum software similar to phpBB, but intended to run within a RoR application. I'm looking for a list of sites, along with one recommendation for which one is currently the ideal choice (ease of setup, simplicity, aesthetics). | TITLE:
phpBB equivalent for Ruby on Rails
QUESTION:
I'm looking for Forum software similar to phpBB, but intended to run within a RoR application. I'm looking for a list of sites, along with one recommendation for which one is currently the ideal choice (ease of setup, simplicity, aesthetics).
ANSWER:
RForum? Used by... | [
"ruby-on-rails",
"user-forums"
] | 4 | 3 | 1,838 | 2 | 0 | 2008-10-11T05:14:31.140000 | 2008-10-11T05:21:00.877000 |
193,701 | 193,713 | What are best practices for developing consistent libraries? | I am working on developing a pair of libraries to work with a REST API. Because I need to be able to use the API in very different settings I'm currently planning to have a version in PHP (for web applications) and a second version in Python (for desktop applications, and long running processes). Are there any best pra... | So, the problem with developing parallel libraries in different languages is that often times different languages will have different idioms for the same task. I know this from personal experience, having ported a library from Python to PHP. Idioms aren't just naming: for example, Python has a good deal of magic you ca... | What are best practices for developing consistent libraries? I am working on developing a pair of libraries to work with a REST API. Because I need to be able to use the API in very different settings I'm currently planning to have a version in PHP (for web applications) and a second version in Python (for desktop appl... | TITLE:
What are best practices for developing consistent libraries?
QUESTION:
I am working on developing a pair of libraries to work with a REST API. Because I need to be able to use the API in very different settings I'm currently planning to have a version in PHP (for web applications) and a second version in Python... | [
"php",
"python",
"api",
"rest"
] | 3 | 6 | 528 | 6 | 0 | 2008-10-11T05:34:54.860000 | 2008-10-11T05:46:00.297000 |
193,703 | 193,752 | How is tr1::reference_wrapper useful? | recently I've been reading through Scott Meyers's excellent Effective C++ book. In one of the last tips he covered some of the features from TR1 - I knew many of them via Boost. However, there was one that I definitely did NOT recognize: tr1::reference_wrapper. How and when would I use tr1::reference_wrapper? | It's like boost::ref, as far as I know. Basically, a reference which can be copied. Very useful when binding to functions where you need to pass parameters by reference. For example (using boost syntax): void Increment( int& iValue ) { iValue++; }
int iVariable = 0; boost::function< void () > fIncrementMyVariable = bo... | How is tr1::reference_wrapper useful? recently I've been reading through Scott Meyers's excellent Effective C++ book. In one of the last tips he covered some of the features from TR1 - I knew many of them via Boost. However, there was one that I definitely did NOT recognize: tr1::reference_wrapper. How and when would I... | TITLE:
How is tr1::reference_wrapper useful?
QUESTION:
recently I've been reading through Scott Meyers's excellent Effective C++ book. In one of the last tips he covered some of the features from TR1 - I knew many of them via Boost. However, there was one that I definitely did NOT recognize: tr1::reference_wrapper. Ho... | [
"c++",
"stl",
"boost",
"tr1"
] | 21 | 17 | 8,215 | 2 | 0 | 2008-10-11T05:36:24.343000 | 2008-10-11T06:26:39.513000 |
193,707 | 984,029 | How to store a recurring time window | What is a preferred way to store recurring time windows? For example. If I have a calendar system where I need to be able to accommodate daily, weekly or monthly recurring events, what sort of time management system is best? How is this best represented in a database? More Details The Specific goal of this is to provid... | This is long delayed, but after much testing and many heartaches, we decided on a certain scheme to make this work. For the needs of our system, we are required only to recur on a weekly basis if at all. The final product will be designed as such. Here is the DB schema id: int(10) window_name: varchar(100) start_date: ... | How to store a recurring time window What is a preferred way to store recurring time windows? For example. If I have a calendar system where I need to be able to accommodate daily, weekly or monthly recurring events, what sort of time management system is best? How is this best represented in a database? More Details T... | TITLE:
How to store a recurring time window
QUESTION:
What is a preferred way to store recurring time windows? For example. If I have a calendar system where I need to be able to accommodate daily, weekly or monthly recurring events, what sort of time management system is best? How is this best represented in a databa... | [
"database",
"timezone"
] | 4 | 1 | 489 | 2 | 0 | 2008-10-11T05:42:03.003000 | 2009-06-11T22:10:26.863000 |
193,708 | 193,742 | What is a good use case for tr1::result_of? | I hear that tr1::result_of gets used frequently inside of Boost... I'm wondering if there are any good (simple) use cases for tr1::result_of I can use at home. | A description of result_of is given at open_std.org. Microsoft has a quick example of a unit test wrapper that uses result_of. | What is a good use case for tr1::result_of? I hear that tr1::result_of gets used frequently inside of Boost... I'm wondering if there are any good (simple) use cases for tr1::result_of I can use at home. | TITLE:
What is a good use case for tr1::result_of?
QUESTION:
I hear that tr1::result_of gets used frequently inside of Boost... I'm wondering if there are any good (simple) use cases for tr1::result_of I can use at home.
ANSWER:
A description of result_of is given at open_std.org. Microsoft has a quick example of a u... | [
"c++",
"stl",
"boost",
"tr1",
"use-case"
] | 3 | 4 | 1,894 | 3 | 0 | 2008-10-11T05:42:26.077000 | 2008-10-11T06:12:13.910000 |
193,716 | 193,721 | How do you organize unit tests into packages? | As a matter of fact you have smth like /java/src and /java/test. But then, how do you name packages/classes the unittests go to? The same as classes they are written against? And when refactoring comes, do you manually rename in /test? Please share your experience. | I keep the tests in the same package as the class they are testing. This allows me to setup tests using package private members (when required). It also provides a nice, easy to remember convention. When I refactor, I usually do manually refactor the corresponding test classes. There was some IDE a while back that had ... | How do you organize unit tests into packages? As a matter of fact you have smth like /java/src and /java/test. But then, how do you name packages/classes the unittests go to? The same as classes they are written against? And when refactoring comes, do you manually rename in /test? Please share your experience. | TITLE:
How do you organize unit tests into packages?
QUESTION:
As a matter of fact you have smth like /java/src and /java/test. But then, how do you name packages/classes the unittests go to? The same as classes they are written against? And when refactoring comes, do you manually rename in /test? Please share your ex... | [
"unit-testing",
"packaging"
] | 6 | 2 | 270 | 2 | 0 | 2008-10-11T05:49:54.860000 | 2008-10-11T05:52:01.393000 |
193,728 | 193,753 | Free XML Formatting tool | Is there a free XML formatting (indent) tool available where I can past an XML string and have it formatted so I can read the XML document correctly? Thanks Edit ~ I am using XML Notepad on Windows XP. | I believe that Notepad++ has this feature. Edit (for newer versions) Install the "XML Tools" plugin (Menu Plugins, Plugin Manager) Then run: Menu Plugins, Xml Tools, Pretty Print (XML only - with line breaks) Original answer (for older versions of Notepad++) Notepad++ menu: TextFX -> HTML Tidy -> Tidy: Reindent XML Thi... | Free XML Formatting tool Is there a free XML formatting (indent) tool available where I can past an XML string and have it formatted so I can read the XML document correctly? Thanks Edit ~ I am using XML Notepad on Windows XP. | TITLE:
Free XML Formatting tool
QUESTION:
Is there a free XML formatting (indent) tool available where I can past an XML string and have it formatted so I can read the XML document correctly? Thanks Edit ~ I am using XML Notepad on Windows XP.
ANSWER:
I believe that Notepad++ has this feature. Edit (for newer version... | [
"xml",
"xml-formatting"
] | 226 | 352 | 175,574 | 12 | 0 | 2008-10-11T05:56:06.470000 | 2008-10-11T06:30:37.510000 |
193,731 | 193,740 | How to convert UTC time to Time in any other time zone in C# | I am working in C#.net -.Net fx is 2.0 which doesnot support converting between different time zones. I have wrote a scheduler based on UTC but it is giving errors of 1 hour in the DTS periods for London. I need some solution so that I can gat the correct time in any timezone relative to UTC with correct DST adjustment... | Is changing to.NET 3.5 absolutely out of the question? It would make your life much, much easier. Otherwise, you're stuck with the plain TimeZone and DaylightSavings classes, as well as having to fetch the known timezones using P/Invoke. William Stacey has a blog post with some code to do this - but I haven't tried it,... | How to convert UTC time to Time in any other time zone in C# I am working in C#.net -.Net fx is 2.0 which doesnot support converting between different time zones. I have wrote a scheduler based on UTC but it is giving errors of 1 hour in the DTS periods for London. I need some solution so that I can gat the correct tim... | TITLE:
How to convert UTC time to Time in any other time zone in C#
QUESTION:
I am working in C#.net -.Net fx is 2.0 which doesnot support converting between different time zones. I have wrote a scheduler based on UTC but it is giving errors of 1 hour in the DTS periods for London. I need some solution so that I can g... | [
"c#",
"time",
"timezone"
] | 9 | 10 | 14,371 | 1 | 0 | 2008-10-11T06:00:41.953000 | 2008-10-11T06:09:45.897000 |
193,754 | 1,992,516 | Suggestions for requirements development tools that support CMMI objectives | We are currently evolving our development processes in an effort to become CMMI compliant (we will start with level 2, and move up from there). We are trying to locate a tool that is inexpensive (or free) that will allow us to develop requirements in the spirit of CMMI. In other words, we need to be able to enter our r... | INCOSE is an excellent resource for this sort of question. They maintain a Tools Database that indexes COTS and GOTS System Engineering tools. Some of the tools that perform requirements management also have high-level System Eng functionality (CORE, for example) whereas others are more narrowly-focused (i.e. RequisteP... | Suggestions for requirements development tools that support CMMI objectives We are currently evolving our development processes in an effort to become CMMI compliant (we will start with level 2, and move up from there). We are trying to locate a tool that is inexpensive (or free) that will allow us to develop requireme... | TITLE:
Suggestions for requirements development tools that support CMMI objectives
QUESTION:
We are currently evolving our development processes in an effort to become CMMI compliant (we will start with level 2, and move up from there). We are trying to locate a tool that is inexpensive (or free) that will allow us to... | [
"process-management",
"cmmi"
] | 4 | 2 | 2,213 | 4 | 0 | 2008-10-11T06:31:12.127000 | 2010-01-02T19:13:53.917000 |
193,768 | 194,090 | Page breaks in Dynamic Ax Reports | How do you insert page breaks in Dynamic AX reports? | Call element.newPage(). If your report has no code on it and you want a page break before a particular section, add an executeSection method and call element.newpage() before the call to super(). public void executeSection() {; element.newPage(); super(); } | Page breaks in Dynamic Ax Reports How do you insert page breaks in Dynamic AX reports? | TITLE:
Page breaks in Dynamic Ax Reports
QUESTION:
How do you insert page breaks in Dynamic AX reports?
ANSWER:
Call element.newPage(). If your report has no code on it and you want a page break before a particular section, add an executeSection method and call element.newpage() before the call to super(). public voi... | [
"x++",
"axapta"
] | 6 | 7 | 6,344 | 1 | 0 | 2008-10-11T06:51:06.640000 | 2008-10-11T13:55:05.800000 |
193,771 | 193,782 | How best to use jQuery: with HTML or CSS for formatting | As part of learning jQuery, I decided to do a simple tic-tac-toe game in JavaScript and, at the moment, I'm using a HTML table for spacing and using graphic images within the table. The images are either a small circle or a big X or O. When the user clicks on a circle, it changes to an X or O then checks whether the ga... | Go ahead and use tables for layout -- tic-tac-toe is a grid, so it makes sense to use a grid for containing the play area. CSS can be used for colors, fonts, borders etc. You can use CSS to override the colors and underline styles of anchors, but it's easier IMO to just use images. PNG would be better than JPEG, becaus... | How best to use jQuery: with HTML or CSS for formatting As part of learning jQuery, I decided to do a simple tic-tac-toe game in JavaScript and, at the moment, I'm using a HTML table for spacing and using graphic images within the table. The images are either a small circle or a big X or O. When the user clicks on a ci... | TITLE:
How best to use jQuery: with HTML or CSS for formatting
QUESTION:
As part of learning jQuery, I decided to do a simple tic-tac-toe game in JavaScript and, at the moment, I'm using a HTML table for spacing and using graphic images within the table. The images are either a small circle or a big X or O. When the u... | [
"jquery",
"html",
"css"
] | 4 | 5 | 4,652 | 7 | 0 | 2008-10-11T06:57:29.343000 | 2008-10-11T07:02:50.110000 |
193,780 | 193,860 | How can I find all the tables in MySQL with specific column names in them? | I have 2-3 different column names that I want to look up in the entire database and list out all tables which have those columns. Is there any easy script? | To get all tables with columns columnA or ColumnB in the database YourDatabase: SELECT DISTINCT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME IN ('columnA','ColumnB') AND TABLE_SCHEMA='YourDatabase'; | How can I find all the tables in MySQL with specific column names in them? I have 2-3 different column names that I want to look up in the entire database and list out all tables which have those columns. Is there any easy script? | TITLE:
How can I find all the tables in MySQL with specific column names in them?
QUESTION:
I have 2-3 different column names that I want to look up in the entire database and list out all tables which have those columns. Is there any easy script?
ANSWER:
To get all tables with columns columnA or ColumnB in the datab... | [
"mysql",
"information-schema"
] | 1,042 | 1,680 | 720,237 | 11 | 0 | 2008-10-11T07:02:05.463000 | 2008-10-11T08:42:40.427000 |
193,789 | 193,823 | Microphone access in Python | Can I access a users microphone in Python? Sorry I forgot not everyone is a mind reader: Windows at minimum XP but Vista support would be VERY good. | Best way to go about it would be to use the ctypes library and use WinMM from that. mixerOpen will open a microphone device and you can read the data easily from there. Should be very straightforward. | Microphone access in Python Can I access a users microphone in Python? Sorry I forgot not everyone is a mind reader: Windows at minimum XP but Vista support would be VERY good. | TITLE:
Microphone access in Python
QUESTION:
Can I access a users microphone in Python? Sorry I forgot not everyone is a mind reader: Windows at minimum XP but Vista support would be VERY good.
ANSWER:
Best way to go about it would be to use the ctypes library and use WinMM from that. mixerOpen will open a microphone... | [
"python",
"windows",
"microphone"
] | 10 | 4 | 12,409 | 4 | 0 | 2008-10-11T07:06:48.107000 | 2008-10-11T07:47:44.547000 |
193,802 | 193,814 | C# and .NET FOLDERID | How do I use Windows Vista's FOLDERID API in order to retrieve filepaths for "known folders" such as System or Windows? I've seen some APIs but I don't know how to import them properly. And yes, I know this is a very newbie question, but I spent a half hour googling and couldn't find the answer; I'd also appreciate a w... | Take a look at PInvoke SHGetKnownFolderPath There's also a managed API: Environment.GetFolderPath but it doesn't contain all the folders. | C# and .NET FOLDERID How do I use Windows Vista's FOLDERID API in order to retrieve filepaths for "known folders" such as System or Windows? I've seen some APIs but I don't know how to import them properly. And yes, I know this is a very newbie question, but I spent a half hour googling and couldn't find the answer; I'... | TITLE:
C# and .NET FOLDERID
QUESTION:
How do I use Windows Vista's FOLDERID API in order to retrieve filepaths for "known folders" such as System or Windows? I've seen some APIs but I don't know how to import them properly. And yes, I know this is a very newbie question, but I spent a half hour googling and couldn't f... | [
"c#",
".net",
"winapi"
] | 1 | 10 | 574 | 2 | 0 | 2008-10-11T07:24:47.883000 | 2008-10-11T07:39:29.710000 |
193,809 | 194,111 | BGGA closures as a bolt-on solution to java? | Yesterday @headius / Charles Nutter came up with a very interesting idea on twitter: @danny_l Gafter made the same mistake; I don't mean a forked Java any more than Groovy is a fork. I want a "mostly Java" with closures. or the reply by @danny_l / Danny Lagrouw: @headius or could the BGGA prototype be "bolted on" any f... | The word 'preprocessor' takes me back to C++ and it scares me. There is a weird dichotomy: I celebrate the diverse garden of languages on the JVM, but I think that "Mama Bear" (aka Java) should not become fragmented like this. We need a solid foundation. That said, I am in favour of BGGA closures. I also think a langua... | BGGA closures as a bolt-on solution to java? Yesterday @headius / Charles Nutter came up with a very interesting idea on twitter: @danny_l Gafter made the same mistake; I don't mean a forked Java any more than Groovy is a fork. I want a "mostly Java" with closures. or the reply by @danny_l / Danny Lagrouw: @headius or ... | TITLE:
BGGA closures as a bolt-on solution to java?
QUESTION:
Yesterday @headius / Charles Nutter came up with a very interesting idea on twitter: @danny_l Gafter made the same mistake; I don't mean a forked Java any more than Groovy is a fork. I want a "mostly Java" with closures. or the reply by @danny_l / Danny Lag... | [
"java",
"closures",
"bgga"
] | 5 | 3 | 660 | 2 | 0 | 2008-10-11T07:31:05.420000 | 2008-10-11T14:17:54.553000 |
193,810 | 193,817 | How can I upload files without using an HTML <form>? | in a web application I am building I need to upload photos without using a form, otherwise it will come up with form embedded in an outer from which is not permitted in XHTML. I think uploading files is what jQuery.post should be able to do, but I currently can't figure out how to do this using jQuery. | take a look at swfupload, it's a pretty nifty little app that should accomplish what you want. otherwise, you could separate out the forms, and just use css/javascript to reposition them if necessary. | How can I upload files without using an HTML <form>? in a web application I am building I need to upload photos without using a form, otherwise it will come up with form embedded in an outer from which is not permitted in XHTML. I think uploading files is what jQuery.post should be able to do, but I currently can't fig... | TITLE:
How can I upload files without using an HTML <form>?
QUESTION:
in a web application I am building I need to upload photos without using a form, otherwise it will come up with form embedded in an outer from which is not permitted in XHTML. I think uploading files is what jQuery.post should be able to do, but I c... | [
"javascript",
"jquery",
"http",
"upload"
] | 3 | 5 | 5,413 | 4 | 0 | 2008-10-11T07:31:14.140000 | 2008-10-11T07:40:24.450000 |
193,835 | 1,110,562 | Defining operators in Boo | I'm looking to move some of my lighter weight metaprogramming from Nemerle to Boo and I'm trying to figure out how to define custom operators. For example, I can do the following in Nemerle: macro @<-(func, v) { <[ $func($v) ]> } Then these two are equivalent: foo <- 5; foo(5); I can't find a way of doing this in Boo -... | While Boo supports operator overloading by defining the appropriate static operator function ( op_addition ), and also supports syntactic macros, it does not support creating custom operators at this time. | Defining operators in Boo I'm looking to move some of my lighter weight metaprogramming from Nemerle to Boo and I'm trying to figure out how to define custom operators. For example, I can do the following in Nemerle: macro @<-(func, v) { <[ $func($v) ]> } Then these two are equivalent: foo <- 5; foo(5); I can't find a ... | TITLE:
Defining operators in Boo
QUESTION:
I'm looking to move some of my lighter weight metaprogramming from Nemerle to Boo and I'm trying to figure out how to define custom operators. For example, I can do the following in Nemerle: macro @<-(func, v) { <[ $func($v) ]> } Then these two are equivalent: foo <- 5; foo(5... | [
"macros",
"metaprogramming",
"boo",
"nemerle"
] | 1 | 5 | 692 | 2 | 0 | 2008-10-11T08:01:06.547000 | 2009-07-10T16:23:48.783000 |
193,838 | 2,429,033 | Rails check if yield :area is defined in content_for | I want to do a conditional rendering at the layout level based on the actual template has defined content_for(:an__area), any idea how to get this done? | @content_for_whatever is deprecated. Use content_for? instead, like this: <% if content_for?(:whatever) %> <%= yield(:whatever) %> <% end %> | Rails check if yield :area is defined in content_for I want to do a conditional rendering at the layout level based on the actual template has defined content_for(:an__area), any idea how to get this done? | TITLE:
Rails check if yield :area is defined in content_for
QUESTION:
I want to do a conditional rendering at the layout level based on the actual template has defined content_for(:an__area), any idea how to get this done?
ANSWER:
@content_for_whatever is deprecated. Use content_for? instead, like this: <% if content... | [
"ruby-on-rails",
"layout",
"yield"
] | 106 | 233 | 37,800 | 7 | 0 | 2008-10-11T08:09:21.770000 | 2010-03-11T22:05:59.870000 |
193,855 | 193,866 | Balloon not showing up with NotifyIcon.ShowBalloonTip | I'm having trouble with something that I thought would be easy... I can't get my NotifyIcon to show a balloon tip. The basic code is: public void ShowSystrayBubble(string msg, int ms) { sysTrayIcon.Visible = true; sysTrayIcon.ShowBalloonTip(20, "Title", "Text", ToolTipIcon.None); } Nothing happens when I execute this c... | I had foiled myself... This turned out to be an issue at the OS level. I had previously disabled all balloons via the registry a few weeks ago. You can read the information here on how to disable balloon tips in WinXP: http://support.microsoft.com/kb/307729 To enable them, just set the registry value to 1 instead and l... | Balloon not showing up with NotifyIcon.ShowBalloonTip I'm having trouble with something that I thought would be easy... I can't get my NotifyIcon to show a balloon tip. The basic code is: public void ShowSystrayBubble(string msg, int ms) { sysTrayIcon.Visible = true; sysTrayIcon.ShowBalloonTip(20, "Title", "Text", Tool... | TITLE:
Balloon not showing up with NotifyIcon.ShowBalloonTip
QUESTION:
I'm having trouble with something that I thought would be easy... I can't get my NotifyIcon to show a balloon tip. The basic code is: public void ShowSystrayBubble(string msg, int ms) { sysTrayIcon.Visible = true; sysTrayIcon.ShowBalloonTip(20, "Ti... | [
"c#",
".net",
"notifyicon",
"systray"
] | 2 | 9 | 13,225 | 3 | 0 | 2008-10-11T08:36:09.643000 | 2008-10-11T08:45:48.937000 |
193,862 | 193,894 | Boo vs. IronPython | After having looked at each of these two projects, it seems that both are VERY similar. Both run on top of the CLI, both have python style syntax, both use.NET instead of the standard python libraries. So, what are the differences between them and advantages of each? | The main difference as I see it is that Boo is statically typed, meaning the type of a variable is inferred on its first assignment and is fixed from there - while IronPython has the "real" dynamic behaviour of normal Python code. IronPython is officially maintained by Microsoft now and targets the new Dynamic Language... | Boo vs. IronPython After having looked at each of these two projects, it seems that both are VERY similar. Both run on top of the CLI, both have python style syntax, both use.NET instead of the standard python libraries. So, what are the differences between them and advantages of each? | TITLE:
Boo vs. IronPython
QUESTION:
After having looked at each of these two projects, it seems that both are VERY similar. Both run on top of the CLI, both have python style syntax, both use.NET instead of the standard python libraries. So, what are the differences between them and advantages of each?
ANSWER:
The ma... | [
"ironpython",
"boo"
] | 26 | 25 | 6,435 | 7 | 0 | 2008-10-11T08:44:02.747000 | 2008-10-11T09:30:13.073000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.