text string | meta dict |
|---|---|
Q: TortoiseSvn and Windows Server 2008 user account control Here is the question:
Can TortoiseSvn work on Windows 2008 without turning off User Account Control?
Here is the story:
I just moved my test server to Windows 2008 and I am having problems with TortoiseSvn. I am logged on as an administrator, but when I go t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: How to remove a field from SQLServer2005 table I tried this:
ALTER TABLE My.Table DROP MyField
and got this error:
-MyField is not a constraint.
-Could not drop constraint. See previous errors.
There is just one row of data in the table and the field was just added.
EDIT:
Just to follow up, the sql was missing COLU... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Approaches to a Wiki - Database hybrid I need a database where one (or more) fields behave like a wiki. I want the free-form content creation aspects of a wiki bolstered by the strict semantic structure of a database.
Specifically, I need this database field to hold wiki-style markup, track multi-user changes, allo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Best way to search large file for data in .net I am working on a project where I search through a large text file (large is relative, file size is about 1 Gig) for a piece of data. I am looking for a token and I want a dollar value immediately after that token. For example,
this is the token 9,999,999.99
So he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where in an Eclipse workspace is the list of projects stored? I use Eclipse with "external" projects - i.e. projects created from existing source.
Poking around in the workspace files, I cannot find any reference to these projects. My question is: how does Eclipse keep track of these projects?
I'd like to be able to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "125"
} |
Q: How do I memory manage UIViewControllers with a navigation controller? So yeah, I'm a Java guy in this crazy iPhone world. When it comes to memory management I stiill don't have a very good idea of what I'm doing.
I have an app that uses a navigation controller, and when it's time to go on to the next view I have c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Find the ip address of a remote object in .net remoting I have a client-server application that uses .net remoting. The clients are in a LAN and i do not know their location in advance.
Sometimes we do file transfers and as an optimization I want to determine if a client is in fact on the same machine as the server ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Persisting Dates to SQLite3 in an iPhone Application I am developing an iPhone application that persists data to a SQLite3 database.
For each row I persist I wish to include a 'created date' and a 'last modified date'
My question is what is the recommend approach for storing this information in a table?
The proper... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: What is the use of const overloading in C++? In C++, a function's signature depends partly on whether or not it's const. This means that a class can have two member functions with identical signatures except that one is const and the other is not. If you have a class like this, then the compiler will decide which ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "77"
} |
Q: When should an application honor case sensitivity from input? I recently rolled an application that automatically encrypted a file output from another internal system using PGP and then sftp’d to a foreign target server directory where it was to be consumed by a third-party application. I have been trying to trouble... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: alter index across schemas I am synchronizing tables using a stored PL/SQL procedure as part of a web application - when they hit a button it does the sync. The PL/SQL is executing as user A, but needs to disable indexes and sync a couple of tables in schema B. I can't get user A to 'alter index B.indexName unusab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I drop a table if it exists in SQL Server 2000? I have a DTS package that drops a table then creates it and populates it but sometimes something happens and the package fails after the drop table. If it's rerun it fails cuz the table hasn't been created yet.
Is there something like "if exists" for SQLServ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Resetting Waitable Timers From MSDN:
The CancelWaitableTimer function does not change the signaled state of the timer. It stops the timer before it can be set to the signaled state and cancels outstanding APCs. Therefore, threads performing a wait operation on the timer remain waiting until they time out or the ti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: TechNet or MSDN Subscription? I'm just a one-man software shop, and I currently have an MSDN subscription. It is coming up for renewal soon, and it looks like it's going to cost a small fortune. I see that TechNet subscriptions cost significantly less money, and seem to include all of the same software. Am I missing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How to restrict the CPU usage a C# program takes? I am developing a C# program, and i have one function that consumes too much CPU. I would like to know a way to control this by code (not with any external application) and restrict the percentage of CPU usage.
For example, if it uses 90% of the CPU usage, to make m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: delay JQuery effects I want to fade out an element and all its child elements after a delay of a few seconds. but I haven't found a way to specify that an effect should start after a specified time delay.
A: setTimeout(function() { $('#foo').fadeOut(); }, 5000);
The 5000 is five seconds in milliseconds.
A: I use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Validation in the middle tier I want to do validation on my business code. I'm thinking of 2 ways to do this.
One, do the validation on my class property setters in the following fashion
class Student{
public string Name{
get { return _name; }
set {
if (value.IsNullOrEmpty) throw exce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to stop a running process during an MSI based un-install? I'm using Wise Package Studio 7.0 SP2 on Windows XP.
I've got an MSI Wrapped EXE installation that goes about happily installing some files and then running one of the files from the installation which we can refer to as app.exe.
So on the "Execute Deferr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to test Controller Filters in Ruby on Rails and Test::Unit We have a large application in Ruby on Rails with many filters. Some of these filters can be complex. I am looking for a way to individually test these filters with a unit test. Right now I test them by testing them through an action that uses them wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What causes a TCP/IP reset (RST) flag to be sent? I'm trying to figure out why my app's TCP/IP connection keeps hiccuping every 10 minutes (exactly, within 1-2 seconds). I ran Wireshark and discovered that after 10 minutes of inactivity the other end is sending a packet with the reset (RST) flag set. A google searc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "159"
} |
Q: http to https to http using mod_rewrite and IBM http server Ok I have an apache IBM HTTP Server WAS 6.1 setup
I have my certs correctly installed and can successfully load http and https pages.
After a successful j_security_check authentication via https, I want the now authorized page (and all subsequent pages) to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I get the SID of the current Windows account? I am looking for an easy way to get the SID for the current Windows user account. I know I can do it through WMI, but I don't want to go that route.
Apologies to everybody that answered in C# for not specifying it's C++. :-)
A: This should give you what you need... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Creating Custom Field Types and Custom Content Types Does anyone have any good links for developing custom field and content types that doesn't involve using VSeWSS? Most of the stuff I have seen on the web requires installing VSeWSS, I would rather build them from scratch with just VS2005.
Thanks
A: I used these ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: data access layer - subsonic, C# 2.0 digging around subsonic, i came across this
link text
good article but have some ?'s
now i want the option to return either a IList or Dataset, would I create an abstarct factory for this, if so can I have one generic method which would take in either IList or Dataset as a ref pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to pass variables like arrays / datatable to SQL server? Sometimes you need to upgrade the database with many rows that you have in a datatable or you have an array full of data, instead of putting all this data together in a string and then splitting in SQL SERVER, or instead of iterating the datatable in the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Updating many-to-one relationship I have a User object that has a Country object on it. I map this with a many-to-one tag in the User mapping file:
<many-to-one name="Country" column="CountryID" cascade="none"/>
How do I update a User's country?
At the moment my UI has a dropdown of countries and the ID of the new ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Howto? Parameters and LIKE statement SQL I am writing a searching function, and have thought up of this query using parameters to prevent, or at least limit, SQL injection attacks. However, when I run it through my program it does not return anything:
SELECT * FROM compliance_corner WHERE (body LIKE '%@query%') OR ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: Sorting PHP Iterators Is there a simple way to sort an iterator in PHP (without just pulling it all into an array and sorting that).
The specific example I have is a DirectoryIterator but it would be nice to have a solution general to any iterator.
$dir = new DirectoryIterator('.');
foreach ($dir as $file)
echo ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Select one column DISTINCT SQL Added: Working with SQL Server 2000 and 2005, so has to work on both. Also, value_rk is not a number/integer (Error: Operand data type uniqueidentifier is invalid for min operator)
Is there a way to do a single column "DISTINCT" match when I don't care about the other columns returned... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do I use an asp.net user control in another user control? I have a user control (gallery.ascx) and I want to use the photo.ascx control in the gallery control. I've added this register at the top of gallery.ascx, but it still can't find photo:
<%@ Register TagPrefix="ssctrl" TagName="photo" Src="controls/photo.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there a good embeddable code widget for blogs My co-founder is currently asking on our blog for an embeddable code widget.
http://devver.net/blog/2008/10/someone-please-build-an-awesome-embeddable-code-widget/
Basically we want something like http://pastie.org/ or http://codepad.org/ but we really want to embed t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is SomeClass super T> not equivalent to SomeClass in Java generic types? I noticed the specificaition for Collections.sort:
public static <T> void sort(List<T> list, Comparator<? super T> c)
Why is the "? super" necessary here? If ClassB extends ClassA, then wouldn't we have a guarantee that a Comparator<Class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What does the new Facebook Connect platform offer over a traditional Facebook App? Facebook Connect seems like the cool new way to leverage a user's Facebook account on your own site (get their friends list, write to their profile, etc). What I don't understand is what the new Facebook Connect platform offers over ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Changing the name in the header for a resource handler in C# I have a resource handler that is Response.WriteFile(fileName) based on a parameter passed through the querystring. I am handling the mimetype correctly, but the issue is in some browsers, the filename comes up as Res.ashx (The name of the handler) instead... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Passing state to a callback in JavaScript an appropriate use of closures? Suppose you want to make an async request in JavaScript, but you want to pass some state along to the callback method. Is the following an appropriate use of closures in JavaScript?
function getSomethingAsync(someState, callback) {
var req... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Reading files from own domain results in 404 When I try to use curl or file_get_contents to read something like http://example.com/python/json/ from http://example.com/ I should be getting a JSON response, but instead I get a 404 error. Using curl or any other method outside my own domain works perfectly well.
echo ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Passing a Class Object to a function (probably by pointer not reference) C++ So let's say I have two different functions. One is a part of the BST class, one is just a helper function that will call on that Class function. I will list them out here.
sieve(BST<T>* t, int n);
this function is called like this: sie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is something similar to ServiceLoader in Java 1.5? How do I discover classes at runtime in the classpath which implements a defined interface?
ServiceLoader suits well (I think, I haven't used it), but I need do it in Java 1.5.
A: javax.imageio.spi.ServiceRegistry is the equivalent with prior Java versions. It's av... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Tuning/Best Practices Inetsoft Style Report BI Tool? Is anyone using the business intelligence tool Inetsoft Style Report ? I'm stuck with it and was wondering if anyone has advice on tuning and/or best practices for server admin? We are running on a fast Solaris box using Tomcat with a db2 database.
A: You hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get Drive Size in Java 5 I want to get the size of a drive (or UNC path pointing to a partition would be nice, but not required), as well as free space for said drive (or UNC path). This doesn't need to work cross platform; only in Windows.
I know it's easy to do in Java 6, but that's not an option; I'm stuck with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get GDI objects associated to a process I am investigating GDI leaks issue in one of our smart-client application.
I am looking for a tool (like tasklist) to get the GDI objects associated to a process. I can see the GDI objects in taskmanager, But my requirement to capture it periodically somewhere. For exam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: ActiveRecord find starts with Really simple question - how do I do a search to find all records where the name starts with a certain string in ActiveRecord. I've seen all sorts of bits all over the internet where verbatim LIKE SQL clauses are used - but from what I've heard that isn't the 'correct' way of doing it.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Best hashing algorithm in terms of hash collisions and performance for strings What would be the best hashing algorithm if we had the following priorities (in that order):
*
*Minimal hash collisions
*Performance
It doesn't have to be secure. Basically I'm trying to create an index based on a combination of pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: ordering by collection count in nhibernate Is there a way of ordering a list of objects by a count of a property which is a collection?
For arguments sake let's say I have a question object with a question name property, a property that is a collection of answer objects and another property that is a collection of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I implement "create" controller action for a view with many fields in ASP.NET MVC I'm new to ASP.NET MVC so this may be a stupid question.
I have an account object that has many parameters. I've figured out a strategy to break this down into a "wizard"-like interface that will walk a user through collecting ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it possible to upgrade the DB schema with EJB? Lets say I have an EJB application which defines some entities and relations among them. I figured the DB schema can easily be created from the entities. So now the app works but after a while a need to change some relations, e.g. a one-to-one needs to become a one-t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JSF and SunOne Webserver 6.1 Does anybody know which JSF version is most suitable to use when deploying to SunOne 6.1 SP2 Webserver?
More important where I can find that type of information?
Thanks,
Alejo
A: If you are going to use the Sun ONE Server 6 please note that you must use JSF 1.1 and not JSF 1.2 (the late... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Benefits of DataBinding over Manually Querying / Adding to Control I've been a C# programmer for about 2 years total, and professionally for a little more than 1. I work at a company as a developer on an application that began before the days of .NET 2. My question is this:
What is the benefit to use databinding fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Design Question - Control Array Ok, I know how to do this, but I want to know if this is the BEST way.
I have a table called "Topics" which has a list of topics(obv). I have a page with about 20 (+/-10) check boxes with all the different topics a user can subscribe to. I figured the best way to do this is to make a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Silverlight 2 Sidebar Gadget How do you display a Silverlight 2.0 application in a Vista Sidebar gadget? Whenever I load a gadget with the standard Silverlight 2 object tag, I get the no-silverlight default content instead of the app. So, what's the trick to allowing it to run?
This is how I am currently trying to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Why is lock(this) {...} bad? The MSDN documentation says that
public class SomeObject
{
public void SomeOperation()
{
lock(this)
{
//Access instance variables
}
}
}
is "a problem if the instance can be accessed publicly". I'm wondering why? Is it because the lock will be held longer than nec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "532"
} |
Q: Validate QueryStrings in ASP.NET Is there a library out there which I can use in my current ASP.NET app, to validate queryStrings?
Edit ~ Using Regex to look for patterns, like string, only, numeric only, string with length x,...etc
Thanks
A: Don't know about a library, but you can use to check if the querystring e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using complex data types from Java in Axis webservice I am currently developing a Java app which handles a SOAP webservice.
The problem lies after I parse the WSDL [the Parser object from Apache Axis does it for me], and I create the call.
When I try to invoke it, I have to pass a Object[] to assign the parameters... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Do any .NET DLLs exist that implement luac's functionality? Does anyone know of any DLLs (preferably .net) that encapsulate the lua 5.1 compiler? I'm working on a .net project where part of it needs to compile lua scripts, and i would rather have a DLL that i could send script code to instead of sending the script ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Create an empty object in JavaScript with {} or new Object()? There are two different ways to create an empty object in JavaScript:
var objectA = {}
var objectB = new Object()
Is there any difference in how the script engine handles them? Is there any reason to use one over the other?
Similarly it is also possible ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "414"
} |
Q: how do you make a heterogeneous boost::map? I want to have a map that has a homogeneous key type but heterogeneous data types.
I want to be able to do something like (pseudo-code):
boost::map<std::string, magic_goes_here> m;
m.add<int>("a", 2);
m.add<std::string>("b", "black sheep");
int i = m.get<int>("a");
int j ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Select from a nested query in Oracle 9i In MS SQL 2005 or T-SQL, you can do something like:
SELECT T.NAME, T.DATE
FROM (SELECT * FROM MyTable WHERE ....) AS T
I failed to try the similar SQL on Oracle 9i DB. In MS SQL, the nested SQL is treated as a temporary/dynamic view created on fly and destroyed afterward. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Embedded systems worst practices? What would you consider "worst practices" to follow when developing an embedded system?
Some of my ideas of what not to do are:
*Avoid abstracting the hardware layer, instead spreading hardware accesses throughout the code.
*Not having any type of emulation environment, having o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Invoking JavaScript code in an iframe from the parent page Basically, I have an iframe embedded in a page and the iframe has some JavaScript routines I need to invoke from the parent page.
Now the opposite is quite simple as you only need to call parent.functionName(), but unfortunately, I need exactly the opposite ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "667"
} |
Q: typedefs for templated classes? Is it possible to typedef long types that use templates? For example:
template <typename myfloat_t>
class LongClassName
{
// ...
};
template <typename myfloat_t>
typedef std::vector< boost::shared_ptr< LongClassName<myfloat_t> > > LongCollection;
LongCollection<float> m_foo;
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can I perform an "or" operation in LINQ to objects? Looking up LINQ and Or in google is proving somewhat difficult so here I am.
I want to so the following:
(from creditCard in AvailableCreditCards
where creditCard.BillToName.ToLowerInvariant().Contains(txtFilter.Text.ToLowerInvariant())
**or creditCard.CardNumber.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: STL priority queue with duplicate keys - is it possible? I need to store my class A objects in some data structure.
In addition, i would like them to be automatically sorted according to a key, which is in my case an embedded object of another class B.
Thus I decided to use a STL priority queue.
However it is possi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Passing int list as a parameter to a web user control I want to pass an int list (List) as a declarative property to a web user control like this:
<UC:MyControl runat="server" ModuleIds="1,2,3" />
I created a TypeConverter to do this:
public class IntListConverter : System.ComponentModel.TypeConverter
{
public ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Script a ruby command-line app; best way to do this? I have a command line Ruby app I'm developing and I want to allow a user of it to provide code that will run as a filter on part of the process. Basically, the application does this:
*
*read in some data
*If a filter is specified, use it to filter data
*proc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Asking for code design advice: working with VB.Net and Ms-Access Perhaps naively, I created a class (AdminDatabase) to handle connection to different MS-Access database files (see code at bottom). The purpose of the class was to allow retrieval of data from a MS-Access database and to manipulate the data. This wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Can I run Visual Studio 2008 x86 on Windows Vista x64? Is it possible to run the 32-bit version of Visual Studio 2008 Professional on a Windows Vista 64-bit system?
*
*Are there any known caveats that I would need to be aware of?
*Would have to install the x64 version of the .NET Framework?
*Would there be any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Minimum time between subsequent AJAX calls In AJAX applications that need to poll the server in regular intervals (like a chat applications), what is the recommended minimum time between two calls, so that the update is done as quickly as possible? What times are considered as hogs for the server and the client?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get a function name as a string? How do I get a function's name as a string?
def foo():
pass
>>> name_of(foo)
"foo"
A: import inspect
def my_first_function():
func_name = inspect.stack()[0][3]
print(func_name) # my_first_function
or:
import sys
def my_second_function():
func_name = sys.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1021"
} |
Q: How to reference an input within a form in jQuery An easy jQuery question.
I have several identical forms ( except their name ) on one page with a few hidden inputs in each. I want to refer to them by using the form name and then the input name. ( the input names are not unique in my page )
So for instance:
var xA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I create a video from a directory of images in C#? I have a directory of bitmaps that are all of the same dimension. I would like to convert these bitmaps into a video file. I don't care if the video file (codec) is wmv or avi. My only requirement is that I specify the frame rate. This does not need to b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: make an ID in a mysql table auto_increment (after the fact) I acquired a database from another developer. He didn't use auto_incrementers on any tables. They all have primary key ID's, but he did all the incrementing manually, in code.
Can I turn those into Auto_incrementers now?
Wow, very nice, thanks a ton. It ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: How to shrink a SQL Server Log file with Mirroring enabled? I have several databases for my applications that use SQL Server 2005 mirroring to keep a nice copy of the data somewhere else. Works like a charm, however, the log file just seems to be growing and growing, one is at 15GB for a 3GB database.
Normally, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Casting in VB.NET I would like to be able to cast a value dynamically where the type is known only at runtime. Something like this:
myvalue = CType(value, "String, Integer or Boolean")
The string that contains the type value is passed as an argument and is also read from a database, and the value is stored as strin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Dynamic class method invocation in PHP Is there a way to dynamically invoke a method in the same class for PHP? I don't have the syntax right, but I'm looking to do something similar to this:
$this->{$methodName}($arg1, $arg2, $arg3);
A: You can also use call_user_func() and call_user_func_array()
A: If you're wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "109"
} |
Q: Stacking rectangles to take as little space as possible I have a program that will calculate the minimal area taken by fitting rectangles together.
Input: Rectangles of different height and width.
Output: One rectangle that contains all these rectangles.
Rules: One cannot turn or roll the rectangles around and they ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: EJB3 Business Logic Patterns & Practices I'm in the process of developing a multi-tiered financial processing application in Java using EJB3 (Hibernate + Glassfish for the app and web services layer, Lift on Glassfish for the web UI) and I'm struggling with the question of where to put my business logic.
When this p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: WYSIWIG Editor Not Working with Update Panels (AJAX) in .NET We're testing WYSIWYG editors, and we cannot see to make them work with asynchronous postbacks. We put the TextBox(/textarea) in the UpdatePanel and call a simple save to the DB, and all of our WYSIWYG toolbars disappear, leaving us with a bunch of HTML i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: script languages on windows mobile - something similar to python @ nokia s60 I try to find something similar to nokia's python for windows mobile based devices - a script interpreter [in this case also able to create standalone apps] with easy access to all phone interfaces - ability to make a phone call, send SMS, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I determine if a URL redirects? If I have a URL (eg. http://www.foo.com/alink.pl?page=2), I want to determine if I am being redirected to another link. I'd also like to know the final URL (eg. http://www.foo.com/other_link.pl). Finally, I want to be able to do this in Perl and Groovy.
A: Well, I know noth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What is the best way to parse a date in MM/DD/YY format and adjust it to the current / previous century? One of our customers wants to be able to enter a date with only 2 digits for the year component. The date will be in the past, so we want it to work for the previous century if the 2 digit year is after the curre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Why does this generic method require T to have a public, parameterless constructor? public void Getrecords(ref IList iList,T dataItem)
{
iList = Populate.GetList<dataItem>() // GetListis defined as GetList<T>
}
dataItem can be my order object or user object which will be decided at run time.The above does not w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SharePoint stsadm addsolution - fails with permission based error (object ref) Attempting to deploy a MOSS solution to a UAT server from dev server for the first time. On executing this command
stsadm -o addsolution -filename xxx
I get a "Object reference not set to an instance of an object"
Based on these links: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Escape angle brackets in a Windows command prompt I need to echo a string containing angle brackets (< and >) to a file on a Windows machine. Basically what I want to do is the following:
echo some string < with angle > brackets >>myfile.txt
This doesn't work since the command interpreter gets confused with the ang... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "106"
} |
Q: Add columns to an Access (Jet) table from .NET Our app (already deployed) is using an Access/Jet database. The upcoming version of our software requires some additional columns in one of the tables. I need to first check if these columns exist, and then add them if they don't.
Can someone provide a quick code sample... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CAML from Sharepoint to HTML I'm invoking one of SharePoint's web service APIs that returns a CAML fragment. I've searched the interweb far and wide but I've been unable to figure out how to make this CAML fragment to render as "normal" HTML that I can render in a more sane environment like Plumtree, WLP, Liferay or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Rename a file with a batch script How do you rename a file to include the datetime using the windows command line?
A: Here is a similar question:
How to get current datetime on Windows command line, in a suitable format for using in a filename?
Hope this helps.
A: Check out StampMe.cmd at http://www.ss64.com/nt/sy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: TBC files from an old and unknown database system I have a bunch of *.TBC files from a very old application that runs in MS-DOS called TURBOLAB. Anyone know which DB System use files with a TBC extension.
I've tried renaming the files to *.dbf to check if they are dBase files with no luck.
Any idea?
A: Judging by ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET AjaxControlToolKit Accordion set active pane via javascript I would like to be able to change the active pane of an accordion using javascript.
I see a behavior set_SelectedIndex but I can not seem to get it to work.
How can I find out what the supported methods are for this control?
How can I set the select... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How does PHP do recursive function calls? PHP (among others) will execute the deepest function first, working its way out. For example,
$text = strtoupper(str_replace('_', ' ', file_get_contents('file.txt')));
I'm doing something very similar to the above example for a template parser. It looks for the tags
{@tag_n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Serial port WriteFile() freeze I have a simple application, which should send a single byte to a serial port once a minute. But sometimes, from some strange reason, it freezes somewhere in the WriteFile() function. Both sw and hw flow controls are turned off. I've googled some stuff about pending read operations per... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: VS2008 Code Coverage - can't find "not covered blocks" I'm running VS2008's Code Coverage against a unit-tested DLL that I'm developing. For some of the functions it claims that 2 blocks are not covered and 50 or so are. When I view the function with the VS2008 highlighting it can't find the uncovered blocks.
The hi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: passing DB Connection object to methods Was wondering if it is recomended to pass a database connection object around(to other modules) or let the method (in the other module) take care of setting it up. I am leaning toward letting the method set it up as to not have to check the state of the connection before usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: one pretty printer "to rule them all" I'm looking for a tool that can pretty-print (AKA tidy or beautify) source code in as many languages as possible. Those I'm particularly keen on include:
*
*Java
*JSP
*HTML
*JavaScript
*SQL
*JSON
*XML
Ideally, the tool should be able to update source files in-plac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to create XML/XSD equivalent of a DataSet or DataTable in VS2008 (or other tool) So today I had to move some tables with data from an MS Access database into XML to be used in a web application. So I thought it would be an easy process to define the table structure as an XSD file in Visual Studio, then load in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a map() function in ExtJS? ExtJS has Ext.each() function, but is there a map() also hidden somewhere?
I have tried hard, but haven't found anything that could fill this role. It seems to be something simple and trivial, that a JS library so large as Ext clearly must have.
Or when Ext really doesn't include ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Windows API colored output to stdout in Powershell/cmd.exe Anyone know where to find a reference that describes how to output color on the Windows CLI interfaces using API and/or stdout?
A: The Win32 console API has a function, SetConsoleTextAttribute, that can be used to set the text foreground and background col... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why use a web service with Linq to SQL? Can anyone tell me what the need/advantage is to using a web service with an asp.net gui and using Linq to SQL? The web service layer seems unnecessary. Linq to SQL is completely new to me and I am researching as I am setting up a new project. Does anyone have any experience w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there anyway to declare a TYPE without a Property in Oracle 10gR2 I want to create a base object that has only methods. The object would be QUEUABLE_OBJECT_TYPE and it will have an ENQUEUE method(s). The Payload of these messages (properties) would be added by subtyping this object.
I get an error that makes it s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I let my DBA pause and resume a stored procedure that is updating every row in a large table? I have a table of about a million rows and I need to update every row in the table with the result of a lengthy calculation (the calculation gets a potentially different result for each row). Because it is time consu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I access BadgerFish notated attributes using javascript? I have created a json object from ruby with cobravsmongoose, however the attributes have the @ symbol in front of them. Whenever I try to access them with standard object notation in JavaScript, such as object.object.object.@attribute I get a parse er... | {
"language": "en",
"url": "https://stackoverflow.com/questions/251659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |