text stringlengths 8 267k | meta dict |
|---|---|
Q: How to select consecutive elements that match a filter Given this example:
<img class="a" />
<img />
<img class="a" />
<img class="a" id="active" />
<img class="a" />
<img class="a" />
<img />
<img class="a" />
(I've just used img tags as an example, that's not what it is in my code)
Using jQuery, how would you sel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can I vertically align elements in a div? I have a div with two images and an h1. All of them need to be vertically aligned within the div, next to each other. One of the images needs to be absolute positioned within the div.
What is the CSS needed for this to work on all common browsers?
<div id="header">
<im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1027"
} |
Q: Why don't modules always honor 'require' in ruby? (sorry I should have been clearer with the code the first time I posted this. Hope this makes sense)
File "size_specification.rb"
class SizeSpecification
def fits?
end
end
File "some_module.rb"
require 'size_specification'
module SomeModule
def self.size... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: backup data for reporting What is the best method to transfer data from sales table to sales history table in sql server 2005. sales history table will be used for reporting.
A: Bulkcopy is fast and it will not use the transaction log. One batch run at the end of the day.
Deleting the copied records from your prod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting environment variables for Phusion Passenger applications I've set up Passenger in development (Mac OS X) and it works flawlessly. The only problem came later: now I have a custom GEM_HOME path and ImageMagick binaries installed in "/usr/local". I can put them in one of the shell rc files that get sourced and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What's the correct term for "number of std deviations" away from a mean I've computed the mean & variance of a set of values, and I want to pass along the value that represents the # of std deviations away from mean for each number in the set. Is there a better term for this, or should I just call it num_of_std_dev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I use transactions with Stomp and ActiveMQ (and Perl)? I'm trying to replace some bespoke message queues with ActiveMQ, and I need to talk to them (a lot) from Perl. ActiveMQ provides a Stomp interface and Perl has Net::Stomp, so this seems like it should be fine, but it's not.
Even if I send a BEGIN frame o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: linux uptime history How can I get a history of uptimes for my debian box? After a reboot, I dont see an option for the uptime command to print a history of uptimes. If it matters, I would like to use these uptimes for graphing a page in php to show my webservers uptime lengths between boots.
Update:
Not sure if it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: How do I use a vendor Apache with a self-compiled Perl and mod_perl? I want to use Apple's or RedHat's built-in Apache but I want to use Perl 5.10 and mod_perl. What's the least intrusive way to accomplish this? I want the advantage of free security patching for the vendor's Apache, dav, php, etc., but I care a lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I import Facebook friends from another website I am looking for a way to connect to Facebook by allowing the user to enter in their username and password and have our app connect to their account and get their contacts so that they can invite them to join their group on our site. I have written a Facebook ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Unable to receive JSON from JQuery ajax call I have determined that my JSON, coming from the server, is valid (making the ajax call manually), but I would really like to use JQuery. I have also determined that the "post" URL, being sent to the server, is correct, using firebug. However, the error callback is still b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Architecture for real-time system? I would like to ask some advices or experiences from architecture or
technology for building real-time system. Before I have some
experience on developing "Queuing Management System", I have done by
sending TcpServer and TcpClient message to all operators when a
operator changed th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are the full-text search tools you can use in SQL Server? Besides full-text indexing and using LIKE keyword, what are other tools to build search functionality on top of MS SQL? This question is particularly for searching records, not files.
A: In episode 11 of the SO podcast Jeff and Joel discussed full text... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Which is the best Linux C/C++ debugger (or front-end to gdb) to help teaching programming? I teach a sort of "lite" C++ programming course to novices ("lite" meaning no pointers, no classes, just plain old C, plus references and STL string and vectors). Students have no previous experience in programming, so I belie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "108"
} |
Q: Scanner cannot be resolved to a type I just installed Ubuntu 8.04 and I'm taking a course in Java so I figured why not install a IDE while I am installing it. So I pick my IDE of choice, Eclipse, and I make a very simple program, Hello World, to make sure everything is running smoothly. When I go to use Scanner for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: forms and jQuery I'm creating a simple form for a site I manage. I use jQuery for my JavaScript. I noticed a large amount of plugins for jQuery and forms. Does anybody have any favorites that they find especially useful? In particular, plugins to help with validation would be the most useful.
A: The jQuery Form ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: scriptResourceHandler Does anyone know much about the Asp.Net webconfig element ?
I'm looking at it because I'm implementing an MS Ajax updatepanel in an existing site,
and after doing some looking around, on the web I'm not finding a lot of info about it.
And to avoid the flood of replies telling me how inefficie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best win32 compiled scripting language? What is the best compilable scripting language for Win32? I prefer .EXE's because I don't want to install the runtime on the servers first (my company administrates many via remote), but I need to be able to do things like NTFS permissions and (if possible) APIs over the netw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Are there any Parsing Expression Grammar (PEG) libraries for Javascript or PHP? I find myself drawn to the Parsing Expression Grammar formalism for describing domain specific languages, but so far the implementation code I've found has been written in languages like Java and Haskell that aren't web server friendly i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: how can you parse an excel (.xls) file stored in a varbinary in MS SQL 2005? problem
how to best parse/access/extract "excel file" data stored as binary data in an SQL 2005 field?
(so all the data can ultimately be stored in other fields of other tables.)
background
basically, our customer is requiring a large volum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Mapping internal data elements to external vendors' XML schema I'm considering Altova MapForce (or something similar) to produce either XSLT and/or a Java or C# class to do the translation. Today, we pull data right out of the database and manually build an XML string that we post to a webservice.
Should it be db -... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I get started processing email related to website activity? I am writing a web application that requires user interaction via email. I'm curious if there is a best practice or recommended source for learning about processing email. I am writing my application in Python, but I'm not sure what mail server to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to save a public html page with all media and preserve structure Looking for a Linux application (or Firefox extension) that will allow me to scrape an HTML mockup and keep the page's integrity.
Firefox does an almost perfect job but doesn't grab images referenced in the CSS.
The Scrapbook extension for Firefox ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Ruby/Rails Collection to Collection I have a two tables joined with a join table - this is just pseudo code:
Library
Book
LibraryBooks
What I need to do is if i have the id of a library, i want to get all the libraries that all the books that this library has are in.
So if i have Library 1, and Library 1 has books ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: React on global hotkey in a Java program on Windows/Linux/Mac? A Java6 application sits in the system tray. It needs to be activated using a hotkey (e.g. Super-G or Ctrl-Shift-L etc) and do something (e.g. showing an input box).
How do I do that on:
*
*Windows (XP or Vista)
*OS/X
*Linux (Gnome or KDE)
A: For ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Java JFormattedTextField for typing dates I've been having trouble to make a JFormattedTextField to use dates with the format dd/MM/yyyy. Specifically, as the user types, the cursor should "jump" the slashes, and get directly to the next number position.
Also, the JFormattedTextField must verify if the date entered ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How best to copy entire databases in MS SQL Server? I need to copy about 40 databases from one server to another. The new databases should have new names, but all the same tables, data and indexes as the original databases. So far I've been:
1) creating each destination database
2) using the "Tasks->Export Data"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: What's the best way to do fixed-point math? I need to speed up a program for the Nintendo DS which doesn't have an FPU, so I need to change floating-point math (which is emulated and slow) to fixed-point.
How I started was I changed floats to ints and whenever I needed to convert them, I used x>>8 to convert the fix... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: Calculating percentile rankings in MS SQL What's the best way to calculate percentile rankings (e.g. the 90th percentile or the median score) in MSSQL 2005?
I'd like to be able to select the 25th, median, and 75th percentiles for a single column of scores (preferably in a single record so I can combine with average,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Getting all types in a namespace via reflection How do you get all the classes in a namespace through reflection in C#?
A: Just like @aku answer, but using extension methods:
string @namespace = "...";
var types = Assembly.GetExecutingAssembly().GetTypes()
.Where(t => t.IsClass && t.Namespace == @namespace)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "305"
} |
Q: Worse sin: side effects or passing massive objects? I have a function inside a loop inside a function. The inner function acquires and stores a large vector of data in memory (as a global variable... I'm using "R" which is like "S-Plus"). The loop loops through a long list of data to be acquired. The outer function ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How are the vxWorks "kernel shell" and "host shell" different? In the vxWorks RTOS, there is a shell that allows you to issue command to your embedded system.
The documentation refers to kernel shell, host shell and target shell. What is the difference between the three?
A: The target shell and kernel shell are the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: .Net Gridview alpha sorting, it needs to be numerically sorted This is my first real question of need for any of those Gridview experts out there in the .NET world.
I an creating a Gridview from codebehind and I am holding a bunch of numerical data in the columns. Although, I do add the comma in the number fields f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the best way to export bug tracking data from hosted HP Quality Center? This question may be too product specifc but I'd like to know if anyone is exporting bug track data from HP Quality Center.
HP Quality Center (QC) has an old school COM API but I'd rather use a web service or maybe even screen scraper to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to determine which version of Direct3D is installed? We have an application which needs to use Direct3D. Specifically, it needs at least DirectX 9.0c version 4.09.0000.0904. While this should be present on all newer XP machines it might not be installed on older XP machines. How can I programmatically (using C++... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Unittest causing sys.exit() No matter what I do sys.exit() is called by unittest, even the most trivial examples. I can't tell if my install is messed up or what is going on.
IDLE 1.2.2 ==== No Subprocess ====
>>> import unittest
>>>
>>> class Test(unittest.TestCase):
def testA(self):
a = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Wildcard Subdomains I know there have been a few threads on this before, but I have tried absolutely everything suggested (that I could find) and nothing has worked for me thus far...
With that in mind, here is what I'm trying to do:
First, I want to allow users to publish pages and give them each a subdomain of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Dealing with Date only dates across timezones in .Net Ok - a bit of a mouthful. So the problem I have is this - I need to store a Date for expiry where only the date part is required and I don't want any timezone conversion. So for example if I have an expiry set to "08 March 2008" I want that value to be returned t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Parsing HTTP Headers I've had a new found interest in building a small, efficient web server in C and have had some trouble parsing POST methods from the HTTP Header. Would anyone have any advice as to how to handle retrieving the name/value pairs from the "posted" data?
POST /test HTTP/1.1
Host: test-domain.com:701... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Screen scraping a command window using .net managed code I am writing a program in dot net that will execute scripts and command line programs using the framework 2.0's Process object. I want to be able to access the screen buffers of the process in my program. I've investigated this and it appears that I need to ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Elegant method for drawing hourly bar chart from time-interval data? I have a list of timesheet entries that show a start and stop time. This is sitting in a MySQL database. I need to create bar charts based on this data with the 24 hours of the day along the bottom and the amount of man-hours worked for each hour o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to convert local time string to UTC? How do I convert a datetime string in local time to a string in UTC time?
I'm sure I've done this before, but can't find it and SO will hopefully help me (and others) do that in future.
Clarification: For example, if I have 2008-09-17 14:02:00 in my local timezone (+10), I'd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "404"
} |
Q: What is the difference between file modification time and file changed time? I am confused between the term file modification time and file changed time. Can anyone help to make it clearer?
A: mtime is modification time - contents have changed.
ctime is status change time - perms and ownership as well as contents.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Need javascript code for button press and hold I'd like a short smallest possible javascript routine that when a mousedown occurs on a button it first responds just like a mouseclick and then if the user keeps the button pressed it responds as if the user was continously sending mouseclicks and after a while with th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: What is the best way to load a Hibernate object graph before using it in a UI? The situation is this:
*
*You have a Hibernate context with an
object graph that has some lazy
loading defined.
*You want to use
the Hibernate objects in your UI as
is without having to copy the data
somewhere.
*There are differe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you design data models for Bigtable/Datastore (GAE)? Since the Google App Engine Datastore is based on Bigtable and we know that's not a relational database, how do you design a database schema/data model for applications that use this type of database system?
A: Designing a bigtable schema is an open proces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Network Map Algorithm that Detects Unmanaged Layer 2 Switches? I've inherited a network spread out over a warehouse/front office consisting of approximately 50 desktop PCs, various servers, network printers, and routers/switches.
The "intelligent" routers live in the server room. As the company has grown, we've anne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What is the most efficient way to count the results of a stored procedure, from another stored procedure? In a stored procedure, I need to get the count of the results of another stored procedure. Specifically, I need to know if it returns any results, or an empty set.
I could create a temp table/table variable, exe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C# utility to create a CA I'd like to create a utility in C# to allow someone to easily create a Certificate Authority (CA) in Windows. Any ideas/suggestions?
I know I can use OpenSSL to do this. In the end, I'll want this utility to do more than just generate a CA. I'd also like to avoid requiring the installatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ActiveRecord#save_only_valid_attributes I'm looking for a variation on the #save method that will only save
attributes that do not have errors attached to them.
So a model can be updated without being valid overall, and this will
still prevent saving invalid data to the database.
By "valid attributes", I mean tho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best testing tool for Swing-based applications? While we try to set up as many unit tests as time allows for our applications, I always find the amount of UI-level tests lacking. There are many options out there, but I'm not sure what would be a good place to start.
What is your preferred unit testing t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: How does vxWorks deal with two tasks at the same priority? We have two tasks (T1 and T2) in our vxWorks embedded system that have the same priority (110).
How does the regular vxWorks scheduler deal with this if both tasks are ready to run?
Which task executes first?
A: The task that will run first is the task that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: mspdbsrv.exe living forever? Is there a way to prevent mspdbsrv.exe from continuing to run
after finishing the compilation? or even after I terminate visual studio? or perhaps even prevent it from even spawning in the first place?
what is this guy good for anyway?
using vs2005
A: A little googling seems to indicate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Integrating static analysis tools with each other? How are folks integrating various static analysis tools such as PMD, Checkstyle, and FindBugs so that they are used together in some uniform way? In particular, I'm interested in generating a single uniform report that includes warnings from all tools. Also, I want ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What and where are the stack and heap?
*
*What are the stack and heap?
*Where are they located physically in a computer's memory?
*To what extent are they controlled by the OS or language run-time?
*What is their scope?
*What determines their sizes?
*What makes one faster?
A: You can do some interesting thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9225"
} |
Q: What is the best way to change the encoding of text in PHP I want to run text through a filter to ensure it is all UTF-8 encoded. What is the recommended way to do this with PHP?
A: Your question is unclear, are you trying to encode something? If so utf8_encode is your friend. Are you trying to determine if it d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What was the name of the Mac (68000) assembler? I'm sure there were several, but the one I was thinking of would display a nice text screen when you crashed the computer thoroughly.
The Text was "Well smoke me a kipper."
A: No one else has answered this, so I'll answer the part I can: the original Macintosh debug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there an equivalent to Java's Robot class (java.awt.Robot) for Perl? Is there an equivalent to Java's Robot class (java.awt.Robot) for Perl?
A: Alternatively, you can surely use the WWW::Mechanize module to create an agent as we do here at work. We have a tool called AppMon that is really just a dramatized wrapp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to load Many to many LINQ query? I have the following (pretty standard) table structure:
Post <-> PostTag <-> Tag
Suppose I have the following records:
PostID Title
1, 'Foo'
2, 'Bar'
3, 'Baz'
TagID Name
1, 'Foo'
2, 'Bar'
PostID TagID
1 1
1 2
2 2
In other words, the first post... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Best way of store only date on datetime field? Scenario:
A stored procedure receives from code a DateTime with, let's say DateTime.Now value, as a datetime parameter.
The stored procedure needs to store only the date part of the datetime on the row, but preserving all date related arithmetics for, to say, do searc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Reporting with db4o I've used db4o with much success on many projects in the past. Over time it seems to have evolved greatly, and with modern trends like LINQ on everyone's tongue it has peaked my interest again, especially now that I know that it is starting to support transparent activation and persistence which ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Visual Studio opens the default browser instead of Internet Explorer When I debug in Visual Studio, Firefox opens and that is annoying because of the hookups that Internet Explorer and Visual Studio have, such as when you close the Internet Explorer browser that starting debug opened, Visual Studio stops debugging. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "208"
} |
Q: How to Truncate a string in PHP to the word closest to a certain number of characters? I have a code snippet written in PHP that pulls a block of text from a database and sends it out to a widget on a webpage. The original block of text can be a lengthy article or a short sentence or two; but for this widget I can'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "203"
} |
Q: Split a string by spaces -- preserving quoted substrings -- in Python I have a string which is like this:
this is "a test"
I'm trying to write something in Python to split it up by space while ignoring spaces within quotes. The result I'm looking for is:
['this', 'is', 'a test']
PS. I know you are going to ask "wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "334"
} |
Q: Why can't I single-step Clipboard-code within the VS.NET debugger? Ideally the reader has upgraded a native C++ program to Visual Studio 2008, which contains an OpenClipboard() block. Why not try setting a breakpoint just after getting a successful return-code from OpenClipboard() and step through your code. Accor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What parallel programming model do you recommend today to take advantage of the manycore processors of tomorrow? If you were writing a new application from scratch today, and wanted it to scale to all the cores you could throw at it tomorrow, what parallel programming model/system/language/library would you choose? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/79999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: Is it me, or is Eclipse horribly unpredictable? I recently started using Eclipse at work for my Java servlet projects. I've been using jEdit for years, which is a uber-powerful text editor. It has syntax highlighting, but it doesn't have any language-specific features like code completion and intelligent refactori... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What can cause Web.sitemap to not be found? I have a asp:menu object which I set up to use a SiteMapDataSource but everytime I try to run the site, I get a yellow screen from firefox saying it cannot find the web.sitemap. Here's the code for the sitemapdatasource and the menu. The Web.sitemap file is sitting in the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Byte buffer transfer via UDP Can you provide an example of a byte buffer transferred between two java classes via UDP datagram?
A: Hows' this ?
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetSocketAddress;
public class Server {
public static v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to add monsters to a Pokemon game? My friends and I are starting a game like Pokemon and we wanted to know how will we add monsters to the game? We're using VisualBasic because my friend's brother said it would be easier.
So far we can put pictures of the monsters on the screen and you can click to attack and s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Best Mocking Library Which is the best mocking library for C# 3.0/ ASP.NET MVC? Why?
A: Very subjective question. What do you mean by "best"? Maybe you should provide some more context on your situation.
RhinoMocks is one of the most popular, as to whether it's the best for you, who knows?
A: Moq
It's amazing, f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: In Javascript, why is the "this" operator inconsistent? In JavaScript, the "this" operator can refer to different things under different scenarios.
Typically in a method within a JavaScript "object", it refers to the current object.
But when used as a callback, it becomes a reference to the calling object.
I have f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Best Reporting application Desinging web application and for reporting iam using crystal reports.sometimes the crystal reports gives runtimes error. What can i do to make my report faster. Retrieving around 1MB of data. It is the month end sales report. what is the best method to solve this issue.
A: You can use i-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: diff a ruby string or array How do I do a diff of two strings or arrays in Ruby?
A: There is also diff-lcs which is available as a gem. It hasn't been updated since 2004 but we have been using it without any problem.
Edit: A new version was released in 2011. Looks like it's back in active development.
http://rubyge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: iCal Format - Organizer Property I am currently programming a scheduling application which loosely based on iCalendar standard. Does anyone knows in which property can I store the event creator's information? By browsing through the iCalendar RFC 2445, I find this property: Organizer. can I store the event creator's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Detect "Clone Mode" display setup How can I determine if my displays are in "Clone Mode" without using either COPP (Computer Output Protection Protocol) or OPM (Output Protection Protocol) on Windows?
Vista solution:
hMonitor = MonitorFromWindow (HWND_DESKTOP, MONITOR_DEFAULTTOPRIMARY);
bSuccess = GetNumberOfPhysica... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the best way to distribute Java applications? Java is one of my programming languages of choice. I always run into the problem though of distributing my application to end-users.
Giving a user a JAR is not always as user friendly as I would like and using Java WebStart requires that I maintain a web server.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "119"
} |
Q: What's the difference between XML-RPC and SOAP? I've never really understand why a web service implementer would choose one over the other. Is XML-RPC generally found in older systems? Any help in understanding this would be greatly appreciated.
A: Differences?
SOAP is more powerful, and is much preferred by softwa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "84"
} |
Q: Cruise Control .Net vs Team Foundation Build Our team is setting up nightly and continuous integration builds. We own Team Foundation Server and could use Team Foundation Build. I'm more familiar with CC.Net and lean that way but management sees all the money spent on TFS and wants to use it.
Some things I like be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: storing revision changes of a message What algorithms and processes are involved in storing revision changes like stackoverflow and wikipedia do?
Is only one copy of the message kept? And if so is it only the latest copy? Then only changes to go back to the previous version(s) are stored from there? (This would m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Comparing MySQL Cross and Inner Joins What are the potential pros and cons of each of these queries given different databases, configurations, etc? Is there ever a time when one would be more efficient than the other? Vice versa? Is there an even better way to do it? Can you explain why?
Query 1:
SELECT
*
FRO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What does COINIT_SPEED_OVER_MEMORY do? When calling CoInitializeEx, you can specify the following values for dwCoInit:
typedef enum tagCOINIT {
COINIT_MULTITHREADED = 0x0,
COINIT_APARTMENTTHREADED = 0x2,
COINIT_DISABLE_OLE1DDE = 0x4,
COINIT_SPEED_OVER_MEMORY = 0x8,
} COINIT;
What does the sugg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I hide a column only on the list page in ASP.NET Dynamic Data? This is somewhat similar to this question.
However, rather than wanting to hide a column all together, I am just looking to hide the column on the List.aspx page.
My specific example is that fields that are long (or at least nvarchar(MAX)) automat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to track changes to business objects? I get the concept of creating a business object or entity to represent something like a Person. I can then serialize the Person using a DTO and send it down to the client. If the client changes the object, it can have an IsDirty flag on there so when it gets sent back to the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Using X-Sendfile with Apache/PHP I can't seem to find much documentation on X-Sendfile or example code for PHP (there is some rails code).
Anyone used it before and would mind giving a quick snippet of code and a brief description?
A: X-Sendfile is an HTTP header, so you want something like this:
header("X-Sendfile... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: High Availability Storage I would like to make 2 TB or so available via NFS and CIFS. I am looking for a 2 (or more) server solution for high availability and the ability to load balance across the servers if possible. Any suggestions for clustering or high availability solutions?
This is business use, planning on g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to insert a text-like element into document using javascript and CSS? I want to use javascript to insert some elements into the current page.
Such as this is the original document:
<p>Hello world!</p>
Now I want to insert an element in to the text so that it will become:
<p>Hello <span id=span1>new</span> world!... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Btrieve without Pervasive? Is there any library available to query Btrieve databases without buying something from Pervasive? I'm looking to code in C# or Python.
A: As far as I know that is not possible. It is not an open source database, so writing drivers for it is really hard.
A: If you download one of the tri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Do you use application frameworks? Application frameworks such as DotNetNuke, Eclipse, Websphere and so forth are available today which offer customizable frameworks that can be used as dashboard applications. Do you use these or do you and your peers keep writing amazing, modular, maintainable dashboard frameworks... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Open .NET form in designer mode - get "The path is not of a legal form" I attempted to open a C#/VB form in designer mode, and instead of the form, I got an ugly error message saying "The path is not of a legal form". This form used to work! What happened?
Thanks to all who have answered. This question is a prob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does Test Driven Development take the focus from Design? I have mixed feelings about TDD. While I believe in testing I have a issues with the idea of the test driving my development effort.
When you code to satisfy some tests written for an interface for requirements you have right now, you might shift your focus fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Implementations of interface through Reflection How can I get all implementations of an interface through reflection in C#?
A: The answer is this; it searches through the entire application domain -- that is, every assembly currently loaded by your application.
/// <summary>
/// Returns all types in the current App... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: How to get someone started with ALT.NET What is the order of topics to explain to a .NET developer or user group to get them started and interested with alt.net tools and practices.
*
*ORM
*IoC
*TDD
*DDD
*DSL
*CI
*MVC - MVP
*Version Control (I think this is the one they get the fastest)
*Agile
*Etc, etc.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I refresh a training database with the data from production database? I have a particular system on out network where we need to maintain a training installation. The system uses SQL Server 2000 as its database engine and I need to set up a system for refreshing the data in the training database with the data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using Google Maps in ColdFusion I am trying to use the Google Maps API in a ColdFusion template that is a border type cflayoutarea container. However, the map simply doesn't show up:
<cfif isdefined("url.lat")>
<cfset lat="#url.lat#">
<cfset lng="#url.lng#">
</cfif>
<head>
<script src= ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What tools generate JavaScript? Are there any good tools to generate JavaScript? I remember in .NET, there was Script# - don't know its status today.
Anyone have experience with any tools?
A: I use my keyboard, a text editor and my brain to generate JavaScript.
:P
A: As others have said, GWT is a very good optio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I build a 'dependency tree diagram' from my .NET solution I can get easily see what projects and dlls a single project references from within a Visual Studio .NET project.
Is there any application or use of reflection that can build me a full dependency tree that I can use to plot a graphical chart of depend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Granting access to hundreds of SPs? In Sql Server 2000/2005, I have a few NT user groups that need to be granted access to hundreds of stored procedures.
Is there a nice easy way to do that?
A: *
*Create a role in sql server.
*Write a
script that grants that role
permission to use those sprocs.
*Add those NT use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: mysqli_stmt::num_rows() returns the wrong value I was writing a database handler class in PHP using the mysqli class and prepared statements. I was attempting to print out the result. It didn't work right off the bat so I decided to do some debugging. I tried to use the num_rows() method from the mysqli_statement... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Test Coverage for visual basic project We are developing a Visual Basic 6.0 project. We have written a library, which we were testing using vbunit and vbmock. But soon found that the tests were not maintainable. So, we decided to write tests using MBunit. Now, we want to know the test coverage. How can we do it?
tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.