text
stringlengths
8
267k
meta
dict
Q: SQL Select Bottom Records I have a query where I wish to retrieve the oldest X records. At present my query is something like the following: SELECT Id, Title, Comments, CreatedDate FROM MyTable WHERE CreatedDate > @OlderThanDate ORDER BY CreatedDate DESC I know that normally I would remove the 'DESC' keyword to sw...
{ "language": "en", "url": "https://stackoverflow.com/questions/60877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Priority of a query in MS SQL Is there a way to tell MS SQL that a query is not too important and that it can (and should) take its time? Likewise is there a way to tell MS SQL that it should give higher priority to a query? A: SQL Server does not have any form of resource governor yet. There is a SET option called...
{ "language": "en", "url": "https://stackoverflow.com/questions/60878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: How do you avoid Technical Debt while still keep true to Agile, i.e.: avoiding violation of YAGNI and avoiding BDUF? Technical Debt via Martin Fowler, via Steve McConnell YAGNI (You Ain't Gonna Need It) via Wikipedia BDUF (Big Design Up Front) via Wikipedia UPDATE: To clarify the question, I think I can also state i...
{ "language": "en", "url": "https://stackoverflow.com/questions/60888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: ASP.NET Convert Invalid String to Null In my application I have TextBox in a FormView bound to a LinqDataSource like so: <asp:TextBox ID="MyTextBox" runat="server" Text='<%# Bind("MyValue") %>' AutoPostBack="True" ontextchanged="MyTextBox_TextChanged" /> protected void MyTextBox_TextChan...
{ "language": "en", "url": "https://stackoverflow.com/questions/60893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I open a cmd window in a specific location? How can I open a cmd window in a specific location without having to navigate all the way to the directory I want? A: For windows 7 or later, inside the target folder address bar just type cmd. That is it. It will open up command prompt with path set to your prese...
{ "language": "en", "url": "https://stackoverflow.com/questions/60904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "429" }
Q: Changing the font in Aquamacs? I've recently had a need to do a bit of lisp editing and I found the nifty Ready Lisp package for OS X, which is great, except Aquamacs automatically uses a proportional font (which is idiotic, IMHO) and I want to change it to a monospace font. However, I'm not really much of an EMACS ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What is the worker process for IIS7? I'm trying to do 'Attach to Process' for debugging in Visual Studio 2008 and I can't figure out what process to attach to. Help. A: Indeed it is still w3wp.exe - You'll need to check the 'Show processes in all sessions' option to get it to show up though. (It caught me out for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Does SqlCommand.Dispose close the connection? Can I use this approach efficiently? using(SqlCommand cmd = new SqlCommand("GetSomething", new SqlConnection(Config.ConnectionString)) { cmd.Connection.Open(); // set up parameters and CommandType to StoredProcedure etc. etc. cmd.ExecuteNonQuery(); } My conc...
{ "language": "en", "url": "https://stackoverflow.com/questions/60919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: What is the best implementation for DB Audit Trail? A DB Audit Trail captures the User Last Modified, Modified Date, and Created Date. There are several possible implementations: * *SQL Server Triggers *Add UserModified, ModifiedDate, CreatedDate columns to the database and include logic in Stored Procedures or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Real life examples of methodologies and lifecycles Choosing the correct lifecycle and methodology isn't as easy as it was before when there weren't so many methodologies, this days a new one emerges every day. I've found that most projects require a certain level of evolution and that each project is different from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: The best way to start a project When you are starting a personal programming project, what is your first step? I'm trying to start a project thats just an idea at the moment. I get lots of these and I dive right into the code and after a while just completely lose interest and or just forget about the project. When ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: How can I send the stdout of one process to multiple processes using (preferably unnamed) pipes in Unix (or Windows)? I'd like to redirect the stdout of process proc1 to two processes proc2 and proc3: proc2 -> stdout / proc1 \ proc3 -> stdout I tried proc1 | (proc2 & proc3) but i...
{ "language": "en", "url": "https://stackoverflow.com/questions/60942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "87" }
Q: What are the CSS secrets to a flexible/fluid HTML form? The below HTML/CSS/Javascript (jQuery) code displays the #makes select box. Selecting an option displays the #models select box with relevant options. The #makes select box sits off-center and the #models select box fills the empty space when it is displayed. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a better Windows Console Window? I find working on the command line in Windows frustrating, primarily because the console window is wretched to use compared to terminal applications on linux and OS X such as "rxvt", "xterm", or "Terminal". Major complaints: * *No standard copy/paste. You have to turn o...
{ "language": "en", "url": "https://stackoverflow.com/questions/60950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "316" }
Q: How do I keep track of related windows in X11? Unfortunately, my question is not as simple as keeping track of two windows created by the same process. Here is what I have: * *Two users, Jack and Jim are remotely logged in to the same Unix system and run X servers *Jack runs an application, 'AwesomeApp', that op...
{ "language": "en", "url": "https://stackoverflow.com/questions/60967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you create a database from an EDM? How do you create a database from an Entity Data Model. So I created a database using the EDM Designer in VisualStudio 2008, and now I want to generate the SQL Server Schema to create storage in SQL Server. A: From what I understand you are not just supposed to use EDM as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Resetting detection of source file changes Sometimes I have to work on code that moves the computer clock forward. In this case some .cpp or .h files get their latest modification date set to the future time. Later on, when my clock is fixed, and I compile my sources, system rebuilds most of the project because some...
{ "language": "en", "url": "https://stackoverflow.com/questions/60977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I access the non-IPM_SUBTREE Public Folder Tree with WMI? I'm trying to verify when the OAB (Offline Address Book) root folder for a new OAB is created with powershell. Is there a WMI class that exposes this? I'm using powershell, but any examples or links will do. A: If your Exchange server is Exchange 20...
{ "language": "en", "url": "https://stackoverflow.com/questions/60995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Development directory Structure I am wondering what directory structure are commonly used in development projects. I mean with the idea of facilitating builds, deploys release, and etc. I recently used a Maven structure for a java project, but I am not sure it's the best structure for a non-maven driven project. So...
{ "language": "en", "url": "https://stackoverflow.com/questions/61000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How can I generate a git diff of what's changed since the last time I pulled? I'd like to script, preferably in rake, the following actions into a single command: * *Get the version of my local git repository. *Git pull the latest code. *Git diff from the version I extracted in step #1 to what is now in my loca...
{ "language": "en", "url": "https://stackoverflow.com/questions/61002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "83" }
Q: How do I determine the permission settings for PHP scripts? What are the best file permission settings for PHP scripts? Any suggestions on ways to figure out the minimum required permissions? A: The minimum permissions necessary for the script to function. A: WalloWizard is correct that you should only use the min...
{ "language": "en", "url": "https://stackoverflow.com/questions/61005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What steps should be necessary to optimize a poorly performing query? I know this is a broad question, but I've inherited several poor performers and need to optimize them badly. I was wondering what are the most common steps involved to optimize. So, what steps do some of you guys take when faced with the same situ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to check if a value already exists to avoid duplicates? I've got a table of URLs and I don't want any duplicate URLs. How do I check to see if a given URL is already in the table using PHP/MySQL? A: The simple SQL solutions require a unique field; the logic solutions do not. You should normalize your urls to en...
{ "language": "en", "url": "https://stackoverflow.com/questions/61033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: When did browsers start supporting multiple classes per tag? You can use more than one css class in an HTML tag in current web browsers, e.g.: <div class="style1 style2 style3">foo bar</div> This hasn't always worked; with which versions did the major browsers begin correctly supporting this feature? A: @Wayne Kao...
{ "language": "en", "url": "https://stackoverflow.com/questions/61051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you find out the ProductCode from a .Net Installer class custom action I need to know the application's ProductCode in the Installer.OnCommitted callback. There doesn't seem to be an obvious way of determining this. A: You can avoid hardcoding your product code, using /productCode=[ProductCode] in your Custo...
{ "language": "en", "url": "https://stackoverflow.com/questions/61052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Loading Assemblies from the Network This is related to the this question and the answer maybe the same but I'll ask anyways. I understand that we can start managed executables from the network from .NET 3.5 SP1 but what about assemblies loaded from inside the executable? Does the same thing apply? A: You have been ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I disassemble a VC++ application? I believe the application has some parts that target .NET, and some that don't. I'm particularly interested in looking at the resource files, if there are any. A: If you want to disassemble native x86/64 app use IDA, .NET exe/dll can be disassembled using Reflector. There ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/61071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I make my VS2008 x86 installer install x64 assemblies on x64? I'm using the VS2008 installer (plus a custom Orca action) to create an installer for my .NET product. I just recently found out that one of the third-party assemblies I was using is x86-specific (as it includes some native code); thus, x64 custom...
{ "language": "en", "url": "https://stackoverflow.com/questions/61073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Empty namespace using Linq Xml I'm trying to create a sitemap using Linq to Xml, but am getting an empty namespace attribute, which I would like to get rid of. e.g. XNamespace ns = "http://www.sitemaps.org/schemas/sitemap/0.9"; XDocument xdoc = new XDocument(new XDeclaration("1.0", "utf-8", "true"), new XElemen...
{ "language": "en", "url": "https://stackoverflow.com/questions/61084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: SQLite/PHP read-only? I've been trying to use SQLite with the PDO wrapper in PHP with mixed success. I can read from the database fine, but none of my updates are being committed to the database when I view the page in the browser. Curiously, running the script from my shell does update the database. I suspected fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/61085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Hidden Features of JavaScript? What "Hidden Features" of JavaScript do you think every programmer should know? After having seen the excellent quality of the answers to the following questions I thought it was time to ask it for JavaScript. * *Hidden Features of HTML *Hidden Features of CSS *Hidden Features of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "312" }
Q: Close and Dispose - which to call? Having read the threads Is SqlCommand.Dispose enough? and Closing and Disposing a WCF Service I am wondering for classes such as SqlConnection or one of the several classes inheriting from the Stream class does it matter if I close Dispose rather than Close? A: This would-be quick...
{ "language": "en", "url": "https://stackoverflow.com/questions/61092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "182" }
Q: What languages have higher levels of abstraction and require less manual memory management than C++? I have been learning C++ for a while now, I find it very powerful. But, the problem is the the level of abstraction is not much and I have to do memory management myself. What are the languages that I can use which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: How to save the output of a console application I need advice on how to have my C# console application display text to the user through the standard output while still being able access it later on. The actual feature I would like to implement is to dump the entire output buffer to a text file at the end of program ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Recursive lambda expression to traverse a tree in C# Can someone show me how to implement a recursive lambda expression to traverse a tree structure in C#. A: Ok, I found some free time finally. Here we go: class TreeNode { public string Value { get; set;} public List<TreeNode> Nodes { get; set;} p...
{ "language": "en", "url": "https://stackoverflow.com/questions/61143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "66" }
Q: Mocking Static Blocks in Java My motto for Java is "just because Java has static blocks, it doesn't mean that you should be using them." Jokes aside, there are a lot of tricks in Java that make testing a nightmare. Two of the most I hate are Anonymous Classes and Static Blocks. We have a lot of legacy code that make...
{ "language": "en", "url": "https://stackoverflow.com/questions/61150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: Where do the Python unit tests go? If you're writing a library, or an app, where do the unit test files go? It's nice to separate the test files from the main app code, but it's awkward to put them into a "tests" subdirectory inside of the app root directory, because it makes it harder to import the modules that y...
{ "language": "en", "url": "https://stackoverflow.com/questions/61151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "556" }
Q: What is the best way to position a div in CSS? I'm trying to place this menu on the left hand side of the page: <div class="left-menu" style="left: 123px; top: 355px"> <ul> <li> Categories </li> <li> Weapons </li> <li> Armor </li> <li> Manuals </li> <li> Sust...
{ "language": "en", "url": "https://stackoverflow.com/questions/61155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Virtualbox host-guest network setup How do I set up a network between the Host and the guest OS in Windows vista? A: Give the guest two network adapters, one NAT and the other Host-only. The NAT one will allow the guest to see the Internet, and the Host-only one will allow the host to see the guest. One of them al...
{ "language": "en", "url": "https://stackoverflow.com/questions/61156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: Getting mail from GMail into Java application using IMAP I want to access messages in Gmail from a Java application using JavaMail and IMAP. Why am I getting a SocketTimeoutException ? Here is my code: Properties props = System.getProperties(); props.setProperty("mail.imap.host", "imap.gmail.com"); props.setProperty...
{ "language": "en", "url": "https://stackoverflow.com/questions/61176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "76" }
Q: Web in a desktop application: Good web browser controls? I've been utlising a "web browser control" in desktop based applications (in my case Windows Forms .NET) for a number of years. I mostly use it to create a familiar flow-based user interface that also allows a seamless transition to the internet where require...
{ "language": "en", "url": "https://stackoverflow.com/questions/61180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jTDS - No Suitable Driver Exception when running a Maven built project We have a simple [spring-hibernate] application (console app) where in we have set the classpath in manifest file of the executable JAR file. And the app connects to the database using jTDS JDBC Driver, Everything works as expected on Windows mac...
{ "language": "en", "url": "https://stackoverflow.com/questions/61191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Tools to create maximum velocity in a .NET dev team If you were to self-fund a software project which tools, frameworks, components would you employ to ensure maximum productivity for the dev team and that the "real" problem is being worked on. What I'm looking for are low friction tools which get the job done with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I remove local (untracked) files from the current Git working tree? How do I delete untracked local files from the current working tree? A: git-clean - Remove untracked files from the working tree Synopsis git clean [-d] [-f] [-i] [-n] [-q] [-e <pattern>] [-x | -X] [--] <path>…​ Description Cleans the work...
{ "language": "en", "url": "https://stackoverflow.com/questions/61212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7901" }
Q: Getting HTML from a page behind a login This question is a follow up to my previous question about getting the HTML from an ASPX page. I decided to try using the webclient object, but the problem is that I get the login page's HTML because login is required. I tried "logging in" using the webclient object: WebClient...
{ "language": "en", "url": "https://stackoverflow.com/questions/61217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Debug.Assert vs. Specific Thrown Exceptions I've just started skimming 'Debugging MS .Net 2.0 Applications' by John Robbins, and have become confused by his evangelism for Debug.Assert(...). He points out that well-implemented Asserts store the state, somewhat, of an error condition, e.g.: Debug.Assert(i > 3, "i > 3...
{ "language": "en", "url": "https://stackoverflow.com/questions/61219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: C variable and constant value comparison not matching If I have: signed char * p; and I do a comparison: if ( *p == 0xFF ) break; it will never catch 0XFF, but if I replace it with -1 it will: if ( *p == (signed char)0xFF ) break; How can this happen? Is it something with the sign flag? I though that 0xFF ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: The Best Way to shred XML data into SQL Server database columns What is the best way to shred XML data into various database columns? So far I have mainly been using the nodes and value functions like so: INSERT INTO some_table (column1, column2, column3) SELECT Rows.n.value('(@column1)[1]', 'varchar(20)'), Rows.n.v...
{ "language": "en", "url": "https://stackoverflow.com/questions/61233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Is there a good, free WYSIWYG editor for creating HTML using a Django template? I'm interested to get a free, WYSIWYG HTML editor that is compatible with Django template. Any ideas? Thanks LainMH. But I afraid fckeditor is used in web app, for the purpose of editing HTML. What I want is an editor that allows me t...
{ "language": "en", "url": "https://stackoverflow.com/questions/61240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: DIV's vs. Tables or CSS vs. Being Stupid I know that tables are for tabular data, but it's so tempting to use them for layout. I can handle DIV's to get a three column layout, but when you got 4 nested DIV's, it get tricky. Is there a tutorial/reference out there to persuade me to use DIV's for layout? I want to us...
{ "language": "en", "url": "https://stackoverflow.com/questions/61250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: How to be notified of file/directory change in C/C++, ideally using POSIX The subject says it all - normally easy and cross platform way is to poll, intelligently. But every OS has some means to notify without polling. Is it possible in a reasonably cross platform way? (I only really care about Windows and Linux, bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/61253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: IIS uses proxy for webservice request. How to stop this? I have a problem with a little .Net web application which uses the Amazon webservice. With the integrated Visual Studio web server everything works fine. But after deploying it to the IIS on the same computer i get the following error message: Ein Verbindungsv...
{ "language": "en", "url": "https://stackoverflow.com/questions/61256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you resolve .Net namespace conflicts with the 'using' keyword? Here's the problem, you include multiple assemblies and add 'using namespaceX' at the top of your code file. Now you want to create a class or use a symbol which is defined in multiple namespaces, e.g. System.Windows.Controls.Image & System.Drawi...
{ "language": "en", "url": "https://stackoverflow.com/questions/61262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Breakpoints in core .NET runtime? I have a third party library that internally constructs and uses the SqlConnection class. I can inherit from the class, but it has a ton of overloads, and so far I have been unable to find the right one. What I'd like is to tack on a parameter to the connection string being used. Is...
{ "language": "en", "url": "https://stackoverflow.com/questions/61272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Quick and dirty way to profile your code What method do you use when you want to get performance data about specific code paths? A: Well, I have two code snippets. In pseudocode they are looking like (it's a simplified version, I'm using QueryPerformanceFrequency actually): First snippet: Timer timer = new Timer ti...
{ "language": "en", "url": "https://stackoverflow.com/questions/61278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How do I locate a Word application window? I have a VB.net test application that clicks a link that opens the Microsoft Word application window and displays the document. How do I locate the Word application window so that I can grab some text from it? A: I've done something similar with a SourceSafe dialog, which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Learn Silverlight or WPF first? It seems that Silverlight/WPF are the long term future for user interface development with .NET. This is great because as I can see the advantage of reusing XAML skills on both the client and web development sides. But looking at WPF/XAML/Silverlight they seem very large technologies ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: What are the pros and cons of the SVN plugins for Eclipse, Subclipse and Subversive? SVN in Eclipse is spread into two camps. The SVN people have developed a plugin called Subclipse. The Eclipse people have a plugin called Subversive. Broadly speaking they both do the same things. What are the advantages and disadva...
{ "language": "en", "url": "https://stackoverflow.com/questions/61320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "639" }
Q: Getting user photo from SPUser using WSS Object model I am trying to retrieve a user on Sharepoint's user photo through the WSS 3.0 object model. I have been browsing the web for solutions, but so far I've been unable to find a way to do it. Is it possible, and if so how? A: Here is a code snippet that should help ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is there a way to insert assembly code into C? I remember back in the day with the old borland DOS compiler you could do something like this: asm { mov ax,ex etc etc... } Is there a semi-platform independent way to do this now? I have a need to make a BIOS call, so if there was a way to do this without asm code, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "84" }
Q: Threads or asynch? How do you make your application multithreaded ? Do you use asynch functions ? or do you spawn a new thread ? I think that asynch functions are already spawning a thread so if your job is doing just some file reading, being lazy and just spawning your job on a thread would just "waste" ressources....
{ "language": "en", "url": "https://stackoverflow.com/questions/61342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Can an iPhone App Be Run as Root? I am thinking about the design of an iPhone app I'd like to create. One possible problem is that this application will have to run as root (to access certain network ports). In a typical UNIX app, I'd just get the app to run with setuid, but I'm wondering if that is possible with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to get entire chain of Exceptions in Application.ThreadException event handler? I was just working on fixing up exception handling in a .NET 2.0 app, and I stumbled onto some weird issue with Application.ThreadException. What I want is to be able to catch all exceptions from events behind GUI elements (e.g. butt...
{ "language": "en", "url": "https://stackoverflow.com/questions/61354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Using CSS how best to display name value pairs? Should I still be using tables anyway? The table code I'd be replacing is: <table> <tr> <td>Name</td><td>Value</td> </tr> ... </table> From what I've been reading I should have something like <label class="name">Name</label><label class="value">Val...
{ "language": "en", "url": "https://stackoverflow.com/questions/61357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: Rolling your own message loop, any pitfalls? This question is slightly related to this question about exception handling. The workaround I found there consists of rolling my own message loop. So my Main method now looks basically like this: [STAThread] static void Main() { // this is needed so there'll actually an...
{ "language": "en", "url": "https://stackoverflow.com/questions/61366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I create a loop in an onClick event? I want to write an onClick event which submits a form several times, iterating through selected items in a multi-select field, submitting once for each. How do I code the loop? I'm working in Ruby on Rails and using remote_function() to generate the JavaScript for the a...
{ "language": "en", "url": "https://stackoverflow.com/questions/61372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there a good admin generator for Ruby on Rails? My current project is in Rails. Coming from a Symfony (PHP) and Django (Python) background, they both have excellent admin generators. Seems like this is missing in Rails. For those who aren't familiar with Symfony or Django, they both allow you to specify some me...
{ "language": "en", "url": "https://stackoverflow.com/questions/61383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Is knowing blend required? Do you expect your WPF developers to know expression blend? Any good resources for learning more about Blend? [UPDATE] Does knowing blend make you more productive? A: As a WPF developer I surely see the benifit of knowing Expression Blend for many of my previous projects. This help me to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Enhancing the web user experience for the vision impaired I was listening to a recent episode of Hanselminutes where Scott Hanselman was discussing accessibility in web applications and it got me thinking about accessibility in my own applications. We all understand the importance of semantic markup in our web appli...
{ "language": "en", "url": "https://stackoverflow.com/questions/61399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What Makes a Good Unit Test? I'm sure most of you are writing lots of automated tests and that you also have run into some common pitfalls when unit testing. My question is do you follow any rules of conduct for writing tests in order to avoid problems in the future? To be more specific: What are the properties of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "97" }
Q: Hidden Features of PHP? I know this sounds like a point-whoring question but let me explain where I'm coming from. Out of college I got a job at a PHP shop. I worked there for a year and a half and thought that I had learned all there was to learn about programming. Then I got a job as a one-man internal developmen...
{ "language": "en", "url": "https://stackoverflow.com/questions/61401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "174" }
Q: C++ Exception code lookup Knowing an exception code, is there a way to find out more about what the actual exception that was thrown means? My exception in question: 0x64487347 Exception address: 0x1 The call stack shows no information. I'm reviewing a .dmp of a crash and not actually debugging in Visual Studio. A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/61402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I make a subproject with Qt? I'm about to start on a large Qt application, which is made up of smaller components (groups of classes that work together). For example, there might be a dialog that is used in the project, but should be developed on its own before being integrated into the project. Instead of wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/61405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How to disable a warning in Delphi about "return value ... might be undefined"? I have a function that gives me the following warning: [DCC Warning] filename.pas(6939): W1035 Return value of function 'function' might be undefined The function, however, is clean, small, and does have a known, expected, return value...
{ "language": "en", "url": "https://stackoverflow.com/questions/61418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I make a ListBox refresh its item text? I'm making an example for someone who hasn't yet realized that controls like ListBox don't have to contain strings; he had been storing formatted strings and jumping through complicated parsing hoops to get the data back out of the ListBox and I'd like to show him there...
{ "language": "en", "url": "https://stackoverflow.com/questions/61421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: What are some viable alternatives to BizTalk Server? In evaluating different systems integration strategies, I've come across some words of encouragement, but also some words of frustration over BizTalk Server. What are some pros and cons to using BizTalk Server (both from a developer standpoint and a business user...
{ "language": "en", "url": "https://stackoverflow.com/questions/61437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Rollover safe timer (tick) comparisons I have a counter in hardware that I can observe for timing considerations. It counts miliseconds and is stored in a 16 bit unsigned value. How do I safely check if a timer value has passed a certain time and safely handle the inevitable rollover: //this is a bit contrived, but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What is the best code template facility for Emacs? Particularly, what is the best snippets package out there? Features: * *easy to define new snippets (plain text, custom input with defaults) *simple navigation between predefined positions in the snippet *multiple insertion of the same custom input *accepts cu...
{ "language": "en", "url": "https://stackoverflow.com/questions/61446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: How do I access the host machine from the guest machine? I've just created a new Windows XP VM on my Mac using VMware Fusion. The VM is using NAT to share the host's internet connection. How do I access a Rails application, which is accessible on the Mac itself using http://localhost:3000? A: You can use your host ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "131" }
Q: Does Django have HTML helpers? Does Django have any template tags to generate common HTML markup? For example, I know that I can get a url using {% url mapper.views.foo %} But that only gives me the URL and not the HTML code to create the link. Does Django have anything similar to Rails' link_to helper? I found dja...
{ "language": "en", "url": "https://stackoverflow.com/questions/61451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Accessing Firefox cache from an XPCOM component Does anybody know how to get local path of file cached by Firefox based on its URL from an XPCOM component? A: To access cached items, new cache session must be created using createSession method provided in nsICacheService. This method creates nsICacheSession object....
{ "language": "en", "url": "https://stackoverflow.com/questions/61453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MVC.net jQuery Validation After trying to avoid JavaScript for years, Iv started using Query for validation in MVC asp.net, as there does not seem to be an official way of doing validation, Iv been surprised how good jQuery is. Firstly is there a way to get intellisense working for jQuery and its validation plugin,...
{ "language": "en", "url": "https://stackoverflow.com/questions/61456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How can I access the backing variable of an auto-implemented property? In the past we declared properties like this: public class MyClass { private int _age; public int Age { get{ return _age; } set{ _age = value; } } } Now we can do: public class MyClass { public int Age {...
{ "language": "en", "url": "https://stackoverflow.com/questions/61480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "79" }
Q: Figure out div that is visible out of four divs I need to figure out what div is visible out of four possible divs using jQuery. Only one of those div's will be visible at any given time. This is what I have that works so far: $("#FeatureImage1:visible, #FeatureImage2:visible, #FeatureImage3:visible, #FeatureImage4...
{ "language": "en", "url": "https://stackoverflow.com/questions/61486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Making portable code With all the fuss about opensource projects, how come there is still not a strong standard that enables you to make portable code (I mean in C/C++ not Java or C#) Everyone is kind of making it's own soup. There are even some third party libs like Apache Portable Runtime. A: Yes, there is no sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/61499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Python dictionary from an object's fields Do you know if there is a built-in function to build a dictionary from an arbitrary object? I'd like to do something like this: >>> class Foo: ... bar = 'hello' ... baz = 'world' ... >>> f = Foo() >>> props(f) { 'bar' : 'hello', 'baz' : 'world' } NOTE: It should not...
{ "language": "en", "url": "https://stackoverflow.com/questions/61517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "473" }
Q: What are the pros and cons of object databases? There is a lot of information out there on object-relational mappers and how to best avoid impedance mismatch, all of which seem to be moot points if one were to use an object database. My question is why isn't this used more frequently? Is it because of performance ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Testing network interrupts in software I have a network C++ program in Windows that I'd like to test for network disconnects at various times. What are my options? Currently I am: * *Actually disconnecting the network wire from the back of my computer *using ipconfig /release *Using the cports program to close...
{ "language": "en", "url": "https://stackoverflow.com/questions/61524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How To Discover RSS Feeds for a given URL I get a URL from a user. I need to know: a) is the URL a valid RSS feed? b) if not is there a valid feed associated with that URL using PHP/Javascript or something similar (Ex. http://techcrunch.com fails a), but b) would return their RSS feed) A: This link will allow you t...
{ "language": "en", "url": "https://stackoverflow.com/questions/61535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Are there legitimate uses for JavaScript's "with" statement? Alan Storm's comments in response to my answer regarding the with statement got me thinking. I've seldom found a reason to use this particular language feature, and had never given much thought to how it might cause trouble. Now, I'm curious as to how I mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/61552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "387" }
Q: Spell Checking Service with python using mod_python What is the best available method for developing a spell check engine (for example, with aspell_python), that works with apache mod_python? apache 2.0.59+RHEL4+mod_python+aspell_python seems to crash. Is there any alternative to using aspell_python? A: Looks like ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is .NET/Mono or Java the better choice for cross-platform development? How much less libraries are there for Mono than for Java? I lack the overview over both alternatives but I have pretty much freedom of choice for my next project. I'm looking for hard technical facts in the areas of * *performance (for example...
{ "language": "en", "url": "https://stackoverflow.com/questions/61559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "110" }
Q: Code to make a DHTMLEd control replace straight quotes with curly quotes I've got an old, legacy VB6 application that uses the DHTML editing control as an HTML editor. The Microsoft DHTML editing control, a.k.a. DHTMLEd, is probably nothing more than an IE control using IE's own native editing capability internally....
{ "language": "en", "url": "https://stackoverflow.com/questions/61598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: api documentation and "value limits": do they match? Do you often see in API documentation (as in 'javadoc of public functions' for example) the description of "value limits" as well as the classic documentation ? Note: I am not talking about comments within the code By "value limits", I mean: * *does a parameter...
{ "language": "en", "url": "https://stackoverflow.com/questions/61604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is it pythonic for a function to return multiple values? In python, you can have a function return multiple values. Here's a contrived example: def divide(x, y): quotient = x/y remainder = x % y return quotient, remainder (q, r) = divide(22, 7) This seems very useful, but it looks like it can also b...
{ "language": "en", "url": "https://stackoverflow.com/questions/61605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "86" }
Q: Should you use international identifiers in Java/C#? C# and Java allow almost any character in class names, method names, local variables, etc.. Is it bad practice to use non-ASCII characters, testing the boundaries of poor editors and analysis tools and making it difficult for some people to read, or is American a...
{ "language": "en", "url": "https://stackoverflow.com/questions/61615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: NHibernate and shared web hosting Has anyone been able to get an NHibernate-based project up and running on a shared web host? NHibernate does a whole lot of fancy stuff with reflection behind the scenes but the host that I'm using at the moment only allows applications to run in medium trust, which limits what you ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Windows API dialogs without using resource files I'm trying to create a dialog box using C++ and the windows API, but I don't want the dialog defined in a resource file. I can't find anything good on this on the web, and none of the examples I've read seem to define the dialog programmatically. How can I do this? A ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: "Beautifying" an OS X disk image When I downloaded Skype, I noticed that, in place of a normal "disk image" icon, there was a custom icon, and when I double clicked on the icon, the window used a colorful image as the background, prompting me to drag the skype icon into the applications folder. How can I do that wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/61635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: DateTime Utility for ASP.net I was wondering if anyone could suggest a utility library that has useful functions for handling dates in ASP.NET easily taking away some of the leg work you normally have to do when handling dates? Subsonic Sugar has some really nice functions: http://subsonichelp.com/html/1413bafa-b5aa...
{ "language": "en", "url": "https://stackoverflow.com/questions/61638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }