text stringlengths 8 267k | meta dict |
|---|---|
Q: What's a 'null defined macro'? I'm learning objective-C and Cocoa. In the Apple tutorial I'm working through there's a side note that says:
IBOutlet is a null-defined macro, which the C preprocessor removes at compile time.
I'm curious - what's a null-defined macro?
A: #define IBOutlet
Whenever IBOutlet is used... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Switching to ORMs I'm toying with the idea of phasing in an ORM into an application I support. The app is not very structured with no unit tests. So any change will be risky. I'm obviously concerned that I've got a good enough reason to change. The idea is that there will be less boiler plate code for data access an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Loading assemblies and its dependencies My application dynamically loads assemblies at runtime from specific subfolders. These assemblies are compiled with dependencies to other assemblies. The runtime trys to load these from the application directory. But I want to put them into the modules directory.
Is there a wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: OpenID as a Single Sign On option? I'm just looking for different opinions.
Do you consider OpenID a good "Single Sign On" solution?
The way it works seems to be a little bit confusing for an average user and there could be problems related to "putting all your eggs in the same basket".
Anyway, have anyone tried to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How do content discovery engines, like Zemanta and Open Calais work? I was wondering how as semantic service like Open Calais figures out the names of companies, or people, tech concepts, keywords, etc. from a piece of text. Is it because they have a large database that they match the text against?
How would a serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: MS Project Gantt chart control usage in C# Has anybody used the MS Project Gantt chart control in C#?
If yes, can you share some resources regarding this?
A: You could also check Gantt Chart Library for WPF or Windows Forms, they do not require Microsoft Project installed on the client computer, but provide similar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Controls versus standard HTML I'm getting into ASP.NET (C# - I know it doesn't matter for this particular question, but full disclosure and all that), and while I love that the asp:-style controls save me a lot of tedious HTML-crafting, I am often frustrated with certain behaviors. I encountered one last night when ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Difference between `/dev/ttyS0` and `/dev/ttys0`? In Linux, what is the difference between /dev/ttyS0 and /dev/ttys0?
I know that the first is a serial port, but what about the second, with the small s?
A: see this
For a pseudo terminal pair such as
ptyp3 and ttyp3, the pty... is the
master or controlling term... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using Regex to generate Strings rather than match them I am writing a Java utility that helps me to generate loads of data for performance testing. It would be really cool to be able to specify a regex for Strings so that my generator spits out things that match this.
Is something out there already baked that I can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "131"
} |
Q: How do I use NTLM authentication with Active Directory I am trying to implement NTLM authentication on one of our internal sites and everything is working. The one piece of the puzzle I do not have is how to take the information from NTLM and authenticate with Active Directory.
There is a good description of NTLM an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can you compile Apache HTTP Server and redeploy its binaries to a different location? As part of our product release we ship Apache HTTP Server binaries that we have compiled on our (UNIX) development machine.
We tell our clients to install the binaries (on their UNIX servers) under the same directory structure that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Calculating a cutting list with the least amount of off cut waste I am working on a project where I produce an aluminium extrusion cutting list.
The aluminium extrusions come in lengths of 5m.
I have a list of smaller lengths that need to be cut from the 5m lengths of aluminium extrusions.
The smaller lengths need t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Unicode vs UTF-8 confusion in Python / Django? I stumbled over this passage in the Django tutorial:
Django models have a default str() method that calls unicode() and converts the result to a UTF-8 bytestring. This means that unicode(p) will return a Unicode string, and str(p) will return a normal string, with char... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: What is the difference between HttpHandler and a Web User Control and when to use each one? I've been using user controls extensively but never use a HttpHandler and was wondering if I am doing something suboptimal or wrong
A: Unfortunately your question is a little like "Should I use a sandwich or a cement mixer".... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Transactional Design Pattern I have a need to create a "transactional" process using an external API that does not support COM+ or .NET transactions (Sharepoint to be exact)
What I need to do is to be able to perform a number of processes in a sequence, but any failure in that sequence means that I will have to manu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ADO.NET Mapping From SQLDataReader to Domain Object? I have a very simple mapping function called "BuildEntity" that does the usual boring "left/right" coding required to dump my reader data into my domain object. (shown below) My question is this - If I don't bring back every column in this mapping as is, I get the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Erlang-style Concurrency for Other Languages What libraries exist for other programming languages to provide an Erlang-style concurrency model (processes, mailboxes, pattern-matching receive, etc.)?
Note: I am specifically interested in things that are intended to be similar to Erlang, not just any threading or queu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Web framework programming mindset I am just starting to play with Django/Python and am trying to shift into the MTV mode of programming that Django asks for (insists on). Deciding on what functions should be methods of a model vs simple being a function in a view has so far been confusing. Does anyone know of a bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: TClientDataSet Aggregates specification aren't added automatically when creating an Aggregate field I need to create an Aggregate Field in a TClientDataSet, but as said in the docs:
Choose OK. The newly defined aggregate
field is automatically added to the
client dataset and its Aggregates
property is automat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does int main() {} compile? (I'm using Visual C++ 2008) I've always heard that main() is required to return an integer, but here I didn't put in return 0; and and it compiled with 0 errors and 0 warnings! In the debug window it says the program has exited with code 0. If this function is named anything other t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: How do I change my workspace in Team Foundation Server 2005 and 2008? I have multiple projects in a couple of different workspaces. However, it seems like I can never figure out how to change my current workspace. The result is that files that I have checked out on my machine are shown to be checked out by somebody ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How do I resize and convert an uploaded image to a PNG using GD? I want to allow users to upload avatar-type images in a variety of formats (GIF, JPEG, and PNG at least), but to save them all as PNG database BLOBs. If the images are oversized, pixelwise, I want to resize them before DB-insertion.
What is the best wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Get a list of available domains (NT4 and Active Directory) Does anyone know (in c#) a way of getting the available NT4 domains (a bit like the WinXP login box dropdown)?
I know that this is fairly easy for Active Directory using the DirectoryServices namespace, but I can't find anything for the old NT4 domains. I'd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Authenticate on an ASP.Net Forms Authorization website from a console app I'm trying to build a C# console application to automate grabbing certain files from our website, mostly to save myself clicks and - frankly - just to have done it. But I've hit a snag that for which I've been unable to find a working solutio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's a good way to encapsulate data access with PHP/MySQL? Most of my experience is on the MSFT stack, but I am now working on a side project, helping someone with a personal site with cheap hosting that is built on the LAMP stack. My options for installing extras are limited, so I'm wondering about how to write ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Where do I begin to learn about SQL Server alerts or notifications? Just recently started having issues with an SQL Server Agent Job that contains an SSIS package to extract production data and summarize it into a separate reporting database.
I think that some of the Alerts/Notifications settings I tried playing wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ARMV4i (Windows Mobile 6) Native Code disassembler Does anyone know of a disassembler for ARMV4i executables and DLLs?
I've got a plug-in DLL I'm writing with a very rare data abort (<5% of the time) that I have narrowed down to a specific function (via dumpbin and the address output by the data abort). However, it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: IE Securty Zone Issues I'm developing a website which will be used in the corporate intranet which uses JCIFS and NTLM to automatically authenticate the users without asking them to log on. Everything seems to be working in IE 6, but some users are being prompted for their passwords in IE 7.
We've had some succes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to send out email at a user's local time in .NET / Sql Server? I am writing a program that needs to send out an email every hour on the hour, but at a time local to the user.
Say I have 2 users in different time zones. John is in New York and Fred is in Los Angeles. The server is in Chicago. If I want to send an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Remoting server auto-discovery. Broadcast or not? I have a client/server application that communicates with .Net remoting. I need my clients to be able to find the server(s) on the network without requiring client-side configuration.
As far as I know, there is no support for discovery in remoting. I am prepared to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to late bind 32bit/64 bit libs at runtime I've got a problem similar to,but subtly different from, that described here (Loading assemblies and their dependencies).
I have a C++ DLL for 3D rendering that is what we sell to customers. For .NET users we will have a CLR wrapper around it. The C++ DLL can be built in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Word Automation: Write RTF text without going through clipboard I am trying to replace the current selection in Word (2003/2007) by some RTF string stored in a variable.
Here is the current code:
Clipboard.SetText(strRTFString, TextDataFormat.Rtf)
oWord.ActiveDocument.ActiveWindow.Selection.PasteAndFormat(0)
Is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How do people choose product names? I flatter myself that I'm a good programmer, and can get away with graphic design. But something I'm incapable of doing is coming up with good names - and it seems neither are the people I work with. We're now in the slightly ludicrous situation that the product we've been working... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: WCF push to client through firewall?
See also How does a WCF server inform
a WCF client about changes? (Better
solution then simple polling, e.g.
Coment or long polling)
I need to use push-technology with WCF through client firewalls. This must be a common problem, and I know for a fact it works in theory (s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I extract/insert text into RTF string in C# In a C# console app I have the need to extract the text from an RTF string, add some more text to it, and then convert it back into RTF. I have been able to do this using the System.Windows.Forms.RichTextBox class, but I find it a bit odd to use a Forms control in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Sharepoint COMException 0x81020037 I am working on a SharePoint application that supports importing multiple documents in a single operation. I also have an ItemAdded event handler that performs some basic maintenance of the item metadata. This event fires for both imported documents and manually created ones. Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cleanest Way to Invoke Cross-Thread Events I find that the .NET event model is such that I'll often be raising an event on one thread and listening for it on another thread. I was wondering what the cleanest way to marshal an event from a background thread onto my UI thread is.
Based on the community suggestions, I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: How can I develop for iPhone using a Windows development machine? Is there any way to tinker with the iPhone SDK on a Windows machine? Are there plans for an iPhone SDK version for Windows?
The only other way I can think of doing this is to run a Mac VM image on a VMWare server running on Windows, although I'm not t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1257"
} |
Q: Implementing a log watcher I'm wondering how you can implement a program similar to tail -f in C/C++, a program that watches for and processes new lines added to a log file?
A: You can use fseek() to clear the eof condition on the stream. Essentially, read to the end of the file, sleep for a while, fseek() (withou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does PHP have built-in data structures? I'm looking at the PHP Manual, and I'm not seeing a section on data structures that most languages have, such as lists and sets. Am I just blind or does PHP not have anything like this built in?
A: PHP has arrays, which are actually associative arrays and can also be used as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: How do I convert images between CMYK and RGB in ColdFusion (Java)? I have a need to convert images from CMYK to RGB - not necessarily back again, but hey, if it can be done...
With the release of ColdFusion 8, we got the CFImage tag, but it doesn't support this conversion; and nor does Image.cfc, or Alagad's Image C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: SQL Query Help - Scoring Multiple Choice Tests Say I have a Student table, it's got an int ID. I have a fixed set of 10 multiple choice questions with 5 possible answers. I have a normalized answer table that has the question id, the Student.answer (1-5) and the Student.ID
I'm trying to write a single query that w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding Inline Search function to web page Is it possible to embed an inline search box into a web page which provides similar functionality to the IE7Pro Inline Search or similar plugins for Firefox/Safari?
A: jQuery inline search plugin provides this functionality
A: If I understand your question, you are asking ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Search strategies in ORMs I am looking for information on handling search in different ORMs.
Currently I am redeveloping some old application in PHP and one of requirements is: make everything or almost everything searchable, so user just types "punkrock live" and the app finds videos clips, music tracks, reviews, u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: My regex is matching too much. How do I make it stop? I have this gigantic ugly string:
J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM
J0000010: Project name: E:\foo.pf
J0000011: Job name: MBiek Direct Mail Test
J0000020: Document 1 - Completed successfully
I'm trying to extract pieces from it using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "115"
} |
Q: memset() causing data abort I'm getting some strange, intermittent, data aborts (< 5% of the time) in some of my code, when calling memset(). The problem is that is usually doesn't happen unless the code is running for a couple days, so it's hard to catch it in the act.
I'm using the following code:
char *msg = (ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: I'm looking for a Windows hosting provider that supports custom os images (like AMZN EC2) I've come to love Amazon's EC2 service and I'm looking for something similar that supports the ability to save a running Windows server image and start new instances from it.
I contacted GoGrid (the feature is planned in future... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery AJAX vs. UpdatePanel We've got a page with a ton of jQuery (approximately 2000 lines) that we want to trim down b/c it is a maintenance nightmare, and it might be easier to maintain on the server. We've thought about using UpdatePanel for this. However, we don't like the fact that the UpdatePanel is sending... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: What's a good machine for iPhone development? I'm going to be working on some iPhone apps so I've been given a golden ticket to buy a Mac. However the golden ticket isn't worth that much, and I'm thinking iMac. Now, Macs are great, I love 'em and use 'em at home, but I know that the iMac is geared more towards the a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: How do I display records containing specific information in SQl How do I select all records that contain "LCS" within the title column in sql.
A: SELECT * FROM TABLE WHERE TABLE.TITLE LIKE '%LCS%';
% is the wild card matcher.
A: Look into the LIKE clause
A: Are you looking for all the tables with a column name w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using cached credentials to connect to SQL 2005 across a domain boundary Ever since moving to Vista some time ago on my development machine, connecting to SQL Servers in our DMZ active directory domain from client tools like SSMS has not worked like it used to. In XP, as long as I had authenticated in some way on t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What are the major differences between ANSI C and K&R C? The Wikipedia article on ANSI C says:
One of the aims of the ANSI C standardization process was to produce a superset of K&R C (the first published standard), incorporating many of the unofficial features subsequently introduced. However, the standards commit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Formview Dropdown 2 depends on Dropdown 1 I have a form view, in the edit template I have two drop downs.
Drop down 1 is explicitly set with a list of allowed values. It is also set to autopostback.
Drop down 2 is databound to an objectdatasource, this objectdatasource uses the first dropdown as one of it's paramet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why is ASP.NET gzip compression corrupting CSS? I have an ASP.NET webforms application (3.5 SP1) that I'm working on, and attempting to enable gzip fpr HTML and CSS that comes down the pipe. I'm using this implementation (and tried a few others that hook into Application_BeginRequest), and it seems to be corrupting ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I secure a folder used to let users upload files? I have a folder in my web server used for the users to upload photos using an ASP page.
Is it safe enough to give IUSR write permissions to the folder? Must I secure something else?
I am afraid of hackers bypassing the ASP page and uploading content directly t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Execute shortcuts like programs Example: You have a shortcut s to SomeProgram in the current directory.
In cmd.exe, you can type s and it will launch the program.
In PowerShell, typing s gives:
The term 's' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.
If... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: PHP includes vs OOP I would like to have a reference for the pros and cons of using include files vs objects(classes) when developing PHP applications.
I know I would benefit from having one place to go for this answer...I have a few opinions of my own but I look forward to hearing others.
A Simple Example:
Certain ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Passing a commented, multi-line (freespace) regex to preg_match I have a regex that is going to end up being a bit long and it'd make it much easier to read to have it across multiple lines.
I tried this but it just barfs.
preg_match(
'^J[0-9]{7}:\s+
(.*?) #Extract the Transaction Start Date msg
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I read in the contents of a directory in Perl? How do I get Perl to read the contents of a given directory into an array?
Backticks can do it, but is there some method using 'scandir' or a similar term?
A: This will do it, in one line (note the '*' wildcard at the end)
@files = </path/to/directory/*>;
# To d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: What's a good way to check if two datetimes are on the same calendar day in TSQL? Here is the issue I am having: I have a large query that needs to compare datetimes in the where clause to see if two dates are on the same day. My current solution, which sucks, is to send the datetimes into a UDF to convert them to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Search Plugin for Safari How do we create a search plugin for Safari? Like this post
A: Here is a Safari plugin whereby you can customize it to search other sites. May work with Stack Overflow (I haven't tried it). Check out that site too for other Safari plugins.
A: I recently wrote Safari Omnibar which is a nat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How do I cluster an upload folder with ASP.Net? We have a situation where users are allowed to upload content, and then separately make some changes, then submit a form based on those changes.
This works fine in a single-server, non-failover environment, however we would like some sort of solution for sharing the fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ASP.NET Tutorials can you recommend some good ASP.NET tutorials or a good book?
Should I jump right to ASP.NET MVC/html/javascript or learn web forms first?
Thanks
A: A great book if you're just beginning is Matthew MacDonald's Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional. Once you're done with th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Install Leopard inside VMWare I’m thinking about trying some development for the iPhone, is it possible to install Leopard inside VMWare? I already have a pretty high spec PC with a comfy setup that I’d like to use, or do I need to buy a real Mac?
A: We are in no way affiliated with any of the providers below.
We h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Format numbers to strings in Python I need to find out how to format numbers as strings. My code is here:
return str(hours)+":"+str(minutes)+":"+str(seconds)+" "+ampm
Hours and minutes are integers, and seconds is a float. the str() function will convert all of these numbers to the tenths (0.1) place. So instead ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "127"
} |
Q: Best practices for catching and re-throwing .NET exceptions What are the best practices to consider when catching exceptions and re-throwing them? I want to make sure that the Exception object's InnerException and stack trace are preserved. Is there a difference between the following code blocks in the way they hand... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "304"
} |
Q: What are the main differences between programming for Windows XP and for Vista? From a desktop application developer point of view, is there any difference between developing for Windows XP and developing for Windows Vista?
A: Do not ever assume your user has access to certain key areas of the disc (i.e. program fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to download a file over HTTP? I have a small utility that I use to download an MP3 file from a website on a schedule and then builds/updates a podcast XML file which I've added to iTunes.
The text processing that creates/updates the XML file is written in Python. However, I use wget inside a Windows .bat file to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1092"
} |
Q: Alternative SSH Application to Plink I have recently started having problems with TortoiseCVS, or more specifically with plink, the SSH application that comes with it. The IP address it tries to connect to can not be changed and is stuck with the old CVS repository's IP. Downloading plink from it's home site and cal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Use of 3rd party libraries/components in production When using 3rd party libraries/components in production projects, are you rigorous about using only released versions of said libraries?
When do you consider using a pre-release or beta version of a library (in dev? in production, under certain circumstances)?
If... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to filter by 2 fields when loading data into an access database table from an excel spreadsheet OK, here is my problem, without being too specific for reasons of being fired for putting company practices on the internet.
There are spreadsheets made. These are uploaded to the database. I need to filter out duplic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the best mock framework for Java? What's the best framework for creating mock objects in Java? Why? What are the pros and cons of each framework?
A: I am the creator of PowerMock so obviously I must recommend that! :-)
PowerMock extends both EasyMock and Mockito with the ability to mock static methods, final... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "347"
} |
Q: What strategies have you employed to improve web application performance?
*
*Any personal experience in overcoming web application performance hurdles?
*Any recommended strategies for improving the performance of a data-driven web application?
My development team works on a web application (JSP reports, HTML,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I find the Excel column name that corresponds to a given integer? How would you determine the column name (e.g. "AQ" or "BH") of the nth column in Excel?
Edit: A language-agnostic algorithm to determine this is the main goal here.
A: Thanks, Joseph Sturtevant! Your code works perfectly - I needed it in vbsc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Configure a Java Socket to fail-fast on disconnect? I have a listening port on my server that I'm connecting to using a Java class and the Socket interface, i.e.
Socket mySocket = new Socket(host,port);
I then grab an OutputStream, decorate with a PrintWriter in autoflush mode and I'm laughing - except if the liste... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I pass multiple string parameters to a PowerShell script? I am trying to do some string concatenation/formatting, but it's putting all the parameters into the first placeholder.
Code
function CreateAppPoolScript([string]$AppPoolName, [string]$AppPoolUser, [string]$AppPoolPass)
{
# Command to create an IIS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: How does Ruby 1.9 handle character cases in source code? In Ruby 1.8 and earlier,
Foo
is a constant (a Class, a Module, or another constant). Whereas
foo
is a variable. The key difference is as follows:
module Foo
bar = 7
BAZ = 8
end
Foo::BAZ
# => 8
Foo::bar
# NoMethodError: undefined method 'bar' for Foo:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is GDI+ actually still a "usable" technology? I just wonder a bit whether or not GDI+ is still a technology worth using, especially in a .net sense.
Granted, GDI+ is still THE technology to handle Images in Windows, but it is also unmanaged code (obviously). Now, after discovering that GDI+ is actually not supported... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there an open source SQL Server DB compare tool? I'm working on an open source project that uses SQL Server 2005 as the data store. We need a DB compare tool to generate diff scripts to be able to upgrade a DB from one version to another.
Is there an open source or free SQL Server DB diff tool out there that gene... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Drag and Drop an Email from MS Outlook to Eclipse RCP Has anyone got a working solution without some Java/COM-bridge? E.g. process the Email as a file (.msg) rather than locating the data that is referenced in the Clipboard?
A: I did make some headway on this sort of thing a few years back using Apache POI to extra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: The difference between loops It's about PHP but I've no doubt many of the same comments will apply to other languages.
Simply put, what are the differences in the different types of loop for PHP? Is one faster/better than the others or should I simply put in the most readable loop?
for ($i = 0; $i < 10; $i++)
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Comparing effective dates in SQL Wondering if there is a better why in the WHERE clause of choosing records when you need to look at effective start and end dates?
Currently this how I've done it in the past on MS SQL Server. Just worried about the date and not the time. I'm using SQL Server 2005.
AND Convert(datet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to decode viewstate I need to see the contents of the viewstate of an asp.net page. I looked for a viewstate decoder, found Fridz Onion's ViewState Decoder but it asks for the url of a page to get its viewstate. Since my viewstate is formed after a postback and comes as a result of an operation in an update pane... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Libraries for pretty charts in SWT? I know the following libraries for drawing charts in an SWT/Eclipse RCP application:
*
*Eclipse BIRT Chart Engine (Links to an article on how to use it)
*JFreeChart
Which other libraries are there for drawing pretty charts with SWT? Or charts in Java generally? After all, you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Where to put your code - Database vs. Application? I have been developing web/desktop applications for about 6 years now. During the course of my career, I have come across application that were heavily written in the database using stored procedures whereas a lot of application just had only a few basic stored proc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do I perform a Perl substitution on a string while keeping the original? In Perl, what is a good way to perform a replacement on a string using a regular expression and store the value in a different variable, without changing the original?
I usually just copy the string to a new variable then bind it to the s//... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "205"
} |
Q: ASP.NET - Building your own routing system In a recent project, I built my own MVC framework in PHP. One of the things I implemented was a routing system. I used Apache's mod_rewrite to send all requests to index.php, and then parsed the URI to extract information and route the request.
I'm dabbling in ASP.NET now,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Language Books/Tutorials for popular languages It wasn't that long ago that I was a beginning coder, trying to find good books/tutorials on languages I wanted to learn. Even still, there are times I need to pick up a language relatively quickly for a new project I am working on. The point of this post is to docume... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "249"
} |
Q: How do you prevent leading zeros from being stripped when importing an excel doc using c# I'm able to connect to and read an excel file no problem. But when importing data such as zipcodes that have leading zeros, how do you prevent excel from guessing the datatype and in the process stripping out leading zeros?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is the best way to prevent session hijacking? Specifically this is regarding when using a client session cookie to identify a session on the server.
Is the best answer to use SSL/HTTPS encryption for the entire web site, and you have the best guarantee that no man in the middle attacks will be able to sniff an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "133"
} |
Q: What is the best way to communicate with a MySQL server? I am going to be using C/C++, and would like to know the best way to talk to a MySQL server. Should I use the library that comes with the server installation? Are they any good libraries I should consider other than the official one?
A: MySQL++
A: That dep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I stop Windows applications from stealing focus I know this isn't strictly a programming question but y'all must have experienced this.
So...you have four or five RDP sessions open over the corp VPN, you're bashing away inside your favourite IDE, your VPN to the data centre bounces briefly then recovers, all... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Which is better: Ad hoc queries or stored procedures? Assuming you can't use LINQ for whatever reason, is it a better practice to place your queries in stored procedures, or is it just as good a practice to execute ad hoc queries against the database (say, SQL Server for argument's sake)?
A: Stored procedures are d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Is there some way to show HTML content inside Flash? I want to show HTML content inside Flash. Is there some way to do this?
I am talking about full blown HTML (with JavaScript if possible).
A: flashQuery supports HTML tags and CSS rules for Flash. It transforms flash into a really browser. Here it is: http://www.f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: CSV (or sheet in XLS) to SQL create (and insert) statements with .Net? Does anyone have a technique for generating SQL table create (and data insert) commands pragmatically from a CSV (or sheet in a .xls) file?
I've got a third party database system which I'd like to populate with data from a csv file (or sheet in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does anybody know of existing code to read a mork file (Thunderbird Address Book)? I have the need to read the Thunderbird address book on the fly. It is stored in a file format called Mork. Not a pleasant file format to read. I found a 1999 article explaining the file format. I would love to know if someone alr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to process Excel files stored in an image data type column using SSIS package? I have a .NET webforms front end that allows admin users to upload two .xls files for offline processing. As these files will be used for validation (and aggregation) I store these in an image field in a table.
My ultimate goal is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to provide namespaces in JavaScript with instanced objects I've got a JavaScript "object", built this way:
function foo()
{
this.length = 0;
}
foo.prototype.getLength = function()
{
return this.length;
}
...
I know how to emulate namespaces with singleton JavaScript objects, but what is the best way t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Detecting if SQL server is running I'm looking for a way to poll different servers and check that SQL server is up and running. I'm writing my code in C#. I don't particularly care about individual databases, just that SQL server is running and responsive.
Any ideas?
A: Well, the brute force solution is to attempt ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Acts-as-readable Rails plugin Issue I'm using Intridea's Acts as Readable Rails plugin for a messaging system I'm currently building.
I've defined my message class accordingly:
class Post < ActiveRecord::Base
acts-as-readable
end
And everything seems to be working according to plan, but when trying to make the ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.