text stringlengths 8 267k | meta dict |
|---|---|
Q: Where is the benefit in using the Strategy Pattern? I've looked at this explanation on Wikipedia, specifically the C++ sample, and fail to recognize the difference between just defining 3 classes, creating instances and calling them, and that example. What I saw was just placing two other classes into the process an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: nhibernate - sort null at end Using NHibernate from C# and only HQL (not SQL) in a way that is compatible with MS SQL Server 2005/2008 (and preferably Oracle).
Is there a way to write the order by clause so that nulls will sort at the end of the query results while the non-null results will be sorted in ascending or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you organize Python modules? When it comes to organizing python modules, my Mac OS X system is a mess. I've packages lying around everywhere on my hdd and no particular system to organize them.
How do you keep everything manageable?
A: In addition to PEP8 and easy_install, you should check out virtualenv. Vi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: TSVN DNS error: The requested name is valid, but no data of the requested type was found I've updated my TortoiseSVN client and now I'm getting the error when trying to update or commit to different repositories:
The requested name is valid, but no data of the requested type was
found
Any ideas on how I can solv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there any LaTeX package for drawing Gantt diagrams? Are there LaTeX packages for (more or less) easily drawing Gantt diagrams?
Thanks.
A: I have not used myself, but it looks like PSTricks offers some Gantt chart drawing capabilities.
Main PSTricks site: http://tug.org/PSTricks/main.cgi
Example of Gantt chart u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: VC9 and VC8 lib compatibility (The original question was asked there : http://www.ogre3d.org/phpBB2/viewtopic.php?t=44832 )
Someone asked :
"While I would like to build everything in vs2008 (VC9), the PhysX SDK is built with vs2005 (VC8). Would this cause any problems, using all vc9 compiled libs and used in combin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Programmatically showing a View from an Eclipse Plug-in I have a plug-in to an Eclipse RCP application that has a view. After an event occurs in the RCP application, the plug-in is instantiated, its methods are called to populate the plug-in's model, but I cannot find how to make the view appear without going to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Looking for a Complete Delphi (object pascal) syntax I need a complete Object Pascal syntax (preferably Delphi 2009). Some of the syntax is given by the help files, but not all information is provided. So I started collecting loose bits of information. Recently I added these to a more or less complete syntax descrip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: How best to store Subversion version information in EAR's? When receiving a bug report or an it-doesnt-work message one of my initials questions is always what version? With a different builds being at many stages of testing, planning and deploying this is often a non-trivial question.
I the case of releasing Java J... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Double buffer child controls in custom control (C#) I want to double buffer a custom control which contains buttons. I have tried various ways to double buffer the control; SetStyle, BufferedGraphicsContext, and drawing to a bitmap. These all work fine for the custom drawing of the control, but none of them handle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Which Python book would you recommend for a Linux Sysadmin? Python for Unix and Linux System Administration is aimed at sysadmins.
Any other favorites besides this.
A: First, you can start off the learn the basics of Python at Python documentation Index. Also of interest there would be the tutorial, library referen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem using the ASP.NET FileUpload control in an UpdatePanel? I'm running into an issue where I have a FileUpload control in an UpdatePanel. When I attempt to save changes and upload the file, no file is found. If I remove the UpdatePanel everything seems to work fine.
Any ideas why this might be happening? A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Excel 2003 XML format - AutoFitWidth not working I have a program that spits out an Excel workbook in Excel 2003 XML format. It works fine with one problem, I cannot get the column widths to set automatically.
A snippet of what I produce:
<Table >
<Column ss:AutoFitWidth="1" ss:Width="2"/>
<Row ss:AutoFitHe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Detecting appearance/disappearance of volumes on osx I want to update a list of storage devices as the user inserts USB keys, adds external disks and mounts disk images. IOKit's IOServiceAddInterestNotification looks like the way to go, but the obvious use of registering general interest in kIOMediaClass only gives ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Namespaces and Operator Overloading in C++ When authoring a library in a particular namespace, it's often convenient to provide overloaded operators for the classes in that namespace. It seems (at least with g++) that the overloaded operators can be implemented either in the library's namespace:
namespace Lib {
cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: How to find and tail the Oracle alert log When you take your first look at an Oracle database, one of the first questions is often "where's the alert log?". Grid Control can tell you, but its often not available in the environment.
I posted some bash and Perl scripts to find and tail the alert log on my blog some ti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: KSH scripting: how to split on ',' when values have escaped commas? I try to write KSH script for processing a file consisting of name-value pairs, several of them on each line.
Format is:
NAME1 VALUE1,NAME2 VALUE2,NAME3 VALUE3, etc
Suppose I write:
read l
IFS=","
set -A nvls $l
echo "$nvls[2]"
This will give me s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do two-phase commits prevent last-second failure? I am studying how two-phase commit works across a distributed transaction. It is my understanding that in the last part of the phase the transaction coordinator asks each node whether it is ready to commit. If everyone agreed, then it tells them to go ahead and c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "90"
} |
Q: Browsing directory without using mapped drive Is there an app or way to browse a directory that requires different login credentials without using a mapped drive?
The issue is given one login credential Windows Explorer only allows you to map it to one drive and disallows using the same login credential to map to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Example websites using db4o I'm very impressed with my initial tests with db4o. However, i'm wondering just how many enterprise class websites are out there powered by db4o, i couldn't see any on the main website?
I can't see any reason why db4o should not be used. There appears to be decent enough support for tran... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Best generic strategy to group items using multiple criteria I have a simple, real life problem I want to solve using an OO approach. My harddrive is a mess. I have 1.500.000 files, duplicates, complete duplicate folders, and so on...
The first step, of course, is parsing all the files into my database. No problems ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: State of "memset" functionality in C++ with modern compilers Context:
A while ago, I stumbled upon this 2001 DDJ article by Alexandrescu:
http://www.ddj.com/cpp/184403799
It's about comparing various ways to initialized a buffer to some value. Like what "memset" does for single-byte values. He compared various impl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How do I syntax check a Bash script without running it? Is it possible to check a bash script syntax without executing it?
Using Perl, I can run perl -c 'script name'. Is there any equivalent command for bash scripts?
A: I actually check all bash scripts in current dir for syntax errors WITHOUT running them using f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "316"
} |
Q: jquery-ui-dialog - How to hook into dialog close event I am using the jquery-ui-dialog plugin
I am looking for way to refresh the page when in some circumstances when the dialog is closed.
Is there a way to capture a close event from the dialog?
I know I can run code when the close button is clicked but that doesn't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "192"
} |
Q: What does it mean to run a virtual OS in "headless mode"? I've been hearing a lot about about how the new version of VMWare Fusion can run virtual operating systems in "headless mode".
A Google search makes it clear that other virtualisation products also have similar features, however, I have not been able to find... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Is there a destructor for Java? Is there a destructor for Java? I don't seem to be able to find any documentation on this. If there isn't, how can I achieve the same effect?
To make my question more specific, I am writing an application that deals with data and the specification say that there should be a 'reset' bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "656"
} |
Q: AG_E_PARSER_BAD_PROPERTY_VALUE for StaticResource in Silverlight I'm storing all localizable strings in a ResourceDictionary (in App.xaml) and assign those via the StaticResource markup extension to TextBlock.Text, Button.Content etc.
In Beta 2 and RC0, sometimes parsing the XAML in InitializeComponent() will fail w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I find the method that called the current method? When logging in C#, how can I learn the name of the method that called the current method? I know all about System.Reflection.MethodBase.GetCurrentMethod(), but I want to go one step beneath this in the stack trace. I've considered parsing the stack trace, bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "613"
} |
Q: How can I extract a line or row? How can I extract the whole line in a row, for example, row 3.
These data are saved in my text editor in linux.
Here's my data:
1,julz,kath,shiela,angel
2,may,ann,janice,aika
3,christal,justine,kim
4,kris,allan,jc,mine
I want output like:
3,christal,justine,kim
A: $ perl -ne'print... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: when updating a whole project's root, how to exclude svn externals from being updated? Is there a way to exclude all svn externals when doing a recursive update?
Is there a way to exclude only 1 of all of the svn externals when doing a recursive update?
Basically I'd like to cut down the svn update time, and a coupl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How do you develop against OpenID locally I'm developing a website (in Django) that uses OpenID to authenticate users. As I'm currently only running on my local machine I can't authenticate using one of the OpenID providers on the web. So I figure I need to run a local OpenID server that simply lets me type in a use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: GPSID - Poll Driver V2.0 On the page
http://msdn.microsoft.com/en-us/library/bb202066.aspx
If references something called "POLL Driver V2" however this is the only
place I can see that talks about this. I'm extermely interested in the
GPSSetDeviceParam: GPS_QUERY_FIX call but after searching for about 2 hours
on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does FileSystemWatcher create multiple change events when I copy a file to the directory I've written a small test application using the .Net FileSystemWatcher to keep an eye on a directory. When I copy a large-ish (a few Mb) file into that directory I get the following events listed (see screenshot - and ignore... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Migrate from ClearCase to SVN/Mercurial At work, we're using ClearCase right now. However, there's a lot of overhead required, especially when someone does something stupid (like erase a view with multiple reserved check-outs on the trunk...). Since we're trying to lower our overhead and be as lightweight as possi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Django UserProfile... without a password I'd like to create a subset of Users that don't have a login... basically as a way to add a photographer field to photos without having a full blown account associated with that person (since in many cases, they'll never actually log in to the site). A caveat is that I'd also... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is it possible to generate a database from the Entity Data Model (edmx) file? In Linq to SQL it is possible to generate the database from the dbml file.
Is it possible to generate a database from the Entity Data Model ? I wish to accomplish the same thing using the edmx file.
A: Not until the next version, as you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Slow SoapHttpClientProtocol constructor I'm doing some experiments with Microsoft Dynamics CRM. You interact with it through web services and I have added a Web Reference to my project. The web service interface is very rich, and the generated "Reference.cs" is some 90k loc.
I'm using the web reference in a console... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Deserialize jSON Google AJAX Translation API I've got the JSON coming back like this:
{
"responseData": [{
"responseData": {
"translatedText": "elefante"
},
"responseDetails": null,
"responseStatus": 200
}, {
"responseData": {
"translatedText": "Burro"
},
"responseDetails"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I elegantly print the date in RFC822 format in Perl? How can I elegantly print the date in RFC822 format in Perl?
A: It can be done with strftime, but its %a (day) and %b (month) are expressed in the language of the current locale.
From man strftime:
%a The abbreviated weekday name according to the curr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How to get notified when a drive letter becomes available Is it possible to get notified (without polling, but via an event) when a drive letter becomes accessible. For example if you have an external hard drive that always appears as drive F - is it possible to have an event raised when that is connected and F beco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Avoiding, finding and removing memory leaks in Cocoa Memory (and resource) leaks happen. How do you make sure they don't?
What tips & techniques would you suggest to help avoid creating memory leaks in first place?
Once you have an application that is leaking how do you track down the source of leaks?
(Oh and please... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How to remove paths from tabs in Visual Studio 2008? Is there a way to stop the path showing in a source code tab in Visual Studio 2008?
Currently when developing an ASP.NET site, I get the path from the root plus the filename - truncated when it gets too long. So something like:
MyDir/MyPage.aspx
for a short path... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: UTF8 vs. UTF16 vs. char* vs. what? Someone explain this mess to me! I've managed to mostly ignore all this multi-byte character stuff, but now I need to do some UI work and I know my ignorance in this area is going to catch up with me! Can anyone explain in a few paragraphs or less just what I need to know so that I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Setup multi languages wordpress I need to setup a blog using wordpress engine but i need it support multi languages (3 languages), currently i am thinking of using custom field to identify the language of current post though i knew thats not a best practices, does anyone has better suggestions?
A: I've tested 2 plu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Which data structure for linking text with audio in Java I want to write a program in which plays an audio file that reads a text.
I want to highlite the current syllable that the audiofile plays in green and the rest of the current word in red.
What kind of datastructure should I use to store the audio file and th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What does "Total Length of columns in constraint is too long" err mean in Informix? I get the Total length of columns in constraint is too long. erro from the following
sql] Failed to execute: CREATE TABLE GTW_WORKFLOW_MON ( WORKFLOW_NAME VARCHAR(255) NOT
NULL, WORKFLOW_LOADED NUMERIC(20) NOT NULL, ACTIVITY_NAME V... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Apache or lighttpd For development, I use a local LAMP stack, for production I'm using MediaTemple's Django Container (which I'm loving BTW). MT's container uses lighthttpd. Honestly I've never had any other experience with it. I've always used Apache. I've been doing some reading:
*
*Onlamp
*TextDrive
*Linux... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do you bind a DropDownList in a GridView in the EditItemTemplate Field? Here's my code in a gridview that is bound at runtime:
...
<asp:templatefield>
<edititemtemplate>
<asp:dropdownlist runat="server" id="ddgvOpp" />
</edititemtemplate>
<itemtemplate>
<%# Eval("opponent.name") %>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Indexing URL's in SQL Server 2005 What is the best way to deal with storing and indexing URL's in SQL Server 2005?
I have a WebPage table that stores metadata and content about Web Pages. I also have many other tables related to the WebPage table. They all use URL as a key.
The problem is URL's can be very large, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C#/.NET Lexer Generators I'm looking for a decent lexical scanner generator for C#/.NET -- something that supports Unicode character categories, and generates somewhat readable & efficient code. Anyone know of one?
EDIT: I need support for Unicode categories, not just Unicode characters. There are currently 1421 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How can I show the result of a POST request as an image? I am working on a web-application in which dynamically-created images are used to display information. This data is currently sent to the images using a GET query-string but with more complex images and data I am worried about running into problems with the ur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: good resource for socket errors? Where can I find a list of all types of bsd style socket errors?
A: In the documentation? For instance, for connect(), see:
% man connect
...
ECONNREFUSED
No-one listening on the remote address.
EISCONN
The socket is already connected.
ENETUNREACH
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does System.Net.Mail fail where System.Web.Mail works I can get both System.Net.Mail and System.Web.Mail to work with GMail, but I can't get them both to work with smtp.att.yahoo.com.
I get the SMTP settings from my own Web.config keys. These settings work when I send using System.Web.Mail, but fail with Syste... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Should one use Tapestry 5 for a production release? We're starting a large web project, mostly green field. I like the Tapestry framework for java/web solutions. I have concerns about starting a Tapestry 5 project since T5 is still in beta. However, if I understand the documentation correctly, T4 development will no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is it possible to get perforce to behave like subversion? Can perforce be adjusted so I don't need to "open files for edit"? Someone told me that this was a "feature", and that s/he guessed it could be turned off.
A: Although that's not a direct answer to your request, I though I could share a little trick.
In my e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Probability of hardware related disk or memory corruption? I've got a few hundred computers running an app. On one computer, I've seen two instances of a single bit being incorrectly set on some strings that I pull out of SQLite. If this was my dev computer I would assume I have a bug somewhere, but there is certa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I set cookies from outside domains inside iframes in Safari? From the Apple developer faq
Safari ships with a conservative
cookie policy which limits cookie
writes to only the pages chosen
("navigated to") by the user.
By default Safari only allows cookies from sites you navigate to directly. (i.e. if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: What is the max length of an Informix column and can it be increased? I am trying to create a table with the following:
CREATE TABLE GTW_WORKFLOW_MON
(
WORKFLOW_NAME VARCHAR(255) NOT NULL,
WORKFLOW_LOADED NUMERIC(20) NOT NULL,
ACTIVITY_NAME VARCHAR(255) NOT NULL,
FLAGS INTEGER NOT NULL,
MONITO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I programmatically zoom a UIScrollView? I'd like to zoom and unzoom in ways the base class doesn't support.
For instance, upon receiving a double tap.
A: I think I figured out what documentation Darron was referring to. In the document "iPhone OS Programming Guide" there's a section "Handling Multi-Touch Ev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Resetting all items in a TiddlyWiki/CheckboxPlugin checklist I've written up a weekly-review GTD checklist for myself in TiddlyWiki, using CheckboxPlugin. After I'm finished with it each week, I'd like to click one link to uncheck (reset) all of the items on it, so it's ready for the next use.
I'm storing the check ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C++ #include and #import difference What is the difference between #include and #import in C++?
A: Import in VC++: #import is for type libraries or .tlbs (COM stuff).
The content of the type library is converted into C++ classes, mostly describing the COM interfaces for you automatically, and then it is included in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "109"
} |
Q: How can I control the name of generic WCF return types? I've got a WCF Web Service method whose prototype is:
[OperationContract]
Response<List<Customer>> GetCustomers();
When I add the service reference to a client, Visual Studio (2005) creates a type called "ResponseOfArrayOfCustomerrleXg3IC" that is a wrapper fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: PL/SQL: How to execute an SP which preforms a DML and has a return value? I have a stored procedure with the following header:
FUNCTION SaveShipment (p_user_id IN INTEGER, p_transaction_id IN INTEGER, p_vehicle_code IN VARCHAR2 DEFAULT NULL, p_seals IN VARCHAR2 DEFAULT NULL) RETURN INTEGER;
And I am having trouble ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is obj folder generated for?
Possible Duplicate:
What are the obj and bin folders (created by Visual Studio) used for?
The default output path for any project is Visual studio is bin/Debug, but I have noticed that obj folder is also generated which again contains dll and pdb files. Can someone tell me why is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "92"
} |
Q: What is the state of the art user interface for browsing complex version control system history? When using Mercurial I sometimes find that it is hard to understand the relationship between changesets when there are thousands of changesets, and sometimes ten or more active branches at any one time. Currently, I use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What's a good algorithm for editing a "schedule" most efficiently? This is for a small scheduling app. I need an algorithm to efficiently compare two "schedules", find differences, and update only the data rows which have been changed, as well as entries in another table having this table as a foreign key. This is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a regular expression to detect a valid regular expression? Is it possible to detect a valid regular expression with another regular expression? If so please give example code below.
A: The following example by Paul McGuire, originally from the pyparsing wiki, but now available only through the Wayback Mac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1139"
} |
Q: How are you planning on handling the migration to Python 3? I'm sure this is a subject that's on most python developers' minds considering that Python 3 is coming out soon. Some questions to get us going in the right direction:
*
*Will you have a python 2 and python 3 version to be maintained concurrently or wil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Solaris timezone in C (missing %z on strftime) I have an application that writes to another application and needs to provide the date + timezone of the system. I have been using strftime with the %z argument to get the timezone, and it has been working very well on Linux. However, last week we decided to merge it to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Same class, different namespaces, a way to simplify? I'm working with a webservice that offers almost duplicated code across two namesspaces. Lets say for example PigFeet and HorseFeet, both namespaces contain a Feet class and other code that works with the Feet class requires it to be part of that same namespace.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you do ALSA in Mono? Does anyone know how to access ALSA (low-level audio API) in Linux using Mono?
NOTE: I'm hoping to access ALSA using PInvoke.
A: I believe there are not any bindings for Mono. You could look at the Python ALSA bindings and the Mono D-BUS bindings and try to build your own.
However, it w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Blackbox type data logging In a Linux embedded application I'm developing, there is the need to record some events that happen from time to time. These records are saved on a MTD flash device and once written there is no need to change them or do efficient searches, but read access is required to show the data back ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to push a key and release it using C#? I am writing a C# program which captures signals from a external device, and sends keystrokes to another application. I am using SendKeys and it works fine.
SendKeys does "press" a key by holding and releasing it immediately. I would like to make it push key and release it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is it possible to print just the canvas element? I've created a web page that lets you input some information and then draws an image in a canvas element based on that info. I have it pretty much working the way I want except for the printing.
Is there a way to print out the canvas element or is creating a new wind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Tracing versus Logging and how does log4net fit in? I am wondering about what the difference between logging and tracing is.
Is the difference basically that tracing is more detailed log giving developers a tool to debug applications at runtime?
I have been experimenting with log4net and doing logging. Now I am wond... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: What is the difference between an nanokernel and an exokernel? I understand that they are both supposed to be small, but what are the key differences between the two?
A: Exokernel is an operating system from MIT (and a class of it's variants) which handles relatively little hardware abstraction. In exokernel, the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: What symmetric cypher to use for encrypting messages? I haven't a clue about encryption at all. But I need it. How?
Say you have a system of nodes communicating with each other on a network via asynchronous messages. The nodes do not maintain session information about other nodes (this is a design restriction).
Say ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I get the max data size of every column in an IQueryable using LINQ I have a method that takes an IQueryable. Is there a LINQ query that will give me back the size of each column in the IQueryable?
To be more clear: this is Linq-to-objects. I want to get the length of the ToString() of each "column".
A: It ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What load-balancing system do you use in production? What do you think of it? There are a lot of different systems for balancing load and achieving redundancy in production servers (Not just web servers)
*
*Round-robin DNS
*Linux Virtual Server
*Cisco Local Director
*F5 BigIP
*Windows NLB
*etc?
If you use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I use BGGA closures prototype on standard Mac JDK6? I am trying to use the BGGA closures prototype with an existing JDK 6 (standard on Mac OS X Leopard). The sample code I'm compiling is from a BGGA tutorial:
public static void main(String[] args) {
// function with no arguments; return value is always 42
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What DB design to use for collecting configurable demographic data? I'm working on an application for a charitable student organization. The application will track participation and fund-raising for (primarily) student participants in an event. One of the things we'd like to do is collect some demographic informat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET Table Adapters: Get vs. Fill? I always seem to use Get when working with data (strongly typed or otherwise) from the database and I have never really needed to use Fill although I just as easily could use Fill instead of get when pulling out and updating data.
Can anyone provide guidance as to the implications ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do I split a multi-line string into multiple lines? I have a multi-line string that I want to do an operation on each line, like so:
inputString = """Line 1
Line 2
Line 3"""
I want to iterate on each line:
for line in inputString:
doStuff()
A: Use inputString.splitlines().
Why splitlines is better
splitl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "344"
} |
Q: GetOpt library for C# I'm looking for a getopt library for c#. So far I found a few (phpguru, XGetOptCS, getoptfordotnet) but these look more like unfinished attempts that only support a part of C's getopt.
Is there a full getopt c# implementation?
A: Here is a .NET Implementation of getopt: http://www.codeplex.com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Palm/Garnet OS Icon format? I have googled around and not seen any info. What format and icon color depths are used for applications?
A: The Palm OS icon format is a variation of it's bitmap format. Palm OS supports a concept called bitmap families where multiple bitmaps of different color depths and pixel densit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: I can't seem to change drive drive using attached piece of code y: &pause
cd ptls5.0 &pause
sdp describe Integration.dpk &pause
z: &pause
cd ptls5.0 &pause
dir &pause
I have those commands in the 1.cmd file. First three are executed fine. The result of it is that after "sdp describe Integration.dpk &pause" is execu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I ignore GCC compiler 'pedantic' errors in external library headers? I recently added -pedantic and -pedantic-errors to my make GCC compile options to help clean up my cross-platform code. All was fine until it found errors in external-included header files. Is there a way to turn off this error checking in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: What (pure) Python library to use for AES 256 encryption? I am looking for a (preferably pure) python library to do AES 256 encryption and decryption.
This library should support the CBC cipher mode and use PKCS7 padding according to the answer to an earlier question of mine.
The library should at least work on Mac ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: So - which exciting algorithms have you "discovered" recently? I like to read about new and clever algorithms. And I like to think out of the box, so all kinds of algorithms from all fields of computation are welcome.
From time to time I read research papers to keep up with the current research and expand my horizon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to track third-party sources with ClearCase without a headache? First of all: I am not an experienced ClearCase user, but I have lots of experience with other VCS and *nix command-line tools. WIth ClearCase, I use command-line tool ("cleartool") working in a Unix shell.
Problem: I have a small set of sources sto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Populate a form with data from an associative array with jQuery Last time I asked about the reverse process, and got some very efficient answers. I'm aiming for least lines of code here. I have a form of fields and an associative array in the {fieldname:data} format, I want to populate a corresponding form with it.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: SQL Cursors...Any use cases you would defend? I'll go first.
I'm 100% in the set-operations camp. But what happens when the set logic
on the entire desired input domain leads to a such a large retrieval that the query slows down significantly, comes to a crawl, or basically takes infinite time?
That's one case wher... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ignore folders/files when Directory.GetFiles() is denied access I am trying to display a list of all files found in the selected directory (and optionally any subdirectories). The problem I am having is that when the GetFiles() method comes across a folder that it cannot access, it throws an exception and the proces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "80"
} |
Q: How to use CMFCListCtrl with CListView? I'd like to use the new CMFCListCtrl features with my CListView class (and, of course, the new CMFCHeaderCtrl inside it). Unfortunately, you can't use Attach() or SubclassWindow() because the SysListView32 window is already associated with a CListView object.
Do I have to over... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where to create temp files when access to /tmp/ is denied? I wrote a short bash script to complete a task that involves creating a temporary directory and storing various files in it and performing various operations on it.
In my first pass I just created the temp dir at /tmp/$$.$script", but then I tested the scrip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Most efficient way to index a returned array? function returnsAnArray ()
{
return array ('test');
}
echo returnsAnArray ()[0];
generates a syntax error in PHP. What's the most efficient way to directly obtain an element from a returned array without assigning the result to a temp variable?
A: Here's one way, us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is there a better Java implementation of SSH2 than JSch? I've been using JSch for a couple of weeks now. It seems to work okay, but its API is a little bit cumbersome. I'm also a little off put by its total lack of documentation (not even javadoc style comments). Has anyone used a good Java SSH2 library that they... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is the difference between g++ and gcc? What is the difference between g++ and gcc? Which one of them should be used for general c++ development?
A: gcc and g++ are compiler-drivers of the GNU Compiler Collection (which was once upon a time just the GNU C Compiler).
Even though they automatically determine whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1120"
} |
Q: How to discover the type of media inserted in a DVD/CD drive? (java) When I insert a DVD or CD, I want to programmatically know what type of media(DVD or CD) is it.
A: IMHO impossible to get this solved with pure Java. The only thing you can do is via the FileSystemView and detect whether a certain file is a cd/dvd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Best way to define private methods for a class in Objective-C I just started programming Objective-C and, having a background in Java, wonder how people writing Objective-C programs deal with private methods.
I understand there may be several conventions and habits and think about this question as an aggregator of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "362"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.