OSクリーンインストール後に入れるツール

4月 14th, 2010 tocmoc

完全に自分向けのメモですが、毎回何のツールを入れてたか忘れることが多いので。 
(未完成:随時追加します)

  • AVG Anti-Virus Free
  • NVIDIA nTune
  • Microsoft Office
    • Excel
    • Word
    • PowerPoint
  • Flash Playper
  • Silverlight
  • AdobeAir
  • JDK 
  • Lhaplus
  • WinRAR
  • Peggy Pad(エディタ)
  • iTunes
  • デバイスマネージャへのショートカット
  • Alcohol 52%
  • Adobe Reader
  • Object Dock(MacOS X風メニューランチャ)
  • Adobe CS3
  • Windows Live Messanger
  • Windows Live Mail
  • Safari
  • Firefox 
  • Opera 
  • Picasa(画像管理)
  • DivX
  • FFFTP
  • WinSCP
  • EPSON Scan
  • TweetDeck(Twitter)
  • Klipfolio(ガジェットツール) 
  • Sigma Photo Pro (Sigmaデジタルカメラ用)
  • Microsoft Visual Studio 2008
    • Windows SDK
    • DirectX SDK
    • OpenCV (コンピュータビジョン)
    • GLUT(OpenGL)
    • freetype(フォント)
    • ftgl(フォント)
    • videoInput(ビデオ入力)
    • (zinnia)(手書き文字認識)
  • mikroC(PIC,Cプログラム用)
  • PowerDVD 
  • CCleaner
  • 秋月PIC Programmer
  • Processing
  • Arduino
  • LogMeIn hamachi
  • Real VNC
  • Python
  • Blender
    • YafaRay
  • Google SketchUP
  • Dropbox
  • GhostScript
  • GSView
  • BullzipPDFPrinter

PIC16F88x コンフィグレーションビット (HI-TECH C)

9月 14th, 2009 tocmoc

HI-TECH Cで,PIC16F88X系を使うときコンフィグレーションビットに指定できる文字列.のメモ.

C:
  1. //****************************************************************************************
  2. //                    CONFIGURATION BITS PIC16F88X
  3. //****************************************************************************************
  4.  
  5. // Configuration register 1
  6. /* osc configurations         - EXTCLK, EXTIO, INTCLK, INTIO, EC, ECCLKO, HS, XT, LP*/
  7. /* watchdog Timer WDTEN,  WDTDIS       - enable / disable watchdog timer*/
  8. /* power up timer PWRTEN, PWRTDIS       - enable / disable power up timer*/
  9. /* Master Clear Enable MCLREN, MCLRDIS    - MCLR Enabled & RE3 Disabled , MCLR Disabled & RE3 Enabled*/
  10. /* Code Protection  UNPROTECT, CP        - Do not protect code, Protect Code */   
  11. /* EE Read Protection  DUNPROTECT, CPD - Do not protect code, Protect Code */   
  12. /* Brownout Control BOREN, BORNXSLP, SWBOREN, BORDIS*/
  13. /* Internal External Switch Over Mode IESOEN, IESODIS - enable / disable*/
  14. /* Fail-Safe Clock Monitor Enable FCMEN, FCMDIS       - enable / disable*/
  15. /* Low voltage program enable LVPEN, LVPDIS             - enable / disable*/
  16. /* debug option            DEBUGEN, DEBUGDIS - enable / disable debugger */
  17. // Configuration register 2
  18. /* Brown-out Reset Voltage  BORV21, BORV40   - Volts */
  19. /* Flash Write Protection WP0, WP1, WP2      - Protect block 0, Protect block 1, Protect block 2 */  
  20.  
  21. //  These are set by the Bootloader
  22. //__CONFIG(HS & WDTDIS & PWRTEN & MCLREN & UNPROTECT &  DUNPROTECT & BOREN & IESODIS & FCMDIS & LVPDIS & DEBUGDIS);
  23. //__CONFIG(BORV40);
  24.  
  25.  

デバイスマネージャへのショートカット

5月 20th, 2009 tocmoc

C:\WINDOWS\system32\devmgmt.msc

を直接指定する

printf

11月 29th, 2008 tocmoc

今までprocessingではC言語のprintfのように便利な出力関数がなくてprintlnめんどくせと思ってたが,JAVAの機能の方にあった.JS2E 5.0,JDK5で実装されてたようなので,ずいぶん前だ.2005年くらいか?

ただ,微妙にCとは書式が違うようなので,注意が必要.
ここが一覧で見れてベンリ.
http://www.ne.jp/asahi/hishidama/home/tech/java/formatter.html

Cと同じように使えるprintfすばらしい!

JAVA:
  1. int a=10;
  2. float b=12345.1234567;
  3. double c=12345.1234567;
  4. String str="abcde";
  5.  
  6. System.out.printf("%d %05d\n",a, a);
  7. System.out.printf("%f %.3f\n",b, b);
  8. System.out.printf("%f %.8f\n",c, c);
  9. System.out.printf("%s %S\n",str, str);
  10. System.out.printf("%d\n%,8f\n%10s\n",a,b,str);

出力は,

CODE:
  1. 10 00010
  2. 12345.123047 12345.123
  3. 12345.123047 12345.12304688
  4. abcde ABCDE
  5. 10
  6. 12,345.123047
  7.      abcde

でもあれ・・・?実数の精度がおかしいような・・・?processingのせい?

動画変換

10月 7th, 2008 tocmoc

150MBまで無料で変換できる.
movからaviに変換とか.
携帯の動画を変換したいときとか,ちょっとしたときに便利.
ファイルをアップロードして,変換されたファイルをダウンロードするカタチ.

http://media-convert.com/ja/

windows Tips

7月 7th, 2008 tocmoc

Alt+ダブルクリック で プロパティを表示

swfmill swfの圧縮・非圧縮

6月 6th, 2008 tocmoc

以前,swfmillで生成したswfが圧縮されてしまうので,
flasmの-xオプションを使って圧縮を非圧縮にする方法を書いたが,

swfmillのXMLのAttributeで圧縮/非圧縮を選択できることが分かった.
(特に,Flash Lite 1.1ではActionScriptのversion 4・非圧縮swfでないと再生できない)

実際には,movieタグでcompressed指定をする.
圧縮したい時にはtrue, 非圧縮にしたいときにはfalseを指定する.

<movie version="4" width="240" height="180" framerate="12" compressed='false'>

error

6月 2nd, 2008 tocmoc

 arduinoでのエラー。

error: expected unqualified-id before  .....

何のエラーかさっぱりわからず悩んだが#define文にセミコロンがついてしまっているだけだった・・・・

patch error

5月 30th, 2008 tocmoc

$ patch -p1 < patchfile


Assetion failed: hunk, file patch.c, line 321
が出るときは,patchfileの改行コードがLFだけになっていたりする.

適当なテキストエディタでCR-LFにするとOK.

arduino — シリアル通信で文字列の受信

5月 28th, 2008 tocmoc

arduinoのIDEでシリアル通信をする場合は,Serial.read()を使うが,送られてきたデータの最初のBYTEしか読めない(0~255までしか使えない).

そこで,255以上の数字を受信するために,数字を文字列で受信して(当然送信側でも文字列として送信する),後で数字に直すという方法を使う.
arduinoはC,C++ベースなので,atoi()が使えば後で数字に直すのも簡単.

arduino側

C:
  1. void setup(){
  2.   Serial.begin(9600);
  3. }
  4.  
  5. void loop(){
  6.   char str[20]; // 数字(文字列)の受信用配列
  7.  
  8.   // シリアルからのデータ受信
  9.   recvStr(str);
  10.   int aa = atoi(str);
  11. }
  12.  
  13. void recvStr(char *buf)
  14. {
  15.   int i = 0;
  16.   char c;
  17.   while (1) {
  18.     if (Serial.available()) {
  19.       c = Serial.read();
  20.       buf[i] = c;
  21.       if (c == '\0') break; // 文字列の終わりは\0で判断
  22.       i++;
  23.     }
  24.   }
  25.   buf[i] = '\0';
  26. }

送信側でproce55ingを使うとすれば,下のコードみたいな感じで送信する.
文字列の終端を表す\0を付け足しているのがミソ.上のarduino側ではこの\0を目印にして文字列の終わりを判断しているので,両側で同じ文字を目印にしておけば大丈夫.
\0じゃなくて\nとかでもOK.

proce55ing側

JAVA:
  1. import processing.serial.*;
  2. Serial port;
  3.  
  4. void setup()
  5. {
  6.   size(100,100);
  7.   port = new Serial(this, "COM8", 9600);
  8.   port.clear();
  9. }
  10.  
  11. void draw() {
  12.   int poss;
  13.   poss = 1000; // 255以上の数字
  14.   port.write(str(poss)+"\0");
  15.   poss = -1000; // マイナスでもOK
  16.   port.write(str(poss)+"\0");
  17. }