text stringlengths 8 267k | meta dict |
|---|---|
Q: Is this laptop good enough for Visual Studio? For HP 2133 Mini:
*
*1.2 Ghz CPU
*1 GB RAM
*Windows XP
*5400 RPM HDD
I'm planning to install Visual Studio 2005 (assuming it's faster than 2008). I've seen https://stackoverflow.com/questions/8440/visual-studio-optimizations question so I'll take those into the a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Removing images with Greasemonkey? I would like to stop images from loading, as in not even get a chance to download, using greasemonkey. Right now I have
var images = document.getElementsByTagName('img');
for (var i=0; i<images.length; i++){
images[i].src = "";
}
but I don't think this actually stops the im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Unit testing in C++ How do I get started doing unit testing in C++ ?
I have used Junit when coding in Java and found it very useful.
Is there something similar in C++ ? What do you recommend ?
A: I recently wrote a 5-part series of blog posts covering unit testing in C++ with boost. It gives step by step instruct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How it is correctly to implement IDTExtensibility2 interface for Office COM Add-In? I am implementing COM Add-In for Outlook. I use IDTExtensibility2. I am not sure whether this is the best way of doing COM Add-Ins but I cannot change that.
This interface defines five methods: OnConnection, OnStartupComplete, OnAddI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Data Generation Plan error When I attempt to run the data generation plan I get the following error, but there are no columns to be deleted.
The column XXXXX has been deleted and was previously selected for data generation.
Any help on this error would be appreciated.
Thanks
A: I have never encountered this error... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I non-recursively migrate directories with Perl or shell? We're migrating home folders to a new filesystem, and I am looking for a way to automate it using Perl or a shell script. I don't have much choice in programming languages as the systems are proprietary storage clusters that should remain as unchanged... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: web app authentication I have a scenario where I have a web application hosted externally (ie: the webserver is not a member of my internal active directory domain).
I would like to authenticate users of the web app using their active directory credentials.
Is there a product or some setup I can use to accomplish... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are all the special iPhone / iPod Touch HTML tags? After peeking at the SO source, I noticed this tag:
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
Which after a quick Google revealed an Apple "favicon" type thing for display on your homepage ("WebClip Bookmark" to be exact).
The only other one... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How can I send null characters to the serial port using the Windows API? I am working on a Windows utility program which communicates with some custom hardware using a standard COM port. The communication protocol (which is out of my control) requires me to transmit and receive raw 8-bit data bytes.
I am currently u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unit testing - videos or podcasts I am looking for podcasts or videos on how to do unit testing.
Ideally they should cover both the basics and more advanced topics.
A: My collected bookmark-dump
*
*The Clean Code Talks has some of Miško Heverys lectures at Google. New episodes are posted at the Google Testing Bl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: How to get a value from a column in a DataView? I have a dataview defined as:
DataView dvPricing = historicalPricing.GetAuctionData().DefaultView;
This is what I have tried, but it returns the name, not the value in the column:
dvPricing.ToTable().Columns["GrossPerPop"].ToString();
A: You need to specify the row ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Database Design Best Practices I am pretty well versed with SQL Server, MySQL, Oracle etc but putting these Database products aside, is there a resource that will help me design relational databases well? Is there something like patterns or best practices for database design?
I have seen a few times that database is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: Java command-line launchers I am working on a .jar file library to implement a bunch of helper classes to interface a PC to a piece of external hardware. I'll also add some simple applications, either command-line or GUI, to handle common tasks using the library.
My question is, is there a recommended way to simplif... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I limit the global memory resources of Oracle 10g database The server I am running oracle on is suffering from out of memory errors. Anyone know if/how I can limit the global memory resources that oracle will use?
I have SGA_TARGET_MAX = 500M and a session/process limit of 150, but our max concurrent session... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a utility to create VB.NET classes from an XSD file? Is there a utility out there that will create VB.NET classes from a Dataset.xsd file? And I don't mean like the XSD.exe utility does - all that does is convert the XML of an XSD file into classes in a .vb - it doesn't append any "extended" functionality.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MyGeneration command line input I have looked all over the internet, mygenteration's forum, and mygenteration's website and I cannot figure out how to pass parameters into a template through the command line using the xmldatapath switch. Does anyone know how to do this?
--edit--
I did a little research and here is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Virtual Directory pointing to UNC share I have an app that uploads documents to the server through the standard
When sent my application to the production server, I found out that they had the server load balanced. My solution to this was to place the upload directory into a network share and then create a virtua... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error in webservice after publishing I created a webservice when it hosted on my local computer it works fine, but when i publish it to the web host, it doesnt work any more, i guess its a question about how the webserver is configured, but can i make some changes in web.config so it will work?
The error i get is be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rhino Mocks: AAA test syntax without static MockRepository methods? I have been using (and liking) the new Rhino Mocks AAA syntax. However, one thing that puzzles me is that I have to create my stubs and mocks like this:
var v1 = MockRepository.GenerateStub<MyClass>();
instead of with an instantiated MockRepositor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: DLINQ- Entities being inserted without .InsertOnSubmit(...)? I ran into an interesting problem while using DLINQ. When I instantiate an entity, calling .SubmitChanges() on the DataContext will insert a new row into the database - without having ever called .Insert[All]OnSubmit(...).
//Code sample:
Data.NetServices ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Class.getConstantPool() If you decompile the java.lang.Class class in java from the rt.jar library you will notice there is a native method declaration:
native ConstantPool getConstantPool();
I played a while ago with class decompilation using Sun's .class file specification and I was able to obtain the constant po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best-practice for nesting PreparedStatements? I have several instances where that a section of legacy sql statements is based on a dependency. for example.
if (x !=null)
{
SQL = "SELECT z WHERE x > y";
}
else
{
SQL = "SELECT z WHERE x <= y";
}
SQL2 = SQL + " JOIN a ON b";
I am creating PreparedSt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Windows Forms: Progress Bar Unresponsive I have a small application to convert several file formats, with a main windows form which contains several text boxes, buttons, etc. I have another "Document" class which handles all of the actual conversion work, and my form essentially iterates through all of the files, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the tilde (~) in the enum definition? I'm always surprised that even after using C# for all this time now, I still manage to find things I didn't know about...
I've tried searching the internet for this, but using the "~" in a search isn't working for me so well and I didn't find anything on MSDN either (not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "153"
} |
Q: Intellisense not showing up for new controls in code behind I've added a label control to a webform. It appears when I run the page but when I try to reference it using the codebehind, I get no intellisense and the code I write somehow doesn't work. I've verified the project is running in debug, that debug compilati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Converting the name of a day to its integer representation In SQL server you can use the DATENAME function to get the day of week as a string
declare @date datetime
set @date = '12/16/08'
select datename(dw, @date)
which returns "Tuesday"
and you can use the DATEPART function to get the day of week as an integer
de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Interesting stack overflow! compiler bug? i wonder if i've found a compiler bug? i was removing some old code from my app and now i get stackoverflow at "begin" (see code & disassembly below).
procedure TfraNewRTMDisplay.ShowMeasurement;
var
iDummy, iDummy2, iDummy3:integer;
begin // STACK OVERFLOW BEFORE MY C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: The "You're Doing It Wrong!!" feeling NB - This question is not a stab at RoR or at Redmine's plugin system
I have been working on a custom plugin for Redmine, a project manager platform built with Ruby on Rails (RoR). Now I am not really a RoR or for that matter, a Ruby guy. I have managed to write the plugin an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to make an existing public API testable for external programmers using it? I have a C# public API that is used by many third-party developers that have written custom applications on top of it. In addition, the API is used widely by internal developers.
This API wasn't written with testability in mind: most clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you display code snippets in MS Word preserving format and syntax highlighting? Does anyone know a way to display code in Microsoft Word documents that preserves coloring and formatting? Preferably, the method would also be unobtrusive and easy to update.
I have tried to include code as regular text which loo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2597"
} |
Q: How do I check if the required fields in an html form are filled? I've got a submission page in php with an html form that points back to the same page. I'd like to be able to check if the required fields in the form aren't filled so I can inform the user. I'd like to know how to do that with php and javascript each... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JSF in Enterprise Applications Is JSF being used in the enterprise, or at least growing in use?
A: Yes, it's being used.
Is the use widespread? I don't think so. It's probably being used more than Wicket but less than Spring MVC, at least from conversations with my own peers.
A: We're using it at my company in an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Message processing with priorities In a Java web application I have a recurring message load of type A (e.g., 20,000 every hour). Then I have a second type of messages (type B) that show up occasionally but have a higher priority than type A (say, 3,000). I want to be able to process these messages on one or more ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to display web page without getting blocked by the firewall? I want our app to show the online help page (so it's always up to date) or even a local page. However, it's likely to be blocked by the Firewall (Zone Alarm).
BTW, I tested this with Zone Alarm. It blocked access to a local .html file as well as to an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Netbeans Resolve missing server I've encountered a problem with my Netbeans 6.1 IDE.
After an unsuccessful update, Netbeans stopped recognizing Apache and Glassfish servers and requested me to resolve a missing server error, after which I opened a window to add a server, except there were none listed. Trying to add ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Hide Tab headers in WPF TabControl What is the best way to hide Tab headers when there is only a single visible Tab?
I want to hide TabControl chrome completely, while leaving the content of the Tab visible.
A: You can use a Style applied to TabItem with a DataTrigger that will collapse it if the parent TabControl ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: How to send email from MySQL 5.1 I'm trying to send an email to several recipients when a new row is inserted into a table. The list of recipients varies. I would like to be able to set this list using a select statement.
I also have installed Navicat which allows me to send email notifications but only to a prede... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Simulating position: fixed in IE6 with a div of 100% height? I have a sidebar on my webpage that is supposed to span 100% of the page (vertically). It is then supposed to stay there, so when the rest of the content scrolls it does not. To do this, I used:
body
{
height: 100%;
}
#sidebar
{
height: 100%;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remove or Reset Cookies I am setting a cookie Request.Cookies("TemplateName").value on one of my pages(page 3) of my application. Now I can navigate from page 3 to page 4 and page 2 and retain the value of the cookie. But now when I logout and login again it still has the value, how can I reset the value of the cook... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: OwnerDrawn control in MFC I am creating a MFC application in which there is a skin library which handles the UI effect of rendering the controls (it gets called in oninitdialog). But, meanwhile, I have also the requirement of displaying an icon on the buttons. For this, I am marking the buttons as ownerdrawn=true, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Old ASCII Protocol Avatar Question For anyone that remembers the protocol Avatar, (I'm pretty sure this was it's name) I'm trying to find information on it. All I've found so far, is that it's an ANSI style compression protocol, done by compressing common ANSI escape sequences.
But, back in the day, (The early 90's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows event scheduler custom service I need to create a Windows service that works just like the task scheduler in that I can configure what time it runs and it basically just calls a .NET class at that scheduled time (recurring). What is the recommended way to do this? Also, any information on installing/removing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL Native Client ODBC application not disconnecting after SQLDisconnect and not pooling? Background:
I'm working with a program coded in C++ which uses ODBC on SQL Native Client to establish connections to interact with a SQL Server 2000 database.
Problem:
My connections are abstracted into an object which opens a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Show HH:mm 24H format in TemplateField using text property I'm trying to show a 24 hours format using this line:
Text='<%# Bind("Appointment", "{HH:mm}")
So how it'll be formated for showing for example 16:40 instead 4:40?
A: if you don't need to bind it, try:
Text='<%# string.Format("{0:HH:mm}", Eval("Appointmen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you properly detect the browser's support for opacity? I've got some javascript code that applies an alpha transparency. Before it does that it attempts to detect what type of transparency the browser supports and stores that in a variable for use later. Here's what the code looks like:
// figure out the brow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Constants or class variables in ruby? I've been programming in Ruby for a few months now, and I'm wondering when it is appropriate to use constants over class variables and vice versa. (I'm working in Rails, thinking about constants in models).
class Category
TYPES = %w(listing event business).freeze
end
OR
class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: OpenSocial server implementation What is the preferred method of implementing the OpenSocial platform? I'm aware of Apache Shindig but can't really find any useful information on it. Also, is it possible to use an existing solution like the Rails-based lovdbyless and add OpenSocial features to it?
A: I've ported sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What does System.Collections.Generic.Dictionary.Equals actually do? I ran into this today when unit testing a generic dictionary.
System.Collections.Generic.Dictionary<int, string> actual, expected;
actual = new System.Collections.Generic.Dictionary<int, string> { { 1, "foo" }, { 2, "bar" } };
expected = new System.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What information do plug-in developers need for my Application? I am developing an application that can be extended using "plug-ins". The plug-ins will be pretty basic, allowing developers to add new "actions" to my application.
What documentation/information do I need to provide so that developers can do what they ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Containment Tree? OK thought I understood IDipose but just reading the best practices section of Accelerated VB.NET and it states that "The object doesn't contain any objects that implement iDispose, so you don't need to iterate through the containment tree calling iDispose"
Is this "containment tree" just what the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Matching beginning of words in a NSString Is there a method built in to NSString that tokenizes the string and searches the beginning of each token? the compare method seems to only do the beginning of a string, and using rangeOfString isn't really sufficient because it doesn't have knowledge of tokens. Right now ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript mechanism to autoscroll to the bottom of a growing page? Hopefully, this will be an easy answer for someone with Javascript time behind them...
I have a log file that is being watched by a script that feeds new lines in the log out to any connected browsers. A couple people have commented that what they ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: C# Open Source Project Namespace I am considering releasing one of my class libraries written in C# as open source. Before doing that, I am trying to do some refactoring so that it meets the demands of the general public :)
I wonder what would be the best namespace schema to use? Basically, I see the following optio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: SQL CE insert fails until I view the table I am noticing something strange happening. I'm porting an application to work with Sql Server CE 3.5, and finding something strange happening.
What I'm seeing is that an insert will fail (violating the primary key constraint), and will keep failing until I use Visual Studio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Lightweight Store Mechanisms I'm about to write a small utility to organze and tag my mp3s.
What is the best way to store small amounts of data. More importantly, are there databases which exist where I don't need to install a client/server environment, I just include the library and I'm good?
I could use XML, but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using user input to find information in a Mysql database I need to design a program using python that will ask the user for a barcode. Then, using this barcode, it will search a mysql to find its corresponding product.
I am a bit stuck on how to get started. Does anyone have any tips for me?
A: Use python-mysql. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Mysql Connection, one or many? I'm writing a script in python which basically queries WMI and updates the information in a mysql database. One of those "write something you need" to learn to program exercises.
In case something breaks in the middle of the script, for example, the remote computer turns off, it's sep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Find Unique Characters in a File I have a file with 450,000+ rows of entries. Each entry is about 7 characters in length. What I want to know is the unique characters of this file.
For instance, if my file were the following;
Entry
-----
Yabba
Dabba
Doo
Then the result would be
Unique characters: {abdoy}
Notice... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: C# TreeView Child Node Count .. Like Outlook In C# 2.0 does anyone know how to display the count of children nodes like Outlook does with unread emails. Also, if the count displayed can be in a different color to the node text.
Has anyone achieved this with "Safe" code?
A: In order to display a string with more tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: A few database design questions If I have a customer table, it will store name, address, email address, phone number, and perhaps even some details about the customer like age, preferences, etc.
Would I be doing a good thing if I partition this into smaller tables? E.g. customer_contact with the contact fields, and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ems to Pixel Conversion - Why 62.5% and not 6.25%? I know that a lot of us are familiar with setting the font size on the body element in our CSS to 62.5%. This means that 1em will equal 10px and helps for keeping things pixel perfect but also allows for scaling of fonts.
So wouldn't that mean that setting it to 6.2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Dispatching exceptions in C++ How should exceptions be dispatched so that error handling and diagnostics can be handled in a centralized, user-friendly manner?
For example:
*
*A DataHW class handles communication with some data acquisition hardware.
*The DataHW class may throw exceptions based on a number of pos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Adding to the Where clause of an Update in LinQ-to-Entities Let's say I have a table called Product, with three columns: Id, CustomerId, Name. Id is the primary key. The schema is outside of the control of my group, and we now have a requirement to always provide CustomerId as a parameter for all queries (selects, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Sql stored procedure Like Operator variable print("select CustomerNo, CustomerName, Address, City, State, Zip,
Phone, Fax, ContactName, Email
from Customers where CustomerName like '%field%'");
Hi all. This is a simple question but I wasn't able to figure since I'm pretty new to tsql and sql in general.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Synchronous work in a BackgroundWorker My application performs time consuming work independently on several files. I created a BackgroundWorker to pass the work off to on each file, but it appears the backgroundworker is only capable of performing asynchronous work. Is it possible to do several asynchronous tasks ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why can't the Java compiler figure this out? Why is the compiler unable to infer the correct type for the result from Collections.emptySet() in the following example?
import java.util.*;
import java.io.*;
public class Test {
public interface Option<A> {
public <B> B option(B b, F<A,B> f);
}
pub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: FogBugz estimates and pair programming I am using FogBugz as a tool to give us "a look into the future". The program takes our work hours, the tasks for a release, assigned developer's estimate against that task, and the developers tendency to under/over estimate, and tries to come up with a probability of making th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why is there no Z80 like LDIR functionality in C/C++/rtl? In Z80 machine code, a cheap technique to initialize a buffer to a fixed value, say all blanks. So a chunk of code might look something like this.
LD HL, DESTINATION ; point to the source
LD DE, DESTINATION + 1 ; point to the destination... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Max limit for a single form field? I am running into a randomly occuring issue, and it looks like either there is a bug in the third party control we are using or the size of a form field is limited. I've seen there is a limit in classic asp http://support.microsoft.com/default.aspx?scid=kb;EN;q273482 but is there a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP-CLI + File Permissions When you run a php script in the command line, does is execute with the read/write permissions of the current user or what?
A: Yes, it does.
A: Yes, it runs with the permissions of the current user. Just like executing any other command-line program.
A: Yes, it will run as the current u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to estimate while pair programming Reading the XP book, I have a condtradiction in my mind that I cant address and am wondering if you guys can help.
XP says write stories on index cards, assign those to a developer, have her estimate how long the task would take and then use pair programming to do the coding bi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Changing the initial LazyLoad behaviour in NHibernate I've just started using NHibernate and fluent-NHibernate which I think is great. I've been configuring all my mappings to use LazyLoading for any relationships between classes because generally I find it isn't neccesary to load everything upfront. However sometim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can an old exported set of files be compared to a subversion repository? Here is the problem: We have all of our development under subversion, but our beta versions are just mish-mashed bits of exported files that were not all put there at the same time. Or, to put it another way, we make our changes to versioned fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are the steps to make a ModelForm work with a ManyToMany relationship with an intermediary model in Django?
*
*I have a Client and Groupe Model.
*A Client can be part of multiple groups.
*Clients that are part of a group can use its group's free rental rate at anytime but only once. That is where the interm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How can I hook into Perl's print? Here's a scenario. You have a large amount of legacy scripts, all using a common library. Said scripts use the 'print' statement for diagnostic output. No changes are allowed to the scripts - they range far and wide, have their approvals, and have long since left the fruitful val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: What techniques can be used to define a class in JavaScript, and what are their trade-offs? I prefer to use OOP in large scale projects like the one I'm working on right now. I need to create several classes in JavaScript but, if I'm not mistaken, there are at least a couple of ways to go about doing that. What woul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "704"
} |
Q: Where would you put your new open-source .NET project? I'm currently working on a .NET project that I will probably make open source.
There are lots of places to put it though, anyone have any experience for a friction-less effort? Codeplex? Google-code?
Note: I prefer Subversion for the projects source-control.
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What language(s) for very large lists? Java (and maybe the underlying C-ish code) has max capacity of Integer.MAX_VALUE (~ 2 billion) for arrays and containers in java.util. Are there other languages that feature containers with larger capacities?
A: You can write your own containers in both languages that support... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WPF: How can I get the height of a listview row I need to know how high (in pixels) a row in a listview control will be. The row just contains text, nothing fancy
A: i think you will find your answer here:
http://social.msdn.microsoft.com/forums/en-US/wpf/thread/446cd40b-ec43-4e9f-a2cc-ee6932fd09a9/
| {
"language": "en",
"url": "https://stackoverflow.com/questions/387714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to stop event propagation with inline onclick attribute? Consider the following:
<div onclick="alert('you clicked the header')" class="header">
<span onclick="alert('you clicked inside the header');">something inside the header</span>
</div>
How can I make it so that when the user clicks the span, it does not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "369"
} |
Q: PNG TrayIcon transparency on Windows I'm trying to use a transparent PNG as the icon for my Java application. The image on the JFrame and task bar work great. However, when I use the image with a TrayIcon, I get a black matte background around the edge of the PNG.
Has anybody else come across this issue? I would rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Does LINQ use DataRelations to optimize joins? I can't find the answer to this anywhere, and before I start pawing through generated code with Reflector I thought it'd be worth asking:
Suppose I have the following LINQ query run against DataTables in a DataSet:
var list =
from pr in parentTable.AsEnumerable()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Using AND with the apply function in Scheme Why doesn't the following work?
(apply and (list #t #t #f))
While the following works just fine.
(apply + (list 1 3 2))
This seems to be the case in both R5RS and R6RS?
A: (define and-l (lambda x
(if (null? x)
#t
(if (car x) (apply and-l (cdr x)) #f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Variable amount recurring billing Hi i'm looking for a payment gateway that can do recurring billing that changes month to month. Fogbugz do this, they charge based on how many active users there were that month. All of the APIs that i've found only let you set a fixed amount and it's difficult/impossible to vary t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: DI/IoC, NHibernate and help in getting them to work together I'm trying to get my head around DI/IoC, NHibernate and getting them to work nicely together for an application that i'm developing. I'm quite new to both NHibernate and DI/IoC so not quite sure whether what i'm doing is the sensible way to be going about... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Vim indentation for c++ templates? Does anyone have or know about vim plugin/macro/function that indents nicely c++ templates?
When I highlight template definition in vim .hpp/.h file and indent it with '=' I get something like this:
> template <
> class TFilter,
> class TParser,
> ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Finger scrollable UIWebView when the keyboard is up In an application that I'm writing I have a UIWebview up top and some UITextFields at the bottom that I want the user to be able to type in depending on what's in the webview. But when they touch the Text Field and the keyboard pops up, the user loses the ability t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to map many-to-many List in Hibernate with a Link Table I would like to map a many-to-many in Hibernate using a link table. I have two classes, Parent and Child class, for example:
public class Parent{
private List<Child> _children;
//...getters and setters
}
I use a link table (link_table) with three columns... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Sharepoint as template application We have a site that needs to (as part of our process) generate a document (e.g. Word docx document) that is derived from data within our application merged with a template document. This document can be edited at run time by the user after it is generated. We know we are looking ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to determine last deselected item in a TileList? My TileList has allowMultipleSelection on. I am using itemClick to call a function. I can use listEvent.currentTarget.selectedItem to determine what object was just clicked on if I am selecting, but when I ctrl + click to deselect an item, it automatically selects... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Some snarks are boojums: list of boojums, or is_boojum property on all snarks? The problem domain features a large population of named snarks. Some of the snarks are boojums.
There are at least two ways to model this:
// as a property:
class Snark {
string name;
bool is_boojum;
};
// a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Windows UPS (Uninterruptible Power Supply) service - turn off UPS? I'm using the UPS service to monitor the state of my UPS from an application -- the key at HKLM\SYSTEM\CCS\Services\UPS\Status has all the information you can get from the Power control panel. BUT -- I'd like to be able to tell the UPS to shut down ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I make this Ruby on Rails page more efficient? I'm building a site where users can track their collection of figures for Dungeons & Dragons (www.ddmdb.com). The models/relationships involved in this funcitonality are the following:
User:
*
*id
*login (username)
*a bunch of other fields
Miniature:
*
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Database performance advice when batch importing large datasets I'm building a database web application using Java and Hibernate's JPA implementation. The application tracks objects. It also has to batch import objects from a legacy source.
For example, let's say we're tracking people. The database has tables called... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Zend Framework: How do I set a custom validator on a form element? I'm writing a custom validator that checks that at least one field has a value. I want to validate that either 'namefield' or 'idfield' has a value. One of them can be empty, or both can have a value, but at least one of them must have a value.
$name... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: PHP Multi site login I am currently working on a project that spans accross multiple domains. What I want is for the user to be able to login on one site and be logged in on all the others at the same time.
The users session is stored in the database, the cookies that I set on each domain contain the session id.
So ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Backgrounds for UInavigationBar and UIPickerView I understand that when you create a navigation controller it comes with a navigation bar, you are only able to select three backgrounds for this (example: translucent black etc). I've seen applications that have other colors like green with the "translucent black" typ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to read and write a struct to file use C#? I can use write(&stName,sizeof(stName),&FileName) and define a same struct in other program to read the file(XXX.h) when i use C, But I want do the same use C# and I should not use the unsafe mode. How do to solve the problem?
Edit:
thanks all. I will to try them
Edit:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unit-testing C++ templates I've used function and class templates in implementation of my libraries.
So far I've just instantiated a template in the library unit-tests (CppUnit),
and then proceeded to test it almost like any other normal class or function.
Recently I've been planning to add some templates also to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: ADO.NET DataService: Passing parameter to [WebInvoke] Method Consider following example :
public class SomeBusinessLayerService : DataService<MyEntityContainer>
{
[WebInvoke]
void DoSomething(string someParam)
{
}
}
I can not find example or any help on how can I pass parameter to the function!
Using WebClient ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/387895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.