text
stringlengths
8
267k
meta
dict
Q: In Firefox, can I disable the "Website certified by an unknown authority" SSL certificate warning dialogs? i.e. I just want them to be permanently accepted all the time. A: No, you cannot. Other people answering this question, please read it more closely. He wasn't asking how to add an exception, or fix a broken ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Best Way to Synchronize Multiple Excel Files to MS Access Table We have a number of Excel-based membership rosters for a non-profit organization and we need to merge these into one master MS Access table. From time to time, we receive updated copies of the Excel-based membership rosters and I need to synchronize th...
{ "language": "en", "url": "https://stackoverflow.com/questions/275242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: When would I use uncaught_exception? What is a good use case for uncaught_exception? A: Herb Sutter seems to give good advice here. He doesn't know of a good use for it and says that some cases where it appears to be useful don't really work. A: Probably none A: uncaught_exception can be used in destructors, to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How can I increase the stack size with runhaskell? I'm writing some disposable Haskell scripts to solve some of the Project Euler problems. I don't really want to have to compile them because of the number of changes I'm constantly having to make, but in a few cases I've found that I've run out of stack space. The d...
{ "language": "en", "url": "https://stackoverflow.com/questions/275250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What's the smallest device I can program on? I'm thinking of something smaller than a laptop that i can spend my hours on the way to work doing project euler problems or such. Any ideas? A: This may sound crazy but try pen/pencil and paper. No you can't run the code but it'll help you to not use online references ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is it possible to change the RESX generator to use public accessor on generated class? I'm writing an ASP.NET MVC application and trying to use a RESX file to store error messages and other common strings. The problem is that the RESX generator builds internal classes and it's not possible to use them in the ASP.NE...
{ "language": "en", "url": "https://stackoverflow.com/questions/275257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Does a DataTable consume more memory than a List? Is there a trade off in respect to performance, trade off in respect to memory consumption? A: Yes, absolutely a DataTable consumes more memory than a List. The DataTable class has lots of objects for column definitions, the table info (name, etc), collections of ro...
{ "language": "en", "url": "https://stackoverflow.com/questions/275269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I choose what language to use in DrScheme? I recently downloaded PLT Scheme and DrScheme. When I open DrScheme, I am told to choose a language. However, I'm not familiar with any of my options, and the help guides don't really break it down to help me easily choose which choice. So, first - is DrScheme and PL...
{ "language": "en", "url": "https://stackoverflow.com/questions/275273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Vsssc and Vssscc files - useful for SVN? After a repository is imported from VSS to SVN, there are some files which I guess might be VSS specific - .vsssc and .vssscc files for the solution and .vspscc for projects. They seem to be related to VSS project binding. Are they needed (or useful) for SVN as well? A: The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: MYSQL_ROW and row[0] to string type? When using MYSQL C API to query results. The results are returned as a MYSQL_ROW type, which according to the MYSQL C API documentation, I can easily printf("%s", row[0]). But what if I want to transfer the contents of row[0] into a string or a char*? A: The %s format is only ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Java: Print a 2D String array as a right-justified table What is the best way to print the cells of a String[][] array as a right-justified table? For example, the input { { "x", "xxx" }, { "yyy", "y" }, { "zz", "zz" } } should yield the output x xxx yyy y zz zz This seems like something that one should be a...
{ "language": "en", "url": "https://stackoverflow.com/questions/275338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Javascript Reflection Is there a way to get all methods (private, privileged, or public) of a javascript object from within? Here's the sample object: var Test = function() { // private methods function testOne() {} function testTwo() {} function testThree() {} // public methods function getMethods()...
{ "language": "en", "url": "https://stackoverflow.com/questions/275351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: C++ Reading file Tokens another request sorry.. Right now I am reading the tokens in one by one and it works, but I want to know when there is a new line.. if my file contains Hey Bob Now should give me Hey Bob [NEW LINE] NOW Is there a way to do this without using getline? A: I don't know why you think std::getl...
{ "language": "en", "url": "https://stackoverflow.com/questions/275355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Allow only certain websites to access a PHP page I am trying to make a basic API for my website so certain other websites that I approve of can show content from my site. I have a PHP script on my server that the other websites can access to pull content in XML format. How can I make sure that only certain websites ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Inspecting STL containers in Xcode From googling around it looks like Xcode (3.1 in my case) should be at least trying to give me a sane debug view of STL containers - or at least vectors. However, whenever I go to look at a vector in the debugger I just see M_impl, with M_start and M_finish members (and a couple of...
{ "language": "en", "url": "https://stackoverflow.com/questions/275375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: IIS Multiple Domain Redirect I currently have 2 domain names that I want to setup different websites for. I am currently looking at using some free hosting that works well for my current needs but doesn't give me any way to point "mydomain.com" to the actual site. Instead I have to give users a longer, harder to rem...
{ "language": "en", "url": "https://stackoverflow.com/questions/275382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: File I/O in a Linux kernel module I'm writing a Linux kernel module that needs to open and read files. What's the best way to accomplish that? A: assuming you can get pointers to the relavent function pointers to the open/read/close system calls, you can do something like this: mm_segment_t fs = get_fs(); set_fs(KE...
{ "language": "en", "url": "https://stackoverflow.com/questions/275386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How do I test on a Windows environment for a Linux server? I have an Ubuntu Server (with all of LAMP and Subversion installed). I use Eclipse with Subclipse, PDT and a few other great addins and use those exclusively to develop applications. The problem I'm having is that I'm developing on a Windows Vista machine ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Splitting strings in C++ How do you split a string into tokens in C++? A: With this Mingw distro that includes Boost: #include <iostream> #include <string> #include <vector> #include <iterator> #include <ostream> #include <algorithm> #include <boost/algorithm/string.hpp> using namespace std; using namespace boost; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: PHP output showing little black diamonds with a question mark I'm writing a php program that pulls from a database source. Some of the varchars have quotes that are displaying as black diamonds with a question mark in them (�, REPLACEMENT CHARACTER, I assume from Microsoft Word text). How can I use php to strip thes...
{ "language": "en", "url": "https://stackoverflow.com/questions/275411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "89" }
Q: Implement Modal Dialog Box in ASP.NET MVC Anyone have any experience creating a modal dialog box using AJAX and ASP.NET MVC? I am looking to create a Yes/Cancel confirmation dialog when a user deletes an item. In standard ASP.NET I could just use the ModalPopup extender, but I am not sure how to do this in MVC. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/275415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best way to implement languages menu in an ASP.NET application I trying to implement a typical languages menu where users can select the language they want to view the site in through a menu that appears throughout all pages in the site. The menu will appear on multiple master pages (currently one for pages where us...
{ "language": "en", "url": "https://stackoverflow.com/questions/275421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to search usenet for programming questions? I've been using usenet searches since about 1995 to get programming information, mostly for microsoft APIs. First searching via dejanews, and now google "groups" which bought out dejanews. Over the last few years I've noticed a steady decline in the quantity of search ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Are there any good programming environments/IDEs for Windows Mobile devices? By this, I don't mean PC-based development environments (like Visual Studio) for developing and deploying Windows Mobile applications. Rather, I mean an IDE that runs on Windows Mobile devices and lets you write and test code there. A: Ov...
{ "language": "en", "url": "https://stackoverflow.com/questions/275436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Unicode Character Not Showing I want to display the "infinity" symbol using CGContextSelectFont(context, "HelveticaNeue", textSize, kCGEncodingMacRoman); CGContextShowTextAtPoint(context, myCenter.x, myCenter.y + textHeight, [sName cStringUsingEncoding:NSMacOSRomanStringEncoding], [sName length]); It is d...
{ "language": "en", "url": "https://stackoverflow.com/questions/275437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: VMware and iptables Is there a problem using VMware on Windows to host a virtual linux box running iptables? I have a configuration that seems to work on physical hardware but is flaky under VMware. I'm using VMware to run a virtual linux 2.6.24 machine on a Windows 2003 Server host. The linux application is essen...
{ "language": "en", "url": "https://stackoverflow.com/questions/275439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I make a local drive visible to a Windows XP VMWare image? How can I make a local drive visible to a Windows XP VMWare image? Preferably, I'd like to make local drives available as Drive Letters within the VM Ware Image. A: If both OSs are windows: vm > settings > options > shared folders That way you can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What are the most common, typical things to AVOID coding into my ASP.NET app in order for it to run under Medium Trust on a shared host? What are the things that Medium Trust stops you from doing? For example, I've already learned that Medium Trust stops you from using System.IO.Path.GetTempPath(). What other thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/275444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Ruby Shoes - Scrollbars in Subpane window I can't seem to get a scrollbar to work in an inner stack/flow. Does anyone know how to? A: Just fix height and add ":scroll => true" parameter: Shoes.app(:title => "Scrolll!" ) do flow :margin => 10 do stack :width => "150px", :height => "200px", :scroll => true do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Proper coupling for multiple listeners that need to accessed shared state data Working with a traditional listener callback model. I have several listeners that collect various stuff. Each listener's collected stuff is inside the listener in internal structures. The problem is that I want some of the listeners to be...
{ "language": "en", "url": "https://stackoverflow.com/questions/275456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Conversion of Fortran 77 code to C++ Has anyone converted a large (ours is 550,000 lines) program of Fortran 77 code to C++ ? What pitfalls did you run into ? Was the conversion a success ? Did you use a tool like for_c ( http://www.cobalt-blue.com/fc/fcmain.htm ) ? Was the resulting C++ code significantly faste...
{ "language": "en", "url": "https://stackoverflow.com/questions/275458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Spam filtering for ASP.NET Has anybody come across an elegant and efficient .NET spam filtering component that can be used in ASP.NET applications? I want something that I can pass a string and returns to me a percentage of how likely it could be spam, does such a thing exist? A: Akismet is great. This provides a ....
{ "language": "en", "url": "https://stackoverflow.com/questions/275459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Generation of designer file failed: Exception from HRESULT: 0x80042929 What does the following error mean? Geeneration of designer file failed: Exception from HRESULT: 0x80042929 It started showing up in my application when building and I'm not sure what's causing it. I'm using VS.Net 2008 and .Net 3.5 A: Are ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: gdb fails to run ELF 64-bit program with "File format not recognized" I'm trying to use GDB to debug (to find an annoying segfault). When I run: gdb ./filename from the command line, I get the following error: This GDB was configured as "i686-pc-linux- gnu"..."/path/exec": not in executable format: File format no...
{ "language": "en", "url": "https://stackoverflow.com/questions/275471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Has anyone found payment processor documentation very poor Does anyone else find that the documentation of a lot of payment processors have poor or incomplete documentation as to how to use their API? Or it's just plain confusing? Recently I have setup both PayPal and Beanstream and found that both are either confus...
{ "language": "en", "url": "https://stackoverflow.com/questions/275477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Align cout format as table's columns I'm pretty sure this is a simple question in regards to formatting but here's what I want to accomplish: I want to output data onto the screen using cout. I want to output this in the form of a table format. What I mean by this is the columns and rows should be properly aligned...
{ "language": "en", "url": "https://stackoverflow.com/questions/275484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Best practices for project organization with ASP.NET MVC I recently downloaded Rob Conery's excellent ASP.NET Storefront reference application and am finding it incredibly instructive. One question that comes to mind is where one should place the Model classes (and the Data classes upon which they depend). The MVC...
{ "language": "en", "url": "https://stackoverflow.com/questions/275490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: .NET RichTextBox undo I'm using a RichTextBox in WinForms 3.5 and I found that when I programmatically edit the contained text, those changes are no longer available to the built in undo functionality. Is there a way to make it so these changes are available for undo/redo? A: Here's just some code I decided to mess...
{ "language": "en", "url": "https://stackoverflow.com/questions/275493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Top-level .mak file for Visual Studio? I've inherited a body of Visual C++ source that consists of about a dozen sub-projects. One of these is an empty "MakeAll" project that depends on all the others, so I can build the entire project by setting the MakeAll project active and selecting "Build All." I'd like to aut...
{ "language": "en", "url": "https://stackoverflow.com/questions/275510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add HTML control(s) via javascript Something is eluding me ... it seems obvious, but I can't quite figure it out. I want to add/remove a couple of HTML controls to a page (plain old html) when a user changes value of a dropdown list. An example is to add or remove a "number of guests in this room" textbox for each ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ASP.NET Validation I am working on a form, which I would like to validation features like This. Should this all be done on clientside? or server side? I am aware of using some of MS ajax controld, however, at what point do I display the message at the top? I hope I explained myself. A: You should validate at both e...
{ "language": "en", "url": "https://stackoverflow.com/questions/275526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where is .NET "Isolated Storage" stored? Where would the physical files be? A: System.Diagnostics.Process.Start( Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\\IsolatedStorage" ); A: On my XP workstation I found it under c:\Documents and Settings\\Local Settings\Applic...
{ "language": "en", "url": "https://stackoverflow.com/questions/275536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: java ee | ejb3 | runtime dispatch I would like to call an ejb3 at runtime. The name of the ejb and the method name will only be available at runtime, so I cannot include any remote interfaces at compile time. String bean = 'some/Bean'; String meth = 'doStuff'; //lookup the bean Object remoteInterface = (Object) new...
{ "language": "en", "url": "https://stackoverflow.com/questions/275540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: information seemingly coming out of mysqldb incorrectly, python django In a latin-1 database i have '\222\222\223\225', when I try to pull this field from the django models I get back u'\u2019\u2019\u201c\u2022'. from django.db import connection ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Confusion about installing windows service using command prompts I have designed a simple windows service in .NET 2.0. I am trying to deploy it on my local machine. I have switched to design view, and setup ServiceInstaller and ServiceProcessInstaller objects. There is a Project Installer. I have also wrapped the Wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/275542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Start Bit vs Start Byte I know in a lot of asynchronous communication, the packet begins starts with a start bit. But a start bit is just a 1 or 0. How do you differentiate a start bit from the end bit from the last packet? Ex. If I choose my start bit to be 0 and my end bit to be 1. and I receive 0 (data stream A)...
{ "language": "en", "url": "https://stackoverflow.com/questions/275544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Does ASP.NET MVC Framework support asynchronous page execution? I'm learning ASP.NET MVC Framework, From some articles like this, it seems that MvcHandler has only Execute() implemented, there is no asynchronous API implemented. Actually, I don't think Controller has asynchronous API either. So, ASP.NET MVC doesn't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to send ^K to shell I want to run a shell command in Terminal, then clear the console, from Applescript. If I was doing this by hand, I'd use ^K -- how do I send the ^K character in a string to Terminal? A: I think you are looking for the 'clear' command. A: I think the gent who suggested 'clear' probably has ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a guide to path referencing in PHP? I know how to include files that are in folders further down the heirachy but I have trouble finding my way back up. I decided to go with the set_include_path to default all further includes relative to a path 2 levels up but don't have the slightest clue how to write it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Maven Snapshot Repository vs Release Repository What is the difference between a Snapshot Repository and Release Repository? This is with reference to setting up Repositories (like Artifactory, Nexus etc) A: Release Artifacts These are specific, point-in-time releases. Released artifacts are considered to be solid,...
{ "language": "en", "url": "https://stackoverflow.com/questions/275555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "119" }
Q: How would I calculate timespans from a list of check in and check outs? I'm writing a simple time tracking program to manage my own projects. I'm a big fan of keeping reporting code in the database, so I've been attempting to create a few sprocs that generate the invoices and timesheets etc. I have a table that cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/275562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does WCF optimize the client's connection under the hood? We are currently working on an application that will use a WCF service. The host (the client) is using the excellent WCF Service Proxy Helper from Erwyn van der Meer. What I would like to know... is if I open this object multiple times... will it lead to mult...
{ "language": "en", "url": "https://stackoverflow.com/questions/275566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Javascript callback functions and recursion This is kind of a brainteaser question, since the code works perfectly fine as-is, it just irritates my aesthetic sense ever so slightly. I'm turning to Stack Overflow because my own brain is failing me right now. Here's a snippet of code that looks up an address using the...
{ "language": "en", "url": "https://stackoverflow.com/questions/275569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How to programatically upload/post an image to an image hosting website without a browser? I want to write a simple utility to upload images to various free image hosting websites like TinyPic or Imageshack via a right-click context menu for the file. How can I do this using .NET? I've seen some linux scripts that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Database change underneath SQLObject I'm starting a web project that likely should be fine with SQLite. I have SQLObject on top of it, but thinking long term here -- if this project should require a more robust (e.g. able to handle high traffic), I will need to have a transition plan ready. My questions: * *How...
{ "language": "en", "url": "https://stackoverflow.com/questions/275572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Output ASCII Value C++ If I have a char which holds a hex value such has 0x53, (S), how can I display this as "S"? Code: char test = 0x53; cout << test << endl; Thanks! A: There's no such thing as a variable that stores a hex value, or a decimal or octal value. Hex, octal, and decimal are just different ways of re...
{ "language": "en", "url": "https://stackoverflow.com/questions/275577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Cocoa bindings problem; bound table columns don't show any data, no errors in console I'm having trouble converting my Cocoa project from a manually-synched interface model to a bindings model so that I don't have to worry about interface glue code. I followed the CocoaDevCentral Cocoa Bindings tutorial to make sure...
{ "language": "en", "url": "https://stackoverflow.com/questions/275593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are the most active community resources for MFC development? I am wondering what are the best community resources for MFC development- such as forums, IRC channels, etc. Currently the only resource I have for finding answered questions on MFC is using google which comes up with Codeproject results or the occas...
{ "language": "en", "url": "https://stackoverflow.com/questions/275595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Guidelines for custom tools While developing products, we often need to create proprietary tools to test some of their unique features or diagnose problems. In fact the tools can be at lest as interesting as the products themselves, and some of our internal groups have asked for copies of them. So, aside from the o...
{ "language": "en", "url": "https://stackoverflow.com/questions/275603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: With wicket where does hibernate.cfg.xml file go? I'm new to Wicket and Hibernate and can't get past the "org.hibernate.HibernateException: /hibernate.cfg.xml not found" error. I've put that file in every location imagineable but I'm still stuck. Where exactly does that file go and/or am I missing a wicket file conf...
{ "language": "en", "url": "https://stackoverflow.com/questions/275610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you read this JavaScript regular expression? var pattern = /^0+$/; My guess is this: "Take a look at both the beginning and the end of the string, and if there's a pattern of one or more zeros at the beginning and the end, then return that pattern." I'm sure that's wrong, though, because when I run the expre...
{ "language": "en", "url": "https://stackoverflow.com/questions/275625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Excel: 'Unable to set the Calculation property of the Application class' I'm trying to automate some stuff in MS Excel. When I try to set the Calculation property I get the following error message: 'Unable to set the Calculation property of the Application class' I believe this property should be settable. Any advic...
{ "language": "en", "url": "https://stackoverflow.com/questions/275630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: HTML best practices There are <meta> tags and other things you can place in the <head> of your HTML document. What <meta> tags etc. and best practices do you make use of in your HTML document to make it more accessible, searchable, optimized etc. A: Do your users a favor and make their IE engine switch to Chrome o...
{ "language": "en", "url": "https://stackoverflow.com/questions/275631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Without creating a list, how can I query the integers between two values in Prolog? For example, if I make a query like between(1,4,X)? I would expect something like X=2, X=3. Is this possible? A: between(A,B,X):-X is A+1,X<B. between(A,B,X):-A2 is A+1,A2<B-1,between(A2,B,X).
{ "language": "en", "url": "https://stackoverflow.com/questions/275660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ASP.NET v1.1 Could not load type TBRWEB.frmLogin I have a web app that I wanted copy to a new project. I created the new app with VS2003 and copied across the web forms, config, global asa, etc. and made sure IIS says it is a web app. However, I still get this error when I run the app using IE from VS IDE: ASP.NET v...
{ "language": "en", "url": "https://stackoverflow.com/questions/275680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you get a thumbnail of a movie using IMDbPy? Using IMDbPy it is painfully easy to access movies from the IMDB site: import imdb access = imdb.IMDb() movie = access.get_movie(3242) # random ID print "title: %s year: %s" % (movie['title'], movie['year']) However I see no way to get the picture or thumbnail o...
{ "language": "en", "url": "https://stackoverflow.com/questions/275683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to get relative path from absolute path There's a part in my apps that displays the file path loaded by the user through OpenFileDialog. It's taking up too much space to display the whole path, but I don't want to display only the filename as it might be ambiguous. So I would prefer to show the file path relativ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "196" }
Q: CodeIgniter doesn't like methods in views? I'm playing around with CodeIgniter; hoping to convert some of my old, ugly PHP into a more maintainable framework. However, I've come across a rather frustrating roadblock - I can't seem to define methods in my views. Any time I try I get a completely blank page, and when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Lambdas in Boo? How do you deal with lambdas in boo? Is "callable" the same thing? How do you define a method that takes a lambda as a parameter? A: Boo does support lambda expression syntax: foo = {x|x+2} seven = foo(5) def TakeLambda(expr as callable(int) as int): return expr(10) twelve = TakeLambda(foo) In t...
{ "language": "en", "url": "https://stackoverflow.com/questions/275704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I reference files with brackets in the name Create a file called Valid[File].txt and stick some text in it. Start powershell and go to the directory. gc Valid[File].txt should display the value in the file. It returns blank. If you use tab auto-completion it escapes the name: gc 'Valid[File].txt' but s...
{ "language": "en", "url": "https://stackoverflow.com/questions/275707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Add leading zeroes to number in Java? Is there a better way of getting this result? This function fails if num has more digits than digits, and I feel like it should be in the library somewhere (like Integer.toString(x,"%3d") or something) static String intToString(int num, int digits) { StringBuffer s = new Str...
{ "language": "en", "url": "https://stackoverflow.com/questions/275711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "573" }
Q: sprintf() and WriteFile() affecting string Buffer I have a very weird problem which I cannot seem to figure out. Unfortunately, I'm not even sure how to describe it without describing my entire application. What I am trying to do is: 1) read a byte from the serial port 2) store each char into tagBuffer as they ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/275717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there an Erase for dojo's gfx surface routines? I'm using Dojo's gfx routines to draw some shapes onto a div, and other than surface.clear(), is there a way to clear or erase just part of the surface? A: In short: no. Remember that this a vector graphics with a scene graph. It doesn't operate in term of frame bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/275734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I use no color-theme under console-mode? I use the dark-blue2 color theme but it seems ugly under console. So I want to use no color theme under terminal, what can I do then? A: To be slightly shorter than those guys, the variable window-system is something if you're in a window-system, and nil if you're in...
{ "language": "en", "url": "https://stackoverflow.com/questions/275736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I compare two datetime fields in SQL Server 2005? DECLARE @p_date DATETIME SET @p_date = CONVERT( DATETIME, '14 AUG 2008 10:45:30',?) SELECT * FROM table1 WHERE column_datetime = @p_date I need to compare date time like: @p_date=14 AUG 2008 10:45:30 column_datetime=14 AUG 2008 10:45:30 How c...
{ "language": "en", "url": "https://stackoverflow.com/questions/275737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I get Html.CheckBox() as boolean during POST in custom IModelBinder? I am using Html.CheckBox(). The resulting HTML is: <input id="IsMultiGraph" name="IsMultiGraph" value="true" type="checkbox"> <input name="IsMultiGraph" value="false" type="hidden"> On the server I have an Action which is accepting the fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/275750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the difference between all of the os.popen() methods? I was looking at the Python documentation and saw that there are 4-5 different versions of popen(), e.g. os.popen(), os.popen2(), etc. Apart from the fact that some include stderr while others don't, what are the differences between them and when would yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/275756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Update an event in Outlook 2007 with an iCalendar file There is a previous thread with this question, and hints at an answer, but I could not get it to work. I have an ICS file. It validates. It looks like this: BEGIN:VCALENDAR VERSION:2.0 PRODID:-//WA//FRWEB//EN BEGIN:VEVENT UID:FRICAL201 SEQUENCE:0 DTSTAMP:2008110...
{ "language": "en", "url": "https://stackoverflow.com/questions/275759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to get selected text from a textbox control with JavaScript I have a textbox and a link button. When I write some text, select some of it and then click the link button, the selected text from textbox must be show with a message box. How can I do it? When I click the submit button for the textbox below, the mes...
{ "language": "en", "url": "https://stackoverflow.com/questions/275761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Is there a way to split strings with String.split() and include the delimiters? I'm trying to split a string with all non-alphanumeric characters as delimiters yet Java's String.split() method discards the delimiter characters from the resulting array. Is there a way to split a string like the "\W" regex pattern doe...
{ "language": "en", "url": "https://stackoverflow.com/questions/275768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Dumping the values of the registers in GCC I need to get the values in the registers with GCC. Something similar to this: EAX=00000002 EBX=00000001 ECX=00000005 EDX=BFFC94C0 ESI=8184C544 EDI=00000000 EBP=0063FF78 ESP=0063FE3C CF=0 SF=0 ZF=0 OF=0 Getting the 32-bit registers is easy enough, but I'm not sur...
{ "language": "en", "url": "https://stackoverflow.com/questions/275771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I draw something on a jPanel that will not be repainted? How can I draw something in JPanel that will stay the same and not be repainted, I am doing a traffic simulation program and I want the road to be drawn once because It will not change. Thanks A: To my knowledge, no, unless there is a trick with tra...
{ "language": "en", "url": "https://stackoverflow.com/questions/275778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Server.MapPath("."), Server.MapPath("~"), Server.MapPath(@"\"), Server.MapPath("/"). What is the difference? Can anyone explain the difference between Server.MapPath("."), Server.MapPath("~"), Server.MapPath(@"\") and Server.MapPath("/")? A: Server.MapPath specifies the relative or virtual path to map to a physical...
{ "language": "en", "url": "https://stackoverflow.com/questions/275781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "469" }
Q: Is it more efficient to return a const reference E.g. What's best out of these: std::string f() {} or const std::string& f() {} A: A function should never return a reference to a local object/variable since such objects go out of the scope and get destroyed when the function returns. Differently, the function ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Which .NET framework version will be included in Windows 7? Does anybody know if Microsoft has already decided which version of the .NET framework will be shipped in Windows 7 next year (2009)? Will it .NET 3.5 (SP 1) or maybe 4.0? A: Microsoft has issued a statement that there will be no other WinHEC before the ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/275808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Castle MonoRail & ELMAH Is anyone using Castle MonoRail and ELMAH with success? We are using a number of Resuces to present users with friendly error messages, but if we do this the exceptions never get as far as ELMAH as the MonoRail rescue intercepts them. Ideally we want the user to see the rescue, but for the ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/275810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to find out which account my ASP.NET code is running under? I am getting an 'Access to the path is denied" error message when running in debug mode. I have tried granting permissions to {MACHINENAME}\ASPNET and to NETWORK SERVICE but this hasn't made any difference. I have also tried < impersonate = true /> usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/275824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Best way to compare 2 XML documents in .NET I have a heap of unit tests that need to check XML outputs. I have started out comparing strings but this isn't going to scale as formatting and superficial differences get in the way. What is the easiest way in .NET to evaluate whether the generated XML is semantically t...
{ "language": "en", "url": "https://stackoverflow.com/questions/275831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Multiple colors in a C# .NET label I'm looking for a way to display multiple colors in a single C#/.NET label. E.g the label is displaying a series of csv separated values that each take on a color depending on a bucket they fall into. I would prefer not to use multiple labels, as the values are variable length an...
{ "language": "en", "url": "https://stackoverflow.com/questions/275836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: Is there a (repeat-last-command) in Emacs? Frequently, I've dug into apropos and docs looking for something like the following only to give up to get back to the task at hand: (repeat-last-command) do the last C- or M- command I just executed (to be rebound to a fn key) or sometimes the related: (describe-last-func...
{ "language": "en", "url": "https://stackoverflow.com/questions/275842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "156" }
Q: Data access technology for Silverlight and WPF standalone app versions I am writing an applicaton that will be a standalone WPF application and also a cut down version that will work as Silverlight and so be hosted in browsers. I want the Silverlight application to access data from the cloud. The WPF application nee...
{ "language": "en", "url": "https://stackoverflow.com/questions/275852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: acceptable fix for majority of signed/unsigned warnings? I myself am convinced that in a project I'm working on signed integers are the best choice in the majority of cases, even though the value contained within can never be negative. (Simpler reverse for loops, less chance for bugs, etc., in particular for integer...
{ "language": "en", "url": "https://stackoverflow.com/questions/275853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to determine the attached type from within a custom attribute? I have a custom attribute which can be assigned to a class, [FooAttribute]. What I would like to do, from within the attribute, is determine which type has actually used me. e.g. If I have: [FooAttribute] public class Bar { } In the code for FooAttr...
{ "language": "en", "url": "https://stackoverflow.com/questions/275855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to automatically add header files to project? How would I go about having a CMake buildsystem, which scans for source files now using AUX_SOURCE_DIRECTORY, scan for header files too in the same directory, preferably using a similar command? I didn't find an easy way to do this in the documentation yet, so I now ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to overcome GCC restriction "could not convert template argument '0' to 'Foo*'"? Suppose I have code like this: template<class T, T initial_t> class Bar { // something } And then try to use it like this: Bar<Foo*, NULL> foo_and_bar_whatever_it_means_; GCC bails out with error (on the above line): could not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Firefox and SSL: sec_error_unknown_issuer My client gets a sec_error_unknown_issuer error message when visiting https://mediant.ipmail.nl with Firefox. I can't reproduce the error myself. I installed FF on a Vista and a XP machine and had no problems. FF on Ubuntu also works fine. Does anyone get the same error and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "60" }
Q: How do I get rid of TagExtraInfo JSTL warning in Eclipse? I'm working with JSTL in Eclipse, using the WTP. I have jstl and standard.jar in my WEB-INF/lib directory, and everything works. Eclipse is giving me this warning in my JSP: The TagExtraInfo class for c:forEach (org.apache.taglibs.standard.tei.ForEachTEI) w...
{ "language": "en", "url": "https://stackoverflow.com/questions/275880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the best structure to implement an Identity Map? Although a DataTable is a memory hog, wouldn't a DataTable be the best choice to implement and IdentityMap if the set of objects is very large since retrieval time is O(1)? Update If I decide to use IDictionary, do I sacrifice speed when retrieving my objects?...
{ "language": "en", "url": "https://stackoverflow.com/questions/275885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Use HttpWebRequest to download web pages without key sensitive issues Use HttpWebRequest to download web pages without key sensitive issues A: [update: I don't know why, but both examples below now work fine! Originally I was also seeing a 403 on the page2 example. Maybe it was a server issue?] First, WebClient is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery hover and class selector I wan't to change the background color of a div dynamicly using the following HTML, CSS and javascript. HTML: <div id="menu"> <div class="menuItem"><a href=#>Bla</a></div> <div class="menuItem"><a href=#>Bla</a></div> <div class="menuItem"><a href=#>Bla</a></div> </div> C...
{ "language": "en", "url": "https://stackoverflow.com/questions/275891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }