Diff in dreamweaver (CS3)

February 27th, 2009

Dreamweaver have compare function when you checkout a page.
I'm user of Tortoise SVN and it have a simple and fast diff tool.
You may use TortoiseMerge as the compare application in Dreamweaver.

To enable such function , just go to Preference-->File Compare
enter C:\Program Files\TortoiseSVN\bin\TortoiseMerge.exe

Permalink

colvia @ 16:12:29

Leave a comment

Remotely Linux Harddisk Clone Using netcat

January 14th, 2009

Useful netcat info:
http://www.cyberciti.biz/tips/howto-copy-compressed-drive-image-over-network.html

DestServer# netcat -p 2222 -l |bzip2 -d | dd of=/dev/sdb
SourceServer# bzip2 -c /dev/sda | netcat 192.168.1.1 2222

DestServer# netcat -p 2222 -l | dd of=/dev/sdb
SourceServer# dd if=/dev/sda | netcat 192.168.1.1 2222

DestServer# netcat -p 2222 -l | tar xvf -
SourceServer# tar cf - * | netcat 192.168.1.1 2222

Or without netcat? Simply rsync
SourceServer# rsync -ax --delete / REMOTE_IP:/mnt

Permalink

franfran @ 17:48:07

Leave a comment

post flash data to rails

November 17th, 2008

rails2 require authenticity_token with the data.

user can get the token by form_authenticity_token in rails.
form_authenticity_token

here's the actionscript snippet.
form = new LoadVars();
form['model[property]'] = "data";
data['authenticity_token'] = SERVER.instance().getToken();
data['commit'] = 'Create';
form.send('http://localhost:3000/model','POST');

Permalink

colvia @ 14:28:09

Leave a comment

convert binary string to number

October 27th, 2008

n:int = parseInt("101011110",2)
n.toString(2)

Permalink

colvia @ 22:00:34

Leave a comment

Rails Notes - GROUP BY, ORDER BY

October 22nd, 2008

to use GROUP BY, ORDER BY in ActiveRecord
example:
CatArticle.find(:all, :group=>'cat_id',:order=>'updated_at DESC')

more information:
http://api.rubyonrails.com/classes/ActiveRecord/Calculations/ClassMethods.html

Permalink

colvia @ 20:08:48

Leave a comment

IE issue: flash outsize screen not redraw properly on maximize

September 23rd, 2008

the problem may solve by disable the "use bitmap caching" in flash...

Permalink

colvia @ 14:29:48

Leave a comment

Notes on Localconnection

September 1st, 2008

banner如果使用LocalConnection,需注意以下幾點:
1.如果有多個瀏覽器開啟,只有第一個瀏覽器有效
2.每次LocalConnection.send() 只容許40k的資料傳送
3.LocalConnection 傳送資料是不同步(asynchronous)的. 如果有大量或複雜的資料傳送, 可能要幾個幀後的時間才顯示
4.LocalConnection 會受cross domain security限制的.

Permalink

colvia @ 21:30:35

Leave a comment

:: Next Page >>

March 2010
Mon Tue Wed Thu Fri Sat Sun
<<  <   >  >>
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        

Search

Linkblog

Misc

Syndicate this blog XML

What is RSS?

powered by
b2evolution