There are a few different ways how to program ATTiny microcontrollers – lovely little chip with so much potential. I tried programming with Arduino Uno, but the solution was too clumsy with lots of wires connected to the breadboard from Arduino. Then I remembered that I have USBTinyISP and apparently it is one of the best ways to program these chips.
My highly anticipated 3D printer has finally arrived! I bought it from eBay as a fully assembled device, just because I didn’t want to bother assembling it myself or looking for parts to build from scratch. I was hoping it to be plug and play, but it turned out to require a bit more work to get it working.
I received a few Arduino touch sensors from DealExtreme just because they were dirty cheap and I have a few ideas where I could use them as device power switches. There is probably an easier way to build a touch sensor for Arduino without that many additional components, but let’s see what we can do with this cheap sensor for just $2.6 or less than £1.7.
There was a lot of excitement in the hardware hacker community back in May 2012 when VIA announced APC.IO – a $49 all in one Android PC. I was excited too, but my excitement quickly faded away when I received my two APC’s a few weeks ago and booted them up…
Forwarding Arduino from Windows host to Linux guest is straightforward, just select it from the list of available devices:
Once that’s done, the device will appear as /dev/ttyUSB0. The only problem is that file permissions for the device are 660 so you won’t be able to access the device unless you are root or set the permissions to 666 with
sudo chmod 666 /dev/usbTTY0
Note, that you would have to do this every time you forward the device or start the guest VM.
A more elegant solution exists (at least in Ubuntu). Just add yourself the the dialout group:
sudo adduser your-user-name dialout
Reboot your PC and you will be able to access the serial port without anything extra just by forwarding it to the guest Linux OS.
Stumbled over this strange problem with Ubuntu and sound muting using command line interface (CLI). Everywhere on the internet I found that it can be done with amixer:
amixer sset Master mute amixer sset Master unmute amixer sset Master toggle
For some reason, muting works fine, but unumuting or toggle has no effect. Upon further investigation I noticed that by muting Master channel, “PCM” and “Master Mono” channels are muted too. Unmuting Master does not unmute those two channels. I could have solved this issue by running a bash script that mutes the sound with
amixer sset Master mute
… and unmutes all channels with
amixer sset Master unmute amixer sset PCM unmute amixer sset "Master Mono" unmute
… but what fun is that? You can however mute and unmute with pactl. This requires just a single command line per action:
pactl set-sink-mute 0 1 pactl set-sink-mute 0 0
Ubuntu Unity changed the way notification icons are handled and StatusIcon object no longer works for Mono and C#. In order to make it work you have to use ApplicationIndicator object with newer version of Ubuntu. It seems easy enough when you know how to do it, but I couldn’t find a full example anywhere on the internet. Here is one now.
After being a customer of JaguarPC hosting service for almost 7 years, I finally decided to move away from them. I wouldn’t recommend them to anyone for 3 main reasons.
Lack of loyal customer care
I had been using their services for quite a while. Hosting is a very competitive business and as with all businesses, prices seem to drop over time. JaguarPC in fact did drop the price of my hosting packaged back in the 2009, but they failed to notify me about the change. I was paying about 25% higher price for 3 years.
Reward points without a reward
They also have this reward points system. Over the years I accumulated 4758 of them. Sounds great, but there is no way of using those points!
File size limit
They have about 150MB file size limit on their shared hosting accounts. They claim that large files affect their server stability on shared hosting plans. This is such a stupid reason. They are running Linux for their shared hosting plans and I’ve never heard that large files could cause stability problems on this operating system.
To sum everything up, JaguarPC feels like a dinosaur in the age of Internet. I would recommend to avoid them at any cost.
I received a Seagate 7200.11 hard disk in a BSY (busy) state. The hard disk drive spins, but it’s completely invisible to the BIOS. Apparently all these models are affected by a bug in the drive’s firmware: ST31000340AS, ST3500320AS, ST3750330AS and others too.
I found this very well written guide on how to fix the BSY state on Seagate 7200.11 drive. I needed some sort of serial TTL adapter to hook up to the drive’s serial port, but didn’t have one at hand. Then I remembered that I have an Arduino clone Freeduino lying around and I knew that it already has a FTDI chip that does the USB to serial conversion for the Atmega chip. Ok, so it’s not technically Arduino AVR chip used to fix the drive, just the board.
So I got myself this neat little tablet and as you would expect from a budget device, the stock ROM is a complete rubbish. Custom ICS ROM fixes the following issues:
- Gets rid of all the Chinese apps, folders and media files
- Allows installation of any app from the Google Play store
- Sorts out touch screen edges, because it was acting weird with stock ROM when I was putting fingers close to any edge
The installation is a lot easier compared to the Xoom ICS upgrade that I wrote about a while back. Essentially you need 4 things:
- Custom ROM
- LiveSuitPack v1.09 (it has English language support)
- Windows computer (I did this on a Windows 7 x64)
- LY-F1 tablet that has 1GB RAM
It should take you about 15-30 minutes so take a cup of your favourite beverage (coffee, tea or bear?) and lets begin.