instruction
stringlengths
0
30k
C-x C-b will open the "\*Buffer List\*" buffer. In that buffer, you can navigate with C-p, C-n, up-arrow, down-arrow, etc. Browsing a directory is as simple as editing a file. Just open the directory instead of the file. On my Linux machine, "C-x C-f /tmp ENTER" opens a directory while "C-x C-f /tmp/myfile ENTER" op...
It's worth it. It's faster, the designer is vastly improved (split view, faster context switching), it has better support for javascript and when you're ready to target 3.5, you'll be ready to go.
As an aside: When using functions instead of methods, you could also use functools.partial: import functools def foo(arg, **kwargs): ... bar = functools.partial(foo, "argvalue)
About 1% of users actually use Google Docs&Spreadsheets full-time. Almost all of the rest use Microsoft Office. So, no, off-the-cloud applications are not dead simply because a Google office suite exists. And those are, really, the only high-profile true web applications out there that are meant as desktop app replacem...
Gosh, I hope not as that's my job. The main piece of software I write controls electronic hardware (PXI boards and the like) for testing. Without "real" hardware, there's nothing to test. Even the very nature of the tests themselves prevent simultaneous access (once you set the state of a switch, you don't want ...
<a href="http://www.hdfgroup.com/">HDF5</a> is a very compact data format with some characteristics that are similar to xml. The .net libraries leave a lot to be desired, but the format scales very well both in terms of size and performance.
Better Merge Tool for Subversion
|svn|tortoisesvn|
Is there a good external merge tool for tortoisesvn (I don't particularly like the built in Merge tool). I use WinMerge for diffs, but it doesn't work with the three way merge (maybe a better question would be is there a way to force tortoisesvn to merge like tortoisecvs?)
Is there a good external merge tool for tortoisesvn (I don't particularly like the built in Merge tool). I use WinMerge for diffs, but it doesn't work with the three way merge (maybe a better question would be is there a way to force tortoisesvn to merge like tortoisecvs?) [Edit] After trying all of them, for me...
Regarding your request -- *I am specifically trying to change the cursor in this instance to that of a pointer* -- the easiest way is to specify `cursor:pointer` in your css. I think you will find that works in IE 6. Try this to verify (where `div` can be any element): <div style="background:orange; cursor:po...
I would suggest [PmWiki][1], it's something between a framework/wiki. By default there aren't even users, just different passwords, for different tasks, but using [PmWiki Cookbook 'recipes'][2] You can add additional functionality. You can check their [philosophy][3] to get main idea what it's about. [1]: http...
How do you set up use HttpOnly cookies in PHP
|httponly|php|
How can I set the cookies in my PHP apps as HttpOnly cookies?
|httponly|php|cookies|
|httponly|php|cookies|security|
|php|security|cookies|xss|httponly|
How do you configure HttpOnly cookies in tomcat / java webapps?
|java|tomcat|xss|webapp|
After reading Jeff's blog post on [Protecting Your Cookies: HttpOnly][1]. I'd like to implement HttpOnly cookies in my web application. How do you tell tomcat to use http only cookies for sessions? [1]: http://www.codinghorror.com/blog/archives/001167.html
|java|tomcat|xss|webapp|security|
|java|security|webapp|tomcat|xss|
|java|security|cookies|xss|httponly|
The best option sounds like setting Visual Studio to break on all unhandled exceptions (Debug -> Exceptions dialog, check the box for "Common Language Runtime Exceptions" and possibly the others as well). Then run your program in debug mode. When the ANTLR parser code throws an exception it should be caught by Visual S...
sasb's and michaelpryor's answer appears to be correct, but if it's not working for you, try this alternative: - (void)applicationDidFinishLaunchingUIApplication *)application { application.statusBarOrientation = UIInterfaceOrientationLandscapeRight; } Or this one: [[UIDevice currentDevice]...
I haven't been able to get stats. I'd assume they might release some at PDC in late October. If you're building a site which needs to target a non-developer audience who won't want to install another plugin, you might want to wait for Silverlight. I have done a good amount of testing with Moonlight on Linux, and it ...
ok ok before y'all flame me! ;) I did some more looking around online and found what looks like the stuff I need, now off to read some more from here: [Navigating a Relationship Between Tables][1] [1]: http://msdn.microsoft.com/en-us/library/d6s958d6(VS.80).aspx "Navigating a Relationship Between Tables"
A reference on the stack doesn't take up any space at all. Or rather, it doesn't matter how much space it takes up since you can't actually see any side effect of whatever space it would take up. On the other hand, one major difference between references and pointers is that temporaries assigned to const references ...
Is this where [PInvoke][1] can help? [1]: http://msdn.microsoft.com/en-us/magazine/cc164123.aspx
Whats the best way to do throbber in C#?
|c#|treeview|
Specifically what I am looking to do is make the icons for the Nodes in my System.Windows.Forms.TreeView control to throb while a long loading operation is taking place.
Automate firefox with python?
|python|linux|firefox|automation|ubuntu|
Been scouring the net for something like firewatir but for python. I'm trying to automate firefox on linux. Any suggestions?
[Slicehost][1] ([referral link][2], if you so choose) offers reverse DNS, multiple IPs ($2/month/IP), Ubuntu/Debian (along with others). The only criteria it doesn't support is the ship-a-VM one, but it does let you clone VMs you've set up in their system via snapshots. You could thus set it up once, then copy that V...
If doing something like this under unix your want to (as root) chmod you task and set the s bit. Then you can change who you are running as, what your priority is, your thread scheduling, etc. at run time. It is great as long as you are not writing a massively multithreaded app with a bug in it so that you take ove...
Convert Parallels VM to Virtual PC 2007 VM
|virtualization|virtual-pc|parallels|
I'd like to convert a Parallels Virtual Machine image on my mac into an image usable by Virtual PC 2007. Does anyone know how to do that, or if it is possible?
Note that TRUNCATE will also reset any auto incrementing keys, if you are using those. If you do not wish to lose your auto incrementing keys, you can speed up the delete by deleting in sets (e.g., DELETE FROM table WHERE id > 1 AND id < 10000). It will speed it up significantly and in some cases prevent data from b...
Function Overloading in Excel VBA
|excel|vba|
I'm using Excel VBA to a write a UDF. I would like to overload my own UDF with a couple of different versions so that different arguments will call different functions. As VBA doesn't seem to support this, could anyone suggest a good, non-messy way of achieving the same goal? Should I be using Optional arguments or...
There are many variables that can impact your application's performance. I recommend that you do not instantly assume PHP is the problem. First, how are you serving PHP? Have you tried basic optimization of Apache or IIS itself? Is the server busy processing other kinds of requests? Have you taken advantage of a [PH...
In order of importance: * Counting (needed for loops) * Addition, subtraction, multiplication, division. * Algebra (only really required to understand the use of variables). * Boolean algebra, boolean logic and binary. * Exponents and logarithms (i.e. understand O(n) notation). Anything more advanced than tha...
What does the ',' operator do in C?
|c|operator|
What does the ',' operator do in C?
10 years or more ago this would have been, "Are non-internet applications dead?" There's things the cloud does better than desktop applications, and in those places I'm sure non-cloud applications will become increasingly rare. But there's plenty of applications where you might not want to use the cloud, the benefi...
The expression: (expression1, expression2) First expression1 is evaluated, then expression2 is evaluated, and the value of expression2 is returned for the whole expression.
Is off-the-cloud desktop applications dead?
|desktop-applications|cloud|
Although somewhat related to [this question][1], I have what I think is a different take on it. Is a desktop app that has no connections to the "cloud" dead? I believe that some things are going to continue to be on the machine (operating systems obviously, browsers, some light-weight applications), but more and mor...
Are off-the-cloud desktop applications dead?
|cloud|desktop-application|
It causes the evaluation of multiple statements, but uses only the last one as a resulting value (rvalue, I think). So... int f() { return 7; } int g() { return 8; } int x = (printf("assigning x"), f(), g() ); should result in x being set to 8.
[Subversion][1] with [TortoiseSVN][2]. Like all version control systems, it will sound reasonably complex when you start off, but it's really very simple once you get into it, works well for a single developer, and doesn't require any network access if you don't want it to. Plus, it's free. [1]: http://sub...
64 bit tools like BoundsChecker & Purify
|c++|mfc|purify|boundschecker|
For many years I have used two great tools [BoundsChecker][1] & [Purify][2], but the developers of these applications have let me down, they no longer put effort into maintaining them or developing them. We have corporate accounts with both companies, and they both tell me that they have no intention of producing versi...
You really can't get much easier than [VisualSVN](http://www.visualsvn.com/) for version control on Windows.
Some websites that that specifically address website design patterns are listed below. They do not specifically provide the HTML and/or CSS in order to achieve the desired results, but they do provide examples of live sites that you can, of course, *view source* (or, even better, use [Firebug][1]) on. [UI-patterns][...
Some websites that address website design patterns are listed below. They do not specifically provide the HTML and/or CSS in order to achieve the desired results, but they do provide examples of live sites that you can, of course, *view source* (or, even better, use [Firebug][1]) on. [UI-patterns][2] --------------...
|server|application|ant|jakarta-ee|websphere|ear|
|jakarta-ee|server|ant|application|websphere|ear|
Subversion Management Tools
|svn|linux|subversion|
we have a lot of users running in different shared and solo-owned repositories in Subversion. As part of our work, we do project-shared code and individual work, and we need to control access, ideally on a group basis. Currenly, we use [SVNManager](http://svnmanager.sourceforge.net/) to allow users to manage access ...
|svn|linux|
|linux|svn|
Best way to store a database password in a startup script / config file?
|server|sql|password|security|
So our web server apps need to connect to the database, and some other apps have startup scripts that execute at boot time. What's the best way to store the name/password for these applications?
|sql|security|server|passwords|
So our web server apps need to connect to the database, and some other apps have startup scripts that execute at boot time. What's the best way to store the name/password for these applications, in terms of - security, e.g. perhaps we don't want sysadmins to know the database password - maintainability, e.g. mak...
So our web server apps need to connect to the database, and some other apps have startup scripts that execute at boot time. What's the best way to store the name/password for these applications, in terms of - security, e.g. perhaps we don't want sysadmins to know the database password - maintainability, e.g. mak...
|sql|security|server|passwords|
How do I secure my new web server (Server 2008)?
|security|
I've just put my new server up on an IP address with a domain pointing to it. I need to be able to remote admin it. I've opened the firewall for Remote Desktop and HTTP traffic. Is this going to be secure enough? I guess I should probably rename the administrator user...
|security|
Asynchronous multi-direction server-client communication over the same open socket?
|c#|c++|sockets|
|memory|ptrace|bsd|macos|
|c|macos|memory|ptrace|bsd|
|c|macos|memory|ptrace|bsd|
|c|macos|memory|ptrace|bsd|
|macos|memory|bsd|ptrace|
|macos|memory|bsd|ptrace|
It's a function which is a lot simpler than you think. Though there might be a .NET function already in existence for this, the following function (written in PHP) does the job. It shouldn't be too hard to port it over. function ordinal($num) { $ones = $num % 10; $tens = floor($num / 10) % 10; ...
I am not sure about ASP interface, but you may want to check out [graphviz][1]. /Allan [1]: http://www.graphviz.org/
Using Runtime.getRuntime().addShutdownHook() is certainly a way to do this - but if you are writing Swing applications, I strongly recommend that you take a look at JSR 296 (Swing Application Framework) Here's a good article on the basics: <http://java.sun.com/developer/technicalArticles/javase/swingappfr/>. The...
The only sensible way to do this is to traverse the list with a couple of pointers until the leading one finds the node to be deleted, then update the next field using the trailing pointer. If you want to delete random items from a list efficiently, it needs to be doubly linked. If you want take items from the head ...
How do you know what to test when writing unit tests?
|tdd|c#m|
Using C#, I need a class called User that has a username, password, active flag, first name, last name, full name, etc. There should be methods to Authenticate and Save. Do I just write a test for the methods and do I even need to worry about testing the properties since they are .net getter & setters?
|c#|tdd|
|c#|unit-testing|tdd|