[linux] vim±àÂë
VimºÍËùÓеÄÁ÷ÐÐÎı¾±à¼Æ÷Ò»Ñù£¬¿ÉÒԺܺõı༸÷ÖÖ×Ö·û±àÂëµÄÎļþ£¬Õ⵱Ȼ°üÀ¨ UCS-2¡¢UTF-8 µÈÁ÷ÐÐµÄ Unicode ±àÂ뷽ʽ¡£¶øÇҺͺܶàÀ´×Ô Linux ÊÀ½çµÄÈí¼þÒ»Ñù£¬ÕâÐèÒªÄã×Ô¼º¶¯ÊÖÉèÖá£
Vim ÓÐËĸö¸ú×Ö·û±àÂ뷽ʽÓйصÄÑ¡Ïencoding ¡¢fileencoding ¡¢fileencodings ¡¢termencoding (ÕâЩѡÏî¿ÉÄܵÄÈ¡ÖµÇë²Î¿¼ Vim ÔÚÏß°ïÖú :help encoding-names)£¬ËüÃǵÄÒâÒåÈçÏÂ:
1¡¢ encoding : Vim ÄÚ²¿Ê¹ÓõÄ×Ö·û±àÂ뷽ʽ£¬°üÀ¨ Vim µÄ buffer (»º³åÇø)¡¢²Ëµ¥Îı¾¡¢ÏûÏ¢Îı¾µÈ¡£Óû§ÊÖ²áÉϽ¨ÒéÖ»ÔÚ .vimrc ÖиıäËüµÄÖµ£¬ÊÂʵÉÏËƺõÒ²Ö»ÓÐÔÚ .vimrc ÖиıäËüµÄÖµ²ÅÓÐÒâÒå¡£
2¡¢ fileencoding : Vim Öе±Ç°±à¼µÄÎļþµÄ×Ö·û±àÂ뷽ʽ£¬Vim ±£´æÎļþʱҲ»á½«Îļþ±£´æΪÕâÖÖ×Ö·û±àÂ뷽ʽ (²»¹ÜÊÇ·ñÐÂÎļþ¶¼Èç´Ë)¡£
3¡¢ fileencodings : Vim Æô¶¯Ê±»á°´ÕÕËüËùÁгöµÄ×Ö·û±àÂ뷽ʽÖðһ̽²â¼´½«´ò¿ªµÄÎļþµÄ×Ö·û±àÂ뷽ʽ£¬²¢ÇÒ½« fileencoding ÉèÖÃΪ×îÖÕ̽²âµ½µÄ×Ö·û±àÂ뷽ʽ¡£Òò´Ë×îºÃ½« Unicode ±àÂ뷽ʽ·Åµ½Õâ¸öÁбíµÄ×îÇ°Ã棬½«À¶¡Óïϵ±àÂ뷽ʽ latin1 ·Åµ½×îºóÃæ¡£
4¡¢ termencoding : Vim Ëù¹¤×÷µÄÖÕ¶Ë (»òÕß Windows µÄ Console ´°¿Ú) µÄ×Ö·û±àÂ뷽ʽ¡£Õâ¸öÑ¡ÏîÔÚ Windows ϶ÔÎÒÃdz£ÓÃµÄ GUI ģʽµÄ gVim ÎÞЧ£¬¶ø¶Ô Console ģʽµÄ Vim ¶øÑÔ¾ÍÊÇ Windows ¿ØÖÆ̨µÄ´úÂëÒ³£¬²¢ÇÒͨ³£ÎÒÃDz»ÐèÒª¸Ä±äËü¡£
ºÃÁË£¬½âÊÍÍêÁËÕâÒ»¶ÑÈÝÒ×ÈÃÐÂÊÖ·¸ºýÍ¿µÄ²ÎÊý£¬ÎÒÃÇÀ´¿´¿´ Vim µÄ¶à×Ö·û±àÂ뷽ʽ֧³ÖÊÇÈçºÎ¹¤×÷µÄ¡£
1¡¢ Vim Æô¶¯£¬¸ù¾Ý .vimrc ÖÐÉèÖÃµÄ encoding µÄÖµÀ´ÉèÖà buffer¡¢²Ëµ¥Îı¾¡¢ÏûÏ¢ÎĵÄ×Ö·û±àÂ뷽ʽ¡£
2¡¢ ¶ÁÈ¡ÐèÒª±à¼µÄÎļþ£¬¸ù¾Ý fileencodings ÖÐÁгöµÄ×Ö·û±àÂ뷽ʽÖðһ̽²â¸ÃÎļþ±àÂ뷽ʽ¡£²¢ÉèÖà fileencoding Ϊ̽²âµ½µÄ£¬¿´ÆðÀ´ÊÇÕýÈ·µÄ (×¢1) ×Ö·û±àÂ뷽ʽ¡£
3¡¢ ¶Ô±È fileencoding ºÍ encoding µÄÖµ£¬Èô²»Í¬Ôòµ÷Óà iconv ½«ÎļþÄÚÈÝת»»Îª encoding ËùÃèÊöµÄ×Ö·û±àÂ뷽ʽ£¬²¢ÇÒ°Ñת»»ºóµÄÄÚÈݷŵ½Îª´ËÎļþ¿ª±ÙµÄ buffer À´ËʱÎÒÃǾͿÉÒÔ¿ªÊ¼±à¼Õâ¸öÎļþÁË¡£×¢Ò⣬Íê³ÉÕâÒ»²½¶¯×÷ÐèÒªµ÷ÓÃÍⲿµÄ iconv.dll (×¢2)£¬ÄãÐèÒª±£Ö¤Õâ¸öÎļþ´æÔÚÓÚ $VIMRUNTIME »òÕßÆäËûÁÐÔÚ PATH »·¾³±äÁ¿ÖеÄĿ¼Àï¡£
4¡¢ ±à¼Íê³Éºó±£´æÎļþʱ£¬ÔÙ´Î¶Ô±È fileencoding ºÍ encoding µÄÖµ¡£Èô²»Í¬£¬Ôٴε÷Óà iconv ½«¼´½«±£´æµÄ buffer ÖеÄÎı¾×ª»»Îª fileencoding ËùÃèÊöµÄ×Ö·û±àÂ뷽ʽ£¬²¢±£´æµ½Ö¸¶¨µÄÎļþÖС£Í¬Ñù£¬ÕâÐèÒªµ÷Óà iconv.dll
ÓÉ ÓÚ
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......
½ñÌìµÄÒ»¸öºÜÖØÒªµÄÊÕ»ñ
Ò»¸öÖÂÃüµÄÃüÁî sudo chmod £R a+rwx * ÊÇÔÚµ±Ç°Îļþ¼ÐÏÂÃæµÄËùÓÐÎļþºÍÎļþ¼Ð¶¼ÊǿɶÁ ¿Éд ¿ÉÖ´ÐÐ
ÒÔÇ°°²×°phpcmsÔÚubuntuϵÄʱºò ¶¼ÊÇʧ°Ü¶ø¸æÖÕµÄ ½ñÌìÖÕÓڳɹ¦ ÁË
¾ÍÊÇÕâ¸öÃüÁî¾ÈÁËÎÒ ......
³ÉΪһÃû¾«Í¨ Linux ³ÌÐòÉè¼ÆµÄ¸ß¼¶³ÌÐòÔ±Ò»Ö±ÊDz»ÉÙÅóÓÑ×Î×ÎÒÔÇóµÄÄ¿±ê¡£¸ù¾ÝÖлªÓ¢²ÅÍøͳ¼ÆÊý¾Ý£¬±±¾©µØÇø Linux ³ÌÐòÔ±ÔÂнƽ¾ùΪ Windows ³ÌÐòÔ±µÄ 1.8 ±¶¡¢Java ³ÌÐòÔ±µÄ 2.6 ±¶£¬ Linux ³ÌÐòÔ±ÄêÖÕ½±½ðƽ¾ùΪ Windows ³ÌÐòÔ±µÄ 2.9 ±¶¡£Í¬Ê±Êý¾ÝÏÔʾ£¬Ëæ׏¤×÷¾ÑéµÄÔö³¤£¬ Linux ³ÌÐòÔ±Óë Windows ³ÌÐòÔ±µÄÊÕÈë²î¾à» ......
1.½« arm-linux-gcc µÄѹËõ°ü½âѹµ½tmpĿ¼ÏÂ
2.½« tmp/usr/local Ï嵀 arm Ŀ¼copy µ½ÏµÍ³µÄ/usr/local ÏÂ
3.Ö´ÐÐÃüÁvi/etc/profile ÔÚpath murgeµÄÓï¾ä¶ÏºóÌí¼Ó
pathmurge/usr/local/arm/2.95.3/bin;
4.°´ESC¼ü£¬ÊäÈ룺wq ±£´æ²¢Í˳ö.
5.Ö´ÐÐ source /etc/profile
6.½¨Á¢¹¤×÷Ŀ¼mkdir -p/opt/Fr ......