text
stringlengths
8
267k
meta
dict
Q: Combination of more than one crypto algorithm I'm considering the following: I have some data stream which I'd like to protect as secure as possible -- does it make any sense to apply let's say AES with some IV, then Blowfish with some IV and finally again AES with some IV? The encryption / decryption process will b...
{ "language": "en", "url": "https://stackoverflow.com/questions/120131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Failover & Disaster Recovery What's the difference between failover and disaster recovery? A: Failover is more linked to backup procedure. The main difference between the two, from the end client's point of view is the downtime. * *Failover is expected to have a low downtime (1 2 hours top) *DR can have anythin...
{ "language": "en", "url": "https://stackoverflow.com/questions/120139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: User Monitoring in Rails We have an app with an extensive admin section. We got a little trigger happy with features (as you do) and are looking for some quick and easy way to monitor "who uses what". Ideally a simple gem that will allow us to track controller/actions on a per user basis to build up a picture of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/120149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Long-lived RESTful interactions We have a discussion going on in my team at the moment, and I'd be interested in other views. Suppose we have a RESTful web service whose role is to annotate documents by applying a variety of analysis algorithms and services. The basic interaction in clear: we have a resource which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/120158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Save drop-down history in a Firefox Toolbar I'm doing some testing on Firefox toolbars for the sake of learning and I can't find out any information on how to store the contents of a "search" drop-down inside the user's profile. Is there any tutorial on how to sort this out? A: Since it's taking quite a bit to get ...
{ "language": "en", "url": "https://stackoverflow.com/questions/120170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to do query auto-completion/suggestions in Lucene? I'm looking for a way to do query auto-completion/suggestions in Lucene. I've Googled around a bit and played around a bit, but all of the examples I've seen seem to be setting up filters in Solr. We don't use Solr and aren't planning to move to using Solr in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/120180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: XSS Blacklist - Is anyone aware of a reasonable one? As a temporary quick fix to mitigate the major risk while working on the permanent fix for XSS Vulnerability in a very large code base, I'm looking for a pre-existing XSS prevention blacklist that does a reasonable job of protecting against XSS. Preferably a set o...
{ "language": "en", "url": "https://stackoverflow.com/questions/120189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are the steps needed to create and publish a rubygem of your own? So you've created a ruby library. How do you create and publish your rubygem? And what common pitfalls and gotchas are there pertaining to creating and publishing rubygems? A: There are several tools to help you build your own gems. hoe and newg...
{ "language": "en", "url": "https://stackoverflow.com/questions/120191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Updating server-side progress on Rails application I want to upload and then process a file in a Ruby on Rails app. The file upload is usually quite short, but the server-side processing can take some time (more than 20 seconds) so I want to give the user some indicator - something better than a meaningless 'proces...
{ "language": "en", "url": "https://stackoverflow.com/questions/120201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the best replacement for Windows' rand_s in Linux/POSIX? The problem is not about randomness itself (we have rand), but in cryptographically secure PRNG. What can be used on Linux, or ideally POSIX? Does NSS have something useful? Clarification: I know about /dev/random, but it may run out of entropy pool. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/120206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Virtual Machine Benchmarks I am using VMware Server 1.0.7 on Windows XP SP3 at the moment to test software in virtual machines. I have also tried Microsoft Virtual PC (do not remeber the version, could be 2004 or 2007) and VMware was way faster at the time. I have heard of Parallels and VirtualBox but I did not have...
{ "language": "en", "url": "https://stackoverflow.com/questions/120212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Windows 2003 Standard IIS Remote Admin - Can't login I have just installed Windows Server 2003 Standard Edition and therefore IIS6 (comes as standard). I have also install the windows component that enable the administration of IIS from the browser (https://server:8098/). The problem I have is that I have to log-in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/120226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP: running scheduled jobs (cron jobs) I have a site on my webhotel I would like to run some scheduled tasks on. What methods of achieving this would you recommend? What I’ve thought out so far is having a script included in the top of every page and then let this script check whether it’s time to run this job or n...
{ "language": "en", "url": "https://stackoverflow.com/questions/120228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: Is there an alternative to the SQL Profiler for SQL Server 2000 I am trying to optimize some stored procedures on a SQL Server 2000 database and when I try to use SQL Profiler I get an error message "In order to run a trace against SQL Server you have to be a member of sysadmin fixed server role.". It seems that onl...
{ "language": "en", "url": "https://stackoverflow.com/questions/120240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to chain pseudo selectors in SASS I'm trying to put together a selector in SASS that will operate on the visted, hovered state of a link, but I can't quite seem to get the markup right, can someone enlighten me? I was writing it like this: &:visited:hover attribute: foo A: a &:visited:hover attribu...
{ "language": "en", "url": "https://stackoverflow.com/questions/120244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Short Integers in Python Python allocates integers automatically based on the underlying system architecture. Unfortunately I have a huge dataset which needs to be fully loaded into memory. So, is there a way to force Python to use only 2 bytes for some integers (equivalent of C++ 'short')? A: Thanks to Armin for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/120250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: What's the best way to detect if a given Javascript object is a DOM Element? Say for instance I was writing a function that was designed to accept multiple argument types: var overloaded = function (arg) { if (is_dom_element(arg)) { // Code for DOM Element argument... } }; What's the best way to imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/120262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Best way to store constants referenced in the DB? In my database, I have a model which has a field which should be selected from one of a list of options. As an example, consider a model which needs to store a measurement, such as 5ft or 13cm or 12.24m3. The obvious way to achieve this is to have a decimal field and...
{ "language": "en", "url": "https://stackoverflow.com/questions/120266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How can I measure distance and create a bounding box based on two latitude+longitude points in Java? I am wanting to find the distance between two different points. This I know can be accomplished with the great circle distance. http://www.meridianworlddata.com/Distance-calculation.asp Once done, with a point and di...
{ "language": "en", "url": "https://stackoverflow.com/questions/120283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "76" }
Q: What is a good OO C++ wrapper for sqlite I'd like to find a good object oriented C++ (as opposed to C) wrapper for sqlite. What do people recommend? If you have several suggestions please put them in separate replies for voting purposes. Also, please indicate whether you have any experience of the wrapper you are su...
{ "language": "en", "url": "https://stackoverflow.com/questions/120295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: Used Ctrl-Alt-F6 in Linux, and can't get my screen back This is obviously a stupid question. I am coding in Eclipse both on Mac and Linux, but I mixed up and used the Mac shortcut to window tabbing (Ctrl-Cmd-F6), but I was using the Linux on uni and screen went black. I've done this before, but this time I can't get...
{ "language": "en", "url": "https://stackoverflow.com/questions/120296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Delete variables in immediate window in C# Once I've created a variable in the immediate window in C# (VS2008), is there any way to delete it so I can create a new variable with the same name but a different type? Apart from restarting the program that is. The reason would be to keep the immediate window's namespace...
{ "language": "en", "url": "https://stackoverflow.com/questions/120315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to sort an array of UTF-8 strings? I currentyl have no clue on how to sort an array which contains UTF-8 encoded strings in PHP. The array comes from a LDAP server so sorting via a database (would be no problem) is no solution. The following does not work on my windows development machine (although I'd think th...
{ "language": "en", "url": "https://stackoverflow.com/questions/120334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: How do I get maven to "stamp" a build number into a properties file I would like to be able to, as part of a maven build, set the build number (doesn't matter exactly what) in a properties file/class (so I can show it in a UI). Any ideas? A: We used the Build Number Plugin now available from Codehaus. It can gener...
{ "language": "en", "url": "https://stackoverflow.com/questions/120335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Performance Profiling Tips Netbeans for client applications Do you have any tips for effective profiling using Netbeans? The profiler is quite nice and powerful. I've used it to find problems in some of my Eclipse RCP client applications. However, I get the feeling that I could get some more value out of it. Norma...
{ "language": "en", "url": "https://stackoverflow.com/questions/120351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Delphi 2009 TurboPower library conversions In the next few months I will be resurrecting a project which made extensive use of Orpheus and SysTools. The development system I used is long gone, so would like to update the libraries to my current development environment. My question(s): is anyone porting, or has anyon...
{ "language": "en", "url": "https://stackoverflow.com/questions/120353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to create Editable PDF by ASP.NET How to create editable PDF using ASP.NET. I want to create a Pdf from a master template, edit it (fill some value(input not from database)) and save. Is it possible without using a 3rd party? If some sample code available it will be great A: I use PDF4NET in a couple of projec...
{ "language": "en", "url": "https://stackoverflow.com/questions/120355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Irretrievably destroying data in Java Is there anyway in Java to delete data (e.g., a variable value, object) and be sure it can't be recovered from memory? Does assigning null to a variable in Java delete the value from memory? Any ideas? Answers applicable to other languages are also acceptable. A: Store sensitiv...
{ "language": "en", "url": "https://stackoverflow.com/questions/120380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to save file using Eclipse Monkey? I've recently started working with Aptana and Eclipse Monkey. What I want to do now is to create a script that saves a file then uploads it to a FTP. Problem is that Eclipse Monkey is VERY poorly documented and Google returned only unrelated results. I've made it upload the fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/120383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What non-web-based tools exist to view IIS logs? I'm looking for non-web-based tools to view IIS logs. I've been using LogParser but I was hoping for something with an interface. It doesn't need to do any fancy reports or charts -- just a list with some search filters is plenty. I need something lightweight that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/120395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to price a corporate web app? I am putting together a proposal for a large multinational company for our licenced solution. Problem is I've never put together something this big before and so I don't know what is acceptable. Ignoring hosting or support (or even the functionality of the app) for the moment and j...
{ "language": "en", "url": "https://stackoverflow.com/questions/120396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Fax barcode recognition software to integrate in a c# application My application is preparing a cover-sheet for submitting documents by fax. I identify the batch by printing a Code39 on it. The incoming faxes are received as tif files and my small c# service is polling for new faxes and calling a decoding function....
{ "language": "en", "url": "https://stackoverflow.com/questions/120402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problem accessing file from different thread in Asp.net I have a process in a website (Asp.net 3.5 using Linq-to-Sql for data access) that needs to work as follows: * *Upload file *Record and save info regarding file to database *Import data from file into database *Redirect to different page When run sequen...
{ "language": "en", "url": "https://stackoverflow.com/questions/120404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Image icon beside the site URL I would like to have information about the icons which are displayed alongside the site URLs on a web browser. Is this some browser specific feature? Where do we specify the icon source, ie, is it in some tag on the web page itself ? A: These icons are called favicons Most web browser...
{ "language": "en", "url": "https://stackoverflow.com/questions/120420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How do I iterate over a set of records in RPG(LE) with embedded SQL? How do I iterate over a set of records in RPG(LE) with embedded SQL? A: As Mike said, iterating over a cursor is the best solution. I would add to give slightly better performance, you might might want to fetch into an array to process in blocks r...
{ "language": "en", "url": "https://stackoverflow.com/questions/120422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What's the difference between "Layers" and "Tiers"? What's the difference between "Layers" and "Tiers"? A: Yes my dear friends said correctly. Layer is a logical partition of application whereas tier is physical partition of system tier partition is depends on layer partition. Just like an application execute on s...
{ "language": "en", "url": "https://stackoverflow.com/questions/120438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "253" }
Q: What is the most convincing way to require formalized unit testing? This certainly presupposes that unit testing is a good thing. Our projects have some level of unit testing, but it's inconsistent at best. What are the most convincing ways that you have used or have had used with you to convince everyone that forma...
{ "language": "en", "url": "https://stackoverflow.com/questions/120460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Use of Migrations in Ruby on Rails I would like to confirm that the following analysis is correct: I am building a web app in RoR. I have a data structure for my postgres db designed (around 70 tables; this design may need changes and additions during development to reflect Rails ways of doing things. EG, I designed...
{ "language": "en", "url": "https://stackoverflow.com/questions/120467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: NHibernate nvarchar/ntext truncation problem I'm using nhibernate to store some user settings for an app in a SQL Server Compact Edition table. This is an excerpt the mapping file: <property name="Name" type="string" /> <property name="Value" type="string" /> Name is a regular string/nvarchar(50), and Value is set ...
{ "language": "en", "url": "https://stackoverflow.com/questions/120470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you visualize your sprint backlog? Most Scrum teams have some sort of whiteboard or other board upon which the stories/tasks for the current sprint are visualized. I'm curious as to how people organize this board? Do you use post-it notes? Are they color-coded? How do you group tasks? How do you distinguish t...
{ "language": "en", "url": "https://stackoverflow.com/questions/120474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do you deploy your common SharePoint library We have a class library where we keep a lot of the stuff that we often use when doing sharepoint development. How would you go around deploying this? Right now our best bet is to have it in a separate solution, and deploy that so that the assembly is deployed to GAC. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/120484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to work around the [1] IE bug while saving an excel file from a Web server? I've noticed that Internet Explorer adds a number in square brackets to files downloaded from the internet (usually [1]). This creates a big problem with downloading Excel spreadsheets as square brackets are not a valid filename characte...
{ "language": "en", "url": "https://stackoverflow.com/questions/120497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: delphi "Invalid use of keyword" in TQuery I'm trying to populate a TDBGrid with the results of the following TQuery against the file Journal.db: select * from Journal where Journal.where = "RainPump" I've tried both Journal."Where" and Journal.[Where] to no avail. I've also tried: select Journal.[Where] as "Locati...
{ "language": "en", "url": "https://stackoverflow.com/questions/120503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Optimising a SELECT query that runs slow on Oracle which runs quickly on SQL Server I'm trying to run the following SQL statement in Oracle, and it takes ages to run: SELECT orderID FROM tasks WHERE orderID NOT IN (SELECT DISTINCT orderID FROM tasks WHERE engineer1 IS NOT NULL AND engineer2 IS NOT NULL) If I run ...
{ "language": "en", "url": "https://stackoverflow.com/questions/120504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Where can I find a free compiler for Windows Vista which works in Fullscreen mode? I need to know where i can get a free version of C and C++ compilers for Windows Vista. Many of the versions i have tried are not working in fullscreen mode. A: Have you tried MinGW? It's a command-line compiler. I don't have Vista, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/120533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to update components in different threads? .NET CF I´m programming a .NET Compact Framework application which shows maps on a PDA. I´ve created an ad hoc component that paints it´s own piece of the whole map, using several of this components the big picture is composed. I did it this way to avoid the latency of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/120540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why would an application act differently after the VS debugger is attached? I have a desktop application written in C#. It is trying to manage a socket connection and fails. The same application is successful if it is attached to the Visual Studio debugger. How can it be debugged? A: I'd say timing issues too havi...
{ "language": "en", "url": "https://stackoverflow.com/questions/120556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can a task wait on multiple vxworks Queues? We have a vxWorks design which requires one task to process both high and low priority messages sent over two message queues. The messages for a given priority have to be processed in FIFO order. For example, process all the high priority messages in the order they w...
{ "language": "en", "url": "https://stackoverflow.com/questions/120561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: WSE Server under Windows 2000 I have a problem with WSE on Windows 2000 Machines. The method SoapReceivers.Add crashed under Windows 2000. It seemes that the windows 2000 os did not allow to start a listening service on excluse addresses. So I find a out that I can set this in the config file to "false" But the pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/120567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: A good pattern/solution to the social web user issue of point whoring? Take any social website like Digg or Stack Overflow that somehow lets users reward points for stories, questions, etc.. What happens is quite similar to the process that lead to the rise of tabloid newspapers that feed only headlines and no conte...
{ "language": "en", "url": "https://stackoverflow.com/questions/120578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Expose VSTO functionality to VBA w/o local admin What would be the best way to expose certain functionality in a Dotnet VSTO Excel add-in to VBA, without requiring the user to be a local administrator (i.e. no COM registration, no HttpListener)? Would it be possible to use Microsoft Message Queues from VBA? A: If I...
{ "language": "en", "url": "https://stackoverflow.com/questions/120579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SVG rendering in a PyGame application. Prior to Pygame 2.0, Pygame did not support SVG. Then how did you load it? In a pyGame application, I would like to render resolution-free GUI widgets described in SVG. How can I achieve this? (I like the OCEMP GUI toolkit but it seems to be bitmap dependent for its rendering) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/120584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: What is the best way to forward a single qmail alias to /dev/null? I would like to trash the mail received by a single qmail alias. I don't want any mail delivery errors, and I want qmail to be happy about having delivered the mail. How can I do this, preferably without adding another local email account? A: Creat...
{ "language": "en", "url": "https://stackoverflow.com/questions/120587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Case-insensitive search using Hibernate I'm using Hibernate for ORM of my Java app to an Oracle database (not that the database vendor matters, we may switch to another database one day), and I want to retrieve objects from the database according to user-provided strings. For example, when searching for people, if t...
{ "language": "en", "url": "https://stackoverflow.com/questions/120588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: Auto-updating Bags in NHibernate I use ASP.Net with NHibernate accessing a Pgsql database. For some of our Objects, we use NHibernate bags, which map to List objects in our application. Sometimes we have issues with needing to refresh the objects through NHibernate when we update anything to do with the lists in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/120596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What powers Google Charts? Does any body know what powers Google Charts? I have been using it for a while but not sure what Google used to build it. A: They bought the Gapminder library for doing charts. It's a Java library as far as I know, but they don't seem very anxious to release the code as open-source. A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/120601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Classic asp include I am trying to separate some asp logic out into a separate page. For now, I am trying to call a simple function. Here is the simple index page that I am using <html> <head> <title>Calling a webservice from classic ASP</title> </head> <body> <% If Request.ServerVariables("REQUEST_METHOD") = "POST...
{ "language": "en", "url": "https://stackoverflow.com/questions/120607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to display the total of a level as the value of its last child in MDX I have an MDX query which lists a measure for all 'Week' and 'Day' levels in the OLAP database. For example SELECT { HIERARCHIZE( {[Business Time].[Week].members, [Business Time].[Date].members} ) } ON ROWS, { [Measures].[Quantity] }...
{ "language": "en", "url": "https://stackoverflow.com/questions/120616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Logging in J2ME What logging solutions exist for j2me? I'm specifically interested in easily excluding logging for "release" version, to have a smaller package & memory footprint. A: You can use the -assumenosideaffects in proguard to completley remove your logging class: -assumenosideeffects public class logger....
{ "language": "en", "url": "https://stackoverflow.com/questions/120618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Dark color scheme for Eclipse Is Eclipse at all theme-able? I would like to install a dark color scheme for it, since I much prefer white text on dark background than the other way around. A: This is the best place for Eclipse color themes: http://www.eclipsecolorthemes.org/ A: I've created my own dark color schem...
{ "language": "en", "url": "https://stackoverflow.com/questions/120621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "425" }
Q: One or more files do not match the primary file of the database (error 5173) I got this error when I checked out my database from source control. It might sounds weird to check in the sql server database, but this was what I have done because this is just a personal project. Anyone knows how to fix this? A: Here's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/120625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a way to redefine malloc at link time on Windows? I would like to replace the default malloc at link time to use a custom malloc. But when I try to redefine malloc in my program, I get this error: MSVCRT.lib(MSVCR80.dll) : error LNK2005: _malloc already defined in test.lib(test.obj) This works perfectly on...
{ "language": "en", "url": "https://stackoverflow.com/questions/120627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Tag hierarchies and handling of This is a real issue that applies on tagging items in general (and yes, this applies to StackOverflow too, and no, it is not a question about StackOverflow). The whole tagging issue helps cluster similar items, whatever items they may be (jokes, blog posts, so questions etc). However,...
{ "language": "en", "url": "https://stackoverflow.com/questions/120628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Best practice regarding number of threads in GUI applications In the past I've worked with a number of programmers who have worked exclusively writing GUI applications. And I've been given the impression that they have almost universally minimised the use of multiple threads in their applications. In some cases they...
{ "language": "en", "url": "https://stackoverflow.com/questions/120636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you get a spreadsheet to open Excel instead of a browser window? If you call javascript window.open and pass a url to a .xls file it open on some machines in the browser window. How can you force it into Excel? A: Only the users machine can "force" it into Excel. That said, 99% of the time if you send the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/120646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Is Assert.Fail() considered bad practice? I use Assert.Fail a lot when doing TDD. I'm usually working on one test at a time but when I get ideas for things I want to implement later I quickly write an empty test where the name of the test method indicates what I want to implement as sort of a todo-list. To make sure...
{ "language": "en", "url": "https://stackoverflow.com/questions/120648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "76" }
Q: Directory-tree listing in Python How do I get a list of all files (and directories) in a given directory in Python? A: import os for filename in os.listdir("C:\\temp"): print filename A: This is a way to traverse every file and directory in a directory tree: import os for dirname, dirnames, filenames in os...
{ "language": "en", "url": "https://stackoverflow.com/questions/120656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "603" }
Q: Python subprocess issue with ampersands I'm currently having a major issue with a python script. The script runs arbitrary commands through a handler to convert incorrect error reporting into correct error reporting. The issue I'm having is getting the script to work correctly on windows with a command that contains...
{ "language": "en", "url": "https://stackoverflow.com/questions/120657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: "Could not find the main class. Program will exit" I'm trying to run SQuirreL SQL. I've downloaded it and installed it, but when I try to run it I get this error message: Java Virtual Machine Launcher. Could not find the main class. Program will exit. I get the gist of this, but I have not idea how to fix ...
{ "language": "en", "url": "https://stackoverflow.com/questions/120662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Will Subclipse 1.4.4 work with Subversion 1.3.2 Will Subclipse 1.4.4 work safely with Subversion 1.3.2? I am confused because its changelog says NOTE: As of Subclipse 1.3.0, the minimum Subversion JavaHL requirement is 1.5.0. A: Subclipse requires Subversion 1.5.x on the client. A Subversion 1.5.x client can tal...
{ "language": "en", "url": "https://stackoverflow.com/questions/120669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Javascript Try/Catch I've got a function that runs a user generated Regex. However, if the user enters a regex that won't run then it stops and falls over. I've tried wrapping the line in a Try/Catch block but alas nothing happens. If it helps, I'm running jQuery but the code below does not have it as I'm guessing t...
{ "language": "en", "url": "https://stackoverflow.com/questions/120693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Recursive overloading semantics in the Scala REPL - JVM languages Using Scala's command line REPL: def foo(x: Int): Unit = {} def foo(x: String): Unit = {println(foo(2))} gives error: type mismatch; found: Int(2) required: String It seems that you can't define overloaded recursive methods in the REPL. I thought th...
{ "language": "en", "url": "https://stackoverflow.com/questions/120702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Getting started with AJAX with ASP.NET 3.5, what do I need on the server I have the .net framework 3.5 on my development machine and also am using the AJAX toolkit in my code. In order to publish this code to a server for my users, do I need anything on the server in order for my AJAX code to operate correctly? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/120704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Setting up F# in Visual Studio 2005 Are there any decent tutorials for setting up F# in Visual Studio 2005? Everything I have found points at VS2008. ie: 'F# projects' under projects, etc. A: Unfortunately the CTP release of F# doesn't support VS 2005. Two options: * *Use 1.9.4.19, the most recent pre-CTP releas...
{ "language": "en", "url": "https://stackoverflow.com/questions/120715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: SQL Server - Partitioned Tables vs. Clustered Index? Let's assume you have one massive table with three columns as shown below: [id] INT NOT NULL, [date] SMALLDATETIME NOT NULL, [sales] FLOAT NULL Also assume you are limited to one physical disk and one filegroup (PRIMARY). You expect this table to hold sales fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/120731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: How can I enumerate all *.exes and the details about each? Something like: //Get all search data $search = new search('C:\', '*.exe'); while($item = $search->next()) { $details = $item->getDetails(); append_details('C:\files.txt', implode_details($details)); } But in NSIS (http://nsis.sourceforge.net/) A: You coul...
{ "language": "en", "url": "https://stackoverflow.com/questions/120733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Supporting URLs like /similar-to-:product in Ruby on Rails? I have been trying to use routes.rb for creating a URL /similar-to-:product (where product is dynamic) for my website. The issue is that routes.rb readily supports URLs like /:product-similar but doesn't support the former because it requires :product to be...
{ "language": "en", "url": "https://stackoverflow.com/questions/120751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ADO.NET Entity Framework and identity columns Is the Entity Framework aware of identity columns? I am using SQL Server 2005 Express Edition and have several tables where the primary key is an identity column. when I use these tables to create an entity model and use the model in conjunction with an entity datasourc...
{ "language": "en", "url": "https://stackoverflow.com/questions/120755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: Using the literal '@' with a string variable I have a helper class pulling a string from an XML file. That string is a file path (so it has backslashes in it). I need to use that string as it is... How can I use it like I would with the literal command? Instead of this: string filePath = @"C:\somepath\file.txt"; I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/120763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to change CSS class of a HTML page element using ASP.NET? I have several <li> elements with different id's on ASP.NET page: <li id="li1" class="class1"> <li id="li2" class="class1"> <li id="li3" class="class1"> and can change their class using JavaScript like this: li1.className="class2" But is there a way to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/120766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Implementing Google maps in mobile How to show google maps in mobile application using .net2.0 A: A very simple approach is to use the Google Maps Static API, a HttpWebRequest and Image.Save to download an image of the map, e.g. "http://maps.google.com/staticmap?zoom=14&size=512x512&mapt ype=mobile&markers=40.71472...
{ "language": "en", "url": "https://stackoverflow.com/questions/120775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What should an Application Controller do? I am a bit confused in what the application controller should do? Because I see the functionality will also exists in your MVP pattern to make the decisions which form should be shown when a button is clicked? Are there any good examples for Windows Forms that uses the appl...
{ "language": "en", "url": "https://stackoverflow.com/questions/120781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I implement IEqualityComparer on an immutable generic Pair struct? Currently I have this (edited after reading advice): struct Pair<T, K> : IEqualityComparer<Pair<T, K>> { readonly private T _first; readonly private K _second; public Pair(T first, K second) { _first = first; _...
{ "language": "en", "url": "https://stackoverflow.com/questions/120783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What are the pros and cons of Web Services and RMI in a Java-only environment? When developing distributed applications, all written in Java by the same company, would you choose Web Services or RMI? What are the pros and cons in terms of performance, loose coupling, ease of use, ...? Would anyone choose WS? Can you...
{ "language": "en", "url": "https://stackoverflow.com/questions/120791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do I set the proxy to be used by the JVM Many times, a Java app needs to connect to the Internet. The most common example happens when it is reading an XML file and needs to download its schema. I am behind a proxy server. How can I set my JVM to use the proxy ? A: To set an HTTP/HTTPS and/or SOCKS proxy progra...
{ "language": "en", "url": "https://stackoverflow.com/questions/120797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "360" }
Q: Learning FreeBSD What is the average time that it would take a complete novice, whose background is mostly Windows XP, to go through the FreeBSD handbook and get sufficient mastery to setup a server from the ground up? A: It would depend on how much knowledge you have of unix, and from the sounds of things, you pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/120803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Difference between Array.slice and Array().slice I am going through John Resig's excellent Advanced javascript tutorial and I do not thoroughly understand what's the difference between the following calls: (please note that 'arguments' is a builtin javascript word and is not exactly an array hence the hacking with t...
{ "language": "en", "url": "https://stackoverflow.com/questions/120804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Reading custom resource from within MIDP 2.0 midlet How can one load custom (not an image, nor a sound file) resource file from /res within .jar using MIDP 2.0? A: I'm working with MIDP 2.1, but I hope this is in 2.0 too. Class.getResource(path_to_resource) should give you an InputStream to the file. A: getResourc...
{ "language": "en", "url": "https://stackoverflow.com/questions/120836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I create a WPF Rounded Corner container? We are creating an XBAP application that we need to have rounded corners in various locations in a single page and we would like to have a WPF Rounded Corner container to place a bunch of other elements within. Does anyone have some suggestions or sample code on how w...
{ "language": "en", "url": "https://stackoverflow.com/questions/120851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "131" }
Q: Can you read the body of a reply to a POST request from flash? I am trying to POST a file to a server that replies with some basic status information in the body. Everything is easy from javascript but I was wondering if I could read the status information from the reply using flash. That way I can use the multifile...
{ "language": "en", "url": "https://stackoverflow.com/questions/120854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Remove and Replace a visual component at runtime Is it possible to, for instance, replace and free a TEdit with a subclassed component instantiated (conditionally) at runtime? If so, how and when it should be done? I've tried to set the parent to nil and to call free() in the form constructor and AfterConstruction m...
{ "language": "en", "url": "https://stackoverflow.com/questions/120858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Flash Charts and Graphs exported for use in PDF reports - automation I want to put beautiful charts in a report that is available via html and pdf. I'd prefer to use just one API and that all processing occur server-side. I want to embed Flash charts in the html version of reports. I want to embed a static image (pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/120862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get files in my own file format to have its own dynamic icon? Our application has a file format similar to the OpenDocument file format (see http://en.wikipedia.org/wiki/OpenDocument) - i.e. zipped with a manifest file, a thumbnail image, etc. I notice that OpenOffice files have a preview image of the Open ...
{ "language": "en", "url": "https://stackoverflow.com/questions/120865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What are the rules for calling the base class constructor? What are the C++ rules for calling the base class constructor from a derived class? For example, I know in Java, you must do it as the first line of the subclass constructor (and if you don't, an implicit call to a no-arg super constructor is assumed - givin...
{ "language": "en", "url": "https://stackoverflow.com/questions/120876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "828" }
Q: Python idiom to chain (flatten) an infinite iterable of finite iterables? Suppose we have an iterator (an infinite one) that returns lists (or finite iterators), for example one returned by infinite = itertools.cycle([[1,2,3]]) What is a good Python idiom to get an iterator (obviously infinite) that will return eac...
{ "language": "en", "url": "https://stackoverflow.com/questions/120886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Unrooted Tests When running all my tests in Eclipse (Eclipse 3.4 'Ganymede'), one test is listed under "Unrooted Tests". I'm using Junit 3.8 and this particular test extends TestCase. I do not see any difference between this test and the other tests. I don't remember seeing this occur in Eclipse 3.3 (Europa). Clarif...
{ "language": "en", "url": "https://stackoverflow.com/questions/120889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: Cyclic Dependencies Consider a normal customer-orders application based on MVC pattern using WinForms. The view part has grown too much (over 4000 files) and it needs to be split into smaller ones. For this example we are going to use 3 projects for the view part: * *Main - has dependencies to the other 2 projec...
{ "language": "en", "url": "https://stackoverflow.com/questions/120898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to check if a trigger is invalid? I'm working on databases that have moving tables auto-generated by some obscure tools. By the way, we have to track information changes in the table via some triggers. And, of course, it occurs that some changes in the table structure broke some triggers, by removing a column or...
{ "language": "en", "url": "https://stackoverflow.com/questions/120900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Designing an 'Order' schema in which there are disparate product definition tables This is a scenario I've seen in multiple places over the years; I'm wondering if anyone else has run across a better solution than I have... My company sells a relatively small number of products, however the products we sell are high...
{ "language": "en", "url": "https://stackoverflow.com/questions/120907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: LabVIEW holds Excel Reference I try to open and excel reference in LabVIEW and then close it after sometime. But the LabVIEW keeps holding the reference and does not release it unless I close the VI. Why is this happening? Is there anyway to force it to release the Reference? I am checking the error out for any erro...
{ "language": "en", "url": "https://stackoverflow.com/questions/120908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }