MortalPowers, Inc. Logo
Exploit your mortal powers.

Latest Photos
Unreal Tournament Map of old HouseUnreal Tournament TempleWinter StreetPirate ManForest Wedding Panorama

Sending CTRL + ALT + Del with rdesktop (by PeEll)2009.06.18

Typically with remote desktop clients there are custom keyboard shortcuts for sending the ctrl+alt+del keyboard combination. They do this because this combo typically is captured and used by the client Operating System. I made this assumption when using rdesktop on linux, and it took me a little while to search and to find out that this isn't the case. The client rdesktop under linux passes ctrl+alt+del directly through to the server, so there is no alternative shortcut needed.


comments | permalink

Capture Single Frame from Webcam at the CommandLine (by PeEll)2009.06.17

This technique requires ffmpeg as well as a webcam that is properly supported under linux. For this example I will assume that your video shows up as /dev/video0, but you can check by unplugging your webcam, running ls /dev/video*, and then plug in your web cam and run it again. If a new line shows up, this will be the device representing your webcam.

To collect a single frame of video, run:

ffmpeg -t 1 -f video4linux2 -s 320x240 -i /dev/video0 -r 1 -f image2 ~/camera%05d.png

comments | permalink

Time-Lapsed Web Development (by PeEll)2009.06.16

I recently did some work on a Yahtzee program I wrote about 5 years ago. Before starting, I decided to screen capture the entire process. Then I time-lapsed the entire process. I've broken down and decided to offer a Flash version, in addition to the normal Theora/Vorbis version.

Other Ideas

Perhaps next time I will film myself as well as the screen and provide a split-screen view.


comments | permalink

HTML5 Video in Firefox 3.5/3.6 (by PeEll)2009.06.15

I have recently found an easy way to install and run Firefox 3.5, Firefox 3.6, and other versions of Firefox in a standard managed way. In order to do this, add the following rows to the /etc/apt/sources.list:

How To: Get current layout object on Android (by PeEll)2009.06.14

Android development is a little unclear if you need to get access to an object representing a layout loaded from a .xml layout file. The way to accomplish this is to use a LayoutInflater. The purpose of this class is to instantiate an object capable of openening the .xml file via its reference integer and returning a reference to the in-memory Layout object.

Example

LayoutInflater inflater = getLayoutInflater();
LinearLayout l = (LinearLayout) inflater.inflate(R.layout.main,null);

comments | permalink
View Old News