text stringlengths 8 267k | meta dict |
|---|---|
Q: Tool: ETL from an ODBC to SQL 05? I just want a simple tool that will help me quickly write scripts/packages that I can schedule to run. My transform requirements are pretty simple (changing column names, merging/splitting tables, and date conversions). I'll sacrifice flexibility for speed of development on this one... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Typing generic values (C#) When I try this with a generic class where this.value is T:
if (this.value.GetType() == typeof(int))
{
((int)this.value)++;
}
else
{
throw new InvalidOperationException
("T must be an int to perform this operation");
}
I get a compile-time error: "Cannot convert type '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Does Objective-C compile to native code or byte-code? On OS X, does Objective-C compile to native code or byte-code?
Can Objective-C programs be compiled on Linux?
A: It's native.
There is GNUstep which an Open Source implementation of the NeXT OpenStep specification written in Objective-C. Their implementation of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: A platform for easy creation of custom websites? I'm in a small business of hosting my clients' websites, and a lot of times they ask me to create one from scratch. I'm no designer, but I can code CSS/HTML, AJAX, PHP. However, I'm not willing to create sites from scratch, knowing how much is involved.
In the past, I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I store an XML value in my .NET App.Config file I am trying to store an xml value in my app.config file.
The app.config does not like this and I cannot use the <![CDATA[ construct to ignore the XML'ness of my value.
Is there a way to do it?
Value example:<FieldRef Name='LinkfileName' Nullable='True'/><FieldR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is there an agreed ideal schema for tagging I have a photo website and i want to support tags as my original category bucketing is starting to fail (some pictures are family and vacations, or school and friends). Is there an agreed tagging db schema?
I still want to support having photos as part of an album.
Righ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Design Tab Control with Visual Studio 2008 (without SP1) Is there any way (maybe directly editing resource files) to configure a Tab Control (add/remove tabs and their captions and contents) at design time with Visual Studio 2008 without SP1 (I heard that SP1 has such feature)?
P.S.: I use c++ with wtl
A: The form ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Operator Overloading with C# Extension Methods I'm attempting to use extension methods to add an operater overload to the C# StringBuilder class. Specifically, given StringBuilder sb, I'd like sb += "text" to become equivalent to sb.Append("text").
Here's the syntax for creating an extension method for StringBuilde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "189"
} |
Q: Creating a News Ticker which is updated from an RSS Feed - Javascript/any language I need to create a news ticker that is updated via an RSS feed. Any ideas on how to implement this?
I would prefer Javascript but any language is acceptable.
A: There are are several good examples of this on this DynamicDrive page, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WCF DataContracts I have a WCF service hosted for internal clients - we have control of all the clients. We will therefore be using a data contracts library to negate the need for proxy generation. I would like to use some readonly properties and have some datacontracts without default constructors.
Thanks for you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Getting quickly up to speed on ASP.NET for an experienced coder I have a contract in the offering from a client to develop an intranet application for capturing/manipulating/displaying a fairly complex set of marketing data. I've done this sort of thing before so the analysis, database etc. holds no issues for me, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to tell if the user's using 24 hour time using Cocoa I'm trying to determine if the user is using 24 hour or 12 hour time, and there doesn't seem to be a good way to figure this out other than creating an NSDateFormatter and searching the format string for the period field ('a' character)
Here's what I'm doing n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In a project, is there a choice of database systems? In almost all projects, the choice of the database system is 'almost' automatic .. if you're coding "in the Microsoft stack" you'll go with SQLServer, in the Linux world the default is MySQL, and for corporate in-house project most shops have decided on some defau... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Calculating time diff across midnight This is the one thing I could never get to work.
My problem is to detect the end of one day and the start of the next and then splitting the diff into each day.
Imagine you want to calculate a pay rate but it has to span across midnight.
It also applies to calculating time to ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Speeding Up Python This is really two questions, but they are so similar, and to keep it simple, I figured I'd just roll them together:
*
*Firstly: Given an established python project, what are some decent ways to speed it up beyond just plain in-code optimization?
*Secondly: When writing a program from scratch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: Create/Use User-defined functions in System.Data.SQLite?
User-Defined Functions & Collating Sequences
Full support for user-defined functions and collating sequences means that in many cases if SQLite doesn't have a feature, you can write it yourself in your favorite .NET language. Writing UDF's and collating se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: Looking for DES algorithm tutorial I am studying for cryptography and I somehow stuck on understanding how DES works. Because it is around for a long time there should be nice tutorials like fancy diagrams, videos etc around the net. I searched but with no luck. Has anyone spotted anything "easy-to-digest" for the b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Play a single note with DirectMusic I'm using DirectMusic for MIDI playback in an application I'm developing. Does anyone know if it's possible to use DirectMusic to play individual notes? Currently, I'm converting an in-memory data structure that represents entire 'songs' into a MIDI buffer and playing it back thro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to show fullscreen popup window in javascript? Is there a way to make a popup window maximised as soon as it is opened? If not that, at least make it screen-sized? This:
window.open(src, 'newWin', 'fullscreen="yes"')
apparently only worked for old version of IE.
A: What about this:
var popup = window.open(URL)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: XML DOM vs ADO DataSet I have the option of storing data in memory either as an XML document or multi-table ADO dataset. The web page utilizing this object will be selectively retrieving data items based on keys.
Does either of these objects have a clear performance advantage over the other?
A: If you decide to go ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Embedding JavaScript engine into .NET just wondering if anyone has ever tried embedding and actually integrating any js engine into the .net environment. I could find and actually use (after a LOT of pain and effort, since it's pretty outdated and not quite finished) spidermonkey-dotnet project. Anyone with experien... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "222"
} |
Q: MVC Frameworks for Windows Mobile Native Code Are there any good MVC frameworks for native Windows Mobile code?
Barring that could someone link to an open source Windows Mobile or CE project that uses the MVC pattern?
A: Perhaps you could try Qt. It provides some classes for mvc programming. Here is link for MVC in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Combined post-operators? We're all familiar with the pre- and post-increment operators, e.g.
c++; // c = c + 1
++c; // ditto
and the "combined operators" which extend this principle:
c += 5; // c = c + 5
s .= ", world"; // s = s . ", world"; e.g. PHP
I've often had a need for a 'post-combined operator'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Subversion large repos import/checkout My normal work flow to create a new repository with subversion is to create a new repos, do a checkout of the repos root, create my branches tags and trunk folders and place in the trunk my initial files. Then I do a commit of this "initial import", delete the checked out repos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Good dynamic programming language for .net recommendation Well, after a long time writing .net programs in C# I started to feel angry and frustrated about all that syntactic trash that comes with statically typed languages. Now I want to change to dynamically typed languages, that takes advantage of CLI.
So I search... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Lisp in the real world I have experimented with Lisp (actually Scheme) and found it to be a very beautiful language that I am interested in learning more about. However, it appears that Lisp is never used in serious projects, and I haven't seen it listed as a desired skill on any job posting. I am interested in he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "148"
} |
Q: Is there a way I can tell whether an SMTP server is expecting a client to connect using "implicit" SSL versus "explicit" SSL? SSL can either be "explicit" or "implicit" as explained by this link:
http://help.globalscape.com/help/secureserver2/Explicit_versus_implicit_SS.htm
System.Net.Mail only support "explicit" SS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I override a table width property in CSS I have the following style in an external CSS file called first.css
table { width: 100%; }
This makes the tables fill their container. If there are only two small columns they appear too far from each other.
To force the columns to appear nearer I have added this sty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: .NET Firebug like UI assistance I am tasked with a project whereby I need to create a scaled down version of a Firebug like UI where the user can load an HTML page, and as they hover the mouse over the elements they'll be highlighted. The app will allow the users to select a table to be screen-scraped....haven't got... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Detecting when a div's height changes using jQuery I've got a div that contains some content that's being added and removed dynamically, so its height is changing often. I also have a div that is absolutely positioned directly underneath with javascript, so unless I can detect when the height of the div changes, I c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "147"
} |
Q: How often do you worry about how many if cases will need to be processed? If you have the following:
$var = 3; // we'll say it's set to 3 for this example
if ($var == 4) {
// do something
} else if ($var == 5) {
// do something
} else if ($var == 2) {
// do something
} else if ($var == 3) {
// do som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Selection overridden by formatter I have applied a Formatter to a JFormattedTextField using a FormatterFactory, when a user clicks into the text field I want to select the contents.
A focus listener does not work as expected because the formatter gets called, which eventually causes the value to be reset which ulti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you specify that an exception should be expected using Boost.Test? I have a Boost unit test case which causes the object under test to throw an exception (that's the test, to cause an exception). How do I specify in the test to expect that particular exception.
I can specify that the test should have a certai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: What are the greatest benefits of LLVM? Does anyone have experience with LLVM, llvm-gcc, or Clang?
The whole idea behind llvm seems very intriguing to me and I'm interested in seeing how it performs. I just don't want to dump a whole lot of time into trying the tools out if the tools are not ready for production.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Is there an easier way to track scope changes in ExtremePlanner? I am about to join a new software team midway through a project. They are using ExtremePlanner to track their progress.
While they tracking tasks completed, they are not tracking how the estimated size of the project is changing over time. In the shor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to determine if a JNI (jogl) is available at runtime? I'm working on a source-code visualization project that uses the Processing core library. The processing library has the option to use the jogl OpenGL library to render graphics which really improves performance. However, the JNI files that jogl uses aren't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to manage documents for many tasks/projects I'm probably asking for the world, but is there any Windows-based software for easily managing lots of tasks/projects and all the associated documents (spreadsheets, Word documents, other files) that can be quickly navigated/searched.
I deal with probably 10-20 active... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to disable/enable network connection in c# Basically I'm running some performance tests and don't want the external network to be the drag factor. I'm looking into ways of disabling network LAN. What is an effective way of doing it programmatically? I'm interested in c#. If anyone has a code snippet that can dri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: F# defining/using a type/module in another file in the same project This will hopefully be an easy one. I have an F# project (latest F# CTP) with two files (Program.fs, Stack.fs). In Stack.fs I have a simple namespace and type definition
Stack.fs
namespace Col
type Stack=
...
Now I try to include the namespace... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "84"
} |
Q: Table Creation DDL from Microsoft Access Is there any easy way to retrieve table creation DDL from Microsoft Access (2007) or do I have to code it myself using VBA to read the table structure?
I have about 30 tables that we are porting to Oracle and it would make life easier if we could create the tables from the A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Using Linux, how to specify which ethernet interface data is transmitted on I'm working on a Linux based server system in which there are two network interfaces, both on the same subnet (for now, lets just say they are 172.17.32.10 & 172.17.32.11). When I send data to a host on the network, I would like to specify ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Parsing XML with multi-line records I'd like to take XML in the format below and load each code record into a domain object in my BootStrap.groovy. I want to preserve the formatting of each snippet of code.
XML
<records>
<code>
<language>Groovy</language>
<snippet>
println "This is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Calling .NET COM web service wrapper from Excel I'm trying to call a web service from Excel 2003 module.
The way i've implemented it is creating a .NET COM library with all the classes/methods i need to be exposed.
When i try to call a method that queries a web service from Excel the execution just stops on that lin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error when running XNA code from another computer I have develop an XNA game on computer 1. When I send it to computer two (and I have everything to be able to run XNA Code). When the program execute game.run, I get an InvalidOperationException.
I didn't tried to run code from computer two on computer one. But I kn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Div 100% height works on Firefox but not in IE I have a container div that holds two internal divs; both should take 100% width and 100% height within the container.
I set both internal divs to 100% height. That works fine in Firefox, however in IE the divs do not stretch to 100% height but only the height of the te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: Haskell FFI / C MPFR library wrapper woes In order to create an arbitrary precision floating point / drop in replacement for Double, I'm trying to wrap MPFR using the FFI but despite all my efforts the simplest bit of code doesn't work. It compiles, it runs, but it crashes mockingly after pretending to work for a wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do databases work internally? I've been working with databases for the last few years and I'd like to think that I've gotten fairly competent with using them. However I was reading recently about Joel's Law of Leaky Abstractions and I realised that even though I can write a query to get pretty much anything I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "83"
} |
Q: Best 2D animation library/tech for "iPhone" style animation on WIN32? All,
I have built a nifty demo application that displays data about our internal systems as a full-screen "billboard" style display. You could think of this as something like an application displaying the national deficit - rapidly increasing numb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Displaying an IGrouping<> with nested ListViews I need to retrieve a set of Widgets from my data access layer, grouped by widget.Manufacturer, to display in a set of nested ASP.NET ListViews.
The problem is that (as far as I can tell) the nested ListView approach requires me to shape the data before using it, and I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Executing code stored as a list After understanding (quote), I'm curious as to how one might cause the statement to execute. My first thought was
(defvar x '(+ 2 21))
`(,@x)
but that just evaluates to (+ 2 21), or the contents of x. How would one run code that was placed in a list?
A: (eval '(+ 2 21))
A: @Chris... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Implementation of ISupportErrorInfo - what does it mean? What does the ISupportErrorInfo interface mean? I'm at a bit of a loss to understand it. From MSDN:
This interface ensures that error
information can be propagated up the
call chain correctly. Automation
objects that use the error handling
interfaces ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: In Microsoft Visual Studio 2005 is it possible to set the size of an edit window when opened? I have a very large monitor. When I open a text file in MSVC, the file defaults to a width of about 80% of my screen space. For most bits of code that's about twice the size I need. Is there a way to set the default size of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP Libraries: SVN Access Are there any decent PHP libraries available for accessing SVN repositories? Right now I just have some scripts executing commands to the command line and parsing the feedback, I'd love to find something less dependent on the command line and more tightly integrated. Any ideas?
A: A quick ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating a winforms app that allows drag and dropping of custom 'widgets' I want to create a winforms application, this application will be similiar to the vs.net winforms designer (in certain aspects).
Basically it is going to be a blank page, where the user can drag and drop a bunch of 'widget's onto the screen. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Oracle Cursor Issue Anyone have any idea how to do the following?
declare cursor
open cursor
fetch cursor
<< Start reading the cursor in a LOOP >>
Lets say the cursor have 10 records.
Read until 5th record then go to the 6th record and do some checking.
Now, is it possible to go back to 5th record from 6th record ?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Add (external) relationship (tagging) to existing Hibernate entities I need to add a new many-to-many relationship to an existing Hibernate entity.
I do not want to touch the original Hibernate entity bean or its configuration.
What I am adding is a "tagging" feature that can be viewed as an external contribution an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: hashing sensitive data I need to scramble the names and logins of all the users in a UAT database we have. (because of the data protection act)
However, there is a catch.
The testers still need to be able to login using the hashed login names
so if a user login is "Jesse.J.James" then the hash should be something li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Detecting Back Button/Hash Change in URL I just set up my new homepage at http://ritter.vg. I'm using jQuery, but very minimally.
It loads all the pages using AJAX - I have it set up to allow bookmarking by detecting the hash in the URL.
//general functions
function getUrl(u) {
return u + '.html';
}
fun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/172957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Converting mysql TIME from 24 HR to AM/PM format I want to display the TIME field from my mysql table on my website, but rather than showing 21:00:00 etc I want to show 8:00 PM. I need a function/code to do this or even any pointers in the right direction. Will mark the first reply with some code as the correct repl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Apache: Multiple log files? What are the access.log.* files?
A: Apache, I believe, does log rotation. So these would be the older log files with the access.log file being the current one.
A: Apache / apache2 itself doesn't do its own log rotation. On *nix systems, logs (including logs by Apache) are usually rotat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you make a WPF slider snap only to discrete integer positions? All too often I want a WPF slider that behaves like the System.Windows.Forms.TrackBar of old. That is, I want a slider that goes from X to Y but only allows the user to move it in discrete integer positions.
How does one do this in WPF since the V... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "130"
} |
Q: Why log4j cannot generate backup files? I'm running some java processes on Windows 2003 server R2
I'm using Apache log4j-1.2.8. All my processes called via
one jar file with different parameter example
java -jar process.jar one
java -jar process.jar two
java -jar process.jar three
And I config log4j.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ghostdoc-like plugin for IntelliJ IDEA I've become lazy in my old age. For my C# work I've become quite reliant on Roland Weigelt's excellent GhostDoc plugin for Visual Studio.
Is anyone aware of a similar plugin for Java work in IntelliJ IDEA?
A: The builtin javadoc completion does some of this - if you type /** a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can anyone think of some good reasons *not* to use an Object-Oriented DBMS to back a website? Say you're coding some kind of web application. Something where people can contribute content, e.g. a simple photo-sharing site.
How many good reasons can you think of to not go with an object-oriented database (e.g. db4o)?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: NOT IN vs NOT EXISTS Which of these queries is the faster?
NOT EXISTS:
SELECT ProductID, ProductName
FROM Northwind..Products p
WHERE NOT EXISTS (
SELECT 1
FROM Northwind..[Order Details] od
WHERE p.ProductId = od.ProductId)
Or NOT IN:
SELECT ProductID, ProductName
FROM Northwind..Products p
WHERE p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "617"
} |
Q: Is there a simple JavaScript slider? I need to create a custom volume slider for a WMP object. The current slider is complicated to modify, and use, is there a simple way to generate a slider on an HTML page that can have it's value passed to a javascript function?
A: Here is another light JavaScript Slider that s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: parameterised jsp:includes of stripes actions? I've been trying to solve this, and have been getting stuck, so I thought I'd ask.
Imagine two ActionBeans, A and B.
A.jsp has this section in it:
...
<jsp:include page="/B.action">
<jsp:param name="ponies" value="on"/>
</jsp:include>
<jsp:include page="/B.action">
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does anyone write really long, complex PHP apps? It's hard for me to imagine a php script that is more than a few hundred lines of code. It seems that, for a non-persistent environment, web-based scripting is usually done is small chunks and used for the purpose of delivering a portion of a website to the end user.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: 2.9999999999999999 >> .5? I heard that you could right-shift a number by .5 instead of using Math.floor(). I decided to check its limits to make sure that it was a suitable replacement, so I checked the following values and got the following results in Google Chrome:
2.5 >> .5 == 2;
2.9999 >> .5 == 2;
2.99999999999... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Flash/Actionscript2 - Can't get comboBox "change" event to fire I'm trying to use the combobox component for Flash. I can't get the change event to fire. My code is pretty much straight of of the adobe site (link below). The box gets populated but changing the value produces no trace output. What am I doing wrong?
h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# .NET 3.0/3.5 features in 2.0 using Visual Studio 2008 What are some of the new features that can be used in .NET 2.0 that are specific to C# 3.0/3.5 after upgrading to Visual Studio 2008? Also, what are some of the features that aren't available?
Available
*
*Lambdas
*Extension methods (by declaring an empty ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Custom Date Formatting in J2ME I would like to format a J2ME Date object to only show the date part, not the date and time. What would be the easiest way? Would probably need to include an external library to do this.
A: java.util.Calendar has all the methods required to format a date output.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/173085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Election 2008 data files - how to know which candidate received the financial contribution? I was trying to programmatically go through presidential campaign contributions to see which web 2.0 people contributed to which candidates. You can get the data file indiv08.zip on the site http://www.fec.gov/finance/disclos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: mootools or javascript : what does $tmp stand for or what does it pertain too I'm currently working on the Tips.js from mootools library and my code breaks on the line that has those el.$tmp, and console says it's undefined
Can anybody help me?
A: I'd suggest taking your question and posting it, along with a link t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to reinterpret cast a float to an int? Is there a non-static conversion operator or user-defined assignment operator for conversion on 'this'? 1.
How can I reinterpret cast a float to an int (or a double to a long)?
float f = 2.0f;
int i = (int)f; // causes conversion
I only want to copy the bit-pattern from f ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What's the best way to only allow a PHP file to be included? I want to make sure people can't type the name of a PHP script in the URL and run it. What's the best way of doing this?
I could set a variable in the file that will be including this file, and then check that variable in the file being included, but is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: conditional logic based on type Given:
interface I
{
}
class B: I
{
}
class C: I
{
}
class A
{
public void Method(B arg)
{
}
public void Method(C arg)
{
}
public void Method(I arg)
{
// THIS is the method I want to simplify.
if (I is B)
{
this.Meth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Removing border/background from Crystal Report Viewer in Visual Studio 2008 Can someone please explain how to remove the background/borders off an embedded CrystalReportViewer control in Visual Studio 2008.
I'm trying to remove the light gray (below the "Crystal Report" heading) and then the darker gray underneath t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you stay focused and ship projects? I find way too many projects to get involved in, way to many languages to play with (and way too many cool features within those languages), and way too many books to read...
How do you guys stay focused and actually get anything done, rather than leaving a trail of partial... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Difference Between ViewData and TempData? I know what ViewData is and use it all the time, but in ASP.NET Preview 5 they introduced something new called TempData.
I normally strongly type my ViewData, instead of using the dictionary of objects approach.
So, when should I use TempData instead of ViewData?
Are there ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "102"
} |
Q: Can someone explain per-pixel collision detection? Can someone explain the pros and cons of it and any math involved with it?
A: It's more accurate than vertexes (or hit-boxes etc). I'm assuming you're talking about 2d here (3d would be box-model vs vertex). Per-pixel would allow you to have detailed sprites which... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Getting color of a data series from a flot chart After seeing the cool new "reputation" tab on the stackoverflow user page, I was inspired to play with the Flot charting library a little. I have a line chart that has several hundred series. Only a couple of these series will be visible at any given time. My data ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: JQuery's $ is in conflict with that of StringTemplate.Net in ASP.Net MVC I am exploring ASP.NET MVC and I wanted to add jQuery to make the site interactive. I used StringTemplate, ported to .Net, as my template engine to generate html and to send JSON. However, when I view the page, I could not see it. After debuggi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How do I connect to an .mdf (Microsoft SQL Server Database File) in a simple web project? Specifically, in VS 2008, I want to connect to a data source that you can have by right-clicking on the automatically-generated App_Data folder (an .mdf "database"). Seems easy, and it is once you know how.
A: So here's the an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: mysql_real_escape_string() leaving slashes in MySQL I just moved to a new hosting company and now whenever a string gets escaped using:
mysql_real_escape_string($str);
the slashes remain in the database. This is the first time I've ever seen this happen so none of my scripts use
stripslashes()
anymore.
This is on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: php-cgi runs as root I run php 5.2.6 as a cgi under lighttpd 1.4 and for some reason it's always running as root. All php-cgi processes in are owned by root and all files written to the file system are owned by root.
I've tried setting the user in lighttpd as non privileged, and confirmed, it's running right it's j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What Could Cause Intermittent Issues with Images Loading in Internet Explorer 6? I am having issues with a website that I am working on in which images and background-images fail to load in Internet Explorer 6.
Here is an example of a page on which you might experience this issue:
Example Page
So far I have looked a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What library should be included to use TransparentBlt? What library should be included to use TransparentBlt?
This is VC98 (Visual Studio 6) linking to the Gdi32.lib. (Other GDI functions such as BitBlt link as expected), and the compilers compiles with out error or warning.
Even though the Gdi32.lib is included, ye... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to continue executing other processes in command line window after breaking a running process using C# I have written C# command window application. I'm running bunch of processes on command line inside the main(). For e.g.
void main()
{
process p1 = new process()
set p1 properties
p1.start()
-->p1.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Parsing and generating Microsoft Office 2007 files (.docx, .xlsx, .pptx) I have a web project where I must import text and images from a user-supplied document, and one of the possible formats is Microsoft Office 2007. There's also a need to generate documents in this format.
The server runs CentOS 5.2 and has PHP/P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How can I make my ad hoc iPhone application's icon show up in iTunes? I've got an iPhone app with icon file Icon.png.
This icon shows up properly when the app is on the phone itself, but it doesn't show up in the applications pane in iTunes.
What do I need to do to get it to show up properly?
A: In order to make it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Writing ID3v2 Tag parsing code, need Good examples to test I am writing software to parse ID3v2 tags in Java. I need to find some files with good examples of the tag with lots of different frames. Ideally the tags will contain an embedded picture because that is what is kicking my butt right now.
Does anyone know ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Example code for Resizing an image using DirectX I know it is possible, and a lot faster than using GDI+. However I haven't found any good example of using DirectX to resize an image and save it to disk. I have implemented this over and over in GDI+, thats not difficult. However GDI+ does not use any hardware acc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Apache POI HWPF - Output a table to Microsoft Word I've been Googling for quite awhile and haven't found a definitive answer. Is it possible to output a table using Apache POI? It looks like it hasn't been implemented, since the main developer stopped working on it like 5 years ago.
Is there an open source alterna... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Hooking syscalls from userspace on Windows I'm patching connect() to redirect network traffic as part of a library (NetHooker) and this works well, but it depends on ws2_32.dll remaining the same and doesn't work if the syscall is used directly. So what I'm wondering is if there's a way to catch the syscall itself ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Direct3D Camera aspect ratio/scaling problem I'm using SlimDX/C# to write a Direct3D application. I configured the camera as per textbox way:
private float cameraZ = 5.0f;
camera = new Camera();
camera.FieldOfView =(float)(Math.PI/2);
camera.NearPlane = 0.5f;
camera.FarPlane = 1000.0f;
camera.Location = new Vector3(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C#/.NET, what to look at? I see lots of job ads for C#/.NET programmers, so I thought it could be a good idea to have had a look at it.
After looking at a few tutorials I found nothing really new to me. Just a language with a syntax somewhere between Java and C++ (arguably nicer than both though).
So, what features ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to prevent a SystemExit exception raised from sys.exit() from being caught? The docs say that calling sys.exit() raises a SystemExit exception which can be caught in outer levels. I have a situation in which I want to definitively and unquestionably exit from inside a test case, however the unittest ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: python dictionary update method I have a list string tag.
I am trying to initialize a dictionary with the key as the tag string and values as the array index.
for i, ithTag in enumerate(tag):
tagDict.update(ithTag=i)
The above returns me {'ithTag': 608} 608 is the 608th index
My problem is that while the i is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Right-click to select a datagridview row How do you select a datagridview row on a right-click?
A: the cool thing is add a menu on that right click, for example with option like "View client information", "verify last invoices", "Add a log entry to this client", etc.
you just need to add a ContextMenuStrip object,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/173295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.