4
18
2013
161

Display UTF-8 Symbols in Windows Command Console

By default Command Console use GBK as code page on Windows platform, which cannot display correct UTF-8 symbols outputed from go programs. To solve this, just change the code page to UTF-8 and select proper truetype font.

 

chcp 65001
Category: Utility | Tags:
3
30
2013
6

Gnome Shell Slows Down

Recently it's getting lower to login gnome after I hit Enter. At first I thought it's due to my poor hardware or bad heat sink, and didn't care about it.

 

Then I found something is not quite right after reading a post stating similar problem, so I'm not alone.

I followed instructions in the reply and check my log cache:

 

cat ~/.cache/gdm/session.log | grep ERROR

 

Within the output 3 gnome shell extensions were caught: Shellshape, Windowoverlay icons and Workspaces to dock.

It's getting a lot faster when they are disabled.

Problems still exists with chromium, on which I've not got a clue.

Looking forward to Gnome 3.8~

Category: OS | Tags:
2
17
2013
7

Catenation

cat `find . -name "*.go"`

Category: Utility | Tags:
2
5
2013
7

SD Card Boot Mode

SD Card Boot Mode is one of my favourite features about RPi, which means by inserting a card with an complete bootable os image, it just runs from there, and in the meanwhile any modification you make when interacting with it is written back into the kernel in the card.

This is much unlike other boards for development loaded with NAND or NOR flash, where SD Card is only for rescue for bare-board. This is the key that makes it extremely easy for us to:

  1. Try different os images: just dd it and you're done
  2. Carry your unique distribution around anywhere you go
  3. Backup your sophisitated configurations

A late tip: When you can not interface it, consider adapter.

For example, if you utilize the Micro SDCard from cell phone just as I do with RPi, you can grab a card adapter instead of buying a new real SDCard.

Category: Embeded | Tags:
2
4
2013
5

RPi Keyboard: UK -> US

RPi comes from UK and is pre-configured British by default, which makes people using US standard hardware unable to say hello world in C, 'coz # symbol is a currency unit.

To fix it.

sudo rasp-config

And start experimenting.

Tip:

  1. The config interface will showup automatically for the first time RPi boots
  2. A detailed article
Category: OS | Tags:
2
4
2013
92

Inputs and Outputs of Raspberry Pi

My little bro helped me obtaining power cable with MicroUSB port and HDMI connection line, so that I can see with my eyes how my RPi short for Raspberry Pi operates.

It just works.

Amazing!

Both USB keyboard bought from our administrator and mouse from my notebook work out of box, supporting hot PnP.

Viewing from three seperate means including serial, cli and gui simutaneously gives me a deeper impression of software, firmware and baremetal. It's like seeing the same thing from at different levels or angles.

Oh, I love my Pi.

Category: Embeded | Tags:
2
4
2013
6

A bite of Mongo

I've heard Mongo for a long time, yet didn't have the chance to try it.

As an excellent Not Only SQL tool, it's very different inside and to some extent similar outside comparing to relation based databases.

The setup is very simple and straight forward. Also the languages it supports make a long list, including:

  1. go: the language I love
  2. c#: the language my project requires

Some concepts are new to me and I gotta be familiar with regex syntax.

So far so good: the project goes well and I can get the data I expect.

A lot more to be explored along the way with the development as the requirement calls.

Category: Utility | Tags:
1
31
2013
6

Serial Login Console for Raspberry Pi

Connection is half piece. The other one is enabling login console via serial connection, which is disabled by default in earlier image versions for reasonable considerations.

Edit /etc/inittab in SD card's root system and uncomment the T0:23... line.

Raspbian wheezy image has already enabled login console via serial connection. Instead, you should comment the respawn line if you want to serial connection into other usage.

P.S. If there's no way, yet, to login like my situation here, a dedicate SD card reader can help.

But the reason why I can't log in via serial is another story:

  1. There's something wrong in my card hardware which cause it took quite a few miniutes to get into login prompt
  2. There's a little difference between win32diskimager and dd that I've got no idea about

When booting I was prompted with:

Debian GNU/Linux wheezy/sid (none) ttyAMA0

(none) login:

It seems that pi is not recognized or detected.

I solved this by changing another card, re-writing the image and things went well, as expected.

Category: Embeded | Tags:
1
31
2013
6

Serial Connection for Raspberry Pi

I saw in Raspberry Pi's guide manual that it supports communication via serial port.

But there's no standard COM interface on the board.

The answer is UART standing for Universal Asynchronous Receiver/Transmitter, provided via a group of GPIO pins, from which TTL signals can be converted into USB via a small circuit like CP210x, FTDI232 or PL2303.

I choose CP210x that's said to be faster as well as more reliable.

Remarks

  1. Pi's RXD pin connects to converter's TXD pin and vice versa, or else nothing happens
  2. Appropriate driver is needed for the converter, perhaps manually
Category: Embeded | Tags:
1
31
2013
6

Raspberry Pi arrived

I'm exited on receiving my Raspberry Pi bought on Taobao.

Model B ver2.0 with 512M memory.

Category: Embeded | Tags:

Host by is-Programmer.com | Power by Chito 1.3.3 beta | Theme: Aeros 2.0 by TheBuckmaker.com