text
stringlengths
8
267k
meta
dict
Q: How do I find which process is leaking memory? I have a system (Ubuntu) with many processes and one (or more) have a memory leak. Is there a good way to find the process that has the leak? Some of the process are JVMs, some are not. Some are home grown some are open source. A: if the program leaks over a long time,...
{ "language": "en", "url": "https://stackoverflow.com/questions/143791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Where to find beautiful PHP code to read? As a way to find inspiration and improve my PHP skills, I am looking for some beautiful PHP source code to read, preferably an open source "standard" web site rather than a more tool-like project such as phpMyAdmin. So, where can I find some beautiful PHP code? A: CodeIgnit...
{ "language": "en", "url": "https://stackoverflow.com/questions/143792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How do you Serialize ScriptObjects to JSON to save in Silverlight Isolated Storage? According to this article Silverlight 2 Beta 2 supports the DataContractJsonSerializer object. But, when I try to use it VS says "Type 'DataContractJsonSerializer' is not defined". I have a method marked as ScriptableMember that g...
{ "language": "en", "url": "https://stackoverflow.com/questions/143793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to improve link performance for a large C++ application in VS2005 We have fairly large C++ application which is composed of about 60 projects in Visual Studio 2005. It currently takes 7 minutes to link in Release mode and I would like to try to reduce the time. Are there any tips for improving the link time? Mos...
{ "language": "en", "url": "https://stackoverflow.com/questions/143808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: What are some good strategies to allow deployed applications to be hotfixable? In an ideal world, our development processes would be perfect, resulting in regular releases that were so thoroughly tested that it would never be necessary to "hotfix" a running application. But, unfortunately, we live in the real world,...
{ "language": "en", "url": "https://stackoverflow.com/questions/143814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Determine if an HTML element's content overflows Can I use JavaScript to check (irrespective of scrollbars) if an HTML element has overflowed its content? For example, a long div with small, fixed size, the overflow property set to visible, and no scrollbars on the element. A: Another way is compare the element wid...
{ "language": "en", "url": "https://stackoverflow.com/questions/143815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "168" }
Q: Ruby: character to ascii from a string this wiki page gave a general idea of how to convert a single char to ascii http://en.wikibooks.org/wiki/Ruby_Programming/ASCII But say if I have a string and I wanted to get each character's ascii from it, what do i need to do? "string".each_byte do |c| $char = c.chr ...
{ "language": "en", "url": "https://stackoverflow.com/questions/143822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Best way to find if an item is in a JavaScript array? What is the best way to find if an object is in an array? This is the best way I know: function include(arr, obj) { for (var i = 0; i < arr.length; i++) { if (arr[i] == obj) return true; } } console.log(include([1, 2, 3, 4], 3)); // true console...
{ "language": "en", "url": "https://stackoverflow.com/questions/143847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "831" }
Q: How does Multiple C++ Threads execute on a class method let's say we have a c++ class like: class MyClass { void processArray( <an array of 255 integers> ) { int i ; for (i=0;i<255;i++) { // do something with values in the array } } } and one instance of the class like: MyClas...
{ "language": "en", "url": "https://stackoverflow.com/questions/143850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Do you use code generation tools? Do you use code-generation tools (aside from those used to generate proxies and from designers built-in to visual studio)? What part(s) of your application do you generate? Do you typically roll your own generator? If so, what type of generator do you write (asp templates, coddom ...
{ "language": "en", "url": "https://stackoverflow.com/questions/143855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Is there a .NET library for universal audio file decoding? Do you know of any .NET library which can decode several types of audio files? Ideally, it should be platform agnostic, so it can be used with .NET and Mono - on Windows and *NIX. I already tortured Google searching for a library which meets my needs, but un...
{ "language": "en", "url": "https://stackoverflow.com/questions/143856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What is the fastest way to insert data into an Oracle table? I am writing a data conversion in PL/SQL that processes data and loads it into a table. According to the PL/SQL Profiler, one of the slowest parts of the conversion is the actual insert into the target table. The table has a single index. To prepare the da...
{ "language": "en", "url": "https://stackoverflow.com/questions/143872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Java EE and Grails: Communication with WebServices? Which framework? Hy, I'm developing a Grails app which has to communicate with an existing Java EE application (built with EJB2). Both the "legacy" app and the new Grails app will offer services and consume them. For intercompatibility reasons, I'm thinking of comm...
{ "language": "en", "url": "https://stackoverflow.com/questions/143898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you run a single test/spec file in RSpec? I want to be able to run a single spec file's tests — for the one file I'm editing, for example. rake spec executes all the specs. My project is not a Rails project, so rake spec:doc doesn't work. Don't know if this matters, but here is my directory structure. ./Ra...
{ "language": "en", "url": "https://stackoverflow.com/questions/143925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "320" }
Q: Wrap a SQL Reporting Matrix I have a matrix in SQL reporting and I would like it to print on an A4 page. If the matrix has less than 4 columns then it fits but for more than 4 columns I would like the matrix to wrap and show only 4 columns per page. Is this possible? I am using SQL Reporting 2005 in localmode. A: I...
{ "language": "en", "url": "https://stackoverflow.com/questions/143926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: varchar(255) v tinyblob v tinytext My side question is there really any difference between tinyblob & tinytext? Buy my real question is what reason, if any, would I choose varchar(255) over tinyblob or tinytext? A: VARCHAR(255) is more SQL standard than tinyblob or tinytext. So your script, and application woul...
{ "language": "en", "url": "https://stackoverflow.com/questions/143933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: What is the best web based application to access a database Sometimes we deploy applications behind customer firewall and we need read only access to their DB for debugging issues as sometimes their IT people are not SQL savvy. We want to bundle our application with some web based application that will expose the da...
{ "language": "en", "url": "https://stackoverflow.com/questions/143936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Delphi OTA and RTTI bug I'm writing a Delphi expert. I need to be able to write a value to a property on a property which is an object. E.g. I have a GroupBox on the form and I want to edit the Margins.Left property. I'm using the following procedure to do it but if gives an AV on the marked line. The procedure take...
{ "language": "en", "url": "https://stackoverflow.com/questions/143938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: In-memory LINQ performance More than about LINQ to [insert your favorite provider here], this question is about searching or filtering in-memory collections. I know LINQ (or searching/filtering extension methods) works in objects implementing IEnumerable or IEnumerable<T>. The question is: because of the nature of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/143947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Is there a S.M.A.R.T. Library for .NET or Java? I asked a somewhat related question but I want it to make it more concrete and 'programming' oriented, so here it goes: Does any body know, if there is a .NET, JAVA or any other Framework, library, .jar file or what ever: to access S.M.A.R.T. Statistics? Thanks! A: Yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/143969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: When should TAGs be preferred over BRANCHING and vice versa (in CVS)? I think title should be good enough. A: Tags should be used when you want to mark a milestone. The milestone could be as small as a daily build. Branches should be used when you want to make changes independently from another branch/trunk. A: T...
{ "language": "en", "url": "https://stackoverflow.com/questions/143971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Where would you use C# Runtime Compilation? I happened upon a brief discussion recently on another site about C# runtime compilation recently while searching for something else and thought the idea was interesting. Have you ever used this? I'm trying to determine how/when one might use this and what problem it sol...
{ "language": "en", "url": "https://stackoverflow.com/questions/143973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Is casting the same thing as converting? In Jesse Liberty's Learning C# book, he says "Objects of one type can be converted into objects of another type. This is called casting." If you investigate the IL generated from the code below, you can clearly see that the casted assignment isn't doing the same thing as the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/143997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: Choosing a database type When would you use a bigtabe/simpledb database vs a Relational database? A: Relational databases give you a lot more layout and query flexibility, and are easier to use, but you also end up with more pain if you later need to partition your data if it won't fit on a single database server/c...
{ "language": "en", "url": "https://stackoverflow.com/questions/144001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you get a flash mp3 player to keep playing if a user changes page? I really like the mp3 player on 8tracks.com and was wondering how they manage to keep the mp3 playing even when I change pages? For example, listen to the track here http://8tracks.com/mixes?q=Aztec+Camera and click on one of the links to anot...
{ "language": "en", "url": "https://stackoverflow.com/questions/144017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to incorporate Interactive Ruby into my development process? I am trying to find a better way to integrate IRB with my normal ruby devleopment. Currently I rarely use IRB with my code. I only use it to verify syntax or to try something small. I know I can load my own code into ruby as a require 'mycode' but...
{ "language": "en", "url": "https://stackoverflow.com/questions/144046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Recommended IRC server (ircd) for a small site? The situation: I want to play around with IRC bots as general communications interfaces to other code I am investigating. The server hardware would be old and low-memory, but running on a relatively up-to-date Debian GNU/Linux install. I don't expect more than a hund...
{ "language": "en", "url": "https://stackoverflow.com/questions/144049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Eclipse Ganymede not validating JSPs properly I just installed Ganymede and am exploring an old project in it. All of my JSPs are giving me weird validation errors. I'm seeing stuff like - Syntax error on token "}", delete this token Syntax error on token "catch", Identifier expected Syntax error, insert "Finally" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/144058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to pass page's meta tags in ASP.NET MVC? I'm playing with ASP.NET MVC for the last few days and was able to build a small site. Everything works great. Now, I need to pass the page's META tags (title, description, keywords, etc.) via the ViewData. (i'm using a master page). How you're dealing with this? Thank y...
{ "language": "en", "url": "https://stackoverflow.com/questions/144088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Database Design I need to create a database to store simulation results. What resources are out there to help me design this? EDIT: For those who want more details... We work with a discrete event simulation used by the military. Important simulation events are thus when weapons are fired, when kills occur, and al...
{ "language": "en", "url": "https://stackoverflow.com/questions/144090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Proper place to call an event? I have a Windows Form project that I've just started. On the form I have a listbox that I'm loading with Products. When someone double clicks a Product, I want it to raise a ProductChanged event. Other things in my project will subscribe to this event and update things like other parts...
{ "language": "en", "url": "https://stackoverflow.com/questions/144106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Server normalization tactic: varchar vs int Identity I'm just wondering what the optimal solution is here. Say I have a normalized database. The primary key of the whole system is a varchar. What I'm wondering is should I relate this varchar to an int for normalization or leave it? It's simpler to leave as a var...
{ "language": "en", "url": "https://stackoverflow.com/questions/144109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ORA-01031: insufficient privileges when creating package I'm getting ORA-01031: insufficient privileges when creating a package my own schema. Shouldn't I have complete control over my schema. If this is not the case, what privileges does my schema need? A: If you are referencing tables that are not in your schem...
{ "language": "en", "url": "https://stackoverflow.com/questions/144113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Any free Text To Speech for browsers? Wondering if there is any Text to Speech software available as a plug in for IE or Firefox. A: There is also NVDA (NonVisual Desktop Access) which is an open source general purpose screen reader for Windows. A: It is built in for Safari on Mac OSX. Highlight any text and go t...
{ "language": "en", "url": "https://stackoverflow.com/questions/144117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: JAXB Binding Customization While trying to generate classes from a xsd, i got this error: java.lang.IllegalArgumentException: Illegal class inheritance loop. Outer class OrderPropertyList may not subclass from inner class: OrderPropertyList My xsd define a element to group a unbounded element like this: <element...
{ "language": "en", "url": "https://stackoverflow.com/questions/144118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: C Compatibility Between Integers and Characters How does C handle converting between integers and characters? Say you've declared an integer variable and ask the user for a number but they input a string instead. What would happen? A: The user input is treated as a string that needs to be converted to an int usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/144134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Traversing negative Array indeces in JScript I have a sparse array in Jscript, with non-null elements occuring at both negative and positive indices. When I try to use a for in loop, it doesn't traverse the array from the lowest (negative) index to the highest positive index. Instead it returns the array in the orde...
{ "language": "en", "url": "https://stackoverflow.com/questions/144147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I prevent Excel from rendering the spreadsheet as my macro calculates it? My macro updates a large spreadsheet with numbers, but it runs very slowly as excel is rendering the result as it computes it. How do I stop excel from rendering the output until the macro is complete? A: Application.ScreenUpdating = F...
{ "language": "en", "url": "https://stackoverflow.com/questions/144151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How would you handle a very large vector in Ruby? I'm planning to write a program in Ruby to analyse some data which has come back from an online questionnaire. There are hundreds of thousands of responses, and each respondent answers about 200 questions. Each question is multiple-choice, so there are a fixed number...
{ "language": "en", "url": "https://stackoverflow.com/questions/144166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to format Oracle SQL text-only select output I am using Oracle SQL (in SQLDeveloper, so I don't have access to SQLPLUS commands such as COLUMN) to execute a query that looks something like this: select assigner_staff_id as staff_id, active_flag, assign_date, complete_date, mod_date from work where assigner_sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/144167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: User Privileges Why does a user needs privileges over his own schema to create packages and triggers? A: Are you asking why users need particular priviliges (i.e. CREATE TABLE, CREATE PROCEDURE, etc) in order to create particular types of objects in their own schema? If so, the natural answer would be that good s...
{ "language": "en", "url": "https://stackoverflow.com/questions/144175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Fastest way to convert a possibly-null-terminated ascii byte[] to a string? I need to convert a (possibly) null terminated array of ascii bytes to a string in C# and the fastest way I've found to do it is by using my UnsafeAsciiBytesToString method shown below. This method uses the String.String(sbyte*) constructor ...
{ "language": "en", "url": "https://stackoverflow.com/questions/144176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: AS3/PureMVC Best Practices? Best code examples of well architected projects? I am a AS3 novice learning PureMVC and want to write code following best practices so that any other AS3 developer can pick up my code and easily understand what I did, I am tempted to do stuff as I would in JavaScript or Asp.Net/C#, but I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/144193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I deploy an ADF business component? How do I deploy an ADF business component to the middle tier and call it using RMI? I just cannot find any good documentation on this! A: Select the ADF BC application module and use your right button to create a business components deployment and select EJB session bean. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/144200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Has anyone found a good set of python plugins for vim -- specifically module completion? I'm looking for a suite of plugins that can help me finally switch over to vim full-time. Right now I'm using Komodo with some good success, but their vim bindings have enough little errors that I'm tired of it. What I do love i...
{ "language": "en", "url": "https://stackoverflow.com/questions/144201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How can I be sure the whole MySQL DB is loaded in memory? I am running a mysql server. I would like to somehow make sure that the whole DB is loaded into the ram as I heard it would be alot faster. Is this true? and how do I vertify it? A: If you are using InnoDB, then you can set innodb_buffer_pool_size to be at l...
{ "language": "en", "url": "https://stackoverflow.com/questions/144210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Significant figures in the decimal module So I've decided to try to solve my physics homework by writing some python scripts to solve problems for me. One problem that I'm running into is that significant figures don't always seem to come out properly. For example this handles significant figures properly: from de...
{ "language": "en", "url": "https://stackoverflow.com/questions/144218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Do CSS ems always represent the font size? From what I know, the em keyword in CSS means the current size of a font. So if you put 1.2 em, it means 120% of the font height. It doesn't seem right though that em is used for setting the width of divs etc like YUI grids does: margin-right:24.0769em;*margin-right:23.62em...
{ "language": "en", "url": "https://stackoverflow.com/questions/144226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: C# / F# Performance comparison Is there any C#/F# performance comparison available on web to show proper usage of new F# language? A: Natural F# code (e.g. functional/immutable) is slower than natural (imperative/mutable object-oriented) C# code. However, this kind of F# is much shorter than usual C# code. Obvious...
{ "language": "en", "url": "https://stackoverflow.com/questions/144227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: Platform for ad-supported shareware Folks, I'm working on a little piece of rich client software that I'd like to distribute for free. That is, I'd still like to make money on it, but I'd like the revenue to come from advertising. Do you know of an advertising platform that works well for client apps? I'd like the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/144237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What are the consequences of not closing database connection after an error? I have an application that is causing a lot of headaches. It's a .NET app connecting to SQL Server 2005 via a web service. The program has grid that is filled by a long running stored procedure that is prone to timing out. In the case when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/144246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to get the RGB values for a pixel on an image on the iphone I am writing an iPhone application and need to essentially implement something equivalent to the 'eyedropper' tool in photoshop, where you can touch a point on the image and capture the RGB values for the pixel in question to determine and match its col...
{ "language": "en", "url": "https://stackoverflow.com/questions/144250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: Getting started with Android So, I'll be getting my T-Mobile G1 within a month or so, and I'm excited to start developing for it. Has anyone started using it yet? Is there a dev wiki or anything set up for it yet? A: Some tutorials in this website http://mylifewithandroid.blogspot.com/ A: http://code.google.com/an...
{ "language": "en", "url": "https://stackoverflow.com/questions/144254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: Add WCF Service reference fails. And VS2008 exits I have a super-simple WCF Service. I host it on my local machine using IIS7. When I add a service reference to my service, Visual Studio tells me there was an error. I can click a Details link, and that bring up a dialog box saying: Object reference not set to an ins...
{ "language": "en", "url": "https://stackoverflow.com/questions/144255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Memory leak detection tools Does Apple's Xcode development environment provide any tools for memory leak detection? I am especially interested in tools that apply to the iPhone SDK. Currently my favourite platform for hobby programming projects Documentations/tutorials for said tools would be very helpful. A: There...
{ "language": "en", "url": "https://stackoverflow.com/questions/144261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "64" }
Q: What's the difference between AddConcreteType and TheDefaultIsConcreteType in StructureMap? I'm setting up StructureMap and it seems like everything I want to do there are two ways to do it and it's unclear to me what the difference is between them. For instance, what's the difference between these two lines: Struc...
{ "language": "en", "url": "https://stackoverflow.com/questions/144272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Alternative to phpUnderControl - is it the best? I am searching for a good system for PHP, which does UnitTesting, Subversion, Coding Standards. I would love to hear your suggestions and which one is the best and why. I will be running it on a debian server so anything which runs on mac or windows servers would be o...
{ "language": "en", "url": "https://stackoverflow.com/questions/144274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Is the mono .NET project included in latest release of most popular linux distros? I'm wondering if mono.net is included in the default installation of Ubuntu, Kubuntu, and Fedora, and other popular distros? If so, does anyone have a good reason why NOT to use it to develop a new GUI application targeted mainly for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/144277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What is the difference between varchar and nvarchar? Is it just that nvarchar supports multibyte characters? If that is the case, is there really any point, other than storage concerns, to using varchars? A: If a single byte is used to store a character, there are 256 possible combinations, and thereby you can save...
{ "language": "en", "url": "https://stackoverflow.com/questions/144283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1655" }
Q: State of C++ Standard I haven't kept up lately with the C++ world. Exactly where do things stand these days regarding the standard? Is TR1 adopted? Is there a TR2? How do these relate to C++0x? Are the subsumed? Has a decision been reached on threading yet? A: You can find an extensive article about the upc...
{ "language": "en", "url": "https://stackoverflow.com/questions/144285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the best MPI implementation I have to implement MPI system in a cluster. If anyone here has any experience with MPI (MPICH/OpenMPI), I'd like to know which is better and how the performance can be boosted on a cluster of x86_64 boxes. A: I've written quite a few parallel applications for both Windows and L...
{ "language": "en", "url": "https://stackoverflow.com/questions/144309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: How to take the seed for a random generator from the clock, programming in assembler Compiler, TASM 5 Architecture x86. For a random number generator algorithm, take tha clock as the seed. I found that solution: AcquireSeed PROC PUSH AX PUSH CX PUSH DX MOV Ah, 00h ; Int INT 1AH ; return th...
{ "language": "en", "url": "https://stackoverflow.com/questions/144315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What do you use to test your browser extension / BHO? What are the best approaches / tools to test browser extensions? In my case I work on an IE Browser Helper Object (C#) which has a small UI of its own and a good deal of database interaction. Up till now we've used automated unit tests for testing our model/busin...
{ "language": "en", "url": "https://stackoverflow.com/questions/144319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Searching/reading another file from awk based on current file's contents, is it possible? I'm processing a huge file with (GNU) awk, (other available tools are: Linux shell tools, some old (>5.0) version of Perl, but can't install modules). My problem: if some field1, field2, field3 contain X, Y, Z I must search for...
{ "language": "en", "url": "https://stackoverflow.com/questions/144321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: OpenID retrofitting and can I trust where sensitive data is involved? I am considering adding OpenID to our customer facing admin and control panel areas... 1 - Associating OpenID's With Existing Accounts For customers that already have accounts with us, I'm thinking they would need to login using their existing acc...
{ "language": "en", "url": "https://stackoverflow.com/questions/144324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What would the best tool to create a natural DSL in Java? A couple of days ago, I read a blog entry (http://ayende.com/Blog/archive/2008/09/08/Implementing-generic-natural-language-DSL.aspx) where the author discuss the idea of a generic natural language DSL parser using .NET. The brilliant part of his idea, in my o...
{ "language": "en", "url": "https://stackoverflow.com/questions/144339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How to store directory / hierarchy / tree structure in the database? How do i store a directory / hierarchy / tree structure in the database? Namely MSSQL Server. @olavk: Doesn't look like you've seen my own answer. The way i use is way better than recursive queries :) p.p.s. This is the way to go! A: If using Sql ...
{ "language": "en", "url": "https://stackoverflow.com/questions/144344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "64" }
Q: What are the best practices for designing a RESTful public API on Rails? Rails comes with RESTful resources out of the box, but do you use those for your actual public API? If so, how would you accomplish versioning of your API i.e. example.com/api/v2/foo/bar? A: Typically, APIs for my applications are indeed buil...
{ "language": "en", "url": "https://stackoverflow.com/questions/144359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Simple basic explanation of a Distributed Hash Table (DHT) Could any one give an explanation on how a DHT works? Nothing too heavy, just the basics. A: I'd like to add onto HenryR's useful answer as I just had an insight into consistent hashing. A normal/naive hash lookup is a function of two variables, one of whi...
{ "language": "en", "url": "https://stackoverflow.com/questions/144360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "190" }
Q: Two column layout with one having a fixed width in CSS I want a nice 2 column layout using CSS float's. Column#1 160 px Column#2 100% (i.e. the rest of the space). I want to place the Col#2's div first, so my layout looks like: <div id="header"></div> <div id="content"> <div id="col2"></div> <div id="col1"...
{ "language": "en", "url": "https://stackoverflow.com/questions/144375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ruby: How to break a potentially unicode string into bytes I'm writing a game which is taking user input and rendering it on-screen. The engine I'm using for this is entirely unicode-friendly, so I'd like to keep that if at all possible. The problem is that the rendering loop looks like this: "string".each_byte do...
{ "language": "en", "url": "https://stackoverflow.com/questions/144380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a tool that will look at my Java code, and suggest a good package structure? I have a large codebase, and I'd like to refactor the package structure so that classes which interact heavily go in the same package. It seems that it should be possible to create a tool that could look at the interactions between...
{ "language": "en", "url": "https://stackoverflow.com/questions/144392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are the best practices for handling Unicode strings in C#? Can somebody please provide me some important aspects I should be aware of while handling Unicode strings in C#? A: C# (and .Net in general) handle unicode strings transparently, and you won't have to do anything special unless your application needs t...
{ "language": "en", "url": "https://stackoverflow.com/questions/144397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Do you know a good Java RSS/Feed Generator? I'm searching a small Java based RSS/Feed Generator, something like the FeedCreator.class.php library, any suggestions?, thanks! A: How about jRSS? It looks promising -- supports generating RSS 2 and is relatively small. A: I used an API a few years back called ROME. I t...
{ "language": "en", "url": "https://stackoverflow.com/questions/144421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Collapsable Drop Down List Box in HTML Is there any sort of free control which does what the Occupation field does on http://monster.ca? That is allow for grouping of the options in a drop down box with expandable sections? I just learned about the optgroup tag which is close to what I want, but not quite. A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/144425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the best way to serialize data in a language-independent binary format? I'm looking into a mechanism for serialize data to be passed over a socket or shared-memory in a language-independent mechanism. I'm reluctant to use XML since this data is going to be very structured, and encoding/decoding speed is vita...
{ "language": "en", "url": "https://stackoverflow.com/questions/144435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Building a directory string from component parts in C# If i have lots of directory names either as literal strings or contained in variables, what is the easiest way of combining these to make a complete path? I know of Path.Combine but this only takes 2 string parameters, i need a solution that can take any number ...
{ "language": "en", "url": "https://stackoverflow.com/questions/144439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Python PostgreSQL modules. Which is best? I've seen a number of postgresql modules for python like pygresql, pypgsql, psyco. Most of them are Python DB API 2.0 compliant, some are not being actively developed anymore. Which module do you recommend? Why? A: psycopg2 seems to be the most popular. I've never had any ...
{ "language": "en", "url": "https://stackoverflow.com/questions/144448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: How to get create/last modified dates of a file in Delphi? I want to get a files these attributes as integer values. A: From the DSiWin32 freeware library: function DSiFileTimeToDateTime(fileTime: TFileTime; var dateTime: TDateTime): boolean; var sysTime: TSystemTime; begin Result := FileTimeToSystemTime(fileT...
{ "language": "en", "url": "https://stackoverflow.com/questions/144453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How do I convert an M4A file to an MP3 or WMA file programmatically? Greetings, I'm trying to find either a free .NET library or a command-line executable that lets me convert M4A files to either MP3s or WMA files. Please help :). A: Found it! http://pieter.wigleven.com/it/archives/3 There may be other solutions, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/144466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Tracking changes in Windows registry Is there a way to track changes in Windows registry? I'd like to see what changes in the registry are made during installation of various programs. A: A straightforward way to do this with no extra tools is to export the registry to a text file before the install, then export i...
{ "language": "en", "url": "https://stackoverflow.com/questions/144468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: Java: Arrays & Vectors I'm used to working with PHP but lately I've been working with Java and I'm having a headache trying to figure this out. I want to save this representation in Java: Array ( ["col_name_1"] => Array ( 1 => ["col_value_1"], ...
{ "language": "en", "url": "https://stackoverflow.com/questions/144474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do I inject a form value with jQuery? I am working with jQuery Form and ASP.NET MVC. Preview 5 of ASP.NET MVC has an Extension Method on HttpRequest called IsAjaxMvcRequest that detects if the POST was an Ajax request. This Extension Method basically "sniffs" for a form value called __MVCASYNCPOST and (basically...
{ "language": "en", "url": "https://stackoverflow.com/questions/144477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can you recommend a PostgreSQL Visual Database Designer for Linux? When I'm in Windows, I use the excellent MicroOLAP Database Designer for PostgreSQL, but its not open source or multiplataform. Do you know or can recommend me an alternative to this software, that I can use in Linux? EDIT: Just to clarify, I don't w...
{ "language": "en", "url": "https://stackoverflow.com/questions/144487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How should the Data Access Layer be structured? I initially designed my system following the s# architecture example outlined in this codeproject article (Unfortunately, I am not using NHibernate). The basic idea is that for each domain object that would need to communicate with the persistence layer you would have...
{ "language": "en", "url": "https://stackoverflow.com/questions/144503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: IDictionary or NameValueCollection I'm currently writing an interface to allow applications to send exception data to a central repository for support purposes. I'm at a quandary about how to pass extra contextual data: public interface IExceptionNotifier { void Notify(Exception ex, NameValueCollection context);...
{ "language": "en", "url": "https://stackoverflow.com/questions/144516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Refresh Oldschool GUI Design I'm building Desktop Software for over 10 years now, mostly it's simple Data-Input Software. My problem is, it's always looking the same: A Treeview on the Left and a lot of Text/Data Fields to the right, depending on the type of data currently is worked on. Are there any fresh ideas how...
{ "language": "en", "url": "https://stackoverflow.com/questions/144525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: == or .Equals() Why use one over the other? A: == is the identity test. It will return true if the two objects being tested are in fact the same object. Equals() performs an equality test, and will return true if the two objects consider themselves equal. Identity testing is faster, so you can use it when there's n...
{ "language": "en", "url": "https://stackoverflow.com/questions/144530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "74" }
Q: StringCollection or an Object container? I recently built an API and was often asked to replace the StringCollections i was returning by objects containing a single property, The reason being that it was easier to bind with a listview or other controls in ASP.Net. Since the API was used by the web application, the W...
{ "language": "en", "url": "https://stackoverflow.com/questions/144533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are some good WPF grid controls? We use a grid control from Infragistics at work. Are there others? Pay or free? A: Free DataGrid(.NET3.5 SP1) is at CodePlex Please see the answers in this Threads talking about DataGrid. * *Is DataGrid a necessity in WPF? *What WPF Datagrid controls are worth the money an...
{ "language": "en", "url": "https://stackoverflow.com/questions/144537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are your strategies to keep the memory usage low? Ruby is truly memory-hungry - but also worth every single bit. What do you do to keep the memory usage low? Do you avoid big strings and use smaller arrays/hashes instead or is it no problem to concern about for you and let the garbage collector do the job? Edi...
{ "language": "en", "url": "https://stackoverflow.com/questions/144542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: SQL Server: Dynamic where-clause Problem: Ajax suggest-search on [n] ingredients in recipes. That is: match recipes against multiple ingredients. For instance: SELECT Recipes using "flower", "salt" would produce: "Pizza", "Bread", "Saltwater" and so forth. Tables: Ingredients [ IngredientsID INT [PK], Ingred...
{ "language": "en", "url": "https://stackoverflow.com/questions/144550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are the techniques for word recognition in a sound stream? I'm quite curious about this. In a broad way, how does one go about doing the following: * *Detection of word separations. *Detection of syllables. *Compensate for normal speech word connections. A: This is subject of extensive research until the...
{ "language": "en", "url": "https://stackoverflow.com/questions/144555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Specifying the type of ArrayList's elements I thought that there was some way in .net 3.0 to give an array list a type so that it didnt just return Object's but I'm having trouble doing so. Is it possible? If so, how? A: You're probably looking for List<T>, available since .NET 2.0, or for any other of the generic ...
{ "language": "en", "url": "https://stackoverflow.com/questions/144570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Windows C++ dialog resizer class I'm looking for a really good dialog resizer class that will stretch and shrink individual items as needed as the screen is resized. Stephan Keil has a good one (DlgResizeHelper) which basically resizes everything by a set ratio, but I'm looking for something smarter. For example: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/144583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Robust and easy to implement serial bus (automotive application) What serial communication bus would you use in a automotive embedded system if your main selection criteria were: * *Electrically robust *Slow speed (32 kb/s) *Easy to program *Easy to interface with microcontrollers It won't be trans...
{ "language": "en", "url": "https://stackoverflow.com/questions/144600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Grails - Acegi: Customize Authentication Method I want to change the authentication process that is used by the Acegi - Plugin. It should be a completely customized process. Custom login form + custom auth method. Obviously there is only little documentation regarding this topic. In the book The Definitive Guide to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/144605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are good application servers for LAMP stacks? I need recommendations for good application servers for monitoring and debugging PHP and Mysql running on linux. It should have a GUI, query profiling (log slow queries etc.) and capture PHP errors with environment coniditions. I am aware only of the Zend Platform ...
{ "language": "en", "url": "https://stackoverflow.com/questions/144619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I allow a user to use their own domain name for a hosted service? I am working on an ASP.NET MVC web app that allows people to publish content, but other than publish the content to a remote server, I want to allow people to use their domain name directly. For example, the user "Tom" can have his domain name...
{ "language": "en", "url": "https://stackoverflow.com/questions/144630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to order citations by appearance using BibTeX? By default (using the plain style) BibTeX orders citations alphabetically. How to order the citations by order of appearance in the document? A: I'm a bit new to Bibtex (and to Latex in general) and I'd like to revive this old post since I found it came up in many...
{ "language": "en", "url": "https://stackoverflow.com/questions/144639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "373" }