Weekly Dalai Lama Teaching

Knowing one's limitations
If a boss gives more work to do and it is beyond their capacity, then I think they have to say something. They have to say 'This is too much work for me' and talk to the boss and try to reduce it. If that doesn't work, then they may need to look for new work.

"However, at that point let's say that the boss agrees to extra pay, and the employee agrees, then that is a person's decision and there's no cause to complain about overload. But if the boss gives too much work without increase of salary, then this 'over-load' is just exploitation.

The Art of Happiness at Work - Dalai Lama

Tuesday, October 5, 2010

iPhone Backup Directories

LIST OF RECOMMENDED FILE TO BE BACKUP UNDER ANY CONDITION :

Here is the list of folders containing files that can be advantageous to save. If you does not save others then this will do enough.
  1. SMS : Revenue SSH ( Guide ) in the folder / private / var / mobile / Library / SMS and save all the files inside.
  2. Call History : Revenue SSH folder / private / var / mobile / Library / CallHistory call_history.db and save the file.
  3. Password Safari (cookie) : Cookies.plist Save the file in / private / var / mobile / Library / Cookies.
  4. Contact : Revenue SSH folder / private / var / mobile / Library / AddressBook and save files AddressBook.sqlitedb (which will be used for contacts) and AddressBookImages.sqlitedb (which will be used to store the images assigned to contacts). Once restored, simply overwrite the existing files with these.
  5. Private Folder / var / mobile / Library / you can save the contents of everything that interests you maintain, as Mail, Calendar, etc.. Just save all the contents of folders, and then replace it once restored. The system settings are in the folder / private / var / mobile / Library / Preferences.
  6. If you want to save your pictures on your iPhone camera roll (you can do it from My Computer or iPhoto), you can make a backup of the folder / private/var/mobile/Media/DCIM/100APPLE /.
  7. / Private / var / mobile / Library / YouTube - File relative to the YouTube video player
  8. / Private / var / mobile / Library / Calendar - calendar data
  9. / Private / var / mobile / Library / Notes - Notes
  10. / Private / var / mobile / Library / Mail - the Mail application on file
  11. / Private / var / mobile / Library / Installer / TrustedSources.plist and PackageSources.plist - Sources installer personal
  12. / Private / var / mobile / Library / CallHistory - List of calls made / received / missed
  13. / Private / var / mobile / Library / SummerBoard / Themes - SummerBoard Themes
  14. / Private / var / mobile / Library / MxTube - Files relating to MxTube
  15. / Private / var / mobile / Media / MxTube - Videos downloaded from MxTube
  16. / Private / var / mobile / Media / Dcim - Pictures taken on iPhone
  17. There are obviously many other folders to copy, for different applications on our iPhone at which point everyone is obliged to create a backup of what it deems necessary. In any case, almost all files are in / private / var / mobile / Library or alternatively in / private / var / mobile / Media.
  18. Once you copy these folders on the iPhone soon restored, simply change the file permissions to "777", so that the terminal recognizes them as originals: to change the permissions simply select the folder, right click and go to Properties .
  19. Finally, if you have firmware 1.1.2 or 1.1.1 the list of folders will be in / private / var / root / Library /

Tuesday, April 6, 2010

Rsync

rsync -avz /home/petechua/testrsync/ root@192.168.1.7:/private/var/local/pete/testrsync

Monday, March 22, 2010

一念天堂,一念地獄

一念光明就是佛,一念黑暗就是鬼。

这个心,一念的善,就造天堂的因;一念的恶,会结地狱的果。

升天堂,还是入地狱,这是个值得思考的问题。

宣化上人说:"一念光明就是佛,一念黑暗就是鬼。你念念光明就时时都是佛,你念念黑暗 就时时都是鬼。所以佛与鬼的分别,就在这一念之间,一念佛,一念鬼;一念天堂,一念地 狱,所以这一念之中最要紧。"天堂与地狱只在一念之间,若念天堂,有爱便是天堂;若念 地狱,人间处处即炼狱!

一天,信重武士向白隐禅师请教:"真有地狱和天堂吗"

"你是做什么的"白隐禅师问。

"我是一名武士。"信重武士答。

"你是一名武士"白隐禅师大声说,"哪个愚蠢主人会要你做他的保镖看你的那张脸简直 像一个讨饭的乞丐!"

"你说什么"信重武士热血上涌,伸手要抽腰间的宝剑,他哪受得了这样的讥嘲!

白隐禅师火上浇油:"哦,你也有一把宝剑吗你的宝剑太钝了,砍不下我的脑袋。"

信重武士勃然大怒,"哐"地一声抽出了寒光闪闪的利剑,对准了白隐禅师的胸膛。

白隐禅师安然自若地注视着信重武士说:"地狱之门由此打开!"

一瞬间信重武士恢复了理智,觉察到自己的冒失无礼,连忙收起宝剑,向白隐鞠躬道歉。

白隐禅师面带微笑地对信重武士说:"天堂之门由此敞开!"

大乘佛法常说:"是心作佛,是心是佛。"又说:"是心是菩萨,是心作菩萨。"你想升天 堂入地狱是由你自心一念所造的,你心想升天堂,别人没法拖你下地狱;你要下地狱,别人 也无法硬拉你上天堂。

Source - http://fjbbs.fjnet.com/gshi/200907/t20090703_127048.html

Sunday, October 11, 2009

Mounting SMB Directory

sudo apt-get install smbfs smbclient

sudo smbmount //192.168.1.2/Music /home/dbott/music -o username=dbott,password=mysecretpassword,uid=1000,mask=000

Saturday, August 29, 2009

Mounting local HDD

petechua@petechua-laptop:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 15G 6.7G 7.4G 48% /
tmpfs 1008M 0 1008M 0% /lib/init/rw
varrun 1008M 264K 1007M 1% /var/run
varlock 1008M 0 1008M 0% /var/lock
udev 1008M 2.9M 1005M 1% /dev
tmpfs 1008M 232K 1007M 1% /dev/shm
lrm 1008M 2.0M 1006M 1% /lib/modules/2.6.27-7-generic/volatile
/dev/sda3 91G 85G 5.7G 94% /media/Data
/dev/sdc1 73G 65G 8.6G 89% /media/USB_70
/dev/sdd1 699G 695G 4.2G 100% /media/FreeAgent Drive
/dev/sdc2 36G 35G 803M 98% /media/New Volume
/dev/sda2 40G 34G 5.3G 87% /media/OS_Install

petechua@petechua-laptop:~$ more /etc/fstab
# /etc/fstab: static file system information.
#
#
proc /proc proc defaults 0 0
# /dev/sda5
UUID=925f8684-37f6-4856-9feb-6d448238a1ab / ext3 relatime,errors=remount-ro 0 1
# /dev/sda6
UUID=fc25ad13-b03a-419e-a784-28e87a07d742 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
# /dev/sda3
UUID=2A84E93B84E909E1 /media/Data ntfs-3g auto,users,rw,relatime 0 0
petechua@petechua-laptop:~$

Monday, July 6, 2009

Notable quotes from Epictetus


Epictetus (Greek: Ἐπίκτητος; ca. 55–ca. 135) was a Greek Stoic philosopher. He was probably born a slave at Hierapolis, Phrygia (present day Pamukkale, Turkey), and lived in Rome until his exile to Nicopolis in northwestern Greece, where he lived most of his life and died. His teachings were noted down and published by his pupil Arrian in his Discourses. Philosophy, he taught, is a way of life and not just a theoretical discipline.

- All external events are determined by fate, and are thus beyond our control, but we can accept whatever happens calmly and dispassionately.
- Suffering arises from trying to control what is uncontrollable, or from neglecting what is within our power.
- Freedom is secured not by the fulfilling of one's desires, but by the removal of desire.
- Man is disturbed not by things, but by the views he takes of them.
- If, therefore, any be unhappy, let him remember that he is unhappy by reason of himself alone.
- Permit nothing to cleave to you that is not your own; nothing to grow to you that may give you agony when it is torn away.

Monday, March 16, 2009

Wireless on MSI Wind(Ubuntu 8.10)

Luckily, the fix to that problem is pretty easy.

1. As Ubuntu doesn’t have a package of this driver yet, you’re gonna have to fetch it from Debian’s unstable repository. The package is right here, just click any mirror to download.
2. Debian isn’t providing a binary because of the driver’s license, that’s why you got the source code. Install the package by double-clicking on it and then press the install button or whatever you’re supposed to be pressing. Then pop up a terminal and type in sudo aptitude install debhelper module-assistant.
3. Let’s build a binary package of the driver. In the terminal you write sudo m-a a-i rt2860, and module-assistant will do the rest for you.
4. To get online without a reboot, do sudo modprobe rt2860sta next, and you should be able to connect to a network with Network Manager.
5. Let’s make sure the driver module will be loaded again when you’re eventually rebooting, or the next boot after having shut down the netbook. Open your terminal and do sudo gedit /etc/modules, and on the bottom you append a new line with rt2860sta. Then save, and the driver will be forced to load every time during startup.

http://ftp.tw.debian.org/debian/pool/non-free/r/rt2860-source/rt2860-source_1.8.0.0-3_all.deb

Source: http://k.dieplz.net/evolution/2008/11/22/wlan-in-ubuntu-8-10-on-new-msi-wind-u100/