發表文章

Ubuntu 14.04 mount AWS S3

debian ubuntu raspberri-pi moubt exfat

Step.1 Install exFAT Driver $ sudo apt-get install exfat-fuse Step.2 Mount USB Flash Disk $ mkdir /media/usbname $ sudo mount -t exfat -o rw /dev/sda2 /media/usbname umount: sudo umount usbname/  or sudo umount /dev/sda2 How to enable exFAT in Ubuntu http://apcmag.com/how-to-enable-exfat-in-ubuntu.htm/ Proper way of unmounting usb stick (drive) https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=53987 Raspberry Pi : Support exFAT USB Flash Disk https://yfc58.wordpress.com/2013/05/23/raspberry-pi-support-exfat-usb-flash-disk/

Ubuntu 14.04英文版安裝中文輸入法

安裝中文輸入法之前,須先安裝desktop的中文語系。 System-Settings - Language Support - Install/Remove Languages - 選擇Chinese(traditional) 完成後,安裝gcin輸入法。 在Ubuntu Software Center安裝gcin,回 Language Support設定Keyboard input method system為gcin,接著重新登入帳號生效。 參考資料 Ubuntu 14.04安裝鍵盤輸入法系統gcin http://blog.xuite.net/yh96301/blog/287374341

java servlet HttpServletRequest參數

String scheme = req . getScheme (); // http String serverName = req . getServerName (); // hostname.com int serverPort = req . getServerPort (); // 80 String contextPath = req . getContextPath (); // /mywebapp String servletPath = req . getServletPath (); // /servlet/MyServlet String pathInfo = req . getPathInfo (); // /a/b/c String queryString = req . getQueryString (); // d=parameter req.getServletContext().getRealPath("")) disk path: /home/ubuntu/...   req.getServletContext().getRealPath("/WEB-INF/abc.properties")) disk path: /home/ubuntu/... /WEB-INF/abc.properties   request.getServletPath= /test request.getRequestDispatcher= null request.getDispatcherType= REQUEST request.getServletContext().getContextPath()= /project request.getServletContext().getServletContextName()= Spring MVC Application request.getServletContext().getContext= null request.getServletContext().getServletNames()= java...

Firefox不會儲存密碼的問題

Firefox不會儲存密碼的問題,原因是將該網站設定為不儲存密碼,所以去修改那個清單就可以了。 Usernames and passwords are not saved Firefox密碼管理員 Password Manager - Remember, delete, change and import saved passwords in Firefox

AWS Route53 DNS redirect

由於AWS Route53沒有redirect功能,所以需要另外搭配S3使用,才能做到redirect。 步驟 1. 在s3建立bucket,bucket name與轉換前的domain name需要相同 2. 在bucket properties設定Static website hosting,開啟redirect all request to another host name,設定要轉換後的網址 3.在route53內,轉換前的domain name設定record type A,Alias: Yes,選擇剛剛建立好的Static website hosting 4. 完成 reference: http://stackoverflow.com/questions/10115799/set-up-dns-based-url-forwarding-in-amazon-route53 http://www.holovaty.com/writing/aws-domain-redirection/

修改Firefox ctrl+f搜尋的Match Case設定

1.Enter about:config into the address bar and press Enter. 2.Accept the warning message. 3.Type "case". 4.Double click on the entry accessibility.typeaheadfind.casesensitive in the list to open the Enter integer value dialog. 5.Change the number to 0 for case-sensitive search and press the OK button (or press Enter). ps. 1為開啟, 0為關閉