Showing posts with label 小小心得. Show all posts
Showing posts with label 小小心得. Show all posts

May 27, 2008

修改 aMSN 聯絡人頭像大小

how to make the Display Picture of contacts windows bigger ?

check these two pages :
Creating AMSN Skins

Can I make thumbnails bigger?

Apr 29, 2008

菸酒生的好夥伴:不只是文獻管理工具 - zotero

之前介紹過Bibus

這次是另一個更好用的工具:zotero

Apr 8, 2008

Wireless tools for ARM Linux

Wireless Tools is A collection of tools to configure IEEE 802.11 wireless LAN cards

目前最新版本 wireless_tools.29.tar.gz

抓下來之後修改Makefile

Apr 2, 2008

Linux 裡 S3C2440 的initial 順序

初始化順序在 <kernel src>/arch/arm/plat-s3c24xx/cpu.c

static struct cpu_table cpu_ids[] __initdata{....}
.idcode         = 0x32440000,
.idmask         = 0xffffffff,
.map_io         = s3c244x_map_io,
.init_clocks    = s3c244x_init_clocks,
.init_uarts     = s3c244x_init_uarts,
.init           = s3c2440_init,
.name           = name_s3c2440

這幾個function的原始碼位置:

s3c244x_map_io      --->  arch/arm/plat-s3c24xx/s3c244x.c
s3c244x_init_clocks  --->  arch/arm/plat-s3c24xx/s3c244x.c
s3c244x_init_uarts   --->   arch/arm/plat-s3c24xx/s3c244x.c
s3c2440_init            --->  arch/arm/mach-s3c2440/s3c2440.c

Mar 19, 2008

設定暫存器位置的語法

暫存器的Addrewss Uint如果是....

Word:
#define Word_Reg     (*(volatile unsigned long *)0x12345678)

Half-Word:
#define HW_Reg       (*(volatile unsigned int *)0x876543219)

Char:
#define C_Reg           (*(volatile unsigned char *)0xabcd1234)

Mar 17, 2008

gcc, 用於debug的macro...極好用

#ifdef DEBUG_STRING
#define DPRINTSTR(args...)        printf(##args)
#else
#define DPRINTSTR(args...)
#endif


C99之後開始支援不定變數巨集

Gea-Suan Lin's
一些 C Macro 的技巧 (Part I:不定變數)

一些 C Macro 的技巧 (Part II:將傳入的參數變成字串)

一些 C Macro 的技巧 (Part III:將傳入的參數名稱變化)

Silly Dust
Variadic macro

Mar 14, 2008

bin/bash^M: bad interpreter: no such file or directory

通常會遇到這個問題的原因通常是

被執行的script檔案是從windows用ftp上傳,或是在windows複製 linux貼上

換行方式不一樣,導致這個錯誤

Windows裡換行是CR+LF,Linux裡只有LF    (CR = \r,LF = \n ..... in ascii code)

只要把windows裡使用的\r換行符號清除掉就可以了

Jan 3, 2008

WINCE BSP......別自作聰明亂取名字 (幹)

遇到這個問題
One more BSP's that are not installed were found in the selected platform Builder project file. The onfigurations will be grayed out in he configuration combobox.

一切的原因都是因為....說明書沒看仔細

明明就說了To start the BSP installation copy SMDK2443 BSP to X:\WINCE500\PLATFORM directory on your host PC.

Make sure that the cec file and batch file in X:\WINCE500\PLATFORM\SMDK2443 directory has the same name as that of the BSP

所以,要把cec file打開

看清楚bsp名稱

在C:\WINCE500\PLATFORM之下

建立一個跟bsp名稱一樣的資料夾

把bsp相關檔案統統丟進去

Dec 28, 2007

arm-linux-gcc: unrecognized option `-MQ'

this problem appears when I trying to make my own u-boot

the cause of this error is the version of arm-linux-gcc does not support the argument "MQ"

my gcc version is 2.95.3...

3.4.1 will be ok !

download arm-linux-gcc... handhelds.org

build GNU/Linux ARM Toolchain from scratch

Nov 21, 2007

NAT底下的電腦,用MSN傳檔爆慢

覺得傳檔很慢慢慢,查了一下原來是NAT的問題

我不是搞網路的,細節也看不是很懂

總之要把UPnP打開

Nov 4, 2007

Anjuta : error while loading shared libraries: libanjuta.so.0

今天很無聊,手動編了anjuta最新版 (2.3)

中間還遇到一堆套件版本相依性問題,乾脆把feisty升級成gusty

Oct 12, 2007

Linux裡使用Windows XP網路印表機 (Gnome)

首先Windows上要開guest帳號

查看samba有沒有通,記住ShareName

$smbclient --list printer-ip

password : [輸入windows上的guest密碼]
Sharename Type Comment
--------- ---- -------
EPL6200 Printer EPSON EPL-6200 Advanced

系統 -> 系統管理 -> 印表機新印表機

選擇 網路印表機Windows 印表機 (SMB)

主機: Windows 的 domain nameip

印表機:剛才的ShareName

用戶名:guest

下一步,找廠牌&Driver

完成

Oct 5, 2007

kopete 在 gnome 下無法開啟scim

安裝 scim-qtimm

vim 方向鍵與刪除鍵(backspace)的問題

insert模式,輸入方向鍵的時候會出現ABCD

刪除鍵不會刪除

解決方法:在.vimrc中設定
set nocompatible
set backspace=2


Sep 28, 2007

proftpd 登入後卡在list超慢解決方法

只是治標的方法

/etc/proftpd/proftpd.conf 裡面加入這兩個設定
UseReverseDNS off

IdentLookups off

Sep 18, 2007

(開幹) 好用~lightyPHP,快速搞定lighttpd + php

LightyPHP

以lighttpd為基礎,加上php module

超方便的,點幾下就架好了

如果要考慮效能,想必不會用windows

適合架設一個練習php的環境

因為老師要簡單設定

所以這個應該是最方便了

不過只有windows版

反正老師就是要架在windows上

效能怎樣也不甘我屁事,反正這東西寫出來有沒有要用還是超大未知數

Sep 7, 2007

install streaming server : GNUMP3D

GNUMP3D
GNUMP3d is a streaming server for MP3s, OGG vorbis files, movies and other media formats.

It is designed to be:

  • Small, stable, portable, self-contained, and secure.

  • Simple to install, configure, and use.

  • Portable across different varieties of Unix, the GNU Operating System, and Microsoft Windows platforms.



功能很陽春的串流伺服器,有支援網域限制,很適合我

安裝設定超簡單,首先去下載 gnump3d-2.9final.tar.gz

找個地方放,解開

cd gnump3d-2.9final 進去解開的資料夾裡,執行make install就安裝完成了(make uninstall:移除)

Aug 15, 2007

整理文獻的工具:Bibus, for win32 & linux

from kewang

Bibus教學(1)

Bibus教學(2)

Aug 13, 2007

apache error : Could not determine the server's fully qualified domain name

因為沒設定domain name所以有這個錯誤

May 22, 2007

修復 grub error 22 造成的XP不能開機

主要步驟很簡單:

用xp安裝光碟,進入rescure模式,修復mbr

不過會遇到一些小問題…