2012年5月17日 星期四

TED:David Kelley: How to build your creative confidence

It is nice to hear David Kelly speech, but nothing really new if one is already familiar with d school design thinking. Talking of design thinking, I have recently feel that something is seriously missing in the methodology. I don't where is wrong, I just feel that something is not right.

Feeling of doubt.

I think it is because in some of the data point I have recently gather, the result is false, while the process is right. So wondering about design thinking: whether there is some premise that was required but unmet?

Otherwise, how do you explain the gap?





Some note related to the speech:
Fear of judgement.
Albert Bandura; psychologist about phobia http://en.wikipedia.org/wiki/Albert_Bandura
Step by step process to get comfortable with snake.
-> Self-efficacy, sense that one can change the world.
Take people-> series of step -> transformation
Commit to this point, regain their creative confidence.


Programming Working Journal

Check-in: Tired, but fine.

Actually:
20:40-23:26 (-20 min nap) Great! Make some major progress with term you didn't know before : )
Schedule:
20:40-23:40 (3h) Google unknown term/method of the log in system, rewrite it.
Trim; md5; function, false-true variable

Reading https://github.com/simfatic/RegistrationForm/blob/master/source/include/fg_membersite.php

Need to understand the following, get a quick google search, and practice to use it to write code:
- define
 http://www.w3school.com.cn/php/func_misc_define.aspdefine("Aaaa", "Hello world")
echo "Aaaa";
-> appear Hello world
- array_push
-> add multiple things to the end of array
array_push($a, "tik", "nik");
-> $a([5]->tik, [6]->nik)
print_r($a)-> return everything of the $a array!
- print
To be exploredhttp://php.net/manual/en/function.print.php
- $bret?sometimes refer as $bRetMight be the same thing as boolean return ($breturn)
- $this->sitenamehttp://stackoverflow.com/questions/1523479/what-does-the-variable-this-mean-in-php"The pseudo-variable $this is available when a method is called from within an object context." from php.net
It is used under an object oriented environment.I guess my question was, why do we need $this.
Then, it make sense to use it as the following show: 
function a($x){ return $this->error_hash;}
As the function can be later been called within a class.
related: difference between self and $this http://stackoverflow.com/questions/151969/php-self-vs-this
more on object oriented programming:
http://www.phpfreaks.com/tutorial/oo-php-part-1-oop-in-full-effecthttp://www.phpfreaks.com/tutorial/oo-php-part-1-oop-in-full-effect
Otherhttp://en.wikipedia.org/wiki/Php#Release_historyhttp://us3.php.net/manual/en/language.oop5.basic.php

- !isset
isset is use to see whether a variable has been set
-> if it is "unset" or equal to "null" it will return with false
http://php.net/manual/en/function.isset.php
- empty
http://php.net/manual/en/function.empty.php
empty= isset+ "" + $a=0 +false
http://php.net/manual/en/function.empty.php

-----------------------------2012.5.19 --------------------------------------------------------------

- substr(md5(uniqid()),0,10)
-> substr is a difficult one.


- if(!result|| mysql_num_rows($rows)<=0)
-> mysql_num_rows() and mysq_affected_rows()
the former for counting the number we have last SHOW or SELECT;
and the later includes number for INSERT, DELETE and other.
http://php.net/manual/en/function.mysql-num-rows.phphttp://www.php.net/manual/en/function.mysql-affected-rows.php

- return true/falsePracticing.
- explodehttp://php.net/manual/en/function.explode.phpcut down string into array of substring.
explode(" ", $sting)
<?
$strin="This is a wonderfull day ";
$strin2= array(3, 4, 5, 6, 9);
$strin3=315634223233233;
$strin4="Taiwan (i/?ta??w??n/ ty-wahn; Chinese: 臺灣 or 台灣; pinyin: Taiw?n; see below), officially the Republic of China (ROC; Chinese: 中華民國; pinyin: Zh?nghua Minguo), is a state in East Asia. Originally based in mainland China, the Republic of China now governs the island of Taiwan (formerly known as Formosa), which forms over 99% of its current territory,[f] as well as Penghu, Kinmen, Matsu, and other minor islands. Neighboring states include the People's Republic of China to the west, Japan to the east and northeast, and the Philippines to the south. Taipei is the capital city and economic and cultural centre of the country,[1] and New Taipei is the most populous city.";
$tran_space=explode(" ",$strin);
print_r($tran_space);
echo "</br></br></br>";
//$tran _null=explode("",$strin);
//print_r($tran_space);
//echo "</br></br></br>";
$tran_array=explode(",", $strin2);
print_r($tran_array);
echo "</br></br></br>";
$tran_3=explode("3", $strin3);
print_r($tran_3);
echo "</br></br></br>";
$tran4=explode("Taiwan", $strin4);
print_r($tran4);
echo "</br></br></br>";
$tran5=explode(".", $strin4);
print_r($tran5);
?> 

- strlen()
http://php.net/manual/en/function.strlen.phplength of string;
"Null"=0
"-2"= 2
"Hello world"=12
- Difference between 'apostrophe' and "Quotation"
->Can use variable ($a->7) in the Quotation, while within apostrophe, variable remains the same($a->$a)
http://bytes.com/topic/php/answers/750143-difference-between-quotation-apostrophe-php
 - preg_match
search for a regular expression http://php.net/manual/en/function.preg-match.phpI am still not familiar with regular expression; this will help me to write filter; and e-mail related function.related: in_array() search an array for a specific value.
-is_numerichttp://php.net/manual/en/function.is-numeric.php

-require_once("class,phpmailer.php");




There is something interesting about this expression, study it more: 


<?php
$tests 
= array(
    
"42",
    
1337,
    
"1e4",
    
"not numeric",
    array(),
    
9.1);

foreach (
$tests as $element) {
    if (
is_numeric($element)) {
        echo 
"'{$element}' is numeric"PHP_EOL;
    } else {
        echo 
"'{$element}' is NOT numeric"PHP_EOL;
    }
}
?>






2012年5月15日 星期二

Programming Working Journal

Difference between isset, empty and null.
http://hi.baidu.com/cpuyz/blog/item/e18780ef1aabb4e8cf1b3e6e.html
http://seanphpbook.blogspot.com/2009/10/php-empty-isset-php.html

TED: Gary Kovacs: Tracking the trackers

因為這一個演講實在太震撼了,我覺得絕對有義務把訊息重覆一遍:Firefox 在TED 2012 開放一個實驗性的工具,讓你可以知道什麼網站在跟蹤你什麼動作,然後不同的網站怎麼樣交叉比對你的資料。這一個工具帶給我相當大的震撼,我用了還不到半個小時,就覺得可怕的想吐。
良心建議可以實驗看看,你最多只會浪費十幾分鐘,對我來講,這次體驗徹底改變了我對網路的看法。

步驟一,去下載 Firefox http://www.mozilla.org/zh-TW/firefox/new/
(三分鐘,Firefox 是一個開源系統的瀏覽器,就像 IE,Chrome一樣)

步驟二, 去下載 Collusion 套件 http://www.mozilla.org/en-US/collusion/
(三分鐘,安裝後,瀏覽器的右下方會出現一個黑體小紅圓圈;假如沒有的話,
你可以在檢視>工具列>附加元件工具列;按"Ctrl+/"就會出現了)

步驟三,把這一個附加元件的全功能開啟,如此一來,每一次你的動作被瀏覽器紀錄的時候,他就會發出聲音。當你的資料發給第三方的時候,就會有頁面跳出。有一點煩人,但是絕對值得開啟試試看。
 (一分鐘;到工具>附加元件>點選Collusion> 勾選"Check to hear sound"及"Always Show Graph")

 步驟四,開啟你的音箱,把頁面右下方的小紅圈叫出來,在Firefox上做任何你習慣的事情;寫部落格,收 E-mail,看一個 TED 影片。

你會發現在 Collusion 的監視頁面中,有一大堆的圈圈會冒出來,這就是正在收集你的動作的第三方網站。背景音,你會聽到很多"喀嚓,喀嚓"的聲音,那是你每次被設置一個 Cookie 之後所造成的聲音。

可以試試看開啟色情網站,你絕對可以體會這些網站有多少個外掛系統。

試試看開啟 TED.com 的頁面,會有一大堆的第三方程式,才發現這裡的監控 Cookie 可能還比色情網站還更多。在表中,你還可以看到這些網站,與其他的網站正在共同分享你的資料。而這一個頁面,就算閒置的時候,也還是會持續的設置 Cookie。



必須要澄清的,是並非所有的 Cookie 都是壞事。Gary Kovacs 也提到,是因為這些 Cookie 才讓很多服務變的更客製化。只是,底線就是:我們應該知道我們被曝露什麼。





I actually recommend everyone to give this a trial:

1. Go install Firefox http://www.mozilla.org/zh-TW/firefox/new/
2. Install collusion http://www.mozilla.org/en-US/collusion/
3. Click on the bottom right to see the monitoring page, or go to option to enable the voice and pop-up window.

4. Try to perform a web activity, such as posting an article, and just see what happens.



2012年5月14日 星期一

TED:JP Rangaswami: Information is food



Very interesting comparison, first that our brain tissue are as valuable as our digestion tissue (Though I don't fully get why).  And then, the idea that information can absorb information as absorbing food. This is related to the talk by Eli Pariser; comparing good information and bad information as to vegetable and junk food.

So, if information is nutrition, what can be what? Following is my short list:

  • Gossip is like fat.
  • Provocative thought is like ?.
  • ? is like vegetable. 
  • ? is like water. 
  • Poem is like  ?  
  • Essay is like  ?
  • News is like  ?
  • Bloomberg is like  ?
  • Myth is like  ?
  • Story is like  ?


2012年5月13日 星期日

Programming Working Journal

To be understood: 
$formvars seems to have all data, what is it?

TED: Eli Pariser The Filter Bubble


A short but interesting talk about the filter bubble problem. We will keep seeing what we like, not what is important to us. We don't get to see the edit out, and we can't get to know what we don't know. Think of this as an office setting, nobody want to deliver the bad but important news to the boss.

But what is the solution? One should make it a rule to select random things to read every each period of time? Add one stranger friend every month or so?

This result won't be filter out, but we will have a lot of noise.

We should get important result that is un-filtered. Then the question lies on, how to you define what is important? If you think of it, my running list of possible assumption of what importance consist of:

  1. What you like. Define as your past preference.
  2. What is most popular. Define as the most viewed, or the most mailed article.
  3. The probability that the event is going to affect you. Define by language you are using, and the location where you are.

And after this list, I find an interesting fact: all this metrics are already built in to the current algorithm. And if we consider that the engineers of search engine have done their work, so should it be already built-in. So either there is something else in the def. of importance.

If  I phase the problem in another way. Assuming that I am head of office at Microsoft, all my colleague are senior people who have very similar mindset than mine. My junior internet is writing to me, to tell me the importance of internet. My problem will be: how can I know that this memo is important?

If I can constantly advice my future self, asking him about what I wished I know now. How can I replicate this process?

Somehow I feel this problem is related to what Kevin Kelly post about why young people know how to use the internet:
The Web is being run by 20-year-olds because they can afford to waste the 56 hours it takes to become proficient explorers. While 45-year-old boomers can't take a vacation without thinking how they'll justify the trip as being productive in some sense, the young can follow hunches and create seemingly mindless novelties on the web without worrying about whether they are being efficient. Out of these inefficient tinkerings will come the future.

Alternative:

  1. Finding people/friend who strongly disagree with you; offer you an alternative view of things. 
  2. A filter with good content that only feed you with vegetable, but not garbage. 
  3. People that you admired.
  4. People who risk something to tell you this message. People who strongly disagree with you. People that are willing to bet on it. People who put their name on it.
  5. Follow industry/society early adopter, defined as elite, or young people. 

Possible action item.

  1. Join other people's activity. 
  2. Take advice from 10 un-related people about major decision.
  3. Keep a very vast network of friend.