text
stringlengths
8
267k
meta
dict
Q: Find all available JREs on Mac OS X from Java application installer If Java application requires certain JRE version then how can I check its availability on Mac OS X during installation? A: It should be as simple as looking at /System/Library/Frameworks/JavaVM.framework/Versions/ E.g. from my machine: manoa:~ stu$...
{ "language": "en", "url": "https://stackoverflow.com/questions/63206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to make Flex RIA contents accessible to search engines like Google? How would you make the contents of Flex RIA applications accessible to Google, so that Google can index the content and shows links to the right items in your Flex RIA. Consider a online shop, created in Flex, where the offered items shall be in...
{ "language": "en", "url": "https://stackoverflow.com/questions/63232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Does generated code need to be human readable? I'm working on a tool that will generate the source code for an interface and a couple classes implementing that interface. My output isn't particularly complicated, so it's not going to be hard to make the output conform to our normal code formatting standards. But th...
{ "language": "en", "url": "https://stackoverflow.com/questions/63257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Select columns with NULL values only How do I select all the columns in a table that only contain NULL values for all the rows? I'm using MS SQL Server 2005. I'm trying to find out which columns are not used in the table so I can delete them. A: Here is the sql 2005 or later version: Replace ADDR_Address with yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/63291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "63" }
Q: How do I get sun webserver to redirect from I have Sun webserver iws6 (iplanet 6) proxying my bea cluster. My cluster is under /portal/yadda. I want anyone who goes to http://the.domain.com/ to be quickly redirected to http://the.domain.com/portal/ I have and index.html that does a post and redirect, but the use...
{ "language": "en", "url": "https://stackoverflow.com/questions/63295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I know when the last OutputDataReceived has arrived? I have a System.Diagnostics.Process object in a program targeted at the .Net framework 3.5 I have redirected both StandardOutput and StandardError pipes and I'm receiving data from them asynchronously. I've also set an event handler for the Exited event. O...
{ "language": "en", "url": "https://stackoverflow.com/questions/63303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: How can I change IE's homepage without opening IE? Here's an interesting problem. On a recently installed Server 2008 64bit I opened IE and through the Tools -> Options I changed the homepage to iGoogle.com. Clicked okay and then clicked the homepage button. IE crashes. Now you'd think that I could just remove iGoog...
{ "language": "en", "url": "https://stackoverflow.com/questions/63343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: When did I last talk to my Domain Server? How can my app get a valid "last time connected to domain" timestamp from Windows, even when the app is running offline? Background: I am writing an application that is run on multiple client machines throughout my company. All of these client machines are on one of the AD ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Screen + vim causes shift-enter to insert 'M' and a newline When running a vim instance in gnu screen hitting shift enter in insert mode adds an 'M' and then a newline, rather than just a newline. Does anybody know what the problem might be, or where to look? Relevant system info: Ubuntu 8.04.1 Screen version 4.00....
{ "language": "en", "url": "https://stackoverflow.com/questions/63378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Passing impersonation token on a Managed Thread to an Unmanaged Thread I have a case where a VB.Net winforms app needs to play WMV files from across the network. The user running the app cannot be given direct access to the network share. Through impersonation, I can see that the files exist (without impersonation, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a way to build a Flash 9 SWF from an FLA file without using the Flash IDE? Two reasons this would be useful, in case there's some other way to achieve these goals: 1) Building in the Flash IDE is really slow; I was hoping a third-party compiler would be faster. 2) It would be nice to be able to build projec...
{ "language": "en", "url": "https://stackoverflow.com/questions/63390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: MySQL statement that returns a SQL statement? I need to do a dump of a table on a remote server, but I can't access the server directly. The only access I have is through PHP scripts. Is there some way in which MySQL will return an INSERT INTO `table_name` (`field1`, `field2`) VALUES ('a', 'b'), ('c', 'd') stateme...
{ "language": "en", "url": "https://stackoverflow.com/questions/63399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: iPhone app loading When I load my iPhone app it always loads a black screen first then pops up the main window. This happens even with a simple empty app with a single window loaded. I've noticed that when loading, most apps zoom in on the main window (or scale it to fit the screen, however you want to think about ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Using Emacs as an IDE Currently my workflow with Emacs when I am coding in C or C++ involves three windows. The largest on the right contains the file I am working with. The left is split into two, the bottom being a shell which I use to type in compile or make commands, and the top is often some sort of documenta...
{ "language": "en", "url": "https://stackoverflow.com/questions/63421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "178" }
Q: How do I display dynamic text at the mouse cursor via C++/MFC in a Win32 application I would like to be able to display some dynamic text at the mouse cursor location in a win32 app, for instance to give an X,Y coordinate that would move with the cursor as though attached. I can do this during a mousemove event u...
{ "language": "en", "url": "https://stackoverflow.com/questions/63429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Programmatically show tooltip in winforms application How can I programatically cause a control's tooltip to show in a Winforms app without needing the mouse to hover over the control? (P/Invoke is ok if necessary). A: If you are using the Tooltip control on the form, you can do it like this: ToolTip1.Show("Text ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: How do I perform an IF...THEN in an SQL SELECT? How do I perform an IF...THEN in an SQL SELECT statement? For example: SELECT IF(Obsolete = 'N' OR InStock = 'Y' ? 1 : 0) AS Saleable, * FROM Product A: SELECT CASE WHEN Obsolete = 'N' or InStock = 'Y' THEN 1 ELSE 0 END AS Saleable, * FROM Product A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/63447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1755" }
Q: Split out ints from string Let's say I have a web page that currently accepts a single ID value via a url parameter: http://example.com/mypage.aspx?ID=1234 I want to change it to accept a list of ids, like this: http://example.com/mypage.aspx?IDs=1234,4321,6789 So it's available to my code as a string via context.Re...
{ "language": "en", "url": "https://stackoverflow.com/questions/63463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Which is the most useful Mercurial hook for programming in a loosely connected team? I recently discovered the notify extension in Mercurial which allows me quickly send out emails whenever I push changes, but I'm pretty sure I'm still missing out on a lot of functionality which could make my life a lot easier. *...
{ "language": "en", "url": "https://stackoverflow.com/questions/63488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Does anyone use template metaprogramming in real life? I discovered template metaprogramming more than 5 years ago and got a huge kick out of reading Modern C++ Design but I never found an opertunity to use it in real life. Have you ever used this technique in real code? Contributors to Boost need not apply ;o) A...
{ "language": "en", "url": "https://stackoverflow.com/questions/63494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Are there any JSF component libraries that generate semantic and cross-browser html markup? I'm using RichFaces per a client requirement, but the markup it (and the stock JSF controls) generates is an awful mess of nested tables. Are there any control libraries out there that generate nicer markup? AJAX support is...
{ "language": "en", "url": "https://stackoverflow.com/questions/63509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Intellisense in Visual Studio 2005 between C# and VB - can't navigate to definitions I'm absolutely stunned by the fact that MS just couldn't get it right to navigate to the definition of a method, when you're combining C# and VB projects in one solution. If you're trying to navigate from VB to C#, it brings up the...
{ "language": "en", "url": "https://stackoverflow.com/questions/63517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: VS2005 C# Programmatically change connection string contained in app.config Would like to programmically change the connecton string for a database which utilizes the membership provider of asp.net within a windows application. The system.configuration namespace allows changes to the user settings, however, we would...
{ "language": "en", "url": "https://stackoverflow.com/questions/63546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: c# properties with repeated code I have a class with a bunch of properties that look like this: public string Name { get { return _name; } set { IsDirty = true; _name = value; } } It would be a lot easier if I could rely on C# 3.0 to generate the backing store for these, but is there any way to factor out t...
{ "language": "en", "url": "https://stackoverflow.com/questions/63556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Capturing the desktop with Windows Media Format(WMF) I am using Windows Media Format SDK to capture the desktop in real time and save it in a WMV file (actually this is an oversimplification of my project, but this is the relevant part). For encoding, I am using the Windows Media Video 9 Screen codec because it is v...
{ "language": "en", "url": "https://stackoverflow.com/questions/63563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Unobtrusive Javascript: Removing links if Javascript is enabled I'm using PopBox for magnifying thumbnails on my page. But I want my website to work even for users which turned javascript off. I tried to use the following HTML code: <a href="image.jpg"> <img src="thumbnail.jpg" pbsrc="image.jpg" onclick="Pop(....
{ "language": "en", "url": "https://stackoverflow.com/questions/63581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Including files case-sensitively on Windows from PHP We have an issue using the PEAR libraries on Windows from PHP. Pear contains many classes, we are making use of a fair few, one of which is the Mail class found in Mail.php. We use PEAR on the path, rather than providing the full explicit path to individual PEAR f...
{ "language": "en", "url": "https://stackoverflow.com/questions/63599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is best way to debug Shoes applications? Shoes has some built in dump commands (Shoes.debug), but are there other tools that can debug the code without injecting debug messages throughout? Something like gdb would be great. A: You can also use Shoes.show_log to automatically open a debug console. A: The shoe...
{ "language": "en", "url": "https://stackoverflow.com/questions/63618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Importing XML file in Rails app, UTF-16 encoding problem I'm trying to import an XML file via a web page in a Ruby on Rails application, the code ruby view code is as follows (I've removed HTML layout tags to make reading the code easier) <% form_for( :fmfile, :url => '/fmfiles', :html => { :method => :post, :name =...
{ "language": "en", "url": "https://stackoverflow.com/questions/63632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WPF Data Binding and Validation Rules Best Practices I have a very simple WPF application in which I am using data binding to allow editing of some custom CLR objects. I am now wanting to put some input validation in when the user clicks save. However, all the WPF books I have read don't really devote any space to t...
{ "language": "en", "url": "https://stackoverflow.com/questions/63646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "101" }
Q: How do I stop network flooding using Windows 2003 Network Load balancing? I know that the MsNLB can be configured to user mulitcast with IGMP. However, if the switch does not support IGMP what are the options? A: If you can find an old "dumb" hub, you can run the node NIC's through it, or if your switch is managabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/63658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it safe for structs to implement interfaces? I seem to remember reading something about how it is bad for structs to implement interfaces in CLR via C#, but I can't seem to find anything about it. Is it bad? Are there unintended consequences of doing so? public interface Foo { Bar GetBar(); } public struct Fuba...
{ "language": "en", "url": "https://stackoverflow.com/questions/63671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "110" }
Q: How create threads under Python for Delphi I'm hosting Python script with Python for Delphi components inside my Delphi application. I'd like to create background tasks which keep running by script. Is it possible to create threads which keep running even if the script execution ends (but not the host process, whic...
{ "language": "en", "url": "https://stackoverflow.com/questions/63681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calling function when program exits in java I would like to save the programs settings every time the user exits the program. So I need a way to call a function when the user quits the program. How do I do that? I am using Java 1.5. A: You can add a shutdown hook to your application by doing the following: Runtime....
{ "language": "en", "url": "https://stackoverflow.com/questions/63687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How do you reliably get an IP address via DHCP? I work with embedded Linux systems that sometimes want to get their IP address from a DHCP server. The DHCP Client client we use (dhcpcd) has limited retry logic. If our device starts up without any DHCP server available and times out, dhcpcd will exit and the device...
{ "language": "en", "url": "https://stackoverflow.com/questions/63690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating a Math library using Generics in C# Is there any feasible way of using generics to create a Math library that does not depend on the base type chosen to store data? In other words, let's assume I want to write a Fraction class. The fraction can be represented by two ints or two doubles or whatnot. The impor...
{ "language": "en", "url": "https://stackoverflow.com/questions/63694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Does Vista do stricter checking of Interface Ids in DCOM calls? (the Stub received bad Data)? I hope everyone will pardon the length, and narrative fashion, of this question. I decided to describe the situation in some detail in my blog. I later saw Joel's invitation to this site, and I thought I'd paste it here t...
{ "language": "en", "url": "https://stackoverflow.com/questions/63720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: MidpointRounding enumeration Is there a way I can configure the MidPointRounding enumeration default setting in a config file (I.e. web.config or app.config) I have a considerable source code base, and I need to configure at the application scope how rounding will occur, whether used in Math.Round or decimal type r...
{ "language": "en", "url": "https://stackoverflow.com/questions/63723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does the default IntelliJ default class javadoc comment use non-standard syntax? Why does the default IntelliJ default class javadoc comment use non-standard syntax? Instead of creating a line with "User: jstauffer" it could create a line with "@author jstauffer". The other lines that it creates (Date and Time) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: innerHTML manipulation in JavaScript I am developing a web page code, which fetches dynamically the content from the server and then places this content to container nodes using something like container.innerHTML = content; Sometimes I have to overwrite some previous content in this node. This works fine, until it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should I use clone when adding a new element? When should clone be used? I want to implement in Java a class for handling graph data structures. I have a Node class and an Edge class. The Graph class maintains two list: a list of nodes and a list of edges. Each node must have an unique name. How do I guard against a...
{ "language": "en", "url": "https://stackoverflow.com/questions/63748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What user account would you recommend running the SQL Server Express 2008 services in a development environment? The SQL Server Express 2008 setup allow you to assign different user account for each service. For a development environment, would you use a domain user, local user, NT Authority\NETWORK SERCVICE, NT Au...
{ "language": "en", "url": "https://stackoverflow.com/questions/63749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: When is the best time to use and in lieu of and , if ever? Semantically speaking, is there an appropriate place in today's websites (late 2008+) where using the bold <b> and italic <i> tags are more useful than the more widely used <strong> and <em> tags? A: According to the HTML 5 spec, <b> and <i> should be us...
{ "language": "en", "url": "https://stackoverflow.com/questions/63752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Easy way to create a form to email in SharePoint without using infopath Does anyone know a good way to do this? I need to have simple forms that submit to email without writing a lot of code. These forms will be hosted in content-viewer web parts or similar in MOSS 2007. I'd like to avoid using InfoPath. A: You ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there a way to "diff" two XMLs element-wise? I'm needing to check the differences between two XMLs but not "blindly", Given that both use the same DTD, I'm actually interested in verifying wether they have the same amount of elements or if there's differences. A: * *xmldiff from Logilab *diffxml *A commercia...
{ "language": "en", "url": "https://stackoverflow.com/questions/63756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to kill a Java Virtual Machine from another Virtual Machine? I have a Java application that launches another java application. The launcher has a watchdog timer and receives periodic notifications from the second VM. However, if no notifications are received then the second virtual machine should be...
{ "language": "en", "url": "https://stackoverflow.com/questions/63758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What databases do I have permissions on How can I find what databases I have a minimum of read access to in either basic SQL, MySQL specific or in PHP? A: There is a command in MySQL which can show you all of the permissions you have. The command is: SHOW GRANTS; It will give you output similar to: root@(none)~...
{ "language": "en", "url": "https://stackoverflow.com/questions/63764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Debugger for unix pipe commands As I build *nix piped commands I find that I want to see the output of one stage to verify correctness before building the next stage but I don't want to re-run each stage. Does anyone know of a program that will help with that? It would keep the output of the last stage automatically...
{ "language": "en", "url": "https://stackoverflow.com/questions/63771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Bit reversal of an integer, ignoring integer size and endianness Given an integer typedef: typedef unsigned int TYPE; or typedef unsigned long TYPE; I have the following code to reverse the bits of an integer: TYPE max_bit= (TYPE)-1; void reverse_int_setup() { TYPE bits= (TYPE)max_bit; while (bits <<= 1)...
{ "language": "en", "url": "https://stackoverflow.com/questions/63776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What are my options for having the RadioButtonList functionality of ASP.NET in WinForms? Is this type of control only available in a 3rd-party library? Has someone implemented an open source version? A: I believe you can include radio buttons in a grid, though that's more cumbersome than it needs to be. Also, I do...
{ "language": "en", "url": "https://stackoverflow.com/questions/63778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Implementing scripts in c++ app I want to move various parts of my app into simple scripts, to allow people that do not have a strong knowledge of c++ to be able to edit and implement various features. Because it's a real time app, I need to have some kind of multitasking for these scripts. Ideally I want it so that...
{ "language": "en", "url": "https://stackoverflow.com/questions/63784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: What makes Drupal better/different from Joomla I talked to a few friends who say that Drupal is amazing, and it is a way better than Joomla. What are the major differences/advantages? A: The community around drupal - theres a module to do just about everything. Sometimes, theres more than one way to do something t...
{ "language": "en", "url": "https://stackoverflow.com/questions/63787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: VS 2003 Reports "unable to get the project file from the web server" when opening a solution from VSS When attempting to open a project from source control on a newly formatted pc, I receive an "unable to get the project file from the web server" after getting the sln file from VSS. If I attempt to open the sln file...
{ "language": "en", "url": "https://stackoverflow.com/questions/63790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does Java impose any further restrictions on filenames other than the underlying operating system? Does Java impose any extra restrictions of its own. Windows (upto Vista) does not allow names to include \ / < > ? * : I know HOW to validate names (a regular expression). I need to validate filenames entered by users...
{ "language": "en", "url": "https://stackoverflow.com/questions/63800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Equivalent of *Nix 'which' command in PowerShell? How do I ask PowerShell where something is? For instance, "which notepad" and it returns the directory where the notepad.exe is run from according to the current paths. A: A quick-and-dirty match to Unix which is New-Alias which where.exe But it returns multiple ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "508" }
Q: Splitting a file and its lines under Linux/bash I have a rather large file (150 million lines of 10 chars). I need to split it in 150 files of 2 million lines, with each output line being alternatively the first 5 characters or the last 5 characters of the source line. I could do this in Perl rather quickly, but I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/63870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL Server 2005 has problems connecting to a website running on the same server An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Nam...
{ "language": "en", "url": "https://stackoverflow.com/questions/63875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: DVD menu coding As a programmer I have no idea how one would go about programming menus for a DVD, I have heard that this is possible, and even seen basic games using DVD menus - although it may very well be a closed-system. Is it even possible and if so, what language, compilers etc exist for this? A: There are a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Exporting a Reporting Services Report to Excel and Having the table header wrap I have a report in Reporting services, and when I preview it, the headers for a table wrap, but when I export it to Excel, the don't. They just get cut off. Any ideas on how to force it to wrap when I export to Excel? A: Although this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: CakePHP: Action runs twice, for no good reason I have a strange problem with my cake (cake_1.2.0.7296-rc2). My start()-action runs twice, under certain circumstances, even though only one request is made. The triggers seem to be : - loading an object like: $this->Questionnaire->read(null, $questionnaire_id); - acces...
{ "language": "en", "url": "https://stackoverflow.com/questions/63881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do you view SQL Server 2005 Reporting Services reports from ReportViewer Control in DMZ I want to be able to view a SQL Server 2005 Reporting Services report from an ASP.NET application in a DMZ through a ReportViewer control. The SQLand SSRS server are behind the firewall. A: `So I had to change the way an AS...
{ "language": "en", "url": "https://stackoverflow.com/questions/63882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I fix an issue in IE where borders don't show up when the mouse isn't hovered over an image I am trying to create a rather simple effect on a set of images. When an image doesn't have the mouse over it, I'd like it to have a simple, gray border. When it does have an image over it, I'd like it to have a dif...
{ "language": "en", "url": "https://stackoverflow.com/questions/63885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Analyzer for Russian language in Lucene and Lucene.Net Lucene has quite poor support for Russian language. RussianAnalyzer (part of lucene-contrib) is of very low quality. RussianStemmer module for Snowball is even worse. It does not recognize Russian text in Unicode strings, apparently assuming that some bizarre mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/63896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Why are the hash codes generated by this function not unique? I'm testing the VB function below that I got from a Google search. I plan to use it to generate hash codes for quick string comparison. However, there are occasions in which two different strings have the same hash code. For example, these strings "122Ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/63897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best Way to Animate Sprites in Flex Is there a preferred way to handle animation when using Flex -- For instance, if I want to render a ball and bounce it around the screen? A: If you're building a Flex application, you should use Flex's native Effect classes. They're probably already compiled into your app, since ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Joomla Blog/Wordpress Integration I'm looking for a wordpress-like blog interface to put inside a Joomla hosted site. The admin interface of Joomla is quirky enough and hard enough to use that daily updates are infeasible. What I am looking for is an easy-to-use posting interface that supports multiple users with...
{ "language": "en", "url": "https://stackoverflow.com/questions/63916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best online javascript/css/html/xhtml/dom reference? I'm a front-end developer and I was looking for opinions about the best all-round online documentation for javascript/css/html/xhtml/dom/browser quirks and support. I've tried Sitepoint, Quirksmode, W3Schools but all of these seem to be lacking in cert...
{ "language": "en", "url": "https://stackoverflow.com/questions/63918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Struts 1.3: forward outside the application context? Struts 1.3 application. Main website is NOT served by struts/Java. I need to forward the result of a struts action to a page in the website, that is outside of the struts context. Currently, I forward to a JSP in context and use a meta-refresh to forward to the...
{ "language": "en", "url": "https://stackoverflow.com/questions/63930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can I submit a Struts form that references POJO (i.e. not just String or boolean) fields? I have a Struts (1.3x) ActionForm that has several String and boolean properties/fields, but also has some POJO fields. so my form looks something like: MyForm extends ActionForm { private String name; private int id; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I show data in the header of a SQL 2005 Reporting Services report? Out of the box SSRS reports cannot have data exposed in the page header. Is there a way to get this data to show? A: One of the things I want in my reports is to have nice headers for my reports. I like to have a logo and the user's report ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Missing classes in WMI when non-admin I'd like to be able to see Win32_PhysicalMedia information when logged in as a Limited User in Windows XP (no admin rights). It works ok when logged in as Admin, WMIDiag has just given a clean bill of health, and Win32_DiskDrive class produces information correctly, but Win32_Ph...
{ "language": "en", "url": "https://stackoverflow.com/questions/63940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to make Emacs terminal colors the same as Emacs GUI colors? I program with Emacs on Ubuntu (Hardy Heron at the moment), and I like the default text coloration in the Emacs GUI. However, the default text coloration when Emacs is run in the terminal is different and garish. How do I make the colors in the terminal...
{ "language": "en", "url": "https://stackoverflow.com/questions/63950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "73" }
Q: Game Programming and Event Handlers I haven't programmed games for about 10 years (My last experience was DJGPP + Allegro), but I thought I'd check out XNA over the weekend to see how it was shaping up. I am fairly impressed, however as I continue to piece together a game engine, I have a (probably) basic question. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Flickering during updates to Controls in WinForms (e.g. DataGridView) In my application I have a DataGridView control that displays data for the selected object. When I select a different object (in a combobox above), I need to update the grid. Unfortunately different objects have completely different data, even dif...
{ "language": "en", "url": "https://stackoverflow.com/questions/63974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Giving class unique ID on instantiation: .Net I would like to give a class a unique ID every time a new one is instantiated. For example with a class named Foo i would like to be able to do the following dim a as New Foo() dim b as New Foo() and a would get a unique id and b would get a unique ID. The ids only ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/63995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Hidden features of Ruby Continuing the "Hidden features of ..." meme, let's share the lesser-known but useful features of Ruby programming language. Try to limit this discussion with core Ruby, without any Ruby on Rails stuff. See also: * *Hidden features of C# *Hidden features of Java *Hidden features of JavaS...
{ "language": "en", "url": "https://stackoverflow.com/questions/63998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "159" }
Q: Draining Standard Error in Java When launching a process from Java, both stderr and stdout can block on output if I don't read from the pipes. Currently I have a thread that pro-actively reads from one and the main thread blocks on the other. Is there an easy way to join the two streams or otherwise cause the subpr...
{ "language": "en", "url": "https://stackoverflow.com/questions/64000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I use PHP to get the current year? I want to put a copyright notice in the footer of a web site, but I think it's incredibly tacky for the year to be outdated. How would I make the year update automatically with PHP 4 or PHP 5? A: <?php echo date("Y"); ?> This code should do A: $dateYear = date('Y'); echo ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1107" }
Q: How does one record audio from a Javascript based webapp? I'm trying to write a web-app that records WAV files (eg: from the user's microphone). I know Javascript alone can not do this, but I'm interested in the least proprietary method to augment my Javascript with. My targeted browsers are Firefox for PC and Mac (...
{ "language": "en", "url": "https://stackoverflow.com/questions/64010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How-To Auto Discover a WCF Service? Is there a way to auto discover a specific WCF service in the network? I don't want to config my client with the address if this is possible. A: Yes there is a way to auto discovery services. The .NET 4.0 includes a feature called WCF-Discovery its based on the WS-Discovery proto...
{ "language": "en", "url": "https://stackoverflow.com/questions/64014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Windows Form Ordering using MDILayout I have a very specific problem using C# and a Windows MDI Form application. I want to display two (or more) images to the user, a 'left' and a 'right' image. The names of the images are concealed from the user, and then the user selects which image they prefer (this is part of...
{ "language": "en", "url": "https://stackoverflow.com/questions/64029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I write a plug in for Microsoft SQL Enterprise Manager which changes the query window background Can I write a plug in for Microsoft SQL Enterprise Manager which changes the query window background if the query window points to a production database? A: No, Enterprise Manager doesn't have a plug-in framework fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/64032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do you make a deep copy of an object? It's a bit difficult to implement a deep object copy function. What steps you take to ensure the original object and the cloned one share no reference? A: A few people have mentioned using or overriding Object.clone(). Don't do it. Object.clone() has some major problems, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/64036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "356" }
Q: Setting java locale settings When I use the default java locale on my linux machine it comes out with the US locale settings, where do I change this so that it comes out with the correct locale? A: With the user.language, user.country and user.variant properties. Example: java -Duser.language=th -Duser.country=TH -...
{ "language": "en", "url": "https://stackoverflow.com/questions/64038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: WinForms DataGridView font size How do I change font size on the DataGridView? A: In winform datagrid, right click to view its properties. It has a property called DefaultCellStyle. Click the ellipsis on DefaultCellStyle, then it will present Cell Style Builder window which has the option to change the font size. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/64041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: Publishing Website fails for some pages I have a strange problem when I publish my website. I inherited this project and the problem started before I arrived so I don't know what conditions lead to the creation of the problem. Basically, 3 folders below the website project fail to publish properly. When the Precompi...
{ "language": "en", "url": "https://stackoverflow.com/questions/64046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Backporting a VB.Net 2008 app to target .Net 1.1 I have a small diagnostic VB.Net application ( 2 forms, 20 subs & functions) written using VB.Net 2008 that targets Framework 2.0 and higher, but now I realize I need to support Framework 1.1. I'm looking for the most efficient way to accomplish this given these con...
{ "language": "en", "url": "https://stackoverflow.com/questions/64051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a way to keep a page from rendering once a person has logged out but hit the "back" button? I have some website which requires a logon and shows sensitive information. The person goes to the page, is prompted to log in, then gets to see the information. The person logs out of the site, and is redirected bac...
{ "language": "en", "url": "https://stackoverflow.com/questions/64059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: What Feed Reader libraries for Java are best? What Java library would you say is the best for consuming and parsing feeds? Requirements: * *Embeddable *Supports Atom & RSS *Has caching architecture *Should be able to deal with any feed format the same way (Please: one suggestion per answer.) A: Will ROME do...
{ "language": "en", "url": "https://stackoverflow.com/questions/64061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Autoproxy configuration script parsing in .Net/C# In order for my application (.Net 1.1) to use the system configured proxy server (trough a proxy.pac script) I was using an interop calls to WinHTTP function WinHttpGetProxyForUrl, passing the proxy.pac url I got from the registry. Unfortunately, I hit a deployment s...
{ "language": "en", "url": "https://stackoverflow.com/questions/64092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Fastest way to delete all the data in a large table I had to delete all the rows from a log table that contained about 5 million rows. My initial try was to issue the following command in query analyzer: delete from client_log which took a very long time. A: Check out truncate table which is a lot faster. A: For r...
{ "language": "en", "url": "https://stackoverflow.com/questions/64117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "58" }
Q: UserControl Property of type Enum displays in designer as bool or not at all I have a usercontrol that has several public properties. These properties automatically show up in the properties window of the VS2005 designer under the "Misc" category. Except two of the properties which are enumerations don't show up c...
{ "language": "en", "url": "https://stackoverflow.com/questions/64139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Classes in Python In Python is there any way to make a class, then make a second version of that class with identical dat,a but which can be changed, then reverted to be the same as the data in the original class? So I would make a class with the numbers 1 to 5 as the data in it, then make a second class with the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/64141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way to format a localized string in AppleScript? When a script is saved as a bundle, it can use the localized string command to find the appropriate string, e.g. in Contents/Resources/English.lproj/Localizable.strings. If this is a format string, what is the best way to fill in the placeholders? In ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to upgrade database schema built with an ORM tool? I'm looking for a general solution for upgrading database schema with ORM tools, like JPOX or Hibernate. How do you do it in your projects? The first solution that comes to my mind is to create my own mechanism for upgrading databases, with SQL scripts doing all...
{ "language": "en", "url": "https://stackoverflow.com/questions/64148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is there good .sol editor for Flash Player 9 Local Shared Objects? Can we build one? There's plenty of them out there but none of them do what I would like them to do. Most of them crash when opening a file or simply corrupt the data. Many don't run at all. It seems to me that most were written 3-4 years ago for AS2...
{ "language": "en", "url": "https://stackoverflow.com/questions/64170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to change Firefox icon? Is there any way to change Firefox system icon (the one on the left top of the window)? Precision : I want to change the icon of a bundled version of Firefox with apache/php and my application. So manual operation on each computer is not a solution. I try Resource Hacker and it's the goo...
{ "language": "en", "url": "https://stackoverflow.com/questions/64174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Looking for better End-to-End Comms with Flex, .NET and DBMS We're reviewing some of our practices at work - and the specific thing we're looking at right now is the best method for doing Comms with Flex based clients, and .NET web services. Our typical approach is to first model the interactions based on requireme...
{ "language": "en", "url": "https://stackoverflow.com/questions/64177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Nice Python wrapper for Yahoo's Geoplanet web service? Has anybody created a nice wrapper around Yahoo's geo webservice "GeoPlanet" yet? A: After a brief amount of Googling, I found nothing that looks like a wrapper for this API, but I'm not quite sure if a wrapper is what is necessary for GeoPlanet. According to...
{ "language": "en", "url": "https://stackoverflow.com/questions/64185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Ajax Control Toolkit Calendar Control CSS I am using the AJAX Control Toolkit Popup Calendar Control in a datagrid. When it is in the footer it looks fine. When it is in the edit side of the datagrid it is inheriting the style from the datagrid and looks completely different (i.e. too big). Is there a way to alter ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }