text string | meta dict |
|---|---|
Q: How do you implement a "Logout" link using ASP.NET MVC? This seems like a pretty stupid question, but I'm trying to figure out the best way to do this. Would you simply redirect to a /Logout page and have the controller call the FormsAuthentication.SignOut function?
That was my first thought, but then I wondered if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Practical limit for the number of databases in SQL Server? In one of the stackoverflow podcasts (#18 I think) Jeff and Joel were talking about multi vs single tenant databases. Joel mentioned that "FogBugz on Demand" used a database per customer architecture and I was wondering if there is a point beyond which you'l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How do you configure WCF to support FaultContracts where both the host and client are in the same process using a net.pipe? I'm trying to create an in-process unit test for my service to client interactions using net.pipe binding. Like a good WCF service it uses FaultContractAttribute on service operations to expos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to deal with time storage in SQL I have a web application that I'm writing (C#, MSSQL) and I need to store the timestamp when a record is stored in the system. Normally, I would just do this with SQL and the DATETIME function. However, the server is located in a different time zone than our company is located.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Access control for multiple users in a web application I'am working on a PHP + MySQL Social Networking application, now i need to setup different access control (read,create,edit,delete) for global (all items) and/or self items (item which created by themselves) for each module to group or specific user.
Does anyone... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you deal with NUL? From time to time, I run into communications issue with other programmers, when we talk about NULL. Now NULL could be
a NULL pointer
the NUL character
an empty data element in some sort of database.
NUL seems to be the most confusing. It is the ASCII character 0x00.
I tend to use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I filter a php array with a MySQL table? Say I have an array of strings in a php array called $foo with a few hundred entries, and I have a MySQL table 'people' that has a field named 'name' with a few thousand entries. What is an efficient way to find out which strings in $foo aren't a 'name' in an entry in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Magic quotes in PHP According to the PHP manual, in order to make code more portable, they recommend using something like the following for escaping data:
if (!get_magic_quotes_gpc()) {
$lastname = addslashes($_POST['lastname']);
} else {
$lastname = $_POST['lastname'];
}
I have other validation checks that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Can I use the same editor for Control.Anchor property for my own user control's designer support? I have a simple extender component that draws 3D borders around any Control. In my designer supprot for the component, I'd like to use the same editor that VS uses to select the Anchor property.
I know I can use the [E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Triangle mathematics for game development I'm trying to make a triangle (isosceles triangle) to move around the screen and at the same time slightly rotate it when a user presses a directional key (like right or left).
I would like the nose (top point) of the triangle to lead the triangle at all times. (Like that ol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to program a text search and replace in PDF files How would I be able to programmatically search and replace some text in a large number of PDF files? I would like to remove a URL that has been added to a set of files. I have been able to remove the link using javascript under Batch Processing in Adobe Pro, bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: As a C# developer who wants to do some PHP work, what [book/online articles] should I [buy/read] to introduce myself to PHP? I've got the bare minimum to handle the Linux/MySQL parts of the stack, but I want to have a basic grasp of PHP before I dive in. I'll be working on WordPress plugins, in case there's anythin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How best to "turn off" a web page from another part of the application? We have a web application that manages inventory for our computer support group. One of the things that we will be using this for is to drive a "Computers Currently In Use" map for our larger computer labs so that users can find an open compute... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using ASP.Net, is there a programmatic way to take a screenshot of the browser content? I have an ASP.Net application which as desired feature, users would like to be able to take a screenshot. While I know this can be simulated, it would be really great to have a way to take a URL (or the current rendered page), a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Using a 256 x 256 Windows Vista icon in an application I have an application which I have made a 256 x 256 Windows Vista icon for.
I was wondering how I would be able to use a 256x256 PNG file in the ico file used as the application icon and show it in a picture box on a form.
I am using VB.NET, but answers in C# ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What is the proper way to maintain state in a custom server control? This works, but is it the proper way to do it???
I have a custom server control that has an [input] box on it. I want it to kinda mimic the ASP.NET TextBox, but not completely. When the textbox is rendered i have a javascript that allows users to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to simulate a click to make the current input lose its focus with JavaScript I have an input which at some points happens to have the focus. If the user click in the "background" of the page, the input loses its focus. I was trying to simulate the click on the background with the following code, but this doesn't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: "CLR detected an invalid program." when calling Generic Methods I write a large static method that takes a generic as a parameter argument. I call this method, and the framework throws a System.InvalidProgramException. This exception is thrown even before the first line of the method is executed.
I can create a stat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does anyone know the language used to code Orkut? For sure this question will not help anyone in a heavy way, but it can be useful somehow. In the beginning, all Orkut pages had the extension *.aspx, but now all pages are masqueraded under a Main#page.aspx.
Sorry if this Main# is an ASP feature, but it does not look... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to intercept dll method calls? How to intercept dll method calls?
*
*What are the techniques available for it?
*Can it be done only in C/C++?
*How to intercept method calls from all running processes to a given dll?
*How to intercept method calls from a given processes to a given dll?
A: Provided that yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Ensure a single instance of an application in Linux I'm working on a GUI application in WxPython, and I am not sure how I can ensure that only one copy of my application is running at any given time on the machine. Due to the nature of the application, running more than once doesn't make any sense, and will fail qui... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Strategy to migrate from StarTeam 5 to Subversion? I need to migrate a large project from StarTeam 5 to Subversion, and I'd like to keep snapshots of (at least) 5-10 of the major releases. I've considered the following:
*
*Manual or scripted export/import of each snapshot. Advantages: straightforward, easy to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Tibco & Windows Process Activation I'm thinking about how I could scale out Tibco EMS queue listeners written in managed code (C# in this instance). I'm looking for predominantly isolation and clustering characteristics.
In MSMQ I could use Windows Process Activation Service to host and manage the number and lifetim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Free Software or Scripts for Formatting SQL Queries I'm looking for a script or application that tidies up and reformats SQL queries. I've found some good online SQL formatters (see here) , as well as some downloadable commercial applications. I'm cautious about using an online service as I don't want to risk copie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: printable char in java Does anyone knows how to detect printable characters in java?
After a while ( trial/error ) I get to this method:
public boolean isPrintableChar( char c ) {
Character.UnicodeBlock block = Character.UnicodeBlock.of( c );
return (!Character.isISOControl(c)) &&
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Word macro error messages I am changing document template macros. The one thing I can't find out how to do is to customize error messages. For example an error message in a document is
"Error! No table of figures entries found"
I would like to change this to display something else. Is it possible to do this with Wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is a good proxy server for Linux that will allow me to connect through it? I would like to set up a proxy server on Fedora Core 4. Any idea of which ones might be easy to set up? I would like to connect through that server and receive an IP address from my ISP, since I have IP-address filtering on my apache s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Single Table Inheritance find issues I have the following 3 rails classes, which are all stored in one table, using rails' Single table inheritance.
class Template < ActiveRecord::Base
class ThingTemplate < Template
class StockThingTemplate < ThingTemplate
If I have a StockThingTemplate with ID of 150 then I should... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I convince someone they need to upsize from ms access to sql server or similar I am having a real problem at work with a highly ingrained developer obsessed with ms access. Users moan about random crashes, locking errors, freeze's, the application slowing down (especially in 2007) but seem to be very resistan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What is some good software for designing MySQL databases? As above. Usually at work someone else does the database design, and when I do personal projects they're small enough to not really require more than five or six tables, but I'm about to start a personal project that I think will probably require around eleve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is there a best practice for generating html with javascript I'm calling a web service that returns an array of objects in JSON. I want to take those objects and populate a div with HTML. Let's say each object contains a url and a name.
If I wanted to generate the following HTML for each object:
<div><img src="the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "115"
} |
Q: How many fields is 'too many' in a table? I have a coworker who is planning a database for a new app that will have several tables with over 30 fields each. Is this excessive? Maybe I'm just not enterprisey enough to understand.
Edit: Also, a lot of the fields are option-type sort of things (like on a request form,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Java Application/Class Design - How do accessors in Java work? How do I write the getDB() function and use it properly?
Here is a code snippet of my App Object:
public class MyApp extends UiApplication {
private static PersistentObject m_oStore;
private static MyBigObjectOfStorage m_oDB;
static {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to share custom data between iPhone applications? If I make two iPhone applications, how can/should I share custom data (not contacts and stuff like that) among them?
Thanks!
A: Apps can share a container directory on iCloud.
From Apple's doc on configuring your iCloud entitlements:
The iCloud Containers fiel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Setting up a PHP web project, the infrastructure How can I best set up my PHP (LAMP) development environment so that I have development, staging and production servers. One-"click" deployment to any of those, as well as one-click rollback to any revision. Rollback should also rollback the database schema and data ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Language-agnostic properly-tabbing code editors for Linux? I need a Linux text editor to replace Textpad 4.7.3 (a Windows nagware app), but all the alternatives I've tried are either bloated or incomplete. Here are the features I find most important, in descending order:
*
*Regex search, mark, and replace (across... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: "Thread was being aborted" exception whilst displaying dialog In my app I've got a thread which displays for some time "please wait" dialog window, sometimes it is a very tiny amout of time and there is some glitch while drawing UI (I guess).
I get the exception "Thread was being aborted" and completly have no idea ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: C++ IDE for Macs I teach a C++ course using Visual Studio. One of my students has a Mac and was looking for an IDE to use on his machine. What would be good to recommend?
A: Xcode which is part of the MacOS Developer Tools is a great IDE. There's also NetBeans and Eclipse that can be configured to build and compil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "126"
} |
Q: What is the difference between a 'closure' and a 'lambda'? Could someone explain? I understand the basic concepts behind them but I often see them used interchangeably and I get confused.
And now that we're here, how do they differ from a regular function?
A: This question is old and got many answers.
Now with Jav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "960"
} |
Q: Deploying multiple web apps in same server I am thinking on deploying multiple (and different) web applications on the same server using the following schema:
www.mydomain.com/app1
www.mydomain.com/app2
Is this a good practice? Any recommendations?
A: I don't see any glaring reasons why you should not do it this wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Continuous Integration for Ruby on Rails? I've been searching around for a Continuous Integration solution for Ruby on Rails, but haven't been too pleased with the results. I came from a .NET shop that used CruiseControl.NET and was really spoiled with its ease of use and rich status/reporting.
Ideally I'm looking ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "149"
} |
Q: Convert time fields to strings in Excel I have an excel sheet full of times.
They are formatted so that they look like: 1:00:15
However if I change the format on the cells to text, they change to the underlying numeric representation of the time: 0.041840278
How can I convert the cells to be text cells but still hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: What is the best method to generating ranking lists for my website homepage? What is the best way to generate and maintain several ranking lists for the home page of a website/webapp? e.g. hot posts, most recent posts, most comments, most consecutive wins etc.
Currently, I'm thinking about using a cron job scheduler... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Most efficient data type for UUID in database besides a native UUID What would be the most efficient data type to store a UUID/GUID in databases that do not have a native UUID/GUID data type? 2 BIGINTs?
And what would be the most efficient code (C# preferred) to convert to and from a GUID to that type?
Thanks.
A: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Using set.insert( key ) as a conditional? I am trying to use set.insert (key) as a conditional, where if the key is inserted correctly (meaning that the key does NOT already exist in the set ) then it should go on and perform some kind of code. For example, something like:
if (set.insert( key )) {
// some kind o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Passing a string to an already running instance of an application I have an application that detects if there is another instance of the app running and exits if one is found. This part seems to work reliably. My app takes a command-line argument that I would like to pass to the already running instance. I have the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Seething over MSYS shell - is it replaceable? I need a serviceable shell for MSYS. This is my current dilemma:
The default rxvt.exe has a scroll bar and copy and paste, but doesn't send control characters or arrow keys to a running program in the shell (like interpreters/debuggers). This is a real thorn when usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Interesting Many-many sql join I have three related tables "A(id, val)", "B(id, val)", and a link table with a value "AB(aid, bid, val)"
I am querying against B to bring back A values, for example:
SELECT A.*
FROM A INNER JOIN AB ON A.id = AB.aid INNER JOIN B ON AB.bid = B.id
WHERE B.val = 'foo';
Every A has many ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using multiple BindingSources on one DataTable I have a DataTable that has a boolean column called [Invalid]. I need to divide this data up by this Invalid column - valid rows can be edited, invalid rows cannot. My original plan was to use two BindingSources and set the Filter property ([Invalid] = 'false', for inst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the C++03 memory model for concurrency? What is the memory model for concurrency in C++03?
(And, does C++11 change the memory model to support concurrency better?)
A: The C++ memory model is the specification of when and why physical memory is read/written with respect to C++ code.
Until the next C++ standa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Best AJAX TreeView What are some of the better AJAX Treeviews out there that support asynchronous JSON loading.
YUI TreeView seems nice, but bloated with tables, etc.
A: I suggest DHTMLX Tree:
*
*Cross Browser
*AJAX Support
*In-line node editing
*Drag-n-drop capabilities
**Smart Rendering - allows avo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: C++ bindings for MySQL I'm running OSX(10.4.11) & I'm trying to get a decent C(preferably C++) binding for MySQL figured out. I have some data in an offsite database I want to analyze.
I'm trying to get MySQL++ working, but it's being funky.
I'm looking for other bindings, preferably ones with a no-headache install... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Groovy/Grails in a legacy Java/JSP web app I was fortunate enough to be able to start fresh with Grails. However, many people have asked me how to add Groovy and/or Grails to a legacy Java/JSP web app. Do people have experience or recommendations on how to best include Groovy and Grails into a large legacy a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Auto-refreshing div with jQuery - setTimeout or another method? How exactly do you make an auto-refreshing div with JavaScript (specifically, jQuery)?
I know about the setTimeout method, but is it really a good practice ? Is there a better method?
function update() {
$.get("response.php", function(data) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Complex height in CSS Before I explain what I'm trying to do, note that I have the good fortune of only having to target Webkit (meaning, I can use lots of neat CSS).
So, basically, I want to have a block with a flexible height, position fixed, maximum height being that of the available window height, with some elem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: javascript image rotator issue, default image I wrote a simple javascript image rotator which picks a random image on each page load. The issue is that if i use a default image, that default image will show up for a second before the javascript loads and replaces it. Obviously if someone has javascript disabled i w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Always check parameters and throw exceptions Should you always check parameters and throw exceptions in .NET when the parameters are not what you expected? E.g. null objects or empty strings?
I started doing this, but then thought that this will bloat my code a lot if it’s done on every single method. Should I check... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Including PYDs/DLLs in py2exe builds One of the modules for my app uses functions from a .pyd file. There's an option to exclude dlls (exclude_dlls) but is there one for including them? The build process doesn't seem to be copying the .pyd in my module despite copying the rest of the files (.py). I also need to incl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What sort of mathematics do you use in your .NET application? What sort of mathematics do you use in your .NET application, excluding everything that's in System.Math?
I think that System.Math is woefully inadequate. For example, in several official .NET frameworks, I can count three different implementations of ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a .net analogue to the Boost libraries? As per the title.
I think .Net libraries would definitely benifit from some sort of community development; perhaps something like the Java Community Process. This is where an analogue would be very helpful.
EDIT: I think people are believing that I need to use some li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Ping fails but http link works In one of the system (Windows), if I ping to a particular public forum site, [lets say testsite.com here], then I get a request timed out message. However, if I just put that site address in the browser (used IE6, but its not specific) with http://, then the link works fine and the bro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: List all links in web site I have all the web pages of a website. My task is to change all HTML files to .asp files and change the links. I have about 280 HTML files.
Is there any software or web service which can read a website and show me the link structure of the site (to make my job easier) similar to a site map... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Programatically find TFS changes since last good build I have several branches in TFS (dev, test, stage) and when I merge changes into the test branch I want the automated build and deploy script to find all the updated SQL files and deploy them to the test database.
I thought I could do this by finding all the chan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Redirect Stdin and Stdout to File I'm currently the Teaching Assistant for an Introduction to C class. The class is being taught using Visual Studio, but when grading I just use a simple Windows batch script to process all the assignment submissions, compile them, run them on a test file, and redirect the output to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Detect Keyboard Event in C How can I detect keyboard event in C language without using third party libraries? Should I use signal handling?
A: What about good old kbhit ? If I understand the question correctly this will work. Here is the kbhit implementation on Linux.
A: Standard C does not have any facilities fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Why would LINQ to SQL perform better than a straight SQL query? Strange performance outcome, I have a LINQ to SQL query which uses several let statements to get various info it looks like this
public IQueryable<SystemNews> GetSystemNews()
{
using (var t = new TransactionScope(TransactionScopeOption.Required,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to I root out a mystery character encoding problem in a Wordpress blog? I am attempting to start a new Wordpress blog. I am seeing funny characters in some browsers but not others instead of single quotes, double quotes and ellipses. Things I already thought of:
*
*The HTML template page for output
itself i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Only allow one server to access a file on a network drive I have an application running on multiple IIS servers that need to parse a CSV file that is placed on a common network drive. If I use the System.IO.FileSystemWatcher Created event to be notified of the event when the file is available, how can I ensure only... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Easy way to shift specific characters in a string in C++? If I have the string .....ZZ..ZZ..... or .Z.1.Z.23Z.4.Z55,
Is there an easy way of shifting all Zcharacters in the string one space right of the current position?
Some additional test strings are:
*
*.Z
*Z.
*ZZ.
*.ZZ
*Z
*ZZ
*ZZZ
I think a few of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Convert JavaScript code to VBScript code? I have been given a task to convert code that is written in JavaScript over to VBScript.
It is actually quite basic code and it is really just the syntax that needs to be converted.
For example
if (str == "string text") {
foo = "foo";
} else {
foo2 = "foo2";
}
become... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: RESTful Web Services with ASP.NET MVC Do you think ASP.NET MVC is able to develop RESTful web services and which approach you would use for it?
A: see this
http://msmvps.com/blogs/omar/archive/2008/10/03/create-rest-api-using-asp-net-mvc-that-speaks-both-json-and-plain-xml.aspx
A: Generally, I would say yes it is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: ASP.NET and IIS6: trapping ALL application errors Our groups legacy ASP 3.0 web apps were able to take advantage of a global error file by setting up a custom error file within IIS's Custom Error's tab. I'm unable to find a similar solution for ASP.NET apps.
Does anyone know if there is a way to have a centralize... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Share Symbian's RFile between two threads in the multi-threaded app I am porting to Symbian using Open C, I have an object that uses an RFile to read/write data to file. This object is supposed to be accessed from different threads (it is threadsafe), however there is the issue that apparently RFile objects can only... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: g++ or gcc option to get warning message with warning id By default gcc/g++ prints a warning message with the line number only. I am looking for the option by which g++ or gcc associates the build warning messages with the warning ids, so that the warning messages can be identified easily (without parsing). Also can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Best video manipulation library for Python? I'd like to include some simple video editing functionality for the Python application I'm writing and googling comes up with:
*
*pymedia
*pyglet (using the media module)
*gst-python
Requirements:
*
*Small footprint. I'm already using wxPython (just because), whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: How to deal with XML in C# What is the best way to deal with XML documents, XSD etc in C# 2.0?
Which classes to use etc. What are the best practices of parsing and making XML documents etc.
EDIT: .Net 3.5 suggestions are also welcome.
A: First of all, get to know the new XDocument and XElement classes, because th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "90"
} |
Q: Know of a good page load progressbar for my ASP.net application? Just wondering if anyone has seen any usable progress bar for C# .net apps. My app takes about 20-60 secs to load and I would love to show users a progress bar while they wait. I saw this one but the sample site doesn't seem to work which doesn't ins... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How does Google Reader get every item in an RSS feed? Slashdot's RSS feed is http://rss.slashdot.org/Slashdot/slashdot. If I download the XML file directly, I only get a few of the posts from today. However, if I subscribe to the feed in Google Reader, and keep scrolling down in their "infinite scroll" interface, it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Perl: while ($key = each %hash) doesn't stop at key = 0 I don't need this, obviously; I'm just curious about what's going on here. Am I missing
something simple? Can I rely on this behaviour in all versions of Perl?)
Perl v5.8.8:
%h = ( 0=>'zero', 1=>'one', 2=>'two' );
while ($k = each %h) {
$v = delete $h{$k};
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to configure a server program to autostart at bootup time in SUSE? Are there any good SUSE help sites?t
A: Server programs are started using scripts linked from /etc/init.d/rc*.d. This is the correct way to add another one:
*
*Create a shell script called /etc/init.d/<serverprogram> with the correct LSB meta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should my C++ program support IA64 or only x64? Should my program support IA64, or should it only support x64?
I haven't been able to easily find IA64 computers myself. Is IA64 dead?
MS seems to have a wide support for IA64, but it took me a long time to be able to find an IA64, and I had to end up getting it on eB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I "require" a neighbour class in Java? In Ruby I have often written a number of small classes, and had a main class organize the little guys to get work done. I do this by writing
require "converter.rb"
require "screenFixer.rb"
.
.
.
at the top of the main class. How do I do this in Java? Is it "import?"
Al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I add a new replicated table to a SQL Server 2005 DB that is in merge replication? We have merge replication set up over a distributed environment (50 to 1500km between offices) for a SQL Server 2005 database of about 350Gb. We now need to add a couple of new tables that must also be in replication, but with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In what syntax should a COM SDK reference document be written? I have a COM SDK written in C++ and I'd like to create documentation for my product. I understand that most people will probably not use C++ for integration with this COM component, but many will.
Which method is best to describe the API, without losi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set DataGridCell's template in WpfToolkit's DataGrid? Is it possible to set DataGridCell's template when using WpfToolkit's DataGrid? Or is it possible to set style property for a single cell at the time?
I know that there is a TemplateColumn class which lets the user set templates for displaying and editing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: load dll from python I'm building a python application from some source code I've found Here
I've managed to compile and fix some problems by searching the web, but I'm stuck at this point:
When running the application this message appears.
alt text http://img511.imageshack.us/img511/4481/loadfr0.png
This python app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JSP chatting with ajax I am writing one web chat program using AJAX (a little bit). It is working when both users open a chat page, but I want to open a window when one user send data to others.
A: Unless both users have a common web page (that you control) open, then this wouldn't be possible. However for the sa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reverse proxy How does reverse proxy server work? Is it used to secure the main server? Is it used as a firewall? What are the reasons for using a proxy server? Could someone give a real world example?
A: If you are looking for real world implemention in .NET, there is .NET URL Rewriter, a free open-source componen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to store web page content in sql server In general at a fairly high level, and without building an entire CMS, what do I need to know about storing web page content (e.g. say several hundred articles and text up to approx. 2500 words in length) and photos in sql server in a templated web page design?
Do I store ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where can I find a free, lightweight YUI-like compressor for PHP? Where can I find a free, lightweight YUI-like compressor for PHP?
I am sure it will decrease the file size but will compressing PHP code boost its performance?
Is this the same thing as an obfuscator?
A: Compressing JavaScript has benefits because th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What to do when your ant build process craps on your Version Control So I've got a nice Java project, build with Ant to a /dist folder.
The whole project is under version control, so I can deploy the latest version just by 'svn export' on the path to the dist folder.
But my build keeps deleting the .svn folders insi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which ajax control toolkit version? If I'm using Visual Studio 2008 targeted to ASP.NET 2.0, then which version of the Ajax Control Toolkit should I be using?
A: Release 11119 seems to be the latest release of the toolkit that targets .net 2.0. You can find it here:
http://www.codeplex.com/AjaxControlToolkit/Releas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Greenspunning: Most impressive extension of a language you have made and whether it was worth it Greenspunning. We've all had occasion to hack around a language's missing features to get what we need. Implementing pseudo-monadic patterns in Java, Y Combinators in Javascript, variable immutability in C...
What do y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Web service example Can anyone point to live examples of SOAP or REST web services? How do you use or test an existing web service with a client?
A: A SOAP webservice which converts the temperature Celsius to Fahrenheit and other way around http://www.w3schools.com/webservices/tempconvert.asmx
A description and sou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: CLR UDF Exception In SQL Server 2005 When I try my CLR UDF, I am getting this error:
Msg 6522, Level 16, State 1, Line 1
A .NET Framework error occurred during execution of user-defined routine or aggregate "getFileSize":
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: lookup Data in Excel I have a 2 variable 100x100 data table in excel.
I need to have a function that returns all the possible sets of variables that yield a given target value.
What I am looking at is some kind of a reursive 2 dimensional lookup function. Can someone point me in the right direction?
A: There is no ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to put underline for access key for ? How to put underline for first letter for access key for ?
A: asp:buttons are output as html "input" tags with a type of "submit". The text displayed on them is output in the "value" attribute of the tag, and so cannot contain any styling or html. If you could get an asp:b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Linq to Entities with WCF I have all my entities in a seperate project in my edmx file and I expose them to my client application using a WCF service.
That means I don't have to give my client app a direct link to the project that contains the edmx file. That would be bad because it contines the object to query the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Cairngorm Code Generator I was wondering if there's a code generator for Cairngorm that can be installed as a plugin in Eclipse? No code generator like in WebORB, FluorineFX that inspects the DataBase and generates a whole lot of code. I just want a plugin for eclipse where I can give in some options and properties.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/220988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Performance question: Fastest way to convert hexadecimal char to its number value in Java? I want to convert from char representing a hexadecimal value (in upper or lower case) to byte, like
'0'->0, '1' -> 1, 'A' -> 10, 'a' -> 10, 'f' -> 15 etc...
I will be calling this method extremely often, so performance is imp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/221001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |