How to set your Raspberry Pi Screen Resolution

Previously my monitor could not support HD display and it looks awful. So I decided to turn on the safe mode for HDMI. It’s a headache because the font size is big and everything on the page is big. Recently I was using the monitor in the lab and I finally thought of changing the setting. So here’s what I did.

1. Get the list of what’s supported by your monitor:

tvservice -d edid
edidparser edid

2. There are a few modes in the resulting list. Choose one that you want. (For me, i chose DMT (35) 1280x1024p)

3. Edit the config file:

sudo nano /boot/config.txt

Comment out safemode.
#hdmi_safe=1

Find the section about HDMI, uncomment it and set the right group and mode from step 2. If your mode description contains “DMT”, the group should be 2, and if it contains “CEA”, it should be 1, so for me that was:


# Set monitor mode to DMT
hdmi_group=2
# Set monitor resolution to 1280x1024p 60Hz
hdmi_mode=35

Exit the editor with CTRL+X, followed by Y.

4. Reboot:

sudo shutdown -r now

Tadaa!

Raspberry Pi desktop screenshot

Raspberry Pi desktop screenshot


2014-03-20-121606_1280x1024_scrot

Changing Password for phpmyadmin on Raspberry Pi

I happen to forget my password to phpmyadmin because it was months ago since i installed it with my Apache2 web server. I did a quick search on the net and found a forum post discussing about recovering password for phpmyadmin on XAMPP. I haven’t try this on Raspberry Pi because I managed to recover my root password. (username is root!) However this may be useful for future reference:

You may want to edit this file: “\xampp\phpMyAdmin\config.inc.php” for XAMPP on desktop or “/etc/phpmyadmin/confid.inc.php”

change this line (for XAMPP):

$cfg['Servers'][$i]['password'] = ‘WhateverPassword’;

to whatever your password is. If you don’t remember your password, then run this command in the Shell:

mysqladmin.exe -u root password WhateverPassword

where ‘WhateverPassword’ is your new password.

However I couldn’t find the line for Raspberry Pi. Instead, this may be helpful:
/* Uncomment the following to enable logging in to passwordless accounts, after taking note of the associated security risks. */
// $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;

How to do Raspberry Pi Backup

It is really important to do back up to your SD card because anymore addition or configuration will cause your previous configuration state to disappear and you have to redo everything!

I am in the state where I am partly successful with my experiment but unhappy about the framework used. So it’s time to do a back up and modify the files in the card for my new experiment.

I thought I have written a post regarding this but it seems like I have not. So, just for my future reference, here are the steps to do the back up. It’s pretty simple.

  1. If you are using Window, download Win32 Disc Imager (win32diskimager-v0.9-binary) here.
  2. Unzip the file and open the “Win32DiskImager” application.
  3. To write a back up file to your laptop/ PC, select the location where you want the backup file to be by clicking the “open file” icon. WARNING: it is going to be the size of your SD card, e.g 8Gb for my case.
  4. Type in a name for your backup file. Check that everything is correct.
  5. Click Read.

It takes a while to complete. Once it is done, it will prompt you and “Done” will be written at the bottom left.

 

Capture

To write a backup file to your SD card, do the same thing. Select the back up file and right device, click Write. This will overwrite the SD card with the backup image.

Enrichment Issues

I spent nearly 20 years of my life doing things that I am asked and expected to do. I learned things that I am supposed to learn, which everyone around me expected me to learn. I was (am) living in a socially engineered world. I was expected to do well in my academic. The system of meritocracy has confined my full potential instead of unleashing it.

I have never (or little known to have) study something for the sake of learning something new. Perhaps, I forgot that I actually did that when I was younger. When I was hungry for knowledge, when I was curious about the world, when I knew I would be happy to learn new things.

I am trying so hard to be back to that period of time, to that kind of mindset which would constantly keep me in the mood of learning. But here am I in a university, feeling inadequate in every field, unable to find time to improve on things that I WANT TO. I failed to enrich myself with my passions. There are times when I don’t even know what I can be in the future, nor what I am good at. My time is occupied by things and curriculum planned for me. No one compensates my 20+ years and yet My parents and I are paying for the loss of my precious time.

Perhaps that is why those successful entrepreneurs and geniuses are drop-outs from school. Of course, drop-out does not guarantee you a successful life.

But since I have already paid the bill, I shall continue this journey for 3 more months. I still have to study for my quiz tomorrow. Make full use out of those plans to minimize the loss for myself.

Life of a puppet. How sad.

 

 

 

Socialize

I don’t usually talk much and when I do, I talk quite a lot.

Sometimes when I got worn out by work or project, I either get very excited to talk or I can’t think of anything to talk about at all.

When talking to senior or a group of people, I would rather be a listener. It’s a kind of respect but it seems to the cause of been labelled as “quiet and shy”.

… (I literally can’t think of what to write now, things slipped off my mind)

 

其实有时候,我真的只是想分享好处,而不是需要利用他人。我当然有选择,但是我想到谁就问谁。我觉得谁值得,我就给谁。 不需要太在意。

 

Trading – Buy/Sell

Hey, it has been a while since I last posted something here. Life has been hectic as ever but I think I am still slacking around since I have the time to hang out in SmallWorld.

SmallWorld is an online virtual world game where you can design your character and decorate your houses. It has a lot of online players so you can interact with them. I like its idea of “everyone can be a programmer, artist, farmer, or even trader”.

I get to know about smallworld 4-5 years ago. I was playing like mad during my Poly internship period as I would skip lunch just to make sure my plants don’t dehydrate. Now that they have develop an app called Smallworld Sidekick which allows you harvest and water your plant anytime and anywhere with your smart phones.

So I left the game after I graduate from Poly, leaving my plants to dehydration for almost 3 years…

Recently, I came back to the game because I was thinking of having a screenshot of a library space for a project. There is another option – Yoville, which I was quite obsessed about it too. Sadly, Yoville is going down in March. My spaces are quite nice I would say. I will take some time to revamp it and spend all my virtual cash like no tomorrow. Of course, screenshot them for memories. :) More to come! I would say I really like the game and its graphic a lot. it’s really sad that this game is coming to an end soon. Please, it is much more fun than Flappy Bird or Candy Crush! :( Those meaningless games!

yoville

My Living Room

yoville

My bedroom

yoville

My kitchen

Anyway, back to Smallworld, you can earn Gold to purchase anything including new homes. I was lucky to have found a nice place to be the “library” and as I was browsing around, I saw some nice spaces at reasonable low price – A 2 storage villa at $3.4k (U.P $8.9k). I bought it after having some thoughts. Then I put it up for sale just to try my luck. I purchased another space at $2.5k (oh i forgot what it is) and put it up for sale too. I was lucky that a few days later, those spaces were bought at $5k and $3k. I earned quite some Golds!! I was overwhelmed with the property selling excitement and so I spent almost 20k buying some other properties. Now I am owning a total of 6 extra houses including the following:

  1. A Hollywood Mansion – $6k, not sure if I want to sell it because it’s really nice. With a swimming pool.
  2. A Prairie Farmhouse – a double-storey house with outdoor
  3. Rinse Salon – a perfect space for selling stuffs, with outdoor too
  4. Century Apartment lvl 22F – with balcony overlooking the whole city
  5. Coop 10A – a small and cosy space with balcony too
  6. Quattro Room – my current library space. urgh, too spacious for my furniture
  7. My default room – not too bad. I decorated quite a lot but I forgot to printscreen it before removing stuffs from it. T.T

smallworld villa

Anyway, I had another account… and I bought another villa at $3k and intended to do a quick resale but the owner is so kind that he gave me some furniture… so i felt bad to sell it. Duh.

But currently all those assets have not been sold yet… :/ I guess i bought them at too high price and now I can only lower down my profit margin.

There is a Trading Post in SmallWorld where everyone can go there to find buyers or sellers. There are a few things that I learned from there. I think it’s quite fun and applicable to real life too (since those players are real).

  1. Both seller and buyer – Know your price, highest to lowest.
  2. Seller – don’t shout your price if you think it is high, get the interested people to ask first.
  3. Buyer – say a ridiculously low price after your seller gave a price. Say you saw it from the forum – if it is true, they will lower it. If it is not, get the price lowered down as much as you can.
  4. Seller – don’t get conned by those price mentioned by buyers. Keep asking around. People will flock around you giving you better offers.
  5. Wear a bird suit. Lol! Attention seeker. Show that you are rich. But it turns out that everyone wants to buy my suit. :( I don’t want to sell it though!
  6. Seller – Fast deal. Reduce the price to an acceptable amount. If buyer doesn’t want, forget it.

Well I do hope that my spaces will get sold soon. :( So worried! I haven’t receive my Golds from those stupid offers yet. D: Now I have little cash!!