Archive for the FreeBSD category

Screen, SecureCRT, UTF-8 and FreeBSD

Finally I got my environment on FreeBSD UTF-8-lized.

Note on SecureCRT: set Character encoding to “UTF-8″
Note on Screen: set following command in .screenrc

defutf8 on
defc1 off
defencoding utf8

bind b encoding big5 utf8
bind u encoding utf8 utf8

Note on Screen with 256 color:

% cd /usr/ports/sysutils/screen
% make config # XTERM_256 Enable support for 256 colour xterm
% make deinstall reinstall clean

And set following command in .screenrc

term xterm
termcapinfo xterm ‘Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm’
attrcolor b “.I”
attrcolor i “+b”
defbce on

And re-start the screen (not just re-attach it)

Others, refer to yzlin’s post.

PyLucene Win32 on googlecode

之前要相容地使用 Lucene 的 Index ,所以花了不上功夫在 FreeBSD 上玩 PyLucene

vim helps me in commit p5- ports

As tobez(1) said, we committers should provide Changes in commit log, so…..

I’ve add these two lines into my .vimrc:

  1. Anton Berezin[back]

The FreeBSD Laptop Compatibility List

The FreeBSD Laptop Compatibility List

Perl 5.10.0 is released

Perl 5.10.0 is available here. Also with the torrent file.

You might want to see What’s new for perl 5.10.0, for me, the most important thing is Named Capture Buffers(1) :) And here are some things about performance:

  • In-place sorting: Sorting arrays in place (@a = sort @a) is now optimized….
  • Lexical array access: faster
  • Weak references are cheaper: Weak reference creation is now O(1) rather than O(n), deletion remains O(n)….
  • sort() enhancements: faster and memory usage reduced
  • Regular expressions optimisations

And known problem(s), maybe solved in future (5.12):

  • UTF-8 problems: The handling of Unicode still is unclean in several places, where it’s dependent on whether a string is internally flagged as UTF-8

Also bundled with some new modules, such asCPANPLUS and encoding::warnings :D

Let’s wait and see when it will in ports. :D

Notes: the discussion thread is here. Thanks to Rafaël Garcia-Suarez :)

  1. Just like most recent programming languages do (e.g. C# .Net) [back]

Ports tree is thawed

As Erwin (on behalf of portmgr) said, ports tree is now unfreezed (except sweeping changes).

Interest thing is:

Note that the first committer to break INDEX will owe all portmgrs a beer at the next BSD conference, and a carton of beer if it’s within the next 24 hours.

*wink*

Updated (how fast :p): INDEX build failed for 5.x

It’s unfair when portmgr breaks it first!

Edwin

升級到 7.0-PRERELEASE

從 6.2 升上來其實挺無痛的,比較要注意的是 default thread library 從 libpthread 換成 libthr ,所以要記得重編一些 ports (簡單的方式就是把 /lib/libpthread.so.2 砍掉,然後會叫的 ports 就是要重練的)。其實去 ls /lib 下可以看到有些過期的,應該也要一併移除,減少 ldconfig 的負擔啊!就像我現在的體脂肪一樣,有些其實跟我沒關係了、可以丟掉了,可是就死賴著不走,我有什麼辦法呢?

就這樣囉,另一台 7.0-CURRENT 的不知道該留在 7.0 還是 8.0-CURRENT(HEAD)好,先觀望一下。

[perl] Jifty-0.70824 released

In short words, Jifty is great for Web development!!!!

Useful vim tips for rubygem ports

Useful vim commands for rubygem ports:

  • % s,^\d.*gems.*doc.*(portsname),%%GEM_DOC_DIR%%,g
  • % s,^\d.*gems.*lib.*(portsname),%%GEM_LIB_DIR%%,g
  • % s,^\(@dirrm.*.src\)\n\1,\1,g
  • % s,^\(%%.*\.src\)$,@dirrm \1,g

Technorati Tags: ,

[TinderBox] Building a 6.X or 5.X Jail on -CURRENT

Quick note: refer to HEADS UP: Building a 6.X or 5.X Jail on -CURRENT

Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan