Take Command Of Your BASH Prompt

color_bash_prompt

[Joshua] has put together a list of BASH prompt customizations. The command prompt is used in a command-line interface to show that the system is ready for the next command. Often times this is nothing more than a user name, host name, and working directory:

mike@krusty:~$

[Joshua’s] customization examples can be used to color code the information in your prompt, change what information is displayed, and make the prompt respond differently when an invalid command is typed. A BASH prompt reference is helpful in deciphering what each of these commands do. The easiest simplification is to understand that non-printing characters (such as color codes) are surrounded in escaped square brackets. For example, line 1 is the sequence for Red, line 2 is the sequence for Dark Grey, and line 3 sets a simple prompt to display in Red and all text after that to be in Dark Grey:

\[\e[0;31m\]
\[\e[1;33m\]
PS1="\[\e[0;31m\]\u@\h:\w\$ \[\e[1;30m\]"

Continue reading “Take Command Of Your BASH Prompt”

Harry Potter Marauders Map Realized

21nokia-booklet-3g-group

After reading about cheap wireless for microcontrollers, [Leigh] left a comment about his Marauders map. Much like the Harry Potter version, whoever holds the ‘map’ is able to see the location of the ‘marauders’ within certain bounds. Unlike the magical version however, each person being tracked needs to hold a PICAXE 08M, GPS, and 433.92MHz transmitter: while the map needs a computer running his Python script and a receiver of the same frequency. It has the potential for locating people, but we feel it might be better off in a swarm robotics setup.

Programmable Spring Actuator Legs

[youtube=http://www.youtube.com/watch?v=_g79mOSvSsE]

This proof of concept shows an interesting way of making robotic legs. They are using programmable spring actuators to make these legs function as though they had a “reflex”.  The builder pulls the robot along on a leash. As the leg reaches its limit of backward motion, a signal is sent from the shoulder down to the knee that lifts it, causing it to return to the forward position. A signal is also sent to the opposing shoulder to suppress the lift reflex, keeping them from both stepping at the same time. The resulting motion is very organic feeling. We’re curious how this could be implemented in a robot which moves under its own power.

[via makezine]

Arduino Email Alert

email

The Arduino makes a great platform for alert systems because it doesn’t need additional parts, other than an LED or motor. [Torchris] made email notifier, and used an Ethernet shield to make it standalone. The Arduino polls your POP server seeing if there are unread emails. POP is an incredibly simple protocol, even simpler than HTTP; this made it easy to communicate with, even with little processing power. He hopes to add a servo or serial display to present the data better, but his current system seems to work well. Video of it in action after the break.

Continue reading “Arduino Email Alert”

Multi-screen Video With Ipod

multivid_ipod_multi_sync

[Marco Tempest] has developed some software called MultiVid that allows synchronized video across multiple iPhone or iPod Touch devices. For this to work, all of the devices must be connected to the same WiFi network. Playback can be controlled from any one of the iPhones/iPod Touches or from the Mac running the controller software. There is of course the option of connecting to larger monitors through a video output cable. The app also supports OSC. We’ve embedded the example video as well as a video detailing the software setup after the break.

The client software is available at the apps store and controller software can be downloaded from [Marco’s] website. Both are free which is our favorite price point.

Continue reading “Multi-screen Video With Ipod”

Mozilla Fennec Alpha 3 For Windows Mobile Released

fennec

Mozilla released the latest alpha version of their new mobile browser Fennec for Windows Mobile. It brings many new features and fixes, such as improved startup time and a caching system to help scrolling on a page. They have also added support for a wider range of screen resolutions, and for those of us running an HTC Touch Pro support for zoom via the directional pad has been included in this release. Being an alpha release, it’s still a bit on the buggy side, but is very a promising browser for mobile phones. The final release should give other browsers a run for their money.

Farewell, Hack A Day

eliotvissbw

Now, on the eve of Hack a Day’s fifth anniversary, seems like an appropriate time to announce my resignation. Site founder [Phillip Torrone] published the first post, a red box, on September 5th, 2004. On May 7th, 2005 I took over editorial duties at Hack a Day by publishing one of my favorite projects: [Jonathan Westhues]’ proximity card spoofer. Since then, I’ve run Hack a Day with a number of great contributors over the last four years: [Fabienne Serriere], [Will O’Brien], [Ian Lesnet], and current senior editor [Caleb Kraft] just to name a few. I’ve enjoyed watching the site grow, powered by the constant stream of tips from readers. Whether we were turning hard drives into molten goo or putting our hardware designs into production, it’s been a lot of fun. With all the new talent we’ve brought on recently, I have confidence that Hack a Day will continue to be a great resource in the future.

You’ll be able to find me online running my personal blog RobotSkirts.com and on Twitter as @sweetums. In real life, I’ll still be attending hacker conferences, like the upcoming ToorCon in San Diego, and local Los Angeles tech events like Mindshare and the weekly Hacker Drinkup.

In closing, I’d like to thank you, the readers, for all the support you’ve given us over the years. If it weren’t for all the tips, personal projects, and ideas you’ve sent us, we’d never have made it this far. Thank you.

[photo: Viss]