text
string
meta
dict
Q: Excel charts - setting series end dynamically I've got a spreadsheet with plenty of graphs in it and one sheet with loads of data feeding those graphs. I've plotted the data on each graph using =Sheet1!$C5:$C$3000 This basically just plots the values in C5 to C3000 on a graph. Regularly though I just want to look ...
{ "language": "en", "url": "https://stackoverflow.com/questions/198045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Wanted: acts_as_nested_set, AJAX drag and drop tutorial Can anyone suggest a tutorial or sample code that implements a nested set (or similar ordered tree structure) with associated Javascript that facilitates drag and drop? I'm looking for both the display code (view) as well as the AJAX backend controller which wr...
{ "language": "en", "url": "https://stackoverflow.com/questions/198047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Prevent js alert() from pausing timers So I made some timers for a quiz. The thing is, I just realized when I put javascript: alert("blah"); in the address, the popup alert box pauses my timer. Which is very unwanted in a quiz. I don't think there is any way to stop this behaviour... but I'll ask anyway. If there ...
{ "language": "en", "url": "https://stackoverflow.com/questions/198049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why "delete [][]... multiDimensionalArray;" operator in C++ does not exist I was always wondering if there is operator for deleting multi dimensional arrays in the standard C++ language. If we have created a pointer to a single dimensional array int *array = new int[size]; the delete looks like: delete [] array; T...
{ "language": "en", "url": "https://stackoverflow.com/questions/198051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Is necessary to show an empty ? I'd like to show a div that has a background-color with the height and width set to 100% but no content. Is it possible to do that without putting a   inside? Edit: Thanks to Mark Biek for pointing out that empty div with width and height styles shows how I'd expect. My div is in...
{ "language": "en", "url": "https://stackoverflow.com/questions/198058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Code for checking write-permissions for directories in Win2K/XP Greetings! I am trying to check directory write-permissions from within a Windows MFC/ATL program using C++. My first guess is to use the C-standard _access function, e.g.: if (_access("C:\mydir", 2) == -1) // Directory is not writable. But apparent...
{ "language": "en", "url": "https://stackoverflow.com/questions/198071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Where can I learn about the various types of .NET lists? Does anyone know a good resource to concisely explain the different types of lists available in C# and when their usage is appropriate? For example, List, Hashtable, Dictionaries etc. I'm never quite sure when I should be using what. A: To expound on tobsen's...
{ "language": "en", "url": "https://stackoverflow.com/questions/198079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: How to find out size of session in ASP.NET from web application? How to find out size of session in ASP.NET from web application? A: If you're trying to get the size of Session during runtime rather than in debug tracing, you might want to try something like this: long totalSessionBytes = 0; BinaryFormatter b = new...
{ "language": "en", "url": "https://stackoverflow.com/questions/198082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How do I list installed MSI from the command line? We recently switched our Windows software packages from RPM (cygwin) to MSI (wix). Having a native packaging is a much welcome change and we intend to stick with it. However, MSI feels overly complicated for what it does and doesn't seem to provide some basic abili...
{ "language": "en", "url": "https://stackoverflow.com/questions/198087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Creating test run configurations in VS 2008 I am working with an n-tiered architecture in Visual Studio 2008 (Developer Edition), and I have run into an issue. We are running unit tests on every method of our services layer, and I am attempting to see the code coverage results, to ensure I'm hitting all the main pat...
{ "language": "en", "url": "https://stackoverflow.com/questions/198097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is there a difference between commit and rollback in a transaction only having selects? The in-house application framework we use at my company makes it necessary to put every SQL query into transactions, even though if I know that none of the commands will make changes in the database. At the end of the session, be...
{ "language": "en", "url": "https://stackoverflow.com/questions/198108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: MSDN links in Visual Studio I'm looking for a plugin or way to simply go from any namespace, type, method, property, etc in my .Net code to the MSDN page that covers it via a context menu item or hyperlink-like mechanism. Does anyone know of anything that will do that? The "Go to Definition" option when you right...
{ "language": "en", "url": "https://stackoverflow.com/questions/198111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I install an MSI synchronously? To do an unattended installation of any MSI package, one can simply use the following command: msiexec /qn /i package.msi However, this triggers an asynchronous installation: if you happen to chain 2 dependent installations, you will have to wait somehow for the 1st installati...
{ "language": "en", "url": "https://stackoverflow.com/questions/198114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Actionscript - combining AS2 assets into a single SWF I have a flash project that I'm trying to export as a single SWF. There's a main SWF file that loads about 6 other SWFs, and both the main and the child SWFs reference other external assets (images, sounds, etc). I'd like to package everything as a single .swf ...
{ "language": "en", "url": "https://stackoverflow.com/questions/198119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I replace the current Java process, like a unix-style exec? I have a server written in Java that runs as a Windows service (thanks to Install4J). I want this service to be able to download the latest version of the JAR file it runs from, and start running the new code. The stitch is that I don't want the W...
{ "language": "en", "url": "https://stackoverflow.com/questions/198122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I get the path of a Windows "special folder" for a specific user? Inside a service, what is the best way to determine a special folder path (e.g., "My Documents") for a specific user? SHGetFolderPath allows you to pass in a token, so I am assuming there is some way to impersonate the user whose folder you ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/198124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Is there a textarea/rich text editor that allows the user to follow links that render in them while entering? I am looking for something like like FCKEditor that allows users to follow links by left clicking them. For example, the markdown editor in StackOverflow does not allow you to click the links you add as you ...
{ "language": "en", "url": "https://stackoverflow.com/questions/198129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's faster in VB? Removing an element from an array or inserting one? Which is faster? someCondition has the same probability of being true as it has of being false. Insertion: arrayList = Array("apple", "pear","grape") if someCondition then ' insert "banana" element end if Deletion: arrayList = Array("appl...
{ "language": "en", "url": "https://stackoverflow.com/questions/198135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Copy a table (including indexes) in postgres I have a postgres table. I need to delete some data from it. I was going to create a temporary table, copy the data in, recreate the indexes and the delete the rows I need. I can't delete data from the original table, because this original table is the source of data. In ...
{ "language": "en", "url": "https://stackoverflow.com/questions/198141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "98" }
Q: How do I assign weights to different columns in a full text search? In my full text search query, I want to assign particular columns a higher weightage. Consider this query: SELECT Key_Table.RANK, FT_Table.* FROM Restaurants AS FT_Table INNER JOIN FREETEXTTABLE(Restaurants, *, 'chilly chicken') AS Key_Table ON FT_T...
{ "language": "en", "url": "https://stackoverflow.com/questions/198152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Why does the CSS min-width attribute not force a div to have the specified minimum width? <html> <head> <style type="text/css"> div { border:1px solid #000; min-width: 50%; } </style> </head> <body> <div>This is some text. </...
{ "language": "en", "url": "https://stackoverflow.com/questions/198153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: xcopy /exclude issue I am trying to run xcopy that copies files excluding .obj, etc. What I am seeing is that Microsoft.Practices.ObjectBuilder.dll is not copied when my excludes.txt file contains .obj as an extension. When .obj is removed, I Microsoft.Practices.ObjectBuilder.dll is copied correctly. This does not h...
{ "language": "en", "url": "https://stackoverflow.com/questions/198155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can I tell the Table Name of an ActiveRecord class in c#? I'm trying to verify if a schema matches the objects I'm initializing. Is there a way to get the TableName of a class other than simply reflecting the class name? I am using some class with explicit TableNames Edit: using Joe's solution I added the case where...
{ "language": "en", "url": "https://stackoverflow.com/questions/198157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How Do You Use jQuery to Simplify Your MVC Views? I have found jQuery to be a great tool to simplify my MVC Views. For example, instead of including complicated logic to add alternating styles to my tables I just do this... $(document).ready(function() { $("table.details tr:odd").addClass("detailsAlternatingRow")...
{ "language": "en", "url": "https://stackoverflow.com/questions/198174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to specify the order of class members when formatting in Eclipse In Eclipse IDE how do you customize the Java code style formatter to have it sort the class members with a specified order, for example to group all instance methods by visibility? A: I'm not sure when they added this functionality, but it seems t...
{ "language": "en", "url": "https://stackoverflow.com/questions/198177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Hosting Windows Workflow Designer Does anyone have any experience hosting the Windows Workflow designer surface? I've seen a couple of rather difficult to follow examples on MSDN, but not much else - certainly nothing that offers an explanation into the process of hosting WF that is clear or easy to read... Are ther...
{ "language": "en", "url": "https://stackoverflow.com/questions/198191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JSF / CSS attribute conflicts It's our first JSF app, and I'm in the middle of integrating our graphic designer's CSS into our facelets files. He tells me that he needs the name and id attributes of the input tags to be the same as the for attribute of the label tag. His request: <label for="username">User Name:</la...
{ "language": "en", "url": "https://stackoverflow.com/questions/198193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: When to use SQL Table Alias I'm curious to know how people are using table aliases. The other developers where I work always use table aliases, and always use the alias of a, b, c, etc. Here's an example: SELECT a.TripNum, b.SegmentNum, b.StopNum, b.ArrivalTime FROM Trip a, Segment b WHERE a.TripNum = b.TripNum I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/198196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: How do you reverse a string in place in C or C++? How do you reverse a string in C or C++ without requiring a separate buffer to hold the reversed string? A: Another C++ way (though I would probably use std::reverse() myself :) as being more expressive and faster) str = std::string(str.rbegin(), str.rend()); The C...
{ "language": "en", "url": "https://stackoverflow.com/questions/198199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "190" }
Q: istream operator int main() { HandPhone A,B; A>>B;//overloading operator>> to simulate sending sms to another handphone(object) return 0; } How should I declare the istream operator to simulate sending sms to another handphone(object)? A: This is how to define the >> operator: void operator >> (HandPho...
{ "language": "en", "url": "https://stackoverflow.com/questions/198215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Install .NET Framework 2.0 on Embedded XP (Win XPE) I'm trying to install the .Net framework version 2.0 on embedded Windows XP SP2 (aka XPE). I'm using the XPE specific version of the installer from Microsoft: http://www.microsoft.com/downloads/details.aspx?familyid=c4837dad-5719-4b63-8752-cb0a65802329&displaylang=...
{ "language": "en", "url": "https://stackoverflow.com/questions/198223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SSI and XSL: xml displayed as a blob I am building a menu and have it set up so that I use a standard <!--#include virtual = "myDoc.xml" --> SSI tag to include my xml document. The xml document includes the xsl document with <?xml-stylesheet type="text/xsl" href="myOtherDoc.xsl"?>. For some reason the xsl documen...
{ "language": "en", "url": "https://stackoverflow.com/questions/198224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make a window have taskbar text but no title bar How can I make my window not have a title bar but appear in the task bar with some descriptive text? If you set the Form's .Text property then .net gives it a title bar, which I don't want. this.ControlBox = false; this.FormBorderStyle = System....
{ "language": "en", "url": "https://stackoverflow.com/questions/198233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to Parsing "Event XML" in Java? I'm looking to use Java to parse an ongoing stream of event drive XML generated by a remote device. Here's a simplified sample of two events: <?xml version="1.0"?> <Event> DeviceEventMsg <Param1>SomeParmValue</Param1> </Event> <?xml version="1.0"?> <Event> DeviceEventMsg <Param1>...
{ "language": "en", "url": "https://stackoverflow.com/questions/198240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: checkstyle + suppression filters I have a checkstyle suppression filter setup (e.g. ignore magic numbers in unit test code). The suppression xml file resides in the same folder as the checkstyle xml file. However, where this file actually is varies: on my windows dev box it is in d:\dev\shared\checkstyle\config on t...
{ "language": "en", "url": "https://stackoverflow.com/questions/198244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Writing VBA in Excel 2007 for use in Excel 2003 Where I'm at the developers have been updated to Excel 2007, but most of the users haven't. I'm building a spreadsheet template (*.xlt) for a user that's gonna need some vba code included, and I'm wondering what issues I'm likely to run into building this in 2007 inst...
{ "language": "en", "url": "https://stackoverflow.com/questions/198247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What's the bare minimum Cygwin install to have DDD running properly on XP? I’m using the gcc in MinGW that comes with Strawberry Perl, on Windows XP. I’d like to have ddd (the Data Display Debugger) as well but apparently on Windows the simplest way to get ddd is by running Cygwin. So what's the bare minimum of Cygw...
{ "language": "en", "url": "https://stackoverflow.com/questions/198248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.NET - ObjectDataSource: using multi-select ListBox as ControlParameter I have a form that contains a GridView control which is databound to an ObjectDataSource Control. There are several TextBox controls that are already being used as ControlParameters for the ObjectDataSource. I also have a custom data object t...
{ "language": "en", "url": "https://stackoverflow.com/questions/198252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Watin and PDF's Can anyone provide and example of downloading a PDF file using Watin? I tried the SaveAsDialogHandler but I couldn't figure it out. Perhaps a MemoryStream could be used? Thanks, --jb A: FileDownloadHandler fileDownloadHandler = new FileDownloadHandler(file.FullName); using (new UseDialogOnce(ie.Di...
{ "language": "en", "url": "https://stackoverflow.com/questions/198266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is there a good in-browser code editor? We've all seen in-browser rich text editors, which allow you to edit colored/styled text in a WYSIWYG manner. But what about code editors, which automatically highlight code based on language rules as you type? Think Eclipse in a textarea (but without the refactoring support)....
{ "language": "en", "url": "https://stackoverflow.com/questions/198271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: Read data from damaged media Is it possible to read damaged media (cd, hdd, dvd,...) even if windows explorer bombs out? What I mean to ask is, whether there is a set of APIs or something that can access the disk at a very low level (below explorer?) and read whatever can be retrieved even if it is only partial, esp...
{ "language": "en", "url": "https://stackoverflow.com/questions/198272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: FCKeditor Plugin Issues I am a complete beginner trying to develop for FCKeditor so please bear with me here. I have been tasked with developing a custom plugin that will allow users to browse a specific set of images that the user uploads. Essentially the user first attaches images, then uses the FCKeditor to inser...
{ "language": "en", "url": "https://stackoverflow.com/questions/198279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SharpLibZip: Add file without path I'm using the following code, using the SharpZipLib library, to add files to a .zip file, but each file is being stored with its full path. I need to only store the file, in the 'root' of the .zip file. string[] files = Directory.GetFiles(folderPath); using (ZipFile zipFile = ZipF...
{ "language": "en", "url": "https://stackoverflow.com/questions/198285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: ASP.NET cookie expiration time is always 1/1/0001 12:00 AM I'm setting the cookie expiration using the following code: // remove existing cookies. request.Cookies.Clear(); response.Cookies.Clear(); // ... serialize and encrypt my data ... // now set the cookie. HttpCookie cookie = new HttpCookie(AuthCookieName, e...
{ "language": "en", "url": "https://stackoverflow.com/questions/198295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: XUL - sidebar buttons that load new pages in main browser window I'm learning how to make a firefox extension. I have created a xul and overlay file that makes a sidebar in my browser. I'm trying to put buttons in my sidebar that load different pages within the main browser window. I'm not sure how to access the mai...
{ "language": "en", "url": "https://stackoverflow.com/questions/198312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Linq to SQL class lifespan As far as I can understand, when I new up a Linq to SQL class, it is the equivalent of new'ing up a SqlConnection object. Suppose I have an object with two methods: Delete() and SubmitChanges(). Would it be wise of me to new up the Linq to SQL class in each of the methods, or would a priva...
{ "language": "en", "url": "https://stackoverflow.com/questions/198320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Redirect Trace output to Console Let's say I'm working on a little batch-processing console app in VB.Net. I want to be able to structure the app like this: Sub WorkerMethod() 'Do some work Trace.WriteLine("Work progress") 'Do more work Trace.WriteLine("Another progress update") '... End Sub Sub ...
{ "language": "en", "url": "https://stackoverflow.com/questions/198322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "75" }
Q: Testing HTML/CSS/Javascript skills when hiring When hiring a front-end developer, what specific skills and practices should you test for? What is a good metric for evaluating their skill in HTML, CSS and Javascript? Obviously, table-less semantic HTML and pure CSS layout are probably the key skills. But what about s...
{ "language": "en", "url": "https://stackoverflow.com/questions/198337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Progressbar from Spring Context? I would like to create a window with a progressbar which shows the current status of Spring's object instantiation. From Spring.Net's documentation it seems that IObjectPostProcessors is the right point to start and track whenever an Object has been instanciated. However in order to...
{ "language": "en", "url": "https://stackoverflow.com/questions/198341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I get the size of the Transaction Log in SQL 2005 programmatically? We're working with a fixed transaction log size on our databases, and I'd like to put together an application to monitor the log sizes so we can see when things are getting too tight and we need to grow the fixed trn log. Is there any TSQL ...
{ "language": "en", "url": "https://stackoverflow.com/questions/198343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: What's the best way to create a single-file upload form using PHP? I've found a few samples online but I'd like to get feedback from people who use PHP daily as to potential security or performance considerations and their solutions. Note that I am only interested in uploading a single file at a time. Ideally no bro...
{ "language": "en", "url": "https://stackoverflow.com/questions/198346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Assembla: Do you like Trac tickets or Assembla tickets and why? I am a single developer just getting started with open source web dev (Python/Django). I signed up for a free Assembla.com account but I really don't know whether to use Trac ticketing or Assembla integrated ticketing. I have setup spaces for both to tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/198352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is this called in computer science? A lot of programming languages and frameworks do/allow/require something that I can't seem to find the name for, even though there probably is one in computer science. What they basically do is bind to a variable/object/class/function by name. Flex example ("selectAll()"): <...
{ "language": "en", "url": "https://stackoverflow.com/questions/198357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Why is Microsoft.SharePoint.Search.dll copied in my project? When working on a VS2005 project that involves referencing Microsoft.SharePoint.dll, building the project causes Microsoft.SharePoint.Search.dll to be copied to my bin folder. Why is this? Okay, maybe it's just a bug, but I want to know the mechanism. [Edi...
{ "language": "en", "url": "https://stackoverflow.com/questions/198359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Silverlight Hosted in Winforms I would like to host a silverlight control in winforms via a winforms browser, but for it to work I need some way for the forms to talk to the silverlight, and also the other way around. Would it be possible to somehow have the two interact with each other using JavaScript as a middle...
{ "language": "en", "url": "https://stackoverflow.com/questions/198360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do I get at the goodies in my Grails Config.groovy at runtime? in Config.groovy I see this: // set per-environment serverURL stem for creating absolute links environments { production { grails.serverURL = "http://www.changeme.com" } } what is the correct way to access that at runtime? A: In mor...
{ "language": "en", "url": "https://stackoverflow.com/questions/198365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: How do you test running time of VBA code? Is there code in VBA I can wrap a function with that will let me know the time it took to run, so that I can compare the different running times of functions? A: Unless your functions are very slow, you're going to need a very high-resolution timer. The most accurate one I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/198409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "103" }
Q: What is the best way to display and edit a large array of hex data in WinForms? I am looking to display an array from 128 to 512 bytes in size of hexadecimal data (0x00 to 0xFF) in a 16 X n grid-like display. It needs the capability of selecting a single element or group of elements and highlighting the data in som...
{ "language": "en", "url": "https://stackoverflow.com/questions/198414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I collapse empty xml tags? I'm getting XML like this: <Items> <Row attr1="val"></Row> <Row attr1="val2"></Row> </Items> This is valid XML, as you know, but another library I'm using is busted and it will only accept XML in this format: <Items> <Row attr1="val"/> <Row attr1="val2"/> </Items> I'm already re...
{ "language": "en", "url": "https://stackoverflow.com/questions/198419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Have you had success with 2D graphics via HTML canvas? I'm looking for success and failure stories of web applications rendering rich, 2D graphics via the HTML canvas element. I've seen some intriguing examples online but wanted to learn about some real-world, practical examples of development done using this approa...
{ "language": "en", "url": "https://stackoverflow.com/questions/198421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you compare two version Strings in Java? Is there a standard idiom for comparing version numbers? I can't just use a straight String compareTo because I don't know yet what the maximum number of point releases there will be. I need to compare the versions and have the following hold true: 1.0 < 1.1 1.0.1 < ...
{ "language": "en", "url": "https://stackoverflow.com/questions/198431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "204" }
Q: Efficiently detect corrupted jpeg file? Is there an efficient way of detecting if a jpeg file is corrupted? Background info:   solutions needs to work from within a php script   the jpeg files are on disk   manual checking is no option (user uploaded data) I know that imagecreatefromjpeg(string $filename); can d...
{ "language": "en", "url": "https://stackoverflow.com/questions/198438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: C# - Is there a 32-bit float math library? I'm planning on doing my next project in c# rather than c++ (using SlimDX). All of directX uses floats, however System.Math uses doubles. This means constantly converting between floats and doubles. So ideally I'd like to write all the code using floats, since I'm not getti...
{ "language": "en", "url": "https://stackoverflow.com/questions/198448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to get a random number in Ruby How do I generate a random number between 0 and n? A: Use rand(range) From Ruby Random Numbers: If you needed a random integer to simulate a roll of a six-sided die, you'd use: 1 + rand(6). A roll in craps could be simulated with 2 + rand(6) + rand(6). Finally, if you just need a...
{ "language": "en", "url": "https://stackoverflow.com/questions/198460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "821" }
Q: Are there any programs to draw and test state machines, turing machines, etc? When I go back to school after Thanksgiving, I'll be taking a course in CS Theory covering topics such as deterministic and nondeterministic finite state machines, turing machines, pushdown automata and a few other things. However, I haven...
{ "language": "en", "url": "https://stackoverflow.com/questions/198461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is either GET or POST more secure than the other? When comparing an HTTP GET to an HTTP POST, what are the differences from a security perspective? Is one of the choices inherently more secure than the other? If so, why? I realize that POST doesn't expose information on the URL, but is there any real value in that o...
{ "language": "en", "url": "https://stackoverflow.com/questions/198462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "309" }
Q: Get File Object used by a CSV Reader/Writer Object Is there any way to access the file object used by a CSV writer/reader object after it has been instantiated? I openned up the csv module, and it appears it's contest are builtin. I also tried setting the file object as a property but I get the following error: At...
{ "language": "en", "url": "https://stackoverflow.com/questions/198465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I set a source control plug in default for Visual Studio 2008? We recently installed Team Foundation Server 2008 and we are using it for both Visual Studio 2008 code and Visual FoxPro 9 code that we are still migrating to .Net. I had to install the TFS MSSCCI provider to get connectivity from the VFP9 IDE. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/198477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Advantages of SQL Server 2008 over SQL Server 2005? What are the key differences between Microsoft's SQL Server 2005 and SQL Server 2008? Are there any compelling reasons for upgrading (any edition, as I have a customer with multiple editions)? Or is there a website with either a chart or bullet point comparison o...
{ "language": "en", "url": "https://stackoverflow.com/questions/198478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: Real World ASP.NET MVC Applications with Source Code? I think all of the tutorials and stuff are great on blogs, but sometimes when you actually build an application the way you would code or interact with a system is quite different. I was wondering if you all knew some good real world type ASP.NET MVC applications...
{ "language": "en", "url": "https://stackoverflow.com/questions/198482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Drag/Drop inside an Application AND to another Application I have a ListView containing file names. These file names need to be draggable to a TreeView, which is a drag/drop inside the application and works with the built in drag/drop support of Delphi - no problem. But I must also be able to drag/drop the ListView ...
{ "language": "en", "url": "https://stackoverflow.com/questions/198488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to prevent errors while running Intersystems Caché terminal scripts? I'm developing a system that needs to execute Intersystems Cache Terminal Scripts. When I run a routine inside the regular Caché terminal or a telnet terminal, Cache executes the routine until the end with no problems. But when I try to run th...
{ "language": "en", "url": "https://stackoverflow.com/questions/198493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Difference between the System.Array.CopyTo() and System.Array.Clone() What’s the difference between the System.Array.CopyTo() and System.Array.Clone()? A: object[] myarray = new object[] { "one", 2, "three", 4, "really big number", 2324573984927361 }; //create shallow copy by CopyTo //You have to instantiate your ...
{ "language": "en", "url": "https://stackoverflow.com/questions/198496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "95" }
Q: Books & resources to teach myself Linear Algebra I'm looking for books and resource to teach myself linear algebra to be used in 3D graphics programming. I prefer practical approaches to teaching over theoretical (even though math is what, 99.99% theory?) ones, so the dream resource for me would be a book that tackl...
{ "language": "en", "url": "https://stackoverflow.com/questions/198501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to best prevent CSRF attacks in a GAE app? So, what is the best way to prevent an XSRF attack for a GAE application? Imagine the following: * *Anyone can see a user's public object, and the db.Model id is used in the request to figure out which object to show. Malicious user now has the id. *Malicious user...
{ "language": "en", "url": "https://stackoverflow.com/questions/198520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to determine if currency symbol is to the left or right of a number on MacOS How do I determine if the currency symbol is supposed to be on the left or right of a number using CFLocale / CFNumberFormatter in a Mac Carbon project? I need to interface with a spreadsheet application which requires me to pass a numb...
{ "language": "en", "url": "https://stackoverflow.com/questions/198526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Changing the background color of a DateTimePicker in .NET In .NET (at least in the 2008 version, and maybe in 2005 as well), changing the BackColor property of a DateTimePicker has absolutely no affect on the appearance. How do I change the background color of the text area, not of the drop-down calendar? Edit: I wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/198532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Dithering gouraud-shaded vertex-colored polygons to remove banding I'm using OpenGL ES on a low-resolution, embedded device. I've applied a vertical color gradient, using vertex coloring, to a large polygon serving as a backdrop to my rendered scene. I can see clear visible banding artifacts in the color gradient. M...
{ "language": "en", "url": "https://stackoverflow.com/questions/198534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: asp.net: Getting SelectedItem of a DropDownList and retaining list items I have small page which has label, DropDownList and a submit button. <div> <asp:label id="Message" runat="server"/> <br /> Which city do you wish to look at on hotels for?<br /><br /> <asp:dropdownlist id="Dropdownli...
{ "language": "en", "url": "https://stackoverflow.com/questions/198535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I raise an event via reflection in .NET/C#? I have a third-party editor that basically comprises a textbox and a button (the DevExpress ButtonEdit control). I want to make a particular keystroke (Alt + Down) emulate clicking the button. In order to avoid writing this over and over, I want to make a generic Ke...
{ "language": "en", "url": "https://stackoverflow.com/questions/198543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Oracle DB Mac Address or other unique identifier I am interacting with an Oracle DB using SQL over an ODBC connection. Is there an SQL command I can use to get the MAC address of the server, or something that uniquely identifies the server hardware or software installation. This is so I can be sure (or at least fa...
{ "language": "en", "url": "https://stackoverflow.com/questions/198551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Programmatically determine column name of GridView controls? I have a row of data that I need to modify in a database, using a stored procedure. But in order to call that stored procedure, I need to know the name of the each column. How do I determine the name of the columns? (Hardcoding is not an option as we are t...
{ "language": "en", "url": "https://stackoverflow.com/questions/198552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Generating dynamic thumbnail of a PDF for ASP.NET I've used a tool from Aspose (Aspose.PDF.kit) to generate a JPG thumbnail on the fly of a PDF for a .NET application. This works great, but what kind of other alternatives are there? Codeproject.com has this tutorial, but it requires you to have the full version o...
{ "language": "en", "url": "https://stackoverflow.com/questions/198558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How hard is it to master semantic markup and good CSS? I know this won't be a popular question, because a lot of web designers want to assume that their craft is difficult and valuable. IT IS. But I do not believe that it is difficult because HTML and CSS are difficult to master, I believe its difficult because bein...
{ "language": "en", "url": "https://stackoverflow.com/questions/198561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to configure Apache to work as proxy (load balancer) for j2ee server? I have apache web server installed as frontend and I have j2ee SAP Netweaver Application Server installed in Intranet server. How can I configure apache to forward requests and response to/from j2ee app server. for example, external apache ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/198564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the simplest way to export Excel data to Matlab? What is the simplest way to programmatically export Excel data to Matlab? A: If you are running Matlab on Windows with Excel installed, try XLSREAD. A: If there's not much text annotation in the Excel file, save it as a csv, then use the MATLAB function csvr...
{ "language": "en", "url": "https://stackoverflow.com/questions/198568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Real differences between "java -server" and "java -client"? Is there any real practical difference between "java -server" and "java -client"? All I can find on Sun's site is a vague "-server starts slower but should run faster". What are the real differences? (Using JDK 1.6.0_07 currently.) A: The most visi...
{ "language": "en", "url": "https://stackoverflow.com/questions/198577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "418" }
Q: What are optimal settings for Recycling of Application Pools in IIS7 in shared environment? What are optimal settings for Recycling of Application Pools in IIS7 in a shared environment? A: As a Hoster, you definitely want to recycle on Memory & Time, potentially Request limits and CPU. You want to be pretty aggre...
{ "language": "en", "url": "https://stackoverflow.com/questions/198580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Non-deterministic finite state machines in software development? Recently I've been thinking about finite state machines (FSMs), and how I would implement them in software (programming language doesn't matter). My understanding is that deterministic state machines are in widespread use (parses/lexers, compilers and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/198581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Can I use commas in a URL? I typically use URL rewriting to pass content IDs to my website, so this Foo.1.aspx rewrites to Foo.aspx?id=1 For a specific application I need to pass in multiple IDs to a single page, so I've rewritten things to accept this: Foo.1,2,3,4,5.aspx This works fine in Cassini (the built...
{ "language": "en", "url": "https://stackoverflow.com/questions/198606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: Graph Theory library for Smalltalk Anybody know of an implementation of graph algorithms in Smalltalk? I'd like something that allows you to implement an interface on your model objects or something and provides algorithms for transitive closure, transitive reduction, topological sort, etc., etc. People end up re-im...
{ "language": "en", "url": "https://stackoverflow.com/questions/198608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Any free HTML Image Slicer? I was given one big JPG of the HTML interface. Now I need to break it down into pieces and assemble them with html table. Without a slicer it's pretty arduous and error prone. I do not have photoshop or firework, does anybody know of any free utilities that I can use? A: I guess you coul...
{ "language": "en", "url": "https://stackoverflow.com/questions/198612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I recycle an IIS AppPool with Powershell? I haven't really done any Windows scripting at all, so I am at a loss on how to pull this one off. Anyway, basically what we want to do is have a script that will take an argument on which IIS AppPool to recycle. I have done some research on Google and haven't had m...
{ "language": "en", "url": "https://stackoverflow.com/questions/198623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Determine if IP is blocked Does anyone know if it is possible to reliably determine (programattically C/C++...) whether or not a firewall or IP filtering software is installed on a Windows PC? I need to detect whether a certain server IP is being blocked in my client software by the host OS. I don't need to worry a...
{ "language": "en", "url": "https://stackoverflow.com/questions/198625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server unique set of columns without using a constraint - getting bit by the 900 byte limit I have a table which contains 3 nvarchar(255) columns and a combination of these 3 columns must be unique. Normally I would create a Unique constraint, but in this case, I am hitting the 900 byte limit. Since I have to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/198634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multiple Data Tables in PHP/MySQL? In asp.net, you can retrieve MULTIPLE datatables from a single call to the database. Can you do the same thing in php? Example: $sql ="select * from t1; select * from t2;"; $result = SomeQueryFunc($sql); print_r($result[0]); // dump results for t1 print_r($result[1]); // dump resu...
{ "language": "en", "url": "https://stackoverflow.com/questions/198650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Looking for evolutionary music example code I would like to implement an interactive evolutionary algorithm for generating music (probably just simple melodies to start with). I'd like to use JFugue for this. Its website claims that it is well-suited to evolutionary music, but I can't find any evolutionary examples...
{ "language": "en", "url": "https://stackoverflow.com/questions/198654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Nested Scroll Areas I creating a control for WPF, and I have a question for you WPF gurus out there. I want my control to be able to expand to fit a resizable window. In my control, I have a list box that I want to expand with the window. I also have other controls around the list box (buttons, text, etc). I want t...
{ "language": "en", "url": "https://stackoverflow.com/questions/198656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: .NET assemblyBinding configuration ignored in machine.config I have a situation where I need to be able to load assemblies in the GAC based on their partial names. In order to do this I have added the following to my app.config file: <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <qualif...
{ "language": "en", "url": "https://stackoverflow.com/questions/198668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JQuery Select Box and Loop Help Thanks for reading. I'm a bit new to jQuery, and am trying to make a script I can include in all my websites to solve a problem that always drives me crazy... The problem: Select boxes with long options get cut off in Internet Explorer. For example, these select boxes: http://discover...
{ "language": "en", "url": "https://stackoverflow.com/questions/198670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }