text stringlengths 8 267k | meta dict |
|---|---|
Q: What tools are available for TDDD (Test Driven Database Development)? About a year ago, I picked up Scott Ambler's Refactoring Databases: Evolutionary Database Design. I was won over to the idea that just as you can develop your code with TDD, you probably should be covering your databases with unit tests (at least)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I disable Tortoise BZR? I'm a huge fan of bzr and I'm glad they're working on tortoise for it, but currently it's WAY too slow to be useful. The icons are almost always incorrect and when I load a directory in explorer with a lot of branches it locks up my entire system for anywhere from 10 seconds to 2 minu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to detect a remote side socket close? How do you detect if Socket#close() has been called on a socket on the remote side?
A: The isConnected method won't help, it will return true even if the remote side has closed the socket. Try this:
public class MyServer {
public static final int PORT = 12345;
publ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "88"
} |
Q: What's a good naming convention for large-scope function variables? You can have different naming convention for class members, static objects, global objects, and structs. Some of the examples of them are as below.
_member
m_member
or in Java case, the usage of this.member.
But is there any good technique or namin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: JRuby on Rails vs. Ruby on Rails, what's difference? I'm looking to try out JRuby and JRuby on Rails. I'm having trouble finding information on what's difference between JRuby on Rails and Ruby on Rails.
What's the differences I need to look out for?
A: I may be wrong, but I think you can package a JRuby on Rails ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "137"
} |
Q: Yasnippet and pabbrev working together in Emacs I am trying to get the yasnippet and pabbrev packages working together with emacs, but I cannot seem to get any love. How can I get them to play nicely together?
The crux of the problem is that pabbrev and yasnippet are binding to the tab keys. Both packages seem to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Flex Popup Button Question Banging my head against the wall here. I don't want to reinvent the wheel.
The default Flex 3 classs for PopupButton is a combination of two buttons. One is a normal button with label and/or icon, and the second is the arrow which opens the popup.
My struggle here is that I just want a bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does anyone use GoogleData? I was recently considering using GoogleData for a hobby project to store my service's old data, (say 24+hours old), while I keep the fresh data on my servers (hobby project==cheap home server).
However I haven't really heard of anyone using GoogleData, so I was wondering about what other'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: creating system wide vista keyboard shortcuts and macros This question might not seem programming related at first, but let me explain.
I'm stuck with using a keyboard that doesn't have home end page up and page down buttons. I need those functions for programming.
So the question is: what's a good/free utility to d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I trust PHP __destruct() method to be called? In PHP5, is the __destruct() method guaranteed to be called for each object instance? Can exceptions in the program prevent this from happening?
A: Use a shutdown function if you want to go for sure: register_shutdown_function()
A: It's also worth mentioning that, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Tool for adding license headers to source files? I'm looking for a tool that will, in bulk, add a license header to some source files, some of which already have the header. Is there a tool out there that will insert a header, if it is not already present?
Edit: I am intentionally not marking an answer to this ques... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "97"
} |
Q: Dynamically setting the Header text of a Silverlight DataGrid Column <my:DataGridTemplateColumn
CanUserResize="False"
Width="150"
Header="{Binding MeetingName, Source={StaticResource LocStrings}}"
SortMemberPath="MeetingName">
</my:DataGridTemplateColumn>
I h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Asynchronous WPF Commands Note: The code in this question is part of deSleeper if you want the full source.
One of the things I wanted out of commands was a baked design for asynchronous operations. I wanted the button pressed to disable while the command was executing, and come back when complete. I wanted the ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Where do you send the kernel console on an embedded system? I'm developing an embedded system which currently boots linux with console output on serial port 1 (using the console boot param from the boot loader). However, eventually we will be using this serial port. What is the best solution for the kernel console... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: C# Custom Applications that Access TFS We have built a custom application, for internal use, that accesses TFS. We use the Microsoft libraries for this (e.g Microsoft.TeamFoundation.dll).
When this application is deployed to PCs that already have Team Explorer or VS installed, everything is fine. When it’s deploye... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Infragistics V7.3 vs. V8.1 We are using the Infragistics controls for .net (both ASP.Net and WinForms) for a few years. We want to upgrade our current version (v6.3) and are in a pickle. We can upgrade to v7.3 or v8.1 but not to a later one due to licensing limitations, and we don't want to spend more money on licen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF Commands and Parameters I'm finding the WPF command parameters to be a limitation. Perhaps that's a sign that I'm using them for the wrong purpose, but I'm still giving it a try before I scrap and take a different tack.
I put together a system for executing commands asynchronously, but it's hard to use anything... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Running Google Analytics in iframe? Our company runs a web site (oursite.com) with affiliate partners who send us traffic. In some cases, we set up our affiliates with their own subdomain (affiliate.oursite.com), and they display selected content from our site on their site (affiliate.com) using an iframe.
Example o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Code Promotion: Build or Binary? Given a pretty basic source tree structure like the following:
trunk -------
QA |--------
Stage |-------
Prod |------
And an environment which mirrors that (Dev, QA, Staging and Production servers) - how do you all manage automated or manual code promotion? Do yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Developing for different platforms individually, does anyone recommend it? I know it is easy to recommend several cross platform libraries.
However, are there benefits to treating each platform individually for your product?
Yes there will be some base libraries used in all platforms, but UI and some other things ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Custom Sorting of a DataSet Column I have a DataSet that contains a few columns. One of these columns is a number - most of the time. Because it's occasionally a string, in the database it's a varchar(10) column.
However, when you sort a varchar column, it sorts it like a string. What I want to do instead is to try ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ext.form.FormPanel and form submission I've been trying to submit a form with the FormPanel using the Action class Ext defaults to. However, I'd like it to consider the response as a script, not JSON-encoded.
Has anyone had any experience on this?
A: The best plan would be to create a custom action by extending Ext... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Parameterized singleton patterns The link over here lists ([http://www.yoda.arachsys.com/csharp/singleton.html][1]) some singleton patterns in C#. The article also describes the obvious that a singleton is not meant to accept parameters which “as otherwise a second request for an instance but with a different parame... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: iPhone tab bar Item image resolution? What is the resolution of the image for the tab bar item?
And also, please provide some other useful information regarding that tab item image.
Thanks in advance.
A: The documentation says that the tab bar image is usually 30x30, but I've found that the best size to setup the i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Storyboards can't find ControlTemplate elements I've created some fairly simple XAML, and it works perfectly (at least in KAXML). The storyboards run perfectly when called from within the XAML, but when I try to access them from outside I get the error:
'buttonGlow' name cannot be found in the name scope of 'System... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Identifying the device requesting a response Is it possible for a web server to know which type of device request has been received from?
For example, can a create a website which shows different contents if request came from a computer (Firefox) and something different if it came from iPhone?
A: What Mitch said, w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are .NET framework updates pushed to every user of windows-updates? Does Microsoft force an update down to all of its users of windows-update? Is it for legal reasons?
EDIT(aku):
Question was reformulated. if you want to know which version of Windows comes with .NET see this topic:
https://stackoverflow.com/quest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's the common way for OOP Pattern design (Data Access) Originally there was the DAL object which my BO's called for info and then passed to UI. Then I started noticing reduced code in UI and there were Controller classes. What's the decent recomendation.
I currently structure mine
Public Class OrderDAL
Priv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Are there any tools for converting Managed C++ to C++/CLI? We have an old project written using Managed C++ syntax. I would like to propose to the team a reasonably pain-free (I don't mind some level of human interaction, I think I'm realistic in my expectations that we'll still have to do some work by hand) method ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I save an activity state using the save instance state? I've been working on the Android SDK platform, and it is a little unclear how to save an application's state. So given this minor re-tooling of the 'Hello, Android' example:
package com.android.hello;
import android.app.Activity;
import android.os.Bund... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2848"
} |
Q: Alternatives to static methods in Java I'm making a mini ORM for a Java program I'm writing... there is a class for each table in my db, all inheriting from ModelBase.
ModelBase is abstract & provides a bunch of static methods for finding & binding objects from the db, for example:
public static ArrayList findAll(Cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Enable local scripts and flash in ie7 I'm running an old little app which runs in the browser from local files, and I keep getting the, "To help protect your security, Internet Explorer has restricted this webpage from running scripts or Activex controls that could access your computer" message.
Is there a registry ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Will MS drop support for XP in .Net 4.* or 5.*? Does it matter to developers that the current, and newer versions of .Net don't support windows 2000?
It scares me to think that several of my clients still use Windows 2000 and although I may decide to stop supporting Windows 2000 one day, I don't like that Microsoft ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Which CPU architectures support Compare And Swap (CAS)? just curious to know which CPU architectures support compare and swap atomic primitives?
A: A different and easier way to answer this question may be to list multiprocessor platforms that do NOT support a compare and swap (or a load-link/store-conditional tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Unit Testing the Views? Any idea on how to unit test the views in ASP.NET MVC?
I am sick of encountering the yellow screen of death when I launch my MVC project just because I forget to update the views when one of the Action methods of my controller changes name.
A: You could write integration tests using Watin, b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Horizontal lines when clicking the button in Firefox I've some CSS problem in Firefox 3. I have several image buttons on my page and when I'm clicking on them I've seen to horizontal lines across the screen at top and bottom button border. I saw such issue on other web sites, so I think it's something known.
A: Thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sqlite update field if it contains Given a database field named "widget_ids", containing data like "67/797/124/" or "45/", where the numbers are slash separated widget_ids... how would you make an update statement with SQL that would say:
"if the widget_ids of the row with id X contains the text "somenumber/" do not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: System.IO.FileSystemWatcher to monitor a network-server folder - Performance considerations I want to watch a folder tree on a network server for changes. The files all have a specific extension. There are about 200 folders in the tree and about 1200 files with the extension I am watching.
I can't write a service to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Search for information on building large enterprise systems How do you organize DB layer, business logic and cross-platform API of your information management system, if uploading and processing 500000 data records in one session is a normal operation (C# .NET 3.5 + MS SQL 2005)?
I’m specifically interested in produ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is Occam-pi a good language to learn to program LEGO MINDSTORMS & Surveyor Corporation SRV-1? Is Occam-pi a good language to learn to program LEGO MINDSTORMS & Surveyor Corporation SRV-1 robots for an programming newbie. Are there any opensource projects making use of the same -- to read source code. url for occam-p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: High-level Compare And Swap (CAS) functions? I'd like to document what high-level (i.e. C++ not inline assembler ) functions or macros are available for Compare And Swap (CAS) atomic primitives...
E.g., WIN32 on x86 has a family of functions _InterlockedCompareExchange in the <_intrin.h> header.
A: glib, a common ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Unicode Characters that can be used to trick a string sorter? Since Unicode lacks a series of zero width sorting characters, I need to determine equivalent characters that will allow me to force a certain order on a list that is automatically sorted by character values. Unfortunately the list items are not in an alp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Get other running processes window sizes in Python This isn't as malicious as it sounds, I want to get the current size of their windows, not look at what is in them. The purpose is to figure out that if every other window is fullscreen then I should start up like that too. Or if all the other processes are only 8... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Why would you use an assignment in a condition? In many languages, assignments are legal in conditions. I never understood the reason behind this. Why would you write:
if (var1 = var2) {
...
}
instead of:
var1 = var2;
if (var1) {
...
}
?
A: The short answer is that expression-oriented programming languages al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "91"
} |
Q: cannot access excel file after renaming I have renamed some excel files on my web server and after renaming the users cannot download those files. What could be the problem. They are all excel files.
A: Some possibilities I can think of:
*
*Make sure the extension on the files is still .xls (that's how it associ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: root folder equivalent in windows Is C drive treated as the root folder in windows when one says \folder1\folder2\ in linux and windows C:\folder1\folder2.
A: If you're running Windows CE then \ is the root directory. This resembles Unix's / root directory. This is the only kind of Windows where you can get a sim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can we set the visibility of a button placed inside a Infragistrics Windows Grid control I have a form where i have used Infragistics windows grid control to display the data.
In this, i have placed a button on one of the cell. I want to set its visibility either True or False based on the row condition.
I hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is a good extendable blogging application for ASP.NET? I am looking for a relatively good and well supported, and preferably open source blog application that runs on ASP.NET and SQL Server. It doesn’t need to be packed full of features, it just needs the basics, such as tagging, comments, etc. Extra features a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Not able to retrieve dates I am working with web Dynpro java..
I have created a stateless session bean wherein I have created business methods for inserting and retrieving records from my dictionary table.
My table has two fields of java.sql.Date type
The web service that i have created is working fine for insertR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: saslpasswd2: generic failure on Windows I get a generic failure when I try to run:
saslpasswd2 username
This was installed by Collanet's Subversion 1.5.2.
A: The problem that I had was that the sasl executables are trying to access the sasldb file at:
C:\CMU\sasldb2
Make sure that you create the directory
C:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best way to make double insert What's the best way of inserting information in table A and using the index from table A to relate to table B.
The "solution" I tried is inserting the info in table A (which has a automatically generated ID), then, select the last index and insert it in table B. This may not be very ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: AutoLock in Java - how to? What is the best way to free resources (in this case unlock the ReadWriteLock) when leaving the scope ? How to cover all possible ways (return, break, exceptions etc)?
A: Like mike said, a finally block should be your choice. see the finally block tutorial, where it is stated:
The finall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When should I use __forceinline instead of inline? Visual Studio includes support for __forceinline. The Microsoft Visual Studio 2005 documentation states:
The __forceinline keyword overrides
the cost/benefit analysis and relies
on the judgment of the programmer
instead.
This raises the question: When is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Errors with Python's mechanize module I'm using the mechanize module to execute some web queries from Python. I want my program to be error-resilient and handle all kinds of errors (wrong URLs, 403/404 responsese) gracefully. However, I can't find in mechanize's documentation the errors / exceptions it throws for va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Does an empty array in .NET use any space? I have some code where I'm returning an array of objects.
Here's a simplified example:
string[] GetTheStuff() {
List<string> s = null;
if( somePredicate() ) {
s = new List<string>(); // imagine we load some data or something
}
return (s == null) ?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: How do I control how Emacs makes backup files? Emacs puts backup files named foo~ everywhere and I don't like having to remember to delete them. Also, if I edit a file that has a hard link somewhere else in the file system, the hard link points to the backup when I'm done editing, and that's confusing and awful. H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "361"
} |
Q: What is Native Code? The Project's Web section (under project properties in VS2008) has a list of debuggers: ASP.NET, Native Code, SQL Server. What is Native Code?
A: Native code doesn't run on the Common Language Runtime (CLR). An example would be a non-managed C++ application.
A: Native code is machine code exe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Good database design for recall and comparison of 2D data arrays? I am looking to store 2D arrays of 900x100 elements in a database. Efficient recall and comparison of the arrays is important. I could use a table with a schema like [A, x, y, A(x,y)] such that a single array would compromise 90,000 records. This s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Date Conversion with SQL Server/Reporting Services I have 2 fields in the database month (numeric) and year (numeric) and I want to combine them in a report that combines those 2 fields and format them with MMM-YYYY. e.g 7-2008 becomes Jul-2008. How do I do that?
A: DateSerial is the correct answer:
http://msdn.mic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Asp.Net MVC: How do I get virtual url for the current controller/view? Is it possible to get the route/virtual url associated with a controller action or on a view? I saw that Preview 4 added LinkBuilder.BuildUrlFromExpression helper, but it's not very useful if you want to use it on the master, since the controlle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Why are no Symbols loaded when remote debugging? I want to use remote debugging.
The program that I want to debug runs on machine b.
Visual Studio runs on machine a.
On machine b I have a folder with the following files:
*
*msvcr72.dll
*msvsmon.exe
*NatDbgDE.dll
*NatDbgDEUI.dll
*NatDbgEE.dll
*NatDbgEEUI.dll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: When should I use 'self' over '$this'? In PHP 5, what is the difference between using self and $this?
When is each appropriate?
A: The keyword self does NOT refer merely to the 'current class', at least not in a way that restricts you to static members. Within the context of a non-static member, self also provides... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2198"
} |
Q: C++ blogs that you regularly follow? What are all the C++ blogs that you follow?
Please add one url for one posting.
A: Sutter's Mill
A: Google Testing Blog covers all kinds of great testing tips and techniques.
A: Andrew Koenig's Blog
A: Reddit C++
A: https://stackoverflow.com/questions/tagged/c++ ;-)
A: mr-e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "183"
} |
Q: Does the GroupBox Header in WPF swallow mouse-clicks? Have a look at this very simple example WPF program:
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/151979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Server side virus scanning I need to scan uploaded files for viruses on a Linux server, but I'm not sure how to go about it.
What are my options, if any? I'm also interested in how the scanners perform when multiple users send multiple files at the same time.
A: If you're concerned about performance, consider using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How can currying be done in C++? What is currying?
How can currying be done in C++?
Please Explain binders in STL container?
A: Some great answers here. I thought I would add my own because it was fun to play around with the concept.
Partial function application: The process of "binding" a function with only some o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: change mime type of output in php I've got a php script. Most of the time the script returns html, which is working fine, but on one occasion (parameter ?Format=XML) the script returns XML instead of HTML.
Is there any way to change the returned mime type of the php output on the fly from text/html to text/xml or ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: .NET Micro Framework on a ARM Cortex-M3 Core I have a RDK-IDM from Luminary Micro. This board has a 32-bit ARM® Cortex™-M3 core. Has anybody tried to run a .NET Micro Framework application on such a device?
A: I don't have any hands on experience but based on http://www.microsoft.com/netmf/about/gettingstarted.mspx... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Detecting CPU architecture compile-time What is the most reliable way to find out CPU architecture when compiling C or C++ code? As far as I can tell, different compilers have their own set of non-standard preprocessor definitions (_M_X86 in MSVS, __i386__, __arm__ in GCC, etc).
Is there a standard way to detect the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "109"
} |
Q: Will a future version of .NET support tuples in C#? .Net 3.5 doesn't support tuples. Too bad, But not sure whether the future version of .net will support tuples or not?
A: I've just read this article from the MSDN Magazine: Building Tuple
Here are excerpts:
The upcoming 4.0 release of Microsoft
.NET Framework ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "69"
} |
Q: Deploying Websphere Portals onto a 6.1 Server Any time I try to publish my Portal project on a Websphere Portal 6.1 Server, I get the following error message:
Portal project publishing is not supported on WebSphere Portal v6.1 Server
Is that really true or have I done something wrong?
I'm trying to deploy a portal ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WSDL validator? Is there any online service available to validate Web Service WSDL file?
A: If you're using Eclipse, just have your WSDL in a .wsdl file, eclipse will validate it automatically.
From the Doc
The WSDL validator handles validation
according to the 4 step process
defined above. Steps 1 and 2 are b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "86"
} |
Q: How to select all users who made more than 10 submissions I have a submission table that is very simple: userId, submissionGuid
I want to select the username (simple inner join to get it) of all the users who have more than 10 submissions in the table.
I would do this with embedded queries and a group by to count s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Are there any OK image recognition libraries for .NET? I want to be able to compare an image taken from a webcam to an image stored on my computer.
The library doesn't need to be one hundred percent accurate as it won't be used in anything mission critical (e.g. police investigation), I just want something OK I can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: Structuring projects & dependencies of large winforms applications in C# UPDATE:
This is one of my most-visited questions, and yet I still haven't really found a satisfactory solution for my project. One idea I read in an answer to another question is to create a tool which can build solutions 'on the fly' for proje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How to measure performance in a C++ (MFC) application? What good profilers do you know?
What is a good way to measure and tweak the performance of a C++ MFC application?
Is Analysis of algorithms really neccesary? http://en.wikipedia.org/wiki/Algorithm_analysis
A: I strongly recommend AQTime if you are staying on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is it OK to inspect properties beginning with underscore? I've been working on a very simple crud generator for pylons. I came up with something that inspects
SomeClass._sa_class_manager.mapper.c
Is it ok to inspect this (or to call methods begining with underscore)? I always kind of assumed this is legal though f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: If you change RightToLeft, ShowInTaskbar properties, Form.ShowDialog() unexpectedly ends Dialog closes with Cancel result, no exceptions, as if you have pressed its close button.
The only safe place to set RightToLeft property is in the form constructor.
It occured to me that this information might save somebody e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Display Boolean Field in Visual Studio Report Designer I'm trying to display a boolean field in Report Designer in Visual Studio 2008. When I tried to run it, an error occurred:
"An error has occurred during report processing.
String was not recognized as a valid Boolean."
I tried to convert it using CBool(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL schema to hold history of employee actions when employees come/go/get promoted, etc I'm writing an app that contains the following tables: (1) employee_type, (2) employee and (3) employee_action.
Employee_action is foreign-keyed to employee, and contains a description of what happened and the date of the event, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Programming against interfaces: Do you write interfaces for all your domain classes? I agree, that programming against interfaces is a good practice. In most cases in Java "interface" in this sense means the language construct interface, so that you write an interface and an implementation class and that you use the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Fixed point combinators in C++ I'm interested in actual examples of using fixed point combinators (such as the y-combinator in C++. Have you ever used a fixed point combinator with egg or bind in real live code?
I found this example in egg a little dense:
void egg_example()
{
using bll::_1;
using bll::_2;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: ASP.NET Single Login - Is distributing session the answer We have 5 balanced web servers with various websites.
What I am trying to achieve is to ensure a single login.
i.e. the same user account cannot login to the same website more than once at any given time.
The method i'm considering for solving this, is to sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Logging/monitoring all function calls from an application we have a problem with an application we're developing. Very seldom, like once in a hundred, the application crashes at start up. When the crash happens it brings down the whole system, the computer starts to beep and freezes up completely, the only way to re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: I want to prevent ASP.NET GridView from reacting to the enter button I have an ASP.NET page with a gridview control on it with a CommandButton column with delete and select commands active.
Pressing the enter key causes the first command button in the gridview to fire, which deletes a row. I don't want this to happe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: MVC tutorial that doesn't rely on a framework? I want to learn MVC "architecture pattern" but I don't want to jump into a framework like Rails or Django just yet. I want to understand the concept first and write some simple code in my currently familiar environment, which happens to be PHP/HTML/CSS/MySQL. I don't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "62"
} |
Q: Problems using jeditable and autogrow I work on a Webproject using jQuery and CakePHP. I use jeditable as an inplace edit plugin. For textareas I extend it using the autogrow plugin.
Well, I have two problems with this:
*
*First, autogrow does only work on Firefox, not on IE, Safari, Opera and Chrome.
*Second, I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Gaussian distributions with PHP on a 24h time period How can I set points on a 24h period spreaded by the Gaussian distributions? For example to have the peak at 10 o'clock?
A: The following code generates a gaussian distributed random time (in hours, plus fractions of an hour) centered at a given time, and with a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Are there any open source projects using DDD (Domain Driven Design)? I'm trying to understand the concepts behind DDD, but I find it hard to understand just by reading books as they tend to discuss the topic in a rather abstract way. I would like to see some good implementations of DDD in code, preferably in C#.
Are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Animation in C++ What are ways to draw animations in C++? GDI+? OpenGL? Would you recommend a class pattern in particular to get the drawing and redrawing done?
Do you know of any open source project where animations are made so I can take a peek at the code?
Where would you start if you wanted to code geometrical ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using Lucene to count results in categories I am trying to use Lucene Java 2.3.2 to implement search on a catalog of products. Apart from the regular fields for a product, there is field called 'Category'. A product can fall in multiple categories. Currently, I use FilteredQuery to search for the same search term wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Animated Gifs in Flex 3 Believe it or not I need a way of displaying animated gifs in Flex 3. This guy has a component for sale but it's Flex 2 only: http://dougmccune.com/blog/2007/01/19/how-to-load-animated-gifs-using-adobe-flex-20/.
And I’ve implemented this example: http://www.bytearray.org/?p=95, but for larger... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ActionUrl in ASP.NET MVC Preview 5 I don't need a Link but rather only the href= part of the ActionLink.
But if I call Html.ActionLink(...) I get a back.
Is there a way to just return the URL of the Action while not getting the ?
A: Edit: in response to commment, now including parameters:
<% =Html.BuildUrlFromExp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Java 1.4 synchronization: only allow one instance of method to run (non blocking)? I have a class proposing translations utilities. The translations themselves should be reloaded every 30 minutes. I use Spring Timer support for that. Basically, my class looks like :
public interface Translator {
public void load... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Setup wxWidget in Netbeans 6.1 C++ On MS Windows? Im running Netbeans 6.1 with C++ Plugin and cygwin (gcc compiler) how do I setup wxWidget to work with it?
A: http://www.daltonfilho.com/2008/02/23/wxwidgets-on-windows-using-netbeans-60-with-mingw-msys/ seams to work.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/152140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using noweb on a large Java project Has anyone used the noweb literate programming tool on a large Java project, where several source code files must be generated in different subdirectories? How did you manage this with noweb? Are there any resources and/or best practices out there?
A: Noweb will dump out files re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What authentication to pick for the cross-platform WCF service? What type of authentication would you suggest for the service that is:
*
*implemented as WCF and exposed via
varios enpoints (including XML-RPC)
*has to be consumed easily by various cross-platform clients
Why?
Options that I'm aware of are:
*
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I create a desktop icon for a ClickOnce application? I have read in some of the ClickOnce posts that ClickOnce does not allow you to create a desktop icon for you application. Is there any way around this?
A: In Visual Studio 2017 and 2019 you can do the following:
Go to Project Properties -> Publish -> Manifes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Java: StringBuffer & Concatenation I'm using StringBuffer in Java to concat strings together, like so:
StringBuffer str = new StringBuffer();
str.append("string value");
I would like to know if there's a method (although I didn't find anything from a quick glance at the documentation) or some other way to add "pad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Composite Oriented Programming (COP), .NET 4.0, MEF, and the Oslo Repository There seems to have been some interest over the past year around COP within the .NET community (ala Qi4j). A few folks have rolled there own COP frameworks (see links below) and it would appear .NET 4.0's Dynamic Dispatch and MEF might have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.