イライラしながらアクセス(access)のSQLを触る
- LEFT JOIN は INNER JOIN にはならない。LEFT OUTER JOIN 扱い。
- LEFT INNER JOIN はエラーになるので、 INNER JOIN
- FROM の後、テーブルを複数記述した場合、joinをつける事ができない
- なので、joinを1個でもつけるときは全join
select * from table1, table2 left join table3
↑table1,table2が2つあるのにjoinしようとしてるからエラー、Fuck.
- JOIN ON の後の部分は全て括弧で囲わなくてはならない
select * from table1 inner join table2 on (a=b AND c=d)
↑ 括弧いらなくね? でも外すとエラー出る
- JOIN を使う時に括弧を付けてネストしまくる必要がある
SELECT * FROM ( ( ( table1 INNER JOIN table2 ON a=b ) LEFT OUTER JOIN table3 ON c=d ) INNER JOIN table4 ON e=f ) WHERE g=h
↑閉じながら書かなきゃいけないので凄く書きづらい
clearfix の書き方
clearfix クラスについて、いわゆるfloat解除。
のかわりにこれでスマートな感じになる。
.clearfix {zoom:1;} .clearfix:after{ content: ""; display: block; clear: both;}
<div class="clearfix"> <div style="float:left; width:100px; height:100px;">左だよ</div> <div style="float:left; width:100px; height:200px;">右だよ</div> </div> <p>これはちゃんと下に表示される</p>
webmin、userminの証明書が切れたから作り直した
期限切れ、もちろん自前認証
mkdir /etc/usermin/ssl cd /etc/usermin/ssl openssl genrsa -rand rand.dat -des3 512 > 2011key.pem # usermin が2048bitに対応していないので、512bitにした openssl rsa -in 2011key.pem -out 2011key.pem # パスワード消す openssl req -new -key 2011key.pem -out 2011csr.pem openssl x509 -in 2011csr.pem -req -signkey 2011key.pem -days 3650 -out 2011server.crt cat 2011server.crt 2011key.pem >../miniserv.pem
id:sett-4 : (less で) shift+Fでtail -fモードに。Ctrl+Cで脱出
less の tail -f モード的な何か - 宇宙行きたい
うおすげー!
lv でも大丈夫だとか。
windowsXPの高速化記事を見た
http://zenryokuhp.com/blog/archives/2010/11/windows_xpwindo.php
http://support.microsoft.com/kb/875560/ja
WindowsUpdateの履歴を消すやつ。
以前に実家のPCでやったことがあるけど確かに効果的。ローリスクハイリターン。
しかしその効能も放っとくと1〜2ヶ月で消える。
定期的な服用が必要です。
はてブコメントに定期的に上記作業を行うバッチを書いてる人がいた。
WindowsUpdateの履歴を定期的に削除する方法
https://github.com/matsubo/windows-useful-batch
@echo off net stop "Automatic Updates" del /S /Q "C:\windows\SoftwareDistribution\DataStore\*" net start "Automatic Updates"