text
string
meta
dict
Q: How do I start PowerShell from Windows Explorer? Is there a way to start PowerShell in a specific folder from Windows Explorer, e.g. to right-click in a folder and have an option like "Open PowerShell in this Folder"? It's really annoying to have to change directories to my project folder the first time I run MSBuil...
{ "language": "en", "url": "https://stackoverflow.com/questions/183901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "296" }
Q: How do I determine an image loaded successfully from a URI in Silverlight 2.0 (RC0)? In the following code below: Image img = new Image(); img.Source = new BitmapImage(new Uri("http://someURL/somefilename.jpg", UriKind.Absolute)); how can I determine if the image successfully loaded (when there's a valid URI)? i.e....
{ "language": "en", "url": "https://stackoverflow.com/questions/183904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I convert Unicode escape sequences to Unicode characters in a .NET string? Say you've loaded a text file into a string, and you'd like to convert all Unicode escapes into actual Unicode characters inside of the string. Example: "The following is the top half of an integral character in Unicode '\u2320', and...
{ "language": "en", "url": "https://stackoverflow.com/questions/183907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: How do I get the key values from $_POST? echo $_POST["name"]; //returns the value a user typed into the "name" field I would like to be able to also return the text of the key. In this example, I want to return the text "name". Can I do this? A: @Tim: there was a ) missing. so it should be: while( list( $field, $v...
{ "language": "en", "url": "https://stackoverflow.com/questions/183914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Rewrite all queries to not need the .php extension using a mod_rewrite RewriteRule I'd like all queries like http://mysite.com/something/otherthing?foo=bar&x=y to be rewritten as http://mysite.com/something/otherthing.php?foo=bar&x=y In other words, just make the .php extension optional, universally. A: I would d...
{ "language": "en", "url": "https://stackoverflow.com/questions/183921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Compiler fails converting a constrained generic type I have a class that has a Generic type "G" In my class model i have public class DetailElement : ElementDefinition Let's say i have a method like this public void DoSomething<G>(G generic) where G : ElementDefinition { if (...
{ "language": "en", "url": "https://stackoverflow.com/questions/183923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What Win32 API can be used to find the process that has a given file open? If I read or write to a file and receive a 33 or 32 error, I would like to log a message containing the name of the other process(es) that have the file opened. There must be a Win32 API I could use to get this info. Process Explorer displays...
{ "language": "en", "url": "https://stackoverflow.com/questions/183925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to let PHP to create subdomain automatically for each user? How do I create subdomain like http://user.mywebsite.example? Do I have to access .htaccess somehow? Is it actually simply possible to create it via pure PHP code or I need to use some external script-server side language? To those who answered: Well, t...
{ "language": "en", "url": "https://stackoverflow.com/questions/183928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "176" }
Q: Why are my PHP sessions dying? And why can't I restore them? I have an app using PHP and the PayPal API. The basic way it works to get a payment is that you do a web service call to PayPal to get a token and then do a browser redirect to PayPal with that token for the user to pay. After the payment details have been...
{ "language": "en", "url": "https://stackoverflow.com/questions/183932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Add ScriptManager to Page Programmatically? I am developing a WebPart (it will be used in a SharePoint environment, although it does not use the Object Model) that I want to expose AJAX functionality in. Because of the nature of the environment, Adding the Script Manager directly to the page is not an option, and s...
{ "language": "en", "url": "https://stackoverflow.com/questions/183950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: How to get Visual Studio 2008 to edit SSRS 2005 Report Projects w/o Installing SQL Business Intelligence Development Studio 2005? I'm trying to determine how to open/edit existing SQL Server Reporting Services (SSRS) 2005 report projects (.rptproj) and reports (.rdl) with Visual Studio 2008, without having to instal...
{ "language": "en", "url": "https://stackoverflow.com/questions/183953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: What is the Oracle KGL SIMULATOR? What is this thing called a KGL SIMULATOR and how can its memory utilisation be managed by application developers? The background to the question is that I'm occasionally getting errors like the following and would like to get a general understanding of what is using this heap-space...
{ "language": "en", "url": "https://stackoverflow.com/questions/183963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does the Microsoft JSON object serialization differ from the "normal" serialization? I recall hearing that the way Microsoft had to implement the JSON serialization for their AJAX framework was different than most other libraries out there. Is this true? And, if so, how is it different? A: I'm not sure about anythi...
{ "language": "en", "url": "https://stackoverflow.com/questions/183986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Setting a data breakpoint in Visual Studio 2005 on the address of a dereferenced pointer I wonder if there's a way to do the following: I have a structure containing a member which is a pointer to a block of memory allocated by the kernel when I pass the structure to an API function (the structure is a WAVEHDR, the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/183991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Groovy: what's the purpose of "def" in "def x = 0"? In the following piece of code (taken from the Groovy Semantics Manual page), why prefix the assignment with the keyword def? def x = 0 def y = 5 while ( y-- > 0 ) { println "" + x + " " + y x++ } assert x == 5 The def keyword can be removed, and this sn...
{ "language": "en", "url": "https://stackoverflow.com/questions/184002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "192" }
Q: How can I do an indexOf() in Lotus Notes Formula language (@ commands)? I can't find this anywhere in the Domino Designer help. It seems so straightforward! All I need to do is find the position of a character in a string. A: You could use @Left or @Leftback. I think in this case they work the same. src:= {your fie...
{ "language": "en", "url": "https://stackoverflow.com/questions/184009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can an XML attribute be the empty string? Can an XML attribute be the empty string? In other words, is <element att="" /> valid XML? A: You can create an empty attribute via attname="" You can create an empty element via <elementName></elementName> or <elementName/> A: It is worth nothing that this is an XM...
{ "language": "en", "url": "https://stackoverflow.com/questions/184014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Best concrete "How-To Manual" on *Managing* Test Driven and/or Agile development? I am looking for an easily digestible book to present to my boss/team. Background info: More and more of our meetings at work involve my boss/team pondering how to implement more "best practices" around here. ("Here" = a very small ...
{ "language": "en", "url": "https://stackoverflow.com/questions/184025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Serialization of objects: no thread state can be involved, right? I am looking hard at the basic principles of storing the state of an executing program to disk, and bringing it back in again. In the current design that we have, each object (which is a C-level thingy with function pointer lists, kind of low-level h...
{ "language": "en", "url": "https://stackoverflow.com/questions/184027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What are the disadvantages to using a PHP proxy to bypass the same-origin policy for XMLHttpRequest? http://developer.yahoo.com/javascript/howto-proxy.html Are there disadvantages to this technique? The advantage is obvious, that you can use a proxy to get XML or JavaScript on another domain with XMLHttpRequest with...
{ "language": "en", "url": "https://stackoverflow.com/questions/184028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Best practice to pass information between windows.forms What do you do to pass information between forms? Forward is straight forward (sorry) using Properties or maybe parameters in a New() or DoStuff() method, but what about sending something back when the user is done with the second form? (IE. ID of the item se...
{ "language": "en", "url": "https://stackoverflow.com/questions/184034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Framework/Language for new web 2.0 sites (2008 and 2009) I know I'll get a thousand "Depends on what you're trying to do" answers, but seriously, there really is no solid information about this online yet. Here are my assumptions - I think they're similar for alot of people right now: * *It is now October 2008. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/184049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Eclipse PDT and .yml file, cannot open? I am using Symphony framework and I have the default sandbox inside the Eclipse IDE. When I double click schema.yml instead of open in Eclipse it requests Windows to select a program to choose. I am a Visual Studio guy and I do not understand why it doesn't open in Eclipse, wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/184050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Java Application Installers I'm not looking for java-web-start, I'm looking for a thick-client application installation toolkit. I've got a stand-alone application that consists of several files (jar files, data files, etc) and would need to do some pretty standard installation tasks, like asking the user for targe...
{ "language": "en", "url": "https://stackoverflow.com/questions/184060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Code coverage tools for VS 2008 We're getting our feet wet with unit testing in VS 2008 Professional Edition and have hit what might be a pretty large snag: there appears to be no way to determine code coverage in this particular VS edition. It seems that this is something only available in VS Team System Developmen...
{ "language": "en", "url": "https://stackoverflow.com/questions/184063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to run classic ASP scripts under IIS 5.1 (WinXP Pro) alongside .NET & CF? I'm running into a problem setting up my development environment. I've been working on ColdFusion and .NET applications up until recently I haven't needed to touch IIS. Now, I have to set up a classic ASP application for some one-off work....
{ "language": "en", "url": "https://stackoverflow.com/questions/184066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: When, if ever, is "number of lines of code" a useful metric? Some people claim that code's worst enemy is its size, and I tend to agree. Yet every day you keep hearing things like * *I write blah lines of code in a day. *I own x lines of code. *Windows is x million lines of code. Question: When is "#lines of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/184071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: Why doesn't Visual Studio always render my page correctly when debugging locally in fire fox 2.0x? When I debug locally in fire fox 2.0x many times my page won't have the styles added properly or the page will not completely render (the end is seemingly cut off). Sometimes it takes multiple refreshes or shift-refres...
{ "language": "en", "url": "https://stackoverflow.com/questions/184074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to force C# .net app to run only one instance in Windows? Possible Duplicate: What is the correct way to create a single instance application? How to force C# .net app to run only one instance in Windows? A: to force running only one instace of a program in .net (C#) use this code in program.cs file: public ...
{ "language": "en", "url": "https://stackoverflow.com/questions/184084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "77" }
Q: What is the strongest hashing algorithm commonly available today? I'm building a web application and would like to use the strongest hashing algorithm possible for passwords. What are the differences, if any, between sha512, whirlpool, ripemd160 and tiger192,4? Which one would be considered cryptographically stron...
{ "language": "en", "url": "https://stackoverflow.com/questions/184089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What is the best way to navigate duplicate tag definitions in Emacs? Within emacs, what are the best options out there for navigating to a specific function whose name might show up across several different files? Within etags, you are only allowed to cycle through the tags one-at-a-time which could take a while if...
{ "language": "en", "url": "https://stackoverflow.com/questions/184092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Update multiple rows into SQL table Suppose there is a fully populated array of data String[n][3] myData. I want to do this: for (String[] row : myData) { SQL = "update mytable set col3 = row[2] where col1 = row[0] and col2=row[1];" } Obviously I've left a lot out, but I want to express the idea as succinctl...
{ "language": "en", "url": "https://stackoverflow.com/questions/184096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a way to remove unknown event listeners from objects? I want to have a reusable button which can be registered for one of many different callbacks, determined by an external source. When a new callback is set, I want to remove the old. I also want to be able to clear the callback externally at any time. pub...
{ "language": "en", "url": "https://stackoverflow.com/questions/184099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How can I capture single keystrokes in a unix console app without blocking? I have a very simple TCP server written in C. It runs indefinitely, waiting for connections. On Windows, I use select to check for activity on the socket, and if there isn't any, I have the following code to allow me to quit by hitting 'q' o...
{ "language": "en", "url": "https://stackoverflow.com/questions/184108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the optimal length for user password salt? Any salt at all will obviously help when salting and hashing a user's password. Are there any best practices for how long the salt should be? I'll be storing the salt in my user table, so I would like the best tradeoff between storage size and security. Is a rand...
{ "language": "en", "url": "https://stackoverflow.com/questions/184112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "140" }
Q: How does Databind consume a DataReader If I have a control on a page that has its Datasource set to a DataReader, does that control consume the reader at the time the Datasource is set, or does the datareader continue to exist until Databind has been executed? What actually happens under the covers when Databind is...
{ "language": "en", "url": "https://stackoverflow.com/questions/184125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: "Unix shell"-alike script under Windows I need some help from the shell-script gurus out there. I have a .txt file (log) that traces the IP addresses of clients on several lines, in a format similar to this one: Line1 - Client IP [192.168.0.1] Other data Line2 - Client IP [192.168.0.2] Other data Line3 - Client IP [...
{ "language": "en", "url": "https://stackoverflow.com/questions/184132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CountDownLatch vs. Semaphore Is there any advantage of using java.util.concurrent.CountdownLatch instead of java.util.concurrent.Semaphore? As far as I can tell the following fragments are almost equivalent: 1. Semaphore final Semaphore sem = new Semaphore(0); for (int i = 0; i < num_threads; ++ i) { Thread t = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/184147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "110" }
Q: Useful Developer Resources in Second Life Second Life is fun to play with, and some developers are creating content there, but I was wondering what useful resources (if any) are available in Second Life for professional software developers. * *Discussion groups *Education/training *Vendor support *Development-...
{ "language": "en", "url": "https://stackoverflow.com/questions/184153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Using "top" in Linux as semi-permanent instrumentation I'm trying to find the best way to use 'top' as semi-permanent instrumentation in the development of a box running embedded Linux. (The instrumentation will be removed from the final-test and production releases.) My first pass is to simply add this to init.d: t...
{ "language": "en", "url": "https://stackoverflow.com/questions/184162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What "formula" do you use to evaluate open-source communities? One problem I have with open-source is not often the product or documentation, but the level of community involvement and support. Response time for some questions on official forums can take more than a week, which can honestly make a big difference whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/184171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Ruby: How to post a file via HTTP as multipart/form-data? I want to do an HTTP POST that looks like an HMTL form posted from a browser. Specifically, post some text fields and a file field. Posting text fields is straightforward, there's an example right there in the net/http rdocs, but I can't figure out how to pos...
{ "language": "en", "url": "https://stackoverflow.com/questions/184178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "126" }
Q: How do I check out a file from perforce in python? I would like to write some scripts in python that do some automated changes to source code. If the script determines it needs to change the file I would like to first check it out of perforce. I don't care about checking in because I will always want to build and te...
{ "language": "en", "url": "https://stackoverflow.com/questions/184187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Seating plan software recommendations (does such a beast even exist?) I'm getting married soon and am busy with the seating plan, and am running into the usual issues of who sits where: X and Y must sit together, but A and B cannot stand each other etc. The numbers I'm dealing with aren't huge (so the manual option ...
{ "language": "en", "url": "https://stackoverflow.com/questions/184195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Getting started with Hessian I have a new project that needs a good binary protocol. I was thinking of using Hessian, unless anyone has any better ideas. I was reading through some of their documentation and it's not as straightforward as I thought, so I have a couple of quick questions. The home page has a section ...
{ "language": "en", "url": "https://stackoverflow.com/questions/184199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to change SharePoint extended web application's web.config file Using the SharePoint API, how can I modify an extended webapp web.config file? I have to do some changes in this file to specify the connection string, membershipprovider, etc... for using Forms Authentication. Currently, I can change the "master" w...
{ "language": "en", "url": "https://stackoverflow.com/questions/184204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Switching on a string/implementing button actions Full disclaimer: I'm a CS student, and this question is related to a recently assigned Java program for Object-Oriented Programming. Although we've done some console stuff, this is the first time we've worked with a GUI and Swing or Awt. We were given some code that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/184216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Converting registry access to db calls from MFC Feature Pack We may start converting an old VS2003 MFC project to use the fancy new features provided by the MFC Feature Pack and VS2008. Several of the new UI controls would be very nice except for one thing - they automatically save their information to the registry....
{ "language": "en", "url": "https://stackoverflow.com/questions/184253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Type 'System.Web.UI.WebControls.SessionParameter' does not have a public property named 'DbType' I am using a Session Parameter on an ObjectDataSource. It works fine on the local development machine but I get this error after copying the website to the production server: Type 'System.Web.UI.WebControls.SessionParame...
{ "language": "en", "url": "https://stackoverflow.com/questions/184254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using separate TFS projects for source control and work item tracking, is this a good thing? I have a client who is using one TFS project just for source control only and now wants to manage work items in a totally different TFS project, using a different process template, and intends to link changesets to work item...
{ "language": "en", "url": "https://stackoverflow.com/questions/184257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What system do you use to encrypt files for a group of people (OS agnostic prefered)? Say you have a bunch of files. Say you can store meta data to these files. Say, one of these meta attributes were called "encryption" Say everyone was allowed to look at these files, but since they are encrypted, only people who kn...
{ "language": "en", "url": "https://stackoverflow.com/questions/184265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What exactly does the word Patch mean when referring to 'submitting a patch'? What exactly does the word patch mean when referring to 'submitting a patch'? I've seen this used a lot, especially in the open source world. What what does it mean and what exactly is involved in submitting a patch? A: Richard Jones, a d...
{ "language": "en", "url": "https://stackoverflow.com/questions/184272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How can jsessionID be suppressed on OC4J? I'm deploying a JSF (myfaces, restfaces, and richfaces) app to OC4J. I don't want the jsessionid to appear in the status bar or the URL address. I have managed to suppress it in almost all cases. The one case that I still have problems with is when the site is first visited ...
{ "language": "en", "url": "https://stackoverflow.com/questions/184289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WPF Routed Events Across Element Tree Branches I am wondering what the correct mechanism to enable communication between controls in WPF is. My goal is to not use conventional events and have to manually wire them up. The default behavior of routed commands (tunneling, bubbling) seems to be along the right lines bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/184292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use System.IO.Compression to read/write ZIP files? I know there are libraries out there for working with ZIP files. And, you can alternatively use the functionality built into Windows for working ZIP files. But, I'm wondering if anyone has worked out how to use the tools built into the System.IO.Compression n...
{ "language": "en", "url": "https://stackoverflow.com/questions/184309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How to make Jetty dynamically load "static" pages I am building Java web applications, and I hate the traditional "code-compile-deploy-test" cycle. I want to type in one tiny change, then see the result INSTANTLY, without having to compile and deploy. Fortunately, Jetty is great for this. It is a pure-java web serve...
{ "language": "en", "url": "https://stackoverflow.com/questions/184312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Regex failing on right parens I have this .NET regex: ^(?<prefix>("[^"]*"))\s(?<attrgroup>(\([^\)]*\)))\s(?<suffix>("[^"]*"))$ It properly matches the following strings: "some prefix" ("attribute 1" "value 1") "some suffix" "some prefix" ("attribute 1" "value 1" "attribute 2" "value 2") "some suffix" It fails on.....
{ "language": "en", "url": "https://stackoverflow.com/questions/184313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can clone VM be application backup plan? I am application developer and don't know much about virtual machine(VM). however, our application is resided on a VM. frequent patch need be apply to fix/update this application. For diaster recovery, It was suggest to backup every thing on the server. so, once server is re...
{ "language": "en", "url": "https://stackoverflow.com/questions/184319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the difference between Obfuscation, Hashing, and Encryption? What is the difference between Obfuscation, Hashing, and Encryption? Here is my understanding: * *Hashing is a one-way algorithm; cannot be reversed *Obfuscation is similar to encryption but doesn't require any "secret" to understand (ROT13...
{ "language": "en", "url": "https://stackoverflow.com/questions/184328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Vista Window Focus Problem I have an application that manages patient demographic information. Along with this data a user can scan a picture of a patient and assign that picture to a patient. When the user clicks the scan button a separate application is opened as a dialog in order to scan the image. When running t...
{ "language": "en", "url": "https://stackoverflow.com/questions/184340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the purpose of sequental uniqueidentifier in PK of MS SQL? I know that primary keys based on Guids do not have the best performance (due to the fragmentation), but they are globally unique and allow replication scenarios. Integral identifiers, on the other side, have greater performance at the cost of scalabi...
{ "language": "en", "url": "https://stackoverflow.com/questions/184359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Multiple users XDebug and PHP Debugging How do you setup a multi-developer XDebug PHP environment? I have the following setup: * *I have a linux machine with Apache and Xdebug loaded and a php.ini file that I think is correct. *I found a python proxy script that I'm using to proxy the calls from the PDT Eclipse...
{ "language": "en", "url": "https://stackoverflow.com/questions/184365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What is the best HTML Rendering Engine to embed in an application? At the moment, our application uses the Trident Win32 component, but we want to move away from that for a few reasons, chief among them being our desire to go cross-platform. We're looking at WebKit and Gecko, but I'd love to get some feedback before...
{ "language": "en", "url": "https://stackoverflow.com/questions/184373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Upsizing a split Access database I need to upsize a split Access database, i.e., one that's currently split between tow mdb files, a front-end and back-end. I see many webpages that in essence say, "run the Upsizing Wizard." My first, very basic question: Should I be running this wizard in my front-end mdb or my bac...
{ "language": "en", "url": "https://stackoverflow.com/questions/184406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: NSAutoreleasePool in NSOperation main? The documentation for +[NSThread detachNewThreadSelector:toTarget:withObject:] says: For non garbage-collected applications, the method aSelector is responsible for setting up an autorelease pool for the newly detached thread and freeing that pool before it exits. My ques...
{ "language": "en", "url": "https://stackoverflow.com/questions/184409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Execute action for automatically unchecked button in Delphi I have one action I want to perform when a TSpeedButton is pressed and another I want to perform when the same button is "unpressed". I know there's no onunpress event, but is there any easy way for me to get an action to execute when a different button is...
{ "language": "en", "url": "https://stackoverflow.com/questions/184414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Outlook PropertyFrom MAPI Schema Property ID I am looking to get the actual property name from a MAPI schema property. I'm obtaining the MAPI Schema property "http://schemas.microsoft.com/mapi/proptag/0x67AA000B" but I would like to know what field this corresponds to (I.E. Anniversary, BusinessAddress, etc). Any in...
{ "language": "en", "url": "https://stackoverflow.com/questions/184427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Converting XML to plain text - how should I ignore/handle whitespace in the XSLT? I'm trying to convert an XML file into the markup used by dokuwiki, using XSLT. This actually works to some degree, but the indentation in the XSL file is getting inserted into the results. At the moment, I have two choices: abandon ...
{ "language": "en", "url": "https://stackoverflow.com/questions/184431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Tax Service Recommendation for a Rails App? I'm developing a cart that needs to calculate tax and am looking for a 3rd party tax service to handle the calculations. I've used Avalara in another app, but it's somewhat miserable since I have to use the Rjb gem with their java library. Does anyone have a recommendati...
{ "language": "en", "url": "https://stackoverflow.com/questions/184435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Access Alter Table "Allow Zero Length" I'm working with an old Access database (yes, it's very ugly and I hate it). I need to modify some of the columns from a VB app that I'm creating. I have most the modifications setup correctly, but I'm fighting with the fact that modifying a column to text has it default to "...
{ "language": "en", "url": "https://stackoverflow.com/questions/184436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Mate actionscript only version, does it exist? Hey there, I'm looking into using Mate, but the projects I work on do not require the majority of the functionality of the Flex framework. My workmate said that he heard of an Actionscript version, but I can find no information on the main site about this, only that the...
{ "language": "en", "url": "https://stackoverflow.com/questions/184443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: EnumPorts() returns strange error on some machines I maintain an application that uses the win32 EnumPorts() function to help determine the set of serial ports installed on the computer. I have seen cases on some computers where the call to get this information fails with a GetLastError() code of 1722 (RPC server i...
{ "language": "en", "url": "https://stackoverflow.com/questions/184448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there an equivalent to SHA1() in MS-SQL? Converting a couple stored procedures from MySQL to Microsoft SQL server. Everything is going well, except one procedure used the MySQL SHA1() function. I cannot seem to find an equivalent to this in MS-SQL. Does anyone know a valid equivalent for SHA1() on MS-SQL? A: SQL...
{ "language": "en", "url": "https://stackoverflow.com/questions/184456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Multiple DB Updates: Replaces Question: Update multiple rows into SQL table Here's a Code Snippet to update an exam results set. DB structure is as given, but I can submit Stored Procedures for inclusion (Which are a pain to modify, so I save that until the end.) The question: Is there a better way using SQL server ...
{ "language": "en", "url": "https://stackoverflow.com/questions/184471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PowerShell generic collections I have been pushing into the .NET framework in PowerShell, and I have hit something that I don't understand. This works fine: $foo = New-Object "System.Collections.Generic.Dictionary``2[System.String,System.String]" $foo.Add("FOO", "BAR") $foo Key ...
{ "language": "en", "url": "https://stackoverflow.com/questions/184476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: enter multiple variables into table, assigning to each appropriate record I display data into an html table, w/ a drop down box with a list of venues. Each volunteer will be assigned a venue. I envision being able to go down thru the html table and assigning each volunteer a venue. The drop down box contains all the...
{ "language": "en", "url": "https://stackoverflow.com/questions/184482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is an intuitive way to move an XmlNode from one XmlDocument to another? I have two XmlDocuments and I would like to move an XmlNode selected from one of the documents and append it at a particular location in the other document. The naively intuitive approach of simply calling AppendNode(xmlNodeFromDocument1) a...
{ "language": "en", "url": "https://stackoverflow.com/questions/184486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get an image stored as an oracle blob into an Image object I am trying to retrieve an image stored in an oracle blob and place it in a new System.Drawing.Image instance. I know I can write the stream to a temp.bmp file on the disk and read it from there but thats just not l33t enough for me. How do I convert...
{ "language": "en", "url": "https://stackoverflow.com/questions/184489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java Applet, AWT Refresh, issue on Mac OS X 10.4 We have a Java Applet built using AWT. This applet lets you select pictures from your hard drive and upload them to a server. The applet includes a scrollable list of pictures, which works fine in Windows, Linux and Mac OS X 10.5. We launch this applet via Java Web St...
{ "language": "en", "url": "https://stackoverflow.com/questions/184491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: On a unix/linux system how can I learn more about a mylib.a archive? In this particular case I'm trying to discover if a mylib.a file is 32 or 64 bit compatible. I'm familiar with ldd for shared objects (mylib.so) but how do I inspect a regular .a archive? A: $ objdump -G /usr/lib/libz.a In archive /usr/lib/libz.a...
{ "language": "en", "url": "https://stackoverflow.com/questions/184502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Create GUI similar to Windows Explorer using WPF How would you implement a GUI similar to the "My Computer" view in Windows Explorer? In particular the "Icons" view mode. Including the grouping of different item types (as Files Stored on This Computer/Hard Disk Drives/Devices with Removable Storage groups in Windows...
{ "language": "en", "url": "https://stackoverflow.com/questions/184511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ListBox keep selection after losing focus I have a ListBox that when in focus, and when I have an item selected returns a valid SelectedIndex. If I have a valid SelectedIndex and I click on a TextBox on the same Forum, the SelectedIndex now becomes -1. However I want it to keep its SelectedIndex from changing. How w...
{ "language": "en", "url": "https://stackoverflow.com/questions/184522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In what cases do I use malloc and/or new? I see in C++ there are multiple ways to allocate and free data and I understand that when you call malloc you should call free and when you use the new operator you should pair with delete and it is a mistake to mix the two (e.g. Calling free() on something that was created ...
{ "language": "en", "url": "https://stackoverflow.com/questions/184537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "584" }
Q: Fuzzy .png in Flash CS3 PNG images appear "fuzzy" in flash CS3. They are very blocky and appear unanti-aliased (if that is a word) Does anyone have a fix for this? Is there some setting I'm missing? A: Are you loading them into your SWF through a loader? Or are they imported into your library as bitmap symbols? If...
{ "language": "en", "url": "https://stackoverflow.com/questions/184538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How are people using Google App-Engine apps with their own domains? I've been fooling around with the Google App Engine for a few days and I have a little hobby application that I want to write and deploy. However I'd like to set it up so that users are not directly accessing the app via appspot.com. Is hosting it t...
{ "language": "en", "url": "https://stackoverflow.com/questions/184541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: What do I need to do to upgrade an application to the latest Rails version? I am currently using Rails 2.1.0 and want to upgrade to Rails 2.1.1. After issuing the following command gem update rails I suppose that I need to change this line RAILS_GEM_VERSION = '2.1.0' unless defined? RAILS_GEM_VERSION in environm...
{ "language": "en", "url": "https://stackoverflow.com/questions/184550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to monitor MySQL space? I downloaded a VM image of a web application that uses MySQL. How can I monitor its space consumption and know when additional space must be added? A: If only MySQL is available, use the SHOW TABLE STATUS command, and look at the Data_length column for each table, which is in bytes. If y...
{ "language": "en", "url": "https://stackoverflow.com/questions/184560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Checkstyle vs. PMD We are introducing static analysis tools into the build system for our Java product. We are using Maven2 so Checkstyle and PMD integration come for free. However it looks like there is a large overlap in functionality between these two tools, in terms of enforcing basic style rules. Is there a ben...
{ "language": "en", "url": "https://stackoverflow.com/questions/184563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "94" }
Q: ASP.NET: How to convert or HtmlAnchor to static text? i have a repeater that will output a series of items: <asp:repeater ... runat="Server"> <itemtemplate> <a href="<%# GetItemLink(...) %>"><%# GetItemText %></a> <itemtemplate> <asp:repeater> But some items will not have an associated link, so i don't...
{ "language": "en", "url": "https://stackoverflow.com/questions/184570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to append binary values in VBScript If I have two variables containing binary values, how do I append them together as one binary value? For example, if I used WMI to read the registry of two REG_BINARY value, I then want to be able to concatenate the values. VBScript complains of a type mismatch when you try t...
{ "language": "en", "url": "https://stackoverflow.com/questions/184574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: System.NotSupportedException error in compact framework pictureBox control. How do I make a picture button in Compact framework? I'm trying to make a picture button in the compact framework. I made a usercontrol and added a picturebox. I saw you could over ride the text and font for normal windows forms. but don't...
{ "language": "en", "url": "https://stackoverflow.com/questions/184585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there a Perl-compatible regular expression to trim whitespace from both sides of a string? Is there a way to do this in one line? $x =~ s/^\s+//; $x =~ s/\s+$//; In other words, remove all leading and trailing whitespace from a string. A: Funny you should bring this up! I recently read an article analyzing the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/184590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: MINUS in MySQL? I have topics(id*) and tags(id*,name) and a linking table topic_tags(topicFk*,tagFk*). Now I want to select every single topic, that has all of the good tags (a,b,c) but none of the bad tags (d,e,f). How do I do that? A: Assuming your Topic_Tags table is unique, this answers your exact question - bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/184592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Has and belongs to many relationship with multiple databases I have a situation where I have two models, companies and permissions, where companies is in a separate database from my permissions database. This is a has and belongs to many relationship because each company can have many permissions and each permissio...
{ "language": "en", "url": "https://stackoverflow.com/questions/184600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Will reassigning a variable in every iteration of a loop affect performance? Consider the following two ways of writing a loop in Java to see if a list contains a given value: Style 1 boolean found = false; for(int i = 0; i < list.length && !found; i++) { if(list[i] == testVal) found = true; } Style 2 boole...
{ "language": "en", "url": "https://stackoverflow.com/questions/184609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the best comment in source code you have ever encountered? What is the best comment in source code you have ever encountered? A: * ...and don't just declare it volatile and think you've solved * the problem. You young punks think you know what volatile * means... why in my day we had to cast it volatile ...
{ "language": "en", "url": "https://stackoverflow.com/questions/184618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "359" }
Q: Concatenating arbitrary number of rows of strings in mysql (hierarchical query) I have a mysql table with albums. Each album can be a top level album, or a child album of another album. Each album has a foldername which is the name of the folder its pictures are in. Each album also has a field called parent which is...
{ "language": "en", "url": "https://stackoverflow.com/questions/184641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way to copy a list? What is the best way to copy a list? I know the following ways, which one is better? Or is there another way? lst = ['one', 2, 3] lst1 = list(lst) lst2 = lst[:] import copy lst3 = copy.copy(lst) A: I like to do: lst2 = list(lst1) The advantage over lst1[:] is that the same ...
{ "language": "en", "url": "https://stackoverflow.com/questions/184643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "67" }
Q: What is the best way to handle change management? My organization's main project went live on Monday. That was my third day here. Now that I've been here almost a week, I'm tasked with creating a change management plan for the maintenance of the application and preparation for phase 2, which will commence "someday."...
{ "language": "en", "url": "https://stackoverflow.com/questions/184652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: SharePoint Lists vs Database Tables performance * *We are looking to store transactional data in SharePoint lists. The lists will easily grow to 100,000+ items. *How would the query performance be compared with queries on a database table with these columns? Queries: Select by Id Select Where ColumnValue = X Gr...
{ "language": "en", "url": "https://stackoverflow.com/questions/184653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }