Use the ALT key in a VirtualBox Windows VM
In Ubuntu your ALT key is locked when you're working in VirtualBox. There are two workarounds for this:
- Press the Windows key in addition to the ALT key
- Run the attached registry file and restart Windows. Your left Windows key is now the ALT key.
- If you'd like to map keys differently, here are further instructions Show archive.org snapshot
Related cards:
Workflow: How to use a key management service to encrypt passwords in the database
This is an extract from the linked article. It shows an approach on how to implement encrypted passwords with the AWS Key Management Service (KMS).
For most applications it's enough to use a hashed...
How to use Git on Windows with PuTTY
- Get "PuTTY Link" and "Pageant" (an SSH key agent) from the PuTTY download page.
- Run
pageant.exe
, find its icon inside your system tray and add your SSH key. - Open up a `c...
How to fix: Unable to read files from a VirtualBox shared host folder
When you want to copy/move from a shared folder (on Windows guests, for example) and it fails with absurd error messages (lots of text or an error about the target being read-only), you are probably running on Guest Additions that no longer match ...
Connect to a VirtualBox guest machine over the network
You must reconfigure the guest so it will get its own IP address:
- Shutdown the guest
- In the guest's VirtualBox settings, choose Network and switch the network adapter type to Bridged
- Restart the guest
- Read the guest's IP address from ...
Use the "retry" keyword to process a piece of Ruby code again.
Imagine you have a piece of code that tries to send a request to a remote server. Now the server is temporarily not available and raises an exception. In order to re-send the request you could use the following snippet:
def remote_request
...
Use a Bash function to alias the rake command to Spring binstubs or "bundle exec" fallback
There are different ways to run rake:
- On Rails 4.1+ projects, you have Spring and its binstubs which dramatically improve boot-up time for Rake and similar. You need to run
bin/rake
to use them. - On older projects, you want to run "bundle ex...
Xfce: Take a screenshot with the "Print" key
- Go to Settings Manager / Keyboard / Application Shortcuts
- Add a shortcut for the Print key that calls
xfce4-screenshooter -f
This may be configured for you by default.
Use the new Google Images as a German user
In july Google announced a new version of their image serach tool Google Images. But you won't find it on the German google.de site. To reach the new - as I may sa...
Rails always tries to use a layout with the same name as your controller
If you have a FooController
and also have a layout app/views/layouts/foo.html
, Rails will use this without being told so.
This is super convenient except never.
How to enlarge a VirtualBox VDI disk file
VirtualBox does not offer anything for this task -- you need to do it yourself. It's not that hard:
Get more disk space
- Add an extra virtual hard disk to the machine with the disk size you want to achieve.
- Get a Linu...