macばかりかまっていたら windows上がらなくなってしまった2010/12/01 01:01

AMD 615EのマシンのMBR付近のHDのどこかのセクタ読めなくなってしまった。

Dual boot出来なくなってしまった。たちが悪いことに LBパーティションワークスのBM(ブートマネジャー)使っていたのだが

Windows7,Vista,XPのインストールディスク使うと最初はDVD,CD読むのだが次にBMに飛んでしまい、そこからリブート繰り返す事になってしまった。

LBのリカバリーDVDで上げると Windowsに落ちず。そのままLBのインストールになってしまう。

以前 使っていた。acronisのOS Serectorを試すと 立ち上がり時に読めないセクタあるらしく、エラーが多発した。全て無視で使えない設定をHDに入れたらしく、そのままインストールするとすんなり 複数のOSが現れて dual boot出来る

windows7 のインストールDVD入れてもチャント動く、

直ったが何かすっきりしない。どこが壊れたのだろう。何事もなかった様にPCは動いている

mac でicmp(その1)2010/12/01 02:47

appleのhttp://www.opensource.apple.com/source/network_cmds

からping.tprojを適当に探して makeしてみた

Makefileは
ーーーーー 以下 Makefile ---
Project = ping
Install_Dir = /sbin

CFILES = ping.c
MANPAGES = ping.8

Extra_CC_Flags = -mdynamic-no-pic -dead_strip

include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make

Install_Program_Mode = 04555
ーーーー 以上 Makefile

で 実行すると
$ make
Installing source for ping...
===== Building ping RELEASE =====
/Developer/usr/bin/cc -arch x86_64 -arch i386 -arch ppc -g -Os -pipe -mdynamic-no-pic -dead_strip -I/tmp/ping/Build/ping -c -o /tmp/ping/Build/ping/ping.o ping.c
===== Linking ping RELEASE =====
/Developer/usr/bin/cc -arch x86_64 -arch i386 -arch ppc -o /tmp/ping/Debug/ping \
/tmp/ping/Build/ping/ping.o
dsymutil --out /tmp/ping/Debug/ping.dSYM \
/tmp/ping/Debug/ping || true

え!!! tmpに作るのか 全く Makfileでは 解らなかった
include文のある場所は /Develop/Makefile/CoreOSの下にあるのだが 大きい

$ sudo ./ping/Debug/ping
Password:
usage: ping [-AaDdfnoQqRrv] [-c count] [-i wait] [-l preload] [-M mask | time]
[-m ttl] [-p pattern] [-S src_addr] [-s packetsize]
[-t timeout] [-z tos] host
ping [-AaDdfLnoQqRrv] [-c count] [-I iface] [-i wait] [-l preload]
[-M mask | time] [-m ttl] [-p pattern] [-S src_addr]
[-s packetsize] [-T ttl] [-t timeout] [-z tos] mcast-group

asahi-netのDNSサーバまでは
sudo ./ping/Debug/ping 202.224.32.1
PING 202.224.32.1 (202.224.32.1): 56 data bytes
64 bytes from 202.224.32.1: icmp_seq=0 ttl=58 time=9.231 ms
64 bytes from 202.224.32.1: icmp_seq=1 ttl=58 time=6.372 ms
64 bytes from 202.224.32.1: icmp_seq=2 ttl=58 time=7.557 ms
64 bytes from 202.224.32.1: icmp_seq=3 ttl=58 time=6.970 ms
64 bytes from 202.224.32.1: icmp_seq=4 ttl=58 time=7.223 ms

オライリーの電子本の値段2010/12/05 09:49

オライリーの電子本の値段 kindle bookとオライリーのebookとだと 10ドル程度開きがある。

gitをkindeで買うと$17で オライリーで買うと約28ドル

うーん 一寸開きすぎ?

沢山 コピー作れるからって値段開きすぎていると思うのだが

android-sdk_r08-mac_86.zipエラー出る2010/12/07 04:35

MACのeclipse環境にandroid-sdk_r08に上げたら
エラーでた

Downloading Android SDK Tools, revision 8
Installing Android SDK Tools, revision 8
Installed Android SDK Tools, revision 8
'adb kill-server' failed -- run manually if necessary.
Unable to run 'adb': Cannot run program "/Users/butcher/android-sdk-mac_x86/tools/adb": error=2, No such file or directory.
'adb start-server' failed.

eclipse上でのandroid-SDKのupdate2010/12/07 05:13

解決!!

最初にupdateを検索して 上げておくとエラーでない

SDK-managerをupdateかけると 95%あたりで adbを入れ直すか 聞いてくる

Downloading Android SDK Platform-tools, revision 1
Installing Android SDK Platform-tools, revision 1
Installed Android SDK Platform-tools, revision 1
Downloading Documentation for Android SDK, API 9, revision 1
Installing Documentation for Android SDK, API 9, revision 1
Installed Documentation for Android SDK, API 9, revision 1
Downloading SDK Platform Android 2.3, API 9, revision 1
Installing SDK Platform Android 2.3, API 9, revision 1
Installed SDK Platform Android 2.3, API 9, revision 1
Downloading Samples for SDK API 9, revision 1
Installing Samples for SDK API 9, revision 1
Installed Samples for SDK API 9, revision 1
'adb kill-server' succeeded.
ADB: * daemon not running. starting it now on port 5037 *
'adb start-server' succeeded.
ADB: * daemon started successfully *


APIが8から9に上がった

Downloading Google APIs by Google Inc., Android API 9, revision 1
Installing Google APIs by Google Inc., Android API 9, revision 1
Installed Google APIs by Google Inc., Android API 9, revision 1
Downloading GALAXY Tab by Samsung Electronics., Android API 8, revision 1
Installing GALAXY Tab by Samsung Electronics., Android API 8, revision 1
Installed GALAXY Tab by Samsung Electronics., Android API 8, revision 1
Downloading Google APIs by Google Inc., Android API 7, revision 1
Installing Google APIs by Google Inc., Android API 7, revision 1
Installed Google APIs by Google Inc., Android API 7, revision 1
Downloading Google APIs by Google Inc., Android API 4, revision 2
Installing Google APIs by Google Inc., Android API 4, revision 2
Installed Google APIs by Google Inc., Android API 4, revision 2
Downloading Google APIs by Google Inc., Android API 3, revision 3
Installing Google APIs by Google Inc., Android API 3, revision 3
Installed Google APIs by Google Inc., Android API 3, revision 3
Updated ADB to support the USB devices declared in the SDK add-ons.
'adb kill-server' succeeded.
ADB: * daemon not running. starting it now on port 5037 *
'adb start-server' succeeded.
ADB: * daemon started successfully *