Sunday, April 04, 2010

Hasselblad XPAN 45mm - 北投亂晃 Lounge around Beitou Part 2 ( 02 / 2010 )

Camera: Hasselblad XPAN I
Lens: 45mm
Film: Kodak GC400
Scanner: Epson F-3200

2月份在住家附近亂晃,Part1放的全是橫幅的,Part2 放直幅。

Hasselblad XPAN 45mm - 北投亂晃 Lounge around Beitou Part 1 ( 02 / 2010 )

Camera: Hasselblad XPAN I
Lens: 45mm
Film: Kodak GC400
Scanner: Epson F-3200

2月份在住家附近亂晃,Part1放的全是橫幅的,Part2 放直幅。Xpan 真是好相機!! 全新體驗

1.我家的舊大門

2. 榕樹根

3.光線與綠葉

4. 櫻花

5.小瀑布

6. 福安宮 - 土地公廟

Rollei AFM35 - 平等里 Pin-Deng Neighborhood ( 03 / 2010 )

Camera: Rollei AFM 35
Film: Fujifilm Proplus II 100

AGFA 1535 - 淡水一日遊 One day trip to Tamsui ( 03/2010 )

Camera: Agfa 1535
Film: Kodak TMY 400
Scanner: Epson F-3200

此次行程: 小白宮(三月起免費)、紅毛城(三月起免費)、紅樓下午茶

1.眺望觀音山

2. 紅毛城內的起居室

3. 偷拍

Rolleiflex 2.8Gx + Rolleinar III - Part 2

Try Rolleinar III again.

Film: Fujifilm Superia 100
1.水龍頭

 2. 紫花酢醬草

3. 榕樹

4.失敗的作品,沒對好焦也沒抓好距離,很可惜要不然還蠻喜歡的


Thursday, March 11, 2010

Linux - Tips: using bash in Makefile

Object: To change shell to "bash" and use it in make procedure

add this to the top of makefile

SHELL :=/bin/bash

Linux - Unix command in C code

Object: using unix shell command in C and get result from the command.

PS:
1. The sample is type of IPC program, and the command need to go with pipe line( "|" )
2. The sample is referenced from http://www.computing.net/answers/programming/unix-command-in-c/19012.html  nalls's reply

===============================================
complier: gcc command.c  -o command
===============================================
source code:



#include
#include
#include

#define MAX_LINES    256
#define MAX_CHARS    MAX_LINES
#define MAX_TXT        MAX_LINES


/*
 * This function executes a piped command passed as
 * a pointer-to-string, exe_str.
 * buffer is the array where each line is stored
 * lineptr is an array-of-pointers where each element of the
 * array points to the beginning of each line stored in buffer.
 *
 * returns the number of lines read into buffer, cnt.
 *   
 * URL: http://www.computing.net/answers/programming/unix-command-in-c/19012.html   
 */

/*
 * Fatal Error
 */
int fatal(x)
    char *x;
{
    perror(x);
    exit(1);
}



int run_popen(lineptr, buffer, exe_str)
    char *lineptr[]; /*array-of-pointers to addresses */
    char buffer[];  /*buffer to save strings */
    char *exe_str;   /*pipe command */
{
    int i, cnt=0;
    FILE *ptr, *popen();
    char *bufstart, *bufend, line[MAX_TXT], *fgets();

    bufstart = buffer;         /*mark start of available space*/
    bufend = buffer + MAX_CHARS;    /*mark end of available space*/
    if((ptr =   popen(exe_str, "r")) == NULL)
        fatal("Couldn't open pipe");

    for(i=0; i
    {
        if(fgets(line, MAX_TXT, ptr) == NULL)
        break;
      
        line[strlen(line)-1] = '\0'; /* no new-lines*/
              
        if((bufstart + strlen(line) + 1) >= bufend)
               fatal("Line too long");
   
        lineptr[i]=bufstart;        /*save the address of the line*/
           strcpy(bufstart,line);      /*save the line into buffer*/
           bufstart += strlen(line)+1; /*update starting pointer*/
           cnt++;
    }
   
      fclose(ptr);
      return cnt;

}





int main()
{
    char *slines[MAX_LINES];
    char sbuf[MAX_CHARS];
    char *com_str="ifconfig | ifconfig eth0 |grep inet";
    int count,i;

    count=run_popen(slines, sbuf, com_str);
    fprintf(stderr,"count is %d\n", count);

    if(count == 0)
       exit(1);

    for(i=0; i
       printf("%s\n", slines[i]);
      

    return 0;
}

Thursday, February 25, 2010

Rolleiflex 2.8Gx - 太平山之旅 Trip to TaiPingShan ( 01/ 2010 )

01/01/2010 太平山跨年

Rolleiflex 2.8Gx + Fujifilm Superia 100

1. 太平山遊客中心外( Outside of Visitor Center )

2. 太平山莊( TaiPingShanu Villa )

3. 太平山莊( TaiPingShanu Villa )

4.太平山莊的日出 ( sun raise )

Tuesday, February 16, 2010

Rollei AFM35 - 三峽祖師廟

三峽祖師廟。( Film: Fujifilm ProPlus 100 )

1.入口處的屋頂

2.台階旁的銅獅

Monday, February 15, 2010

Camera Test - Rolleiflex 2.8Gx + Rolleinar III

測試 Rolleinar III 。( Film: Kodak E100VS )

1.姑婆芋的葉子

2.不知名的植物

3.陽台上的小盆栽

Rollei Lens - Distagon 25mm/ F 2.8 non-HFT

1. 巷口

2. 紫花酢漿草。近拍的距離
 

3.樓梯間。沒HFT的加持,光斑出現了
 

Saturday, January 30, 2010

Rollei Lens - Planar 50mm/ F1.4 HFT

2009/12 中和圓通寺步道 試拍

1. 玉皇宮前的涼亭
 

2. 回程的路途上
 

3.圓通寺入口前 (右側)
 

Sunday, January 24, 2010

135 - Rollei AFM35




Name : Rollei AFM35
Store : Ebay
Price :
Spec :
鏡頭:S-Apogon HFT 38mm/f2.6
濾鏡:none
對焦:VF (meter scale focus) or AF
快門:1/2 s – 1/290 s (at f/2.6) – 1/1000 s (at f/16) + B 快門 ( 1-60sec )
光圈:2.6, 4, 5.6, 8, 11, 16
ASA:50, 100, 200, 400, 800, 1600, 3200
體積重量:250 g (without battery),123 X 63 X 33.5 mm
電池:  CR2


Note : 1.

Reference : 1. User manual


Thursday, January 21, 2010

Camera Test - Minolta Hi-Matic 7S II

Equipments:
Camera body: Minolta Hi-Matic 7S II
lens: Minolta Rokkor 40mm/F1.7
Film: Kodak GC400
Scanner: Epson F3200 Photo
Adapter: none

Note:
1. manual focus

F5.6


F4


F2.8


F1.7