Wikipediaで位置情報のテキストマインニングっぽいことをやってみた
#NGK2012Bを遡ったら続々スライド発見!(追記: 2012.12.15)
なお、MacBookのThunderbolt VGAコネクタは
@issmさんにお借りしました。m(_ _)m
ATS DIRECT Mini Displayport (Thunderbolt) オス to VGA メス 変換アダプタケーブル 0.2m 【A0199B】
- 出版社/メーカー: ATS DIRECT
- メディア: エレクトロニクス
- この商品を含むブログを見る
"●●●でPerl"してみる
このときのスライドは?
どんな感じでしゃべったの?
*1:しかもネタバレ注意
Cygwin×サークルK・サンクスで名刺を作ってみる
はじめに
第33回FLOSS桜山勉強会と第35回FLOSS桜山勉強会で後でブログに上げておきますといいながら、ここまで引っ張ってしまった宿題です。(爆)
特に期待されてた @yama__moto さん、ごめんなさい。m(_ _)m
使用上の注意
"alien some-package.rpm"でディレクトリが作成できないと怒られるときは
alienコマンドの謎のエラー(?)
"*.rpm"をNFS Exportされた/homeとかに置いた状態でalienを実行していると、下記のように怒られる場合があります。
root@some-pc:/home/babydaemons# alien gnush_v0903_elf-1-1.i386.rpm Warning: Skipping conversion of scripts in package gnush_v0903_elf: postinst postrm Warning: Use the --scripts parameter to include the scripts. mkdir: ディレクトリ `gnush_v0903_elf-1' を作成できません: Permission denied unable to mkdir gnush_v0903_elf-1: at /usr/share/perl5/Alien/Package.pm line 257.
とりあえず、下記の姑息な手段で逃げましたが。
root@some-pc:/home/babydaemons# cp gnush_v0903_elf-1-1.i386.rpm /tmp; cd /tmp; !!
原因を調べてみる
/usr/share/perl5/Alien/Package.pmの257行めあたりを見てみると、
=item unpack This method unpacks the package into a temporary directory. It sets unpacked_tree to point to that directory. (This is just a stub method that makes a directory below the current working directory, and sets unpacked_tree to point to it. It should be overridden by child classes to actually unpack the package as well.) =cut sub unpack { my $this=shift; my $workdir = $this->name."-".$this->version; $this->do("mkdir $workdir") or die "unable to mkdir $workdir: $!"; # If the parent directory is suid/sgid, mkdir will make the root # directory of the package inherit those bits. That is a bad thing, # so explicitly force perms to 755. $this->do("chmod 755 $workdir"); $this->unpacked_tree($workdir); }
てな感じで、
This is just a stub method that makes a directory below the current working directory
カレントディレクトリに書き込み権限が必要だよーん
root様はどこでも書けちゃうんじゃないの?
と思いがちですが、/etc/exportsで明示的に許可しない限り、NFS clientからはroot権限で書き込みできません。理由がclientがsetuidなバイナリ・スクリプトを置けちゃうとセキュリティホールになるからです。
root@student-pc:/home/student# df . Filesystem 1M-blocks Used Available Use% Mounted on professor-pc:/home 2016M 309M 1605M 17% /home root@student-pc:/home/student# cp -p /bin/sh . root@student-pc:/home/student# chowm root ./sh root@student-pc:/home/student# chmod s+rwx ./sh root@student-pc:/home/student# ^D student@student-pc:~$ ssh professor-pc student@professor-pc:~$ ./sh
ところで、
Ubuntuだからsudo使えよ>俺
コンパイルが完了したらメッセージボックスを表示する
ここ一週間ほどTOPPERS/ASPで組込開発をやってますが、"rm *"してから全てコンパイルしなおすと私の非力なマシンでは結構時間が掛かります*1。その間、メール/ブログ/Twitterなどチェックしてるとコンパイルが完了してることに気づかないことも多々あり。
そこでこのTips。
あなたのMakefileやShell Scriptにこの一行を追加しましょう!
perl -e 'use Win32; Win32::MsgBox("Build Completed!", MB_ICONINFORMATION, "your_build_shell_script");
まぁ、Perlにこだわる必要はなくてRubyでもPythonでもVBScriptでもWindows Power Shellでも出来るんでしょうが、TOPPERS/ASPのConfigureはPerlでやるんでCygwin版Perlがインストールされているのが保証されているのと、CPANで検索するのが楽なのでPerlを選びました。
これで、5%くらいは開発スピードがあがるかも。:-P
Ruby on Railsのケータイ向けプラグインjpmobileに移植したい機能たち
- id:komiyaさん謹製の「3キャリア対応のCSS変換モジュールHTML::MobileJpCSS」⇒Perl
http://d.hatena.ne.jp/komoriya/20090115/1232011108 - shibaさん謹製の「携帯絵文字変換スクリプトの改良版 (PHP・SSI対応版)」⇒PHP
http://dspt.blog59.fc2.com/blog-entry-57.html - shibaさん謹製の「ソフトバンクVGA端末の表示問題を解決する3キャリア対応携帯画像変換スクリト」
http://dspt.blog59.fc2.com/blog-entry-40.html