text stringlengths 8 267k | meta dict |
|---|---|
Q: Scrollable regions in ActionScript 3 Visualization What is the best way to create several scrollable regions in an ActionScript 3 visualization that extends flash.display.Sprite and makes use of hierarchy of of low level DisplayObjects (Sprite'a, Shape's, TextField)?
I have tried to use three mx.containers.Canvas o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fast Text Search Over Logs Here's the problem I'm having, I've got a set of logs that can grow fairly quickly. They're split into individual files every day, and the files can easily grow up to a gig in size. To help keep the size down, entries older than 30 days or so are cleared out.
The problem is when I want to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Program to analyze a lot of XMLs I have a lot of XML files and I'd like to generate a report from them. The report should provide information such as:
root 100%
a*1 90%
b*1 80%
c*5 40%
meaning that all documents have a root element, 90% have one a element in the root, 80% have one b element in the root, 40% hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Tutorial for creating rails models and scaffolds with foreign key relationships Where can I find a good Rails newbie-friendly reference about generating rails models with foreign key relationships?
I've found some pages indicating that you should add has_many and belongs_to to the relevant models to specify these ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I select a .Net application configuration file from a command line parameter? I would like to override the use of the standard app.config by passing a command line parameter. How do I change the default application configuration file so that when I access ConfigurationManager.AppSettings I am accessing the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Smart pagination algorithm I'm looking for an example algorithm of smart pagination. By smart, what I mean is that I only want to show, for example, 2 adjacent pages to the current page, so instead of ending up with a ridiculously long page list, I truncate it.
Here's a quick example to make it clearer... this is wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Can "list_display" in a Django ModelAdmin display attributes of ForeignKey fields? I have a Person model that has a foreign key relationship to Book, which has a number of fields, but I'm most concerned about author (a standard CharField).
With that being said, in my PersonAdmin model, I'd like to display book.autho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "404"
} |
Q: PHP templates - with PHP What's the most elegant templating (preferably in pure PHP!) solution you've seen?
Specifically i'm interested in handling:
*
*Detecting in a repeating block whether it's the first or last element
*Easy handling of odd/even cases, like a zebra striped table, or similar
*Other modulos lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Refactoring Nicely with Version Control A co worker of mine asked me to review some of my code and he sent me a diff file. I'm not new to diffs or version control in general but the diff file was very difficult to read because of the changes he made. Specifically, he used the "extract method" feature and reordered... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Limiting impact of credit card processing scripts/bots I'm involved in building a donation form for non-profits. We recently got hit by a fast round of low dollar submissions. Many were invalid cards, but a few went through. Obviously someone wrote a script to check a bunch of card numbers for validity, possibly so ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: WPF Alternative for python Is there any alternative for WPF (windows presentation foundation) in python?
http://msdn.microsoft.com/en-us/library/aa970268.aspx#Programming_with_WPF
A: Here is a list of Python GUI Toolkits.
Also, you can use IronPython to work with WPF directly.
A: You might want to look at pygtk... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: SQL query: Simulating an "AND" over several rows instead of sub-querying Suppose I have a "tags" table with two columns: tagid and contentid. Each row represents a tag assigned to a piece of content. I want a query that will give me the contentid of every piece of content which is tagged with tagids 334, 338, and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Multiple H.264 video streams in one RTP session I would like to dynamically switch the video source in a streaming video application. However, the different video sources have unique image dimensions. I can generate individual SDP files for each video source, but I would like to combine them into a single SDP file s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: HTML/Javascript app that runs on the filesystem, security issue I'm putting together a little tool that some business people can run on their local filesystems, since we don't want to setup a host for it.
Basically, its just HTML + Javascript (using jQuery) to pull some reports using REST from a 3rd party.
The probl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you decide if a project should be web-based or desktop-based? I'm having trouble deciding if I want a project of mine to be web-based (as in a web-app), desktop-based (a desktop application), or a desktop application that can sync or connect to the cloud.
I don't know if anyone else would have an interest in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What is the purpose for using OPTION(MAXDOP 1) in SQL Server? I have never clearly understood the usage of MAXDOP. I do know that it makes the query faster and that it is the last item that I can use for Query Optimization.
However, my question is, when and where it is best suited to use in a query?
A: As something... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Extracting Autocomplete Emails from Outlook 2007 I need to extract all the emails that show up as autocomplete entries in Outlook 2007. I mostly need to create a list of all the email addresses which I have sent emails to in the past and dump them into excel.
Should I be connecting to Outlook through COM somehow?
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Methods for Geotagging or Geolabelling Text Content What are some good algorithms for automatically labeling text with the city / region or origin? That is, if a blog is about New York, how can I tell programatically. Are there packages / papers that claim to do this with any degree of certainty?
I have looked ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What are the lengths of common datatypes? How many bytes would an int contain and how many would a long contain?
Context:
*
*C++
*32 bit computer
*Any difference on a 64-bit computer?
A: See the wikipedia article about it.
A: it is platform and compiler specific. do sizeof(int) and sizeof(long) in c or c++. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it possible to determine when a stored procedure was last modified in SQL Server 2000? I know that you can do this in SQL Server 2005, but I'm at a loss for 2000.
A: Not to my knowledge.
To get around this, I manage my stored procedures in a Visual Studio database project. Every stored procedure is in its own f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Switching from std::string to std::wstring for embedded applications? Up until now I have been using std::string in my C++ applications for embedded system (routers, switches, telco gear, etc.).
For the next project, I am considering to switch from std::string to std::wstring for Unicode support. This would, for exa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: .Net: Convert Generic List of Objects to DataSet Does anyone have code to do this?
A: Keith Elder has an example of this.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/163973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best Source Control Solution for Oracle/ASP.NET Environment? I am trying to plan a way for 5 developers to use Visual Studio 2005/2008 to collaboratively develop an ASP.NET web app on a development web server against an Oracle 8i(soon to be 10g) Database.
The developers are either on the local network or coming in o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Converting a UNION query in MySQL I have a very large table (8gb) with information about files, and i need to run a report against it that would would look something like this:
(select * from fs_walk_scan where file_path like '\\\\server1\\groot$\\%' order by file_size desc limit 0,30)
UNION ALL
(select * from fs_wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Access denied when creating a virtual directory via Web Deployment Project I’m trying to use a (VS 2008) Web Deployment project in a TFS solution to deploy the web site to the (TFS 2008) build server to run web based unit tests.
For some reason, that I can't yet figure out, it is failing to create the virtual direc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Classical set operations for java.util.Collection Is there any built-in functionality for classical set operations on the java.util.Collection class? My specific implementation would be for ArrayList, but this sounds like something that should apply for all subclasses of Collection. I'm looking for something like:
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/163998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: Why is fread reaching the EOF early? I am writing a C library that reads a file into memory. It skips the first 54 bytes of the file (header) and then reads the remainder as data. I use fseek to determine the length of the file, and then use fread to read in the file.
The loop runs once and then ends because the EOF... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Sql Server 2005 Connection Limit Is there a connection limit on Sql Server 2005 Developers Edition. We have many threads grabbing connections, and I know ADO.NET does connection pooling, but I get OutOfMemory exceptions. We take out the db connections and it works fine.
A: This is the response to that question o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Reading some integers then a line of text in C++ I'm reading input in a C++ program. First some integers, then a string. When I try reading the string with getline(cin,stringname);, it doesn't read the line that the user types: instead, I get an empty line, from when the user pressed Enter after typing the integers.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What guidelines are appropriate for determining when to implement a class member as a property versus a method? The .NET coding standards PDF from SubMain that have started showing up in the "Sponsored By" area seems to indicate that properties are only appropriate for logical data members (see pages 34-35 of the do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: On Win32 how do you move a thread to another CPU core? I'd like to make sure that a thread is moved to a specific CPU core and can never be moved from it by the scheduler.
There's a SetThreadAffinityMask() call but there's no GetThreadAffinityMask().
The reason I need this is because high resolution timers will get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Docking a CControlBar derived window How can I dock a CControlBar derived window to the middle of a splitter window (CSplitterWnd)? I would like the bar to be repositioned whenever the splitter is moved.
To make it a little clearer as to what I'm after, imagine the vertical ruler in the Dialog Editor in Visual Stud... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Basic programming/algorithmic concepts I'm about to start (with fellow programmers) a programming & algorithms club in my high school. The language of choice is C++ - sorry about that, I can't change this. We can assume students have little to no experience in the aforementioned topics.
What do you think are the mos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Should log file streams be opened/closed on each write or kept open during a desktop application's lifetime? Should log classes open/close a log file stream on each write to the log file or should it keep the log file stream open throughout the application's lifetime until all logging is complete?
I'm asking in co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Versioning a MySQL database when code base doesn't have a ORM I've been thinking about this problem for a while and have yet to come up with any stable/elegant ideas.
I know with MyISAM tables, you can get the table def update time but thats not so true with InnoDB and I've found its not even reliable to look at the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Javascript callback when IFRAME is finished loading? I need to execute a callback when an IFRAME has finished loading. I have no control over the content in the IFRAME, so I can't fire the callback from there.
This IFRAME is programmaticly created, and I need to pass its data as a variable in the callback, as well a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "156"
} |
Q: Make your collections thread-safe? When designing a collection class, is there any reason not to implement locking privately to make it thread safe? Or should I leave that responsibility up to the consumer of the collection?
A: Thread safe collections can be deceiving. Jared Par posted a couple of interesting artic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Serialization of a long array (in C) in a C program I have an long* that I want to serialize (thus converting to chars). A long doesn't fit in a single char, and the size varies depending of the processor (can be 4 bytes or 8 bytes).
Theres a good way to make the serialization and de-serialization?
A: This is port... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Need help improving a Ruby DSL for controlling an Arduino controlled drink dispenser (bar monkey) I'm writing a DSL in Ruby to control an Arduino project I'm working on; Bardino. It's a bar monkey that will be software controlled to serve drinks. The Arduino takes commands via the serial port to tell the Arduino w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: In c++, why does the compiler choose the non-const function when the const would work also? For example, suppose I have a class:
class Foo
{
public:
std::string& Name()
{
m_maybe_modified = true;
return m_name;
}
const std::string& Name() const
{
return m_name;
}
prot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Testing onbeforeunload events from Selenium I'm trying to write a Selenium test for a web page that uses an onbeforeunload event to prompt the user before leaving. Selenium doesn't seem to recognize the confirmation dialog that comes up, or to provide a way to hit OK or Cancel. Is there any way to do this? I'm using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: RSS Item updates I'm working on an RSS feed for a custom tasking system we use, and I'm still wrapping my head around how things should work. What I want to have is a feed for each user that shows tasks assigned to them, and additionally a feed for each task that shows updates for the task.
What I want to know righ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I deploy a Python desktop application? I have started on a personal python application that runs on the desktop. I am using wxPython as a GUI toolkit. Should there be a demand for this type of application, I would possibly like to commercialize it.
I have no knowledge of deploying "real-life" Python applicati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: registers vs stacks What exactly are the advantages and disadvantages to using a register-based virtual machine versus using a stack-based virtual machine?
To me, it would seem as though a register based machine would be more straight-forward to program and more efficient. So why is it that the JVM, the CLR, and th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "80"
} |
Q: Compare two DataTables to determine rows in one but not the other I have two DataTables, A and B, produced from CSV files. I need to be able to check which rows exist in B that do not exist in A.
Is there a way to do some sort of query to show the different rows or would I have to iterate through each row on each D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Character offset in an Internet Explorer TextRange As far as I can tell there's no simple way of retrieving a character offset from a TextRange object in Internet Explorer. The W3C Range object has a node, and the offset into the text within that node. IE seems to just have pixel offsets. There are methods to create... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a SQL server performance counter for average execution time? I want to tune a production SQL server. After making adjustments (such as changing the degree of parallelism) I want to know if it helped or hurt query execution times.
This seems like an obvious performance counter, but for the last half hour I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Flex graphic assets: SWF or SWC? Which is a better format to store graphic assets for a Flex application, SWF or SWC?
Are there any real differences, and if so what are they?
A: SWC is what you use when you're looking for a library to compile into your app. You have access to the classes and can import individual p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Quicksort: Choosing the pivot When implementing Quicksort, one of the things you have to do is to choose a pivot. But when I look at pseudocode like the one below, it is not clear how I should choose the pivot. First element of list? Something else?
function quicksort(array)
var list less, greater
if leng... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "130"
} |
Q: Very poor (non-completing) performance of UNION in SQL Server 2005 Warning: this is the actual code generated from my system:
;WITH RESULTS AS (
SELECT 1174 AS BatchRunID, 'STATINV' AS Program, m.APPL_CD, m.ALBASE, 'CountFocusRecords' AS Measure, COUNT(*) AS Value
FROM [MISWork].[SX_FOCUS_NATIVE_200806] AS m WITH(NO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you construct a std::string with an embedded null? If I want to construct a std::string with a line like:
std::string my_string("a\0b");
Where i want to have three characters in the resulting string (a, null, b), I only get one. What is the proper syntax?
A: The following will work...
std::string s;
s.push... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "107"
} |
Q: Informix SQL Syntax - Nest Count, Sum, Round Let me apologize in advance for the simplicity of this question (I heard Jeff's podcast and his concern that the quality of the questions will be "dumbed down"), but I'm stuck. I'm using AquaData to hit my Informix DB. There are quirky little nuances between MS SQL and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is considered a good response time for a dynamic, personalized web application? For a complex web application that includes dynamic content and personalization, what is a good response time from the server (so excluding network latency and browser rendering time)? I'm thinking about sites like Facebook, Amazon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "167"
} |
Q: How to fetch a remote image to display in a canvas? How can I fetch images from a server?
I've got this bit of code which allows me to draw some images on a canvas.
<html>
<head>
<script type="text/javascript">
function draw(){
var canvas = document.getElementById('canv');
var ctx = canva... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to get Single XElement object using Linq to Xml? I would like to use Linq to Xml to get a single XElement from a .xml file by attribute name, similar to how you retrieve single objects in Linq to Sql by Id below:
var singleDog = context.Dogs.Single(p => p.Id == int.Parse(Id));
Is this possible?
A: Absolutely. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why do I get a segmentation fault when writing to a "char *s" initialized with a string literal, but not "char s[]"? The following code receives seg fault on line 2:
char *str = "string";
str[0] = 'z'; // could be also written as *str = 'z'
printf("%s\n", str);
While this works perfectly well:
char str[] = "string... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "334"
} |
Q: Printing barcode labels from a web page I am working on an ASP.Net web application that must print dynamically created labels on standard Avery-style label sheets (one particular size, so only one overall layout). The labels have a variable number of lines (3-6) and may contain either lines of text or a graphic barc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How do I add a EULA to a VS2008 setup project? This is a very simple question with a simple answer, but it is not quite so simple to find the answer on the internet.
I have a simple Setup (deployment) project in Visual Studio 2008, and I have the EULA text. What do I need to do in the project to get the EULA into t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Protecting Section in App.config file Console Application I am trying to encrypt the appSettings and connectionStrings section in App.config file of the console application. For some reason section.SectionInformation.IsProtected is always returning true.
static void Main(string[] args)
{
EncryptSection("connect... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there anyway to log Firebug 'profile' results to an external file? Specifically, we've got some external JavaScript tracking code on our sites that throws itself into an infinite loop each time an anchor is clicked on.
We don't maintain the tracking code, so we don't know exactly how it works. Since the code cau... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I transfer a file using wininet that is readable by a php script? I would like to transfer a text file to a webserver using wininet as if the file was being transferred using a web form that posts the file to the server.
Based on answers I've received I've tried the following code:
static TCHAR hdrs[] = "Con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Writing a Scheduled Windows Service in .NET I want to write a windows service which the user can schedule. i.e, the user can choose to run the service from 9:00 AM to 6 PM daily, or he could run it every night, starting from night 12 o clock at night to next day morning 6, etc. Is there any out of the box .NET API t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I avoid page breaks inside tables and groups in BIRT? When creating reports using BIRT 2.3.1, I don't want page breaks inside tables or groups; if the table doesn't fit in the space available at the page, I want to put the entire element in the next page.
Using previous versions of BIRT it was possible to se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you specify a message label when using WCF and NetMsmqBinding? I would like to set the MSMQ message label using the NetMsmqBinding. I understand it’s easy when using the MsmqIntegrationBinding, but I would like to continue to use the NetMsmqBinding (even call private methods, if possible)
A: I thought this w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to upgrade PowerBuilder code? I have code from PowerBuilder 5 that can't be built. The compiler just stops before it is done without any error codes.
I would like to upgrade the code to the recent version of PowerBuilder but there are some intermediate versions of PowerBuilder that have binary dependencies to an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Windows hangs during headless build We are trying to automate a build of one of our products which includes a step where it packages some things with WISE. At one point WISE pops up a window with a progress bar on it to show how it is doing. If one is connected to the machine with remote desktop the build works fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C++ types using CodeSynthesis XSD Tree Mapping I'm using CodeSynthesis XSD C++/Tree Mapping utility to convert an existing xsd into c++ code we can populate the values in. This was we always make sure we follow the schema.
After doing the conversion, I'm trying to get it to work so I can test it. Problem is, I'm n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Installing RMagick on Mac OS X with MacPorts With the MacPorts version of ImageMagick 6.4.4 installed, I'm getting an error installing the RMagick gem.
/opt/local/bin/ruby extconf.rb update rmagick
checking for Ruby version >= 1.8.2... yes
checking for /usr/bin/gcc-4.0... yes
checking for Magick-config... no
Can't i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Can an Adobe AIR app that's running in the system tray pop up a window? For example, if I were to write a calendar app on top of AIR, say with Flex, could this app pop up reminder windows for approaching appointments, just like Microsoft Outlook can?
Clarification: Can those windows be actual dialogs where I can ent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there any difference between GROUP BY and DISTINCT I learned something simple about SQL the other day:
SELECT c FROM myTbl GROUP BY C
Has the same result as:
SELECT DISTINCT C FROM myTbl
What I am curious of, is there anything different in the way an SQL engine processes the command, or are they truly the same ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "443"
} |
Q: How to get file size from within TSQL (path specified in column) in SSRS 2005 I need to get the Folder size and display the info on a report (SSRS). I need to do this for a number of Databases (loop!). These DB's are websites' backends.
Are any samples available for this? Does xp_filesize and the like the right solu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get the position() of an XElement? Any XPath like /NodeName/position() would give you the position of the Node w.r.t it's parent node.
There is no method on the XElement (Linq to XML) object that can get the position of the Element. Is there?
A: You could use the NodesBeforeSelf method to do this:
XEleme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Should repositories implement IQueryable? I'm considering one of two IRepository interfaces, one that is a descendant of IQueryable and one that contains IQueryable.
Like this:
public interface IRepository<T> : IQueryable<T>
{
T Save(T entity);
void Delete(T entity);
}
Or this:
public interface IRepository... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Create a BCEL JavaClass object from arbitrary .class file I'm playing around with BCEL. I'm not using it to generate bytecode, but instead I'm trying to inspect the structure of existing compiled classes.
I need to be able to point to an arbitrary .class file anywhere on my hard drive and load a JavaClass object ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I read a text file from the second line using fstream? How can I make my std::fstream object start reading a text file from the second line?
A: The more efficient way is ignoring strings with std::istream::ignore
for (int currLineNumber = 0; currLineNumber < startLineNumber; ++currLineNumber){
if (addres... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Ping Failure Without IPv6 Our user interface is communicating with another application on a different machine, often connecting using domain names.
On our network, when IPv6 is installed, DNS name resolution works great, all machines can be pinged and contacted fine.
When IPv6 is uninstalled, pinging the same DNS n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Research on TDD I know there is done some research on TDD at the North Carolina State University. They have published a paper called 'An Initial Investigation of Test Driven Development in Industry'. Other publications by NCSU can be found here.
Can anybody point me to other good publications on this topic?
A: On ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Can I use the STL if I cannot afford the slow performance when exceptions are thrown? For example, I'm writing a multi-threaded time-critical application that processes and streams audio in real-time. Interruptions in the audio are totally unacceptable. Does this mean I cannot use the STL because of the potential sl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I create an email-sending service? I've been kicking around this idea for a while and would like to read your thoughts.
I'd like to create a .NET service to send and track email messages.
My rough ideas:
*
*Within various applications, serialize instances of .NET email (System.Net.Mail.MailMessage) objects... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Moq'ing an interface While I'm googling/reading for this answer I thought I would also ask here.
I have a class that is a wrapper for a SDK. The class accepts an ILoader object and uses the ILoader object to create an ISBAObject which is cast into an ISmallBusinessInstance object. I am simply trying to mock this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Structured exception handling with a multi-threaded server This article gives a good overview on why structured exception handling is bad. Is there a way to get the robustness of stopping your server from crashing, while getting past the problems mentioned in the article?
I have a server software that runs about 40... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Programmatically inspect .class files I'm working on a project where we're doing a lot of remote object transfer between a Java service and clients written in other various languages. Given our current constraints I've decided to see what it would take to generate code based on an existing Java class. Basically I ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Flash Banners Conflicting with Pop-Up Blockers? We've been creating banners using the getURL linking method (in a blank window). For many people, it works just fine. You click the banner and are taken to our site. For others (me included), clicking the flash object triggers a pop-up warning in FireFox (both 2 and 3,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Searching For String Literals In the quest for localization I need to find all the string literals littered amongst our source code. I was looking for a way to script this into a post-modification source repository check. (I.E. after some one checks something in have a box setup to check this stat) I'll probably use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Is it possible to add data members dynamically in PHP? I'm wondering if its possible to add new class data members at run-time in PHP?
A: It is. You can add public members are run time with no additional code, and can affect protected/private members using the magical overloading methods __get() / __set(). See here... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: JavaScript: How do I print a message to the error console? How can I print a message to the error console, preferably including a variable?
For example, something like:
print('x=%d', x);
A: Exceptions are logged into the JavaScript console. You can use that if you want to keep Firebug disabled.
function log(msg) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "458"
} |
Q: Sql 2005 Express edition slow connections I'm running SqlServer 2005 express edition on my laptop for development purposes. It seems that when I open a connection to the database, the setup time is REALLY slow. It can take up to 10 seconds to get a connection. I usually have multiple connections open at the same tim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What JavaScript frameworks conflict with each other? There are times when I want to use mootools for certain things and Prototype & script.aculo.us for others but within the same site. I've even considered adding others, but was concerned about conflicts. Anyone have experience, or am I just trying to make things ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I "inverse match" with regex? I'm processing a file, line-by-line, and I'd like to do an inverse match. For instance, I want to match lines where there is a string of six letters, but only if these six letters are not 'Andrea'. How should I do that?
I'm using RegexBuddy, but still having trouble.
A: (?!And... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "152"
} |
Q: Determining if enum value is in list (C#) I am building a fun little app to determine if I should bike to work.
I would like to test to see if it is either Raining or Thunderstorm(ing).
public enum WeatherType : byte
{ Sunny = 0, Cloudy = 1, Thunderstorm = 2, Raining = 4, Snowing = 8, MostlyCloudy = 16 }
I was thin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Change Django Templates Based on User-Agent I've made a Django site, but I've drank the Koolaid and I want to make an IPhone version. After putting much thought into I've come up with two options:
*
*Make a whole other site, like i.xxxx.com. Tie it into the same database using Django's sites framework.
*Find s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Why is it that UTF-8 encoding is used when interacting with a UNIX/Linux environment? I know it is customary, but why? Are there real technical reasons why any other way would be a really bad idea or is it just based on the history of encoding and backwards compatibility? In addition, what are the dangers of not usi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Continuing in the Visual Studio debugger after an exception occurs When I debug a C# program and I get an exception throwed (either thrown by code OR thrown by the framework), the IDE stops and get me to the corresponding line in my code.
Everything is fine for now.
I then press "F5" to continue. From this moment, i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Programmatically launching standalone Adobe flashplayer on Linux/X11 The standalone flashplayer takes no arguments other than a .swf file when you launch it from the command line. I need the player to go full screen, no window borders and such. This can be accomplished by hitting ctrl+f once the program has started.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Does This ASP.NET Consultant Know What He's Doing? The IT department of a subsidiary of ours had a consulting company write them an ASP.NET application. Now it's having intermittent problems with mixing up who the current user is and has been known to show Joe some of Bob's data by mistake.
The consultants were bro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What is the reporting tool that you would use? I need a tool that handle both on-screen and printed reports, via my C# application.
I'm looking for simple, standard and powerful.
I need to be able to give the user the ability to select which columns to display, formatting, etc... with my own GUI and dynamically bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I create a thread-safe singleton pattern in Windows? I've been reading about thread-safe singleton patterns here:
http://en.wikipedia.org/wiki/Singleton_pattern#C.2B.2B_.28using_pthreads.29
And it says at the bottom that the only safe way is to use pthread_once - which isn't available on Windows.
Is that the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Using CURRENT_TIMESTAMP, arithmetic operator and parameter with Firebird Why doesn't this work (when parameter is set to 1) :
SELECT * FROM TABLE WHERE TIMESTAMPFIELD > (CURRENT_TIMESTAMP - ?)
But this works :
SELECT * FROM TABLE WHERE TIMESTAMPFIELD > (CURRENT_TIMESTAMP - 1)
I get error message: "conversion error... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: To Nest or Not to Nest? Premise:
Usually during preparation of a new Ruby on Rails App, I draw out models and relations regarding user navigations. Usually I hit a place where I need to ask myself, whether or not I should go beyond the usual "rule of thumb" of nesting no more 1 level deep. Sometimes I feel the need ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Exposing Member Objects As Properties or Methods in .NET In .NET, if a class contains a member that is a class object, should that member be exposed as a property or with a method?
A: That is irrelevant to the matter.
It should be a Property if the value is some detail about the state of the object.
It should be Me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/164527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.