text
stringlengths
8
267k
meta
dict
Q: Infragistics UltraWebGrid - Footer Totals I am currently using the UltraWebGrid control of Infragistics and I am displaying the sum of values of a column in the footer. The problem is that, since I am using paging, the total displayed in the footer is being calculated by the values of the current page only, but I...
{ "language": "en", "url": "https://stackoverflow.com/questions/356423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how do i get a count of columns that contain data from excel I'm wondering if there is a simple property in the Excel interop that returns the count of used columns--ones containing data--from a given worksheet. In example: If myWorksheet.Columns.Count returns the total number of columns in a given worksheet, is the...
{ "language": "en", "url": "https://stackoverflow.com/questions/356432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Visual Studio 2008 designers screw up on large VB projects We have 3 developers all using the same version (VS 2008 SP1) and we all use large VB projects (windows forms). From time to time, the IDE will have all sorts of issues such as locking up, crashing, and even not being able to drag a form object around or it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/356434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I access init parameters from a JSP2 tag file? I'm trying to create a jsp tag file but it fails to compile when I try to use pageContext.getServletConfig().getInitParameter("myInitParam") I'm using tomcat and when I try to view a page including the file I get a jasper compile error pageContext cannot be resol...
{ "language": "en", "url": "https://stackoverflow.com/questions/356437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Minimal Python build for my application's scripting needs? what are your advices on building a very minimalistic version of Python(2.x) for my application's scripting needs. My main motive here is to keep the foot print (both memory and disk wise) as low as possible so that my native application won't suffer from a...
{ "language": "en", "url": "https://stackoverflow.com/questions/356452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Web Server Log Analysis Tool Any suggestions for an accurate Web Log analysis tool to generate reports on the IIS logs? We used WebTrends, but I don't feel it was accurate. A: To analyze weblogs, I don't think you can go wrong with Analog: http://www.analog.cx/ If you are analyzing your own logs, which are often hu...
{ "language": "en", "url": "https://stackoverflow.com/questions/356459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: LINQ to SQL object versioning I'm trying to create a LINQ to SQL class that represents the "latest" version of itself. Right now, the table that this entity represents has a single auto-incrementing ID, and I was thinking that I would add a version number to the primary key. I've never done anything like this, so I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/356460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Localization of DisplayNameAttribute I am looking for a way to localize properties names displayed in a PropertyGrid. The property's name may be "overriden" using the DisplayNameAttribute attribute. Unfortunately attributes can not have non constant expressions. So I can not use strongly typed resources such as: cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/356464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "131" }
Q: Preferred library and/or method of converting CMYK to RGB Each month I get new CMYK and RGB images that shall be used on the web. I had a script using a patched up ImageMagick doing this, but it got deleted. So I need to do it again, but it was hard last time. How do you easily and quickly convert CMYK image files t...
{ "language": "en", "url": "https://stackoverflow.com/questions/356465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# Extracting a name from a string I want to extract 'James\, Brown' from the string below but I don't always know what the name will be. The comma is causing me some difficuly so what would you suggest to extract James\, Brown? OU=James\, Brown,OU=Test,DC=Internal,DC=Net Thanks A: A regex is likely your best appro...
{ "language": "en", "url": "https://stackoverflow.com/questions/356480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Eclipse syntax colors for HTML files I'm using eclipse for a few months, I realy like gvim better but eclipse makes my life easier with pydev and phpeclipse. Everything is pretty nice, I have a black fluxbox and black GTK themes, I've changed the syntax colors for py and php and now everything is dark background, li...
{ "language": "en", "url": "https://stackoverflow.com/questions/356482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Python regex findall numbers and dots I'm using re.findall() to extract some version numbers from an HTML file: >>> import re >>> text = "<table><td><a href=\"url\">Test0.2.1.zip</a></td><td>Test0.2.1</td></table> Test0.2.1" >>> re.findall("Test([\.0-9]*)", text) ['0.2.1.', '0.2.1', '0.2.1'] but I would like to onl...
{ "language": "en", "url": "https://stackoverflow.com/questions/356483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do I turn off custom error handling in IIS for my web site? How do you even look at the web.config file? I don't know where to go to turn custom errors off...help! I tried command prompt and java script....can any one help me? A: Run the Internet Information Services (IIS) Manager tool from the Administrative ...
{ "language": "en", "url": "https://stackoverflow.com/questions/356484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to achieve hand drawn look in Visio diagrams? I want to make a prototype of a website. Is there any visio stencil which gives a hand drawn look to the prototype? I found one such template with few shapes, but these are not enough to easily create a prototype: http://www.visguy.com/2008/08/20/indexed-shapes-for-t...
{ "language": "en", "url": "https://stackoverflow.com/questions/356487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to do mail merge on top of a PDF? I often get a PDF from our designer (built in Adobe InDesign) which is supposed to be sent out to thousands of people. I've got the list with all the people, and it's easy doing a mail merge in OpenOffice.org. However, OpenOffice.org doesn't support the advanced PDF. I just want...
{ "language": "en", "url": "https://stackoverflow.com/questions/356502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: TService won’t process messages I have created a windows service that uses Windows Messaging System. When I test the app from the debugger the Messages go through nicely but when I install it my messag … asked 14 mins ago vladimir 1tuga A: Services don't generally receive window messages. They don't necessarily ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/356506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a way to open a link in a frame and suppress all popups on the external site? I'm wondering if it's possible to open a link to another site, in a frame (or by some other means), and suppress the 1-2 popups that load on the external site. A: I don't think there is an easy way to accomplish this. Your best ...
{ "language": "en", "url": "https://stackoverflow.com/questions/356512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Application Recovery Have you used the Application Recovery APIs with vista? http://msdn.microsoft.com/en-us/library/aa373347(VS.85).aspx Do you find them to be reliable and easy to work with? I am reading through some of the docs and it seems rolling my own might be a better way to go because I can make my soluti...
{ "language": "en", "url": "https://stackoverflow.com/questions/356515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ASP.NET 3.5 Gridview control If you click on the 'search' button in the following link link text A gridview shows up. I am trying to do something similar within a table whose width is set to auto. My current way is to create the gridview in design view, but however, my gridview does not resize to the table width. I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/356526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I automatically increment the file build version when using Visual Studio? I was just wondering how I could automatically increment the build (and version?) of my files using Visual Studio (2005). If I look up the properties of say C:\Windows\notepad.exe, the Version tab gives "File version: 5.1.2600.2180". I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/356543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "390" }
Q: How to properly sort alphanumeric in SQL Server 2000 MS SQL Server 2000 I have a column in Table A called Name. I wish to sort the Name field. Many but not all of the records for Name start will KL and are followed by a number (KL 1234, KL 2, KL 323, etc). Table A Name Able Bravo KL 2 KL 323 KL 1234 Zebra If I use S...
{ "language": "en", "url": "https://stackoverflow.com/questions/356547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# BinaryWrite over SSL I am trying to respond back to a client with a PDF stored in a MSSQL varbinary(MAX) field. The response works on my localhost and a test server over http connection, but does not work on the production server over https connection. I am using just a simple BinaryWrite (code below). byte[]...
{ "language": "en", "url": "https://stackoverflow.com/questions/356548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: A good library for converting PDF to TIFF? I need a Java library to convert PDFs to TIFF images. The PDFs are faxes, and I will be converting to TIFF so that I can then do barcode recognition on the image. Can anyone recommend a good free open source library for conversion from PDF to TIFF? A: I can't recommend an...
{ "language": "en", "url": "https://stackoverflow.com/questions/356550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are best practices for preventing stale CSS and JavaScript I'm researching this for a project and I'm wondering what other people are doing to prevent stale CSS and JavaScript files from being served with each new release. I don't want to append a timestamp or something similar which may prevent caching on ever...
{ "language": "en", "url": "https://stackoverflow.com/questions/356551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: VB .NET (.NET 2.0) Class Library configuration I have created a class library in VB .NET. Some code in the library connects to the database. I want to create a config file that would hold the connection string. I have created a "Settings.settings" file and stored the connection string in there. When a class libr...
{ "language": "en", "url": "https://stackoverflow.com/questions/356557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Web authentication state - Session vs Cookie? What's the best way to authenticate and track user authentication state from page to page? Some say session state, some say cookies? Could I just use a session variable that has the ID of the user and upon authentication, instatiate a custom User class that has the User...
{ "language": "en", "url": "https://stackoverflow.com/questions/356562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Select object when a property equals Max with NHibernate We have a query that selects rows depending on the value of another, ie. the max. I don't think that really makes much sense, so here is the query: var deatched = DetachedCriteria.For<Enquiry>("e2") .SetProjection(Projections.Alias(Projections.Max("Propert...
{ "language": "en", "url": "https://stackoverflow.com/questions/356570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How can I output MySQL query results in CSV format? Is there an easy way to run a MySQL query from the Linux command line and output the results in CSV format? Here's what I'm doing now: mysql -u uid -ppwd -D dbname << EOQ | sed -e 's/ /,/g' | tee list.csv select id, concat("\"",name,"\"") as name from studen...
{ "language": "en", "url": "https://stackoverflow.com/questions/356578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1401" }
Q: can I reflectively instantiate a generic type in java? Is it possible to reflectively instantiate a generic type in Java? Using the technique described here I get an error because class tokens cannot be generic. Take the example below. I want to instantiate some subclass of Creator that implements Creator. The actua...
{ "language": "en", "url": "https://stackoverflow.com/questions/356583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Running tests as a different user in Visual Studio I have a program that needs to run as a separate NT user to connect to a SQL Server databases. For running a program itself, this isn't a big deal as I can just right click on it in windows explorer and select run as. Is there any way to run my tests as a differen...
{ "language": "en", "url": "https://stackoverflow.com/questions/356585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Render or convert Html to 'formatted' Text (.NET) I'm importing some data from another test/bug tracking tool into tfs, and I would like to convert it's description, which is in simple HTML, so a plain string, where the 'layout' of the HTML is preserved. For example: <body> <ol> <li>Log on with user Acme &amp;...
{ "language": "en", "url": "https://stackoverflow.com/questions/356597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Delete calendar event using iCalendar file import (Outlook 2003 problem)? Is there a way for me to delete items from calendar by using iCalendar import? I know that there is a METHOD:CANCEL, however when I tried it, it didn't do anything to the calendar event. Here is what is in my iCalendar file. When I try to impo...
{ "language": "en", "url": "https://stackoverflow.com/questions/356598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: MVC using ASP.NET webforms I've inherited an ASP.NET application built on top of webforms, and the application suffers from having all of its business logic embedded in the codebehind. As a result, this application can't be unit tested. I want to break out the functionality of every form into an MVC style, but I've ...
{ "language": "en", "url": "https://stackoverflow.com/questions/356599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I fix my directory structure in Visual Sourcesafe? I use Visual SourceSafe with Visual Studio. Every time I work on a project for a while, the directory structure on my harddisk gets messed up. The latest versions of the files are going to their own nested folder, so I end up with C:\VS2005\Projects\MyProjec...
{ "language": "en", "url": "https://stackoverflow.com/questions/356603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Interface Builder for iPhone tutorial Anyone know of some tutorial material for how to use Interface Builder for iPhone development? I can find sample projects and stuff and that's extremely helpful, but they do not reveal how things where setup in Interface Builder. A: The Pragmatic Programmers have some screencas...
{ "language": "en", "url": "https://stackoverflow.com/questions/356607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Image transcoding (JPEG to PNG) with Java In my Java application I would like to download a JPEG, transfer it to a PNG and do something with the resulting bytes. I am almost certain I remember a library to do this exists, I cannot remember its name. A: This is what I ended up doing, I was thinking toooo far outside...
{ "language": "en", "url": "https://stackoverflow.com/questions/356616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Why does the Update Panel deselect the current selection in a listbox when selecting another? I have a asp:ListBox wrapped inside an asp:UpdatePanel. The list box contains all the United States. If I select Alaska, for example, and then scroll down to select Wyoming, the listbox jumps back up to the top of the lis...
{ "language": "en", "url": "https://stackoverflow.com/questions/356629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How would you parse indentation (python style)? How would you define your parser and lexer rules to parse a language that uses indentation for defining scope. I have already googled and found a clever approach for parsing it by generating INDENT and DEDENT tokens in the lexer. I will go deeper on this problem and po...
{ "language": "en", "url": "https://stackoverflow.com/questions/356638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: OOP design question - keeping track of many similar things I'm designing a Data Access layer for an C#/ASP.net application and I have a question regarding the treatment of parameters in sql queries. At the moment, when a query needs a dynamically set parameter for the Where clause I have to (1) define a variable to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/356640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Exception of type 'System.OutOfMemoryException' was thrown. Why? I have a dynamic query that returns around 590,000 records. It runs successfully the first time, but if I run it again, I keep getting a System.OutOfMemoryException. What are some reasons this could be happening? The error is happening here: public...
{ "language": "en", "url": "https://stackoverflow.com/questions/356645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Random "virtualPath" error - Asp.Net application The full error is - "Value cannot be null. Parameter name: virtualPath". This is occurring in our QA and Training environments (Win 2003 Server & IIS6) but of course defies recreation in a debugger. To make matters worse, despite a reasonable global error handler, no ...
{ "language": "en", "url": "https://stackoverflow.com/questions/356651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Execution Plan for a Currently Running SQL Statement in SQL Server 2000 Is there any way for a DBA to peek in on the execution plan of a long-running query in SQL Server 2000? I know how to get the SQL being run using fn_get_sql(). And yes, theoretically if open a new connection and set the environment flags the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/356657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I resolve the WPF Designer error 'The type {0} does not support direct content'.'? The following XAML (below) defines a custom collection in resources and attempts to populate it with a custom object; <UserControl x:Class="ImageListView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/356663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Identifier for win64 configuration in Qmake Is there a "win64" identifier in Qmake project files? Qt Qmake advanced documentation does not mention other than unix / macx / win32. So far I've tried using: win32:message("using win32") win64:message("using win64") amd64:message("using amd64") The result is always "usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/356666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: How do I set a suggested file name using JFileChooser.showSaveDialog(...)? The JFileChooser seems to be missing a feature: a way to suggest the file name when saving a file (the thing that usually gets selected so that it would get replaced when the user starts typing). Is there a way around this? A: setSelectedFil...
{ "language": "en", "url": "https://stackoverflow.com/questions/356671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "64" }
Q: ASP.NET MVC Index vs. Index and List views I'm developing my first ASP.NET MVC application. This application tracks events, users, donors, etc. for a charitable organization. In my events controller I support standard CRUD operations with New/Edit/Show views (delete is done via a button on Show view). But I also...
{ "language": "en", "url": "https://stackoverflow.com/questions/356674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using an Alias in a WHERE clause I have a query which is meant to show me any rows in table A which have not been updated recently enough. (Each row should be updated within 2 months after "month_no".): SELECT A.identifier , A.name , TO_NUMBER(DECODE( A.month_no , 1, 200803 , 2, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/356675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "72" }
Q: Obfuscating a .NET Web application Is it possible to obfuscate a .NET web application? I tried to use the Dotofuscator tool that comes with Visual Studio 2005 and I was able to obfuscate the dlls of a precompiled web site, but when I deployed the soultion to an IIS server, I could not the pages of the application. S...
{ "language": "en", "url": "https://stackoverflow.com/questions/356680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Where can I find information on getting started creating Skins for Flex/AIR? I don't have any experience with creating Skins, but I have the tools to do it (Fireworks, etc.). I'm used to doing as much as I can with styles, but, I want to break out of the mold and start using Skins more, especially so that the look a...
{ "language": "en", "url": "https://stackoverflow.com/questions/356692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: .Net Windows Update Querying I was curious if there's a .Net API that would allow me to identify what updates are pending for "Windows Update," failing that, is there a windows powershell command that can get it? A: Here is a VBScript that you can use to install updates with http://msdn.microsoft.com/en-us/library/...
{ "language": "en", "url": "https://stackoverflow.com/questions/356693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to send a header using a HTTP request through a cURL call? I wish to send a header to my Apache server on a Linux box. How can I achieve this via a cURL call? A: GET: with JSON: curl -i -H "Accept: application/json" -H "Content-Type: application/json" http://hostname/resource with XML: curl -H "Accept: applic...
{ "language": "en", "url": "https://stackoverflow.com/questions/356705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1908" }
Q: How to handle constructors or methods with a different set (or type) of arguments in Python? Is there a way in Python, to have more than one constructor or more than one method with the same name, who differ in the number of arguments they accept or the type(s) of one or more argument(s)? If not, what would be the b...
{ "language": "en", "url": "https://stackoverflow.com/questions/356718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Killing a defunct process on UNIX system I have a defunct process on my system: abc 22093 19508 0 23:29 pts/4 00:00:00 grep ProcA abc 31756 1 0 Dec08 ? 00:00:00 [ProcA_my_collect] <defunct> How can I kill the above process, without a reboot of the machine? I have tried with kill -9 31756 s...
{ "language": "en", "url": "https://stackoverflow.com/questions/356722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: Is there some way to get more than Meta and Ctrl on Windows? Long time Emacs user wants Hyper/Super I've used Emacs for years on Linux, and I have lots of personally useful keybindings I've put under Hyper and Super. Nowadays I'm using Emacs on Windows and am missing those extra keybindings. Is there some way in Win...
{ "language": "en", "url": "https://stackoverflow.com/questions/356724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Is 'bool' a basic datatype in C++? I got this doubt while writing some code. Is 'bool' a basic datatype defined in the C++ standard or is it some sort of extension provided by the compiler ? I got this doubt because Win32 has 'BOOL' which is nothing but a typedef of long. Also what happens if I do something like thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/356726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "59" }
Q: Has anyone fixed the jQuery dialog button format in IE6 while using a Themeroller'ed theme? I used Themeroller to generate an app theme and I am using jQuery and jQuery UI to create some modal dialog alerts. They work fine (and look great) on Firefox 2 and 3, but the buttons are shifted to the right on IE 6 and 7. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/356751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: A mnemonic for the order of CSS margin and padding shorthand properties I can never remember the order of the shorthand property for setting the margin or padding in one declaration. That is: margin-top: 2px; margin-bottom: 4px; margin-left: 3px; margin-right: 8px; may be written as margin: 2px 8px 4px 3px; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/356759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "91" }
Q: How can I reformat messages in an mbox file with bash or Perl? I have a huge mbox file, with maybe 500 emails in it. It looks like the following: From x@blah.com Fri Aug 12 09:34:09 2005 Message-ID: <42FBEE81.9090701@blah.com> Date: Fri, 12 Aug 2005 09:34:09 +0900 From: me <x@blah.com> User-Agent: Mozilla Thunderbi...
{ "language": "en", "url": "https://stackoverflow.com/questions/356763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Creating HTMLControls versus outputting a string of HTML I was recently trying to explain to a programmer why, in ASP.Net, they should create HTMLControls instead of creating HTML strings to create Web pages. I know it is a better way of doing things, but I really couldn't give concrete reasons, other than, "This wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/356775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP - Query single value per iteration or fetch all at start and retrieve from array? I have a function that looks something like this: //iteration over scales foreach ($surveyScales as $scale) { $surveyItems = $scale->findDependentRowset('SurveyItems'); //nested iteration over items in scale foreach ($...
{ "language": "en", "url": "https://stackoverflow.com/questions/356778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: (How) can I open the result of a form submission in a new window? I have a small form inside a table. POSTing that form creates a new entity. I then want users to see that new entity, but it should open in a new window so that the original view isn't lost. (How) can I open the result of the form submission in a ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/356779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there any implementation of IDictionary with better performance of the BCL one? I'm looking for an implementation of IDictionary with better performance of the standard BCL one. I'm looking for something with constant lookup time that performs really well with large number of elements (>10K) and is more GC friend...
{ "language": "en", "url": "https://stackoverflow.com/questions/356785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is enemy / bot A.I. part of the model or controller in an MVC game It could be part of the model because it's part of the business logic of the game. It could be part of the controller because it could be seen as simulating player input, which would be considered part of the controller, right? Or would it? What abou...
{ "language": "en", "url": "https://stackoverflow.com/questions/356791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Reformatting JavaScript/JScript code? I've got a JScript error on my page. I know where the error's happening, but I'm attempting to decipher the JScript on that page (to figure out where it came from -- it's on an ASPX page, so any number of user controls could have injected it). It'd be easier if it was indented p...
{ "language": "en", "url": "https://stackoverflow.com/questions/356794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dynamically refreshing rows in an HTML table using an UpdatePanel I have been using the ASP.NET AJAX UpdatePanel control a lot lately for some intranet apps I've been working on, and for the most part, I have been using it to dynamically refresh data or hide and show controls on a form based on the user's actions. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/356796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Java double comparison epsilon I wrote a class that tests for equality, less than, and greater than with two doubles in Java. My general case is comparing price that can have an accuracy of a half cent. 59.005 compared to 59.395. Is the epsilon I chose adequate for those cases? private final static double EPSILON...
{ "language": "en", "url": "https://stackoverflow.com/questions/356807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: Best way to center a on a page vertically and horizontally? Best way to center a <div> element on a page both vertically and horizontally? I know that margin-left: auto; margin-right: auto; will center on the horizontal, but what is the best way to do it vertically, too? A: I would use translate: First position th...
{ "language": "en", "url": "https://stackoverflow.com/questions/356809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "610" }
Q: SQL Server 2000 FTP I'm trying to use SQL Server 2000 DTS Package to download a file from a FTP server. However, the FTP module in DTS only shows the files in my ftp login "Home" directory. I need to change the remote directory once I've connected. How do I do this? I can quite happily browse to the directory in...
{ "language": "en", "url": "https://stackoverflow.com/questions/356818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# - Getting references of reference I have built a class library project, that references a couple dll's. In the constructor of my class library project I use some enums from one of the referenced dll's. When using my class library in another project is it possible to not have to add references to my dll and the...
{ "language": "en", "url": "https://stackoverflow.com/questions/356819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Generating a unique reference number strategies Hrm... here's where my CS knowledge lets me down. I want to write an algorithm that generates a reference number that is unique. I don't want to use sequential numbers as they introduce a security risk and I want to use alphanumerics. The ref will have a min and max...
{ "language": "en", "url": "https://stackoverflow.com/questions/356828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Pexpect, running ssh-copy-id is hanging when trying to spawn a second process I'm doing a Python script where I need to spawn several ssh-copy-id processes, and they need for me to type in a password, so i'm using PExpect. I have basically this: child = pexpect.spawn('command') child.expect('password:') child.sendli...
{ "language": "en", "url": "https://stackoverflow.com/questions/356830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Simulate local file specifications in RPGLE subprocedure I'm very excited about the new "local F specs" coming in V6R1 - see: http://www.mcpressonline.com/programming/rpg/v6r1-rpg-enhancements.html Does anyone know a way to simulate this in V5R4 in a SRVPGM procedure? A: As far as I know, you can only define them g...
{ "language": "en", "url": "https://stackoverflow.com/questions/356831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Working with DIV's & CSS OK, if anyone could help me with this I'd be much appreciative. If you copy and paste the following and open up in IE or Firefox <div style="border: solid 1px navy; float: left;"> <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> <li>Item 4</li> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/356835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Reporting Services as PDF through WebRequest in C# 3.5 "Not Supported File Type" I've inherited a legacy application that is supposed to grab an on the fly pdf from a reporting services server. Everything works fine up until the point where you try to open the pdf being returned and adobe acrobat tells you: Adobe R...
{ "language": "en", "url": "https://stackoverflow.com/questions/356839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to use multiple view engines in ASP.NET MVC application I'd like to use two view engines in my asp.net mvc web application. The first one is the Brail view engine from MVCContrib project, and another one is my custom view engine for generating javascript code. However, I can't configure the application to use bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/356843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Will using 'var' affect performance? Earlier I asked a question about why I see so many examples use the varkeyword and got the answer that while it is only necessary for anonymous types, that it is used nonetheless to make writing code 'quicker'/easier and 'just because'. Following this link ("C# 3.0 - Var Isn't Ob...
{ "language": "en", "url": "https://stackoverflow.com/questions/356846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "243" }
Q: In C#, how do I invoke a DLL function that returns an unmanaged structure containing a string pointer? I have been given a DLL ("InfoLookup.dll") that internally allocates structures and returns pointers to them from a lookup function. The structures contain string pointers: extern "C" { struct Info { i...
{ "language": "en", "url": "https://stackoverflow.com/questions/356851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I display one UIView in landscape? I've looked at every question so far and none seem to actually answer this question. I created a UITabBarController and added several view controllers to it. Most of the views are viewed in portrait, but one should be viewed in landscape. I don't want to use the accelerom...
{ "language": "en", "url": "https://stackoverflow.com/questions/356882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Is there any way to change the taskbar icon of a browser in windows? Is there any way to change the taskbar icon of a browser in windows? I open alot of browser windows, and I like to group similar websites (in tabs) by window. So I was wondering if there was a way to assign a taskbar icon to them so that you can m...
{ "language": "en", "url": "https://stackoverflow.com/questions/356883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Specifying cfhttp referring IP address on shared server I'm using CFHTTP to post data to my payment gateway (Protx). Protx requires that I whitelist the IP that will send this request. I am hosted on a shared server running Windows 2008. This morning, my hosting company assigned a new IP to this server for a custome...
{ "language": "en", "url": "https://stackoverflow.com/questions/356886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Load Testing Software I am working on a proposal for my company into purchasing some load testing software. I have to give 2 choices. One of my choices I am proposing is HP(Mecurary) Loadrunner. Is there another program out there that is comparible with Loadrunner? We are looking at using the software to test the pe...
{ "language": "en", "url": "https://stackoverflow.com/questions/356888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: In Reporting Services, the Table Details is not displaying in the preview I put a table into my report with labels in the first column and mappings in the second column, but when I click on the preview (in the IDE) the table does not show up. The "Initial Visibility" is set to "Visible". I'm using VS 2005 Team Exp...
{ "language": "en", "url": "https://stackoverflow.com/questions/356895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I do this in Web2Py? As a way of evaluating Web2Py I tried to reimplement a web page in Web2Py. It seemed quite simple to start with but I'm not sure if it works the way I think. I have a simple page with an input field and button to add an email address. It has a menu bar which links to other pages And it has a...
{ "language": "en", "url": "https://stackoverflow.com/questions/356907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Should small companies code their sites to support Chrome? I work on small sites for tanning salons and stuff. We don't support ActiveX-specific stuff on IE, and we support Firefox. I've noticed some weird behavior with Chrome. My browser stats say <1% of my visitors use Chrome. I've heard people say it's nowhere n...
{ "language": "en", "url": "https://stackoverflow.com/questions/356908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Binary search optimization in c? I am writing a key record look up where the I have an index between the key and the rec number. This is sorted on the key. Is there away to do this better that what I have for speed optimization? typedef struct { char key[MAX_KEYLEN]; int rec; } KeyRecPair; typedef struct...
{ "language": "en", "url": "https://stackoverflow.com/questions/356928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I check for constraints before a delete in SQL Server? I have following situation. A main table and many other tables linked together with foreign keys. Now when I would like to delete a row in the main table a ConstraintsViolation will occur, which is intended and good. Now I want to be able to check if the Con...
{ "language": "en", "url": "https://stackoverflow.com/questions/356929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: In game development, is the controller in MVC purely for dealing with user input? I've read conflicting things on this. From Wikipedia: Controller Processes and responds to events, typically user actions, and may invoke changes on the model. It's the word TYPICALLY that is confusing. If not just user input...
{ "language": "en", "url": "https://stackoverflow.com/questions/356935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Should I use Objective-C garbage collection when writing for 10.5+? When writing fairly typical Mac code in an OS X 10.5+ environment, what are the disadvantages to using garbage collection? So far everything else I've written has been either 10.4 compatible or on the iPhone, so I've become fairly comfortable with r...
{ "language": "en", "url": "https://stackoverflow.com/questions/356938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Where to put default values and unique constraints, code or SQL server? We are designing a new database and I would like some input in where to put stuff like default values. There are 3 scenarios: 1: New values, created_date field. Should the column have a default value when you do an insert? 2: Updated values, u...
{ "language": "en", "url": "https://stackoverflow.com/questions/356939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: unidentified syntax in domain object constructor Can someone help me identify what the purpose of this unidentified syntax is. It is an extra little something in the constructor for this object. What I'm trying to figure out is what is the "< IdT >" at the end of the class declaration line? I think that this is some...
{ "language": "en", "url": "https://stackoverflow.com/questions/356947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Referencing Google's V8 engine from a .NET app I'm building a .NET 3.5 application and have the need to evaluate JS code on the server - basically a user provided rule set that can work within a browser or on the server. Managed JS is not an option, because the JS code would be provided at runtime. Aptana's Jaxer is...
{ "language": "en", "url": "https://stackoverflow.com/questions/356948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: What are C++ functors and their uses? I keep hearing a lot about functors in C++. Can someone give me an overview as to what they are and in what cases they would be useful? A: Here's an actual situation where I was forced to use a Functor to solve my problem: I have a set of functions (say, 20 of them), and they a...
{ "language": "en", "url": "https://stackoverflow.com/questions/356950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1048" }
Q: Java window buffering keystrokes until the user clicks with the mouse Here's the basic idea: There is a java window (main) that opens another java window (child). When the child is created, part of the initialization sets the focus in the appropriate text field in the child window: childTextField.requestFocusInWind...
{ "language": "en", "url": "https://stackoverflow.com/questions/356957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Good algorithm for drawing solid 2-dimensional polygons? What is the simplest (and easiest, although that's subjective) algorithm for drawing solid (as in a single, solid color--no texture mapping) 2D polygons in memory? What is the most efficient method? I am not interested in using the GPU or any rendering method...
{ "language": "en", "url": "https://stackoverflow.com/questions/356968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: VB.net: Date without time How do you format the date time to just date? For example, this is what I retrieved from the database: 12/31/2008 12:00:00 AM, but I just want to show the date and no time. A: Format datetime to short date string and convert back to date CDate(YourDate.ToString("d")) Or use short date st...
{ "language": "en", "url": "https://stackoverflow.com/questions/356972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Unresolved Token in Managed C++ I have a mystery on my hands. I am trying to learn managed C++ coming from a C# background and have run into a snag. If I have a project which includes two classes, a base class Soup and a derived class TomatoSoup which I compile as a static library (.lib), I get unresolved tokens on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/356974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using a user defined parameter in file name I have an Access Database that outputs a report in Excel format. The report is dependent on a date parameter chosen by the user. This parameter is selected via a textbox (text100) that has a pop up calendar. I would like to use the date in the text box (text100) in the fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/356980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to redirect to a dynamic login URL in ASP.NET MVC I'm creating a multi-tenancy web site which hosts pages for clients. The first segment of the URL will be a string which identifies the client, defined in Global.asax using the following URL routing scheme: "{client}/{controller}/{action}/{id}" This works fine, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/356982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "96" }
Q: How to clone a jQuery Listen plugin event? I have some <tr> elements on my page with a click() event attached to an image that sits inside each one. I use this code $(this).clone(true).appendTo("table#foo"); to do the following: * *copy those <tr>s into a different table *preserve the click events on the images ...
{ "language": "en", "url": "https://stackoverflow.com/questions/356990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MVC and cocoa bindings best practices question Lets say I have a view, myView, a view controller, myViewController, and some sort of model object, myModel. Further, lets say the model has two KVO compliant properties, arrayOfPeopleNames and arrayOfAnimalKinds (both NSStrings). In my view I want to have two pop-ups b...
{ "language": "en", "url": "https://stackoverflow.com/questions/356997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }