2014年8月6日 星期三

Photoshop Plugin 好用濾鏡推薦推薦 - Alien Skin Exposure

有在玩數位單眼的人, 是不是也很想體驗一下底片感覺呢? 其實現在底片相機不貴, 可惜的是很難找到適合的沖洗店家, 因為現在店家也是收一收, 再往上丟到大廠去沖洗, 還好現在有這套軟體, 雖然色調有時很難抓得很好, 但至少可以讓我們回味一下這種底片感覺的氛圍。

download link : 這裡

其實使用上也很方便, 在photoshop裡開啟濾鏡功能, 就可以看到了, 點選進去會出現另一個視窗, 就在這裡選上你想要的效果就行, 處理完, exposure會使用一個新的圖層, 而不會破壞你原有的照片囉。

2014年5月19日 星期一

Android Location In China

We all know about the location positioning in China will suffer from the Googla Maps API. If we get the location from GPS or network, we have to correct the location from the map. Or course, you will say that I got the location from GPS. Does the location is incorrect? The answer will be yes. The GPS location is correct, but the map is not correct. So..How to fix it?

I have found the answer the this question for a long time. You can find many solutions from google. But!! but...How do I know a positioning is in CHINA??????

Finally, I use the solution in my Android system.

    public static String getCountryCodeFromLocation(Context ctx, Location l) {
        Geocoder geocoder = new Geocoder(ctx, Locale.US);
        List
addresses = null;
        try {
            addresses = geocoder.getFromLocation(l.getLatitude(), l.getLongitude(), 1);
        } catch (IOException e1) {
            DebugMode.Log(TAG, "IO Exception in getFromLocation()");
            e1.printStackTrace();
        } catch (IllegalArgumentException e2) {
            String errorString = "Illegal arguments " + Double.toString(l.getLatitude()) + " , " + Double.toString(l.getLongitude()) + " passed to address service";
            DebugMode.Log(TAG, errorString);
            e2.printStackTrace();
            return errorString;
        }
       
        if(addresses != null && addresses.size() > 0) {
            // Get the first address
            Address address = addresses.get(0);
            return address.getCountryCode();
        } else {
            return "No address found";
        }
    }


If the country is "CN", the address is in China. That solved my problem...

2014年3月18日 星期二

Windows平台使用gphoto2取得相機快門數

如何使用gphoto2得到快門數, 應該是適用很多相機...
首先先到這裡下載兩樣東西...

  1. gphoto2
  2. libusb


第一個為gphoto2程式, 有興趣的人可以研究, 第二個為driver, 過程須要換掉windows系統上的驅動程式...
跟著下面步驟做...
1. 解開第二包壓倒性包, 執行bin\inf-wizard.exe


2. 選Canon Digital Camera後, 按下Next, 將inf存檔
3. 接下來會進入安裝畫面, 請按下Install Now.

4. 如果出現這畫面, 請按仍然安裝此驅動程式, 等會會說明怎麼解除安裝

5. 安裝完後, 可以執行gphoto2了, 請直接使用gphoto2.bat來執行命令
6. 命令如下
gphoto2.bat --auto-detect
gphoto2.bat --get-config /main/status/shuttercounter
完成為就會看到快門數


7. 如何移除? 直接到裝置管理原裡移除就行
這是原本的驅動程式
 下面是更改過的, 直接從這裡按右鍵移除就可以了....記得重新開機一次(相機...