Archive for category Opensource

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

[Mac] Text Editor and Synax Highlighter for Mac

在window 的environment, opensource 的 texteditor 有十分多的choice.

Chowky 自己,多數用notepad++ 的。
在mac 之中,就有smultron ,可惜的是已經沒有再更新,所以很可能被新的mac os 淘汰了。

最近期有朋友介紹使用 kod 這個texteditor。

kod_logo

用上去都不錯,support 的language 都很多,都應該夠用。
Read the rest of this entry »

Share

, , , ,

No Comments

免費的100 個 vector icon

現在真的很多不同的vector icon…

成百個,應該夠用的呢~

不過就未知幾多錢了。~。 想買都要考慮一下價錢先呢~

Source: http://pictoico.com/
License: Creative Commons Attribution-Noncommercial 3.0 Unported license

Share

, ,

No Comments

Adobe投訴 美查蘋果壟斷

近來最多 flash platform 上討論的事情當然是,apple 在adobe 推出cs5 之前3 日就改招改 app store 的license agreement.

Apple 這招「肥水不留別人田」的做法當然引來不少批評,而且,之後apple 出了公開信表明不加入flash的原因,而 adobe 就當然再出公開信反擊,搞到事件升級 (當然這是肯定會發生)。近日又有更新~

《華爾街日報》引述消息稱, Read the rest of this entry »

Share

, , , ,

No Comments

[Flex] Flex 4 DataGroup

Flex 3 大家都有用的一個component 都應該是repeater.

但到了flex 4 之後,就改為datagroup。

不過其實用法就無改變呢~

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
               xmlns:s="library://ns.adobe.com/flex/spark" 
               xmlns:mx="library://ns.adobe.com/flex/mx" width="500" height="200" initialize="init()" viewSourceURL="srcview/index.html">
 
    <fx:Script>
        <![CDATA[
            import mx.collections.ArrayCollection;
 
            [Bindable] public var productData:ArrayCollection;
 
            private function init():void {
 
                productData = new ArrayCollection();
                productData.addItem({"name":"Chocolate","price":"3"});
                productData.addItem({"name":"Beer","price":"5"});
                productData.addItem({"name":"Candy","price":"2"});              
            }
 
        ]]>
    </fx:Script>
 
    <fx:Declarations>
        <
    </fx:Declarations>
 
    <s:DataGroup itemRenderer="ProductsRenderer" dataProvider="{productData}" rollOverColor="0xFFCC00">
        <s:layout>
            <s:VerticalLayout horizontalAlign="center"/>
        </s:layout>     
    </s:DataGroup>
</s:Application>
1
2
3
4
5
6
7
8
9
10
11
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" 
                xmlns:s="library://ns.adobe.com/flex/spark" 
                xmlns:mx="library://ns.adobe.com/flex/mx" 
                autoDrawBackground="true">
    <s:layout>
        <s:HorizontalLayout verticalAlign="middle" />       
    </s:layout>
    <s:Label text="{data.name}:" width="100" fontWeight="bold" />
    <s:TextInput text="${data.price}" width="50" />
 
</s:ItemRenderer>

Source: http://www.flex-blog.com/flex-4-flash-builder-4-repeater-changed-to-datagroup/

Share

, ,

No Comments

Flex on IPhone?

flex on Iphone ,這個名好吸引,技術上是利用了flex 的framework,再重新寫了一個新的compiler 出來….

cross-platform mobile application development based on Flex,聽上去不錯。

暫時未試過真正使用,要等他們有真正的source code 推出,(chowky 當然要看看iphone 的sample app),但iphone 的 emulator又怎樣做呢? 是否能在window 上寫呢?

另外一方面連andriod 都support,聽上去都令人興奮~

如果各位有人試過的話~~可以交流一下呢~

Source: http://developer.openplug.com/

Share

, , , ,

No Comments

[Mac] Smultron 小巧 程式碼編輯器

Chowky 近來問了一位外地朋友,他究竟是用什麼來做code editing 呢~

寫html + php ,在window 中 chowky 就會在notepad ++ 來寫的,但在mac 的環境中又沒有notepad++ ,又不想利用xcode 來寫html , php 就更加不會,因為兩個的debug 的方法都是直接利用browser 就可以見到,chowky 只需要一個syntax highlighter。 (chowky 對dreamweaver 的 syntax highlight,有點意見,不是chowky 的喜好,覺得有點怪怪的)

Smultron 是一個很好用的程式碼編輯器,類似window 上的notepad++。

支援各種程式語言如:C/C++、Objective-C、Java… 等語法著色。

並可將偏好設定儲存到 iDisk

支援的程式碼 highlight.

其他介面的圖~


Read the rest of this entry »

Share

, , , ,

1 Comment

Appcelerator Titanium 一個很有趣的工具 + 比較

雖然chowky 已經知道這個工具很久,不過覺得這套工具未成熟,所以沒有理會。 直至今天嘗試開發專為 iphone 的 web。在找尋的過程之中,又看到這個工具,看來已經比之前好成長了不少。於是,今天就看看是怎樣的東西~

首先是titanium 是 opensource,另外這件東的 concept 其實不錯的,真的有點似adobe air,mobile, desktop 的version 都有buildin 的sqlite support。 主要的分別,titanium 就是compiled and run in native OS,所以分為,mobile version, desktop version and web version ,而 ADOBE AIR 就放在flash platform / AIR 之中。而titanium 就比adobe air 走快了一步,支援了mobile (iphone and andriod) ,所以都有些人認為是air 的最大的competitor (為什麼沒有m$ 的silverlight,不入流呢)。


Read the rest of this entry »

Share

1 Comment

[Flash] 指南針

一個用flash 開發的指南針。

當你drag 指南針的時候,指針就會自動指向北。

這個effect 方面是利用actionscript 3 的tweening class.

Chowky 個人比較喜歡 tweenmax 的library。因為只要一句actionscript 就可以做到很不的animation。

(這個post 都比較數學呢~~,要atan…… 要這樣計角度來做,原來真的不簡單呢~)

Get Adobe Flash player

Source: http://www.flashandmath.com/howtos/compass/

Share

, , ,

1 Comment

[Flex] Adobe Opensource its Flex Charting Component

估不到,因為什麼原因而opensource自己的charting component,這會否影響了flex builder 3 professional 的銷情?

That page also has the Data Vis. components listed, and the download includes the source and is no longer watermarked.
Previously a Flex Builder licence was required to obtain the source and remove the watermark.

可能坊間太多不同的charting component,所以adobe 索性open source。

不過都是一個好消息。~

Source: http://www.rachaelandtom.info/content/adobe-open-sources-flex-data-visualization-components

Share

, ,

No Comments