text
stringlengths
8
267k
meta
dict
Q: Find broken symlinks with Python If I call os.stat() on a broken symlink, python throws an OSError exception. This makes it useful for finding them. However, there are a few other reasons that os.stat() might throw a similar exception. Is there a more precise way of detecting broken symlinks with Python under Linux?...
{ "language": "en", "url": "https://stackoverflow.com/questions/20794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: How to split a byte array I have a byte array in memory, read from a file. I would like to split the byte array at a certain point (index) without having to just create a new byte array and copy each byte at a time, increasing the in memory foot print of the operation. What I would like is something like this: byte...
{ "language": "en", "url": "https://stackoverflow.com/questions/20797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: Automate Syncing Oracle Tables With MySQL Tables The university I work at uses Oracle for the database system. We currently have programs we run at night to download what we need into some local Access tables for our testing needs. Access is getting to small for this now and we need something bigger. Also, the night...
{ "language": "en", "url": "https://stackoverflow.com/questions/20811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I move an item from one menu to another? In the Visual Studio designer, how do you move a menu item from one menu to another? I would assume drag and drop would work, but it seems to only work within a menu for me. I usually resort to editing the .Designer.cs files by hand. A: Right-click, cut, and paste wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/20814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: SQL 2005 Reporting Services custom report item (CRI) - what are the limits? Reading MSDN (and other sources) about custom report items (CRI) for reporting services 2005. It looks like I'm limited to generating a bitmap. Not even with some mapping overlay for detecting mouse clicks on it. Is there away to go around t...
{ "language": "en", "url": "https://stackoverflow.com/questions/20821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SQL Server - Dirty Reads Pros & Cons Why should I or shouldn't I use dirty reads: set transaction isolation level read uncommitted in SQL Server? A: Generally when you need to do a sizeable (or frequent) queries to busy tables, where read committed would possibly be blocked by locks from uncommited transactions, b...
{ "language": "en", "url": "https://stackoverflow.com/questions/20840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: DCOM: CoCreateInstanceEx returns E_ACCESSDENIED I'm working on a DCOM application with the server and client on two machines, both of which are running WinXP with Service Pack 2. On both machines, I'm logged in with the same username and password. When the client on one machine calls CoCreateInstanceEx, asking the o...
{ "language": "en", "url": "https://stackoverflow.com/questions/20841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to stop NTFS volume auto-mounting on OS X? I'm a bit newbieish when it comes to the deeper parts of OSX configuration and am having to put up with a fairly irritating niggle which while I can put up with it, I know under Windows I could have sorted in minutes. Basically, I have an external disk with two volumes:...
{ "language": "en", "url": "https://stackoverflow.com/questions/20850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Cross platform file-access tracking I'd like to be able to track file read/writes of specific program invocations. No information about the actual transactions is required, just the file names involved. Is there a cross platform solution to this? What are various platform specific methods? On Linux I know there...
{ "language": "en", "url": "https://stackoverflow.com/questions/20852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Recommended SQL database design for tags or tagging I've heard of a few ways to implement tagging; using a mapping table between TagID and ItemID (makes sense to me, but does it scale?), adding a fixed number of possible TagID columns to ItemID (seems like a bad idea), Keeping tags in a text column that's comma sepa...
{ "language": "en", "url": "https://stackoverflow.com/questions/20856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "333" }
Q: Automated Web Service Testing I would like to do some integration testing of a web service from within NUnit or MBUnit. I haven't delved into this too deeply yet, but I am pretty sure I will need to spin up WebDev.WebServer.exe within the "unit test" to do this. (I know it's not really a unit test). Yes, I can test ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Best way to perform dynamic subquery in MS Reporting Services? I'm new to SQL Server Reporting Services, and was wondering the best way to do the following: * *Query to get a list of popular IDs *Subquery on each item to get properties from another table Ideally, the final report columns would look lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/20876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java JPanel redraw issues I have a Java swing application with a panel that contains three JComboBoxes that do not draw properly. The combox boxes just show up as the down arrow on the right side, but without the label of the currently selected value. The boxes will redraw correctly if the window is resized either b...
{ "language": "en", "url": "https://stackoverflow.com/questions/20880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I interpret 'netstat -a' output Some things look strange to me: * *What is the distinction between 0.0.0.0, 127.0.0.1, and [::]? *How should each part of the foreign address be read (part1:part2)? *What does a state Time_Wait, Close_Wait mean? *etc. Could someone give a quick overview of how to interp...
{ "language": "en", "url": "https://stackoverflow.com/questions/20882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: My VMware ESX server console volume went readonly. How can I save my VMs? Two RAID volumes, VMware kernel/console running on a RAID1, vmdks live on a RAID5. Entering a login at the console just results in SCSI errors, no password prompt. Praise be, the VMs are actually still running. We're thinking, though, that up...
{ "language": "en", "url": "https://stackoverflow.com/questions/20899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Silverlight vs Flex My company develops several types of applications. A lot of our business comes from doing multimedia-type apps, typically done in Flash. However, now that side of the house is starting to migrate towards doing Flex development. Most of our other development is done using .NET. I'm trying to ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/20910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "70" }
Q: Symantec Backup Exec 11d RALUS Communications Error I'm trying to do a file system backup of a RedHat Enterprise Linux v4 server using Symantec Backup Exec 11d (Rev 7170). The backup server is Windows Server 2003. I can browse the target server to create a selection list, and when I do a test run it completes succe...
{ "language": "en", "url": "https://stackoverflow.com/questions/20912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VBScript/IIS - How do I automatically set ASP.NET version for a particular website I need to script the creation of app pools and websites on IIS 6.0. I have been able to create these using adsutil.vbs and iisweb.vbs, but don't know how to set the version of ASP.NET for the sites I have just created to 2.0.50727.0. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Nesting HTML- anchor tags Today I was working on a tab navigation for a webpage. I tried the Sliding Doors approach which worked fine. Then I realized that I must include an option to delete a tab (usually a small X in the right corner of each tab). I wanted to use a nested anchor, which didn't work because it is n...
{ "language": "en", "url": "https://stackoverflow.com/questions/20926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Updating an auto_now DateTimeField in a parent model in Django I've got two models: Message and Attachment. Each attachment is attached to a specific message, using a ForeignKey on the Attachment model. Both models have an auto_now DateTimeField called updated. I'm trying to make it so that when any attachment is sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/20927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Is there a way to get a System.Configuration.Configuration instance based on arbitrary xml? I'm trying to unit test a custom ConfigurationSection I've written, and I'd like to load some arbitrary configuration XML into a System.Configuration.Configuration for each test (rather than put the test configuration xml in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: List of standard lengths for database fields I'm designing a database table and asking myself this question: How long should the firstname field be? Does anyone have a list of reasonable lengths for the most common fields, such as first name, last name, and email address? A: W3C's recommendation: If designing a fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/20958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "474" }
Q: Determine Loaded Assemblies How can I determine all of the assemblies that my .NET desktop application has loaded? I'd like to put them in the about box so I can query customers over the phone to determine what version of XYZ they have on their PC. It would be nice to see both managed and unmanaged assemblies. I r...
{ "language": "en", "url": "https://stackoverflow.com/questions/20959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Storing logged in user details When creating a web application, and lets say you have a User object denoting a single user, what do you think is the best way to store that the user has logged in? Two ways I've thought about have been: * *Stored the user database id in a session variable *Stored the entire user o...
{ "language": "en", "url": "https://stackoverflow.com/questions/20993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Cannot Add a Sql Server Login When I try to create a SQL Server Login by saying CREATE LOGIN [ourdomain\SQLAccessGroup] FROM WINDOWS; I get this error The server principal 'ourdomain\SQLAccessGroup' already exists. However, when I try this code DROP LOGIN [ourdomain\SQLAccessGroup] I get this error Cannot drop ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Changing Ctrl + Tab behavior for moving between documents in Visual Studio Is it possible to change how Ctrl + Tab and Shift + Ctrl + Tab work in Visual Studio? I have disabled the popup navigator window, because I only want to switch between items in the tab control. My problem is the inconsistency of what switchin...
{ "language": "en", "url": "https://stackoverflow.com/questions/21027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "324" }
Q: "using" namespace equivalent in ASP.NET markup When I'm working with DataBound controls in ASP.NET 2.0 such as a Repeater, I know the fastest way to retrieve a property of a bound object (instead of using Reflection with the Eval() function) is to cast the DataItem object to the type it is and then use that object n...
{ "language": "en", "url": "https://stackoverflow.com/questions/21052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Is there any way to configure windows to not change the focus? I'm tired of being in the middle of typing something, having a pop-up with a question appear, and hitting enter before reading it... (it also happens with some windows that are not pop-ups) Do you know if there's some setting I could touch for this not t...
{ "language": "en", "url": "https://stackoverflow.com/questions/21060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Most efficient way to concatenate strings? What's the most efficient way to concatenate strings? A: There are 6 types of string concatenations: * *Using the plus (+) symbol. *Using string.Concat(). *Using string.Join(). *Using string.Format(). *Using string.Append(). *Using StringBuilder. In an experiment...
{ "language": "en", "url": "https://stackoverflow.com/questions/21078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "339" }
Q: Do you use MDA/MDD/MDSD, any kind of model-driven approach? Will it be the future? Programming languages had several (r)evolutionary steps in their history. Some people argue that model-driven approaches will be The Next Big Thing. There are tools like openArchitectureWare, AndroMDA, Sculptor/Fornax Platform etc. th...
{ "language": "en", "url": "https://stackoverflow.com/questions/21091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Simplest way to profile a PHP script What's the easiest way to profile a PHP script? I'd love tacking something on that shows me a dump of all function calls and how long they took but I'm also OK with putting something around specific functions. I tried experimenting with the microtime function: $then = microtime()...
{ "language": "en", "url": "https://stackoverflow.com/questions/21133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "319" }
Q: Adding NUnit to the options for ASP.NET MVC test framework * *I have nUnit installed. *I have VS2008 Team Edition installed. *I have ASP.Net MVC Preview 4 (Codeplex) installed. How do I make Visual Studio show me nUnit as a testing framework when creating a new MVC project? At this point I still only have the...
{ "language": "en", "url": "https://stackoverflow.com/questions/21137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: How do I use Linq for paging a generic collection? I've got a System.Generic.Collections.List(Of MyCustomClass) type object. Given integer varaibles pagesize and pagenumber, how can I query only any single page of MyCustomClass objects? A: Hi There is a wicked thing called PagedList which i got when watching a Rob ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: db4o experiences? I'm currently trying out db4o (the java version) and I pretty much like what I see. But I cannot help wondering how it does perform in a real live (web-)environment. Does anyone have any experiences (good or bad) to share about running db4o? A: We run DB40 .NET version in a large client/server p...
{ "language": "en", "url": "https://stackoverflow.com/questions/21207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Get application name from Windows XP cut and paste? This is a bit of a long shot, but if anyone can figure it out, you guys can... In Windows XP, is there any meta-data that comes with a cut and paste action, from which I can ascertain the application that provided the clipboard contents? Bonus question... if there ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Visual Web Developer (Express): Setting Document Root for Dev Environment I'm developing a site in Visual Web Dev Express, and when I run/debug, I'd like to be able to set my application's document root so that I can use safer paths, like "/css/style.css' instead of "css/style.css". How would I accomplish this? A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Page a Generic Collection Without Linq I've got a System.Generic.Collections.List(Of MyCustomClass) type object. Given integer varaibles pagesize and pagenumber, how can I collect only any single page of MyCustomClass objects? This is what I've got. How can I improve it? 'my given collection and paging parameters D...
{ "language": "en", "url": "https://stackoverflow.com/questions/21232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Anyone have a link to a technical discussion of anything akin to the Facebook news feed system? I'm looking for a presentation, PDF, blog post, or whitepaper discussing the technical details of how to filter down and display massive amounts of information for individual users in an intelligent (possibly machine lear...
{ "language": "en", "url": "https://stackoverflow.com/questions/21243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I create a mapping table in SQL Server Management Studio? I'm learning about table design in SQL and I'm wonder how to create a mapping table in order to establish a many-to-many relationship between two other tables? I think the mapping table needs two primary keys - but I can't see how to create that as it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Comparing IEEE floats and doubles for equality What is the best method for comparing IEEE floats and doubles for equality? I have heard of several methods, but I wanted to see what the community thought. A: The best approach I think is to compare ULPs. bool is_nan(float f) { return (*reinterpret_cast<unsigned ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What is the easiest-to-use web "rich text editor" I am looking for a text editor to be used in a web page. Where users can format the text and get a WYSIWYG experience. Doesn't need to be too fancy. But has to be easy to use and integrate into the page. Has to generate HTML as output. Support AJAX (one I checked wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/21274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Am I missing something about LINQ? I seem to be missing something about LINQ. To me, it looks like it's taking some of the elements of SQL that I like the least and moving them into the C# language and using them for other things. I mean, I could see the benefit of using SQL-like statements on things other than dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/21280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Which .NET Dependency Injection frameworks are worth looking into? Which C#/.NET Dependency Injection frameworks are worth looking into? And what can you say about their complexity and speed. A: I'm a huge fan of Castle. I love the facilities it also provides beyond the IoC Container story. It really simplfies us...
{ "language": "en", "url": "https://stackoverflow.com/questions/21288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "401" }
Q: Dynamically load a JavaScript file How can you reliably and dynamically load a JavaScript file? This will can be used to implement a module or component that when 'initialized' the component will dynamically load all needed JavaScript library scripts on demand. The client that uses the component isn't required to l...
{ "language": "en", "url": "https://stackoverflow.com/questions/21294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "192" }
Q: In C++ can constructor and destructor be inline functions? VC++ makes functions which are implemented within the class declaration inline functions. If I declare a class Foo as follows, then are the CONSTRUCTOR and DESTRUCTOR inline functions? class Foo { int* p; public: Foo() { p = new char[0x00100000]; } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "83" }
Q: Audio/Video Remote Control Profile (AVRCP) on Windows Mobile Is there a general way to handle Bluetooth Audio/Video Remote Control Profile (AVRCP) events on a WM device? I'm especially interested in a Compact Framework way, but I would be happy with just a simple P/Invoke API. Update. I've read MSDN articles on this...
{ "language": "en", "url": "https://stackoverflow.com/questions/21347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Batch file to "Script" a Database Is it possible to somehow use a .bat file to script the schema and/or content of a SQL Server database? I can do this via the wizard, but would like to streamline the creation of this file for source control purposes. I would like to avoid the use of 3rd party tools, just limiting m...
{ "language": "en", "url": "https://stackoverflow.com/questions/21353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Mocking and IQueryable I've ran into a problem while trying to test following IRepository based on NHibernate: public class NHibernateRepository<T>: Disposable, IRepository<T> where T : IdentifiableObject { ... public IQueryable<T> Query() { return NHibernateSession.Linq<T>(); } } How ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Represent Ordering in a Relational Database I have a collection of objects in a database. Images in a photo gallery, products in a catalog, chapters in a book, etc. Each object is represented as a row. I want to be able to arbitrarily order these images, storing that ordering in the database so when I display the...
{ "language": "en", "url": "https://stackoverflow.com/questions/21388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Source Control in Visual Studio Isolated Shell I am developing an Isolated Shell that caters to "designers/special content creators" performing specific tasks, using the Shell. As they operate on files, they need to be able to use TFS for source control. This is mainly due to the fact that Developers will also opera...
{ "language": "en", "url": "https://stackoverflow.com/questions/21404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: sleep() silently hogs CPU I'm running Apache on Linux within VMWare. One of the PHP pages I'm requesting does a sleep(), and I find that if I attempt to request a second page whilst the first page is sleep()'ing, the second page hangs, waiting for the sleep() from the first page to finish. Has anyone else seen this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How to address semantic issues with tag-based web sites Tag-based web sites often suffer from the delicacy of language such as synonyms, homonyms, etc. For programmers looking for information, say on Stack Overflow, concrete examples are: * *Subversion or SVN (or svn, with case-sensitive tags) *.NET or Mono *[W...
{ "language": "en", "url": "https://stackoverflow.com/questions/21422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Preventing a visitor from saving an image from my site What are some effective strategies for preventing the use of my proprietary images? I'm talking about saving them, direct linking to them etc... Presently I have a watermark on the image, but I'd rather not. .NET platform preferred, but if there's a strategy tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/21437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I access Excel data source from an SSIS package deployed on a 64-bit server? I have an SSIS package that exports data to a couple of Excel files for transfer to a third party. To get this to run as a scheduled job on a 64-bit server I understand that I need to set the step as a CmdExec type and call the 32-bi...
{ "language": "en", "url": "https://stackoverflow.com/questions/21448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Types of endianness What is the difference between the following types of endianness? * *byte (8b) invariant big and little endianness *half-word (16b) invariant big and little endianness *word (32b) invariant big and little endianness *double-word (64b) invariant big and little endianness Are there other ty...
{ "language": "en", "url": "https://stackoverflow.com/questions/21449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Specifying a mySQL ENUM in a Django model How do I go about specifying and using an ENUM in a Django model? A: If you really want to use your databases ENUM type: * *Use Django 1.x *Recognize your application will only work on some databases. *Puzzle through this documentation page:http://docs.djangoproject.co...
{ "language": "en", "url": "https://stackoverflow.com/questions/21454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "100" }
Q: Does Hostmonster support Django I know Hostmonster allows Python. Has anyone successfully run Django on there? Any problems? A: http://www.hostmonsterforum.com/showpost.php?p=20003&postcount=7 I tried the archive the user posted there, and it worked like a charm. A: I know this is an old question, but here is the...
{ "language": "en", "url": "https://stackoverflow.com/questions/21460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What Predefined #if symbos does c# have? #if SYMBOL //code #endif what values does C# predefine for use? A: Depends on what /define compiler options you use. Visual Studio puts the DEBUG symbol in there for you via the project settings, but you could create any ones that you want. A: To add to what Nick said, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Recommended iPhone Development Resources This is my first post here and I wanted to get some input from people doing iPhone development. Other than the Apple DevCenter, where are there good sites to learn iPhone developement? I know Apple has a tough NDA but there has to be people talking about writing applications...
{ "language": "en", "url": "https://stackoverflow.com/questions/21464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Grouping runs of data SQL Experts, Is there an efficient way to group runs of data together using SQL? Or is it going to be more efficient to process the data in code. For example if I have the following data: ID|Name 01|Harry Johns 02|Adam Taylor 03|John Smith 04|John Smith 05|Bill Manning 06|John Smith I need t...
{ "language": "en", "url": "https://stackoverflow.com/questions/21489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Enumerate Windows user group members on remote system using c# Within c#, I need to be able to * *Connect to a remote system, specifying username/password as appropriate *List the members of a localgroup on that system *Fetch the results back to the executing computer So for example I would connect to \SOMESY...
{ "language": "en", "url": "https://stackoverflow.com/questions/21514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: In SQL Server, how do I generate a CREATE TABLE statement for a given table? I've spent a good amount of time coming up with solution to this problem, so in the spirit of this post, I'm posting it here, since I think it might be useful to others. If anyone has a better script, or anything to add, please post it. Ed...
{ "language": "en", "url": "https://stackoverflow.com/questions/21547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "83" }
Q: In C++, what is a virtual base class? I want to know what a "virtual base class" is and what it means. Let me show an example: class Foo { public: void DoSomething() { /* ... */ } }; class Bar : public virtual Foo { public: void DoSpecific() { /* ... */ } }; A: I'd like to add to OJ's kind clarifications....
{ "language": "en", "url": "https://stackoverflow.com/questions/21558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "462" }
Q: How to enable multisampling for a wxWidgets OpenGL program? Multisampling is a way of applying full screen anti-aliasing (FSAA) in 3D applications. I need to use multisampling in my OpenGL program, which is currently embedded in a wxWidgets GUI. Is there a way to do this? Please respond only if you know the detailed...
{ "language": "en", "url": "https://stackoverflow.com/questions/21560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there a Unix utility to prepend timestamps to stdin? I ended up writing a quick little script for this in Python, but I was wondering if there was a utility you could feed text into which would prepend each line with some text -- in my specific case, a timestamp. Ideally, the use would be something like: cat som...
{ "language": "en", "url": "https://stackoverflow.com/questions/21564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "181" }
Q: What is the difference between Ruby 1.8 and Ruby 1.9 I'm not clear on the differences between the "current" version of Ruby (1.8) and the "new" version (1.9). Is there an "easy" or a "simple" explanation of the differences and why it is so different? A: Many now recommend The Ruby Programming Language over the Pick...
{ "language": "en", "url": "https://stackoverflow.com/questions/21574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "102" }
Q: Unit-Testing Databases This past summer I was developing a basic ASP.NET/SQL Server CRUD app, and unit testing was one of the requirements. I ran into some trouble when I tried to test against the database. To my understanding, unit tests should be: * *stateless *independent from each other *repeatable with t...
{ "language": "en", "url": "https://stackoverflow.com/questions/21583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Is it possible to share a transaction between a .Net application and a COM+ object? I did some tests a while ago and never figured out how to make this work. The ingredients: * *COM+ transactional object (developed in VB6) *.Net web application (with transaction) in IIS that... makes a call to the COM+ compo...
{ "language": "en", "url": "https://stackoverflow.com/questions/21589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the difference between #include and #include "filename"? What is the difference between using angle brackets and quotes in an include directive? * *#include <filename> *#include "filename" A: The only way to know is to read your implementation's documentation. In the C standard, section 6.10.2, paragrap...
{ "language": "en", "url": "https://stackoverflow.com/questions/21593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2981" }
Q: Pushing out MSI files I have a product which has been traditionally shipped as an MSI file. It is deployed through some sort of SMS push to thousands of desktops by our various clients. The software we use to create these installers is getting long in the tooth and we are looking to replace it. We have already st...
{ "language": "en", "url": "https://stackoverflow.com/questions/21635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: .NET - Get protocol, host, and port Is there a simple way in .NET to quickly get the current protocol, host, and port? For example, if I'm on the following URL: http://www.mywebsite.com:80/pages/page1.aspx I need to return: http://www.mywebsite.com:80 I know I can use Request.Url.AbsoluteUri to get the complete URL,...
{ "language": "en", "url": "https://stackoverflow.com/questions/21640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "265" }
Q: Reading from text file until EOF repeats last line The following C++ code uses a ifstream object to read integers from a text file (which has one number per line) until it hits EOF. Why does it read the integer on the last line twice? How to fix this? Code: #include <iostream> #include <fstream> using namespace std;...
{ "language": "en", "url": "https://stackoverflow.com/questions/21647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "129" }
Q: Adobe AIR: Handling JSON objects from server I have a script that retrieves objects from a remote server through an Ajax call. The server returns objects in JSON notation.­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­...
{ "language": "en", "url": "https://stackoverflow.com/questions/21651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Do you write exceptions for specific issues or general exceptions? I have some code that gives a user id to a utility that then send email to that user. emailUtil.sendEmail(userId, "foo"); public void sendEmail(String userId, String message) throws MailException { /* ... logic that could throw a MailException *...
{ "language": "en", "url": "https://stackoverflow.com/questions/21652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Complexity of Regex substitution I didn't get the answer to this anywhere. What is the runtime complexity of a Regex match and substitution? Edit: I work in python. But would like to know in general about most popular languages/tools (java, perl, sed). A: Other theoretical info of possible interest. For clarity, as...
{ "language": "en", "url": "https://stackoverflow.com/questions/21669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How Do You Communicate Service Layer Messages/Errors to Higher Layers Using MVP? I'm currently writing an ASP.Net app from the UI down. I'm implementing an MVP architecture because I'm sick of Winforms and wanted something that had a better separation of concerns. So with MVP, the Presenter handles events raised by ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: What are the rules for naming AS3 classes? I'm trying to write a RegEx for a code generator (in C#) to determine a proper class or package name of an AS3 class. I know that class names * *must start with a letter (capital or otherwise) *any other digit can be alphanumeric *cannot have spaces Is there anything...
{ "language": "en", "url": "https://stackoverflow.com/questions/21698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: List or BusinessObjectCollection? Prior to C# generics, everyone would code collections for their business objects by creating a collection base that implemented IEnumerable IE: public class CollectionBase : IEnumerable and then would derive their Business Object collections from that. public class BusinessObjectCo...
{ "language": "en", "url": "https://stackoverflow.com/questions/21715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Favorite (G)Vim plugins/scripts? What are your favorite (G)Vim plugins/scripts? A: Nerdtree The NERD tree allows you to explore your filesystem and to open files and directories. It presents the filesystem to you in the form of a tree which you manipulate with the keyboard and/or mouse. It also allows you to perfor...
{ "language": "en", "url": "https://stackoverflow.com/questions/21725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "165" }
Q: Problems running Swing application with IDEA 8M1 Is anyone else having trouble running Swing applications from IntelliJ IDEA 8 Milestone 1? Even the simplest application of showing an empty JFrame seems to crash the JVM. I don't get a stack trace or anything, it looks like the JVM itself crashes and Windows shows ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multiple form Delphi applications and dialogs I have a Delphi 7 application that has two views of a document (e.g. a WYSIWYG HTML edit might have a WYSIWYG view and a source view - not my real application). They can be opened in separate windows, or docked into tabs in the main window. If I open a modal dialog from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to use BITS to download from a UNC path? What is the best way to distribute files to users in remote offices, using BITS with a UNC path or BITS with HTTP? I have a VB.NET project which currently downloads from a HTTP path, but there is added complexity involved (e.g. having a web server). Or is there a better ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Open source rules engine with decent interface for writing rules I'm trying to locate an open source business rules engine that has a decent interface for building the rules. OR at least one that works well on the .Net platform and has been updated sometime in the past 12 months. Thanks, A: NxBRE is one option. h...
{ "language": "en", "url": "https://stackoverflow.com/questions/21766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Why can't I declare static methods in an interface? The topic says the most of it - what is the reason for the fact that static methods can't be declared in an interface? public interface ITest { public static String test(); } The code above gives me the following error (in Eclipse, at least): "Illegal modifier...
{ "language": "en", "url": "https://stackoverflow.com/questions/21817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "154" }
Q: PostgreSQL: GIN or GiST indexes? From what information I could find, they both solve the same problems - more esoteric operations like array containment and intersection (&&, @>, <@, etc). However I would be interested in advice about when to use one or the other (or neither possibly). The PostgreSQL documentation h...
{ "language": "en", "url": "https://stackoverflow.com/questions/21830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Switch branch names in git There may be more than one way to ask this question, so here's a desciption of the problem. I was working on master and committed some stuff and then decided I wanted to put that work on hold. I backed up a few commits and then branched from before I started my crap work. Practically this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "107" }
Q: System.Web.Caching vs. Enterprise Library Caching Block For a .NET component that will be used in both web applications and rich client applications, there seem to be two obvious options for caching: System.Web.Caching or the Ent. Lib. Caching Block. * *What do you use? *Why? System.Web.Caching Is this safe to...
{ "language": "en", "url": "https://stackoverflow.com/questions/21870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Dynamically Rendering asp:Image from BLOB entry in ASP.NET What I want to achieve is this. I want to give the user the ability to upload an image file, store the image in BLOB in SQL Server, and then use this image as a logo in other pages of the site. I have done this by using Response.Clear(); Response.Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/21877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Where can I find a "Math topic dependency tree" to assist my self-guided refresher on the subject? I'm trying to reteach myself some long forgotten math skills. This is part of a much larger project to effectively "teach myself software development" from the ground up (the details are here if you're interested in he...
{ "language": "en", "url": "https://stackoverflow.com/questions/21879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: "Silent" Printing in a Web Application I'm working on a web application that needs to prints silently -- that is without user involvement. What's the best way to accomplish this? It doesn't like it can be done with strictly with Javascript, nor Flash and/or AIR. The closest I've seen involves a Java applet. I can...
{ "language": "en", "url": "https://stackoverflow.com/questions/21908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: IntelliSense for XElement objects with XML schema Reading an article called "Increase LINQ Query Performance" in July's MSDN magazine, the author states that using an Imports in VB providing a path to schema in the current project will turn IntelliSense on for XElement. In the code provided, he uses statements like ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why Java and Python garbage collection methods are different? Python uses the reference count method to handle object life time. So an object that has no more use will be immediately destroyed. But, in Java, the GC(garbage collector) destroys objects which are no longer used at a specific time. Why does Java choose ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "66" }
Q: Is it really that bad to catch a general exception? Whilst analysing some legacy code with FXCop, it occurred to me is it really that bad to catch a general exception error within a try block or should you be looking for a specific exception. Thoughts on a postcard please. A: There's been a lot of philosophical di...
{ "language": "en", "url": "https://stackoverflow.com/questions/21938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "75" }
Q: How do I compare two arrays of DataRow objects in PowerShell? I have two arrays of System.Data.DataRow objects which I want to compare. The rows have two columns A and B. Column A is a key and I want to find out which rows have had their B column changed and which rows have been added or deleted. How do I do this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Date/time conversion using time.mktime seems wrong >>> import time >>> time.strptime("01-31-2009", "%m-%d-%Y") (2009, 1, 31, 0, 0, 0, 5, 31, -1) >>> time.mktime((2009, 1, 31, 0, 0, 0, 5, 31, -1)) 1233378000.0 >>> 60*60*24 # seconds in a day 86400 >>> 1233378000.0 / 86400 14275.208333333334 time.mktime should return...
{ "language": "en", "url": "https://stackoverflow.com/questions/21961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Programmatically encrypting a config-file in .NET Could somebody please do a rundown of how to programmatically encrypt a config-file in .NET, preferably in C#. What I would like to do is do some kind of check on an application's startup to see if a section is unprotected, and if it is, then encrypt it. This for bot...
{ "language": "en", "url": "https://stackoverflow.com/questions/21965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: FlashWindowEx FLASHW_STOP still keeps taskbar colored I am developing an application that controls an Machine. When I receive an error from the Machine the users should be able to directly notice it, one way that is done is Flashing the tray on the taskbar. When the machine clears the error the tray should stop flas...
{ "language": "en", "url": "https://stackoverflow.com/questions/21987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: XmlHttpRequest return values I'm looking for (arguably) the correct way to return data from a XmlHttpRequest. Options I see are: * *Plain HTML. Let the request format the data and return it in a usable format. Advantage: easy to consume by the calling page.Disadvantage: Very rigid, stuck with a fixed layout. *XM...
{ "language": "en", "url": "https://stackoverflow.com/questions/21992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: WPF Anti aliasing workaround Anti aliasing cannot be turned off in WPF. But I want to remove the blurred look of WPF fonts when they are small. One possibility would be to use a .net 2.0 component. This looks like it would lose the transparency capability and Blend support. Never tried it though. Anyone has a solut...
{ "language": "en", "url": "https://stackoverflow.com/questions/21999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Table cells larger than they are meant to be I've created a map system for a game that runs on the principle of drawing the picture of the map from tiles. There are many reasons for this which I won't go into here but if you really want to know then I'm sure you can find out how to contact me ;) I have made the late...
{ "language": "en", "url": "https://stackoverflow.com/questions/22000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }