サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
ノーベル賞
every-rating.com
※この記事にはアフィリエイト広告が含まれています 四か月ほど長期にわたってウイルス性イボの治療をしてきて、ようやく完治したのでまとめ記事にしました。 たぶんさっさと皮膚科なり病院に行った方が、普通は治りやすいのでしょうが。 海外にいかなければならないなど諸事情があったため、初めからあらゆる方法を試して自宅治療で治すことを念頭にして治療にあたってきました。 基本的にトライアンドエラーです。 失敗を積み重ねたうえでようやく完治に至りました。 結論から言ってしまうと僕の場合は、ダクトテープが一番効果的で完治の決め手となりました。 しかし、このウイルス性イボというのは非常にウイルスの種類が多いものだということなので、一概にすべてのウイルス性いぼにダクトテープが効く。 もしくは他の治療法が効かないとは限らないということを念頭において読み進めてください。 あくまで、僕の足底にできたウイルス性イボでの治
実際にはアンテナサイトを作ろうという人にしか意味のないものだと思いますが、複数のRSSを同時に取得してJSONに格納するPHPです。 一応更新日時順に並べていますが、JSONとして格納するので、JSONから取り出す時にやりたいように並べ替えたりフィルターしたりすることが可能です。 なんかいろんなサイトを参考にして作りましたが、参考サイトとして載せたいけどもはやどのサイトを参考にしたのか覚えてないし、結構弄繰り回してもはや別物になってしまっています。 Feedの種類は、Atom、RSS1.0、RSS2.0に対応させました。 このPHPを使って作ったサイトが「アニメ反応まとめ」になります。まったくアクセスのない死にサイトになってしまいましたが、参考として一度閲覧ください。 複数RSS同時取得PHPのソース //フィード登録 $data['feedurl'][] = 'http://news.y
Googleリモートデスクトップが便利すぎて大活躍しています。 サイトを運営している側としては、なにか起きたらすぐに対応しなければならなかったので、外出する際も常にノートパソコンを携帯していましたが、リモートデスクトップを使い始めてから、スマホだけで済むようになりました。 そりゃ、パソコンみたいに資料を作ったりプログラミングをしたりなどクリエイティブなことは、スマホではちょっと厳しいかもしれませんが、簡単なファイルアップロードだったり記事の修正や更新くらいなら十分に活用できます。 使ってない人は一度試してみてください。Googleウェブストアから「Chrome リモート デスクトップ」入手してPCとスマホにインストールして同期するだけです。 すると、こんな感じにスマホ上で自宅のデスクトップ画面を開いて操作することができます。 スマホを横にして画面を広げたり、スクロールや右クリックも簡単にで
MTのグローバル・モディファイアregex_replaceを使って置換処理をします。 使い方は簡単。 例えば、mt:Entrybodyタグ(本文)に書かれている内容で、「痴漢」という文字を「置換」に置換したい場合。。。もう意味わかんねえ。その場合は以下のように記述します。 <$mt:EntryBody regex_replace="/痴漢/","置換"$> 「痴漢」が一文字だけなら別にこれでもいいですが、「痴漢」が複数いたら全部「置換」に変えてやった方がいい場合は次のように記述します。 <$mt:EntryBody regex_replace="/痴漢/g","置換"$> /痴漢/の後に、g と記述することで、繰り返し処理になります。 そして、グローバル・モディファイア regex_replace は正規表現を扱うことができるので以下のようなことが色々できるよ。 ■空白行を詰める MTタグ
Linuxコマンドで、sar (System Admin Reporter) というCPUやメモリ、ディスクなどの使用率を時間ごとに一覧表示してくれる便利なものがあります。サーバーに負荷がかかっていないかとか、何時何分頃に負荷が高いのかとか一目でわかる優れもの。 使い方は簡単で、sarと打つだけで、本日の分が10分ごとに一覧で表示されます。 # sar ※「sar コマンドが見つかりません。」と出たら、以下のパッケージをインストール # yum install sysstat コマンドオプションを付ければ、もっと詳細に確認できる。 # sar -A 全情報表示 # sar -q loadaverage # sar -n DEV 送信/受信パケットに関する情報 # sar -n EDEV エラーパケットに関する情報 # sar -u CPUの利用状況。 # sar -b ディスクI/Oの使用
いやー、マジでDos攻撃する人って何考えてるんだろう。ただの嫌がらせ? 本当に逮捕されますよ。実際2015年7月に逮捕者でてます。 「「DDoS攻撃」でサイト閉鎖させた疑い ベトナム人逮捕 警視庁」 軽い気持ちでむかつくからと言ってF5連打とかもっとダメです。前科者になりたいの?とグチグチ言いたくなる。 いや、事の顛末はこう。 別で、とある登録型サイトを運営しているんですが、ひと月に一回ぐらい大量のDos攻撃をくらうことがありました。 IPを調べると必ず中国からの攻撃で、なんと1日で200万件越えの攻撃。エラーログだけでその日は352MBもありました。 救いはDDosではなく同一IPだったので、気が付いた時に.htaccessで403して弾いているという古典的な対応策で頑張っていたんですが、それでも共用レンタルサーバーから『いい加減アクセス負荷が大きすぎるから出ていってくれないか』とメール
ブラウザがバージョンアップされていく度に条件が変わるので、CSSハックを使用する場合には、最新情報を常に取り入れていくことが肝心。(以下のCSSハックの情報は2015年5月時点) 極力CSSハックを使用しないでデザインできることが当たり前だけど望ましい。 どうしようもなくなった場合だけ使用する。 また、使用する際は各ブラウザで適用されているか私見で確認は十分にすること。 /* --- Internet Explorerハック */ .style { color: #333\9; /* IE8以下 */ *color: #333; /* IE6とIE7 */ _color: #333 /* IE6のみ */ } /* IE6のみ */ * html .style { color: #333; } /* IE6以外 */ html > body .style { color: #333; }
今までサーバーを自分で管理するVPSとか難しすぎて敬遠していたけれども、どうしても普通のレンタルサーバーではできる事の限界があり、ようやく重い腰をあげてさくらサーバーのVPSを借りてつかっている。 まあ、使ってみたらネット上に情報は結構落ちているし、なんとなくわかってきたような気がする...。 あれやこれやと最低限のセキュリティ設定など初期インストールを終えて一か月たった今。 毎日メールで送られてくるLogwatchに以下のようなアクセスログ(一部文字伏せ)が送られてきた。 --------------------- httpd Begin ------------------------ Connection attempts using mod_proxy: xxx.xxx.93.42 -> xxx.xxmail.netease.com:25: 1 Time(s) Requests w
これは結構苦労したので、ログとして残しておく。 phpでダウンロードさせる方法を調べると、ほとんどがreadfile()関数を使えと出てくる。 まあ、間違っていないんだけれども、僕の場合大容量ファイルのダウンロードでなにも考えずにreadfile関数をつかってしまい、サーバーメモリー馬鹿みたいに使用しまくるし、DiskIO負荷は10MB/s にまでなるしで、ヤバい状況になった。 事の顛末はこんな感じ、 ダウンロードさせるなら readfile関数 使え! ⇒ ほー、OK。使ってみよう。 ⇒ 実装してみた。でも20MB超えるファイルをダウンロードすると失敗するよ? ⇒ php.ini ファイルの post_max_size, upload_max_filesize, memory_limit の設定メモリを増やせ! ⇒ 分かった。全部1GBに設定してみたわ。 ⇒ お、正常にアップもダウンもで
このページを最初にブックマークしてみませんか?
『自分でなんとかするWeb』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く