text
stringlengths
8
267k
meta
dict
Q: Eclipse: detach package explorer, outline panels? I'm in a constant battle with Eclipse to free up more screen real estate for code instead of decoration. I can maximize the code window by double clicking on it, getting rid of the package explorer, outline, and other panels, but I do use the other panels on occasio...
{ "language": "en", "url": "https://stackoverflow.com/questions/436134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Install MySQL using MacPorts or Mac OS X binary package? Is there any advantage in using one over the other? Should I use the vendor provided PKG file or use the Darwin Ports version? Is there a general rule of thumb for deciding how to install a package? A: I would use the vendor provided package just because of s...
{ "language": "en", "url": "https://stackoverflow.com/questions/436149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why does the call to this jQuery function fail in Firefox? I have the following line of code in a link on my webpage: <a href="javascript:$('#comment_form').toggle('normal')" title="Comment on this post"> This produces a link that should pop open a hidden form. It works on Safari, but in Firefox, I just get an almo...
{ "language": "en", "url": "https://stackoverflow.com/questions/436154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to use CurrentSessionContext/SpringSessionContext along with HibernateDaoSupport to intercept calls to getCurrentSession() I'm using HibernateDaoSupport in Spring for Spring-Hibernate integration. I need to intercept all getCurrentSession calls and enable a filter and set a filter parameter value. Hibernate supp...
{ "language": "en", "url": "https://stackoverflow.com/questions/436156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS Floating Footer I want to make a footer that stays at the bottom of the viewable window UNLESS it butts up against the content when you resize the window smaller. I tried... bottom:0; position:absolute; ...but the footer gets in the way when the window is smaller. A: I believe this will do what you want: CSS la...
{ "language": "en", "url": "https://stackoverflow.com/questions/436165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: IIS7: Setup Integrated Windows Authentication like in IIS6 This is for IIS 7 on a Windows Server 2008 that is not part of an AD domain. I would like to password protect a website, where people have to enter a username/password (a windows account for example) to view the website. The website would then use its own ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: Wiki that can be integrated into a web-application I've been thinking about integrating a wiki into my web-application. Currently I'm testing MediaWiki API (web-services interface), but my intended usage will most likely conflict with the GPL license. Some parts of my web-application is closed source. Does anyone ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/436171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Socket programming with C# I'm building a client/server application to make periodic backups of certain files. Basically, the client will monitor certain files for changes, and upload them to the server. The server will then receive them and will save them with an incrementing postfix.(i.e. "filename_v1", "filename_...
{ "language": "en", "url": "https://stackoverflow.com/questions/436186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I read the files in a directory in sorted order? When I read a directory in Perl with opendir, readdir, and closedir, the readdir function doesn't seem to read the files in any specific order (that I can tell). I am reading a directory that has subdirectories named by epoch timestamp: 1224161460 1228324260 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/436189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What is an alternative to execfile in Python 3? It seems they canceled in Python 3 all the easy way to quickly load a script by removing execfile() Is there an obvious alternative I'm missing? A: While exec(open("filename").read()) is often given as an alternative to execfile("filename"), it misses important detai...
{ "language": "en", "url": "https://stackoverflow.com/questions/436198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "441" }
Q: jQuery.dialog doesn't generate themeroller classes? JSBin sample Get at that with Firebug and you'll notice something about the classes of the generated dialog - ui-widget and/or ui-state are completely absent, but those are the classes that ThemeRoller uses to color UI elements! Is there some sort of ThemeRoller-co...
{ "language": "en", "url": "https://stackoverflow.com/questions/436199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Netbeans 6.5 generates a lib folder when creating a GUI How do I create a jar that incorporates the lib folder so I can email a single jar. As it is if I don't include the lib folder and the jar folder the jar will not work. I would like to add the lib folder to the main jar so I only need to send someone a singl...
{ "language": "en", "url": "https://stackoverflow.com/questions/436203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get Webkit bugs fixed? Webkit has a few bugs that prevent our software from running in this browser (and Safari/Chrome/etc). We don't have sufficient C++ knowledge to fix the bugs ourselves, but we're certainly willing to fund the development and do extensive testing of the patches. What would be the best way...
{ "language": "en", "url": "https://stackoverflow.com/questions/436206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is everything in .NET an object? Please help us settle the controversy of "Nearly" everything is an object (an answer to Stack Overflow question As a novice, is there anything I should beware of before learning C#?). I thought that was the case as everything in Visual Studio at least appears as a struct. Please post...
{ "language": "en", "url": "https://stackoverflow.com/questions/436211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "58" }
Q: Taking over a project - What should I ask the previous programmer? I'm taking over a development of a commercial web site. This site was developed over two years by another programmer. It's mostly a one-man job (maintain and expand the site). I'll have a 2-3 days transition period when the other programmer will show...
{ "language": "en", "url": "https://stackoverflow.com/questions/436212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }
Q: How to determine the encoding of text I received some text that is encoded, but I don't know what charset was used. Is there a way to determine the encoding of a text file using Python? How can I detect the encoding/codepage of a text file deals with C#. A: Another option for working out the encoding is to use libm...
{ "language": "en", "url": "https://stackoverflow.com/questions/436220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "294" }
Q: best approach to member variables in object-oriented javascript? This is a follow up to a question I just posted. I'm wondering how you all handle member variables in javascript clases when using MyClass.prototype to define methods. If you define all of the methods in the constructor function: function MyClass(){ t...
{ "language": "en", "url": "https://stackoverflow.com/questions/436234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Microsoft Office Web Components IE Security Issue I am displaying Microsoft Office Web Components (Microsoft Data Access Controls) on my Sharepoint site. Clients need to enable "Access Data Sources Across Domains" in IE in order to view the page. Unfortunately, clients cannot modify their IE settings. Is there anywa...
{ "language": "en", "url": "https://stackoverflow.com/questions/436235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Obtaining Listbox Item Index through Attached Property Using this posting as reference, I am attempting to display a Listbox item's index by implementing an attached property. I'll be the first to admit that I don't entirely understand how an attached property will solve this problem but I was hoping it would become...
{ "language": "en", "url": "https://stackoverflow.com/questions/436236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server 2k5 - Backup Of Database Without Log File(s) Log files are often large an unwieldy. Is there a way to "backup" a SQL Server database without any log files (or with empty log files)? A: Portions of the log are actually included in the backup. It's how you get consistency on a restore. The pages that chang...
{ "language": "en", "url": "https://stackoverflow.com/questions/436243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Link to download Cassini source code? Does any one know from where can I download source code for Cassini. I tried the link http://www.asp.net/Projects/Cassini/Download but this page does not exist now. A: You can download it here there are also older versions on the website for the 2.0 framework for instance. A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: MySQL performance bottlenecks I have a rather simple query SELECT col1 FROM table1 This command outputs about 300K+ entries per second, which sounds reasonable, yet other methods for mass decoding of saved data (e.g. array deserialization) works at the limit of what the hard drive enables, i.e. 40-50 MB/s, compared...
{ "language": "en", "url": "https://stackoverflow.com/questions/436251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Good download manager for Drupal? I'm looking for a download manager module for Drupal. Ideally, it would give the same sort of power that the Sourceforge manager or the Drupal theme download manager gives. That is: * *Multiple download objects, with descriptions *Each type has multiple versions available *Nice...
{ "language": "en", "url": "https://stackoverflow.com/questions/436263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Inherited SQL Server Database Problem I've inherited a SQL Server Database that for some odd reason the developers didn't use Identity to auto increment the primary key. (maybe it was once an Oracle one, who knows). Now,... since the database is accessed from countless clients, I presume that the "next ID" must be s...
{ "language": "en", "url": "https://stackoverflow.com/questions/436264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Emptying a C++ object Often I add an Empty method to my C++ objects to clear the internal state using code similar to the following. class Foo { private: int n_; std::string str_; public: Foo() : n_(1234), str_("Hello, world!") { } void Empty() { *this = Foo(); } }; This see...
{ "language": "en", "url": "https://stackoverflow.com/questions/436265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Time Stamping Email with PHP I am building an email which will be used via a web form to transmit data to a mailbox. I am looking to timestamp the XML portion of the email using ISO 8601 format. I need to get the time the email is sent then convert it all using PHP. Any ideas? A: php manual - date date('c') wil...
{ "language": "en", "url": "https://stackoverflow.com/questions/436266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Configuring Hibernate logging using Log4j XML config file? I haven't been able to find any documentation on how to configure Hibernate's logging using the XML style configuration file for Log4j. Is this even possible or do I have use a properties style configuration file to control Hibernate's logging? If anyone has...
{ "language": "en", "url": "https://stackoverflow.com/questions/436276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "89" }
Q: running async operations in c#. - basic. Consider the following snippet: if(form1.isLoggedIn) { //Create a wait handle for the UI thread. //the "false" specifies that it is non-signalled //therefore a blocking on the waitone method. AutoResetEvent hold = new AutoResetEvent(false); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Are constant C expressions evaluated at compile time or at runtime? If I write a #define that performs an operation using other preprocessor constants, is the final value computed each time the macro appears at runtime? Does this depend on optimizations in the compiler, or is it covered under a standard? Example: #d...
{ "language": "en", "url": "https://stackoverflow.com/questions/436300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Executing a simple window.open script from the server I have a dynamically created menu which I have a menuItemClick event tied in. In this event I want to execute a simple window.open script that uses the clicked items' url. The reason I need to do this is I need to set the parameters of the window opening (i.e. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can someone help explain Fit Testing to me? So this is something that has been at the back of my mind for a while. I've seen mentions of it, I've read the fitness web page and I still don't quite grok it. It seems like Fitnesse is yet another testing framework like NUnit or MbUnit or any of the others because yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/436302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: implement an interface with a private method in vb.net I was kind of shocked by this. Could someone explain why this works? A good example of when to use it would also be nice. Public Interface IFoo Sub DoIt() End Interface Public Class Bar Implements IFoo Private DoIt() implements IFoo.DoIt End Class ... ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Accessing image data from a bitmap given a pointer My problem is reading the pixel data correctly once I have the pointer. So I have an image that takes up the whole iPhone screen and has no alpha channel (24 bits per pixel, 8 bits per component, 960 bytes per row) and I want to find out the color of a particular pi...
{ "language": "en", "url": "https://stackoverflow.com/questions/436316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CSS Menu link stays highlighted So I'm trying my hands at a css menu and I have a simple bug that I cannot fix and haven't found any help searching for it. The issue is that when I hover over a drop down menu the parent link stays highlighted and the text reverts back to the original color. Hopefully that explains i...
{ "language": "en", "url": "https://stackoverflow.com/questions/436319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you avoid the n+1 problem with SubSonic? Ayende has a blog post detailing how to combat the "n+1" problem in nHibernate. In essence, the problem is this: Assume you have two tables, "BlogPosts" and "Comments" with a one-to-many relationship between them (i.e. each BlogPost can have multiple Comments). Now, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How Soon Should I Start Getting My Program Ready for Windows 7? Microsoft already has a Windows 7 Beta Customer Preview Program on their MSDN site where they encourage us to: "Evaluate and jump-start your development efforts on Windows 7 Beta". Do you feel it is worthwhile to spend my time now re Windows 7, or shou...
{ "language": "en", "url": "https://stackoverflow.com/questions/436328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET MVC - Is it viable for small web outfits? I work for a small website company (couple of programmers, couple of designers). Currently we use ASP.NET website projects - this makes it easy for me to sort the programming out on my local machine, while the designers work directly on a development server and the '...
{ "language": "en", "url": "https://stackoverflow.com/questions/436329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: WPF binding to XPath-reachable value of an element property I'd like to bind to a value reachable only with XPath from the property of an element. The element is a ComboBox populated from some XML, and its property is SelectedItem. SelectedItem points to an XML element, and I'd like to bind to a child element's valu...
{ "language": "en", "url": "https://stackoverflow.com/questions/436333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: When or why would you use a right outer join instead of left? Wikipedia states: "In practice, explicit right outer joins are rarely used, since they can always be replaced with left outer joins and provide no additional functionality." Can anyone provide a situation where they have preferred to use the RIGHT notatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/436345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "76" }
Q: Find a value anywhere in a database Given a number, how do I discover in what table and column it could be found within? I don't care if it's fast, it just needs to work. A: If you need to run such search only once then you can probably go with any of the scripts already shown in other answers. But otherwise, I’d r...
{ "language": "en", "url": "https://stackoverflow.com/questions/436351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "303" }
Q: How to diff a commit with its parent Aside from writing an alias or script, is there a shorter command for getting the diff for a particular commit? git diff 15dc8^..15dc8 If you only give the single commit id git diff 15dc8, it diffs that commit against HEAD. A: Use git show $COMMIT. It'll show you the log messag...
{ "language": "en", "url": "https://stackoverflow.com/questions/436362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "508" }
Q: Does calling a method on a value type result in boxing in .NET? I was just participating in Stack Overflow question Is everything in .NET an object?. And one poster (in comments of accepted answer) seemed to think that performing a method call on a value type resulted in boxing. He pointed me to Boxing and Unboxing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Best way to safely printf to a string? Does anyone know a good safe way to redirect the output of a printf-style function to a string? The obvious ways result in buffer overflows. Something like: string s; output.beginRedirect( s ); // redirect output to s ... output.print( "%s%d", foo, bar ); output.endRedirect(...
{ "language": "en", "url": "https://stackoverflow.com/questions/436367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: How to define a constant globally in C# (like DEBUG) I want to compile a project differently, according to a constant defined by #define, like this: #define USE_COMPONENT_X #if USE_COMPONENT_X ... #endif and I can do that in C#. But when I go to another file in the same project, this constant is not defined. Can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How to add external data to an XML? I've got an XML Schema and an XML instance that is valid to that schema. This XML instance contains some data. I'd like to extend the XML instance with further data(my own meta-data per XML element in the XML instance) while keeping it valid to the provided schema. The real use-ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/436370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I convert datetime microformat to local time in javascript? I have a page that is currently using the datetime microformat to display a timestamp, but I have only been showing the human-readable time for my own time zone: <abbr class="published" title="2009-01-09T09:16:00-05:00"> Friday, January 9, 2009 at 9...
{ "language": "en", "url": "https://stackoverflow.com/questions/436374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When an inherited class is instantiated with the default constructor, does it call the base class consctructor as well? Does anyone know what is the behavior for C#? Is it the same for all .NET languages? A: Yes, it automatically calls the default constructor of the base class. A default constructor has no paramete...
{ "language": "en", "url": "https://stackoverflow.com/questions/436375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I split email address/password string in two in Python? Lets say we have this string: [18] email@email.com:pwd: email@email.com is the email and pwd is the password. Also, lets say we have this variable with a value f = "[18] email@email.com:pwd:" I would like to know if there is a way to make two other vari...
{ "language": "en", "url": "https://stackoverflow.com/questions/436394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Linux C++ Debugger I'm looking for the perfect Linux C++ debugger. I don't expect success, but the search should be informative. I am a quite capable gdb user but STL and Boost easily crush my debugging skills. It not that I can't get into the internals of a data structure, it's that it takes so long I usually fin...
{ "language": "en", "url": "https://stackoverflow.com/questions/436400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Adding and Updating with LINQ to Entities We are using L2E and REST in our project, and while I have been able to retrieve data from the db without issue, I am still not able to update or add new records to the db. I imagine that it's a syntax problem (we're still new to to linq), but I haven't been able to figure ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where should I put A: The most conservative (and widely accepted) answer is "at the bottom just before the ending tag", because then the entire DOM will have been loaded before anything can start executing. There are dissenters, for various reasons, starting with the available practice to intentionally begin execu...
{ "language": "en", "url": "https://stackoverflow.com/questions/436411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1838" }
Q: Hide Navigation Bar on rotation I have a UIView with a navigation bar. How can I hide the navigation bar when the user puts the iPhone in landscape orientation, and have it show again on portrait view? A: - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterva...
{ "language": "en", "url": "https://stackoverflow.com/questions/436413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Ruby in Erlang Is it possible to embed Ruby into Erlang? Would Yecc be the correct tool for that? If it is possible how many man hours would it take, rough estimate? A: There is something called Elixir by Jose Valim url http://elixir-lang.org/ this lets you write code that is ruby like and run it on erlang VM. So ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's your choice for testing your program in a virtual machine? When testing our software on several different systems (98-XP-Vista-Seven-Linux-etc), I think that the best choice is to use virtualized systems. What's your choice: VMware, Virtual Box or MS Virtual PC/Server? and why? A: We use VMWare here at work....
{ "language": "en", "url": "https://stackoverflow.com/questions/436421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to SendKeys F12 from current .NET form/application I am pretty sure the following button-activated form code should raise a Control-F12 in my C# application: SendKeys("^{F12}"); But it does not appear to go on up to the windows shell and activate another program that is listening for it. My keyboard does work. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Ajax updater not working in internet explorer I have a problem with ajax updater that i couldnt solve. I have this code Servicii It works perfectly in firefox but in internet explorer it does nothing.Also if i open the site from my harddrive it works but it only works for the link once then i have to reload the whol...
{ "language": "en", "url": "https://stackoverflow.com/questions/436432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Financial calculator in Javascript runs much slower than on Excel I've ported an Excel retirement calculator into Javascript. There are 35 worksheets in the original Excel containing many recursive calculations, all of which I've converted to Javascript. Javascript is running slower (1-2 seconds compared to Excel's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cd doesn't work when redirecting output? Here's a puzzler: can anyone explain why cd fails when the output is redirected to a pipe? E.g.: james@machine:~$ cd /tmp # fine, no problem james@machine:~$ cd /tmp | grep 'foo' # doesn't work james@machine:~$ cd /tmp | tee -a output.log ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Document Management I'm writing a simple document management system for my work. I'm only a hobbyist but have been programming for a while now. My problem is this. When I delete a number of documents through my app, I then need to remove the related database records. What's the best way to go about this without endi...
{ "language": "en", "url": "https://stackoverflow.com/questions/436456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Form submission asks to save exe, would like it to run instead When I submit my basic form from the html file, it gives me the option to save the exe I just want the exe to run instead. (To re-populate the template html file) What do I need to do to just run the exe once the form is submitted? <form action="Lib.ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/436458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Formula parsing / evaluation routine or library with generic DLookup functionality I am writing a .Net application where I must support user-defined formulas that can perform basic mathematics, as well as accessing data from any arbitrary table in the database. I have the math part working, using JScript Eval(). Wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/436466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL: Migrating Queries from v4 to v5 When migrating a project from MySQL 4 to MySQL 5, what are the primary things I need to address in order to ensure queries remain compatible? In general things should be fine, but I know that some things that worked implicitly in MySQL 4 queries have to be defined explicitly in...
{ "language": "en", "url": "https://stackoverflow.com/questions/436468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VS2005: Assembly '' is incorrectly specified as a file. I've added a reference to the log4net assembly dll to my project. When I build I get a warning saying: Warning Assembly 'Lib\log4net.dll' is incorrectly specified as a file. I look up the help for this error on MSDN, and it says: This warning is generated ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "59" }
Q: pyPdf for IndirectObject extraction Following this example, I can list all elements into a pdf file import pyPdf pdf = pyPdf.PdfFileReader(open("pdffile.pdf")) list(pdf.pages) # Process all the objects. print pdf.resolvedObjects now, I need to extract a non-standard object from the pdf file. My object is the one n...
{ "language": "en", "url": "https://stackoverflow.com/questions/436474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Facelets custom component doesn't set attribute after submit I am having a problem with custom components in facelets. The first time that the page is rendered, the attributes are set properly on the component class. When a form is submitted however, the attributes are not set. Here is the class that I am using to...
{ "language": "en", "url": "https://stackoverflow.com/questions/436488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python: import the containing package In a module residing inside a package, i have the need to use a function defined within the __init__.py of that package. how can i import the package within the module that resides within the package, so i can use that function? Importing __init__ inside the module will not impo...
{ "language": "en", "url": "https://stackoverflow.com/questions/436497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: char!=(signed char), char!=(unsigned char) The code below compiles, but has different behavior for the char type than for the int types. In particular cout << getIsTrue< isX<int8>::ikIsX >() << endl; cout << getIsTrue< isX<uint8>::ikIsX >() << endl; cout << getIsTrue< isX<char>::ikIsX >() << endl; resul...
{ "language": "en", "url": "https://stackoverflow.com/questions/436513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: Uri.AbsolutePath messes up path with spaces In a WinApp I am simply trying to get the absolute path from a Uri object: Uri myUri = new Uri(myPath); //myPath is a string //somewhere else in the code string path = myUri.AbsolutePath; This works fine if no spaces in my original path. If spaces are in there the string ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Is this the most efficient way to express this XDocument query? We utilise a third party web service that returns XML which looks something like (cut down for brevity): <Response> <block name="availability"> <block name="cqual"> <a name="result-code" format="text">L</a> </block> <block name="exch...
{ "language": "en", "url": "https://stackoverflow.com/questions/436522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Best design to implement "Default" item in collection For my example, I have a Person class with an arbitrary number of associated Addresses associated with it. So there will be an Addresses collection as a member of the Person class. In many applications which use the Person class, we will just want to retrieve th...
{ "language": "en", "url": "https://stackoverflow.com/questions/436523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Keep app responsive during long task A certain form in our application displays a graphical view of a model. The user can, amongst loads of other stuff, initiate a transformation of the model that can take quite some time. This transformation sometimes proceeds without any user interaction, at other times frequent u...
{ "language": "en", "url": "https://stackoverflow.com/questions/436524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: JS/JQuery Image transition effects - blinds? I'd like a transition effect between 2 or more images. I know that simple transitions can be easily done in JQuery, especially with the Cycle plugin, but I want something more complex. Like this, although it's a poor example. A 'blinds' style effect where you can see one...
{ "language": "en", "url": "https://stackoverflow.com/questions/436539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Text file to array using VBScript and ";" seperator I have a rather large list of data that contains 5 properties per element. The elements are separated by a ";". I want to read the elements into an array in VBScript. Seems simple enough to search for this on the big G but all clear examples assume you want to read...
{ "language": "en", "url": "https://stackoverflow.com/questions/436559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the best way to get the DropDown event of a ComboBox in a DataGridView Say I have a DataGridView in which I dynamically build up a ComboBox column and add values to it. What's the best approach to trapping when the user clicks on the drop down button to show the drop down list. If I simply use CellClick on th...
{ "language": "en", "url": "https://stackoverflow.com/questions/436560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I hook up to Excel events in Javascript In a client-side web application, I would like to: * *open an Excel spreadsheet, *export some application data to Excel, *allow the user to work with it, and *when they are done, read the (potentially changed) data back into my application. I would like the use...
{ "language": "en", "url": "https://stackoverflow.com/questions/436563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Rails unit tests fail because of unique constraint on schema_migrations I'm trying to run rake test:units and I keep getting this: Mysql::Error: Duplicate entry '2147483647' for key 1: INSERT INTO `ts_schema_migrations` (version) VALUES ('20081008010000') The "ts_" is there because I have ActiveRecord::Base.table_n...
{ "language": "en", "url": "https://stackoverflow.com/questions/436576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should jquery.data() work in Greasemonkey scripts? I'm using jquery in a greasemonkey user script. I'm trying to add a bunch of options to a select based on an array and also stick the corresponding object in the element with jquery.data like this: $.each(some_array, function(item){ // These next 2 statements seem...
{ "language": "en", "url": "https://stackoverflow.com/questions/436577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Request.Form sometimes returns the value of a checkbox, other times doesn't Anyone know what's wrong with this? I have some Classic ASP code that checks for the value of a checkbox, like so: <!-- HTML page: page1.asp ---> <input id="useBilling" name="useBilling" value="Y" type="checkbox" /> And in my code page (le...
{ "language": "en", "url": "https://stackoverflow.com/questions/436580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: jQuery UI Tabs - Automatic Height In previous versions of jQuery tabs there was an option to automatically set the height of the tab to that of the tallest tab in the group using: $('#container').tabs({ fxAutoHeight: true }); However this does not seem to work in jQuery UI 1.5.3. Has this option been removed? If s...
{ "language": "en", "url": "https://stackoverflow.com/questions/436587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: JSF Multiple Partial Validations Scenario In JSF, is it possible to solve the following validation / updating scenario using the validation framework of JSF (aka validators, immediate, required, etc.)? +-- Form ----------------------------------------------------+ | ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In obj-c is possible to get the parent instance of a property? I wonder if is possible in obj-c to acces the parent instance from a property, like: @interface AObject : NSObject { } -(void) sample{ NSLog("%@", [[self parentInstance] Id]); } @interface DbObject : NSObject { NSInteger Id; AObject* ob; } A...
{ "language": "en", "url": "https://stackoverflow.com/questions/436592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set visibility of Footer section depending if it is a main report or subreport How can I hide the footer section in a JasperReport when it is a subreport? It should only show the footer section when it is a main report. A: Jasper Reports uses what they call Print When expressions (if I am not mistaken). It h...
{ "language": "en", "url": "https://stackoverflow.com/questions/436597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python Split String Lets Say we have Zaptoit:685158:zaptoit@hotmail.com How do you split so it only be left 685158:zaptoit@hotmail.com A: Another solution: s = 'Zaptoit:685158:zaptoit@hotmail.com' s.split(':', 1)[1] A: Another method, without using split: s = 'Zaptoit:685158:zaptoit@hotmail.com' s[s.find(':')+1...
{ "language": "en", "url": "https://stackoverflow.com/questions/436599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: VB.NET: How to reference VB.NET module? I got a Utility module since VB.NET doesn't have static class like C# and Module is the static class in VB.NET. The reason that I use module is because I'm using the Extension method and it can only be use in Module. I can't reference to this module but if I put my code in a c...
{ "language": "en", "url": "https://stackoverflow.com/questions/436605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Can you wait for javascript callback? I'm trying to use the jQuery alerts dialog library from http://abeautifulsite.net/notebook/87 instead of the default alerts (which look pretty awful in my opinion). This seems to be a great library, but there is not an example of how to use the jConfirm library. I need to do som...
{ "language": "en", "url": "https://stackoverflow.com/questions/436608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: When should one use HTML entities? This has been confusing me for some time. With the advent of UTF-8 as the de-facto standard in web development I'm not sure in which situations I'm supposed to use the HTML entities and for which ones should I just use the UTF-8 character. For example, * *em dash (–, &emdash;) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "136" }
Q: Quick and dirty operator!= In my classes I often write a quick operator!= by returning !(*this == rhs), e.g.: class Foo { private: int n_; std::string str_; public: ... bool operator==(const Foo& rhs) const { return n_ == rhs.n_ && str_ == rhs.str_; } bool operator!=(const Foo& r...
{ "language": "en", "url": "https://stackoverflow.com/questions/436622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Thread ListBox C# SharpDevelop I'm trying to use a Thread in a simple winform. I have a ListBox which I want to fill with numbers at the form's load method. I don't want to wait until it is filled. I'm using something like this: void fillList() { Invoke(new MethodInvoker( delegat...
{ "language": "en", "url": "https://stackoverflow.com/questions/436627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I remove :hover? I have a small problem with a script. I want to have a default action on :hover for clients with Javascript disabled, but for those with Javascript enabled I want another action (actually... same action, but I want to add a small transition effect). So... How can I do this? I am using jQuery....
{ "language": "en", "url": "https://stackoverflow.com/questions/436629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Delphi IDE hangs while debugging threads This is kind of a follow-up question to this. When I'm debugging threads in Delphi (BDS 2006 with update 2) my IDE often hangs, e.g. when the execution runs into a breakpoint that I have set after the app started. Do you have similar experiences? What do you do about it? A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/436648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C# SocketException with Multicast on XP The following C# code works correctly on Vista, but fails on XP with: SocketException: An invalid argument was supplied. The ErrorCode is 10022. The firewall on XP has been disabled. using System; using System.Net; using System.Net.Sockets; public class SocketTest { [STAT...
{ "language": "en", "url": "https://stackoverflow.com/questions/436659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: CSS Column Overlap everywhere BUT IE and Firefox 3 I have a problem with my website and how it appears in some browsers: http://www.karentiede.com In Firefox 2.0 and many other browsers, the "content" column overflows to the left and appears on top of the decorative border, making some of the content unreadable. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does Low Pro Prototype DOM Builder work in IE? Dan Webb's Low Pro UJS extension to Prototype offers the following elegant DOM Builder: var listItem = $li({ id : 'item-1' }, $strong("Some text") ); // returns a node equivalent to: <li id="item-1"><strong>Some text</strong></li> $('a...
{ "language": "en", "url": "https://stackoverflow.com/questions/436666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rhino.Commons with StructureMap Has anybody tried to use StructureMap for IoC with Rhino.Commons? Thanks A: Windsor is deeply rooted in Rhino Commons, a search for "Windsor" in the source code gives back 45 files. Binsor, for example, is very specific to Windsor. However, it shouldn't be very difficult to refactor...
{ "language": "en", "url": "https://stackoverflow.com/questions/436667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best practices for development with multiple machines and version control I'm just getting into the practice of version control (I'd like to use Eclipse and SVN), and I'm not sure the best setup for my scenario. I'm currently a lone developer and I have two computers (a work desktop and a home office laptop) that I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Local html file AJAX Call and jQuery Woes I'm working on a offline version of a website using jQuery and some xml files. I'm running in to a problem in jQuery when I do a $.ajax call on a xml file jQuery throws a error. When I look at the error I can tell its loading the XML file because its in the error's responceT...
{ "language": "en", "url": "https://stackoverflow.com/questions/436670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How can I guarantee catching a EXCEPTION_STACK_OVERFLOW structured exception in C++ under Visual Studio 2005? Background * *I have an application with a Poof-Crash[1]. I'm fairly certain it is due to a blown stack. *The application is Multi-Threaded. *I am compiling with "Enable C++ Exceptions: Yes With SEH Exc...
{ "language": "en", "url": "https://stackoverflow.com/questions/436671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What does "Polling caught an exception, restarting polling." error mean? We recently discovered the below error in our log which happened before our Reporting Services going down. Our servers have been very slow lately and wondering if this could be part of the problem. Error Message: "Polling caught an exception, r...
{ "language": "en", "url": "https://stackoverflow.com/questions/436673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem rendering error text from Custom Validator I have a page that is trying to login a user. at the top of the page, I have a ValidationSummary control. I don't have the controls explicitly declared in the page and am calling a static method to add the Validator to the page on an error. (see below) When the pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/436674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Difference between and = $session_id ?> Is there any particular reason to use one over the other? I personally tend to use the latter, as it just seems to flow better to me. A: As far as I know, they are functionally equivalent except the second can be disabled in configurations so isn't as portable. A: They do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/436688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }