Movatterモバイル変換


[0]ホーム

URL:


はてラボはてな匿名ダイアリー
ようこそ ゲスト さんログインユーザー登録

「CUPS」を含む日記RSS

はてなキーワード:CUPSとは

2023-03-16

Title: The BlackSamurai - A Tale of Yasuke


Prologue

Thesun sank behind the horizonas thelast vestiges oflight bathed theJapanese countryside in awarm,goldenglow. Yasuke, a tall, muscular Africanman withskinas darkas midnight, knelt in the courtyard of Nobunaga's castle, tending tohis duties. Though he had traveled a long and treacherouspath toreach thismoment,hisjourney had just begun.

Chapter 1: A WorldAway

In a small villageon theMozambique coast, a young Yasuke lived an ordinarylife, unaware ofthe extraordinarydestiny that awaitedhim. Capturedby slave traders and torn fromhishomeland, he endured a grueling voyage across theIndianOcean,finally arriving in the bustling port ofGoa,India.

Itwas there that Yasuke'sfate took an unexpected turn when hewas purchasedby Jesuit missionaries. In their service, he learned about Christianity, new languages, and the ways of the Western world.

Chapter 2: TheLand of theRising Sun

As a loyal servant to the missionaries, Yasuke accompanied themon theirjourney toJapan, aland of mystique and intrigue. The beauty of theland, the complexity ofits customs, and the elegance ofits people captivatedhim.As the first African toset foot inJapan, heattractedattention andcuriosity fromall thosewho encounteredhim.

Chapter 3: The Encounter

InKyoto, the capital of feudalJapan, Yasuke'slifechanged forever when he metOda Nobunaga,one ofthe mostpowerful and influential daimyos ofthe time. Nobunagawas captivatedby the African's physical prowess,intelligence, and uniquebackground. Seeing potential in Yasuke, Nobunaga decided totakehim intohis serviceas asamurai.

Chapter 4: ThePath of theWarrior

Yasuke's transformation from a slave to asamuraiwas fraught with challenges. He had to adapt to the rigorous training, strict code of honor, and the intricacies ofJapanesesociety. Despite these obstacles, Yasuke's strength, resilience, anddeterminationallowedhim toexcel, earning therespect ofhis fellowsamurai and the trust of Nobunaga.

Chapter 5: The UnfoldingWar

As Nobunaga sought to unifyJapan underhis rule, Yasuke foughtbyhis side in numerousbattles. The Africansamurai'slegend grew with eachvictory,asdidhis bond with Nobunaga.Together, they faced both triumph and tragedy, navigating the treacherouslandscape ofalliances and betrayals that defined the era.

Chapter 6: The Turning Tide

Yasuke's reputationas a skilled and loyalsamurai grew,asdidhis bond withLord Nobunaga. Thewarlordrespected Yasuke's dedication and resilience, a stark contrast to the treachery and self-serving ambitions that plaguedmanysamurai of the era.

Word of Yasuke's prowessreached other daimyos, andwhispers of the formidable blacksamurai began to spread across the provinces. The yearwas 1579, and theOda clan had just emerged victorious in the Battle of Tedorigawa. Yasuke had fought valiantly,his towering presence and unmatched strength strikingfear intothe hearts ofhis enemies.

As theOda clan continued to expandits territories, Yasuke'sfriendship with Nobunaga deepened, and he became a trusted advisor. He learnedmore aboutJapanese culture, studied the language, and embraced the customs ofhis newhome.

In the shadows, however, the tides ofchange werebrewing. Mitsuhide Akechi,once a loyalally, had grown disillusioned with Nobunaga's rule. The resentment smoldered withinhim, fueledby a series of perceived slights and politicalmaneuverings. Mitsuhide's ambition anddesire forpower began to cloudhis judgment.

Yasuke had sensed theshift in Mitsuhide's demeanor and grew increasinglywary of thesamurailord. However, loyalty to Nobunaga preventedhim from openly voicinghis concerns. He instead focusedonhis duties, ever vigilant and ready to protecthislordat amoment's notice.

Onefateful evening, theairwas heavywith the scent ofcherry blossoms,as theOda clan gathered tocelebrate their recent victories. Laughter and the clinking of sakecups filled theair. Unbeknownst to the revelers, Mitsuhide Akechi's treacherous planwas already inmotion.

As thesun rose, the first cries of battle rangout. Mitsuhide's forces had launched a surpriseattackon Nobunaga's residenceat the Honno-ji Temple. Thechaoswas overwhelming,asfriend turned againstfriend, and theair filledwith the acrid smell of smoke andblood.

Yasuke foughthis way to Nobunaga's side,his sword cutting through the traitoroussamurai withbrutal efficiency. Thetwo menmade theirfinal standtogether, back-to-back, against the relentlessonslaught.

In the end, however, they wereoutnumbered.As Nobunaga fell, mortally wounded, Yasuke continued tofight, but he toowas eventually captured. Mitsuhide Akechi, in atwisted display ofrespect, spared Yasuke'slife, acknowledging the loyalty and prowess of the blacksamurai. Yasukewas sent to the Jesuit missionaries,his future uncertain.

Yasuke'sjourney had been a remarkableone, from a slave in a foreignland to a trusted advisor andsamurai. Despitehis extraordinary circumstances, he remainedtrue tohimself andhis values.Hisstory of strength, resilience, and loyalty would be remembered and honored forgenerations to come.

Epilogue:

As thesunsetonanother day inJapan, the whisper of the wind carried the tale of the blacksamurai, Yasuke, across theland.It would weaveits way through the ages, inspiring countless others torise above adversity and carve their ownpaths through the storms oflife.

Permalink |記事への反応(0) | 23:46

このエントリーをはてなブックマークに追加ツイートシェア

2020-07-31

anond:20200731170819

これでもいけゆ?OXO Angled MeasuringCups

Permalink |記事への反応(0) | 17:15

このエントリーをはてなブックマークに追加ツイートシェア

2018-12-25

anond:20181225102720

おじいちゃんが頑なにPDFガーとか言うのは結構なんだけど

ワイが期待した超簡単でいいか理解している?はこう言う事な?

CUPSについて

1.ユーザプリントの依頼をする

2. スケジューラに依頼がもちこまれキューになげこまれ

3.ポストスクリプトドライバとPPDや、GhostScriptによりプリンタ解釈できるものに変換される

4.バックエンド情報がひきわたされ、プリンタ情報がわたされる

5.印刷がなされ、完了となる

その話、必要

PDF投げてる状態だとすると、不具合があった場合は、ネットワークハードソフト)かプリンタかどっちかが原因で、プリンタボードなら取っ替えでメーカー保守担当電話だよ。後者ならパソコン先生が出る幕ないよ。

んで、メーカー製のドライバ必要なのはプリント画面で直接プリントPDF送信するやつじゃないかな。オプション設備必要だし。

オープンソースドライバでできるかどうかはちょっとどうかと思う。

MacOSXバージョンによっては、メーカードライバを用意してないケースが多々あって、Macデフォルトで用意してるドライバとかオープンソースドライバ必要になるわな。懐かし。

Permalink |記事への反応(0) | 10:58

このエントリーをはてなブックマークに追加ツイートシェア

anond:20181225101918anond:20181225102636

おじいちゃんが頑なにPDFガーとか言うのは結構なんだけど

ワイが期待した超簡単でいいか理解している?はこう言う事な?

CUPSについて

1.ユーザプリントの依頼をする

2. スケジューラに依頼がもちこまれキューになげこまれ

3.ポストスクリプトドライバとPPDや、GhostScriptによりプリンタ解釈できるものに変換される

4.バックエンド情報がひきわたされ、プリンタ情報がわたされる

5.印刷がなされ、完了となる

Permalink |記事への反応(2) | 10:27

このエントリーをはてなブックマークに追加ツイートシェア

2015-11-29

あるサイトタロット占いプログラム(それ自体はほぼ遊びで作られている)で占っていたら、今の自分を完全に見抜かれている気がして胸くそ悪さまで感じるので、引いたカードさらして行く。

IV. PENTACLES (金貨の4, ペンタクルの4) REVERSE

逆位置:執着。嫉妬。どん欲。吝嗇。保持。保管。

② Page ofCUPS (聖杯の小姓) REVERSE

少年子供感性想像力。引っ込み思案。弱気

VI. PENTACLES (金貨の6, ペンタクルの6) REVERSE

アンバランス。過剰。行き過ぎ。やり過ぎ。自己満足

1枚目を引いた時点で怖くて2枚目以降を引きたくなくなった。

2枚目も同じ気持ちになった。

3枚目で何故か妙に納得した。やっぱりこの指摘を信じて冷静に行動した方がいいんだろうか。ちなみに悩みは恋愛関係陳腐もの

Permalink |記事への反応(0) | 22:13

このエントリーをはてなブックマークに追加ツイートシェア

2014-05-04

http://anond.hatelabo.jp/20140504105600

非表示リストのつづきのつづき

sunfamilymiria|taknom_iphone|sora_h|minougun|endo_5501|yunohito|mnnn|masatug|dankogai|umineko01|webtamago|topiyama|tsutsuji360|mottii-cocoa|smbd|kyo_ju|bjm_tms|UME|gyu-tang|Lian|ezo_999|geekpage|utsuyama_QB|ezookojo|s0l101|comnnocom|kaminsky-eff|roppara|Reina|kikinight|kobeni_08|higan_n|thatblue|rotemeister|taro1979|hobbling|hatechan09|lisagasu|airbird|sechs|oryza1982|zanchin|hatanaoki|z00|z0rac|K-Ono|quabbin|sofa220|rdetfhku|polynity|kandakeido|cblock|yuwdio|Untouchable|jumitaka|makamaka_at_donzoko|

shinimai|thrakt|asitaki|kajike|kz78|zenon122373|enderuku|myogab|change_k|Mu_KuP|t-oblate|Yoshitada|sugawara1991|moondoldo|ryokuchan|bakanyan|ji8ji8jia|saitamanodoruji|ichi2410|nokunoku|hiroroEX|

datkobakoba|crow_henmi|bratop|daishi_n|ienagasunrise|asherah|kingate|rokkakuika|IWANORI|Lamunebin|yuxto|dcfmpm|pokemonnda|K12121|hotakasugi|Shichi_Yachio|shoiko|rizenback000|nokumotto|nixyn77|yukimi0721|kahinatan|arakuretaro|sprout_rice_set|yonju|zilog80|ArcCosine|deltablog01|ad2217|tmurakam|shimaguniyamato|gla69|kaigoiryou|aqkaede|

fox_f-x|kimayuri|a2dxm59|heyheydeepers|urashimasan|a1ot|syakkuk|slm|hemm|foxymacky|tada-wo|fujixe|wow64|kumaroku|sesuna|junjun|seeld8t7|nobyuki|k2e|popkiller|yunottinoatama|letterdust|tukaima|o-kojo2|

hazama-hazama-hazama|style_blue|shigeto2006|jazirat_sina|mujin|xxix29|widerstand|KATANA_SR|j_whiskey|fumimotata|

gashin_shoutan|sink_kanpf|D_Amon|gryphon|shozro|gdno|tim_tadashi|accent_32|nyahgo|watto|shiranami01|justsize|kamiyakenkyujo|theatrical|tkssny|f6731713|take148|winterfall|hinakomoriyama|heniha|superpuma|RedSpinach|Apeman|pawawap|Prodigal_Son|chromestarmine|sugoku_kusaiyo|gasshin1|kyoumibukaikiji|

ki-sa|lectro3000|AnalystCool|BUNTEN|kaanjun|hestigo|yuhtan|mikayu55|noumindesu|shrimp17|oshinnnnnn|TM2501|e-takeuchi|Ashburton|counterfactual|setlist0225|cirno6gwa|mmuo|HanaGe|tsubaki_yayoi|caq|lkhjkljkljdkljl|arigamin|

grizzly1|chikurou|arugorizumu4458|jutaro0428|u1tnk|clample|KariumNitrate|bougenn|moons|ao-mid|godfrey|hhungry|Rouble|gpnao|fnm|cyo-tano-CEZ|aoccs|underdog_slumber|barubari2955|botp|suikax|ikd18|Blue-Period|nappa_zzz|Nyoho|eight_beater_pc|binbou_himanasi893|Shimo8917|iu31ehlah|akatsukijp|ASHIASHI|

Nanigashi999|kunitenten_tokyo|serio|tullys2013|yukkesan|QJV97FCr|eriko315|medbb|yosak439|koma2ug|zkasa|dakiuma|cabvm|takehiko-i-hayashi|roastsalad|kote2kote2|Lycoris_i|hakuorz|suta_meshi_taro|flipflop_jp|tm_lv_vl|pianomanshow_iwate|

tuya|CAX|daichan330|rakka74|yonehiro|choumi|yogasa|Lobotomy|hxhh8107|hima-ari|robertkellar|aliaki|woopsdez|uva|uk_x|coyote_trickster|hide-bm|bcwrrgezef|garicchi|azoth1219|imash|mzhrsm|sometimeshappy|marmotY|zeromoon0|tohosnk|sxy_zzz|inunu0925|

bookseller56|marioroll|ntarou|saizou4|delimiter|mrgw02|tyottu176|umebosi0602|auin128|reader3104|ltdx|sh4rply|hotpot1028|gacky1001|ymmt_hdk|backpaper0|iyuuji41|r258guide|r_takeuchi|kamakiri0128|ochan0115|subatann|plusx3|books_sake_htn|

damic|owt_us|fin2l|BlackJoker|kweber|x38fabded78l5zk403|sinsui114|k_kamio|pekodpc|moritote|nobbbb|jagging|kuroinu96|bababa6417336|yars33|gleengoblin|frenchbu|quattrou|okara1107|tanku|windish|gusagusa3619|hirok73|ken-baan|watayan-nakanishi|yu76|clonblmn|tsuki-rs|okachan_man|AfroRay|namikawamisaki|ketena|idenchu|verum01|rukirby|pisces12|morita_non|norton3rd|

salmo|kgotolibrary|ysog|Talgo|yz_s|hanyA|proverb|netcraft|brighthelmer|namaer|sin4xe1|fb001871|Chosuke|Ukey|simimasa|aya_momo|kyasarin123|marutsune|nonpori|nimai|ynakajima|ono_matope|mshkh|lequinharay|gutarin|die_kuma|kodamatic2|elephant09|akedayo|fatpapa|gmsniper2|kazutaka_ueyama|AKIT|asahinoataru|kamezo|hmmm|tanayuki00|holypp|nowheremann|kerodon|

sakuramacaron|sessendo|narwhal|lovecall|ueshin|roller_skate|mh0401|bookiori|cybo|obimaruko|redcane2|susue|kskmeuk|komoko-i|fiblio|kamm|ogijun|kaskzkas|harabow|ggg123|fu-wa|kukky|KIKUKO|gnt|ustar|sasakill|Desperado|GuriGura|HDPE|ume-y|mkrm|katsumushi|seinzumtode|tboffice|jou2|ryoreala|y-yosuke|chiusagi|nighter13|torowaru|celitan|senzokuike39|solty25|kunitaka|i386SL|daruism|

chu-son2|djrymgm|eryngii|frothmouth|tommy0764|politru|xykihara|yamuchagold|seesaasaa|hazisarashi|gotoinnerspace150|shachi_kk|julajp|s025236|kazsoga|casm|moskva-borscht13|dressupvamp|inusoucho|mitz_777|

eg21|blueboy|kaworun_k|toriaezu|okadatetsuya|koyancya|su_zu_ki_1010|vegan_lion|theworld|navagraha|localnavi|snrteuiysa|mag-x|yunoka0314|gasparl|nana_07|OKETA|takaaki110|RyotaTakimoto|E-noji|egoistfollower|ysk_lucky-star|YaSuYuKi|

ma-nkgm|HIMAzine|rhosoi|emiyosiki|pero_pero|masamune61|iuhya|naochin|tomymot|nagisabay|Dusty|Watson|hotatetsuya|lonelyman|mobileac01|velvetgrouse|deloreanmc12|uuron_cha|kei5bu|agano|pompom34|riturn|

n-shikata|cs133|nekonbee|cj3029412|arukast|sima_pan|igusa|spotpinch|axjack|pgite3up267|ybmelon|suzumasa1995|mkawano|

mattn|tdam|hataichi|littlefield|hate7hate0123|sorano_k|taccobue|yahihi|ooyutanoo|chihirocks123|taiji-np|tanesoku|llgenll|shadow-toon|odenchi|minatonet|fukutaku777|V-8|jetta_swingin|osimism|nao_kosaka|Goph3r|mini_big_foo|OKU_s62|fafafa_FAIA|anomy|ceramic-cups|shushu00|limner|linkend|imaizumit|milkya|manaby_s|takuji31|shsh0shsh|ksk_kbys|unitro|hatecha|

seuzo|uenotakeshi|sk2233|kskim|au_gold303|wakkk|mntone|chellio|abc9razysalt|tmsbb|kayokimura|lumberyard|mapiro|unarist|shintaks|pontanta|yutakart|juangotoh|megazalrock|okinawa-rail|dice619|solt-nappa|

quinto|kougas|blackshadow|elm200|ame_teikiatsu|GRA|limesaki|time_blue|chami-motoki243|yohichidate|tmura3|sayama123|toycan2004|baddy|JL6PQY|sumuniaa|motto35|qhachikun|cos96|cyuushi|manjutaro|yem3399op|asdfjkl270|wakuwa|mas4bookmark|natske7|nk87|tasshy|g5wlMo|ichi19991213|satohu20xx|kazuhiko11|gebonasu30km|

masahiro1977|gazi4|geopolitics|Terra-Khan|blue1st|ktakeda47|ysdk1|no_makibou_no_life|tanizakura|POPOT|zebraeight|tobea|rain-tree|str0aw588|goo149583|tokishi48|take-it|locust0138|satis|fellfield|zeha|mc22_90|MIZ|d_akatsuka|tokage3|waiwaimic|nintenman|exterminator|believemeimaliar|toru-nakata|cobberfield|s_kyblue2002|suchaperfectday|arabasta|kana777|rasuo|sakamasa1984|morisoba126|pudding0507|hateb_39|nrnkdidnc|kyuru19|kawa79|ookawa369|ymtk0815|citro007|Masah70|syuu-sb169|share_stream|ynishimura0211|naoki1737|

kaisyuu1823|tomo-san|rokux|trade_heaven|daibutsuda|uturi|korea91|kagehiens|sakra00|m-kawato|

zroff|tarosukegr|kskoh|oya3|boyasan|coolworld|otabiz|sent666|feilong|t-ueno|Windfola|hanafusam|hirokan55|aoinano|wima123|houjiT|usoga|STAR_ZERO|foobar_nobody|furumix|k168k111t78|

feel|ufu235|s-guilty202|coh_no|hide_otu|kyma|kirte|moncafe003|diabah_blue|hatekura331|ilittaka|j-crouch|jakuon|swordfish-002|ChaiVor|ksk130421|tachisoba|nakamura990417|hzoozh99|batta|gumchoco|kazutan711|stack00|mickn|takuto0924-starwars169|watermaze|gmochein|spiralspider|kiria25|fudsuki|siruaa|androidzaurus|mozunikki|nkmrkisk|nakex1|desuzo896

Permalink |記事への反応(1) | 11:04

このエントリーをはてなブックマークに追加ツイートシェア

2012-10-26

iphoneで見れて、毎日いっぱい更新されるのエロ動画サイトを作った。【サイト構築詳細メモ

はじめに

なんちゃってプログラマーやってます

「みんなの役に立つサイトを作って、一発大きく儲けたい!」と、

思い続けて、早10年(泣)。。

なかなか画期的アイデアって出てきません。。

とりあえず、エロサイトを作るのってすごく勉強なる?楽しい?らしいので、

誰にも利用されない「へぼツール」作るより必ず誰かの為になるなぁと考え、

エロサイト作りました。(保守不要で完全自動化)

iphoneで見れて、毎日10記事絶対更新

できるだけ、誰でもわかるように、詳細を書いていますので、

これを見るだけで、ノンプログラマーの方でも、

同様のサイトは簡単に立ち上げることができちゃうと思います

つくったサイト

http://iphone-xvideos.info/

サイト名:iphone-xvideosエロ動画H (仮)

デザインデフォルトのまま(そのうち修正しまーす)

作成期間:40時間ぐらい…

iphoneでも見やすくしています

※記事は毎日10更新予定です。つまり毎日このサイトだけ見に行けば困らないってことです。

きっかサイト

http://anond.hatelabo.jp/20101219185436

http://anond.hatelabo.jp/20101203150748

http://d.hatena.ne.jp/inouetakuya/20120331/1333192327

http://anond.hatelabo.jp/20120318122617

http://anond.hatelabo.jp/20120914214121

http://anond.hatelabo.jp/20110804021353

http://anond.hatelabo.jp/20120926165533

レンサバ

saasesのVPS OsukiniサーバーLT メモリ512MB 月450円! アダルトOK

CentOS 64bitを選択。(メモリを食うだけなので、特に用がなければ、32bitにしよう!)

↑一番安いプランしか契約できなかった…

※どこにも書いてないけど、2週間以内なら取り消しできます

契約時、webmin&mysqlの選択は必須にしておいたほうがいいです。私は間違えて、webmin無しにしてしまった。。

から、再インストール(初期化)すれば、再選択することができるようです。。

申し込み後、たったの30分で接続できるようになりました。

ドメイン

iphone-xvideos.info

バリュードメインで取得。280円!安い。

DNSVPSIPに変更。

不要サービスを止める

/sbin/chkconfig auditd off

/sbin/chkconfig autofs off

/sbin/chkconfig avahi-daemon off

/sbin/chkconfigbluetooth off

/sbin/chkconfigcups off

/sbin/chkconfig firstboot off

/sbin/chkconfiggpm off

/sbin/chkconfig haldaemon off

/sbin/chkconfig hidd off

/sbin/chkconfigisdn off

/sbin/chkconfig kudzu off

/sbin/chkconfig lvm2-monitor off

/sbin/chkconfig mcstrans off

/sbin/chkconfig mdmonitor off

/sbin/chkconfig messagebus off

/sbin/chkconfig netfs off

/sbin/chkconfig nfslock off

/sbin/chkconfigpcscd off

/sbin/chkconfig portmap off

/sbin/chkconfig rawdevices off

/sbin/chkconfig restorecond off

/sbin/chkconfigrpcgssd off

/sbin/chkconfigrpcidmapd off

/sbin/chkconfig smartd off

/sbin/chkconfig xfs off

※190MBが150MBぐらいになります

SSHサーバ設定

$suroot

FTP接続できるようにする。

http://support.saases.jp/index.php?action=artikel&cat=63&id=312&artlang=ja

バーチャルホストの設定

#vi /etc/httpd/conf/httpd.conf

NameVirtualHost *:80 ←これを探して、コメントアウトを削除。その下に以下を設定。

<VirtualHost *:80>

DocumentRoot "/home/ユーザーID/iphone-xvideos.info"

ServerNameiphone-xvideos.info

<Directory "/home/ユーザーID/iphone-xvideos.info">

order deny,allow

allow fromAll

Options FollowSymLinks

AllowOverrideAll

</Directory>

</VirtualHost>

apache再起動

# /etc/rc.d/init.d/httpd restart

httpd: Could not reliably determine the server's fully qualified domainname, using...」

再起動時に上記のエラーがでた。

その時はこちらで解決⇒http://d.hatena.ne.jp/uriyuri/20100511/1273575287

で、このままだとIPアドレスでもアクセスできてしまうので、以下もやっておく。

http://fedorasrv.com/memo/log/29.shtml

mkdir /home/ユーザーID/iphone-xvideos.info

chownユーザーID /home/ユーザーID/iphone-xvideos.info

/home/ユーザーID/以下はpermission errorとなりアクセスできないので、権限を変える。←いいのかな?

chmod 755 /home/ユーザーID/

CentOSAPCインストール

http://blog.verygoodtown.com/2010/02/centos-apc-install-how-to/

#pecl installapc

↑これを実行した際に、「error: expected specifier-qualifier-list before 'pcre'」なんちゃらっていうエラーがでたので、以下を実行。

yum installpcre-devel

再度実行して、無事インストールできた。

#pecl installapc

#vi /etc/php.ini

extension=apc.so ←これを一番最後に追記

APCの設定】

vi /etc/php.d/apc.ini

extension=apc.so

[APC]

apc.enabled = 1

apc.shm_size = 64 ←適当。。

apc.gc_ttl = 3600 ←適当。。

apc.ttl = 3600 ←適当。。

/etc/init.d/httpd restart

  • viの基礎講座】-----

/ ←検索

n ←次の検索文字へ

i ←編集モード開始

Esc ←編集モード終了

]] ←最後尾に移動

:q! ←保存せずに終了

shift押しながらzz ←保存

--------------------------

apache再起動

# /etc/rc.d/init.d/httpd restart

phpinfoの画面でapcの項目があるか確認

vi /home/ユーザーID/iphone-xvideos.info/index.php

phpinfo();

?>

apacheの負荷対策

http://tanaka.sakura.ad.jp/2011/05/centos-linux-apache-php-perl-mysql-lamp.html

↑これを参考に適当に変更してみた

MaxClients 256 ←これを40に

MaxRequestsPerChild 4000 ←これを1000

このサーバは、512MBしかいかもっと小さくしたほうがいいのかも。。

# ab -c10 -n100http://iphone-xvideos.info/

【変更前】

Requestspersecond: 40.01 [#/sec] (mean)

【変更後】

Requestspersecond: 137.57 [#/sec] (mean) ←1発目

Requestspersecond: 552.79 [#/sec] (mean) ←2発目以降(キャッシュ後)

wordpressがらみ

http://ja.wordpress.org/

最新版をやってみるとエラーが発生。

サーバーPHPバージョンは 5.1.6 ですがWordPress 3.4.2 は 5.2.4 以上のみでご利用になれます。」

phpmysqlバージョンアップはやっかいそうなので、

3.1系を選択する。。

http://ja.wordpress.org/releases/

※↑結局、後日phpmysqlバージョンアップをやりました。

ソースをUP

DBを作る

http://自分サーバIP/phpMyAdmin/

ホームの「新規データベース作成する」と書いてある所の下にある、

DB名⇒wp、照合順序⇒utf8_unicode_ci

wp-config.php

を修正する。

プラグイン

WP-DBManager

WPSuperCache

WP toTwitter ←まだ設定してない

WPtouch ←/wp-content/plugins/wptouch/themes/core/core-header.php をちょこっと変更すればiphoneでxvideo再生ができる。

○人気記事一覧

http://the-fool.me/wordpress/plugins/wordpress-popular-posts.html

テーマデフォルトのまま。。

XML-RPC自動投稿

設定⇒投稿設定⇒Atom投稿プロトコルXML-RPCにチェック

もう1個負荷確認

https://loadimpact.com/

キャッシュが効いていて問題ないことを確認。

クローラーを作る

wikipediaから取ってきた女優名をカテゴリテーブル(wp_terms)に突っ込む。(5,260人でした。)

↑これは月に2回更新。cronで動かすことにした。

googleブログ検索(24時間以内のもの)に女優名をつっこんで、

出てきたサイト情報を取得すればOK。

(とりあえず、引退した人の動画は少ないだろうと考え、現役2,762人分のxvideosを取得してみた。処理時間8時間、192件取得できた。)

双方とも、スクレイピングを使えば簡単に取得できます

http://www.kaasan.info/archives/1457

念のため、巡回するごとに、sleep10秒してます

動画URLを取得したら、削除されていないか調べて、OKだったら投稿

PHPからRPC投稿するやり方は、

http://www.multiburst.net/sometime-php/2009/04/newpost-with-wordpress-xmlrpc-api/

↑ここらへんを参考に

http://pear.php.net/package/PEAR/download

pear自体はここにあるので、「XMLフォルダのみをUP。

だいたい、30分で10記事取得できることがわかったので、

毎日深夜に10記事取得するようにする。

【cron設定】

$ crontab -e

00 04 * * */bin/sh /home/ユーザーID/iphone-xvideos.info/insert_X.sh >/dev/null 2>&1

00 03 1,15 * */bin/sh /home/ユーザーID/iphone-xvideos.info/insert_XXX.sh >/dev/null 2>&1

http://miya0.dyndns.org/pc/settei/crontab.html

----------------------------------------------------

1日何件の更新とするか?10件ぐらい?

↑旬な情報が取れないが、とりあえず。。

前日のterm_idを記録して、

次の日はそれ以降のデータを取得する。

次のterm_id存在しなかったら、1からやる。

----------------------------------------------------

今後の追加機能予定

jqueryお気に入り作成cookieを使う。(PCのみ?)

☆好きな女優を登録しておけば、記事の更新情報メールで通知。

デザイン修正。。

感想

すぐできるかと思いましたが、結構時間かかりました。

実際、なんとなく勉強になった気もするし、楽しく作業できました。

皆さんもぜひ。毎日が少し充実しますよ。

まったくアクセス無くても、自分用にとても良いものができたと思っているので満足です。

もし繋がりにくくなったりしたら、

別のレンサバに変更しますー。

サイトオープン後のあれこれは、

随時こちらに追記していきますね。

最後まで読んで頂いてありがとうございます

2012/11/8 追記

サイトオープンから10日ほど過ぎたので状況をお知らせします。

はてぶは全くだめだった。。

ページビュー1000/日

(日々増加しているが、検索エンジンからくるようになってもまだこんだけ。。)

メモリは問題なし。512MB中ピークでも300MBぐらいしか使ってない。

30分に一回メモリ監視を仕込んだ。

#vi /usr/local/bin/memrep.sh

date >>$1

free >>$1

echo >>$1

# chmod 744 /usr/local/bin/memrep.sh

本日テスト的にDMM広告を張ってみました。。←すぐ消した。。

また、後日お知らせしますね。

2012/12/3 追記

1か月経ったので。。

topスライダー付けてみました。

ページビュー2500/日

自動更新なのに、きっちりアクセスは日々増えて続けていますエロは強い。

アクセス少ないので、負荷は全く問題なし。

Swapも全く使ってない。

忍者AdMax貼ってみたけど、1日20円とかで、まったく駄目。。

レンサバ代にはなりそうだけど。。なんか良い広告いかな。。

Permalink |記事への反応(0) | 16:15

このエントリーをはてなブックマークに追加ツイートシェア

2008-04-05

さくらの旧(?)専用サーバCentOS 4.6 をLinux-Vserver に入れ替えてみた

前置き

契約直後の初期状態

  • ホスト名をsakura2とした。
  • sshd と vsftpd が動いていた。
[admin@sakura2 ~]$uname -aLinux sakura2 2.6.9-67.0.4.ELsmp #1 SMPSun Feb 3 07:08:57 EST 2008i686athloni386GNU/Linux[admin@sakura2 ~]$ cat /etc/issue.netCentOS release 4.6 (Final)Kernel \r on an \m

CentOS 5 へのアップグレード(?)

中身の整理
  • なるべく最小構成に近い最新のCentOS4.6にしてみる。
#yum update#yum removeemacs emacspeakemacs-leimemacs-common#yum remove NetworkManager#yum remove bluez-bluefw bluez-hcidump bluez-libs bluez-utils#yum removecupscups-libs#yum removeirda-utils isdn4k-utils pcmcia-cs wireless-tools#yum remove wpa_supplicantgpm xinetd#yum removepppnfs-utils lksctp-tools autofs#yum removexorg-x11-libs#yum removeselinux-policy-targeted#yum remove vsftpd#yumclean all
CentOS 5 にアップグレード(?)してみる
[admin@sakura2 ~]$uname -aLinux sakura2 2.6.9-67.0.7.ELsmp #1 SMPSatMar 15 06:54:55 EDT 2008i686athloni386GNU/Linux
#rpm -Uvhhttp://mirror.centos.org/centos/5/os/i386/CentOS/centos-release-notes-5.1.0-2.i386.rpm \http://mirror.centos.org/centos/5/os/i386/CentOS/centos-release-5-1.0.el5.centos.1.i386.rpm[root@sakura2 admin]# cat /etc/issue.netCentOS release 5 (Final)Kernel \r on an \m#yum update glib procps udev iptables#rpm -Uvh --nodepshttp://mirror.centos.org/centos/5/os/i386/CentOS/initscripts-8.45.17.EL-1.el5.centos.1.i386.rpm \http://mirror.centos.org/centos/5/os/i386/CentOS/mkinitrd-5.1.19.6-19.i386.rpm#rpm -Uvhhttp://mirror.centos.org/centos/5/os/i386/CentOS/e2fsprogs-1.39-10.el5.i386.rpm \http://mirror.centos.org/centos/5/os/i386/CentOS/e2fsprogs-libs-1.39-10.el5.i386.rpm \http://mirror.centos.org/centos/5/os/i386/CentOS/e2fsprogs-devel-1.39-10.el5.i386.rpm
#rpm -Uvhhttp://mirror.centos.org/centos/5/os/i386/CentOS/kernel-2.6.18-53.el5.i686.rpm
[admin@sakura2 ~]$uname -aLinux sakura2 2.6.18-53.el5 #1 SMP Mon Nov 12 02:22:48 EST 2007i686athloni386GNU/Linux#yumclean all[root@sakura2 admin]#yum --versionLoading "fastestmirror" plugin2.4.3[root@sakura2 admin]#rpm --versionRPM version 4.3.3
#yum updateError:MissingDependency:python-abi = 2.3 is needed by packagepython-elementtree
  • 解決法がわからないので放置

Linux-Vserver の導入

#vi /etc/ssh/sshd_config# /etc/init.d/sshd restart
#vi /etc/yum.repos.d/dhozac-vserver.repo
#yum update kernel#yum install util-vserver{,-core,-lib,-sysv,-build}
[admin@sakura2 ~]$uname -aLinux sakura2 2.6.22.19-vs2.3.0.34.1 #1 SMP MonMar 17 05:32:04 EDT 2008i686athloni386GNU/Linux

ホストOS環境の整備

#yum updatebashscreenrsync# /etc/init.d/iptables save# /etc/init.d/iptables start# cat /etc/sysconfig/iptables# Generated by iptables-save v1.3.5 on MonMar 24 19:57:07 2008**filter:INPUTACCEPT [1067:96557]:FORWARDACCEPT [0:0]:OUTPUTACCEPT [63680:6208436]:e0 - [0:0]-A INPUT -i eth0 -j e0-A e0 -mstate --state RELATED,ESTABLISHED -jACCEPT-A e0 -p icmp -m icmp --icmp-type 8 -jACCEPT-A e0 -ptcp -mtcp --dport 22 -jACCEPT-A e0 -ptcp -mtcp --dport 80 -jACCEPT-A e0 -ptcp -mtcp --dport 443 -jACCEPT-A e0 -jREJECT --reject-with icmp-port-unreachableCOMMIT# Completed on MonMar 24 19:57:07 2008# Generated by iptables-save v1.3.5 on MonMar 24 19:57:07 2008**nat:PREROUTINGACCEPT [179:10642]:POSTROUTINGACCEPT [213:13895]:OUTPUTACCEPT [251:16220]-A PREROUTING -s ! 10.0.0.0/255.255.255.0 -ptcp -mtcp --dport NNNN -j DNAT --to-destination 10.0.0.1:22-A POSTROUTING -s 10.0.0.0/255.255.255.0 -d ! 10.0.0.0/255.255.255.0 -j SNAT --to-sourceAAA.BBB.CCC.DDDCOMMIT# Completed on MonMar 24 19:57:07 2008

ゲストOSの設定

[root@sakura2 ~]# /usr/sbin/vserver-statCTX   PROC    VSZRSS  userTIME   sysTIMEUPTIMENAME40013   27 301.5M  73.8M  30m36s31  56m38s90  11d06h56one40015    5  10.8M   4.4M   0m28s33   0m12s68   9d04h23two40016    2   4.2M   1.3M   0m00s47   0m00s64   0m01s97 three

追記

Permalink |記事への反応(0) | 03:16

このエントリーをはてなブックマークに追加ツイートシェア

2007-10-01

アイデアとは既存の要素の新しい組み合わせ以外の何ものでもない

word

Amazon.co.jp: アイデアのつくり方: ジェームス W.ヤング, 竹内 均, 今井 茂雄: 本

アイデアとは既存の要素の新しい組み合わせ以外の何ものでもない



自分より優れたるものを自分の周りに置きし者ここに眠る。カーネギー

自分で仕事をするのではなく、仕事をさせる適材を見つけることが大切だ。 アンドリュー・カーネギー

アイデアを塩漬けにしない-世界中の人に手伝ってもらう方法-

[トレードオフ][機会費用][選択と集中]人生はトレードオフ

知識が他の知識と出会い、連携し、合体すると目覚ましい成果を上げる

[biz]遊び感覚でいろいろやって、成り行きを見守る。

貴方に贈りたい。ずっと色褪せない、たった一つのスキル。 - Exchange Cups Of Sake

アイデアとは蓄積の組み合わせである アイデアはひらめきではない|仕事も、生き方も突然変わる すごいブランディング発想|ダイヤモンド・オンライン

Passion For The Future: すばらしい思考法 誰も思いつかないアイデアを生む

ランダム変異から、優れたものを選択して残す」


単なる無知では創造性を発揮できない - UEI shi3zの日記

CE Lab | Ideas for a healthy life

A 多数の事の裏にある、誰も気づかない共通点に気づいてしまう。

B あるひとつの事のはるか先にある、誰も気づかない帰結に気づいてしまう。


Elementary, ... センスの良さとは「世間の半歩先を行く感覚」

[方法序説][デカルト]「困難を分割せよ」デカルト

アイデアを手軽に考案してくれる『Idea Generator』 « WIRED.jp

仕事耕具:“旧ソ連の発明法則”でアイデア出し──「智慧カード」 - 誠 Biz.ID

アイデア創発の素振り:エクスカーション――ノート1つで100個以上のアイデアを出す方法 (1/3) - 誠 Biz.ID

一人ブレスト用スクリプト - 日本から世界へ - Pankaku Inc. CEOブログ

idea



book

Amazon.co.jp: アイデアのちから: チップ・ハース, ダン・ハース, 飯岡 美紀: 本

Amazon.co.jp: 急に売れ始めるにはワケがある ネットワーク理論が明らかにする口コミの法則(ソフトバンク文庫): マルコム・グラッドウェル, Malcolm Gladwell, 高橋 啓: 本

link

http://anond.hatelabo.jp/20131213174750

Permalink |記事への反応(6) | 22:30

このエントリーをはてなブックマークに追加ツイートシェア

 
ログインユーザー登録
ようこそ ゲスト さん
Copyright (C) 2001-2025 hatena. All Rights Reserved.

[8]ページ先頭

©2009-2025 Movatter.jp