text
stringlengths
8
267k
meta
dict
Q: How to open a file in a list of files in Vim? I have a longish list of files opened in vim that looks like this: /dir1/file1 /dir2/file2 /dir2/file3 ..... How can I open all of them one by one the easiest way possible in the same session of vim either with split or edit? A: I'm going to assume you have the file li...
{ "language": "en", "url": "https://stackoverflow.com/questions/437262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: Unit and Functional testing iPhone code? I just sat in on a seminar about developing apps for the iPhone. The speaker told me that there is NOTHING available for writing unit tests or functional tests for your iPhone software. Is this true? Is there really no testing story for the iPhone as of now? A: Yes you can...
{ "language": "en", "url": "https://stackoverflow.com/questions/437264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Running a C# application as 32-bit on a 64-bit machine How do I force my application to run as 32-bit on a 64-bit machine? The code is written in C#. A: Here's how I did it when we couldn't change the existing code from Any CPU to x86 due to a ClickOnce limitation: Create a 32-bit (x86 must be checked under project...
{ "language": "en", "url": "https://stackoverflow.com/questions/437271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Are there any SyncML server components that work in .NET? Basically we'd want to create a SyncML server that we can hookup to our own custom data source, all the component would do is listen for client connections and notify and request data from our code return the data back to the client. Looking primarily to sy...
{ "language": "en", "url": "https://stackoverflow.com/questions/437278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it safe to use getenv() in static initializers, that is, before main()? I looked in Stevens, and in the Posix Programmer's Guide, and the best I can find is An array of strings called the enviroment is made available when the process begins. This array is pointed to by the external variable environ, which is d...
{ "language": "en", "url": "https://stackoverflow.com/questions/437279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Exclude a column from being sorted using jQuery tablesorter I am looking for a way to exclude a single column from being sorted using jQuery's tablesorter plugin. Specifically, I have a fairly large table and would like to keep a "row number" column fixed so that it is easy to see what position in the table a partic...
{ "language": "en", "url": "https://stackoverflow.com/questions/437290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: .NET: Possible to change XPath() expression based on URL parameters? I'm setting up a simple page that just displays the contents of an XML file and allows the user to filter by keyword. I'm a serious .NET newb, but I've got an XmlDataSource set up: <asp:XmlDataSource ID="RSSFeedDataSource" runat="server" DataFile=...
{ "language": "en", "url": "https://stackoverflow.com/questions/437298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: "Connecting" nonGUI objects to GUI objects I have a set of nonGUI objects which have a one to one realtionship with GUI objects. All events are routed through the top level window. Many ( not all ) events occuring on the GUI object result in calling a method on the associated object. Some methods in the NonGui obj...
{ "language": "en", "url": "https://stackoverflow.com/questions/437309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Trying to learn: Object Reorientation, and generic functions in LISP! im reading Practical common Lisp as a result of another question. I just read chapter 16 and 17 where you can find how LISP manages objects. But after a couple of years of thinking how Java manages objects, i cant really seem to understand how you...
{ "language": "en", "url": "https://stackoverflow.com/questions/437312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Why can't Win32::OLE talk to Excel2003 under Win2003? I have a Web-based Perl Win32::OLE script that uses Excel on the server side. It has been working happily for years on a Win2000 server running Excel2000. We recently upgraded to Win2003/Excel2003 and I now get the following error from the script: Win32::OLE(0.1...
{ "language": "en", "url": "https://stackoverflow.com/questions/437313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Best way to code stackoverflow style 'questions' / 'tags' rollover buttons Whats the best way to implement rollover 'buttons' like Stackoverflow has for 'Questions', 'Tags', 'Users' at the top. It is actually implemented like this : <div class="nav"> <ul class="primarynav"> <li class=""> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I move a Pervasive PSLQ database between servers What is the easiest way to move a Pervasive PSQL database between two servers. I can stop the database engines if necessary. A: I would stop the database engine at both sites. Copy all data (db files) from the first site to the second site and then start the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/437319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Checklist towards optimal performance in a database import application I am facing an application designed to import huge amounts of data into a Microsoft SQL Server 2000 database. The application seems to take an awful long time to complete and I suspect the application design is flawed. Someone asked me to dig int...
{ "language": "en", "url": "https://stackoverflow.com/questions/437324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you track down dependencies for ASP.NET Web Site? The dynamic compile-on-the fly approach seems to fall outside the capacity for the typical tools which would extract this kind of information. I know I may be better off converting to a Web Application, BUT I would like to ask how it could be done in the case...
{ "language": "en", "url": "https://stackoverflow.com/questions/437325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Vertically Align a Table in CSS How can I vertically align a table in the middle of the screen with css? A: Generally something along the lines of this works pretty well in any block element with a defined height. table { position: absolute; top: 50%; margin-top: -50%; } Centering on the page is harder...
{ "language": "en", "url": "https://stackoverflow.com/questions/437333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Rhino.Commons + Fluent NHibernate Is there a way to use Rhino.Commons with Fluent Nhibernate, (in particular AutoMapping)? Many thanks fromano A: # # # # # # # # # # UPDATE: That answer was written in Feb of 2009. With the rate that the FluentNHibernate project was changing, it's very likely that the method has b...
{ "language": "en", "url": "https://stackoverflow.com/questions/437337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to implement full-screen mode? How full-screen mode, like in web browsers, for application running under Windows OS is implemented? Is it more complex then maximizing a window and hiding window decoration? A: Form Style = NONE, maximized. If you specify the language you could probably get some sample code. ED...
{ "language": "en", "url": "https://stackoverflow.com/questions/437352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: F# as a Scripting Language Is there a good way to write F# scripts that execute stand-alone without compiling? ...As scripts that could be executed via task scheduler on a server? I assume the server would have the core F# libraries, but not Visual Studio installed. Is there an F# equivalent to CS-Script or NScript,...
{ "language": "en", "url": "https://stackoverflow.com/questions/437355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Performance counter for "Largest free region"? I'm debugging an out-of-memory exception. When I get the exception, the "virtual bytes" performance counter indicates plenty of addressable space. The problem, however, is that the addressable space is badly fragmented, and the "Largest free region" (returned from !ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/437367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you save variable state in Flash I'm completely new to Actionscript and I'm trying to figure out if it's possible to save variable state in Flash. I figure I could use XML but is there a way to store it in the Flash file itself? Thank you! A: Yup, look up Shared Objects. It's what they are for, either locall...
{ "language": "en", "url": "https://stackoverflow.com/questions/437369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP: Locale aware number format I want to format the number 3253454 for my website visitors. If I use the inbuilt number_format function, I get: 3,253,454 which is great for UK and USA, however most other countries use 3.253.454 I have many international visitors. Can anyone give me a pointer to the best practice he...
{ "language": "en", "url": "https://stackoverflow.com/questions/437371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Spring dependency injection or aspect programming I have a need for methods in several classes that must always follow a specific pre and post pattern. public void method(X x, Y y ) { // ************Repeating Part begin ******************/ AFrameworkClass aFrameworkClass = new AFrameworkClass (this.memberVariable...
{ "language": "en", "url": "https://stackoverflow.com/questions/437373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Verify certificate against Java certificate store via CLI How can I verify an X509 (or DER-formatted) certificate against the Java certificate store via the command line? I've looked into using the keytool utility, but it looks like it only handles import/export/display functionality (no verification). EDIT: It loo...
{ "language": "en", "url": "https://stackoverflow.com/questions/437375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do relative file paths work in Eclipse? So my 2009 new years resolution is to learn Java. I recently acquired "Java for Dummies" and have been following along with the demo code in the book by re-writing it using Eclipse. Anyway, every example in the book that uses a relative path does not seem to read the .tx...
{ "language": "en", "url": "https://stackoverflow.com/questions/437382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }
Q: Is Spec# stable enough to use? Does anyone here use Spec# regularly? I would like to know if it is stable and powerful enough before I start using it everywhere. It looks like the syntax is influencing c# 4.0, which will hopefully make it easier to upgrade once 4.0 is released. Thoughts? A: I guess it depends on wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/437383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Select all but the first character in a string How can you return a string minus the first character in a string in MySQL? In other words, get 'ello' from 'hello'. The only way I can think to do it is to use mid() with the second offset being larger than the string could possibly be: select mid('hello', 2, 99) But ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I delay a vb.net program until a file operation completes? I have this: Dim myTemp As String myTemp = System.DateTime.Now().ToString("MMMddyyyy_HHmmss") & ".pdf" System.IO.File.Copy(myFile, "c:\" & myTemp) Application.DoEvents() OpenFile(myTemp) The problem is that when I call OpenFile, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I make cygwin autocomplete windows paths? I don't want to type /cygdrive/c/path/to/stuff, especially when using tools that don't know anything about cygwin. Is there a way to configure cygwin to autocomplete "c:\path\to\stuff" or even "c:/path/to/stuff"? A: Autocomplete should be working after the /cygdrive...
{ "language": "en", "url": "https://stackoverflow.com/questions/437400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Storing an SqlDataReader-object in C#/ASP.NET? I'm currently writing a C#-class in my ASP.NET (3.5) application to handle all database-queries. Some of the methods are there to make a select-query to the database. Inside the method i simply have a SqlDataReader r = command.ExecuteReader(); to fetch the data. I now w...
{ "language": "en", "url": "https://stackoverflow.com/questions/437403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can jFrames be used inside of JavaFX? I just saw a article on Swing being used in JavaFX. How can an application that uses a jFrame to display graphics be ported into JavaFX? Also, will the jButtons and jSliders work in the normal manner? I know this is a generic question but I know little of JavaFX and am cu...
{ "language": "en", "url": "https://stackoverflow.com/questions/437413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: C++ Builder or Visual Studio for native C++ development? I've decided I want to get more into native code development with C++. I'm trying to decide if I would be better served using CodeGear C++ Builder 2009 or Visual Studio 2008. I currently use Delphi 2007, so I'm very comfortable with C++ Builder's IDE (its the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Execute multiple command lines with the same process using .NET I'm trying to execute multiple commands without create a new process each time. Basically, I want to start the DOS command shell, switch to the MySQL command shell, and execute a command. Here's how I am calling the procedure (also below). Also, how do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "68" }
Q: ASP.NET 2.0 - Validating nonvisible Controls on the same page? I have an application that uses RequiredFieldValidator controls with a ValidationSummary and once a "Finish" button is clicked all the fields are validated. This page has several different parts of it that are made visible or invisible and I noticed that...
{ "language": "en", "url": "https://stackoverflow.com/questions/437422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a way to find all the functions exposed by a dll I've been searching for a way to get all the strings that map to function names in a dll. I mean by this all the strings for which you can call GetProcAddress. If you do a hex dump of a dll the symbols (strings) are there but I figure there must me a system ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "70" }
Q: Limit the memory and cpu available for a user in Linux I am a little concerned with the amount of resources that I can use in a shared machine. Is there any way to test if the administrator has a limit in the amount of resources that I can use? And if does, to make a more complete question, how can I set up such lim...
{ "language": "en", "url": "https://stackoverflow.com/questions/437433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: What KML fields are supported in the native Google Maps application on the iPhone? I have been doing some research on using maps in iPhone applications and it looks like most of my needs can be met passing KML data into the built-in google maps application, but I cannot seem to set the same values (phone, home page,...
{ "language": "en", "url": "https://stackoverflow.com/questions/437441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: windows installation hang How can I find what's hanging all new installations on a Windows box? While testing an installation script on Windows (XP Pro, if it matters) I've run into a situation wherein any and all attempts to install anything on the system hang waiting on who knows what. When the system is restarted...
{ "language": "en", "url": "https://stackoverflow.com/questions/437469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Type to use to represent a byte in ANSI (C89/90) C? Is there a standards-complaint method to represent a byte in ANSI (C89/90) C? I know that, most often, a char happens to be a byte, but my understanding is that this is not guaranteed to be the case. Also, there is stdint.h in the C99 standard, but what was used b...
{ "language": "en", "url": "https://stackoverflow.com/questions/437470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Safe escape function for terminal output I'm looking for the equivalent of a urlencode for terminal output -- I need to make sure that garbage characters I (may) print from an external source don't end up doing funky things to my terminal, so a prepackaged function to escape special character sequences would be idea...
{ "language": "en", "url": "https://stackoverflow.com/questions/437476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can you use an ASP.NET web control (ASCX) to render XML? Off the top of my head, I don't see any reason why you couldn't structure an ASP.NET custom web control (ASCX file) to output only XML. If you avoid using controls in the System.Web.UI namespace, and just use XML tags and sub-controls, which also render only X...
{ "language": "en", "url": "https://stackoverflow.com/questions/437486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I get current PID from within Ant? I have an ant task, and within it I'd like to get the current process id (a la echo $PPID from command line). I'm running ksh on Solaris, so I thought I could just do this: <property environment="env" /> <target name="targ"> <echo message="PID is ${env.PPID}" /> <ec...
{ "language": "en", "url": "https://stackoverflow.com/questions/437491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Pipe output to use as the search specification for grep on Linux How do I pipe the output of grep as the search pattern for another grep? As an example: grep <Search_term> <file1> | xargs grep <file2> I want the output of the first grep as the search term for the second grep. The above command is treating the outpu...
{ "language": "en", "url": "https://stackoverflow.com/questions/437504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Oracle: how to add a text node into an existing element In Oracle, you can write: update t set xml = updateXML(xml, '/a/b/text()', 'gaga') This works only if you already have some text in the <b> element. How to update the document and "add some text" in <b> if the document in the database looks like: <a> <b/> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are the valid instanceState's for the Amazon EC2 API? What are the valid instanceState's for the Amazon EC2 API? It doesn't seem to be defined in the current API doc. Google doesn't turn up much. So far I know about: * *0: pending *16: running *32: shutting-down *48: terminated but I'm pretty sure I've ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Windows Form Design-Time Error I am using Visual Studio 2008 and I get the following error message when trying to open one of my Forms: Could not find endpoint element with name 'WSHttpBinding_ICommon' and contract 'CommonWCF.ICommon' in the ServiceModel client configuration section. This might be because n...
{ "language": "en", "url": "https://stackoverflow.com/questions/437512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: android internals and memory/processor constraints? I'm considering creating a screen reader for Android. My questions are as follows. One how much of the internals of Android are exposed through the Java API? I'm looking for things such as system wide notification when text is displayed, notification of a new appli...
{ "language": "en", "url": "https://stackoverflow.com/questions/437517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: No links are available for the current selection I've just received a new development machine with VS2008 pre-installed. One of my favorite help features is the Dynamic Help pane. However, it currently shows "no links are available for the current selection" for everything. I'm thinking that there's a config option ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS Horizontal Menu Problem: Won't Work in IE7 Could you help me fix the menu on this this page? The menu list items don't have a width defined, so they display at 100% width in IE7. If I make the span.right have a float: left, it fixes the problem, but then the rounded corners don't work. A possible solution mig...
{ "language": "en", "url": "https://stackoverflow.com/questions/437523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: LINQ with subselect and groupby to get only the latest version of each item in a list I'm a newbie when it comes to LINQ... I have an IEnumerable generic list that contains answers with different versions (each with an FK to the question). From this list I need to get a dictionary of latest version answers only. A v...
{ "language": "en", "url": "https://stackoverflow.com/questions/437539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Flex 3 Localization: Removing a Locale Although I'm still poking around in the docs and online, I figured I'd ask this one here, for future folks who run into it. Using copylocale for localization, I made a typo (e.g., "en_FR" instead of "fr_FR") and mistakenly created a locale I don't want. What's the proper way...
{ "language": "en", "url": "https://stackoverflow.com/questions/437541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Special IP addresses In particular I'm looking for an IP address that I can put in my hosts file that will black-hole a given DNS name. Right now I'm using 127.0.0.1 but that would start acting odd if I installed any services. How can I prevent a 3rd party program from contacting a given server? A: RFC-3330 seems t...
{ "language": "en", "url": "https://stackoverflow.com/questions/437546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Troubleshoot Windows freezes and slowdowns I'm a (happy?) user of Windows, but recently have problems that I don't know how to track. I have a WinXP plus home and work Win2k3 systems. Some of them are freezing itermittently for a short amount of time (from less than a second to a few seconds). There is no CPU usage ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best way to read in a rolling log file in .NET? I need to read in a rolling log file in .NET 3.5sp1. I'm wondering what's the best way to do this? The file can get really big. An idea I had was to * *Open File *Read file to last read line (in the first case, it was 0) *Read all remaining lines *Close stream an...
{ "language": "en", "url": "https://stackoverflow.com/questions/437562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: TFS - error when trying to add "Windows user or group" to licensed users - adding group I have: Microsoft Visual Studio 2008 Team Explorer Version 9.0.21022.8 When I go to Team->Team Foundation Server Settings->Group Memberships; Double-click on 'Team Foundation Server Licensed Users'; Select "Windows User or Group"...
{ "language": "en", "url": "https://stackoverflow.com/questions/437581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JQuery Slider - Call function after slide I have a JQuery silder that I'm using to set the score on a web application. I orignally had it so that the user clicked a submit button, but the client now wants it to update AJAX style. This would work find, but the slide function gets call on every movement, so my AJAX s...
{ "language": "en", "url": "https://stackoverflow.com/questions/437588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do I unload (reload) a Python module? I have a long-running Python server and would like to be able to upgrade a service without restarting the server. What's the best way do do this? if foo.py has changed: unimport foo <-- How do I do this? import foo myfoo = foo.Foo() A: reload(module), but only...
{ "language": "en", "url": "https://stackoverflow.com/questions/437589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1057" }
Q: Faking time without changing Windows system clock Does anybody know of a Windows tool to report fake dates/times to a process? Apparently there are Linux programs that can be used to test how the software will react in the future / in a different timezone or to trigger scheduled tasks without actually modifying the...
{ "language": "en", "url": "https://stackoverflow.com/questions/437599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How do I represent my joins in Relational Algebra? I am new to relational algebra and for my assignment I have to create two. I have written out the problem I have faced in SQL but I am unsure of how to represent such joins in relational algebra. Any help/pointers would be greatly appreciated. SELECT ps.FirstName AS...
{ "language": "en", "url": "https://stackoverflow.com/questions/437603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Storage of User Entered Data I'm trying to write a C# program, where when a user enters some data into a text box and clicks on a "save" button, the information is stored in some sort of file that when the program is opened the next time around, the information is automatically loaded in. I'm using Visual C# expr...
{ "language": "en", "url": "https://stackoverflow.com/questions/437604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: joining 2 columns from Table1 to Table 2 How would you reference table1 columns to 2 columns in table 2 I created a table 'State' with 50 exact rows trying to relate (weddingState,contactState) in 'Wedding' table This is the statement that I created but it only joins the top WeddingState correctly - seems not to car...
{ "language": "en", "url": "https://stackoverflow.com/questions/437617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I track down where I've been leaking IDisposable objects from? I've been debugging some code recently that was a bit memory leaky. It's a long running program that runs as a Windows service. If you find a class wearing an IDisposable interface, it is telling you that some of the resources it uses are outside ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Java synchronized static methods: lock on object or class The Java documentation says: It is not possible for two invocations of synchronized methods on the same object to interleave. What does this mean for a static method? Since a static method has no associated object, will the synchronized keyword lock on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "150" }
Q: Getting rid of disc in list item I'm developing a site using jQuery, and jQuery UI tabs. For some reason, my tabs (unordered list) are showing their bullets in all browsers (tested thus far) except Firefox 3 on OS X. It displays them in Safari OS X, FF 3 Windows, and Google Chrome Windows (IE displays all the divs...
{ "language": "en", "url": "https://stackoverflow.com/questions/437631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are some tips to make my project compile on a fresh checkout every time? More times than I'd like to admit I've had people new to a project do a checkout only to find they are missing various resources, dll's, settings. I'd like to get in the proper habit of having my projects compilation be smooth as can be f...
{ "language": "en", "url": "https://stackoverflow.com/questions/437633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Mouse capture is failing? I want to be able to access the coordinates of the mouse whether or not the cursor is over the window of my application. When I use Mouse.Capture(IInputElement) or UIElement.CaptureMouse(), both fail to capture the mouse and return false. What might be my problem? The cs file for my window ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Why prefix C# interface names with an “I” What is the rationale behind this naming convention? I don't see any benefit. The extra prefix just pollutes the API. My thinking is inline with Konrad's response to this related question; the chosen answer of which is mostly what I am asking for here. A: Its the complete o...
{ "language": "en", "url": "https://stackoverflow.com/questions/437649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Are selectOne and selectMany choices bounded by SelectItems? Do the JSF selectOne and selectMany controls only allow submission of values defined in the given selectItems? I'm concerned about parameter spoofing, and if this was built-in, I wouldn't require a validator to ensure the selected value was one of the val...
{ "language": "en", "url": "https://stackoverflow.com/questions/437663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Oracle: How to create an element in a specific namespace with XMLElement() In Oracle, you can use the XMLElement() function to create an element, as in: XMLElement('name', 'John') But how to create an element in a specific namespace? For instance, how to create the following element: <my:name xmlns:my="http://www.e...
{ "language": "en", "url": "https://stackoverflow.com/questions/437670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I create an ASMX web service page without a code behind file I have been able to create ASPX pages without the code behind, but I can't for the life of me figure out the magic combination to get an ASMX page to work without a code behind. Is this even possible? A: Quick sample: <%@ WebService Language="C#" C...
{ "language": "en", "url": "https://stackoverflow.com/questions/437674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Collisions between game objects and the floor with regards to gravity? How do games with gravity handle the relationship between moving things like players, monsters, or objects and the floor? Is the player constantly "falling into" the floor and being bounced back up? Two ways to react to collisions that I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Eclipse: Nested Editor Tabs? Is anyone aware of any method (or external plugin) that would allow for nested editor tabs? It would be nice to be able to group related open files into their own "master" tabs, but I'm not sure if this is even possible. Any ideas? A: This is totally non-obvious, and I discovered it by ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to get the Memory Used by a Delphi Program I know how to get the System memory use using GlobalMemoryStatusEx, but that tells me the what the entire OS is using. I really want my program to report how much memory it alone has allocated and is using. Is there any way within my Delphi 2009 program to call either ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "53" }
Q: Reduce windows executable size I have a C++/MFC app on windows - dynamically linked it's only 60kb static it's > 3Mb. It is a being distributed to customers by email and so needs to be as small as possible. It statically links the MFC and MSCVRT libraries - because it is a fix to some problems and I don't want mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/437685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: is there a client side (javascript) graph library that doesn't require a server? I need to generate many internal client-side (within the company only) graphs from streams of data, and since the data itself is "secret", I can't use a service like Google-Graphs for generating the graphs. So I was wondering if anyone ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: DFA -> regular expression I've written a DFA on paper, and want to translate it into a set of regular expressions. Does anybody know a good tool to do this? A: From my little google search, I found JFLAP. They also have a tutorial on how to Convert FA to regular expression. JFLAP JFLAP is software for experimenti...
{ "language": "en", "url": "https://stackoverflow.com/questions/437698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Searching large data, all numeric, 1 billion bytes in PHP I was wondering how I could quickly search a data string of up to 1 billion bytes of data. The data is all numeric. Currently, we have the data split into 250k files and the searches using strpos (fastest built-in function) on each file until it finds somethi...
{ "language": "en", "url": "https://stackoverflow.com/questions/437704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set MySQL to use GMT in Windows and Linux I'm just trying to get MySQL to store time in GMT... I've read the documentation here: http://dev.mysql.com/doc/refman/5.1/en/time-zone-support.html It says to set: default-time-zone='timezone' in an option file. However, I've googled for several different terms and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: How to do use C-x k to kill an Emacs buffer opened in server mode? I use windows batch file to open files in an already-running instance of Emacs using emacsclientw.exe. However, any file opened that way is opened in server mode, which means that I have to use C-x # to kill it, instead of the usual C-x k. How do I...
{ "language": "en", "url": "https://stackoverflow.com/questions/437714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: High-quality PDF to Word conversion in PHP? What's the best way of converting PDF docs to Microsoft Word format in PHP? This can be either as a PHP script or calling a (Linux) executable (with proc_open()). It just needs to be relatively fast and produce quality Word documents (in 97/2000/2003 format). Commercial ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Visual Studio designer moving controls and adding grid columns when form is opened The first time I try to open a particular form many of the controls (those with anchors on the right side and/or the bottom) are shifted and my grids automatically regain all the columns from their datasource which (the columns) I had...
{ "language": "en", "url": "https://stackoverflow.com/questions/437720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Are there canonical-forms for database queries? Say I want to make an "Optimized query generator". Basically a SQL query optimizer that is a lot better than what can be put in an SQL server based on time/space limitations. It would take a query and DB stats as input and generate an SQL query tailored for the target ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Recursive File Search in .net I need to search a drive (C:, D: etc) for a partuicular file type (extension like .xml, .csv, .xls). How do I preform a recursive search to loop all directories and inner directories and return the full path of where the file(s) are? or where can I get information on this? VB.NET or C# ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Possible Encoding Issue Reading HTM File using .Net Streamreader I have an HTML file with a ® (copyright) and ™ (trademark) symbol in the text. These are just two among many other symbols. When I read the html file into a literal control it converts the symbols to something else. The copyright symbol converts to � (...
{ "language": "en", "url": "https://stackoverflow.com/questions/437738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# Run Function when User Exits Is there any way to call a function in C# when the user exists the application? I'm using Visual C# 2008 Express edition. Thanks. A: It's a windows forms applications, isn't it? You can use this event: System.Windows.Forms.Application.ApplicationExit += ... A: I've never tried it s...
{ "language": "en", "url": "https://stackoverflow.com/questions/437751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Modifying Database IDs from Rails Console? I have a small database and have been adding entries through a Rails page. I "destroyed" one of the entries and now my sequence of IDs are skipping by one. For example, I now have 42 then 44, instead of the obvious: 42, 43, 44. I was wondering if there was a way to edit the...
{ "language": "en", "url": "https://stackoverflow.com/questions/437753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How do I stop stacktraces truncating in logs Lots of times in Java logs I'll get something like: Caused by: java.sql.BatchUpdateException: failed batch at org.hsqldb.jdbc.jdbcStatement.executeBatch(jdbcStatement.java:1102) at org.hsqldb.jdbc.jdbcPreparedStatement.executeBatch(jdbcPreparedStatement.java:514) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "88" }
Q: Where does Rails store data created by saving activerecord objects during tests? Where does Rails store data created by saving activerecord objects during tests? I thought I knew the answer to that question: obviously in the _test database. But it looks like this is not true! I used this system to test what's happen...
{ "language": "en", "url": "https://stackoverflow.com/questions/437760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: MSBuild or NAnt or Rake tasks for Wise Installation Studio Does anyone know of any MSBuild or NAnt tasks for controlling Wise Installation Studio? I know, I should probably just use WiX but my current project is already in Wise and all I need to automate is updating of a product code, the upgrade section and a few ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Bind child Properties to DataGridView Is there a way to bind the child properties of an object to datagridview? Here's my code: public class Person { private string id; private string name; private Address homeAddr; public string ID { get { return id; } set { id = value; } } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Caching a PHP script for the rest of the day How can I make a PHP script cache-friendly to our private reverse proxy (Squid)? I would like it to stay cached for the rest of the day. In other words, the page's last modification is 00:00 today and it will expire at 00:00 tomorrow. What are the minimum required HTTP h...
{ "language": "en", "url": "https://stackoverflow.com/questions/437769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Memcached best practices - small objects and lots of keys or big objects and few keys? I use memcached to store the integer result of a complex calculation. I've got hundreds of integer objects that I could cache! Should I cache them under a single key in a more complex object or should I use hundreds of different k...
{ "language": "en", "url": "https://stackoverflow.com/questions/437773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Is there a way to "use" a single file that in turn uses multiple others in Perl? I'd like to create several modules that will be used in nearly all scripts and modules in my project. These could be used in each of my scripts like so: #!/usr/bin/perl use Foo::Bar; use Foo::Baz; use Foo::Qux; use Foo::Quux; # Poten...
{ "language": "en", "url": "https://stackoverflow.com/questions/437785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Google App Engine - Importing my own source modules (multiple files) I am writing a GAE application and am having some difficulty with the following problem. I've created multiple python files (say a.py and b.py) which are both stored in the same folder. I am able to call code in a.py or b.py by mapping URL's to th...
{ "language": "en", "url": "https://stackoverflow.com/questions/437791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: CouchDB - .NET or Mono Equivalent Technology Is there any active "document-based" database projects using .NET or Mono? Something similar to CouchDB, SimpleDB, LotusNotes, etc... Prefer open source. I figure the JScript.NET technology could be used for the Map and Reduce functions over stored JSON documents. A: Hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/437797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to portably convert a string into an uncommon integer type? Some background: If I wanted to use for, for instance, scanf() to convert a string into a standard integer type, like uint16_t, I’d use SCNu16 from <inttypes.h>, like this: #include <stdio.h> #include <inttypes.h> uint16_t x; char *xs = "17"; sscanf(xs,...
{ "language": "en", "url": "https://stackoverflow.com/questions/437802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: sp_helptext permission I need to give sp_helptext permission to the developers so that they can check the store procedures. Can somebody please, let me know how can i do it. Thanks, Christine A: I think grant execute on sp_helptext is totally the wrong approach. As stated here by Jesus Lopez, if you want to give a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Scripting engine host for applications We have an application which at certain times needs to execute 'tasks' in order to do some work. These tasks currently are just commands (read: dodgy VB scripts) being fired off and then monitoring the process for completion or aborting if it 'times out', however we don't have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/437808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Behaviour of printf when printing a %d without supplying variable name I've just encountered a weird problem, I'm trying to printf an integer variable, but I forgot to specify the variable name, i.e. printf("%d"); instead of printf("%d", integerName); Surprisingly the program compiles, there is output and it is no...
{ "language": "en", "url": "https://stackoverflow.com/questions/437816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: jQuery, attribute filter selectors and finding out exactly _which_ element was clicked I have this jQuery which works fine $("li[id^='shop_id']").click( function () { alert("I clicked on id ??"); }); The above will work if any list element with an id beginging with 'shop_id' is clicked (i.e 'shop_id_1', 'shop_...
{ "language": "en", "url": "https://stackoverflow.com/questions/437827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: COM object in C# VS2008: Error loading type library/DLL I am trying to reference a third party COM DLL from a Visual Studio 2008 project (.NET 3.5 SP1) on Vista Ultimate. I ran the setup for the COM component, and then discovered that it was not the right setup. So I uninstalled and ran the correct install. After ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/437833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }