Archive for the ‘coolstuff’ tag
This is off-topic for this venue and the fact that I decided to include it says a lot about how strongly I feel: I just watched the trailer for the upcoming movie Hyde Park on Hudson, starring Bill Murray as F.D.R., and based on that alone, I am hereby predicting that Mr. Murray will win an Academy Award for the performance.
If you aren’t willing to learn,
No one can help you.
If you are determined to learn,
No one can stop you.
Ted Neward (@tedneward), [+] Wed 22 Aug 2012 14:52
Visual Studio 2008 used to have a Emacs key mapping scheme that you could pick from the Options dialog under the Keyboard options. Visual Studio 2010 did away with that key mapping scheme.
But those emacs enthusiasts among us who use Visual Studio should not fear… There is now an Emacs Emulation extension available for VS2010 that you can install via the Extensions Manager under the Tools menu.
To install the Emacs Emulation extension, follow these steps:
- Open Visual Studio 2010
- Go to the Tools menu
- Select the Extension Manager
- On the Extension Manager dialog, select Online Gallery
- Search the Online Gallery for Emacs (top right)
- Select and install the Emacs Emulation package
- Restart Visual Studio 2010
- From the Options dialog, the Emacs key mapping scheme is now available
Beyond the default Emacs key bindings, the ones that I find most useful are the following:
|Edit.EmacsExtendedCommand||ALT + X||Places the cursor in the Find/Command box on the Standard toolbar.|
|Edit.EmacsFindReplace||SHIFT + ALT + 5||Displays the replace options in the Quick tab of the Find and Replace dialog box.|
|Edit.EmacsSwapPointAndMark||CTRL + X, CTRL + X||Moves the cursor to the current mark in the location stack and moves the current mark to the location where the cursor mark was when the command was invoked.|
|Edit.EmacsCloseOtherWindow||CTRL + X, 1||When a window is split, this shortcut closes the pane that does not have focus.|
|Edit.EmacsSplitVertical||CTRL + X, 2||Splits the current document in half vertically. The current line of code is centered in each window.|
… and that’s all, folks!
There is a little known amusement in Emacs that you can use on your loved ones:
- For maximum effect, ensure the loved one is looking over your shoulder.
- Open emacs
- Enter the command:
- Provide your loved one’s name and …
- Voila! Watch the magic happen…
To find out more about it, describe the function (
C-h v animate-birthday-present) or look in
animate.el. Have lots of fun…
Script Junkie | Introduction to Complex UIs Using jQuery UI
Dabeaz: Class decorators might also be super!
Python’s super() considered super! « Deep Thoughts by Raymond Hettinger
VMware Communities: Eth0 disapears in VMware and Ubuntu…
Set up a minimal Ubuntu server in VirtualBox « The Well-Tempered Studio
How to Use the Django Sites Framework
AtomEnabled / Developers / Atom Syndication Format
Cloning and Copying VirtualBox virtual machines « Stuart’s Notes
How to start VirtualBox automatically? No “boot.local&q (View topic) • virtualbox.org
Start a VirtualBox VM as a Service – Ubuntu Forums
How to Setup VirtualBox as a Service in Linux [Glump.net]
A clever person solves a problem. A wise person avoids it.
The Geek Manifesto
Dorophone: Deep Emacs Lisp Part 1
EmacsWiki: Zen Coding
Post to WordPress blogs with Emacs & Org-mode | Nethazard.net
Kristian Kristensen’s Blog » Installing Clojure, SLIME in Emacs Via ELPA on Windows With a Bit on Swank
Ben’s Journal: 11 Concepts The Emacs Newbie Should Master
The Cicada Principle and Why It Matters to Web Designers » HTML & CSS, Layout » Design Festival
Jetpack Flight Log » io-language
Dynamic Binding in C# – CodeProject
Plain English Explanation of Big O Notation ~ C for Coding
Understanding Parallel Computing: Amdahl’s Law | Linux Magazine
ConfigParserShootout – PythonInfo Wiki
Vivek Haldar : The levels of Emacs proficiency
JSON Interpreter – ANTLR 3 – ANTLR Project
Make: Online | Why the Arduino Won and Why It’s Here to Stay
Work with Git from Emacs
Dabeaz: The Superboard Takes Pycon!
How this site was created
Brushing up on Computer Science Part 1, Big O » Victus Spiritus
VIM as Python IDE | Alain M. Lafon
Python and vim: Make your own IDE | tail -f findings.out
There is a really great write up on how to install and maintain the latest Oracle VirtualBox package on a Debian-based Linux distribution.
Here are the steps in a nutshell:
Add a line to the
deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free
Download and add the Oracle public key:
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-get update sudo apt-get install virtualbox-4.0
That’s basically it… Do refer to the link above for extra details and some caveats.
I have an older laptop that runs Ubuntu Linux and one of the issues that comes up regularly is that Ubuntu releases a new version every 6 months and I usually flatten the disks on that machine and do a fresh install. The base system is great and very usable, but there are several packages that I install manually after the fact, most of them being programming tools. There is a quick way for you to list out all installed packages and then restore them after upgrading and I will cover that technique here.
Note: The instructions listed here are for Debian based distributions that use .deb based packages.
Backing up a list of installed packages
In order to list out all installed packages and save them to a text file, you can do this from the shell:
$ dpkg --get-selections > installed-packages.txt
Let’s deconstruct the above command:
dpkgis the Debian package manager
--get-selectionsis the parameter or action that lists all the currently installed packages. You can also pass a pattern to this action to generate different types of package lists. Look at the man pages for details.
> textfilename.txtwill redirect the standard output to the text file specified.
Restoring the list of installed packages
When you need to restore the installed packages from a previous state, you can run the following command from the shell:
$ dpkg --set-selections < installed-packages.txt
The command above is a little different and those differences mean:
--set-selectionsis the action that sets the package selections using a file read in from standard in.
< textfilename.txtwill read the contents of the file and send them to standard in.
Backing up and restoring your package installation list is a really simple procedure in Debian based distributions. You can even script it out and run it on a schedule and then save it to a cloud storage service such as Dropbox. Let me know what you think and if you have a better process.