[HTML] Generate Styled HTML Table

如果要自己整一個比較的table 當然不困難,最難的地方是要做CSS styling.

CHWOKY 在找東西的時間,找到了一個免費的 generate styled html table: Compare Ninja

如果要做static 的product comparison 就當然一下子就做完了呢~

Referecne: http://www.compareninja.com/index.php

Share

No Comments

OpenSUSE 11 SSH Keypair generation + window connect with Putty 教學…..失敗以及解決方法

Really busy for these days. Haven’t posted for a long time~~.
Yo! I am back.

近來試一試 openSUSE 去SETUP 一台 WEB SERVER. 因為要放上data center, 所以要set SSH connect 去server.

1. Generate SSH Key
$ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/chowky/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/chowky/.ssh/id_rsa.
Your public key has been saved in /home/chowky/.ssh/id_rsa.pub.
The key fingerprint is:
XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX chowky@linux

2. check the files generated
$ ls /home/chowky/.ssh
id_rsa id_rsa.pub

Note: id_rsa is private key. 你要keep 這個file. copy to USB drive
id_rsa.pub is public key

3. import the key to the .ssh folder. 找不到的話就自己 create 一個.
$ cd /home/chowky/.ssh
$ cat id_rsa.pub >> /home/chowky/.ssh/authorized_keys

4. Modify “/etc/ssh/sshd_config” …(只識用nano…vi 不太熟…). 修改以下value.
RSAAuthentication yes
PubkeyAuthentication yes

disable password security,因為改用了RSA Keypair Authentication.
ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM yes

Reload the server configuration:
$ sudo /etc/init.d/sshd force-reload

Read the rest of this entry »

Share

, , , , , , ,

No Comments

蘋果教主喬布斯(Steve Jobs)名言

十分發人深省的話。

蘋果教主喬布斯(Steve Jobs)名言:

1. Have the courage to follow your heart and intuition. They somehow already know what you truly want to become.
擁有追隨自己內心與直覺的勇氣,你的內心與直覺多少已經知道你真正想要成為什麼樣的人。

2. Stay hungry. Stay foolish.
求知若飢,虛心若愚。

3. Much of what I stumbled into by following my curiosity and intuition turned out to be priceless later on.
追隨我的好奇與直覺,大部分我所投入過的事務,後來看來都成了無比珍貴的經歷。

4. I’m convinced that the only thing that kept me going was that I loved what I did.
我確信我愛我所做的事情,這就是這些年來支持我繼續走下去的唯一理由。

5. If you live each day as if it was your last, someday you’ll most certainly be right.
把每一天都當成生命中的最後一天,你就會輕鬆自在。

6. Remembering that I’ll be dead soon is the most important tool I’ve ever encountered to help me make the big choices in life. Because almost everything – all external expectations, all pride, all fear of embarrassment or failure – these things just fall away in the face of death, leaving only what is truly important.
提醒自己快死了,是我在人生中面臨重大決定時,所用過最重要的方法。因為幾乎每件事-所有外界期望、所有的名聲、所有對困窘或失敗的恐懼-在面對死亡時,都消失了,只有最真實重要的東西才會留下。

7. No one wants to die. Even people who want to go to heaven don’t want to die to get there.
沒有人想死。即使那些想上天堂的人,也想活著上天堂。

8. Your time is limited, so don’t waste it living someone else’s life.
你們的時間有限,所以不要浪費時間活在別人的生活裡。

9. Death is very likely the single best invention of Life. It is Life’s change agent.
死亡很可能就是生命中最偉大的發明,是生命交替的媒介。

10. The only problem with Microsoft is they just have no taste. They have absolutely no taste. And I don’t mean that in a small way, I mean that in a big way, in the sense that they don’t think of original ideas, and they don’t bring much culture into their products.
微軟唯一的問題是完全沒有品味。我不是指在小節上,而是大節上。即是他們沒有自己的創新意念,也沒有把他們自身的文化貫注入自己的產品中。

Share

, ,

No Comments

Mac book Bootcamp Home, End, Ctrl-Alt-Del input

當大家有用MAC BOOK BOOT CAMP 的時候,因為無KEYBOARD 沒有HOME END 的BUTTON,令到寫PROGRAMM 有點困難。

其實只要加上fn KEY 就可以做到了。

Pause/Break – fn + esc
Home – fn + left arrow
End – fn + right arrow
Page Up – fn + up arrow
Page Down – fn + down arrow
Print Screen – fn + shift + F11 ( For active window, fn+shift+alt+F11)
Del – fn + backspace
Windows key – cmd
Ctrl-alt-del – ctrl + alt + fn + backspace

Share

, , , ,

No Comments

[Jquery] multiple file upload plugin

A jquery, flash solution for upload files with progress bar.

With the use of flash, when browse for files, multiple file can be selected which could not be provided in the IE7,8 browsers.

However, you should take note for the ASP.NET.
Notes for the ASP.NET:

Window Authentication cannot be used due to the limitation of the flash which does not properly handle HTTP Authentication (or you need to write a page which allow anonymous access)
Forms Authentication can still be used but you need to search about the custom handling.

HTTP Authentication is handled at the Web Server/Browser level with HTTP response codes and HTTP headers.
Once authenticated the browser remembers that you already authenticated to this site and just sends the auth data with each request (otherwise you’d have to re-auth with every request).

Detail

Requirement: Flash and jQuery.
Reference: http://www.uploadify.com/
License: Open Source

Share

, ,

No Comments

[jQuery] Ajax Calendar Control: Full Calendar 推介

如果有看chowky 之前的blog 的話,chowky 之前介紹了8種不同的ajax calendar control.

不過過了這麼久,chowky 再次去看看,跟進一下之前所看好的 full calendar 的開發情況是怎樣。

chowky 的眼光果然不錯,現在的full calendar 已經加入了 day view 的week view ,基本一個calendar 所要求的都經已達到,chowky 覺得十分滿意,有機會的話會採用這個control (hm…老實說、主要原因是免費)

documentation, api 都足夠,integration 應該不困難

License: open source (dual licensed under the MIT or GPL)
Demo: http://arshaw.com/fullcalendar/

Share

, , , ,

No Comments

[Flex] Flex Builder 4.5 改colour theme

chowky 一向習慣用 low contrast 的dark theme.

因為太長時間望著電腦,white background 會覺得刺眼 (有要求呢)

而dark theme 之中,十分出名的是zenburn,而chowky 都試過十分多的dark theme,最舒服的都要是zenburn 了,

visual studio 系列,eclipse 系列,notepad++ 全部都有

這次要flex builder 4.5..
當然,由下面的link download zenburn theme (Eclipse Preference EPF)

1.打開Flex Builder 4.5
2.File -> Import
3. General -> Preference
4. Next
5. Select the downloaded zenburn theme
6. Finish.
7. Close and reopen Flex Builder 4.5

http://www.eclipsecolorthemes.org/?view=theme&id=915

Share

, , , ,

No Comments

[Crystal Report] 關於 Crystal Report .NET 方面的integration

自從 sap 收購了 business object 之後,很多 crystal report 都改了地址,十分難找。

crystal report 和java 的integration chowky 就不太清楚,.NET 方面,最有用的都應該是以下呢~。

Crystal Reports v. 9.1 to 12.x VS .NET Runtime Distribution & Supported Operating Systems

http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=56787567

Crystal Reports Runtime Packages - 沒有delete 這個resources~

http://resources.businessobjects.com/support/additional_downloads/runtime.asp

Share

, , ,

No Comments

Microsoft Server 2008 x64 32-bit 和 64-bit 的簡單解決方法

Chowky  在64-bit 的 Microsoft Server 2008 64bit 上要行 32bit application. 本想全部用 64bit 的executable. 只不過有很多legacy system 的driver 是不支援64bit 的,只有32bit 的支援,e.g. foxpro driver, crystal report server 11 runtime…etc.  這些真的沒有方法去解決的 (自己重寫個system / drvier? don’t play la)。當然,最絕的方法就要全部用32bit,推個客話technical problem 指個driver 無64bit support。但是全部採用32bit 的話就似乎影響了 performance (太堅持了~放棄咪唔駛咁慘 la).

簡單來講就要分開兩個來寫。~新的就用x64,舊的就用x86,但online 的解決方法實在太難明了,不想研究。最終都找到合適的方案

~利用 visual studio build target platform~

 
Read the rest of this entry »

Share

, , , ,

No Comments

Coffee Time~

Programmer 從來都和 coffee 是好朋友,哈哈,當然有些人是 RED BULL。

新買的呢個design 真的不錯,放上來比大家睇下先~

Share

No Comments