text string | meta dict |
|---|---|
Q: Using Microsoft SMS Sender to send out smses in batch? I understand that we can use SMS Sender in command line mode. But i been getting this error same as this article http://www.oreillynet.com/pub/a/wireless/2003/10/10/sms.html
The smssender.exe will use the last device that was successfully used to send messages i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Regex to validate the index of a website vs. a specific page I'm looking for a regex that will allow me to validate whether or not a string is the reference to a website address, or a specific page in that website.
So it would match:
http://google.com
ftp://google.com
http://google.com/
http://lots.of.subdomains.go... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: if statements in mysql? is there an if statement when it comes to mysql query statements?
when i am updating a table record, i want to only update certain columns if they have a value to be updated.
for example, i want an update table function, and there is a table for volunteers and a table for people who just want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java MessageFormat - How can I insert values between single quotes? I'm having a problem using the java.text.MessageFormat object.
I'm trying to create SQL insert statements. The problem is, when I do something like this:
MessageFormat messageFormat = "insert into {0} values ( '{1}', '{2}', '{3}', {4} )";
Object[]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "69"
} |
Q: Best practices for handling variable size arrays in c / c++? If I have an array of a fixed size depending on how it is defined and used, I typically use one of two ways to reference it.
Array type 1: Since it is a fixed size based on a define, I just use that define in all my loops referencing it.
#define MAXPLAYERS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there any way to get code folding in Delphi 7? I know this is a long shot - but is there any way at all to get code folding into Delphi 7?
I'm working on some .. "suboptimal" .. code. Sometimes I really need to fold bits away to grok a stupid-long procedure. Currently I'm pasting code into Notepad++, which works,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Scaling solutions for MySQL (Replication, Clustering) At the startup I'm working at we are now considering scaling solutions for our database. Things get somewhat confusing (for me at least) with MySQL, which has the MySQL cluster, replication and MySQL cluster replication (from ver. 5.1.6), which is an asynchronous... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "86"
} |
Q: Upgrade Subversion 1.4.3 to 1.5.2 on Debian (hosted account) I'm trying to upgrade my subversion server (I have it hosted with Dreamhost)
This is what I run:
*
*wget http://subversion.tigris.org/downloads/subversion-1.5.2.tar.bz2
*wget http://subversion.tigris.org/downloads/subversion-deps-1.5.2.tar.bz2
*tar -x... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to handle a class name conflict when porting old code? I'm trying to port an old library (that doesn't use namespaces as far as I can tell) to modern compilers. One of my targets can't tell the difference between System::TObject and ::TObject (without a namespace). System::TObject is native to the compiler.
I've... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: password encryption in iphone apps I need to store the user's password in my iphone app.
When posting an app to the app store, I have to tell Apple if there's encryption in the app for export purposes.
I don't want my app to be restricted to US only, but I also don't want to store or send passwords over the net in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What's the equivalent of XMLHTTP from VB6 in C# .Net 2005? I'm trying to convert some code that worked great in VB, but I can't figure out what objects to use in .Net.
Dim oXMLHttp As XMLHTTP
oXMLHttp = New XMLHTTP
oXMLHttp.open "POST", "https://www.server.com/path", False
oXMLHttp.setRequestHeader... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I quantify difference between two images? Here's what I would like to do:
I'm taking pictures with a webcam at regular intervals. Sort of like a time lapse thing. However, if nothing has really changed, that is, the picture pretty much looks the same, I don't want to store the latest snapshot.
I imagine th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "221"
} |
Q: How to detect intermittent time out problem in web applications? Have a n-tire web application and search often times out after 30 secs. How to detect the root cause of the problem?
A: You can add trace code to log its activities and then look at each operation to see what part times out and why.
A: Use the tool ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: VB.NET generics to C# syntax Could you please show me the C# Equivalent of this VB.NET code:
Public Partial Class Index
Inherits System.Web.Mvc.Viewpage(Of List(Of Task))
End Class
I am not sure where/how to add it in for C#:
public partial class DirList : System.Web.Mvc.ViewPage
{
}
The code is suppose to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Argument-parsing helpers for C/Unix I know of the following:
*
*The venerable getopt(3)
*The extended getopt_long
*glibc's argp parser for Unix-style argument vectors
*popt from the GNOME project (or its spiritual successor in Glib)
I'm sure there's more that I haven't used or even heard of; a quick Google s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Auto refreshing the UI when business objects change This is more of a design question.
I am building a tool that displays business objects in various ways (ie Tree Nodes, List View Items, Combo Boxes, Text Fields, etc). Anytime the user changes any of one of them, an event is raised that signals that that busines... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Strange OpenGL ES behavior in iPhone app I'm making a simple 2D game for the iPhone. It's based on CrashLanding. so it's basically a background texture and a few rectangular textures moving around.
I have this bizarre little graphics problem: some of the small 2d items (can assume just rectangles) moving around g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Easiest way to front Weblogic 9.2 with apache 2.x I want to put Apache 2.2.9 in front of a Weblogic 9.2 server on Windows XP. What does it take to do that ?
I probably need mod_proxy on the apache side ?
As far as Weblogic and apache are concerned, is there something similar to mod_jk ?
I would like this setup so t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "Inline" Class Instantiation in PHP? (For Ease of Method Chaining) An idiom commonly used in OO languages like Python and Ruby is instantiating an object and chaining methods that return a reference to the object itself, such as:
s = User.new.login.get_db_data.get_session_data
In PHP, it is possible to replicate th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I fix "ssl handshake failed" with ApacheBench? When I use ApacheBench to test https, the error is returned, "ssl handshake failed".
How can I use ApacheBench to test https?
A: httperf is also single threaded, but as of today (Aug 31, 2012), it correctly handles SSL and even has a some useful additional featu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/189993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Online C reference manuals I've studied C programming in college some years ago and have developed some medium applications back then (nothing serious). Now I have to develop some more 'advanced' C applications (involving POSIX threads and RPC), but right now I'm a little rusty even with the basics.
Can anyone recom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Automagic unit tests for upholding Object method contracts in Java? When developing Java applications, I often override Object methods (usually equals and hashCode). I would like some way to systematically check that I'm adhering to the contract for Object methods for every one of my classes. For example, I want t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Daemon Threads Explanation In the Python documentation
it says:
A thread can be flagged as a "daemon thread". The significance of this
flag is that the entire Python program exits when only daemon threads
are left. The initial value is inherited from the creating thread.
Does anyone have a clearer explanation ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "290"
} |
Q: Add a IIS host header to website programmatically I would like to setup a admin page (ASP.NET/C#) that can add IIS host headers to the website that the admin page is hosted on. Is this possible?
I dont want to add a http header - I want to mimick the action of going into IIS manually, bringing up the properties of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What's the best way to copy/fill a large array with a smaller array in C#? I have a large int[] array and a much smaller int[] array. I want to fill up the large array with values from the small array, by repeat copying the small array into the large array until it is full (so that large[0] = large[13] = large[26] ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using LIMIT when searching by a unique field Given a table structure like this:
CREATE TABLE `user` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(32) NOT NULL,
`username` varchar(16) NOT NULL,
`password` char(32) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
);
Is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to query a model based off the controller name I've been refactoring my models and controllers in an effort to remove code duplication, and so far it seems to be all peachy creamy. Currently I've got a bit of code that is common to two of my controllers, like so:
def process_filters
# Filter hash we're going to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Building windows c++ libraries without a runtime? I'm trying to create a c++ library for use on windows/MSVC.
My problem is that it seems that in order to link properly, I need to distribute a bunch of different versions, linked against different versions of MSVC's c++ runtimes - single and multi-threaded, debug and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the best way to use the .SaveChanges() method in ADO.Net Data Services? Does anyone have some good information on the usage of the .SaveChanges() method?
I am experiencing a variety of issues when attempting to use the .SaveChanges() method on my data context object. I am taking data from an existing data s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: XML Data Binding with Namespaces I want to use data binding with an XML document to populate a simple form that shows details about a list of people. I've got it all set up and working like so right now:
<Window x:Class="DataBindingSample.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xml... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: why won't it post these results? I am having trouble grabbing the values from the form once processed. I need your help.
function updateUser($table, $id) {
if($_POST) {
processUpdate($table, $id);
} else {
updateForm($table, $id);
}
}
function processUpdate($table, $id) {
print $tab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: IDLE doesn't start in python 3.0 If I have no connection to internet, does that mean I can't start IDLE (which comes with python 3.0)?
A: IDLE displays a warning message about firewall programs because it connects to the interpreter over the loopback interface, but that interface is always "connected" and doesn't r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to pick what unit to display a value in? I have a value and I known that it's units is
metersmn/md * kgkn/kd * ssn/sd * KKn/Kd * AAn/Ad
Note: the exponents are rational, units of m0.5 are valid
The question is how to pick how to break down the units into something more compact
for instance if
md=kd=sd=Kd=Ad=1
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: NHibernate Order By question Ok, so I have an nHibernate ICriteria that returns an object. I want to order by a single property but NOT asc or desc I want certain values of the property to come to the top of the repeater based on the selection. Like if I choose "video" I want all records with videos to come to the t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Where and how does Windows XP store wep/wpa keys? Like the title says Where and How (i.e. if encrypted, with what method) does Windows XP store WEP/WPA Keys?
A: I found this: http://msdn.microsoft.com/en-us/library/ms706987(VS.85).aspx.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/190130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Open source random number generation algorithm in C++? I need to generate random numbers in the range 1 - 10000 continuously with out duplication.
Any recommendations?
Description: we are building a new version for our application, which maintains records in Sqlite DB. in the last version of our application, we did... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: VB.NET Strong-typed collection I want to create a collection in VB.NET, but I only want it to accept objects of a certain type. For example, I want to create a class called "FooCollection" that acts like a collection in every way, but only accepts objects of type "Foo".
I thought I could do this using generics, usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is there an equivalent to Thread.sleep when dealing with Eclipse Jobs? I am writing Eclipse plugins where there are quite a few running jobs.
In some cases, I want the job to "sleep" for a while at the current point of execution and continue from that spot (rather than reschedule the job and start it from scratch).
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to insert emoticons in LaTeX? I know it's a long shot, but is there some package or means to insert emoticons into a LaTeX document?
A: Unicode's "miscellaneous symbols" include 3 simple emoticons: 0x2639-0x263B. You can possibly use 0x2686-0x2689 as well.
For more variation you are going to need to use images ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Cross-component Communication within a View (MVC) What are some best practices to orchestrate the interaction between complex components that are in your View?
I'm not talking about simple widgets like a combo box or a grid control but components that are made up of multiple widgets and that may deserve being unit t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I create the migrations for a legacy database? I am currently developing a Rails application using a database that was designed before I was aware of Rails existence.
I have currently created some migrations to add some new tables and new columns to existing tables.
I would like to have the migrations to recr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you maintain your multi-language application? How do you keep the spoken languages strings in your program up to date?
Is there an inexpensive way? Where can you find people to do the conversions over time?
A: This was excerpted into Joel's Best Software Writing I: http://blogs.msdn.com/ericlippert/archive/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: asp.net and HTTP compression - shared hosting What are my options when it comes to implementing page compression is asp.net.Right now I have a custom home grown httpmodule and its not very mature.
Google links me to MbCompression. The project has few views and downloads which discourages me a bit.
Edit: I am under s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Persisting an environment variable through Ruby I am trying to set my DOS environment variable in Ruby, and have it persist after the script exits. For example, if I want a ruby script set_abc_env.rb to set environment variable 'ABC' to 'blah', I expect to run the following:
C:> echo %ABC%
C:> set_abc_env.rb
C:> ech... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to detect whether serial port is in use or not in .net We have industrial automation application developed in .NET 3.5 framework.
I have to list out the available serial ports in the computer for our user. As part this, if any of the serial port is already opened, I have to show "In Use" status. I tried google ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: execv() and const-ness I often use the execv() function in C++, but if some of the arguments are in C++ strings, it annoys me that I cannot do this:
const char *args[4];
args[0] = "/usr/bin/whatever";
args[1] = filename.c_str();
args[2] = someparameter.c_str();
args[3] = 0;
execv(args[0], args);
This doesn't comp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Linq and heavy blobs I have this Document table with some meta data for the document in it and also the document content as a blob.
then I use lucene.Net to query my documents; which in return gives me a list of Guids to my Document table and also two fields containing the highlighted html versions of the document n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Database backup of a mysql database in VB.Net How do you create a database backup of a mysql database in VB.Net?
A: You can use MySqlBackup.NET, which is an alternative to mysqldump.
Official Website & Documentation > https://github.com/MySqlBackupNET/MySqlBackup.Net
Examples:
Backup a MySql Database
Dim conn As M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why isn't my .net-calculated MD5 hash equivalent to the hash calculated on a web site? I am trying to generate equivalent MD5 hashes in both JavaScript and .Net. Not having done either, I decided to use against a third party calculation - this web site for the word "password". I will add in salts later, but at the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is java.util.regexp efficient enough? I need to do a lot of searches of certain patterns in source files while the user is changing them, so I need to do regexp matching that is efficient in time and memory. The pattern repeats itself so should be compiled once, but I need to be able to retrieve subparts (rather tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: JUnit and junit.framework.TestSuite - No runnable methods I've made some unit tests (in test class). The tutorial I've read said that I should make a TestSuite for the unittests.
Odd is that when I'm running the unit test directly (selecting the test class - Run as jUnit test) everything is working fine, altough whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Building a LINQ query programmatically without local variables tricking me Assume my objects are in perfect working order (i.e. TDD makes me think they work).
I have a list that I create like this (except indented properly):
var result = from v in vendors
from p in v.Products
orderby p.Name... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Where is the itoa function in Linux? itoa() is a really handy function to convert a number to a string. Linux does not seem to have itoa(), is there an equivalent function or do I have to use sprintf(str, "%d", num)?
A: Edit: I just found out about std::to_string which is identical in operation to my own function b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "163"
} |
Q: Can a recursive function be inline? inline int factorial(int n)
{
if(!n) return 1;
else return n*factorial(n-1);
}
As I was reading this, found that the above code would lead to "infinite compilation" if not handled by compiler correctly.
How does the compiler decide whether to inline a function or not ?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "156"
} |
Q: How do I make a thread dump in .NET ? (a la JVM thread dumps) I have found no way of dumping the stack on all threads in .NET. Neither a signal to be send to the process nor programatic access to all the threads. I can only get access to the current thread via Thread.CurrentThread.
Any tricks ?
A: Just to save anyo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: How to acquire specific revision of a newly added file from CVS via command line? One of our internally written tool is fed a cvs commit trace of the form:
Checking in src/com/package/AFile.java;
/home/cvs/src/com/package/AFile.java,v <-- Afile.java
new revision: 1.1.2.56; previous revision: 1.1.2.55
don... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Can you divide one alias by another in MySQL? I have a multi-table query, similar to this (simplified version)
SELECT columns, count(table2.rev_id) As rev_count, sum(table2.rev_rating) As sum_rev_rating
FROM table1
LEFT JOIN table2
ON table1.dom_id = table2.rev_domain_from
WHERE dom_lastreview != 0 AND rev_status ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: jQuery selector regular expressions I am after documentation on using wildcard or regular expressions (not sure on the exact terminology) with a jQuery selector.
I have looked for this myself but have been unable to find information on the syntax and how to use it. Does anyone know where the documentation for the sy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "638"
} |
Q: Best Role-Based Access Control (RBAC) database model What is the best database schema to track role-based access controls for a web application?
I am using Rails, but the RBAC plugin linked by Google looks unmaintained (only 300 commits to SVN; latest was almost a year ago).
The concept is simple enough to implement... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Localization testing, formatting all strings with XXXXX We are trying to look at optimizing our localization testing.
Our QA group had a suggestion of a special mode to force all strings from the resources to be entirely contained of X. We already API hijack LoadString, and the MFC implementation of it, so doing it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Searching byte[] Searching for a string within a string is extremely well supported in .NET but what do you do when the data you need to search isn't a string?
I have binary data arriving in regular chunks via a NetworkStream. Packets are binary but they all start with a signature sequence of bytes. I accumulate the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Installing ASP.Net 2.0 after IIS I just got a dedicated server from a hosting company, and for some reason, it didn't have IIS installed.
It did have .Net 2.0, though.
So I installed IIS, but now my ASP.net websites won't work.
I just get a 404, no event log entries, nothing...
I noticed in the redistributable packa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Unit Testing with items that need to send headers I'm currently working with PHPUnit to try and develop tests alongside what I'm writing, however, I'm currently working on writing the Session Manager, and am having issues doing so...
The constructor for the Session handling class is
private function __construct()
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Testing Abstract Classes How do I test the concrete methods of an abstract class with PHPUnit?
I'd expect that I'd have to create some sort of object as part of the test. Though, I've no idea the best practice for this or if PHPUnit allows for this.
A: It should be noted that as of PHP 7 support for anonymous class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "156"
} |
Q: How do you effectively model inheritance in a database? What are the best practices for modeling inheritance in databases?
What are the trade-offs (e.g. queriability)?
(I'm most interested in SQL Server and .NET, but I also want to understand how other platforms address this issue.)
A: There are two main types of i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "167"
} |
Q: How to determine the file size from an attachment to a POP3 message I'm writing a program to read from a POP3 mailbox and upload the email message into my ticketing system. I would like to then take the attachments and upload them as well. I've got all the information I need except the file size.
Is there a way to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C++ : Finding out decorated names How can I find out the decorated name that will be asigned to each method name ? I'm trying to find out what the decorated name is , so that I may export it , in a DLL .
A: .DEF file are still being used?
Forget .DEF files. They are a thing of the past.
Export your functions, be th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Video API For Building Video-Conference App I'm going to be building an application within the next six months that will be functioning as a 2-way video-conferencing system, as well as sharing some other data back and forth. I'll probably be using some sort of relatively expensive USB webcam, and am aware of the US... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I properly size a table in Latex? This is my first Latex doc. Using Latex8.sty I'm trying to include a 5 column table. I've commented out everything but the introdution and the table. When I make the pdf it shows the introduction but no table. Any tips?
\begin{tabular}{|ll||l|c|r|rr}
Mass&a1&a2&Fprime1&Fpri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF Blurry fonts issue- Solutions Problem is described and demonstrated on the following links:
*
*Paul Stovell WPF: Blurry Text Rendering
*www.gamedev.net forum
*Microsoft Connect: WPF text renderer produces badly blurred text on small font sizes
Explanation: Text Clarity in WPF. This link has font comparis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "157"
} |
Q: Explicit multi-core C# applications Is there any easy way to explicitly make an already threaded application utilise a multicore environment? (if avaliable).
The first problem would be how do I determine if my runtime environment supports multi-core applications?
If I then determine that I can use multi core functio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Windows swapping redundantly? This may not be strictly programming related but more OS-structure related.
Running Vista 32 bit on a brand new laptop with 3GB of memory, Running idle the system consumes about 40% of its memory. Other then the fact that this is outrageous on its own right, the OS should be able to fit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Getting the string representation of a type at runtime in Scala In Scala, is it possible to get the string representation of a type at runtime? I am trying to do something along these lines:
def printTheNameOfThisType[T]() = {
println(T.toString)
}
A: Note: this answer is out of date!
Please see answer using Ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Is String.hashCode() portable across VMs, JDKs and OSs? An interesting issue came up recently. We came across some code that is using hashCode() as a salt source for MD5 encryption but this raises the question: will hashCode() return the same value for the same object on different VMs, different JDK versions and op... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Storing more than 1 data item at a single index in a linked-list? I am trying to store more than 1 data item at a single index in my linked-list. All of the examples in my textbook seem to illustrate adding only 1 piece of data per index. I'm assuming it is possible to add more?
For example, using the Collections ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to manipulate images at the pixel level in C# How do I manipulate images at the pixel level in C#?
I need to be able to read/modify each bitmap pixel RGB values separately.
A code sample would be appreciated.
A: If you want speed, then LockBits. See here for a good walkthrough by Bob Powell. If you just want t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: Adding HTML entities using CSS content How do you use the CSS content property to add HTML entities?
Using something like this just prints to the screen instead of the non-breaking space:
.breadcrumbs a:before {
content: ' ';
}
A: Update: PointedEars mentions that the correct stand in for in a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1116"
} |
Q: How can I get Emacs style key bindings in Visual Studio? How can I get Emacs style key bindings in Visual Studio? Is it available in Settings? Do I need a Plug-in?
A: With Settings:
Try the Emacs keyboard scheme on Environment options.
Plugins:
I have only seen this one: VisEmacs, it will integrate Emacs as the d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Get name of caller function in PHP? Is there a PHP function to find out the name of the caller function in a given function?
A: Made this and using this myself
/**
* Gets the caller of the function where this function is called from
* @param string what to return? (Leave empty to get all, or specify: "class", "fu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "157"
} |
Q: Is git-svn dcommit after merging in git dangerous? My motivation for trying out git-svn is the effortless merging and branching. Then I noticed that man git-svn(1) says:
Running git-merge or git-pull is NOT recommended on a branch you plan
to dcommit from. Subversion does not represent merges in any
reasonable... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "135"
} |
Q: Specify parts of the header that have to be signed and/or encrypted in WCF with binding that support standards Using Ws2007HttpBinding and securing the service, the WSDL file generated shows in the policy section that all the ws-addressing headers and the body will be signed, and that the body will be encrypted.
<sp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Perl: HTML Scraping from an Authenticated website While HTML Scraping is pretty well-documented from what I can see, and I understand the concept and implementation of it, what is the best method for scraping from content that is tucked away behind authentication forms. I refer to scraping from content that I legiti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I store multiple values in a Perl hash table? Up until recently, I've been storing multiple values into different hashes with the same keys as follows:
%boss = (
"Allan" => "George",
"Bob" => "George",
"George" => "lisa" );
%status = (
"Allan" => "Contractor",
"Bob" => "Part-time... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Restore SVN backups from multiple files I have a very large (~6GB) SVN repository, for which I've written a batch file script to do an incremental backup each day. The script checks when the last backup was run and dumps only the revisions since then.
The files are named: backup-{lower_revision}-{higher_revision}.sv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: A simple, medium secure,login protocol? I asked here about a protocol that I was asked to implement, and how secure it was. Since it seemed clear from the very beginning that it was shit. Being so I ask:
Can you guys point me to some very simple login protocol (I am null at cryptography systems)?? I am developing bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How much of an operating system could be written in, say, Python? This is a pretty-much theoretical question, but..
How much of an operating system could be written in a language like Python, Ruby, Perl, or Lisp, Haskell etc?
It seems like a lot of the stuff like init.d could trivially be done in a scripting languag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Open CDialog from Java using JNI I have an application that needs to open a CDialog written inside a DLL. The problem is that when DoModal() is called inside the DLL, the program crashes with: "Debug Assertion Failed!". Does anyone have any idea how can i get the CDialog opened? Thank you!
A: At this point you woul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to write a group by query in LinqToSql grouping not on a scalar value? I have those maps in my repository.
public IQueryable<AwType> GetAwTypes()
{
return from awt in _db.AwTypes
select new AwType
{
Id = awt.Id,
Header = awt.Header,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Apache + mod_lisp + clisp How to to configure apache + mod_lisp + clisp and set up a "Hello World!"? I couldn't find any complete howto on the subject. Thanks.
Edit: Vebjorn's solution works, but then I don't how to code the "hello world!". Can anyone tell me how to proceed? There's something like SWANKing the clisp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Add Custom Controls to MoviePlayer I am trying to figure out how to add a custom control to the iPhone MoviePlayer.
For an example of what I am trying to do see the following image.
I am trying to add something like the controls on the right and left of the basic movie controls.
I had done this in the Open SDK by a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do I get the stream of header/footer in a WordprocessingDocument I need to know how I get the stream of the headers and footers of a WordprocessingDocument. I get the MainDocument by the MainDocumentPart of a WordprocessingDocument. Do you know how I get the header? I tried to use the method GetPartsOfType but i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: XML Text Format Does anyone know of a good program where I can paste in xml (getting it from a System.out in my java class) and it will format the xml so it's not a really long line of text?
A: I like XMLPad. It has a nice formatter plus a bunch of visualisers such as tree view and grid view. There is also a nice i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I use or resolve issues with visual form inheritance in Delphi? I've been working on a project in Delphi 7 where I wanted to have forms inherit components from other forms. I was able to get this working, but came across the following issues (and I'm going to post the solutions to hopefully help others in the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Getting all direct Reports from Active Directory I'm trying to get all the direct reports of a User through Active Directory, recursively.
So given a user, i will end up with a list of all users who have this person as manager or who have a person as manager who has a person as manager ... who eventually has the inp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Mapping computed properties in Linq-to-SQL to actuall SQL statements I have created some extra functionality on my Linq-to-SQL classes to make things easier as I develop my applications. For example I have defined a property that retrieves active contracts from a list of contracts. However if I try to use this prope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Hobbit monitoring - multiple graphs per test? I'm not sure how familiar people are with the hobbit monitoring system - http://hobbitmon.sourceforge.net/ - but I've got a tricky question.
I've got a custom test, which returns two NCV values. One value normally returns ~300 milliseconds, the other one returns 500 000 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I use micro-state accounting in Linux? I would like to access micro-state accounting timers programmatically on Linux. I guess the first part of the question is where are these available? Which kernel versions and distros? Which hardware platforms? The second part is how to actually go about accessing the tim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Hex operations in C# Any hints on parsing / converting / operating on hex values in c# ?
In particular I want to cast a decimal int to hex and then output as a string...
A: Int32 decValue = 42;
string hexValue = decValue.ToString("X");
Int32 decValue2 = Int32.Parse(hexValue, System.Globalization.NumberStyles.HexN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java, Alfresco Web Service API and Unicode NamedValues I'm using Java for accessing Alfresco content server via it's web service API for importing some content into it. Content should have some NamedValue properties set to UTF-8(cyrillic) string. I keep getting the Sax parser exception:
org.xml.sax.SAXParseException... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I change the width of a Windows console window? Is it possible to programmatically, or otherwise, increase the width of the Windows console window? Or do I need to create a wrapper program that looks and acts like the console somehow? Are there any programs around that do this already? I use Cygwin extensive... | {
"language": "en",
"url": "https://stackoverflow.com/questions/190543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |