text
stringlengths
8
267k
meta
dict
Q: Map 192.168.0.10 to 127.0.0.1 on windows I need to access a SVN repository from home, that runs under the IP 192.168.0.10 in the work network. I can establish a SSH tunnel to my localhost. Now I have to map 192.168.0.10 in a way, that instead 127.0.0.1 is accessed. Does anybody know a way to do this under Windows? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/81073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Safe feature-based way for detecting Google Chrome with Javascript? As the title states, I'd be interested to find a safe feature-based (that is, without using navigator.appName or navigator.appVersion) way to detect Google Chrome. By feature-based I mean, for example: if(window.ActiveXObject) { // internet expl...
{ "language": "en", "url": "https://stackoverflow.com/questions/81099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: .NET NumericTextBox Does anyone know why Microsoft does not ship a numeric text box with its .NET framework e.g. a text box which would ensure that the characters entered are always a valid number? It's something which is commonly used across applications of different flavours and indeed something which most GUI lib...
{ "language": "en", "url": "https://stackoverflow.com/questions/81104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Runtime Page Optimizer for ASP.net - Any comments? RPO 1.0 (Runtime Page Optimizer) is a recently (today?) released component for ASP and Sharepoint that compresses, combines and minifies (I can’t believe that is a real word) Javascript, CSS and other things. What is interesting is that it was developed for ActionTh...
{ "language": "en", "url": "https://stackoverflow.com/questions/81108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Read Firefox 3 bookmarks Firefox 3 stores the bookmarks in a sqlite database. There are several hacked sqlite java libraries available. Is there a way to hack the sqlite database in java(not using libraries) to read bookmarks reliably? Does someone know how the sqlite DB is stored and access programmatically (from j...
{ "language": "en", "url": "https://stackoverflow.com/questions/81132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Best way to tackle global hotkey processing in c#? Possible Duplicate: How can I register a global hot key to say CTRL+SHIFT+(LETTER) using WPF and .NET 3.5? I'd like to have multiple global hotkeys in my new app (to control the app from anywhere in windows), and all of the given sources/solutions I found on the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/81150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: How do I determine which encoding system is used in my MS Access database I have an MS Access database, how can I determine which encoding characters are used in the database? A: ACCESS databases all use UTF-8 encoding since (at least) version 2000 A: I think by default it is Windows-specific ANSI "encoding", more...
{ "language": "en", "url": "https://stackoverflow.com/questions/81154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Files on XP: Is turning off "last access time" safe? I'm desperately looking for cheap ways to lower the build times on my home PC. I just read an article about disabling the Last Access Time attribute of a file on Windows XP, so that simple reads don't write anything back to disk. It's really simple too. At a DOS-...
{ "language": "en", "url": "https://stackoverflow.com/questions/81158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Auto-generating Unit-Tests for legacy Java-code What is the best, preferably free/open source tool for auto-generating Java unit-tests? I know, the unit-tests cannot really serve the same purpose as normal TDD Unit-Tests which document and drive the design of the system. However auto-generated unit-tests can be usef...
{ "language": "en", "url": "https://stackoverflow.com/questions/81160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: In Rails, What's the Best Way to Get Autocomplete that Shows Names but Uses IDs? I want to have a text box that the user can type in that shows an Ajax-populated list of my model's names, and then when the user selects one I want the HTML to save the model's ID, and use that when the form is submitted. I've been pok...
{ "language": "en", "url": "https://stackoverflow.com/questions/81174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to get the file path from HTML input form in Firefox 3 We have simple HTML form with <input type="file">, like shown below: <form> <label for="attachment">Attachment:</label> <input type="file" name="attachment" id="attachment"> <input type="submit"> </form> In IE7 (and probably all famous browsers, inclu...
{ "language": "en", "url": "https://stackoverflow.com/questions/81180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: PythonWin's python interactive shell calling constructors twice? While answering Static class variables in Python I noticed that PythonWin PyWin32 build 209.2 interpreter seems to evaluate twice? PythonWin 2.5 (r25:51908, Mar 9 2007, 17:40:28) [MSC v.1310 32 bit (Intel)] on win32. Portions Copyright 1994-2006 Mark...
{ "language": "en", "url": "https://stackoverflow.com/questions/81191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to do remote debugging with Eclipse CDT without gdbserver? We're using the Eclipse CDT 5 C++ IDE on Windows to develop a C++ application on a remote AIX host. Eclipse CDT has the ability to perform remote debugging using gdbserver. Unfortunately, gdbserver is not supported on AIX. Is anyone familiar with a way...
{ "language": "en", "url": "https://stackoverflow.com/questions/81194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Segfault on stack overflow Why does the linux kernel generate a segfault on stack overflow? This can make debugging very awkward when alloca in c or fortran creation of temporary arrays overflows. Surely it mjust be possible for the runtime to produce a more helpful error. A: The "kernel" (it's actually not the ker...
{ "language": "en", "url": "https://stackoverflow.com/questions/81202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Can I call an external script or program when building a SWF file in Flash CS3? Is there a way to call an external script or program from Flash CS3 every time it builds a SWF file? I'd like to add subversion information using subwcrev - the SVN keywords don't work because they only update when the version class fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/81209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Lighttpd and WebDAV for serving a Subversion repo I've configured (at least I've tried to configure) Lighty to enable the WebDAV plugin when I go to a certain URL. I don't get any errors, so it seems to be working. How, then, do I configure it to serve my subversion repositories (of which I have many)? A: I don't t...
{ "language": "en", "url": "https://stackoverflow.com/questions/81212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: "DropDownList.SelectedIndex = -1" problem I just want an ASP.NET DropDownList with no selected item. Setting SelectedIndex to -1 is of no avail, so far. I am using Framework 3.5 with AJAX, i.e. this DropDownList is within an UpdatePanel. Here is what I am doing: protected void Page_Load (object sender, EventArgs...
{ "language": "en", "url": "https://stackoverflow.com/questions/81214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How can I view the allocation unit size of a NTFS partition in Vista? Which built in (if any) tool can I use to determine the allocation unit size of a certain NTFS partition ? A: The value for BYTES PER CLUSTER - 65536 = 64K C:\temp>fsutil fsinfo drives Drives: C:\ D:\ E:\ F:\ G:\ I:\ J:\ N:\ O:\ P:\ S:\ C:\temp...
{ "language": "en", "url": "https://stackoverflow.com/questions/81236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "93" }
Q: How can I block mp3 crawlers from my website under Apache? Is there some way to block access from a referrer using a .htaccess file or similar? My bandwidth is being eaten up by people referred from http://www.dizzler.com which is a flash based site that allows you to browse a library of crawled publicly available m...
{ "language": "en", "url": "https://stackoverflow.com/questions/81238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Opening two HTMLHelp files simultaneously in Delphi causes both help windows to hang In Delphi, the application's main help file is assigned through the TApplication.HelpFile property. All calls to the application's help system then use this property (in conjunction with CurrentHelpFile) to determine the help file t...
{ "language": "en", "url": "https://stackoverflow.com/questions/81243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Easiest way to merge a release into one JAR file Is there a tool or script which easily merges a bunch of JAR files into one JAR file? A bonus would be to easily set the main-file manifest and make it executable. The concrete case is a Java restructured text tool. I would like to run it with something like: java -j...
{ "language": "en", "url": "https://stackoverflow.com/questions/81260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "76" }
Q: Case insensitive search on Sybase I have been sick and tired Googling the solution for doing case-insensitive search on Sybase ASE (Sybase data/column names are case sensitive). The Sybase documentation proudly says that there is only one way to do such search which is using the Upper and Lower functions, but the ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/81268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to move the cursor word by word in the OS X Terminal I know the combination Ctrl+A to jump to the beginning of the current command, and Ctrl+E to jump to the end. But is there any way to jump word by word, like Alt+←/→ in Cocoa applications does? A: In Bash, these are bound to Esc-B and Esc-F. Bash has many, m...
{ "language": "en", "url": "https://stackoverflow.com/questions/81272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "897" }
Q: Ways to avoid eager spool operations on SQL Server I have an ETL process that involves a stored procedure that makes heavy use of SELECT INTO statements (minimally logged and therefore faster as they generate less log traffic). Of the batch of work that takes place in one particular stored the stored procedure seve...
{ "language": "en", "url": "https://stackoverflow.com/questions/81278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: How can I listen to a RoutedEvent from a class that doesn't derive from FrameworkElement ? Can it be done? The question says it all basically. I want in a class MyClass to listen to a routed event. Can it be done ? A: Actually I wiredup the event the wrong way :| I had EventManager.RegisterClassHandler ( typeof...
{ "language": "en", "url": "https://stackoverflow.com/questions/81280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How should I detect the MIME type of an uploaded file in ASP.NET? How do people usually detect the MIME type of an uploaded file using ASP.NET? A: in the aspx page: <asp:FileUpload ID="FileUpload1" runat="server" /> in the codebehind (c#): string contentType = FileUpload1.PostedFile.ContentType A: The above code...
{ "language": "en", "url": "https://stackoverflow.com/questions/81283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Windows Vista Programmatically remap user directories I re-image one of my machines regularly; and have a script that I run after the OS install completes to configure my machine; such that it works how I like. I happen to have my data on another drive...and I'd like to add code to my script to change the location o...
{ "language": "en", "url": "https://stackoverflow.com/questions/81285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pattern for saving and writing to different file formats Is there a pattern that is good to use when saving and loading different file formats? For example, I have a complicated class hierarchy for the document, but I want to support a few different file formats. I thought about the Strategy pattern, but I'm not con...
{ "language": "en", "url": "https://stackoverflow.com/questions/81288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: sizeof(bitfield_type) legal in ANSI C? struct foo { unsigned x:1; } f; printf("%d\n", (int)sizeof(f.x = 1)); What is the expected output and why? Taking the size of a bitfield lvalue directly isn't allowed. But by using the assignment operator, it seems we can still take the size of a bitfield type. What is the "s...
{ "language": "en", "url": "https://stackoverflow.com/questions/81294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Custom X509SecurityTokenManager ignored I have a webservice that that uses message layer security with X.509 certificates in WSE 3.0. The service uses a X509v3 policy to sign various elements in the soapheader. I need to do some custom checks on the certificates so I've tried to implement a custom X509SecurityTokenM...
{ "language": "en", "url": "https://stackoverflow.com/questions/81295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where to put the dependency injection framework config file? I've got a solution with several different projects in it, some are pure class libraries and some are web app projects. If I want my default types to be available to all projects, where should I put the config file for the container? A: What I tend to do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/81305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WCF - Faults / Exceptions versus Messages We're currently having a debate whether it's better to throw faults over a WCF channel, versus passing a message indicating the status or the response from a service. Faults come with built-in support from WCF where by you can use the built-in error handlers and react accord...
{ "language": "en", "url": "https://stackoverflow.com/questions/81306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: DataGridView : How to can I do multiline data entry in a usable way? With the DataGridView it is possible to display cells containing some long text. The grid just increases the row height to display all the text, taking care of word wrap and linefeeds. Data entry is possible as well. Control+Return inserts a line f...
{ "language": "en", "url": "https://stackoverflow.com/questions/81315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using the same test suite on various implementations of a repository interface I have been making a little toy web application in C# along the lines of Rob Connery's Asp.net MVC storefront. I find that I have a repository interface, call it IFooRepository, with methods, say IQueryable<Foo> GetFoo(); void PersistFoo(...
{ "language": "en", "url": "https://stackoverflow.com/questions/81317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Changing the default encoding for String(byte[]) Is there a way to change the encoding used by the String(byte[]) constructor ? In my own code I use String(byte[],String) to specify the encoding but I am using an external library that I cannot change. String src = "with accents: é à"; byte[] bytes = src.getBytes("UT...
{ "language": "en", "url": "https://stackoverflow.com/questions/81323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to blog code at wordpress.com got a new blog at wordpress few days ago (http://ghads.wordpress.com) and I want to post some code snippets now or then. Is there anyway to make it look like code without paying for extra plugins? A: Crayon Syntax Highlighter is an excellent free plugin. I went with that one, but t...
{ "language": "en", "url": "https://stackoverflow.com/questions/81338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "72" }
Q: Compare Quagga to XORP What do you think of Quagga compared to XORP as a dynamic software routing engine? What are the technical merits of each engine comparatively? Additionally, what do most people think of them from a programming view. Who has manipulated networks using these enginers? I was wondering from an OSP...
{ "language": "en", "url": "https://stackoverflow.com/questions/81344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Most efficient way to increment a Map value in Java I hope this question is not considered too basic for this forum, but we'll see. I'm wondering how to refactor some code for better performance that is getting run a bunch of times. Say I'm creating a word frequency list, using a Map (probably a HashMap), where each...
{ "language": "en", "url": "https://stackoverflow.com/questions/81346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "497" }
Q: Getting windows/domain credentials in asp.net while allowing anonymous access in IIS I have an asp.NET webapplication running in our datacenter in which we want the customer to logon with single sign-on. This would be very easy if we could use the IIS integrated security. However we can't do this. We don't have a t...
{ "language": "en", "url": "https://stackoverflow.com/questions/81347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: private IP address ranges What are the private IP address ranges? A: also, 169.254.0.0 - 169.254.255.255 are reserved for automatic private IP addressing. Refer to Link-local address wikipedia article A: You will find the answers to this in RFC 1918. Though, I have listed them below for you. 10.0.0.0 - 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/81350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to retrieve stored procedure return values from a TableAdapter I cannot find an elegant way to get the return value from a stored procedure when using TableAdapters. It appears the TableAdapter does not support SQL stored procedure return values when using a non-scalar stored procedure call. You'd expect the ret...
{ "language": "en", "url": "https://stackoverflow.com/questions/81360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do I set up access control in SVN? I have set up a repository using SVN and uploaded projects. There are multiple users working on these projects. But, not everyone requires access to all projects. I want to set up user permissions for each project. How can I achieve this? A: In your svn\repos\YourRepo\conf fol...
{ "language": "en", "url": "https://stackoverflow.com/questions/81361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "85" }
Q: Connecting Outlook 2007 to Domino 6.5? Outlook (2007 now) is my favorite mail client and I would like to keep using it for both private and work emails. But with my new work, I discovered (with horror) that we have to use Lotus Domino and Lotus Notes 6.5 as client. Is it possible to get my Lotus mails inside Outlook...
{ "language": "en", "url": "https://stackoverflow.com/questions/81362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should I start using LINQ To SQL? Currently I am using NetTiers to generate my data access layer and service layer. I have been using NetTiers for over 2 years and have found it to be very useful. At some point I need to look at LINQ so my questions are... * *Has anyone else gone from NetTiers to LINQ To SQL? *W...
{ "language": "en", "url": "https://stackoverflow.com/questions/81376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Java: why do I receive the error message "Type mismatch: cannot convert int to byte" If you declare variables of type byte or short and attempt to perform arithmetic operations on these, you receive the error "Type mismatch: cannot convert int to short" (or correspondingly "Type mismatch: cannot convert int to byte"...
{ "language": "en", "url": "https://stackoverflow.com/questions/81392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Postgres replication Right now I have a database (about 2-3 GB) in PostgreSQL, which serves as a data storage to RoR/Python LAMP-like application. What kind tools are there that are simple and robust enough for replication of the main database to a second machine? I looked through some packages (Slony-I and etc.) bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/81404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Which parsers are available for parsing C# code? Which parsers are available for parsing C# code? I'm looking for a C# parser that can be used in C# and give me access to line and file informations about each artefact of the analysed code. A: Mono (open source) includes C# compiler (and of course parser) A: If you...
{ "language": "en", "url": "https://stackoverflow.com/questions/81406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "103" }
Q: How do you add a JavaScript widget to a Wordpress.com hosted blog? I've got a site that provides blog-friendly widgets via JavaScript. These work fine in most circumstances, including self-hosted Wordpress blogs. With blogs hosted at Wordpress.com, however, JavaScript isn't allowed in sidebar text modules. Has anyon...
{ "language": "en", "url": "https://stackoverflow.com/questions/81410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Enabling single sign-on between Desktop Application and Website We have a client/server application with a rich client front end (in .Net) and also an administration portal (Asp.Net). Currently users have to sign on in both the rich client and on the website. We'd like to enable them to sign into the rich client, bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/81423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multi-user Snippet Manager Currently, we're using a wiki at work to share insights, tips and information. But somehow, people aren't sharing snippets that way. It's probably too inconvenient to write and too difficult to find snippets there. So, is there a multi-user/collaborative snippets manager around? Something ...
{ "language": "en", "url": "https://stackoverflow.com/questions/81445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Difference between BYTE and CHAR in column datatypes In Oracle, what is the difference between : CREATE TABLE CLIENT ( NAME VARCHAR2(11 BYTE), ID_CLIENT NUMBER ) and CREATE TABLE CLIENT ( NAME VARCHAR2(11 CHAR), -- or even VARCHAR2(11) ID_CLIENT NUMBER ) A: I am not sure since I am not an Oracle user, but I a...
{ "language": "en", "url": "https://stackoverflow.com/questions/81448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "184" }
Q: How to avoid temporary file creation on server-side when pushing back full HTML content to clients? In a server-side application running on Tomcat, I am generating full HTML pages (with header) based on random user-requested sites pulled down from the Internet. The client-side application uses asynchronous callbacks...
{ "language": "en", "url": "https://stackoverflow.com/questions/81449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Upload files in Google App Engine I am planning to create a web app that allows users to downgrade their visual studio project files. However, It seems Google App Engine accepts files uploading and flat file storing on the Google Server through db.TextProperty and db.BlobProperty. I'll be glad anyone can provide cod...
{ "language": "en", "url": "https://stackoverflow.com/questions/81451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "81" }
Q: How do I check ClickOnce prerequisites after first install? If I understand correctly, ClickOnce only checks for prerequisites with the first install of an application through the setup.exe file that contains the prerequisite information. If the user opens the app in the future it will check for new versions, but it...
{ "language": "en", "url": "https://stackoverflow.com/questions/81459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to do manual form authentication for ASP.NET mobile page I am developing an ASP.NET mobile website using .NET 3.5 and mobile controls that come with the framework. I have a login form where the system will authenticate the user so he/she can access certain restricted pages. In a standard ASP.NET website, I can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/81472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: when using a FTPS connection to transfer a file, what is the difference between a 'Binary mode taransfer' and 'ASCII mode transfer'? I am using a FTPS connection to send a text file [this file will contain EDI(Electronic Data Interchange) information]to a mailbox INOVIS.I have configured the system to open a FTPS ...
{ "language": "en", "url": "https://stackoverflow.com/questions/81484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I run VisualWorks under OpenBSD? Has anyone gotten VisualWorks running under OpenBSD? It's not an officially supported platform, but one of the Cincom guys was telling me that it should be able to run under a linux compatibility mode. How did you set it up? I already have Squeak running without a problem, so...
{ "language": "en", "url": "https://stackoverflow.com/questions/81491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Best technology for adding plugin support to a J2SE application? I'm writing a J2SE desktop application that requires one of its components to be pluggable. I've already defined the Java interface for this plugin. The user should be able to select at runtime (via the GUI) which implementation of this interface they ...
{ "language": "en", "url": "https://stackoverflow.com/questions/81495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Best he-aac encoder on linux? I need an encoder that can convert mp3 files to he-aac (aka aac+). So far the best one I have found is nero aac encoder . I have two problemes with it : - Only one input format : wav . It is a little bit slow to transform mp3 files to wav and then to he-aac. - a free license for no...
{ "language": "en", "url": "https://stackoverflow.com/questions/81497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Probability of finding TCP packets with the same payload? I had a discussion with a developer earlier today re identifying TCP packets going out on a particular interface with the same payload. He told me that the probability of finding a TCP packet that has an equal payload (even if the same data is sent out severa...
{ "language": "en", "url": "https://stackoverflow.com/questions/81504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't Drag Items Onto An Empty List Using Scriptaculous Sortables I have three unordered lists that have been created as Scriptaculous Sortables so that the user can drag items within the lists and also between them: var lists = ["pageitems","rowitems","columnitems"]; Sortable.create("pageitems", { dropOnEmpty: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/81512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to suppress Terminated message after killing in bash? How can you suppress the Terminated message that comes up after you kill a process in a bash script? I tried set +bm, but that doesn't work. I know another solution involves calling exec 2> /dev/null, but is that reliable? How do I reset it back so that I can...
{ "language": "en", "url": "https://stackoverflow.com/questions/81520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "73" }
Q: scheduled web synchronization with MS Sql Server 2005 I have settled a web synchronization between SQLSERVER 2005 as publisher and SQLEXPRESS as suscriber. Web synchro has to be launched manually through IE interface (menu tools/synchronize) and to be selected among available synchronizations. Everything is working ...
{ "language": "en", "url": "https://stackoverflow.com/questions/81521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Database Design Lookup tables I'm currently trying to improve the design of a legacy db and I have the following situation Currently I have a table SalesLead in which we store the the LeadSource. Create Table SalesLead( .... LeadSource varchar(20) .... ) The Lead Sources are helpfully stored in a table....
{ "language": "en", "url": "https://stackoverflow.com/questions/81533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to set an HTTP header while using a Flex RemoteObject method? I am running blazeds on the server side. I would like to filter http requests using an http header. My goal is to send extra parameters to the server without changing the signatures of my blazeds services. On the client side, I am using Flex RemoteObj...
{ "language": "en", "url": "https://stackoverflow.com/questions/81548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What's the fastest way to copy the values and keys from one dictionary into another in C#? There doesn't seem to be a dictionary.AddRange() method. Does anyone know a better way to copy the items to another dictionary without using a foreach loop. I'm using the System.Collections.Generic.Dictionary. This is for .NE...
{ "language": "en", "url": "https://stackoverflow.com/questions/81552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Launch Infopath form with parameter Opening an Infopath form with parameter can be done like this: System.Diagnostics.Process.Start(PathToInfopath + "infopath.exe", "Template.xsn /InputParameters Id=123"); But that requires I know the path to Infopath.exe which changes with each version of Office. Is there a way t...
{ "language": "en", "url": "https://stackoverflow.com/questions/81556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Prevent implicit import of units in Delphi packages Is there a way to prevent packages in Delphi to implicitly import units that are not listed in the "Contains" list? I'm looking for a compiler directive that makes the build to fail if it tries to do an implicit import. Problems occur when you install a package int...
{ "language": "en", "url": "https://stackoverflow.com/questions/81557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: override constraint from no action to cascading at runtime I feel like I have a very basic/stupid question, yet I never saw/read/heard anything in this direction. Say I have a table users(userId, name) and a table preferences(id, userId, language). The example is trivial but could be extended to a situation with mul...
{ "language": "en", "url": "https://stackoverflow.com/questions/81560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you handle different Java IDEs and svn? How do you ensure, that you can checkout the code into Eclipse or NetBeans and work there with it? Edit: If you not checking in ide-related files, you have to reconfigure buildpath, includes and all this stuff, each time you checkout the project. I don't know, if ant (e...
{ "language": "en", "url": "https://stackoverflow.com/questions/81567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What IDE to use for Python? What IDEs ("GUIs/editors") do others use for Python coding? A: Results Spreadsheet version Alternatively, in plain text: (also available as a a screenshot) Bracket Matching -. .- Line Numbering Smart Indent -. | | .- UML Editing / V...
{ "language": "en", "url": "https://stackoverflow.com/questions/81584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1024" }
Q: Migrating an Existing Application to accept Unicode We have in the process of upgrading our application to full Unicode comptibility as we have recently got Delphi 2009 which provides this out of the box. I am looking for anyone who has experience of upgrading an application to accept Unicode characters. Specifica...
{ "language": "en", "url": "https://stackoverflow.com/questions/81587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to clear connections in Sql Server 2005 My workplace has sales people using a 3rd party desktop application that connects directly the a Sql Server and the software is leaving hundreds of sleeping connections for each user. Is there anyway to clear these connection programmatically? A: Which version of SQL Ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/81589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I set triggers for sendmail? If my email id receives an email from a particular sender, can I ask sendmail to trigger a different program and pass on the newly arrived email to it for further processing? This is similar to filters in gmail. Wait for some email to arrive, see if it matches the criteria and ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/81591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Remove unused references (!= "using") How can I find and delete unused references in my projects? I know you can easily remove the using statements in vs 2008, but this doesn't remove the actual reference in your projects. The referenced dll will still be copied in your bin/setup package. A: Removing unused refer...
{ "language": "en", "url": "https://stackoverflow.com/questions/81597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "100" }
Q: is Microsoft sort.exe able to sort unicode UTF-16 (LE) files? Is Microsoft sort.exe 5.1.2600.0 (xpclient.010817-1148) able to sort UTF-16 (LE) files? A: sort.exe has a number of limitations that can make it somewhat difficult to use. For example, although sort.exe appears to read UTF-16 (LE) files okay, it appears...
{ "language": "en", "url": "https://stackoverflow.com/questions/81617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I hide/delete the "?" help button on the "title bar" of a Qt Dialog? I am using Qt Dialogs in one of my application. I need to hide/delete the help button. But i am not able to locate where exactly I get the handle to his help button. Not sure if its a particular flag on the Qt window. A: // remove question...
{ "language": "en", "url": "https://stackoverflow.com/questions/81627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "101" }
Q: Building a query string based radiobutton values I'd like to build a query string based on values taken from 5 groups of radio buttons. Selecting any of the groups is optional so you could pick set A or B or both. How would I build the querystring based on this? I'm using VB.NET 1.1 The asp:Radiobuttonlist control d...
{ "language": "en", "url": "https://stackoverflow.com/questions/81628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .htaccess mod rewrite 301-redirect I want: all links which not contained filename (not .html, .jpg, .png, .css) redirect with state 301 to directory, for example: http://mysite.com/article -> http://mysite.com/article/ But http://mysite.com/article/article-15.html not redirects. What regulat expression I must write ...
{ "language": "en", "url": "https://stackoverflow.com/questions/81631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do get element out of xml file I get an XML file From a web service. Now I want to get one of those elements out of the file. I think I should go use XPath - any good starter reference? A: I've just been recovering my XPath skills- this Xslt and XPath Quick Reference sheet is quite a useful reference - it doesn...
{ "language": "en", "url": "https://stackoverflow.com/questions/81635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to timeout a mysql++ query in c++ I am using mysql++ in order to connect to a MySQL database to perform a bunch of data queries. Due to the fact that the tables I am reading from are constantly being written to, and that I need a consistent view of the data, I lock the tables first. However, MySQL has no concept...
{ "language": "en", "url": "https://stackoverflow.com/questions/81644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Where do I find the current C or C++ standard documents? For many questions the answer seems to be found in "the standard". However, where do we find that? Preferably online. Googling can sometimes feel futile, again especially for the C standards, since they are drowned in the flood of discussions on programming fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/81656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "394" }
Q: The most efficient way to move psql databases What is the most efficient, secure way to pipe the contents of a postgresSQL database into a compressed tarfile, then copy to another machine? This would be used for localhosting development, or backing up to a remote server, using *nix based machines at both ends. A: T...
{ "language": "en", "url": "https://stackoverflow.com/questions/81657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there an RTF display widget in SWT I would like to display an RTF document in an SWT (actually Eclipse RCP) application. I know there is a Swing widget for displaying and editing RTF text, but it is Swing and quite alien in look and feel when used in the otherwise platform (not to mention that to the last of my k...
{ "language": "en", "url": "https://stackoverflow.com/questions/81671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to check if an object is serializable in C# I am looking for an easy way to check if an object in C# is serializable. As we know you make an object serializable by either implementing the ISerializable interface or by placing the [Serializable] at the top of the class. What I am looking for is a quick way to che...
{ "language": "en", "url": "https://stackoverflow.com/questions/81674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "96" }
Q: Is there a folder in both WinXP and WinVista to which all users have writing permissions? We have a NET app that gets installed to the Program Files folder. The app itself writes some files and creates some directories to its app folder. But when a normal windows user tries to use our application it crashes because...
{ "language": "en", "url": "https://stackoverflow.com/questions/81686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Task/issue tracking system with command-line interface Are the any task tracking systems with command-line interface? Here is a list of features I'm interested in: * *Simple task template Something like plain-text file with property:type pairs, for example: description:string some-property:integer required ...
{ "language": "en", "url": "https://stackoverflow.com/questions/81698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: MinGW "stdio.h : No such file or directory" I am trying to use MinGW to compile a C program under Windows XP. The gcc.exe gives the following error: stdio.h : No such file or directory The code (hello.c) looks like this: #include < stdio.h > void main() { printf("\nHello World\n"); } I use a batch file to call...
{ "language": "en", "url": "https://stackoverflow.com/questions/81716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Generic Method Type Safety I have the concept of NodeTypes and Nodes. A NodeType is a bunch of meta-data which you can create Node instances from (a lot like the whole Class / Object relationship). I have various NodeType implementations and various Node implementations. In my AbstractNodeType (top level for NodeTy...
{ "language": "en", "url": "https://stackoverflow.com/questions/81723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Cleanest way to stop a process on Win32? While implementing an applicative server and its client-side libraries in C++, I am having trouble finding a clean and reliable way to stop client processes on server shutdown on Windows. Assuming the server and its clients run under the same user, the requirements are: * ...
{ "language": "en", "url": "https://stackoverflow.com/questions/81727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What prevents a Thread in C# from being Collected? In .NET, after this code, what mechanism stops the Thread object from being garbage collected? new Thread(Foo).Start(); GC.Collect(); Yes, it's safe to assume something has a reference to the thread, I was just wandering what exactly. For some reason Reflector does...
{ "language": "en", "url": "https://stackoverflow.com/questions/81730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How do I kill a VMware virtual machine that won't die? I've got a virtual machine running on a server that I can't stop or reboot - I can't log onto it anymore and I can't stop it using the VMware server console. There are other VM's running so rebooting the host is out of the question. Is there any other way of fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/81732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Avoid hanging when closing a Yahoo map with lots of markers I have a Yahoo map with lots of markers (~500). The map performs well enough until I close the page, at which point it pauses (in Firefox) and brings up a "Stop running this script?" dialog (in IE7). If given long enough the script does complete its work. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/81768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is anyone developing facebook apps on Grails I have not seen much support for Grails to develop facebook apps.I was just wondering if people around are developing facebook apps on grails A: Jozef Dransfield: http://www.grassr.com/wordpress/?cat=8 A: I'm deep into Facebook integration from the social networking s...
{ "language": "en", "url": "https://stackoverflow.com/questions/81770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: C# - Excluding unit tests from the release version of your project How do you usually go about separating your codebase and associated unit tests? I know people who create a separate project for unit tests, which I personally find confusing and difficult to maintain. On the other hand, if you mix up code and its tes...
{ "language": "en", "url": "https://stackoverflow.com/questions/81784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Can I add new methods to the String class in Java? I'd like to add a method AddDefaultNamespace() to the String class in Java so that I can type "myString".AddDefaultNamespace() instead of DEFAULTNAMESPACE + "myString", to obtain something like "MyDefaultNameSpace.myString". I don't want to add another derived class...
{ "language": "en", "url": "https://stackoverflow.com/questions/81786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Deadlock in ThreadPool I couldn't find a decent ThreadPool implementation for Ruby, so I wrote mine (based partly on code from here: http://web.archive.org/web/20081204101031/http://snippets.dzone.com:80/posts/show/3276 , but changed to wait/signal and other implementation for ThreadPool shutdown. However after some...
{ "language": "en", "url": "https://stackoverflow.com/questions/81788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Does the VFW (Video For Windows) API support Alpha Channel Transparency? Does the VFW (Video For Windows) API support Alpha Channel Transparency? I want to be able to export video with Alpha channel information. How can I do this in VC6? A: I'm pretty sure it does; just set the pixel format to RGB32, which should g...
{ "language": "en", "url": "https://stackoverflow.com/questions/81791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails or Grails? Grails vs Rails. Which has better support? And which one is a better choice to develop medium size apps with? Most importantly which one has more plug-ins? A: Rails is more mature, has more plugins, has a bigger userbase, has better documentation and support available. It can also run on JRuby giv...
{ "language": "en", "url": "https://stackoverflow.com/questions/81830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: What is the best resource for learning about Safety Critical Systems Development (C/C++) I'm looking to locate a good resource (book or otherwise) on safety critical systems development techniques/methodologies, especially something that will cover both hardware and software . I have a sound working knowledge of C/C...
{ "language": "en", "url": "https://stackoverflow.com/questions/81832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }