發表文章
debian ubuntu raspberri-pi moubt exfat
- 取得連結
- X
- 以電子郵件傳送
- 其他應用程式
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英文版安裝中文輸入法
- 取得連結
- X
- 以電子郵件傳送
- 其他應用程式
安裝中文輸入法之前,須先安裝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參數
- 取得連結
- X
- 以電子郵件傳送
- 其他應用程式
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...
AWS Route53 DNS redirect
- 取得連結
- X
- 以電子郵件傳送
- 其他應用程式
由於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設定
- 取得連結
- X
- 以電子郵件傳送
- 其他應用程式
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為關閉