text stringlengths 8 267k | meta dict |
|---|---|
Q: Limiting a date range with exactness in MS SQL / SQL Server 2005 I want to limit a report to return records from Date A through Date B. This is what I have been doing:
declare @startDate varchar(20)
declare @endDate varchar(20)
set @startDate = '01/01/2008'
set @endDate = '04/01/2008'
-- test what are the start and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I handle a NULLable Int column returned from a stored procedure in LINQ to SQL I have a stored procedure that returns two int Values. The first can not be null but the second can actually return a null value. When I try to execute my stored procedure using LINQ to SQL it fails with the statement:
The null... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: LINQ sorting anonymous types? How do I do sorting when generating anonymous types in linq to sql?
Ex:
from e in linq0
order by User descending /* ??? */
select new
{
Id = e.Id,
CommentText = e.CommentText,
UserId = e.UserId,
User = (e.User.FirstName + " " + e.User.LastName).Trim()),
Date = string.Form... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I sort a date of format mm/yy with the jquery tablesorter? I have a table wherein one of the columns displays the date in the mm/yy format viz. 12/08, 01/09, 02/08, etc.
How do I implementing sorting on this column with the jQuery tablesorter (http://tablesorter.com) so that the dates are appropriately sorted... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Php on IIS6 I'm getting 401.1 errors when trying to run a .php file on windows 2003/IIS6
I've been all over the web, given Everyone Full perms on the folder containing the file as well as the file... Nothing.
What am I missing?
A: Here's a step-by-step guide for getting PHP running on IIS 6.
A: *
*can you serve H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PostgreSQL Query Optimization and the Postmaster Process' I currently working with a larger wikipedia-dump derived PostgreSQL database; it contains about 40 GB of data. The database is running on an HP Proliant ML370 G5 server with Suse Linux Enterprise Server 10; I am querying it from my laptop over a private netwo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generate Solution File From List of CSProj I've got alot of projects and I don't have a master solution with everything in it. The reason I want one is for refactoring.
So I was wondering if anybody knew an automatic way to build a solution file. Manually adding all the projects just isn't feasible.
A: And I have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: WPF DataGrid Sync Column Widths I've got two WPF Toolkit DataGrids, I'd like so that when the user resizes the first column in the first grid, it resizes the first column in the second grid. I've tried binding the width of the DataGridColumn in the second grid to the appropriate column in the first grid, but it does... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How do you access HTTP GET parameters in Nginx prior to version 0.7.8? The changelog lists version 0.7.8 as the version that introduces the $arg_X notation to access the HTTP GET parameter X from within nginx.conf.
Unfortunately, the wiki is very up to date. How do you access HTTP GET parameters from within nginx.c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How would I go about creating a new MySQL table with the results of "myisam_ftdump -c"? I'm using myisam_ftdump -c to dump the occurrences of words in my fulltext column. What's the simplest way to insert that information into a new MySQL table?
Thanks for any help, it's appreciated.
A: Dump the results > to a file... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: using static Regex.IsMatch vs creating an instance of Regex In C# should you have code like:
public static string importantRegex = "magic!";
public void F1(){
//code
if(Regex.IsMatch(importantRegex)){
//codez in here.
}
//more code
}
public void main(){
F1();
/*
some stuff happens......
*/
F1();
}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Why does the SqlServer optimizer get so confused with parameters? I know this has something to do with parameter sniffing, but I'm just perplexed at how something like the following example is even possible with a piece of technology that does so many complex things well.
Many of us have run into stored procedures t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Synchronizing eclipse save action rules My team has a fairly rich set of formatting rules and save actions and these rules are evolving. We're looking for a mechanism to define the centrally and propagate them automatically. We don't want to reformat the code base, but we expect the formatting to improve incremental... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How can I make the Tab Drop Down In Sql Server Management Studio display more of the File Names Am I the only person annoyed by this? I don't even know what proc I'm clicking on if the file names have the same prefix, or are longer than the context window width.
A: I find the tab dropdown, as well as the tab names... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Giving estimates for large scale projects in an Agile Environment My firm just got its first large-scale development project inquiry and I would like to use an Agile process. The client has a vision for the application but openly admits to having very few requirements and recognizes that we will have to charge by th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Problem pushing MSI via SMS to hosts that have Windows XP SP3 installed I've created an MSI that installs our application. It installs fine if you run it locally on a machine with Windows XP SP2 or SP3. If you run it through SMS to a machine that has Windows XP SP2 it installs fine. But, if you try to run it through... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HTML Sanitization - bad markup? I've been scanning some off the discussions on sanitizing HTML markup strings for redisplay on a page (e.g. blog comments). In the past I've just unilaterally escaped the markup for re-display.
Does anyone know if there are any solutions out there that go beyond just removing "unsafe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: php shell_exec() through cygwin I wrote a script that compiles LaTeX code through pdftex. The trouble is that pdftex only runs on linux.
I am accomplishing this task with the use of shell_exec().
I don’t really have the ability to set up a linux box as a web server. I have my client computer, but it is behind a fire... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Nhibernate foreign key to foreign key collection mapping? I have a Staff and e SecuredPage entity and the properties are below
Staff
id
Name
LastName
Level // SecuredPage.RoleId
SecuredPage
id
PageId
RoleId // Staff.Level
I want to have a collection of SecuredPage in Staff entity, so it s a one-to-many but i couldnt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error Dialog Not Being Destroyed I am working on a project that is using a JTable to display, among other things, a column of dates. We needed validation for the user input for dates, so I have implemented a combination of masking for format validation and parsing for actual date validation. I have done this using a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it possible to use a primitive type (int) in as a generic type in Java? Specifically, with a SortedMap<Vector<String>, int> I get "dimensions expected after this (int) token." Help!
A: No, this is not possible. Use Integer instead. Autoboxing takes care of the rest (i.e. for most purposes you can program as if y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Parsing data from txt file in J2ME Basically I'm creating an indoor navigation system in J2ME. I've put the location details in a .txt file i.e.
* Locations names and their coordinates.
* Edges with respective start node and end node as well as the weight (length of the node).
I put both details in the same file s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to map a deeper hierarchy in nhibernate I have this object graph, I want to map:
*
*abstract Account (username, password, ...)
*
*abstract Customer (shoppingcart, orders, roles)
*
*IndividualCustomer (user data)
*CorporateCustomer (different user data, company data)
*Administrator (adminroles)
How... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Someone tell me why my database design is stupid, and how I can fix it So I have these vehicles, many different types of them. Every type has its own table, with many attributes. Then I have a "vehicles" table, which holds the ids and types of all the vehicles in every table. Vehicles can have photos, so I have a "p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL - CASE expression inside WHERE I read about using the CASE expression inside the WHERE clause here:
http://scottelkin.com/sql/using-a-case-statement-in-a-sql-where-clause/
I'm trying to use this to filter results from my select statement, based on a contract number which will be passed in by the user's applicati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Does it matter if I include more references and namespaces in a class For example:
using System;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Web.Script.Serialization;
using System.Web.Script.Services;
using System.Web.Security;
using System... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How does Google Analytics send data back to Google? Perhaps I am missing something, but I am just learning javascript.
My understanding of Single Origin Policy is that Google Analytics should not be able to send data back to Google.
How is it able to transmit send data to Google without violating the policy?
A: Rya... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: How can i extend the colors for coloring syntax in eclipse In eclipse menu I go to Window -> Preference. Then, In the Preference Dialog I go to Web -> HTML Files -> Editor -> Syntax Coloring. There I have some Elements. For these Elements I can define my favorite Colors and Styles. But I can define only ONE Color fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Rails: Creating an HTML Snippet with a Variable? I have a submit button that is a block of HTML code because of styling and images to make it look better. (I stole most of it from Wufoo).
This is one every form in the application and I was wondering if there is a cleaner way to do this. Something like a partial or h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET MVC Globalization of Views I am looking at globalizing an application that I have developed in asp.net mvc.
I am currently using resource files to store messages that I present to the user (i.e., when I save something to the database, and the user is shown the message "The whatever was correctly saved", that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Best practice for AJAX calls in .Net 1.1 Well, my latest contract is forcing me into the antique world of .Net 1.1.
Since I have been using jQuery and Rails for quite a while AJAX like solutions to problem keep on popping into my head and I can't help writing them.
So my fairly straight forward problem is that I h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: asp.net: data put in session is available while working in internet explorer but not in opera it's a really weird thing - i have a website that works perfectly in maxthon (internet explorer based browser). i started it in opera and found out that the data put in the Session dictionary on one site, is not available o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where do I begin learning all the different JavaScript technologies/libraries? I'm building a site that's sort of a cross between StackOverflow and Digg (only a different genre). Typically in the past I would have just built it using ASP.Net web forms. However I want to use this project as a way to learn new technol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Why am I getting null object reference error when saving (OnItemUpdating event) the first edit item in a ListView? I'm getting the error "Object reference not set to an instance of an object." when trying to reference a HiddenField (lvEditProjectSteps_hdnStepStatusId for future reference) from the EditItem during th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to setup the Dojo Objective Harness test case structure for testing custom code? I'm looking at using the Dojo Objective Harness (DOH) for testing some custom JavaScript code. To that end I've read the following article:
http://www.ibm.com/developerworks/web/library/wa-aj-doh/index.html
and I have a question ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can use RegEx to match a list of strings in C#? I need to find all the regex matches from a list of strings. For example, I need to be able to take the string "This foo is a foobar" and match any instances of either "foo" or "bar". What would the correct pattern be for this? Also, what input sanitation would I n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ext RadioGroup - How to Access the value of selected radio button? I am having some difficulty accessing the value of the selected radio button in a radiogroup. I've attempted a number of different approaches based upon discussion in other posts on the forum and around the web. Unfortunately haven't been lucky (or s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: creating a registration form Alright let me explain my situation first:
I am part of an organization that "hosts" events. For example, we have an annual camp, skating, hocket/soccer tournaments, dinners, and the like.
Now they want me to design their website. My habit is usually to put it on paper first so I am try... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Session based global variable in Postgresql stored procedure? In Oracle's PL/SQL I can create a session based global variable with the package definition. With Postgresql's PLpg/SQL, it doesn't seem possible since there are no packages, only independent procedures and functions.
Here is the syntax for PL/SQL to dec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Django serialize to JSON I have a Django model (schedule) with the class of entity, that is the parent of Activity, that is the parent of Event.
class Entity(models.Model):
<...>
class Activity(models.Model):
<...>
team_entity = models.ForeignKey(Entity)
<...>
class Event(models.Model):
<...... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Have you tried using MVC for GWT client code? Have you tried using MVC or any other UI pattern for GWT client code. What are the pitfalls/advantages you've faced in different approaches?
A: I think you need to treat GWT just like any other UI framework, like Swing, Cocoa, etc. Everything that makes sense in those... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What technique should be used to prune 2d collision checks? From the outset, collision detection feels like it is an O(n^2) problem.
You have a bunch of objects and you need to check if each object is colliding with any of the other objects. However, I know that it is wildly ineffecient to check each object again... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How can I bind to a property on an element that is in is lower in the visual tree? I don't know if this is the right way to phrase the question or not. Here is a typically databinding example:
<UserControl x:Name="root">
<ListView ItemsSource="{Binding MyItemsSource, ElementName=root}" />
</UserControl>
But thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a CRUD generator utility in Java(any framework) like Scaffolding in Rails? Is there a CRUD generator utility in Java like Scaffolding in Rails? Can be in any framework or even plain servlets. Must generate controllers + views in jsp, not just DAO code...
A: JBoss Seam has a scripting utility called seam-ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: Rails controller does not accept JSON? I am trying to create an ActiveRecord object via a JSON request. However the controller fails to set the variables passed in the parameters in the newly created object. As an example, a person object has two fields: firstname and lastname.
The JSON generated by the JSON.stringi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Fluent interface for rendering HTML Rendering HTML with the HtmlTextWriter isn't incredibly intuitive in my opinion, but if you're implementing web controls in web forms it's what you have to work with. I thought that it might be possible to create a fluent interface for this that reads a bit more like the HTML it o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How does ADO.Net know which version of the SQL Native Client to use if you have both SQL 2005 and 2008 in your environment? How does ADO.Net know which version of the SQL Native Client to use if you have both SQL 2005 and 2008 in your environment?
A: For basic services, they're backward compatible so you don't even... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Collection initialization You can initialize an array like this:
int [ ] arr = { 1, 2, 3, 4, 5 };
but List<T> doesn't allow this:
List<int> list = { 1, 2, 3, 4, 5 };
What's the reason behind this?
After all both allow this:
int [ ] arr = new int [ ] { 1, 2, 3, 4, 5 };
List<int> list = new List<int> { 1, 2, 3, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Will T-Sql SET parameters be reset with pooled .NET connections? The only SET parameter that I have found specific guidance for is SET TRANSACTION ISOLATION LEVEL:
If you issue SET TRANSACTION ISOLATION
LEVEL in a stored procedure or
trigger, when the object returns
control the isolation level is reset
to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you set up solution configuration specific config files? I have a web service that needs different settings for different environments (debug, test, prod). What's the easiest way to setup separate config files for these different environments? Everything I find on the web tells me how to use configuration man... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Can you preserve leading and trailing whitespace in XML? How does one tell the XML parser to honor leading and trailing whitespace?
Dim xml: Set xml = CreateObject("MSXML2.DOMDocument")
xml.async = False
xml.loadxml "<xml>1 2</xml>"
wscript.echo len(xml.documentelement.text)
Above prints out 3.
Dim xml: Set xml = C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: iPhone Development Environment (from scratch) I've developed on Windows and .NET for my whole career so forgive my ignorance on this one.
What would be the steps to setup an iPhone development environment from scratch?
Assume that I have nothing but electricity and an internet connection.
What hardware and software ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: ASP.NET AJAX and DateTime Format on the Client So I've finally got my WCF service setup and talking to browser via ASP.NET AJAX. But I have found that when I populate a html table with my data... the datetime format looks like this:
Fri Jan 02 2009 15:27:12 GMT-0500 (Eastern Standard Time)
On the server I am using t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WPF Enforce only ONE instance of application How do I allow only one instance of a WPF application to run?
Thanks.
A: Old link no longer available :/: http://blogs.microsoft.co.il/blogs/arik/archive/2010/05/28/wpf-single-instance-application.aspx
Suggest having at update posted by @sergio-basurco
Doesn't require VB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Apply Diff in PHP I'm working with the Text_Diff PEAR package to diff to short text documents, where the Text_Diff object is created with a space-delimited list of the words in each document. I was hoping to store the diff in a database, and then apply it when the file is loaded again. Is there an easy way to appl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Get install date from managed code Is there a managed API to retrieve an application's install date using the Product GUID?
Thanks.
Scott
A: The "proper" way to get to that information is to use ::MsiGetProductInfo(). PInvoke should be trivial.
A: Thanks Rob! I've added a complete C# example below.
[DllImport... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Javascript HAML editor Does anyone know of a Javascript based HAML editor out there? I'm looking for for something like TinyMCE that just understands HAML (so it does indenting and highlighting correctly)
I'm thinking of using an editor like this for a dynamic website I'm building.
Clarification
The site I am build... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I setup Continuum to build on svn commits? I had never tried Continuum as a build server until recently when a project required it. I appreciate the integration with Maven builds however I have been unable to find a way to have Continuum build my projects on every Subversion commit (like CruiseControl).
The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a way to express a Postgres literal int in hexadecimal? I have a big list of hexadecimal numbers I'd like to insert into a PostgresQL table. I tried something like this:
INSERT INTO foo (i)
VALUES (0x1234);
...but that didn't work. Is this possible?
A: You can just use
x'1234'::int;
For more information ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: IIS6 FTP ignores NTFS file permissions? In an Intranet environment, I have an FTP server set up for publishing files to websites. A user connected to the production FTP server (allowed) to publish files (allowed) then navigated to a folder that was not hers (allowed) then wrote files there (allowed by FTP, but not b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add class to Django label_tag() output I need some way to add a class attribute to the output of the label_tag() method for a forms field.
I see that there is the ability to pass in an attrs dictionary and I have tested it in the shell and I can do something like:
for field in form:
print field.label_tag(attrs{'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How to Test Standard HTML Forms What tools are best for lightweight testing of HTML forms? My particular use is very light: no multithreading issues nor elaborate test scripts: just fill in a form with particular values and let me click submit.
A Firefox plugin would be fine...
A: Have you looked at Selenium IDE or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to add a whole directory or project output to WiX package We decided to switch from VS integrated setup to WiX.
However, what we currently do is use projects output files as the input for the setup project. This lets us easily add Application Files to a directory (for images, samples, and other resources...) and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: Compact Keyboard Recommendations? Any recommendations for a high-quality compact (no number pad) keyboard, preferably $50 or less?
Criteria:
*
*$50 or less
*Preferably with laptop-style keys (scissor switches instead of rubber
membranes ala cheap desktop
keyboards)
*Quiet (I'm a Model-M kind of guy, but this is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Console interface tutorials and tips (pdcurses) I'm looking for tutorials on using PDCurses library. Unfortunately there is text only documentation, which is more like function reference. Are pdcurses similar enough to ncurses to use ncurses tutorials??? Any tips for making console UI's ???
PS. PDCurses - mingw32.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Compiling with g++ using multiple cores Quick question: what is the compiler flag to allow g++ to spawn multiple instances of itself in order to compile large projects quicker (for example 4 source files at a time for a multi-core CPU)?
A: distcc can also be used to distribute compiles not only on the current machi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "190"
} |
Q: A .bat or .wsh script that can search for files I am looking for some examples of a .bat OR .wsh script that can do the following:
*
*Recursively read file names in a directory with a user-provided extension (.dll, .exe, etc)
*Search a user-provided directory for the above file names
*Generate a txt or xls repo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: ASP.NET MVC and JQuery get info to controller I am totally confused on how to do ajax stuffs with jQuery and it seems the more I try the more confused I get. At this point all I want to do is get data to my controller using jQuery ajax. Some code for my jquery ajax call is.
$(function() {
$('#buttonAddLink').cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I open a file using its default application from Perl on Windows? I have a directory of files that I would like to scan on a regular basis and execute with the default application they are associated with. They are not executable so system("file.torrent"); does not work. How are you able to run files with the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C#: How would I get the current time into a string? How could I get the current h/m/s AM time into a string? And maybe also the date in numeric form (01/02/09) into another one?
A: I'd just like to point out something in these answers. In a date/time format string, '/' will be replaced with whatever the user's dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: Using conditional comments in HTML I am relatively new to web development and learning all the time. I have recently come across 'Conditional Comments' when viewing source code for different websites. I think i now understand what they do but am unsure as to when to use them.
I have seen them mainly used for impleme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How Do I Pass A Method Reference to A Different Method in C# I would like to pass a reference of a method into another method and store it as a variable. Later, I would like to use this reference to define an event handler.
When making an event handler, a method reference is passed like:
myButton.Click += new Route... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How To Get Automatic Registration With Castle Windsor I recently read Ayende's blog post on automatic registration working with XML Configuration. I would like to do exactly what he does, but his code snippet doesn't work for me. The Register method doesn't exist on my container object.
Here's his code:
var containe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: override but don't call How do you declare a method in C# that should be overridden (or overridable) by a dereived class - possibly even outside your assembly - but that should be callable only from within the actual class?
(i.e. like a private virtual function in C++)
[edit]
private virtual is exactly what I intend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: why minus is slower than mod? in that specific case
Const debugTime As String = "hh:mm:ss.fffffff"
Dim i As Integer
Debug.Print("Start " & Now.ToString(debugTime))
For i = 0 To 4000000
j = 5 - 4
Next
Debug.Print("End " & Now.ToString(debugTime))
Debug.Print("Start " & Now.ToStri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SharpZipLib extracted file size Is there a way to find out what the total size of the unextracted archive would be when extracted.
A: try this:
ZipFile zFile = new ZipFile(myZipFileName);
long uSize = 0;
foreach (ZipEntry e in zFile) {
if ( e.IsFile ) {
uSize += e.Size;
}
}
| {
"language": "en",
"url": "https://stackoverflow.com/questions/414753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I reference a DLL in a VC++ project I have a C++ driver I'm trying to compile, and it has this line in the code:
#import "msado15.dll" no_namespace rename("EOF", "EndOfFile")
But when I compile the project, I get the error:
Error 1 fatal error C1083: Cannot open type library file: 'msado15.dll': No such ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I create compiled user files in Visual Studio 2008? In C++ you are able to compile files that are not included in the solution, with c# this is not the case.
Is there a way to keep a file in a project but not have the standard SCCI provider attempt to keep checking in the file?
Essentially what we are wanting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails: For each Array giving Error? In one form I am creating a territory and editing multiple users. The "user_attributes" below are for the users and the "name" is for the territory. So for each user_attribute I wanted to update the user model.
params
{ "territory"=>{"name"=>"Central Canada",
"user_attributes"=>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Algorithm: Intersection of two regexps I'd like to figure out (in runtime) whether or not two regular expressions intersect (i.e. if they do there exist one or more string the matches both regular expressions).
Algorithm needs to be pretty fast as I need to loop through a database and check existing values.
Found ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Any way to further optimize Java reflective method invocation? I am wondering if there are any additional optimizations I can implement to improve the speed of reflective invocations in Java. Not that the performance is prohibitive, but I get the willies when thinking about some piece of code in a library I am writi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How do I determine whether a page is secure via JavaScript? I want to know if the page is being accessed via http or https using JavaScript. Is there some sort of isSecure() method, or should I just parse it out of the URL somehow?
A: You should be able to check document.location.protocol to see if it's "http:" or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: How to build your own lexical analyzer for StringTemplate? Hmm, sounds easy enough but after looking at the ones that come with StringTemplate, there is no way this is easy for me the average developer.
Where does one start?
From doing some more digging it seems to accomplish this one would also have to learn the AN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the equivalent of varchar(max) in Oracle? What is the equivalent of varchar(max) in Oracle?
CLOB?
A: In PL/SQL, VARCHAR2 can be up to 32767 bytes. For SQL the limit is 4000 bytes (which may be less than 4000 characters if you are using a multi-byte character set).
A: Varchars are limited to 4000 characters... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Download and install Ning on other servers Is it possible to download and install Ning on one's own server? Also does anyone ning's license.
My sense is that you cannot install Ning locally or on a test server. If that is the case does anyone know a good open source social networking platform?
Thanks,
A: Ning is a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Update mysql table with data from another table Is it possible to run an UPDATE command on mysql 5.0 with a sub select.
The command I would like to run is this:
UPDATE book_details
SET live = 1
WHERE ISBN13 = '(SELECT ISBN13 FROM book_details_old WHERE live = 1)';
ISBN13 is currently stored as a string.
This shoul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Avoid Race Conditions in PHP on Submit: Please do not click submit more than once! A while back, online apps used to say, "do not click submit more than once." That's gone now, right? How do you guard against that in, say, PHP?
One solution I'm using involves putting a variable in the Session, so you cannot submit t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Date time stamp Outlook calendar entry automatically? I use Outlook 2007 calendar to schedule appointments. Is there a way to automatically date time stamp each appointment card as it is created? I want to know what time I created an appointment without having to manually enter it time.
A: This took forever for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the best way to copy a subset of a table's rows from one database to another in Postgres? I've got a production DB with, say, ten million rows. I'd like to extract the 10,000 or so rows from the past hour off of production and copy them to my local box. How do I do that?
Let's say the query is:
SELECT * FROM ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Reading PSD file format I wonder if this is even possible. I have an application that adds a context menu when you right click a file. It all works fine but here is what I'd like to do:
If the file is a PSD then I want the program to extract the image. Is this possible to do without having Photoshop installed?
Basic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: How to develop distributable UI controls for iPhone? I would like to develop a reusable UI control for iPhone. How should I go about doing this? When I say reusable I mean it's packaged in a dll (or whatever is used on iPhone platform) so it can be reused on multiple projects.
A: While dynamic libraries are not al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to remove a file/folder from a SVN repository and add to the ignore list This sounds like a look-up-in-the-manual question to me, but I can't find it. Suppose we have a repository with files and directories in it that shouldn't be under version control but rather should be on the ignore list (such as Eclipse fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How do I generate ids with NHibernate and Firebird? I'm trying to insert some new objects into a firebird database using NHibernate.
I get the error "could not get next sequence value[SQL: SQL not available]"
Here is the mapping I'm using at present. Note ANML_EVNT is the name of the generator I want to use.
<i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is DOCTYPE?
*
*What is DOCTYPE and why do I want to use it?
*What are the different DOCTYPEs I can use?
*What is the difference between standards and quirks mode, and what are some quirks I may run into with differently set DOCTYPEs?
Lastly, what is the proper DOCTYPE that I should be using?
A: Basically... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "180"
} |
Q: The Google Maps Wikipedia Layer Is there a way to programmatically list all geo-tagged Wikipedia entries within a radius of a long/lat point? I'm thinking this is possible with the google maps API but I am interested in any method. NOTE: I do not want to display a googlemap.
A: Yes, it's possible. The hard part is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Set Ubuntu Sound Volume on boot The Ubuntu startup/login sound can be very loud, but I do like having it. I wrote a script that uses amixer to set the volume to 25%. This is the level I like to have it at, but when I use TV out or headphones I have to turn up the volume. I cannot seem to get the script to run before... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is the optimal (speed) way of parsing a large (> 4GB) text file with many (milions) of lines? I'm trying to determine what is the fastest way to read in large text files with many rows, do some processing, and write them to a new file. In C#/.net, it appears StreamReader is a seemingly quick way of doing this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Static Libraries on iPhone device I have two projects, a Cocoa iPhone application and a static library which it uses.
I've tested it successfully on the iPhone simulator, but when I try to deploy it to my iPhone device I get (symbol not found) link errors.
If I remove the dependancy of the library the project builds... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why am I suddenly getting Missing Template errors with edge Rails (2.3)? After freezing edge rails, all my controller examples are failing with
MissingTemplate errors.
e.g., "Missing template attachments/create.erb in view path app/views"
Trying to actually render the views gives me the same error.
I noticed I can f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I change the committer of an old revision in SVN? I have a whole heap of legacy code that I checked into my SVN repository. I checked it in under my user name. I'd like to change the author of that commit to another user, 'legacy', in order to clean up the svn blame printouts.
A: You need to have have a p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/414905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.