text
stringlengths
8
267k
meta
dict
Q: Why does Excel macro work in Excel but not when called from Python? I have an Excel macro that deletes a sheet, copies another sheet and renames it to the same name of the deleted sheet. This works fine when run from Excel, but when I run it by calling the macro from Python I get the following error message: Run-ti...
{ "language": "en", "url": "https://stackoverflow.com/questions/289187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is Maximum Segment Lifetime (MSL) in TCP? We have an home-brewed XMPP server and I was asked what is our server's MSL (Maximum Segment Lifetime). What does it mean and how can I obtain it? Is it something in the Linux /proc TCP settings? A: You can also see a countdown timer for sockets using -o in netstat or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Anyone experience VS2008 (inc SP1) ignoring or losing Breakpoints randomly? Since upgrading to 2008 I and many people here have noticed that randomly VS will no longer step in to code or jump over breakpoints. Its got to the stage where debugging is becoming a real chore. We are running SP1 but noticed problem on 20...
{ "language": "en", "url": "https://stackoverflow.com/questions/289208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why do requests and responses get lost? Even on big-time sites such as Google, I sometimes make a request and the browser just sits there. The hourglass will turn indefinitely until I click again, after which I get a response instantly. So, the response or request is simply getting lost on the internet. As a dev...
{ "language": "en", "url": "https://stackoverflow.com/questions/289210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Updating an associative table in MySQL Below is my (simplified) schema (in MySQL ver. 5.0.51b) and my strategy for updating it. There has got to be a better way. Inserting a new item requires 4 trips to the database and editing/updating an item takes up to 7! items: itemId, itemName categories: catId, catName map: m...
{ "language": "en", "url": "https://stackoverflow.com/questions/289220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Automatically create C# wrapper classes around stored procedures I've inherited a rather large application that really could use some cleanup. There is data access code littered throughout the application. In code behinds, some in business logic classes, some inline in in classic asp pages. What I'd like to do is r...
{ "language": "en", "url": "https://stackoverflow.com/questions/289221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Does Internet Explorer 8 support HTML 5? Is there any HTML5 support in IE8? Is it on the IE8 roadmap? A: IE8's HTML5 support is limited, but Internet Explorer 9 has just been released and has strong support for the new emerging HTML5 technologies. A: IE8 beta 2 supports two APIs from HTML5: cross-document messagi...
{ "language": "en", "url": "https://stackoverflow.com/questions/289225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "138" }
Q: What are the available PHP extensions for TCP Socket Networking? I'm looking for a PHP extension that allows me to connect, bind/listen, send, and receive data on a TCP socket. There is a PEAR package Net_Socket: http://pear.php.net/package/Net_Socket But this would require PEAR to be installed which we wouldn't wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/289231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: error when AppKit framework added in iphone application i want to import in my iphone application, but i know this framework is not available in iphone sdk,but i need to use NSfileWrapper class in this framework, is this class also available in UIKit or others framework available in iphone sdk, thanks A: No, NSFil...
{ "language": "en", "url": "https://stackoverflow.com/questions/289236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to dump data stored in objective-c object (NSArray or NSDictionary) Forgive me for a potentially silly question here, but in other programming languages (scripting ones like PHP or Perl) it is often easy to dump everything contained within a variable. For instance, in PHP there are the var_dump() or print_r() fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/289241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: Term for "find, remove and return an element" in a set? Title says it mostly. I want to add a simple extension method to the base Dictionary class in C#. At first I was going to name it Pop(TKey key), kind of like the Stack method, but it accepts a key to use for lookup. Then I was going to do Take(TKey key), but it...
{ "language": "en", "url": "https://stackoverflow.com/questions/289255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there a way to not create an explicit EventHandler delegate in Visual Studio? Visual Studio likes to be helpful when typing: Event += by generating code like: Event += new EventHandler(EventClassName_Event); void EventClassName_Event(object sender, EventArgs e) { throw new System.NotImplementedException(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to identify which lines of code participated in a specific execution of a Java program? Suppose that I have a Java program within an IDE (Eclipse in this case). Suppose now that I execute the program and at some point terminate it or it ends naturally. Is there a convenient way to determine which lines executed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to decode base64 (in little endian) with PHP? How can I decode a base64 encoded message in PHP? I know how to use PHP_base64_decode function, but I wanna know how to write little endian part, like the code below, it is base64 code with little endian: (how to write little endian part in php) Original Base64 Conte...
{ "language": "en", "url": "https://stackoverflow.com/questions/289271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: error when import zlib in iOS: symbol(s) not found collect2: ld I have included <zlib.h> in my iphone application and the source code I was mocking up the sample code of Molecules provided by Brad Larson, however, when I build the project, it returns the error as below. Can anyone point out for me whether this is a...
{ "language": "en", "url": "https://stackoverflow.com/questions/289274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Vb6: Selecting a file to later be used via a browse button Here's my code (note that this was given by a friend): Private Sub Browse_Click() Dim textfile As String textfile = Space(255) GetFileNameFromBrowseW Me.hWnd, StrPtr(sSave), 255, StrPtr("c:\"), StrPtr("txt"), StrPtr("Apps (*.txt)" + Chr$(0) +...
{ "language": "en", "url": "https://stackoverflow.com/questions/289276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: strtok and replace a substring in C++ If I have a string "12 23 34 56" What's the easiest way to change it to "\x12 \x23 \x34 \x56"? A: string s = "12 23 34 45"; stringstream str(s), out; int val; while(str >> val) out << "\\x" << val << " "; // note: this puts an extra space at the very end also ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: EC2: can I host an http server there? Does anyone have experience deploying GWT apps to EC2? If I were to install tomcat or apache on a ec2 instance, could I have users connect directly to a url pointing there? Would that be cost effective, or would java hosting services be best? Is there any downside to hosting the...
{ "language": "en", "url": "https://stackoverflow.com/questions/289285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can you combine multiple lists with LINQ? Say I have two lists: var list1 = new int[] {1, 2, 3}; var list2 = new string[] {"a", "b", "c"}; Is it possible to write a LINQ statement that will generate the following list: var result = new []{ new {i = 1, s = "a"}, new {i = 1, s = "b"}, new {i = 1, s = "c"...
{ "language": "en", "url": "https://stackoverflow.com/questions/289307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Output RFC 3339 Timestamp in Java I want to output a timestamp with a PST offset (e.g., 2008-11-13T13:23:30-08:00). java.util.SimpleDateFormat does not seem to output timezone offsets in the hour:minute format, it excludes the colon. Is there a simple way to get that timestamp in Java? // I want 2008-11-13T12:23:30-...
{ "language": "en", "url": "https://stackoverflow.com/questions/289311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: Error when installing Visual Studio 2005 on Vista I am getting the following error when trying to install Visual Studio 2005 on my 64bit, Vista computer: "1305.Error reading from file C:\Program Files (x86)\Microsoft Visual Studio 8\Microsoft Visual Studio 2005 Standard Edition - ENU\SITSetup.dll" I have s...
{ "language": "en", "url": "https://stackoverflow.com/questions/289314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Background of empty element used by following element in IE In IE6 the paragraph following the empty paragraph is displayed with the background color of the empty paragraph, which I'm guessing is wrong! It works correctly in Firefox, but I haven't checked IE7. Is there a CSS solution to this problem, or do I have t...
{ "language": "en", "url": "https://stackoverflow.com/questions/289315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IIS7 and Authentication problems i've got a stock standard ASP.NET web site, deployed to our development machine (internal machine in our server room). Now, this dev site can be accessed by both INTERNAL and EXTERNAL users. Now, in IIS6 we used to have it so that Anonymous Authentication was turned off and something...
{ "language": "en", "url": "https://stackoverflow.com/questions/289317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Does C1 code coverage analysis exist for Ruby? I'm currently using Rcov to get C0 code coverage analysis for a rails project that I'm working on. However, those results are practically meaningless- I have 100% coverage according to rcov (as it only covers C0 analysis) and I've barely written half the test cases for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: get VC debugger to show more frames in a stack overflow I was remote debugging a stack overflow from a recursive function. The Visual Studio IDE only showed the first 1,000 frames (all the same function), but I needed to go up further too see what the cause was. Does anybody know how to get VS to 'move up' in a stac...
{ "language": "en", "url": "https://stackoverflow.com/questions/289324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Solution for "dereferencing `void *' pointer" warning in struct in C? I was trying to create a pseudo super struct to print array of structs. My basic structures are as follows. /* Type 10 Count */ typedef struct _T10CNT { int _cnt[20]; } T10CNT; ... /* Type 20 Count */ typedef struct _T20CNT { long _cnt[...
{ "language": "en", "url": "https://stackoverflow.com/questions/289329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: XSDObjectGen.exe vs XSD.exe Can anyone tell me what is the difference between XSDObjectGen.exe & XSD.exe? Is there any way to make XSDObjectGen.exe work in dot net 2.0? A: The difference is: * *The XML Schema Definition Tool (xsd.exe) is part of the Visual Studio SDK and has basic functionality. *The XSD Sample...
{ "language": "en", "url": "https://stackoverflow.com/questions/289335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Eclipse jump to closing brace What is the keyboard short cut in Eclipse to jump to the closing brace of a scope? A: With Ctrl + Shift + L you can open the "key assist", where you can find all the shortcuts. A: Place the cursor next to an opening or closing brace and punch Ctrl + Shift + P to find the matching brac...
{ "language": "en", "url": "https://stackoverflow.com/questions/289342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "400" }
Q: Using strtok with a std::string I have a string that I would like to tokenize. But the C strtok() function requires my string to be a char*. How can I do this simply? I tried: token = strtok(str.c_str(), " "); which fails because it turns it into a const char*, not a char* A: There is a more elegant solution. Wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/289347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "59" }
Q: How to prioritize future features (enterprise web development) Suppose you're the product manager for an internal enterprise web application that has 2000 users and 7 developers. You have a list of 350 future features, each ranging from 5 to 150 developer days of work. How do you choose what features to work on, and...
{ "language": "en", "url": "https://stackoverflow.com/questions/289348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Problem dealloc'ing memory used by UIImageViews with fairly large image in an UIScrollView I have a large UIScrollView into which I'm placing 3-4 rather large (320x1500 pixels or so) UIImageView image tiles. I'm adding these UIImageViews to the scroll view inside of my NIB files. I have one outlet on my controller...
{ "language": "en", "url": "https://stackoverflow.com/questions/289360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to make a field NULL using MySQL GUI Tools? I'm using the MySQL Query Browser (part of the MySQL GUI Tools) and need to change a field to NULL, but I can't figure out how to do it - if I delete the value it tries to update it to ''. Typing "NULL" makes it try to update to 'NULL' (a string). I know I could just w...
{ "language": "en", "url": "https://stackoverflow.com/questions/289362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "65" }
Q: Is there a fast language that supports portable continuations? I'm looking for a fast language (ie. a language that can be compiled natively to achieve performance not more than 3 or 4 times slower than C), which supports portable continuations. By this I mean a continuation that can be serialized on one computer, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Why does Google App Engine restrict GQL queries? I was reading about App Engine on wikipedia and came across some GQL restrictions: * *JOIN is not supported *can SELECT from at most one table at a time *can put at most 1 column in the WHERE clause What are the advantages of these restrictions? Are these restric...
{ "language": "en", "url": "https://stackoverflow.com/questions/289375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Need assistance with diagnosing SOAP packet problem with Amazon S3 We are building an application which stores data in an S3 bucket. However, we are having problems with the PutObject method. Here is the xml packet we are sending out: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.o...
{ "language": "en", "url": "https://stackoverflow.com/questions/289380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Strange issue running infinite while loop in EXE I am facing strange issue on Windows CE: Running 3 EXEs 1)First exe doing some work every 8 minutes unless exit event is signaled. 2)Second exe doing some work every 5 minutes unless exit event signaled. 3)Third exe while loop is running and in while loop it do some w...
{ "language": "en", "url": "https://stackoverflow.com/questions/289381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the difference between request, response and server? What is the difference between request, response and server? A: Request : From Client to Server Response: From Server to Client Server: Receive Request and Send Response Client: Send Request and Receive Response A: A client (web user) makes a Request t...
{ "language": "en", "url": "https://stackoverflow.com/questions/289383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: What happens to namespace? when a dll is created out of the source code in a given namespaces a,b with functions a::open,b::open will there be any conflict in calling these function. A: No, because the function names exported from the DLLs are the C++ mangled names. The mangled names include the namespace, so ther...
{ "language": "en", "url": "https://stackoverflow.com/questions/289389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How are DLLs created out of C++ source, and how are they used in other sources? How are DLLs created out of C++ source code, and how are they used in other sources? A: The DLL is a 'Dynamic Link Library' which works a lot like other libraries but is not linked with your executable application. At run time you can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Effects of branch prediction on performance? When I'm writing some tight loop that needs to work fast I am often bothered by thoughts about how the processor branch prediction is going to behave. For instance I try my best to avoid having an if statement in the most inner loop, especially one with a result which is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Full-height CSS layout, with multiple columns I have a layout that is working, but it has one very annoying problem.. when the content is taller than the screen, the background stops. This is the desired layout in bad-ASCII-art format: _____________________ _ | | long |logo| | | | content | | | | ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the best way to integrate Designers using Dreamweaver with Visual Studio C# developers? I know about code-behind files, but what is the best real-world way of Designers that are using DreamWeaver or other Design Tools to work with Visual Studio programmers? For example, say you have a basic website with use...
{ "language": "en", "url": "https://stackoverflow.com/questions/289413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: MQRA:MC:Warning:createConnection API used w/o username, password for Application Auth|#] Does anyone know why this error occurs and how to resolve it? It only seems to occur when we hit an exception. [#|2008-11-14T14:49:12.482+0800|WARNING|sun-appserver-pe8.2|javax.enterprise.system.stream.err|_ThreadID=12;| ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET HttpModule - guaranteed execution of pre- and post- handler code? Basically, I'm trying to write the following (pseudocode) in an ASP.NET HttpModule: *pre-code* try { handler.ProcessRequest(...) } catch (Exception) { *error-code* } finally { *post-code* } I've found that I can hook into HttpModule.PreExecut...
{ "language": "en", "url": "https://stackoverflow.com/questions/289432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Firefox - designMode: disable image resizing handles How can I prevent the user from being able to resize an image in designMode? (disable the handles when image is clicked) A: I think you'll find this much more acceptable. Seems to work in Firefox but I'm not sure about other browsers: document.execCommand("enabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/289433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How to make a Java thread wait for another thread's output? I'm making a Java application with an application-logic-thread and a database-access-thread. Both of them persist for the entire lifetime of the application and both need to be running at the same time (one talks to the server, one talks to the user; when t...
{ "language": "en", "url": "https://stackoverflow.com/questions/289434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "135" }
Q: Sql Server 2005 only accessible in ASP.NET 1.1 when I specify protocol and port My company is currently migrating some of their really old db's to sql server 2005. Some legacy apps have problems connecting to the new server. The connection string works in Asp.NET 2.0, probably because it assumes tcp:1433 automatical...
{ "language": "en", "url": "https://stackoverflow.com/questions/289438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot get regular expression work correctly with multiline I have a quite big XML output from an application. I need to process it with my program and then feed it back to the original program. There are pieces in this XML which needs to be filled out our replaced. The interesting part looks like this: <sys:customt...
{ "language": "en", "url": "https://stackoverflow.com/questions/289440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Can I set image as a title to UINavigationBar? Is it possible to set some image as title of Navigation bar? I think NYTimes application used a Navigation bar and title is look like image file (the reason why it's seems UINavigationBar is because they use right button to search). A: I have created a custom category ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "67" }
Q: SVN Reporting in ASP.Net We have a custom project management tool built in ASP,net 3.5 and we use VisualSVN for our version management. However, we are looking a way to report the version changes through the project management tool by integrating VisualSVN with our project management tool, i.e. pretty much similar ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Failed to resolve IP Try as I might, I'm unable to resolve an address to IP. The code snippet is shown below. I keep getting the No such host is known exception, even though I could access google with my browser (The DNS server is almost certainly working). I'm however behind company's firewall. try { foreach (IP...
{ "language": "en", "url": "https://stackoverflow.com/questions/289452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Visual Studio code formatting I've been using Visual Studio as my main IDE for a while now (I still use Emacs for some personal projects, though). I like the way Emacs formats C/C++ code and I'd like to convince Visual Studio use similar conventions for C# code. For instance, in Emacs, a C function call looks like: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to trace COM/ActiveX dependencies? Is there anything "out there", similar to Dependency Walker, which walks and reports the dependencies of an ActiveX/COM object? A: Two useful tools you can try: Depends Process Explorer
{ "language": "en", "url": "https://stackoverflow.com/questions/289466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Scraping largest block of text from HTML document I am working on an algorithm that will try to pick out, given an HTML file, what it thinks is the parent element that most likely contains the majority of the page's content text. For example, it would pick the div "content" in the following HTML: <html> <body> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ASP.NET logic / connection pooling and error handing I just uploaded my first ASP.NET (as part of my learning of vb.net) and got into awful mess with the connection pooling (funny things happen when there are more than 1 user of your web site) all sorted now by better use of the try catch statements (well the idea w...
{ "language": "en", "url": "https://stackoverflow.com/questions/289472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to perform page control? I mean what the most efficient way to get information about the quantity of your page's items and make sql query with LIMIT that you need. or I should get all items and then crop array with php functions? now I do 2 queries: first to count all items and second to get items that I need wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/289475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: T4 not working in Visual Studio 2008 I have two machines setup to run Visual Studio 2008 (SP1) & NET Framework 3.5 (SP1). If I create a .tt file in a console appliaction on machine #1 it automatically creates the sub .cs file for me, however if I do the exact same on machine #2 then no sub .cs file is created. I hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/289483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Connecting to SQL with ANONYMOUS LOGON since switch to IIS7 I've recently had my PC upgraded to Vista, which means it includes IIS7. The problem is that the ASP.NET website we're working on doesn't work anymore. I get an error because the application is trying to connect to the SQL Server with NT AUTHORITY/ANONYMOUS...
{ "language": "en", "url": "https://stackoverflow.com/questions/289493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Streaming and Linq Blobs I have an object I am using to store document meta data into a table. The body text of the document can be very large, sometimes > 2GB so I will be storing it into a nvarchar(max) field in SQL 2008. I'll use SQL 2008 later to index that field. I won't be using filestreams because they are...
{ "language": "en", "url": "https://stackoverflow.com/questions/289496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Running Batch File in background when windows boots up How do I run a batch file each time windows boots up also I need to run it in the back ground(without that command window getting displayed)? I use Windows Xp. My actuall requirement is I want to start the Tracd server using the command line commands whenever Wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/289498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Did you ever get an unexpected answer during interview? When interviewing for a programming position, did you ever get an answer to your question that you didn't quite expect? The answer could've been quite smart that you didn't even know or it could've been a dumbest answer you never expected. I'm expecting technic...
{ "language": "en", "url": "https://stackoverflow.com/questions/289502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to define a default constructor by code using StructureMap? I can't figure out how to define the default constructor (when it exists overloads) for a type in StructureMap (version 2.5) by code. I want to get an instance of a service and the container has to inject a Linq2Sql data context instance into it. I wrot...
{ "language": "en", "url": "https://stackoverflow.com/questions/289512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Javascript regex to match a person's height I need a javascript regex pattern to match a person's height to check if the input is valid. Here are some sample input: 5' 9" 6' 5'8" Any ideas? A: If you want to make sure that no one mucks around with it, you could limit it to sensible ranges, eg: 3' to 7'11'' /^(3-7)'...
{ "language": "en", "url": "https://stackoverflow.com/questions/289513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: py2exe setup.py with icons How do I make icons for my exe file when compiling my Python program? A: I was searching for this a while ago, and found this: http://www.mail-archive.com/pygame-users@seul.org/msg05619.html Quote from above link: The setup.py File: PY_PROG = 'trek10.py' APP_NAME = 'Trek_Game' cfg = { 'n...
{ "language": "en", "url": "https://stackoverflow.com/questions/289518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Use Oracle Exception I want to use Oracle exception to handle errors that might happen in the code below. If a user provides the book ID and/or employee ID that doesn't exist in the database, NO_DATA_FOUND exception will be raised. Thus, how can I know which statement raises this exception. CREATE OR REPLACE PROCED...
{ "language": "en", "url": "https://stackoverflow.com/questions/289523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I delete all directories matching a pattern using SVN? I have checked in a huge Eclipse project from my desktop computer to the SVN server. I did it using the command line. However, by mistake I committed all the compiled classes also in the server. For every plug-in, there is a directory /bin/ that contain...
{ "language": "en", "url": "https://stackoverflow.com/questions/289527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is this Base64 Look-alike? I am new to decoding techniques and have just learnt about base64, sha-1, md5 and a few others yesterday. I have been trying to figure out what "orkut" worms actually contain. I was attacked by many orkut spammers and hackers in the past few days, and there is a similarity in the UR...
{ "language": "en", "url": "https://stackoverflow.com/questions/289529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: A cool algorithm to check a Sudoku field? Does anyone know a simple algorithm to check if a Sudoku-Configuration is valid? The simplest algorithm I came up with is (for a board of size n) in Pseudocode for each row for each number k in 1..n if k is not in the row (using another for-loop) return not-a-sol...
{ "language": "en", "url": "https://stackoverflow.com/questions/289537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Use DBMS_CRYPTO to encrypt data I'm currently using Oracle 10g. I use DBMS_CRYPTO package to encrypt the passwords of users for login. In order to encrypt or decrypt the data, I must have a key. So where should I put the key in order to hide it from other developers, or is there another way to encrypt data without ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Class layout in C++: Why are members sometimes ordered? The C++ standard dictates that member variables inside a single access section must be layed out in memory in the same order they were declared in. At the same time, compilers are free to choose the mutual ordering of the access sections themselves. This free...
{ "language": "en", "url": "https://stackoverflow.com/questions/289559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What is LTS (Long Term Support)? I looked it up in Wikipedia, and there is only one line there. Anyone have a more detailed description for it? Ubuntu releases their OS with this notation, but I was unable to find a detailed description over what it means/includes. I've already read the Ubuntu notation but need a mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/289565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Can C++ access sections be interleaved? The C++ standard imposes an ordering on class member variables in memory. It says that the addresses of member variables have to increase in the order of declaration, but only inside one access section. Very specifically, this does not seem to prevent compilers from laying o...
{ "language": "en", "url": "https://stackoverflow.com/questions/289568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: USB HID pen requirements Is there a USB HID pen driver in Windows Vista? If so, what are the requirements for USB descriptors, in order to make Windows Vista recognize the pen and load the pen driver? What I'm searching for is the pen equivalent to the HID mouse driver, HID keyboard driver and mass storage driver. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Memory Usage on convenience method vs init method Recently when I looked into iPhone memory management, I tried to compare the convenience method and init method on the same object. For example, I have UIImageView where it displays a downloaded NSData: Convenience method: imageView.image = [UIImage imageWithData:[do...
{ "language": "en", "url": "https://stackoverflow.com/questions/289578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Best object relation mapping framework to use with .net and mono? I'm doing some research for my end of degree project: a multiplattform application developed using .net3.5 and mono2.0 I need some opinion about what you people think is the best Object Relational Mapping framework which will also run with mono. Addi...
{ "language": "en", "url": "https://stackoverflow.com/questions/289583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Version of Apache installed on a Debian machine How can I check which version of Apache is installed on a Debian machine? Is there a command for doing this? A: For me this works on Debian 6 (Squeeze): Linux www809 2.6.26-2-xen-686 #1 SMP Wed Sep 21 09:56:47 UTC 2011 i686 GNU/Linux I had to go to the right path: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "328" }
Q: Connecting to an asmx webservice with WCF through a proxy Sorry answer found while typing I am trying to connect to an external webservice that requires username/password authentication through a proxy. I am using Visual Studio Express 2008 to generate a service reference * *I have connected to the same webservi...
{ "language": "en", "url": "https://stackoverflow.com/questions/289601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: File System indexing I am creating an application were I need to scan a directory hive to find a certain file. I also want to better understand how indexing works. Can anyone point me to any resource preferably in C# that shows how I can create a basic index for file system searching? A: So, it sounds like you need...
{ "language": "en", "url": "https://stackoverflow.com/questions/289620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding desktop shortcuts to "My Computer" on Windows 2008 Server Now that I've finnaly moved to doing some development/support work for Windows 2008 I find myself annoyed by the lack of one feature I just can't enable: the desktop shortcut to "My Computer" I've grown used to. I know how to enable this on XP and 200...
{ "language": "en", "url": "https://stackoverflow.com/questions/289622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: SQL Server - Query Execution Plan For Conditional Statements How do conditional statements (like IF ... ELSE) affect the query execution plan in SQL Server (2005 and above)? Can conditional statements cause poor execution plans, and are there any form of conditionals you need to be wary of when considering perform...
{ "language": "en", "url": "https://stackoverflow.com/questions/289625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: how to loop files in linux from svn status As being quite a newbie in linux, I have the follwing question. I have list of files (this time resulting from svn status) and i want to create a script to loop them all and replace tabs with 4 spaces. So I want from .... D HTML/templates/t_bla.tpl M HTML/templat...
{ "language": "en", "url": "https://stackoverflow.com/questions/289626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: linq operators like in HI, I have 3 tables: Clips, Books and relationships between ClipBook Problem is: i need get book that has bookID=4 with some clips i mean many-to-many in simple text sql it will be something like this: select * from Clips where clipID in (select clipID from ClipBook where bookID=4) Question is...
{ "language": "en", "url": "https://stackoverflow.com/questions/289628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XML Schema: Make the value of a multiple occuring tag unique I have this XML pattern... <module> <promo> <day>1</day> <day>2</day> </promo> <promo> <day>3</day> <day>4</day> </promo> <promo> <day>Default</day> </promo> </module> I would like to stop users putting the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Remapping/Concatenating in SQL I'm trying to reorder/group a set of results using SQL. I have a few fields (which for the example have been renamed to something a bit less specific), and each logical group of records has a field which remains constant - the address field. There are also fields which are present for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Charts data encoding I have recently started looking into Google Charts API for possible use within the product I'm working on. When constructing the URL for a given chart, the data points can be specified in three different formats, unencoded, using simple encoding and using extended encoding (http://code.go...
{ "language": "en", "url": "https://stackoverflow.com/questions/289653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Recovering from Subversion corruption Something has gone wrong in subversion and now I am facing svnadmin: Invalid diff stream: [tgt] insn 0 starts beyond the target view position if I try to make dump from repository. We have another question about it here Subversion Repository Error, but the solutions there are ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I set up vim to automatically change my background color depending on whether CAPS LOCK is on or not? I'm an avid vim user and have started to write some SQL code recently. I like to write my SQL statements in CAPS and sometimes forget to switch CapsLock 'off' and I then quickly wreak havoc on my code before ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Ajax "Is there new content? If so, update page" - How to do this without breaking the server? It's a simple case of a javascript that continuously asks "are there yet?" Like a four year old on a car drive.. But, much like parents, if you do this too often or, with too many kids at once, the server will buckle under ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do I use my icons when compiling my python program with py2exe? I don't know what commands to enter into the setup.py file when compiling a python program to use my icons. Can anyone help me? Thanks in advance. A: from distutils.core import setup import py2exe setup( windows=[{"script": 'app.py', "icon...
{ "language": "en", "url": "https://stackoverflow.com/questions/289668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Showing TFrame descendant's additional properties on the object inspector Delphi object inspector doesn't show TFrame descendants's additional properties by design. People tend to suggest using a known trick which is commonly used for showing TForm descendant's properties on the Object inspector. The trick is: regis...
{ "language": "en", "url": "https://stackoverflow.com/questions/289672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Parent notification in MFC Dialog I have a first dialog with a simple button on it and while clicking the button, a second dialog is created using CDialog::Create(IDD,this). I would like the parent to be notified when the second dialog is destroyed but without adding any code to the second dialog i.e., without addin...
{ "language": "en", "url": "https://stackoverflow.com/questions/289674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Difference between 2 dates in SQLite How do I get the difference in days between 2 dates in SQLite? I have already tried something like this: SELECT Date('now') - DateCreated FROM Payment It returns 0 every time. A: Difference In Days Select Cast (( JulianDay(ToDate) - JulianDay(FromDate) ) As Integer) Differ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "141" }
Q: Why does < C-a> (CTRL+A) not work under gvim on windows? I'm trying to use the < C-a> (CTRL+A) shorcut under vim to increment a variable under the cursor. This works fine under vim running on Linux. However when I try to do this in gvim under windows it "selects all" (i.e. highlights or visually selects all text in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: t-sql replace on text field I have hit a classic problem of needing to do a string replace on a text field in an sql 2000 database. This could either be an update over a whole column or a single field I'm not fussy. I have found a few examples of how to use updatetext to achieve it but they tend to be in stored proc...
{ "language": "en", "url": "https://stackoverflow.com/questions/289688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Do you use any custom ASP.NET MVC HtmlHelper extensions? I'm interested in seeing what custom extensions other developers have created for the ASP.NET MVC HtmlHelper class. I think Microsoft got off to a great a start, but as usual, left a lot of open holes to fill! Looks like I am going to have to create some f...
{ "language": "en", "url": "https://stackoverflow.com/questions/289692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to reinitialize static finals while unit testing I am writing unit tests for a class, which has a static final variable. However, since the state of the static final var is modified in each test, I need some way to reinitialize it. How would this be possible? Would i need to use some sort of a custom classloade...
{ "language": "en", "url": "https://stackoverflow.com/questions/289702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you format your Compound Statements in Delphi and C#? As a long time Pascal and Delphi developer, I always line up my begin and ends thus : begin if x = y then begin ... ... end else for i := 0 to 20 do begin ... ... end; end; What drives me nuts is code formatted th...
{ "language": "en", "url": "https://stackoverflow.com/questions/289712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Last key in a std::map I am looking for the highest key value (a defined by the comparison operator) of a std::map. Is this guaranteed to be map.rbegin()->first ? (I am a bit shaky on reverse iterators, and how much freedom there is in the implementation of std::map) If not, please advise. I cannot change the da...
{ "language": "en", "url": "https://stackoverflow.com/questions/289715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: CUDA memory troubles I have a CUDA kernel which I'm compiling to a cubin file without any special flags: nvcc text.cu -cubin It compiles, though with this message: Advisory: Cannot tell what pointer points to, assuming global memory space and a reference to a line in some temporary cpp file. I can get this to wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/289719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I make my image control's imageurl dynamic depending on host? I am trying to convert my web application into a fully dynamic system. One thing I am trying to do is to load a different logo (set in the masterpage template) depending on the host. But, even though the code is hit (in page_init), there is no ima...
{ "language": "en", "url": "https://stackoverflow.com/questions/289720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }