2014年12月25日 星期四

JSON

src:

[S1] http://zh.wikipedia.org/wiki/JSON
[S2] http://www.jsoneditoronline.org/

notes:

[1] JSON is identified by
 var : val
[2] JSON could express the array
 [... ] , [... ] , [... ]
[3] utility could refer to [S2].


2014年12月23日 星期二

Cookie & Session setting in PHP

src:

http://support.qualityunit.com/021373-How-To-Enable-Session-Support-for-PHP


notes:


----------------------

How To Enable Session Support for PHP?

The session support can be turned on automatically at the site level, or manually in each PHP page script: Turning on session support automatically at the site level we have to modify some setting in php.ini file. you can get php.ini file in folder you install PHP. To your sessions you have to set or reset following parameter in your php.ini file
Define path to save sessions
session.save_path = "C:\php\sessiondata\"
Whether to use cookies.
session.use_cookies = 1

Name of the session (used as cookie name).
session.name = PHPSESSID

Define Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0

;The path for which the cookie is valid.
session.cookie_path = /

The domain for which the cookie is valid.
session.cookie_domain =

 Handler used to serialize data. php is the standard serializer of PHP.
session.serialize_handler = php

There are some more setting which may be used to modify your Sessions. For more  Details refer php.ini
support manually in each page script:
 Call session_start() funtion.

2014年9月1日 星期一

iostat

src:
http://sebastien.godard.pagesperso-orange.fr/index.html

notes:

------------------------
- Utility for IO statistics

2014年7月24日 星期四

What : Rest & Restful

src:

mypdf:
https://drive.google.com/file/d/0B543p5wfySTQUlB5OGp2LU54QTQ/edit?usp=sharing

notes:


-------------------------------------------------------

2014年7月21日 星期一

Bit, Byte, KB, MB, GB, TB , PB, EB, ZB, YB

src:
http://blog.miniasp.com/post/2010/04/08/unit-information-Bit-Byte-KB-MB-GB-TB-PB-EB-ZB-YB.aspx

pdf:
https://drive.google.com/file/d/0B543p5wfySTQdkpwOHJDbXhjYkk/edit?usp=sharing

notes:
14'7/21:
PB=1024TB

2014年7月12日 星期六

reset Linux root password

src:
http://blog.miniasp.com/post/2012/06/12/How-to-reset-root-password-for-Ubuntu-CentOS-Debian-FreeBSD.aspx

notes:

--------

如何重設 CentOS 的 root 密碼
標準作業流程:
  1. 進入 GRUB 開機選單,選擇預設的開機項目即可,直接按下 e 進入開機參數編輯視窗
  2. 找到 kernel 開頭的這一行(通常在第二行),並按下 e 編輯這一行
  3. 在此行最後面加上一個空白字元與 single 字串,並按下 Enter 鍵確定並回到 GRUB 開機選單
  4. 最後按下 b 開機,接著即可免密碼以 root 身份登入 shell

2014年6月30日 星期一

How To Write Linux PCI Drivers


src:
http://galileo.phys.virginia.edu/~rjh2j/l2beta/software/pci.txt

mypdf:
https://drive.google.com/file/d/0B543p5wfySTQamN1ODIyQ09wN00/edit?usp=sharing


mynotes:



----------------------------------

2014年6月12日 星期四

Gmail Tip: Search by built-n label

src:
http://lifehacker.com/204793/gmail-tip--search-by-built-in-label

notes:
14'6/12 : good for search w/ dedicated label


----------

Gmail Tip: Search by built-in label

Gmail Tip: Search by built-in labelSEXPAND
Sure you can make your own labels in Gmail, but the system has a few baked in you can use to search your mail. The Google Operating System weblog lists these special labels Gmail automatically applies to messages, like "chats," "sent" and "inbox." Use the label operator and these instead of memorizing various advanced search operators like this:P
label:inbox - search only your Inbox.
label:star (label:starred) - search only your starred messages.
label:draft (or label:drafts) - search only unfinished messages.P
label:sent (or label:sentmail, label:sent-mail, label:sent mail )- search only sent mail. It may be useful to restrict your search only to messages you've sent, or only to messages you've received if you add a minus.
label:all (or label:allmail, label:all-mail, label:all mail )- search all your mail, including messages from Trash (label:trash) and Spam (label:spam).
label:read and label:unread. Restrict your search only to read mail or unread mail. For example, to find all your sent messages that have unread replies, you can search for label:unread label:sent.
label:voicemail (or label:voicemails ) - search only the voicemail received from a Google Talk user.P
This is all well and good, but I usually search by person using the to: and from: operators a whole lot, too. P
Hidden Labels in Gmail [Google Operating System]
21 10Reply
Adam Pash started this thread
10/03/06 8:23am
Um... not sure if my comment went through. Was saying that if you check out Gmail'sAdvanced search page, you'll see that you could always search the trash, inbox, spam, etc. using the "in:inbox" operator. You can also search read/unread using "is:unread". It's sort of nice to see that Google's a bit lax on the search terms, though, since it can be hard to remember every operator everytime you want to make a complex query.
Adam Pash started this thread
10/03/06 8:14am
Adam Pash started this thread
10/03/06 8:23am
major disaster started this thread
10/03/06 12:57pm
applegrass, supposedly, you should be able to do that by searching this way: in the "doesn't have" field, type label:label name for each label you have, separated by OR. In theory, it should exclude all emails with any label. However, in practice, it's cumbersome if you have a lot of labels. More importantly, when I'ved tried this in the past, it hasn't worked (still identified many labeled emails).
I don't know why there isn't a simple way to do this, though. It seems like it would be a pretty easy thing for Google to implement. In any case, I've just gotten into the habit of making sure everything is labeled in some fashion so I can't "misplace" anything (and for things that don't go anywhere, I just have a "random" label as a placeholder till I decide to do something more specific).
bovious started this thread
10/03/06 7:02am
applegrass started this thread
10/03/06 10:37am
jonezy started this thread
10/03/06 12:42pm
Prolific Programmer started this thread
10/03/06 2:34pm
batman697 started this thread
3/24/07 5:38am
batman697 started this thread
3/24/07 5:50am