text
stringlengths
8
267k
meta
dict
Q: How do I select the Count(*) of an nHibernate Subquery's results I need to do the following for the purposes of paging a query in nHibernate: Select count(*) from (Select e.ID,e.Name from Object as e where...) I have tried the following, select count(*) from Object e where e = (Select distinct e.ID,e.Name from .....
{ "language": "en", "url": "https://stackoverflow.com/questions/116188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Where can I find a good primer on network administration? Things like DHCP, IP addresses, configurations...that kind of thing. I have a Google search open, and it seems like there's just so much out there, I'm not sure where to begin. Perhaps there are some especially good websites/books/blogs out there that might h...
{ "language": "en", "url": "https://stackoverflow.com/questions/116189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Before XML became a standard and given all its shortcomings, what made XML so popular? Yes XML is human readable but so is comma delimited text and properties files. XML is bloated, hard to parse, hard to modify in code, plus a ton of other problems that I can think about with it. My questions is what are XML's mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/116195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How do you handle browser specific .js and .css This is not a new topic, but I am curious how everyone is handling either .js or .css that is browser specific. Do you have .js functions that have if/else conditions in them or do you have separate files for each browser? Is this really an issue these days with the...
{ "language": "en", "url": "https://stackoverflow.com/questions/116221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Replication with lots of temporary table writes I've got a database which I intend to replicate for backup reasons (performance is not a problem at the moment). We've set up the replication correctly and tested it and all was fine. Then we realized that it replicates all the writes to the temporary tables, which in...
{ "language": "en", "url": "https://stackoverflow.com/questions/116228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PowerBuilder database connection pool? How-to How to make database connection pool in PowerBuilder (v9+) with... * *...ODBC? *...SQL Server? *...Oracle? A: At this risk of self-promotion, these may get you started for Oracle: * *PB9/Oracle 9i *PB11.5/Oracle 11g If you go to Sybase Manuals (intuitive, eh? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to add a Numeric Up / Down control to a .Net StatusStrip container I'm looking to add a numeric up / down control to a .Net StatusStrip. Unfortunately, it isn't listed as an option in the UI designer. Is there a way to do this? A: You can use a ToolStripControlHost class to host a custom ( NumericUpDown for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Software for managing medium sized projects So, at my current job we're usually 1-3 developers, 1-2 art directors and 1 project manager on each project, with the smallest ones just being one of each and the larger ones being three developers and two art directors. I'm looking for a software, combination of softwares...
{ "language": "en", "url": "https://stackoverflow.com/questions/116261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ArrayList in Java and inputting I'm used to python, so this is a bit confusing to me. I'm trying to take in input, line-by-line, until a user inputs a certain number. The numbers will be stored in an array to apply some statistical maths to them. Currently, I have a main class, the stats classes, and an "reading" cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/116276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: what is the better way to handle errors in VB6 I have VB6 application , I want to put some good error handling finction in it which can tell me what was the error and exact place when it happened , can anyone suggest the good way to do this A: I use a home-grown Error.bas module to make reporting and re-raising l...
{ "language": "en", "url": "https://stackoverflow.com/questions/116289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: What is the best IDE for PHP? I'm a PHP developer and now I use Notepad++ for code editing, but lately I've been searching for an IDE to ease my work. I've looked into Eclipse, Aptana Studio and several others, but I'm not really decided, they all look nice enough but a bit complicated. I'm sure it'll all get easy o...
{ "language": "en", "url": "https://stackoverflow.com/questions/116292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: How do you handle code promotion in a Sharepoint environment? In a typical enterprise scenario with in-house development, you might have dev, staging, and production environments. You might use SVN to contain ongoing development work in a trunk, with patches being stored in branches, and your released code going in...
{ "language": "en", "url": "https://stackoverflow.com/questions/116294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SVN Client integrated with OS X's Finder Is there a TortoiseSVN equivalent for OS X? I'm looking for an SVN client that will integrate with OS X's Finder and be added as Context menu items. Update: Just found SmartSVN. Anyone with feedback on it? A: There is SCPlugin which is the closest match to TortoiseSVN on OS ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: open solaris code vs solaris code How compatible is code written under Solaris with Open Solaris ? I would be interested specifically in some kernel modules . A: I think it is hard to quantify software compatibility, but I'd say code written for Solaris is quite forward compatible with OpenSolaris kernel. OpenSolar...
{ "language": "en", "url": "https://stackoverflow.com/questions/116309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Crystal Reports .Net Guidance We have been using .Net and Visual Studio for the last six years, and early on developed a number of web based reporting applications using the .Net version of Crystal Reports that was bundled with Visual Studio. I'm unimpressed with that product: It seems incredibly difficult and convo...
{ "language": "en", "url": "https://stackoverflow.com/questions/116324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Dragging HTML cells over the table using Javascript Folks, I need a solution that allows drag-and-drop cell over the table. The cells can be of different colspans, so when the cell is dropped into the middle of another cell, which is bigger, the following steps should be performed: * *Another td element is creat...
{ "language": "en", "url": "https://stackoverflow.com/questions/116338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the difference between vmalloc and kmalloc? I've googled around and found most people advocating the use of kmalloc, as you're guaranteed to get contiguous physical blocks of memory. However, it also seems as though kmalloc can fail if a contiguous physical block that you want can't be found. What are the ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/116343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "129" }
Q: Uploading files in Ruby on Rails I have a web application that needs to take a file upload from the user and upload it to a remote server. I can take input from user to server fine via file_field, but can't seem to work out the next step of uploading from server to remote. Net::HTTP doesn't do multipart forms out ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: C compiler for Windows? I'm fine working on Linux using gcc as my C compiler but would like a Windows solution. Any ideas? I've looked at Dev-C++ from Bloodshed but looking for more options. A: GCC is not technically a linux specific compiler. Its a standards compliant c/c++ compiler, and I use it for windows progr...
{ "language": "en", "url": "https://stackoverflow.com/questions/116368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "132" }
Q: Java ME UI libraries I'm developing a Java ME app & need pointers to some really good UI libraries. I did see a few such as Java ME Polish. Are there any more out there? For e.g. ebuddy's java ME app has an amazing UI and so is gmail's java ME app. What libraries would they have been using or would have they have de...
{ "language": "en", "url": "https://stackoverflow.com/questions/116394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: SQL Server 2000 Function for record created datetime I was given a task to display when a record in the database was added, however the previous developers never made a field for this, and I can't go back and make up dates for all the existing records. Is there an easy way to extract out a record Creation date from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: A regular expression to remove a given (x)HTML tag from a string Let's say I have a string holding a mess of text and (x)HTML tags. I want to remove all instances of a given tag (and any attributes of that tag), leaving all other tags and text along. What's the best Regex to get this done? Edited to add: Oh, I app...
{ "language": "en", "url": "https://stackoverflow.com/questions/116403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Find potential SQL inject problems in Java/JSP code I'm working for a customer with a huge legacy codebase consisting of various Java en JSP based applications. Most querying is done using the home-build 'orm' system. Some applications use Plain Old JDBC. Some applications are based on Hibernate (yes HQL build with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can my application benefit from temporary tables? I've been reading a little about temporary tables in MySQL but I'm an admitted newbie when it comes to databases in general and MySQL in particular. I've looked at some examples and the MySQL documentation on how to create a temporary table, but I'm trying to de...
{ "language": "en", "url": "https://stackoverflow.com/questions/116423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Can you use key/keyref instead of restriction/enumeration in XML schema? Suppose we have a stylesheet which pulls in metadata using the key() function. In other words we have instance documents like this: <items> <item type="some_type"/> <item type="another_type"/> </items> and a table of additional data we wou...
{ "language": "en", "url": "https://stackoverflow.com/questions/116432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change the location of the netbeans settings directory (~/.netbeans) By default netbeans stores it's settings in a directory called .netbeans under the user's home directory. Is it possible to change the location of this directory (especially under Windows)? Thanks to James Schek I now know the answer (change...
{ "language": "en", "url": "https://stackoverflow.com/questions/116444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Winforms for Mono on Mac, Linux and PC (Redux) (I asked this question in another way, and got some interesting responses but I'm not too convinced.) Is Mono's GtkSharp truly cross-platform? It seems to be Gnome based... how can that work with PC and Mac? Can someone give me examples of a working Mac/PC/Linux app th...
{ "language": "en", "url": "https://stackoverflow.com/questions/116468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Cleaning a string of punctuation in C++ Ok so before I even ask my question I want to make one thing clear. I am currently a student at NIU for Computer Science and this does relate to one of my assignments for a class there. So if anyone has a problem read no further and just go on about your business. Now for any...
{ "language": "en", "url": "https://stackoverflow.com/questions/116469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Should I return a strongly typed dataset from a webservice? Should I expose a strongly typed dataset from a webservice and bind it directly in a client? or are there more sensible ways for asmx web services? I am doing CRUD operations (Create, Read, Update, Delete). I find working with datasets to be frustrating an...
{ "language": "en", "url": "https://stackoverflow.com/questions/116471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Fastest way to see how many bytes are equal between fixed length arrays I have 2 arrays of 16 elements (chars) that I need to "compare" and see how many elements are equal between the two. This routine is going to be used millions of times (a usual run is about 60 or 70 million times), so I need it to be as fast as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Mapping to Dictionary with iBATIS Given a simple statement, such as: <statement id="SelectProducts" resultMap="???"> SELECT * FROM Products </statement> Is it possible to get a list of dictionary objects where the keys are the column names? ie. var list = Mapper.QueryForList<IDictionary<string,string>>("SelectPro...
{ "language": "en", "url": "https://stackoverflow.com/questions/116486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python regular expression to split paragraphs How would one write a regular expression to use in Python to split paragraphs? A paragraph is defined by two line breaks (\n). But one can have any amount of spaces/tabs together with the line breaks, and it still should be considered as a paragraph. I am using Python, s...
{ "language": "en", "url": "https://stackoverflow.com/questions/116494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to get a quick status from the Emacs compilation buffer? By default, emacs 22.1.1 only shows the top of the compilation buffer when you first issue the compile command. I would like it to scroll to the bottom automatically when I use the compile command in order to save keystrokes. This way I can easily get a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: What Oracle privileges do I need to use DBMS_METADATA.GET_DDL? (Excuse any ignorance of mine here - I'm not a seasoned Oracle user.) I'm attempting to use the DBMS_METADATA.GET_DDL function (in conjunction with ALL_OBJECTS or some such) to get the DDL for all of the tables in a particular schema. When I do this (eit...
{ "language": "en", "url": "https://stackoverflow.com/questions/116522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: String vs string In C# there are String objects and string objects. What is the difference between the two? What are the best practices regarding which to use? A: One is System.String the .Net Type and one is specific to C# which turns out to be an alias back to System.String. http://msdn.microsoft.com/en-us/libr...
{ "language": "en", "url": "https://stackoverflow.com/questions/116523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: How to restrict NULL input parameters into oracle stored procedure I have writtent some Oracle storedprocedures in these there are more then 20 input parameters and from them morethen 10 parameters are required , I want all with some value and do not want to accept null values for that , Is there anything that I can...
{ "language": "en", "url": "https://stackoverflow.com/questions/116525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Is there a way to dump the objects in memory from a running ruby process? Killing the processs while obtaining this information would be fine. A: A quick-and-dirty way would be ObjectSpace.each_object{|e| p e}. You could do some tests to determine what you wanted to keep, or Marshal the objects. A: For 1.9.2/1.9.3...
{ "language": "en", "url": "https://stackoverflow.com/questions/116527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What browser is best for testing web standards? When I build a site, I'd like to have at least one browser I can show it off in without any hacks or workarounds, and yet still retain maximum functionality. Knowing that none of the browsers have perfect standards adherence, which one comes closest? Also, are there an...
{ "language": "en", "url": "https://stackoverflow.com/questions/116533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Include only certain libraries on an operating system When writing an app that one wants to have compile on mac, linux and windows, what is the best way of managing the different libraries that will need to be included on the various operating systems. For example, using the glut opengl toolkit requires different in...
{ "language": "en", "url": "https://stackoverflow.com/questions/116535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Best way to handle error messages I'm wondering what is the best way to handle error messages in my application. Currently I'm working on a web application and all error messages are stored in the database and we get them by ID, negative is an error , and positive are success messages. the problem is that is hard t...
{ "language": "en", "url": "https://stackoverflow.com/questions/116542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Open an Emacs buffer when a command tries to open an editor in shell-mode I like to use Emacs' shell mode, but it has a few deficiencies. One of those is that it's not smart enough to open a new buffer when a shell command tries to invoke an editor. For example with the environment variable VISUAL set to vim I get t...
{ "language": "en", "url": "https://stackoverflow.com/questions/116560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: How do you reset ASP.Net AJAX cascading dropdown control (client side) The cascading dropdown control works great except that I am unable to figure out a way to reset the dropdown client-side (in Javascript) My set up is something like this DD1 DD2 DD3 DD4 each DD is dependent on the previous DD and uses webservice...
{ "language": "en", "url": "https://stackoverflow.com/questions/116564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Denormalize an XML schema programmatically I need to take any given valid XML schema (XSD) and denormalize it to a simple form containing no refs, no includes, etc. All simple type definitions should be inline, such that when looking at any given element, all declarations are visible without performing another look...
{ "language": "en", "url": "https://stackoverflow.com/questions/116571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: java get file size efficiently While googling, I see that using java.io.File#length() can be slow. FileChannel has a size() method that is available as well. Is there an efficient way in java to get the file size? A: When I modify your code to use a file accessed by an absolute path instead of a resource, I get a d...
{ "language": "en", "url": "https://stackoverflow.com/questions/116574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "170" }
Q: Debugging Websites in Internet Explorer I have a Website that is really slow and "feels" really bad when using it. The server is fine, it's a clientside issue, I assume because too much JavaScript or Image Requests, but since it's not my own Website, I wonder if there is a way to show and profile the Page from withi...
{ "language": "en", "url": "https://stackoverflow.com/questions/116576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: File System Management Tools Looking for suggestions on file system management tools. We have several terabytes of images, pdfs, excel sheets, etc. We're looking at some sort of software that will help us to manage, archive, etc the images. We don't store all the files information in a database but some are and we ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Opening more than one of the same Mac Application at once I'm developing a Mac App in Java that logs into any one of our client's databases. My users want to have several copies of this program running so they can log into a couple clients at the same time, rather than logging out and logging back in. How can I all...
{ "language": "en", "url": "https://stackoverflow.com/questions/116579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Determining the extended interfaces of a Class I need to determine if a Class object representing an interface extends another interface, ie: package a.b.c.d; public Interface IMyInterface extends a.b.d.c.ISomeOtherInterface{ } according to the spec Class.getSuperClass() will return null for an Interface. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How Do You Clear The IRB Console? How do you clear the IRB console screen? A: On Linux Mint 17 also you can use Ctrl + Shift + L or Ctrl + L to clear the IRB screen. A: Throw this inside %userprofile%\.irbrc and you're good def cls system('cls') end From IRB clear screen on windows. A: puts `clear` Clears the...
{ "language": "en", "url": "https://stackoverflow.com/questions/116593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "202" }
Q: What's the best setup for working with WSO2 WSAS What version of java, eclipse and WPT should I be using? A: Java 2 SDK 5.0 or higher The Release notes tell you all at this site http://wso2.org/project/wsas/java/2.3/docs/tools/ide.html A: WSO2 WSAS is now called WSO2 Application Server and is now in version 4.0.0 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySpace DOM? I've been given the task of doing some work customizing an artist's space in MySpace. It seems that you sort of hack the HTML you want into your edit profile page (which has several empty boxes). The MySpace page, it seems, is already HTML so you can only hack into that. Suggested "tweaks" include incom...
{ "language": "en", "url": "https://stackoverflow.com/questions/116610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why am I getting a "wrong number of arguments (0 for 2)" exception in my Ruby Code? I'm trying to polish up my Ruby by re writing Kent Beck's xUnit Python example from "Test Driven Development: By Example". I've got quite far but now I get the following error when I run which I don't grok. C:\Documents and Settings...
{ "language": "en", "url": "https://stackoverflow.com/questions/116626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Drools project idea needed I was asked to make some drools traning for my teammates. Just to show them how it can be used and how usefull it may be. To do this training I first have to learn Drools, and I figured that the best way to learn it will be small project centered around drools. Any interesting ideas? My ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Hiding Subreports in SQL Report (RDL) I have a bunch of reports that are printed out and mailed to clients. At the top of the report is the return address, left aligned. I was asked to add an optional logo to the report. This logo should be left of the return address. (The logo and all other info is stored in the da...
{ "language": "en", "url": "https://stackoverflow.com/questions/116630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: "SocketException: Unconnected sockets not implemented" with self-signed SSL certificate (I've asked the same question of the jmeter-user mailing list, but I wanted to try here as well - so at the least I can update this with the answer once I find it). I'm having trouble using JMeter to test a Tomcat webapp using a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Speed of online backups with BLOBs In Oracle 8 doing an online backup with BLOBs in the database is extremely slow. By slow, I mean over an hour to backup a database with 100MB of BLOB data. Oracle acknowledged it was slow, but wouldn't fix the problem (so much for paying for support.) Does anyone know if Oracle has...
{ "language": "en", "url": "https://stackoverflow.com/questions/116639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Low Java single process thread limit in Red Hat Linux I'm experiencing an issue on a test machine running Red Hat Linux (kernel version is 2.4.21-37.ELsmp) using Java 1.6 (1.6.0_02 or 1.6.0_04). The problem is, once a certain number of threads are created in a single thread group, the operating system is unwilling o...
{ "language": "en", "url": "https://stackoverflow.com/questions/116640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Project Management software i'm interested in project management software similar to MS Project. the project is a serious rebuild of my software. we have a bug management system already but i need to track project progress. i don't like web-based apps so much because the data is either hosted off-site or i need to...
{ "language": "en", "url": "https://stackoverflow.com/questions/116643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: data access object pattern implementation I would like to implement a data access object pattern in C++, but preferably without using multiple inheritance and/or boost (which my client does not like). Do you have any suggestions? A: OTL (otl.sourceforge.net) is an excellent C++ database library. It's a single inc...
{ "language": "en", "url": "https://stackoverflow.com/questions/116646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: cURL equivalent in JAVA I am tasked with writing an authentication component for an open source JAVA app. We have an in-house authentication widget that uses https. I have some example php code that accesses the widget which uses cURL to handle the transfer. My question is whether or not there is a port of cURL ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: Non-C++ languages for generative programming? C++ is probably the most popular language for static metaprogramming and Java doesn't support it. Are there any other languages besides C++ that support generative programming (programs that create programs)? A: The "D" programming language is C++-like but has much bet...
{ "language": "en", "url": "https://stackoverflow.com/questions/116654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: How do you create an osx application/dmg from a python package? I want to create a mac osx application from python package and then put it in a disk image. Because I load some resources out of the package, the package should not reside in a zip file. The resulting disk image should display the background picture to...
{ "language": "en", "url": "https://stackoverflow.com/questions/116657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Maximum Number of characters with FCKeditor Have you determined a maximum number of characters allowed in FCKEditor? I seem to have hit a wall. It will display the text to be edited, but changes don't get posted back to the server - only the original text gets posted back to the server. I am assuming that the chan...
{ "language": "en", "url": "https://stackoverflow.com/questions/116658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Firebug 1.2 document.cookie inconsistency with Web Developer I have a URI here in which a simple document.cookie query through the console is resulting in three cookies being displayed. I verified this with trivial code such as the following as well: var cookies = document.cookie.split(';'); console.log(cookies.len...
{ "language": "en", "url": "https://stackoverflow.com/questions/116682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What algorithm should I use to hash passwords into my database? Is there anything available that isn't trivially breakable? A: The aforementioned algorithms are cryptographically secure hashing algorithms (but MD5 isn't considered to be secure today). However there are algorithms, that specifically created to deriv...
{ "language": "en", "url": "https://stackoverflow.com/questions/116684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Problem Linking "static" Methods in C++ I want to call a few "static" methods of a CPP class defined in a different file but I'm having linking problems. I created a test-case that recreates my problem and the code for it is below. (I'm completely new to C++, I come from a Java background and I'm a little familiar w...
{ "language": "en", "url": "https://stackoverflow.com/questions/116687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Javascript to extract author/date from SVN keyword substitution SVN keyword substition gives is not pretty. E.g., Last updated: $Date$ by $Author$ yields Last updated: $Date: 2008-09-22 14:38:43 -0400 (Mon, 22 Sep 2008) $ by $Author: cconway $" Does anybody have a Javascript snippet that prettifies things an...
{ "language": "en", "url": "https://stackoverflow.com/questions/116690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: SharePoint Security We have a SharePoint site on it's own domain and are debating using Forms Authentication or Active Directory. Really we would like the power of kerberos with the flexibility and transparancy of a forms authentication (like storing the users in sqlserver using sqlmembershipprovider in asp.net). ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can a C/C++ program put itself into background? What's the best way for a running C or C++ program that's been launched from the command line to put itself into the background, equivalent to if the user had launched from the unix shell with '&' at the end of the command? (But the user didn't.) It's a GUI app a...
{ "language": "en", "url": "https://stackoverflow.com/questions/116701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Can ClickOnce deployment be used with windows mobile and compact frameworks? Can I use the ClickOnce deployment method to deploy and auto update applications targeted for the windows mobile platform (eg smartphone or pocket pc)? A: True Click-Once is not supported. You might look at these articles to give you a be...
{ "language": "en", "url": "https://stackoverflow.com/questions/116713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What Event to Trigger Javascript Form Field Validation and Formatting? Let me first say, we validate every field on the server side, so this a question about client-side usability. What is the conventional wisdom on exactly when to validate and format html form input fields using javascript? As an example, we have a...
{ "language": "en", "url": "https://stackoverflow.com/questions/116736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Oracle: Is there a simple way to say "if null keep the current value" in merge/update statements? I have a rather weak understanding of any of oracle's more advanced functionality but this should I think be possible. Say I have a table with the following schema: MyTable Id INTEGER, Col1 VARCHAR2(100), Col2 VAR...
{ "language": "en", "url": "https://stackoverflow.com/questions/116760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best Practices: Storing a workflow state of an item in a database? I have a question about best practices regarding how one should approach storing complex workflow states for processing tasks in a database. I've been looking online to no avail, so I figured I'd ask the community what they thought was best. This qu...
{ "language": "en", "url": "https://stackoverflow.com/questions/116762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: What are some good resources for the document/view or composite application architecture? Lately I've been working on applications that are relatively data-oriented. In general, they tend to be editors for data represented by classes that are related in odd ways. I've been handling it by having a UserControl for e...
{ "language": "en", "url": "https://stackoverflow.com/questions/116766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: What is the best way to sort controls inside of a flowlayout panel? I am adding custom controls to a FlowLayoutPanel. Each control has a date property. I would like to sort the controls in the flowlayoutpanel based on the date property. I can't presort the controls before I add them because it is possible for the us...
{ "language": "en", "url": "https://stackoverflow.com/questions/116775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the best way to set up data access for an ASP.NET MVC project? I am starting a new ASP.NET MVC project to learn with, and am wondering what's the optimal way to set up the project(s) to connect to a SQL server for the data. For example lets pretend we have a Product table and a product object I want to use t...
{ "language": "en", "url": "https://stackoverflow.com/questions/116776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Passing int array as parameter in web user control I have an int array as a property of a Web User Control. I'd like to set that property inline if possible using the following syntax: <uc1:mycontrol runat="server" myintarray="1,2,3" /> This will fail at runtime because it will be expecting an actual int array, but...
{ "language": "en", "url": "https://stackoverflow.com/questions/116797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Scrape multi-frame website I'm auditing our existing web application, which makes heavy use of HTML frames. I would like to download all of the HTML in each frame, is there a method of doing this with wget or a little bit of scripting? A: as an addition to Steve's answer: Span to any host—‘-H’ The ‘-H’ option turns...
{ "language": "en", "url": "https://stackoverflow.com/questions/116810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Regular Expression to exclude set of Keywords I want an expression that will fail when it encounters words such as "boon.ini" and "http". The goal would be to take this expression and be able to construct for any set of keywords. A: ^(?:(?!boon\.ini|http).)*$\r?\n? (taken from RegexBuddy's library) will match any ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: Whats the best way to get total # of records in a mysql table with php? Whats the most efficient way of selecting total number of records from a large table? Currently, Im simply doing $result = mysql_query("SELECT id FROM table"); $total = mysql_num_rows($result) I was told this was not very efficient or fast, if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Is there an "anonymous" generic tag in C#, like '?' in Java? In Java, one can declare a variable parameterised by an "unknown" generic type, which looks like this: Foo<?> x; Is there an equivalent construct to this question-mark, in C#? A: It isn't (quite) true that there is no equivalent in C#. There is no static...
{ "language": "en", "url": "https://stackoverflow.com/questions/116830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: Is there a way from preventing other ReportViewers on the same webpage from refreshing? Currently I am working on a web page that has six ReportViewer controls that are using remote processing and that allow for drill-down. When a user clicks on one control the entire page refreshes and the other five reports all re...
{ "language": "en", "url": "https://stackoverflow.com/questions/116846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting started with rails? Must have gems? I'm starting work on a project using Rails, but I'm waiting for the 3rd edition of the pragmatic rails book to come out before I purchase a book. Anyway, my question is a bit more pointed than how do I get started... What are some of the must have gems that everyone uses? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: What’s the current state of closures in Java? Does anybody know, if closures will be in Java 7? A: There are currently several competing proposals, BGGA, CICE, among others. Unfortunately, a heated debate remains over the best approach. As a result it is unlikely at this point that closures will make it into Jav...
{ "language": "en", "url": "https://stackoverflow.com/questions/116865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Pulling in a dynamic image in a control based on a url using C# and ASP.net I know this is a dumb question. For some reason my mind is blank on this. Any ideas? Sorry should have been more clear. Using a HtmlGenericControl to pull in link description as well as image. private void InternalCreateChildControls() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you set directory permissions in NSIS? I'm trying to build a Windows installer using Nullsoft Install System that requires installation by an Administrator. The installer makes a "logs" directory. Since regular users can run this application, that directory needs to be writable by regular users. How do I sp...
{ "language": "en", "url": "https://stackoverflow.com/questions/116876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Rails Tests Fail With Sqlite3 I seem to be getting a strange error when I run my tests in rails, they are all failing for the same reason and none of the online documentation seems particularly helpful in regards to this particular error: SQLite3::SQLException: cannot rollback - no transaction is active This error ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Like in CASE statement not evaluating as expected Given this data: CREATE TABLE tmpTable( fldField varchar(10) null); INSERT INTO tmpTable SELECT 'XXX' UNION ALL SELECT 'XXX' UNION ALL SELECT 'ZZZ' UNION ALL SELECT 'ZZZ' UNION ALL SELECT 'YYY' SELECT CASE WHEN fldField like 'YYY' THEN 'OTH' ELSE 'XXX' END AS n...
{ "language": "en", "url": "https://stackoverflow.com/questions/116888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best practices for manipulating database result sets in Python? I am writing a simple Python web application that consists of several pages of business data formatted for the iPhone. I'm comfortable programming Python, but I'm not very familiar with Python "idiom," especially regarding classes and objects. Python's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Visual Studio: How to break on handled exceptions? I would like Visual Studio to break when a handled exception happens (i.e. I don't just want to see a "First chance" message, I want to debug the actual exception). e.g. I want the debugger to break at the exception: try { System.IO.File.Delete(someFilename); } c...
{ "language": "en", "url": "https://stackoverflow.com/questions/116896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "212" }
Q: What must I do to ensure that a web server (Apache) running on a machine is not accessible to the outside world? I would like to use my laptop as a web development (PHP, Python, etc.) machine, but I'm hesitant to do this unless I can ensure that it can not be accessed by the outside world. I'm guessing that somethin...
{ "language": "en", "url": "https://stackoverflow.com/questions/116905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use Decision Tables to help your application I learned some time ago about Decision Trees and Decision tables. I feel that Decision Tables can help with conditional If-Then-Else statements. In particular, I feel that Decision Tables have no side-effects, for example, if you didn't notice that you need one mor...
{ "language": "en", "url": "https://stackoverflow.com/questions/116907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Performance implications of computed columns in SQL Server 2005 database? The situation: we have a large database with a number of denormalized tables. We frequently have to resummarize the data to keep the summary tables in synch. We've talked on and off about using computed columns to keep the data fresh. We've al...
{ "language": "en", "url": "https://stackoverflow.com/questions/116926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Trouble running insert queries with varray variables I'm using SQL*Plus 9.2 on Oracle 10g enterprise. I have created some scripts that do basic inserts using parameters that I pass through the command prompt. It seemed logical that I should be able to run a bunch of inserts in a loop. So I tried the following: --beg...
{ "language": "en", "url": "https://stackoverflow.com/questions/116938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What happens to my app when my Mac goes to sleep? When Mac OS X goes to sleep, due to closing a laptop or selecting "Sleep" from the Apple menu, how does it suspend an executing process? I suppose non-windowed processes are simply suspended at an arbitrary point of execution. Is that also true for Cocoa apps, or do...
{ "language": "en", "url": "https://stackoverflow.com/questions/116945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: What is the semantic web, and why would I want to use it? Just like it reads. A: The simplest and shortest explanation that I have found is: "The Semantic Web is to Machines what the World Wide Web is to Humans". And as to why you would want that: for the same reasons why you let your Machine compute Pi to the quad...
{ "language": "en", "url": "https://stackoverflow.com/questions/116947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: using fstream to read every character including spaces and newline I wanted to use fstream to read a txt file. I am using inFile >> characterToConvert, but the problem is that this omits any spaces and newline. I am writing an encryption program so I need to include the spaces and newlines. What would be the proper ...
{ "language": "en", "url": "https://stackoverflow.com/questions/116951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Which Layout Manager do you use? What java GUI layout manager does everyone use? Lately, I have been using MigLayout, which has some powerful component controls. Just wanted to see what other developers are using other than the standard JDK ones. A: GridBagLayout is usable. Once you get used to using it, it works...
{ "language": "en", "url": "https://stackoverflow.com/questions/116957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Are there any online user group meetings? I must admit that I am incredibly jealous of those developers who happen to live near active user groups (e.g. the ALT.NET guys in Austin). I often read blog posts and listen to podcasts that reference these in-person meetings and find myself wishing that I could sit in and...
{ "language": "en", "url": "https://stackoverflow.com/questions/116963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to show that you understand the requirements of the project How do you show your clients/employers that you understood their requirements? What do you recommend to use? Use-Case diagrams? Flow-Charts? Data-Flow-Diagrams? Decision Trees? I'm not really asking for a very detailed answer. Just something simple to h...
{ "language": "en", "url": "https://stackoverflow.com/questions/116965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }