text stringlengths 8 267k | meta dict |
|---|---|
Q: Update SQL Server Database Schema with software update How do you update your SQL sever database when installing your product's update? Are there any tools that will integrate with windows installer?
My typical schema changes are:
*
*Adding/removing columns
*Adding/removing tables.
*Adding views.
*Adding/alte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Converting a year from 4 digit to 2 digit and back again in C# My credit card processor requires I send a two-digit year from the credit card expiration date. Here is how I am currently processing:
*
*I put a DropDownList of the 4-digit year on the page.
*I validate the expiration date in a DateTime field to be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: memberInfo.GetValue() C# How to get an instance's member's values?
With propertyInfos there is a propertyInfo.GetValue(instance, index), but no such thing exists in memberInfo.
I searched the net, but it seems to stop at getting the member's name and type.
A: You have to downcast to FieldInfo or PropertyInfo:
switc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Flex profiler gives "Socket timeout " error. Why for? When trying to run the Flex Builder 3 profiler on any I don't get the profiler dialog window and then after a few seconds I get "Socket timeout" in the console window. Any ideas why it can't connect?
I've got the latest debug version of Flash player and have tri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I get a list of installed CPAN modules? Aside from trying
perldoc <module name>
individually for any CPAN module that takes my fancy or going through the file system and looking at the directories I have no idea what modules we have installed.
What's the easiest way to just get a big list of every CPAN modu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "103"
} |
Q: Algorithm to detect intersection of two rectangles? I'm looking for an algorithm to detect if two rectangles intersect (one at an arbitrary angle, the other with only vertical/horizontal lines).
Testing if a corner of one is in the other ALMOST works. It fails if the rectangles form a cross-like shape.
It seems lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "148"
} |
Q: How do I convert between time formats? I am looking to convert a MySQL timestamp to a epoch time in seconds using PHP, and vice versa.
What's the cleanest way to do this?
A: See strtotime and date functions in PHP manual.
$unixTimestamp = strtotime($mysqlDate);
$mysqlDate = date('Y-m-d h:i:s', $unixTimestamp);
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WPF and string formatting Suppose I have some XAML like this:
<Window.Resources>
<v:MyClass x:Key="whatever" Text="foo\nbar" />
</Window.Resources>
Obviously I want a newline character in the MyClass.Text property, but the XAML parser constructs the object with the literal string "foo\nbar".
Is there (a) a way to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Parsing Office Documents I`d like to be able to read the content of office documents (for a custom crawler).
The office version that need to be readable are from 2000 to 2007. I mainly want to be crawling words, excel and powerpoint documents.
I don`t want to retrieve the formatting, only the text in it.
The crawl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Online tool for generating mathematical equation image files I'm looking for an online tool that will let me create a gif or png like this one:
Some kind of LaTex online service, with friendly examples?
A: http://www.codecogs.com/latex/eqneditor.php
A: I use Roger's Online Equation Editor.
PNG, colors, transparen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Proportional image resize I'm having a little bit of a problem scaling my images to a properly predefined size. I was wondering - since it is purely mathematics, if there's some sort of common logical algorithm that works in every language (PHP, ActionScript, Javascript etc.) to scale images proportionally.
I'm usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: "No symbols loaded for the current document" while debugging JavaScript in Visual Studio I'm working on a .NET 3.5 website, with three projects under one solution. I'm using jQuery in this project. I'd like to use the Visual Studio JavaScript debugger to step through my JavaScript code. If I set a breakpoint in any ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: MVC Preview 5 - ViewData/HTML Helper Quirk The following code is in the /Courses/Detail action:
[AcceptVerbs("GET")]
public ActionResult Detail(int id)
{
ViewData["Title"] = "A View Title";
return View(tmdc.GetCourseById(id));
}
The tmdc.GetCourseById(id) method returns an instance o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the most reliable way to create a custom event log and event source during the installation of a .Net Service I am having difficulty reliably creating / removing event sources during the installation of my .Net Windows Service.
Here is the code from my ProjectInstaller class:
// Create Process Installer
Serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How do I convince my team to drop sourcesafe and move to SVN? My development team uses source safe at a very basic level. We're moving into some more advanced and extended development cycles and I can't help but think that not using branching and merging in order to manage changes is going to be biting us very soon.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: Glasses mode in Emacs How to customize the color of the symbol inserted in the "glasses mode" in Emacs?
I have not found the option for this. Can anyone suggest anything?
A: There's no option to set the face for the inserted separator (and from a brief study of the docs for emacs overlays, I don't think it's simple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you specify a port range for Java sockets? In Java you can give the number zero as a single parameter for the Socket or DatagramSocket constructor. Java binds that Socket to a free port then. Is it possible to limit the port lookup to a specific range?
A: Hrm, after reading the docs, I don't think you can. Y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is Ruby any good for GUI development? I am considering creating a GUI-based tool that I want to be cross-platform. I've dismissed Java, as I personally do not like Swing. I'm currently considering C# and using Mono to make it cross-platform. However I'm wondering whether new-fangled cross-platform languages like Rub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Duplicate Oracle DES encrypting in Java I recently asked a question about Oracle Encryption. Along the way to finding a solution for myself I decided to move the encryption (well, obfuscation) to the application side for certain tasks.
My problem is that the database is already encrypting data a certain way and I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to see Java threads from Remote Desktop Connection Client. Ctrl-break not working I am connecting to a Windows XP machine via Microsoft's Remote Desktop Connection Client, version 2.0.0 Beta 3, running on a Mac. On the Windows machine there is a Java console running, where I want to send a Ctrl-Break so I can se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there a way to get the parent URL from an Iframe's content? I'm running an c# .net app in an iframe of an asp page on an older site. Accessing the Asp page's session information is somewhat difficult, so I'd like to make my .net app simply verify that it's being called from an approved page, or else immediately h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: In P4V, how do I create a branch from a label? My company just imported our CVS repository into Perforce. I'm new to P4V and I can't work out how to create a branch from an existing label. Can anyone tell me how to do this?
A: In my copy of P4V (Version 2013.3), I go to the Actions menu and choose Branch Files..., ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Why is isNaN(null) == false in JS? This code in JS gives me a popup saying "i think null is a number", which I find slightly disturbing. What am I missing?
if (isNaN(null)) {
alert("null is not a number");
} else {
alert("i think null is a number");
}
I'm using Firefox 3. Is that a browser bug?
Other tes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "157"
} |
Q: Process Kill in Jscript I'm writing a script for Caseware, the accounting software my Company uses, and I need to kill a process that hangs and messes up the compression of files on the server. The problem is it needs to be written in jscript and I havn't had a lot of experience with it.
I've been looking around for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WebServiceTransportException: Unauthorized [401] in Spring-WS We are struggling to configure our web app to be able to connect with web services via Spring WS. We have tried to use the example from the documentation of client-side Spring-WS, but we end up with a WebServiceTransportException. The XML config looks lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Detecting what the target object is when NullReferenceException is thrown I'm sure we all have received the wonderfully vague "Object reference not set to instance of an Object" exception at some time or another. Identifying the object that is the problem is often a tedious task of setting breakpoints and inspecting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Sharepoint, master pages and CSS I am trying to develop everything in sharepoint as features so I can easily deploy to test and live sites without having to do any manual steps.
I can deploy my master page okay, and though currently i have to switch it on by hand I am confident I can automate that in the future.
Wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Do you believe that ASP.Net MVC is ready for production? I really like the fact that Microsoft has taken a commitment to bring MVC to the Web. To this end, I have become excited about converting one of my existing ASP.NET apps to MVC and wanted to know if I may be jumping the gun. While this site is using MVC, it'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is PowerShell a strongly-typed language? PowerShell is definitely in the category of dynamic languages, but would it be considered strongly typed?
A: It can be if you need it to be.
Like so:
[1] » [int]$x = 5
[2] » $x
5
[3] » $x = 'haha'
Cannot convert value "haha" to type "System.Int32". Error: "Input string was ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Are there any jEdit syntax highlighting modes for Objective-J I have found some in the Cappuccino website (vim, textmate and SubEthaEdit), but not for jEdit, and unfortunately I'm just starting on Objective-J so can't make my own. If anyone has got one of them lying around it would be greatly appreciated.
A: Accord... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Enumerate Windows network shares and all custom permissions on or within We have various servers that have many directories shared. It's easy enough to look at the share browser to see what the "top level" shares are, but underneath is a jumbled mess of custom permissions, none of which is documented.
I'd like to en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET Framework effects of moving from 2.0 to 3.5? I've started using Visual Studio 2008 and it keeps asking me to upgrade my 2.0 website project to 3.5 every time it opens.
*
*What effectively happens when I "upgrade" a website project from 2.0 to 3.5 in Visual Studio?
*Does it update my web.config? How exa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: When reading a CSV file using a DataReader and the OLEDB Jet data provider, how can I control column data types? In my C# application I am using the Microsoft Jet OLEDB data provider to read a CSV file. The connection string looks like this:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\Data;Extended Properties="t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Windows Mobile Development - Portable Programming? I want to start developing for Windows Mobile Devices, as I plan to buy one next week. (pay day)
So far most of my PDA experience is with Palm OS (m100, m105, Zire 71 and T3). For Palm there are a few good utilities for programming, mainly PocketC and OnboardC. Thes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Infralution VirtualTree leaking GDI+ Objects when Icons are set in GetRowData event handler We have seen what appears to be GDI Object leakage when the Infralution VirtualTree control assigns Icons in the GetRowData event. The VirtualTree is contained in a control that is contained within a TabControl. Tabbing awa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In CakePHP, how can you determine if a field was changed in an edit action? I'm using the cacheCounter in CakePHP, which increments a counter for related fields.
Example, I have a Person table a Source table. Person.source_id maps to a row in the Source table. Each person has one Source, and each Source has none or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Good alternative for ASpell? Is there any good alternative to ASpell? It's nice open source, but haven't been updated for a while. The performance is not too good and I am having trouble creating a custom worklist with non-alpha characters.
A: Hunspell. It's what Firefox uses for its spellchecker.
A: Check out H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: MySQL InnoDB database restore I have to restore a database that has been inadvertently DROPped in MySQL 5.0. From checking the backup files, I only seem to have .FRM files to hold the database data.
Can anyone advise whether this is all I need to perform a database restore/import from the backup, or are there other... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Code compiling in eclipse but not on command line I once wrote this line in a Java class. This compiled fine in Eclipse but not on the command line.
This is on
*
*Eclipse 3.3
*JDK 1.5
*Windows XP Professional
Any clues?
Error given on the command line is:
Icons.java:16: code too large
public stat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Are there any MVC web frameworks that support multiple request types? In every MVC framework I've tried (Rails, Merb, Waves, Spring, and Struts), the idea of a Request (and Response) is tied to the HTTP notion of a Request. That is, even if there is an AbstractRequest that is a superclass of Request, the AbstractRe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to avoid type safety warnings with Hibernate HQL results? For example I have such query:
Query q = sess.createQuery("from Cat cat");
List cats = q.list();
If I try to make something like this it shows the following warning
Type safety: The expression of type List needs unchecked conversion to conform to List<C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "109"
} |
Q: How to permanently disable region-folding in Visual Studio 2008 Anyone know how to turn off code folding in visual studio 2008? Some of my colleagues love it, but I personally always want to see all the code, and never want code folded out of sight. I'd like a setting that means my copy of Visual Studio never folds ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "111"
} |
Q: Obfuscating Silverlight XAP I am wondering any efficient way to hide our Silverlight code. I know there are some obfuscators available but it looks like people can hack that too. Anybody have any success on this front?
A: You really can't hide anything that gets transmitted to the client. If people want to figure ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Storing C++ template function definitions in a .CPP file I have some template code that I would prefer to have stored in a CPP file instead of inline in the header. I know this can be done as long as you know which template types will be used. For example:
.h file
class foo
{
public:
template <typename T>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "681"
} |
Q: Why does IE7 specify a mime-type of image/pjpeg rather than just image/jpeg? When uploading a file (jpeg) via a form in IE7 I am seeing a mime-type of "image/pjpeg" instead of "image/jpeg" (as I see in Firefox or similar). It's easy enough to work around this problem, but I'm just wondering why IE7 is behaving diff... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Is there a way to clear a user's browser of my page, or say not to use cache? Is there a command in classic ASP I can use to tell the browser not to pull the page from it's cache, or, to not cache, or clear the cache of my page?
A: You can use HTML meta tags:
<meta http-equiv="Pragma" content="no-cache" />
<meta ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the simplest way to offer/consume web services in jython? I have an application for Tomcat which needs to offer/consume web services. Since Java web services are a nightmare (xml, code generation, etc.) compared with what is possible in Python, I would like to learn from your experience using jython instead ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Which is more pythonic, factory as a function in a module, or as a method on the class it creates? I have some Python code that creates a Calendar object based on parsed VEvent objects from and iCalendar file.
The calendar object just has a method that adds events as they get parsed.
Now I want to create a factory f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: A more advanced table/spreadsheet SWT implementation I'm developing an application based on Eclipse's Rich Client Platform that relies heavily on the use of tables for showing and editing data. I'm currently using the SWT implementations of Table and TableViewer.
My users are forever complaining that it "doesn't wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: In Eclipse, why does "Build Automatically" get mysteriously disabled? I'm running Eclipse Europa (3.3). I leave the "Build Automatically" setting, under the Project menu, on all the time. Once in awhile my code isn't compiling, and I puzzle over it and then pull down the Project menu ... lo and behold, it's not se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I configure the ip address with CherryPy? I'm using python and CherryPy to create a simple internal website that about 2 people use. I use the built in webserver with CherryPy.quickstart and never messed with the config files. I recently changed machines so I installed the latest Python and cherrypy and when ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Indexing nulls for fast searching on DB2 It's my understanding that nulls are not indexable in DB2, so assuming we have a huge table (Sales) with a date column (sold_on) which is normally a date, but is occasionally (10% of the time) null.
Furthermore, let's assume that it's a legacy application that we can't change... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: When is the right time (and the wrong time) to use backticks? Many beginning programmers write code like this:
sub copy_file ($$) {
my $from = shift;
my $to = shift;
`cp $from $to`;
}
Is this bad, and why? Should backticks ever be used? If so, how?
A: Backticks should be used if and only if you need to capt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to statically compile an SDL game on Windows I have been trying to produce a statically linked "single binary" version of my game for windows. I want to link with sdl, sdl_image and sdl_mixer which in turn pull in a few support libraries. Unfortunately I haven't found a way to get them all to compile and link us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Which format for small website images? GIF or PNG? When doing small icons, header graphics and the like for websites, is it better to use GIFs or PNGs?
Obviously if transparency effects are required, then PNGs are definitely the way to go, and for larger, more photographic images I'd use JPEGs - but for normal web ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Lightweight X window manager/environment My machine is seriously underpowered, and I think I need to start conserving every spare cycle. I know that my Gnome environment seems to underperform compared to my coworkers' KDE setups. But if I'm going to make that big of a switch, I might as well consider running somet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What is the best method to capture images from a live video device for use by a Java-based application? I am looking into an image processing problem for semi-real time detection of certain scenarios. My goal is to have the live video arrive as Motion JPEG frames in my Java code somehow.
I am familiar with the Ja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How would you go about reverse engineering a set of binary data pulled from a device? A friend of mine brought up this questiont he other day, he's recently bought a garmin heart rate moniter device which keeps track of his heart rate and allows him to upload his heart rate stats for a day to his computer.
The only ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Recommended Python publish/subscribe/dispatch module? From PyPubSub:
Pypubsub provides a simple way for
your Python application to decouple
its components: parts of your
application can publish messages (with
or without data) and other parts can
subscribe/receive them. This allows
message "senders" and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: What pre-existing services exist for calculating distance between two addresses? I'd like to implement a way to display a list of stored addresses sorted by proximity to a given address.
Addresses in the list will be stored in a database table. Separate parts have separate fields (we have fields for postal code, ci... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How fast is LINQ? I need to manipulate 100,000 - 200,000 records.
I am thinking of using LINQ (to SQL) to do this.
I know from experience that filtering dataviews is very slow.
So how quick is LINQ?
Can you please tell me your experiences and if it is worth using, or would I be better off using SQL stored procedure... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Syntax to declare JS scripts I'm not sure about what's the difference between opening a JS script with
<SCRIPT language='JavaScript'>
or with:
<SCRIPT type="text/JavaScript">
Should JavaScript always be quoted (either with " " or with ' ') or that's not really important?
Thank you for any clarification on this to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Convert mysql timestamp to epoch time in python Convert mysql timestamp to epoch time in python - is there an easy way to do this?
A: converting mysql time to epoch:
>>> import time
>>> import calendar
>>> mysql_time = "2010-01-02 03:04:05"
>>> mysql_time_struct = time.strptime(mysql_time, '%Y-%m-%d %H:%M:%S')
>>> ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I get the title of the current active window using c#? I'd like to know how to grab the Window title of the current active window (i.e. the one that has focus) using C#.
A: Loop over Application.Current.Windows[] and find the one with IsActive == true.
A: Use the Windows API. Call GetForegroundWindow().
Ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "125"
} |
Q: SQL Server, Remote Stored Procedure, and DTC Transactions Our organization has a lot of its essential data in a mainframe Adabas database. We have ODBC access to this data and from C# have queried/updated it successfully using ODBC/Natural "stored procedures".
What we'd like to be able to do now is to query a mainf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Obtaining information about the physical device from a given file path Suppose you have a full path to an accessible file or folder on the system. How can I get some kind of unique identifier for the physical device that the file (or folder) actually resides on?
My first attempt was to use System.IO.DriveInfo which... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you deal with lots of small files? A product that I am working on collects several thousand readings a day and stores them as 64k binary files on a NTFS partition (Windows XP). After a year in production there is over 300000 files in a single directory and the number keeps growing. This has made accessing t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: PocketPC - Convert VT_DATE to an invariant VT_BSTR I'm trying to convert a VARIANT from VT_DATE to an invariant VT_BSTR. The following code works on Windows XP:
VARIANT va;
::VariantInit(&va);
// set the variant to VT_DATE
SYSTEMTIME st;
memset(&st, 0, sizeof(SYSTEMTIME));
st.wYear = 2008;
st.wMonth = 9;
st.wDay =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best way to make a thread signal another thread in .NET? I need to have a thread signal another if the user wishes to interrupt execution, however I'm unsure about how to implement the signaling/signal-checking mechanism. I wouldn't like to have a singleton in my project (like a global bool), but is ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Bad UI Design? Having two logos on the top left of the website? Well i am currently working on a project doing some UI mockups when certain users wanted to have two logo on the top left ot the website.
One is to indicate what is the website about then another is to indicate that this website is actually belong to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Linq to SQL Grouping Child Relationships I'm trying to run a LINQ to SQL query that returns a result in a grid view in a search engine style listing.
In the simplified example below, is it possible to populate the collection with a comma-separated list of any children that the parent has (NAMESOFCHILDREN) in a sin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Indirectly referenced from required .class file I'm getting an error message when I try to build my project in eclipse:
The type weblogic.utils.expressions.ExpressionMap cannot be resolved. It is indirectly referenced
from required .class files
I've looked online for a solution and cannot find one (except for thos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: What would be the simplest way to daemonize a python script in Linux? What would be the simplest way to daemonize a python script in Linux ? I need that this works with every flavor of Linux, so it should only use python based tools.
A: nohup
Creating a daemon the Python way
A: See Stevens and also this lengthy ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Using Pylint with Django I would very much like to integrate pylint into the build process for
my python projects, but I have run into one show-stopper: One of the
error types that I find extremely useful--:E1101: *%s %r has no %r
member*--constantly reports errors when using common django fields,
for example:
E110... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "151"
} |
Q: Flash: Coming back from another tab in browser, can flash listen to return to tab event of some sort? I got this flash application where you can click a link while watching a video. It will open a new tab and pause the video. Now when you come back to the flash application it would be nice if the video would start p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I add an empty directory to a Git repository? How do I add an empty directory (that contains no files) to a Git repository?
A: As mentioned it's not possible to add empty directories, but here is a one liner that adds empty .gitignore files to all directories.
ruby -e 'require "fileutils" ; Dir.glob(["targe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5160"
} |
Q: Generate PDF from structured data I want to be able to generate a highly graphical (with lots of text content as well) PDF file from data that I might have in a database or xml or any other structured form.
Currently our graphic designer creates these PDF files in Photoshop manually after getting the content as a MS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using Powershell to access IIS logs? I know you can use PowerShell to make things like the registry a drive letter. There are other objects in PowerShell to treat other objects in this way. Does anyone know of any cmdlets to access IIS logs in this manner?
A: Would a quick and dirty script work? The third line of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Windows Server 2008 SSTP VPN in a Non-Domain Environment? Is it doable to set up a non-domain-based (standalone) Windows Server 2008 as an SSTP VPN (Secure Socket Layer Tunneling Protocol VPN)?
I'd like to enable remote users to access a network via SSL-based VPN (currently using PPTP) by making an SSTP VPN connecti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Show error messages on top of form ? Or beside each individual fields? Which approach do you all think is better?
A: Next to each field, highlighting each field in a distinctive color or with an easily distinguishable mark, so it's self evident where the problems are, especially on a long form. Also place a help ic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pointers and containers We all know that RAW pointers need to be wrapped in some form of smart pointer to get Exception safe memory management. But when it comes to containers of pointers the issue becomes more thorny.
The std containers insist on the contained object being copyable so this rules out the use of std:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/116002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Do you check your field- and table names against reserved word lists? I've sometimes had a problem with my field-, table-, view- oder stored procedure names.
Example:
SELECT from, to, rate FROM Table1
The Problem is that from is a reserved word in SQL-92.
You could put the fieldname in double quotes to fix this,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/116032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Java garbage collection on VMWare servers Has anyone experienced issues with Java's default garbage collector while running apps on VmWare instances?
I am experiencing issues where full garbage collections are not running as often as I would expect and am curious if the VmWare variable has anything to do with it.
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/116036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I read an entire file into a std::string in C++? How do I read a file into a std::string, i.e., read the whole file at once?
Text or binary mode should be specified by the caller. The solution should be standard-compliant, portable and efficient. It should not needlessly copy the string's data, and it should ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/116038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "248"
} |
Q: Location of My Pictures How do I programatically (Using C#) find out what the path is of my My Pictures folder?
Does this work on XP and Vista?
A: The following will return a full-path to the location of the users picture folder (Username\My Documents\My Pictures on XP, Username\Pictures on Vista)
Environment.GetF... | {
"language": "en",
"url": "https://stackoverflow.com/questions/116050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How to show/hide a column at runtime? I'd like to show/hide a column at runtime based on a particular condition. I'm using "Print when expression" to conditionally show/hide this column (and it's header) in my report. When the column is hidden, the space it would have occupied is left blank, which is not particularl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/116053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What is the best way to embed LaTeX in a webpage? I'm not asking about converting a LaTeX document to html.
What I'd like to be able to do is have some way to use LaTeX math commands in an html document, and have it appear correctly in a browser. This could be done server or client side.
A: Only one (very good) an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/116054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: How do I ignore a directory with SVN? I just started using SVN, and I have a cache directory that I don't need under source control. How can I ignore the whole directory/folder with SVN?
I am using Versions and TextMate on OS X and commandline.
A: Since I spent a while trying to get this to work, it should be noted... | {
"language": "en",
"url": "https://stackoverflow.com/questions/116074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "786"
} |
Q: With Blogger (FTP, Classic) how do you add features that are too complex for the template? Using classic templates, publishing via FTP to a custom domain.
I want to add custom elements such as:
*
*a tree view for archived posts (expanding using CSS/JavaScript)
*a tag cloud
*a slideshow of images
A: I used PHP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/116088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I kill a process using Vb.NET or C#? I have a scenario where I have to check whether user has already opened Microsoft Word. If he has, then I have to kill the winword.exe process and continue to execute my code.
Does any one have any straight-forward code for killing a process using vb.net or c#?
A: You'l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/116090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "72"
} |
Q: When would you use a Web User Control over a Web Custom Control? Can someone explain when to use each of these? They almost seem interchangeable in many cases.
The Custom Control gets added to the toolbar while the User Control (ascx) can not. The Custom Control does not get rendered in the Designer while the Us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/116096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Should I keep my project files under version control? Should I keep project filesm like Eclipse's .project, .classpath, .settings, under version control (e.g. Subversion, GitHub, CVS, Mercurial, etc)?
A: You do want to keep in version control any portable setting files,
meaning:
Any file which has no absolute path ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/116121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "91"
} |
Q: How can I search a word in a Word 2007 .docx file? I'd like to search a Word 2007 file (.docx) for a text string, e.g., "some special phrase" that could/would be found from a search within Word.
Is there a way from Python to see the text? I have no interest in formatting - I just want to classify documents as hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/116139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Using AssemblyInfo to automatically update multiple AssemblyInfo.cs files I've got several AssemblyInfo.cs files as part of many projects in a single solution that I'm building automatically as part of TeamCity.
To make the msbuild script more maintainable I'd like to be able to use the AssemblyInfo community task i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/116140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: C# 3.0 Auto-Properties - Is it possible to add custom behaviour? I would like to know if there is any way to add custom behaviour to the auto property get/set methods.
An obvious case I can think of is wanting every set property method to call on any PropertyChanged event handlers as part of a System.ComponentModel.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/116142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you install an SSL certificate on IIS 6 and 7? Is there a tool or programmatic way to install an SSL certificate to the default website in IIS 6 and 7? Ideally I am looking for something that can be done via unmanaged code or .NET managed code.
A: You can look at
http://www.microsoft.com/technet/prodtechno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/116147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Framework to bind object properties to WTL controls I would like to have something like this:
class Foo {
private:
int bar;
public:
void setBar(int bar);
int getBar() const;
}
class MyDialog : public CDialogImpl<MyDialog> {
BEGIN_MODEL_MAPPING()
MAP_INT_EDITOR(m_editBar, m_model, getBar, setBar);
END_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/116154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Delphi: Paradox DB Field Name Issue (Spaces in field name) I have a paradox table from a legacy system I need to run a single query on. The field names have spaces in them - i.e. "Street 1". When I try and formulate a query in delphi for only the "Street 1" field, I get an error - Invalid use of keyword. Token: 1,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/116163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do you handle developer individual files under version control? Some files in our repository are individual to each developer. For example some developers use a local database, which is configured in a properties file in the project. So each developer has different settings. When one developer commits, he always... | {
"language": "en",
"url": "https://stackoverflow.com/questions/116164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is anyone using Entity Framework with an Oracle database? I am wondering if anyone is already using Entity Framework with an Oracle database in a production environment? There seems to be no support for EF in ODP.Net and only 3rd party data providers (OraDirect) seem to be available to connect with Oracle. Someone m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/116173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.