text string | meta dict |
|---|---|
Q: Microsoft.ACE.OLEDB.12.0 provider is not registered I have a Visual Studio 2008 solution with two projects (a Word-Template project and a VB.Net console application for testing). Both projects reference a database project which opens a connection to an MS-Access 2007 database file and have references to System.Data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "68"
} |
Q: where is Pktextract.exe installed? I have Visual Studio 2008 and the Windows SDK for Windows Server 2008 and .NET Framework 3.5
installed. I believe that is the latest platform SDK.
I'm trying to build a signed dll to be installed in SxS.
All the tutorials explain to use a tool called pktextract.exe which is part of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where does Websphere get the WSDL from? I have a java application that has Web Services published using Axis.
With the latest release one of the service methods in the WSDL is wrong. It has a field in a complex type with double instead of an array of doubles.
I've checked the src WSDL and the generated classes like... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VB.NET How Do I skin a vb.net app I want to skin a vb.net app I made ive googled some stuff and I've seen skinned vb.net apps.
However it seems like any time i try to find someone explaining it its a link to a pay for product.
Does anyone have anything useful on this?
I have seen some free ways to do this program... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: VB.NET WMI OR WQL? Help I have an application that when it first starts i need it to run a database query.
I have all the database queries however forms are all loaded by this method.
dim myfrm as new Form2
myfrm.show.
The thing is if this app has crashed etc i need to make sure its the first initial start of this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to do a flip animation between more than two UIViews? I have animation code in a class that extends the UIView:
// Start Animation Block
CGContextRef context = UIGraphicsGetCurrentContext();
[UIView beginAnimations:nil context:context];
[UIView setAnimationTransition: UIViewAnimationTransitionFlipFromLeft forVie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Difference of two 'uint' When you attempt to declare an unsigned variable in C#.NET with a value outside its value range it is flagged as a compiler error, but if you produce a negative value at runtime and assign it to that variable at runtime the value wraps.
uint z = -1; // Will not compile
uint a = 5;
uint b = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Challenge: elegantly LINQify this procedural code string[] filesOfType1 = GetFileList1();
string[] filesOfType2 = GetFileList2();
var cookieMap = new Dictionary<string, CookieContainer>();
Action<string, Func<string, KeyValuePair<string, CookieContainer>>> addToMap = (filename, pairGetter) =>
{
KeyValue... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Injecting dependency to Linq to Sql Is there a mechanism to inject dependencies into Linq to Sql or entity framework entities? If so would it be a sensible approach?
A: Sorry I was not clear.
I want to be able to inject sevices eg. IEmailer into linq to sql entities using one of the many dependancy injection framew... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Proprietary system documentation 'leaks' and how to stop them?
The ability to use BitKeeper free of charge had been withdrawn by the copyright holder Larry McVoy after he claimed Andrew Tridgell had reverse engineered the BitKeeper protocols in violation of the BitKeeper license. At Linux.Conf.Au 2005, Tridgell dem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Threads Manager Im looking to build a thread manager for an application.
I have already started threading and it works entirely fine but I would like to be able to programatically kill them or get information on them.
Does anyone have ideas?
A: Just one quick word of warning: don't use Thread.Abort unless you're re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Subtract n hours from a DateTime in Ruby I have a Ruby DateTime which gets filled from a form. Additionally I have n hours from the form as well. I'd like to subtract those n hours from the previous DateTime. (To get a time range).
DateTime has two methods "-" and "<<" to subtract day and month, but not hour. (API).... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Measure Thread Expenses Joe Duffy states in the MSDN article "Using concurrency for scalability" that the cost of creating a thread is approximately 200,000 cycles, and the cost of destroying is about 100,000 cycles.
When I try to create a new thread to perform some calculations, I would like to be sure that the cal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: XPath search with ElementTree New to xml. Looking for XPath to search a xml file with python ElementTree format
<root>
<child>One</child>
<child>Two</child>
<child>Three</child>
</root>
to do search for child with "Two" and return true/false
if it was started off like
from elementtree import ElementTree
root = El... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to deal gracefully with null foreign keys in Linq to SQL? In my database, Concessions have a many-to-one relationship with Firms (each Concession has a FirmID). SqlMetal has captured this relationship and generated the appropriate classes, so that each Concession has a Firm element. I'm binding against a query (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What design pattern to use for User Authentication in Java There are certain common components that are used across projects:
*
*User Authentication and Authorization
*Exception Handling
*Logging
*E-mail
*DataBase Access
*Caching etc
Is there a consistent design pattern that can be used for each of these c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Visualizing Undirected Graph That's Too Large for GraphViz? I need advice for rendering an undirected graph with 178,000 nodes and 500,000 edges. I've tried Neato, Tulip, and Cytoscape. Neato doesn't even come remotely close, and Tulip and Cytoscape claim they can handle it but don't seem to be able to. (Tulip do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "78"
} |
Q: Security - is it ok to send a username and password via HTTP GET? We are an organisation who have purchased a system which is used by doctors to view test results of patients (quite sensitive information).
Being a programmer, I have poked and prodded with the system and found that it submits the username and passwor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do I move the UIView to the "bottom" so that the next UIView displays? I want to "remove" a UIView from a superview and add it again at the end... but at the "bottom" of the rest of the UIviews that belong to the superview.
Is this possible?
Any help is very appreciated!
A: Hmmm...
- (void)insertSubview:(UIVie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Events in C++ I'm not sure how to look for this online... I think they might be called something different in C++
I want to have a simple event system, somthing like
event myCustomEvent;
myCustomEvent.subscribe( void myHandler(string) );
myCustomEvent.fire("a custom argument");
// myHandler prints out the string pas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Visio & UML - Showing pointers in attributes and return values I have the requirement of generating UML Diagrams for one of my C++ assignments. I'm using Visio 2007 and I'm having trouble representing C++ pointers. I've found a way to add a suffix to Datatypes however it's rather time consuming to do this for every ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I put GIF/PNG/... image on a BitBtn in Delphi? I'm using Delphi 2007. How can I put a GIF/PNG image on a BitBtn component? (Preferably, with alpha transparency supported)
A: PngComponents pack has a component named PngBitBtn wich can display correctly PNG's with alpha transparency. They are somewhat old, but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to share Domain objects on Grails with Ext GWT (GXT)? My application is logically divided into server, which contain my Grails domain objects and controllers; and client, where I have my Ext GWT classes that build all the UI pages.
For UI requests, I am using an AJAX call to a controller method that returns, for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: IDirectInputDevice8 Keyboard hook We have a 3D application that retrieves keyboard presses via the IDirectInputDevice8. Is there any way, when we retrive keyboard events via the win32 API winproc loop back that we can send these commands to the DirectInputDevice?
A: Windows polls the keyboard hardware behind the sc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Castle, AOP and Logging in .NET Are there any tutorials or sample programs out there on using AOP, Castle, and logging in a .Net application? I have found pieces out there but I am looking for something more to help me form a more complete picture.
Thanks,
-Brian
A: You need to be using a custom Interceptor, which... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Visio & UML - Showing vectors I have the requirement of generating UML Diagrams for one of my C++ assignments. I'm using Visio 2007 and I'm having trouble representing C++ vectors. The only way I can see this working is creating a custom C++ datatype or creating a vector class in my project, then for each instance o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Given a type ExpressionType.MemberAccess, how do i get the field value? I am parsing an Expression Tree. Given a NodeType of ExpressionType.MemberAccess, how do I get the value of that Field?
From C# MSDN docs:
MemberAccess is A node that represents reading from a field or property.
A code snippet would be incred... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Is there any way to change the Context Menu of a Web browser using Wpf (C#) I would to change the menuitems in the default context menu provided in the Web Browser Control. I have already tried: webbrowser.contextmenu = mycontextmenu.
Nothing changed. Is there a way to do this?
A: Answer - YES.
There is a setting i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: what's the best way to implement logging during transactions in T-SQL? I want to implement a simple debug log, which consists of a table into which I insert insightful messages about the current state of a transaction. How do I stop inserts to this table being affected by rollbacks on the transaction that I'm trying... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP4: Send XML over HTTPS/POST via cURL? I wrote a class/function to send xml over https via PHP4/cURL, just wondering if this is the correct approach, or if there's a better one.
Note that PHP5 is not an option at present.
/**
* Send XML via http(s) post
*
* curl --header "Content-Type: text/xml" --data "<?xml v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Scroll to a postion in a Web Browser using Wpf I cannot seem to programmatcally scroll in WPF
in a normal Windows Form I would use the code below
but that property does not exist in WPF.
HtmlDocument doc = this.webBrowser1.Document;
doc.Body.ScrollTop = 800;
return;
Is there an alternative to doing this?
A: Not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to store xml files in an xml column using linq to sql? I have xml files I want to read in and store in the database. Linq to sql requires the data to be sent in using an xelement, but if I send in the data this
new XElement("build", BuildNode.InnerXml)
I end up with data looking like this in the database lt;..g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Problem with updating a MySQL field with PHP I have a query:
UPDATE choices SET votes = votes + 1 WHERE choice_id = '$user_choice'
But when I execute it in my script, the votes field is updated twice, so the votes will go from 4 to 6 instead to 5. It doesn't seem that it is getting called twice because I echo out st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET Dropdownlist selectedindexchanged event not firing on up / down arrow I have a server dropdownlist in an Ajax updatepanel. When I use the mouse to click on an item it fires the postback but when I click the up/down arrow to change entries, this is not firing. What could be reason?
A: Try this:
<asp:DropDow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Tell-A-Friend kind of form in iPhone SDK I'm trying to build an in-game Tell A Friend form like in AppStore. Does anybody know if it can be found anywhere in the SDK? I wouldn't like to reinvent the sliced bread.
Thanks!
A: Short of writing your own SMTP client, you can create a message then exit your app by sendin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to copy a repository from Unfuddle to a local SVN server? I currently have a couple of SVN repositories hosted at Unfuddle and I'd like to have a local copy of the repositories as a backup. Ideally, it would be a "live" backup so my local repository would "ping" the remote repository, and if any changes were det... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: asp.net - web frontend to managing database table - add, delete, update I have a database table that i want to allow my friends to update. What is the quickest way to have a asp.net page that is simply a form that maps to every field in the database and allows for add, deletes, and updates. I assume there should b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting a file from an http request in java How do I call a url in order to process the results?
I have a stand-alone reporting servlet which I link to for reports. I want to email these reports now, if I were doing this in the browser, I could just use an xhttprequest, and process the results - I basically want to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to write a datarow to a xml file Here is the story. I was doing a program, every time the program is closed all the data(File links) created by the user is lost, so whenever the user reopen the program, he does have to do all the work again.
So I decided to use an xml file to store the data, because a dbms would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CakePHP and Flex - Can they integrate and if so is it ugly or nice? I'm looking at a new project and we are wanting to use Flex (to provide the easy integration with AIR and provide a desktop app for our project). How easy does CakePHP play with Flex or is there a better PHP framework to use with Flex, or should we ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it acceptable practice to patch Ruby's base classes, such as Fixnum? I am still very new to Ruby (reading through the Pickaxe and spending most of my time in irb), and now that I know it's possible to patch classes in Ruby, I'm wondering when it's acceptable to do so, specifically whether it's acceptable to patch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How can I reformat a PDF file for easier reading on iPhone? I'd like to read an arbitrary PDF on my iPod Touch (or iPhone) with a reasonable font size. Some PDFs are already formatted with narrow columns and wide margins. Once I zoom the document to "remove" the margins, the text is easy to read.
Most documents ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I install plpython on MacOs X 10.5? I have just installed PostgreSQL 8.3.4 on Mac OS X 10.5 (using ports), but I cannot figure out how to enable PL/Python. When I run the CREATE LANGUAGE plpythonu I get the following errors:
ERROR: could not access file "$libdir/plpython": No such file or directory
STATEMENT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: regular expressions - match all anchors with optional attributes I have a wysiwyg editor in my back end, and it is tripping up the first regular expression I wrote. This is in PHP4, using preg_replace(). I'm capturing the URI and linked text.
@<a\shref=\"http[s]?://([^\"]*)\"[]>(.*)<\/a>@siU
The client wanted all e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I convert a number to two's complement in verilog? I am trying to design a 4-bit adder subtracter in verilog. This is only the second thing I have ever written in verilog, and I don't know all the correct syntax yet. This is the module I have so far:
module Question3(carryin, X, Y, Z, S, carryout, overflow);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to get correctly-encoded HTML from the clipboard? Has anyone noticed that if you retrieve HTML from the clipboard, it gets the encoding wrong and injects weird characters?
For example, executing a command like this:
string s = (string) Clipboard.GetData(DataFormats.Html)
Results in stuff like:
<FONT size=-2>Â Â... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Best Way to Replace a Visual Component in Delphi In a Delphi Form, I would like to replace one visual component with another. Example: I want to replace a Panel component with an ElPanel from a 3rd party package.
I would like all identical properties and events of the first component to be transferred to the new on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Managing users in a private TRAC Are there plugins for trac that enable cookie based authentication instead of http authentication, and allow keeping the site private for unknown users?
We want to allow customers outside the office to log in, add and look at the tickets on their projects, but not the projects for ou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What could cause an IDENTITY column to become corrupted? I had an unusual problem yesterday where I was suddenly unable to insert records into a table with an identity column.
A simple insert like this: INSERT INTO MyTable (Column1, Column2) VALUES ('text', 236764)
Started throwing a primary key constraint violation... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What causes the 'Cannot unregister UpdatePanel' error? I've got a UserControl that contains an UpdatePanel. When I put that on a page, it throws the following error:
Cannot unregister UpdatePanel with ID
'ReviewContentUpdatePanel' since it
was not registered with the
ScriptManager. This might occur if the
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: PHP not running properly I have been having some problems trying to get my PHP running. When I try and run any scripts they appear in the source and do not run properly. This is the htaccess file:
# Use PHP5 as default
AddHandler application/x-httpd-php5 .php
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
Cou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I provide a runtime form designer for my end user? I would like to create a report designer that has the same functionality and ease of use as the Visual Studio IDE. The ability to drag controls onto a form, select various subsets of those controls, align left, evenly space, etc.
The only tools I have ever ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I calculate the elapsed time of an event in Java? What's a simple/easy way to access the system clock using Java, so that I can calculate the elapsed time of an event?
A: Apache Commons-Lang also has the StopWatch class suited just for your purpose. It uses System.currentTimeMillis(), so you'll still have r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Cross browser scripting proxy I am developing some client side Javascript that is using some JSON web services on a different domain. I have read that some browsers do not allow cross-domain scripting and that I should create a proxy on my local server to serve the data.
Can someone please point me to a simple exam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Which is the best way to handle long write() arguments? UPDATE: Thanks to everyone for the responses. I didn't realize document.write() was deprecated. Add a another notch to the learning column. I'll be taking the advice posted here, but leave the original question so that the answers given make sense in context of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Preventing Users from Working on the Same Row I have a web application at work that is similar to a ticket working system. Some users enter new issues. Other workers choose and resolve issues. All of the data is maintained in MS SQL server 2005.
The users working to resolve issues go to a page where they can view op... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do I write a mysql query that will read data from one table and write to another? If this is possible, please provide a sample query or two so I can see how it would work. Both tables will be in the same database.
Thanks!
A: INSERT...SELECT is the answer; see http://dev.mysql.com/doc/refman/5.1/en/insert-selec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to set up OCI to connect to Oracle from PHP? On the latest Ubuntu, I have a functioning PHP 5.2.4 installation. I want to use a remote Oracle server from PHP using OCI.
I've downloaded the "Instant Client Package - Basic Lite" (Link). I've unzipped the package containing the OCI libraries to a dir but I have no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I succesfully host a asp.net mvc app on shared hosting without resorting to ugly URLs? Let's assume we're talking about the recently released Beta version. Specifically I'm interested in a step-by-step tutorial or similar, and I'd be thrilled with information addressing how to do so on CrystalTech.
A: Ultim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Making a DOCTYPE-less HTML page W3C compliant How do i take a HTML site that currently has no doctype declaration and make it W3C compliant?
A: First of all: think about why you need to make it W3C compliant. If it's just for the little badge, then it's not worth it.
If you do have a good reason (and there are plen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should I still see the query hit in SQL Profiler? I am currently building a web site and I just implemented SqlCacheDependency using LinqToSQL like so.
public IQueryable<VictoryList> GetVictoryList()
{
string cacheKey = HttpContext.Current.User.Identity.Name + "victoryCacheKey";
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I change the name of an iOS app in Xcode? I began an iPhone project the other day with a silly development code name, and now I want to change the name of the project since it's nearly finished. How can I do this?
A: *
*Select the top-most line to the left (with your project name, number of targets, etc.).... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1120"
} |
Q: Is there any reason to implement my own sorting algorithm? Sorting has been studied for decades, so surely the sorting algorithms provide by any programming platform (java, .NET, etc.) must be good by now, right? Is there any reason to override something like System.Collections.SortedList?
A: Generally no.
Howev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to recover deleted files which TortoiseSVN accidentally removed? This is an accident and I don't think there's a solution. But I'm asking anyways.
I introduced SVN to our webshop and I set all the dev pc's htdocs as part of the repository. (my first mistake)
Now, one of my coworkers are working on a project and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Wrapping a label element within a legend element I've never had a reason to put a label element inside of a legend element (never really thought about it or seen it done). But with the design I'm implementing, it's tempting to do so.
Here's what I'm tempted to do:
<fieldset>
<legend><label for="formInfo">I would lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/238996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Duplicating components at Run-Time Is there a simple way to duplicate all child components under parent component, including their published properties?
For example:
*
*TPanel
*
*TLabel
*TEdit
*TListView
*TSpecialClassX
Of course the most important factor, it should duplicate any new component which I dr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Need a makefile dependency rule that can handle missing files We use GNU Make for our system. At the end of our makefiles, we have an include called Makedepends which generates a bunch of .d files using -MM switch on gcc. We then include the .d file for each .cc file using an include $(CXXFILES:.cc=.d) line. But ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: getting pywin32 to work inside open office 2.4 built in python 2.3 interpreter I need to update data to a mssql 2005 database so I have decided to use adodbapi, which is supposed to come built into the standard installation of python 2.1.1 and greater.
It needs pywin32 to work correctly and the open office python 2.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which language would you use for the self-study of SICP? I've caught the bug to learn functional programming for real. So my
next self-study project is to work through the Structure and
Interpretation of Computer Programs. Unfortunately, I've never
learned Lisp, as I was not a CS major in college.
While SICP does n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: How can I call a DLL from a scripting language? I have a third-party product, a terminal emulator, which provides a DLL that can be linked to a C program to basically automate the driving of this product (send keystrokes, detect what's on the screen and so forth).
I want to drive it from a scripting language (I'm co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: DI- Dynamic parameter of type Type where type is the parent objects type I have a dependency that I need to inject into one of my classes. This dependency will be lifestyle of Transient. It in-turn has a dependency of type Type. This type should be the type of the original class. I was just wondering if anyone has a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Storing web server images in windows C drive I am running tomcat and I have some custom images which when I store on my C drive do not show up.If I move them to webapp root foder, they r fine but I do not want these images to end up in the war file.As I am using Windows symbolic link is not an option. Any idea as to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do we modify HQL transformer while loading a specific parent or another mapped entity property? This is an important addition especially to solve performance issues while being able to write efficient dynamic HQL queries.
But, how do we modify the HQL transformer in case of loading a specific parent or another ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Using preferences in Firefox How do I access user preferences in Firefox? I have the following code:
var control = document.getElementById(control_id);
if (control) {
control.setAttribute('color', nsPreferences.copyUnicharPref(prefstr, default_val));
}
But when I run this, I get the following:
Error: nsPreferen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Are Thread Input queues global? In win32, are thread input queues global to all applications?
So Application A can attach itself to application B's thread input queue?
A: AttachThreadInput will do it in fact. A thread in application A can attach itself to the message queue owned by a thread in application B, IF th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Mocking HttpContext doesn't work I am trying to mock out HttpContext so that I can unit test my controller's Request.IsAuthenicated call. I am using the code that I found at Scott Hanselman's blog to simulate HttpContext using rhino.mocks.
so i have this unit test piece:
PostsController postsController = new PostsC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Pseudo Random Generator with same output I came across an article about Car remote entry system at http://auto.howstuffworks.com/remote-entry2.htm In the third bullet, author says,
Both the transmitter and the receiver use the same pseudo-random number generator. When the transmitter sends a 40-bit code, it uses th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Javascript login form doesn't submit when user hits Enter I'm working on a simple javascript login for a site, and have come up with this:
<form id="loginwindow">
<strong>Login to view!</strong>
<p><strong>User ID:</strong>
<input type="text" name="text2">
</p>
<p><strong>Password:</strong>
<input type="password" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Convert char to int in C# I have a char in c#:
char foo = '2';
Now I want to get the 2 into an int. I find that Convert.ToInt32 returns the actual decimal value of the char and not the number 2. The following will work:
int bar = Convert.ToInt32(new string(foo, 1));
int.parse only works on strings as well.
Is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "222"
} |
Q: How to combine variable assignment with data-retrieval operations in T-SQL Just to clarify, I'm running Sybase 12.5.3, but I am lead to believe that this holds true for SQL Server 2005 too. Basically, I'm trying to write a query that looks a little like this, I've simplified it as much as possible to highlight the p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Tracking/Monitoring sudden trend changes I track alot of things with RRD, eg, uptime, network throughput, etc. This works well when you can fit all the graphs on a single page, however, once you scale beyond a page it becomes difficult to use graphs to catch issues, you need to look at them to see that there is an i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Exact use of Abstract class What is the exact use of an Abstract class? Is not possible to do the same things in an ordinary class as it is an an abstract class?
A: Regular classes require you to provide implementations for all methods.
Interfaces require you to not provide any implementations for all methods.
Ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Fastest way to convert string to integer in PHP Using PHP, what's the fastest way to convert a string like this: "123" to an integer?
Why is that particular method the fastest? What happens if it gets unexpected input, such as "hello" or an array?
A: $int = settype("100", "integer"); //convert the numeric string to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "258"
} |
Q: Sort File List in Xcode? Is there a way in Xcode to sort my list of files under say the Classes folder Alphabetically?
I know I can drag them around, but with tons of files that is a pain.
I am surprised I can not right click on the folder and say to sort.
A: Click on the folder, and then click Edit > Sort > By Nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Windows: Mouse Down on Window Decoration In almost any Windows application, I notice that holding the mouse button down in a non-client area causes the painting to stop. Why is this required?
For example, I have a Managed Direct 3D application which displays a spinning cube. If I place the pointer over the title bar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you import classes in JSP? I am a complete JSP beginner. I am trying to use a java.util.List in a JSP page. What do I need to do to use classes other than ones in java.lang?
A: In case you use JSTL and you wish to import a class in a tag page instead of a jsp page, the syntax is a little bit different. Rep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "250"
} |
Q: Sync Framework Resources I am looking for resources on Microsoft Sync Framework. Although MSDN and Google Search gave me the brief overview, I want some demos and presentations.
Also, is Live Mesh based on Sync Framework?
A: Maybe those links will be helpful:
*
*Sync101 - Getting Started with Sync
*Tutorial - M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Setting a thread priority in a service has no effect Is there some additional configuration needed before I can set thread priorities in a Windows service?
In my service, I have a few threads that each call the CreateProcess() function to launch an external application. I would like to adjust thread (or process) pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java data grid control Are there any third party enterprisey data grid controls out there, alla JIDE Data Grid? Is there a website like torry.net that lists third party java controls? Google doesn't turn up much for and I thought there would be a lot of both considering how popular java seems to be.
TIA
A: Most Jav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Whats the cleanest way to convert a 5-7 digit number into xxx/xxx/xxx format in php? I have sets of 5, 6 and 7 digit numbers. I need them to be displayed in the 000/000/000 format. So for example:
12345 would be displayed as 000/012/345
and
9876543 would be displayed as 009/876/543
I know how to do this in a mess... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SQL Server Reporting Services Custom Page Layouts Would it be possible to define layouts depending on the report type? ie. The layout size for PDFs would be different from the web layout.
Let's say we publish the report to the web. The user has the option of exporting this custom report to PDF. We want to be able to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Visual Studio opens Development Servers for all websites in my project I currently have a Visual Studio solution with 8 web applications.
When I try run one of these applications, 8 instances of the Casini Web Development Servers are launched.
Is there anyway to specify that only the web application I have set as st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How does XSS work? Can someone explain how XSS works in plain english? Maybe with an example. Googling didn't help much.
A: Cross Site Scripting basically is a security vulnerability of dynamic web pages where an attacker can create a malicious link to inject unwanted executable JavaScript into a Web site. The most... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: During execution, how can a java program tell how much memory it is using? During execution, how can a java program tell how much memory it is using?
I don't care how efficient it is!
A: If you are have a java1.6 somewhere and your program is running in java 1.4.2, 1.5 or 1.6, you can launch a visualVM session, con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: DataTable visualizer disappeared from my Visual Studio A while ago I noticed I don't have a magnifying-glass next to my datatables. I used to have it, and somehow, sometime, it disappeared...
Has anyone seen this happen? Do you know how to help me view my datatables again?
Update: I'm still clueless about this. Co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How does jQuery implement hide() and show() Do they set display: none or visibility: hidden?
I'm pretty sure display: none takes the element out of the normal flow, whilst visibility: hidden just hides the element but still has a reserved space for it.
Should I just go download the unpacked version and study it or d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Is it safe to assume that the path C:\WINDOWS\system32 always exists? On OS from win 2000 or later (any language) can I assume that this path will always exists?
For example I know that on win xp in some languages the "Program Files" directory have a different name.
So is it true for the System32 folder?
Thanks.
Oha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What does 'Polygon' mean in terms of 3D Graphics? An old Direct3D book says
"...you can achieve an acceptable frame
rate with hardware acceleration while
displaying between 2000 and 4000
polygons per frame..."
What is one polygon in Direct3D? Do they mean one primitive (indexed or otherwise) or one triangle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I change page layout when using window.print()? In our application we enable users to print pages. We do this by supplying a button which when click calls the window.print() function.
Some of the pages would look better if they were printed in landscape mode rather than portrait. Is there a way to control the pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Python: DISTINCT on GQuery result set (GQL, GAE) Imagine you got an entity in the Google App Engine datastore, storing links for anonymous users.
You would like to perform the following SQL query, which is not supported:
SELECT DISTINCT user_hash FROM links
Instead you could use:
user = db.GqlQuery("SELECT user_ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |