「name」を含む日記 RSS

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

2012-01-28

s2jdbc-genが動かない

増田でこんなこと聞いていいのかわからないけど、誰かわかる人教えて欲しい。

seasar公式サイトにある、s2jdbcチュートリアルを試してみたんだけど、entityの生成でいきなり躓いてしまった。

$ ant -f s2jdbc-gen-build.xml gen-entity
Buildfile: /Users/hoge/dev/s2jdbc-tutorial/s2jdbc-gen-build.xml

gen-entity:
[gen-entity] Java Result: 1

BUILD FAILED
/Users/hoge/dev/s2jdbc-tutorial/s2jdbc-gen-build.xml:46: Exception in thread "main" java.lang.NoClassDefFoundError: 
Caused by: java.lang.ClassNotFoundException: 
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

動かしている環境

- Mac osx 10.7.2

- java version "1.6.0_29"

- Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527)

- Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)

s2jdbc-gen-build.xml:46 っていうのが、classpathに関する記述の箇所なので、動かすのに必要なjarが読み込まれていないからなんだろうなぁ、って思ってるんだけど。

同じ現象で躓いて、うまく解決できた人がいたら、教えて欲しい。

 38   <target name="gen-entity">
 39     <gen-entity
 40       rootpackagename="${rootpackagename}"
 41       entitypackagename="${entitypackagename}"
 42       javafiledestdir="${javafiledestdir}"
 43       javafileencoding="${javafileencoding}"
 44       env="${env}"
 45       jdbcmanagername="${jdbcmanagername}"
 46       classpathref="classpath">
 47         <jvmarg value="${vmarg.encoding}"/>

2012-01-26

今日もやられやく関係者ウイルス作成罪で捕まったらしいぞ

7 無念 Name としあき 12/01/26(木)15:41:45 No.98432654 del

今日もやられやく関係者ウイルス作成罪で捕まったらしいぞ

http://mainichi.jp/select/jiken/news/20120126k0000e040202000c.html

萌通=コバヤシヒロタダ

http://www22.atwiki.jp/yunakiti/pages/16.html



50 無念 Name としあき 12/01/26(木)16:19:33 No.98435881 del

>今日もやられやく関係者ウイルス作成罪で捕まったらしいぞ

>http://mainichi.jp/select/jiken/news/20120126k0000e040202000c.html

>萌通=コバヤシヒロタダ

>http://www22.atwiki.jp/yunakiti/pages/16.html

陰謀説()かと思ってたけどガチだったんやな

おもしれー



ウイルス作成:28歳の男を送検 全国初の適用 大阪府警

 コンピューターウイルスを知人男性に送信したとして、大阪府警サイバー犯罪対策室は大阪府松原市天美南2、無職小林浩忠容疑者(28)を不正指令電磁的記録供用の疑いで25日に逮捕、26日にこのウイルスを作った不正指令電磁的記録作成容疑と合わせて送検した。府警によると、改正刑法で新設されたウイルス作成容疑での立件は昨年7月の施行以来全国初。

 逮捕容疑は昨年9月中旬関東地方に住む知人男性パソコンを誤作動させる目的で、インターネットサービス提供するサーバーウイルスを送信したとしている。

 府警によると、小林容疑者男性はいずれもサイト運営者で、ネット上でトラブルになっていたという。サーバーを通じて男性パソコンウイルスを送ることで、「掲示板を閉鎖しろ。さもなくば両親を殺す」などと男性小林容疑者脅迫する内容の文面をネット上の掲示板に書き込んだように見せかける仕組みだったという。小林容疑者は、男性脅迫されたとして府警に被害届を出していた。【服部陽】

毎日新聞 2012年1月26日 13時53分(最終更新 1月26日 14時10分)

http://mainichi.jp/select/jiken/news/20120126k0000e040202000c.html

2012-01-24

// ==UserScript==
// @name Mogemas Speedup
// @namespace http://sp.pf.mbga.jp/12008305
// @version 0.1
// @description Play Mogemas on PC speedy
// @include http://sp.pf.mbga.jp/12008305*
// @copyright John Doe
// ==/UserScript==
(function (w) {
    var d = w.document;

    var doit = function () {
        w.accessError = function () {};
        w.accessErrorRedirect = function () {};
        w.unloadBye = function () {};
        w.fadeOut = w.fadeIn;

        var pageArea = d.getElementById('pageArea');
        if ( pageArea ) { pageArea.style.display = 'block'; }
    };

    doit();
    d.addEventListener("DOMContentLoaded", doit, false);
    w.addEventListener("load", doit, false);

})(unsafeWindow);

2012-01-23

// ==UserScript==
// @name Shingeki no Bahamut
// @namespace http://sp.pf.mbga.jp/12007160
// @version 0.3
// @description Play Shingeki no Bahamut on PC
// @include http://sp.pf.mbga.jp/12007160*
// @copyright John Doe
// ==/UserScript==
(function (w) {
    var d = w.document;

    var doit = function () {
        w.accessError = function () {};
        w.accessErrorRedirect = function () {};
        w.unloadBye = function () {};
        w.fadeOut = w.fadeIn;

        var loading = d.getElementById('loading');
        if ( loading ) { loading.style.display = 'none'; }
        var pics = d.getElementById('pics');
        if ( pics ) { pics.style.display = 'block'; }
    };

    doit();
    d.addEventListener("DOMContentLoaded", doit, false);
    w.addEventListener("load", doit, false);

})(unsafeWindow);

2012-01-06

はてなMobileGatewayが無効化できない

はてなMobileGatewayがはてなダイアリー上のリンク先を勝手モバイル用に変換してしまう。

リンク先のサイトの表示がおかしくなるから変換しないでほしいんだけど。

方法が分からない・・・・。

「変換されないプレーンなリンクを貼る方法ってありますでしょうか??」

http://q.hatena.ne.jp/1255754183

はてなMobileGatewayについて」

http://mgw.hatena.ne.jp/help

これ読んでもよく分からない。

自分管理してるサイトならMETAタグを利用した変換拒否できるらしいけど

<META NAME="HATENA" CONTENT="NOTRANSLATE">

自分ダイアリーそのものとか、自分管理していない他サイトの変換は阻止できない??

2012-01-05

Types of digital cameras

Digital cameras are made in a wide range of sizes, prices and capabilities. The majority are camera phones, operated as a mobile application through the cellphone menu. Professional photographers and many amateurs use larger, more expensive digital single-lens reflex cameras (DSLR) for their greater versatility. Between these extremes lie digital compact cameras and bridge digital cameras that "bridge" the gap between amateur and professional cameras. Specialized cameras including multispectral imaging equipment and astrographs continue to serve the scientific, military, medical and other special purposes for which digital photography was invented.

[edit]Compact digital cameras


Subcompact with lens assembly retracted

Compact cameras are designed to be tiny and portable and are particularly suitable for casual and "snapshot" uses. Hence, they are also called point-and-shoot cameras. The smallest, generally less than 20 mm thick, are described as subcompacts or "ultra-compacts" and some are nearly credit card size.[2]

Most, apart from ruggedized or water-resistant models, incorporate a retractable lens assembly allowing a thin camera to have a moderately long focal length and thus fully exploit an image sensor larger than that on a camera phone, and a mechanized lens cap to cover the lens when retracted. The retracted and capped lens is protected from keys, coins and other hard objects, thus making it a thin, pocketable package. Subcompacts commonly have one lug and a short wrist strap which aids extraction from a pocket, while thicker compacts may have two lugs for attaching a neck strap.

Compact cameras are usually designed to be easy to use, sacrificing advanced features and picture quality for compactness and simplicity; images can usually only be stored using lossy compression (JPEG). Most have a built-in flash usually of low power, sufficient for nearby subjects. Live preview is almost always used to frame the photo. Most have limited motion picture capability. Compacts often have macro capability and zoom lenses but the zoom range is usually less than for bridge and DSLR cameras. Generally a contrast-detect autofocus system, using the image data from the live preview feed of the main imager, focuses the lens.

Typically, these cameras incorporate a nearly silent leaf shutter into their lenses.

For lower cost and smaller size, these cameras typically use image sensors with a diagonal of approximately 6 mm, corresponding to a crop factor around 6. This gives them weaker low-light performance, greater depth of field, generally closer focusing ability, and smaller components than cameras using larger sensors.

Starting in 2011, some compact digital cameras can take 3D still photos. These 3D compact stereo cameras can capture 3D panoramic photos for play back on a 3D TV.[3] Some of these are rugged and waterproof, and some have GPS, compass, barometer and altimeter. [4]

[edit]Bridge cameras


Sony DSC-H2

Main article: Bridge camera

Bridge are higher-end digital cameras that physically and ergonomically resemble DSLRs and share with them some advanced features, but share with compacts the use of a fixed lens and a small sensor. Like compacts, most use live preview to frame the image. Their autofocus uses the same contrast-detect mechanism, but many bridge cameras have a manual focus mode, in some cases using a separate focus ring, for greater control. They originally "bridged" the gap between affordable point-and-shoot cameras and the then unaffordable earlier digital SLRs.

Due to the combination of big physical size but a small sensor, many of these cameras have very highly specified lenses with large zoom range and fast aperture, partially compensating for the inability to change lenses. On some, the lens qualifies as superzoom. To compensate for the lesser sensitivity of their small sensors, these cameras almost always include an image stabilization system to enable longer handheld exposures.

These cameras are sometimes marketed as and confused with digital SLR cameras since the appearance is similar. Bridge cameras lack the reflex viewing system of DSLRs, are usually fitted with fixed (non-interchangeable) lenses (although some have a lens thread to attach accessory wide-angle or telephoto converters), and can usually take movies with sound. The scene is composed by viewing either the liquid crystal display or the electronic viewfinder (EVF). Most have a longer shutter lag than a true dSLR, but they are capable of good image quality (with sufficient light) while being more compact and lighter than DSLRs. High-end models of this type have comparable resolutions to low and mid-range DSLRs. Many of these cameras can store images in a Raw image format, or processed and JPEG compressed, or both. The majority have a built-in flash similar to those found in DSLRs.

In bright sun, the quality difference between a good compact camera and a digital SLR is minimal but bridgecams are more portable, cost less and have a similar zoom ability to dSLR. Thus a Bridge camera may better suit outdoor daytime activities, except when seeking professional-quality photos.[5]

In low light conditions and/or at ISO equivalents above 800, most bridge cameras (or megazooms) lack in image quality when compared to even entry level DSLRs. However, they do have one major advantage: their much larger depth of field due to the small sensor as compared to a DSLR, allowing larger apertures with shorter exposure times.

A 3D Photo Mode was introduced in 2011, whereby the camera automatically takes a second image from a slightly different perspective and provides a standard .MPO file for stereo display. [6]

[edit]Mirrorless interchangeable-lens camera

Main article: Mirrorless interchangeable-lens camera

In late 2008, a new type of camera emerged, combining the larger sensors and interchangeable lenses of DSLRs with the live-preview viewing system of compact cameras, either through an electronic viewfinder or on the rear LCD. These are simpler and more compact than DSLRs due to the removal of the mirror box, and typically emulate the handling and ergonomics of either DSLRs or compacts. The system is used by Micro Four Thirds, borrowing components from the Four Thirds DSLR system.

[edit]Digital single lens reflex cameras


Cutaway of an Olympus E-30 DSLR

Main article: Digital single-lens reflex camera

Digital single-lens reflex cameras (DSLRs) are digital cameras based on film single-lens reflex cameras (SLRs). They take their name from their unique viewing system, in which a mirror reflects light from the lens through a separate optical viewfinder. At the moment of exposure the mirror flips out of the way, making a distinctive "clack" sound and allowing light to fall on the imager.

Since no light reaches the imager during framing, autofocus is accomplished using specialized sensors in the mirror box itself. Most 21st century DSLRs also have a "live view" mode that emulates the live preview system of compact cameras, when selected.

These cameras have much larger sensors than the other types, typically 18 mm to 36 mm on the diagonal (crop factor 2, 1.6, or 1). This gives them superior low-light performance, less depth of field at a given aperture, and a larger size.

They make use of interchangeable lenses; each major DSLR manufacturer also sells a line of lenses specifically intended to be used on their cameras. This allows the user to select a lens designed for the application at hand: wide-angle, telephoto, low-light, etc. So each lens does not require its own shutter, DSLRs use a focal-plane shutter in front of the imager, behind the mirror.

[edit]Digital rangefinders

Main article: Rangefinder camera#Digital rangefinder

A rangefinder is a user-operated optical mechanism to measure subject distance once widely used on film cameras. Most digital cameras measure subject distance automatically using electro-optical techniques, but it is not customary to say that they have a rangefinder.

[edit]Line-scan camera systems

A line-scan camera is a camera device containing a line-scan image sensor chip, and a focusing mechanism. These cameras are almost solely used in industrial settings to capture an image of a constant stream of moving material. Unlike video cameras, line-scan cameras use a single row of pixel sensors, instead of a matrix of them. Data coming from the line-scan camera has a frequency, where the camera scans a line, waits, and repeats. The data coming from the line-scan camera is commonly processed by a computer, to collect the one-dimensional line data and to create a two-dimensional image. The collected two-dimensional image data is then processed by image-processing methods for industrial purposes.

Further information: Rotating line camera

[edit]Integration

Many devices include digital cameras built into or integrated into them. For example, mobile phones often include digital cameras; those that do are known as camera phones. Other small electronic devices (especially those used for communication) such as PDAs, laptops and BlackBerry devices often contain an integral digital camera, and most 21st century camcorders can also make still pictures.

Due to the limited storage capacity and general emphasis on convenience rather than image quality, almost all these integrated or converged devices store images in the lossy but compact JPEG file format.

Mobile phones incorporating digital cameras were introduced in Japan in 2001 by J-Phone. In 2003 camera phones outsold stand-alone digital cameras, and in 2006 they outsold all film-based cameras and digital cameras combined. These camera phones reached a billion devices sold in only five years, and by 2007 more than half of the installed base of all mobile phones were camera phones. Sales of separate cameras peaked in 2008. [7]

Integrated cameras tend to be at the very lowest end of the scale of digital cameras in technical specifications, such as resolution, optical quality, and ability to use accessories. With rapid development, however, the gap between mainstream compact digital cameras and camera phones is closing, and high-end camera phones are competitive with low-end stand-alone digital cameras of the same generation.

[edit]Waterproof


A Canon WP-1 waterproof 35 mm film camera

Waterproof digital cameras are digital cameras that can make pictures underwater. Waterproof housings have long been made but they cost almost as the cameras. Many waterproof digital cameras are shockproof and resistant to low temperatures; one of them is Canon PowerShot D10, one of the first underwater digital cameras.

These cameras become very popular during the holiday season, because many people want to save the best moments from their holidays at the seaside. Waterproof watches and mobile phones were produced earlier. Most makers of digital cameras also produce waterproof ones and every year they launch at least one new model, for example Sony, Olympus, Canon, Fuji.

Healthways Mako Shark, an early waterproof camera,[8] was launched in 1958 and cost around 25 dollars. It was a huge camera and pictures were black and white.



___________________________

http://www.gobatteryonline.com/canon-nb-9l-digital-camera-battery-gose.html

http://www.gobatteryonline.com/canon-lp-e5-digital-camera-battery-gose.html

http://www.gobatteryonline.com/canon-powershot-sd500-battery-charger-gose.html

2011-12-15

Critical Thinking: Film Critics Across the Country Name Their Top Movies and Actors

"The Artist"? "The Descendants"? "Hugo"? There was no critical consensus following a day of intense voting yesterday when a gaggle of critics groups voted their top honors. These included the Los Angeles Film Critics Association (LAFCA), the Boston Society of Film Critics (BSFC), and the New York Film Critics Online (NYFCO), as well as critics in San Francisco, Detroit and Indiana. The American Film Institute also announced its annual top 10, typically taking no risks.

Best Picture: "The Descendants" got a strong push with a win at the LAFCA, but "The Artist" took the top prize at the BSFC and the NYFCO. Both titles will make the final Academy shortlist. Fortified by nominations for their respective directors Martin Scorsese and Terrence Malick, "Hugo" and "The Tree of Life" should get nominations. The critics groups didn't get "The Help," any more than "The Blind Side," but the Civic Rights-era drama did make the American Film Institute top ten this year, so don't discount it yet.

Best Actor: Michael Fassbender is coming up fast with an LAFCA win. Why should we care about that group in particular? They're on a six-year roll predicting the Oscar winner for Best Actor. Brad Pitt's also a contender for "Moneyball," getting an art-house bump from "The Tree of Life," with Gary Oldman coming up on the outside thanks to the critical and box-office success of "Tinker, Tailor, Soldier, Spy" and a nod from the San Francisco Film Critics. How about George Clooney for "The Descendants"? He's still in the race, but not at the forefront. Like going for long shots? Then bet Michael Shannon for "Take Shelter," which won NYFCO. And if there's a sweep for "The Artist," add in Jean Dujardin.

Best Actress: Michelle Williams of "My Week With Marilyn," solidifies her spot with a win at the Boston Film Critics Association. Los Angeles went way out for Yung-Jun Hee in "Poetry" (what?) in their 'we're cool and uncorrupted by the Oscar race' vote. NYFCO went classic with Meryl Streep for "The Iron Lady." She's the Streep, but neither she nor Williams will be helped by an apparent lack of enthusiasm for their moves as a whole. Ditto Viola Davis ("The Help"), who will nonetheless make the top five Oscar nominees. Either SF winner Tilda Swinton ("We Need to Talk About Kevin") or multiple-runner-up Kirsten Dunst ("Melancholia") may slip in or come in sixth or seventh. Keep an eye out for Charlize Theron ("Young Adult"), Elizabeth Olsen ("Martha Marcy May Marlene") and Felicity Jones ("Like Crazy) as wild-card entries.

Best Supporting Actor: This is a two-man race between octogenarian Christopher Plummer and Albert Brooks playing against type as a cold-blooded hands-on killer. On the fringes: Patton Oswalt ("Young Adult"), Kenneth Branagh ("My Week with Marilyn") and Andy Serkis ("Rise of the Planet of the Apes").

Best Supporting Actress: Coming up on the inside is Melissa McCarthy for "Bridesmaids." Hurray for comedy! Bolstered by a best ensemble award from the LAFCA, this may push McCarthy into the five Oscar nominees. The LAFCA got behind Jessica Chastain, the NYFCO Breakthrough Performer, who was in every movie from "The Tree of Life" to "The Help," where she'll be competing against her popular co-star Octavia Spencer. The San Francisco critics supported Vanessa Redgrave for "Coriolanus," and Janet McTeer ("Albert Nobbs") was an LAFCA runner up in the category.

Who's out of the running in these five major categories? The Girl With the Dragon Tattoo, War Horse, J. Edgar and Midnight in Paris all underwhelmed. The X-Factor remains Scott Rudin's buzzy "Extremely Loud and Incredibly Close," which has not been screened widely after the New Yorker's David Denby flagrantly broke embargo on Rudin's other major film, "The Girl with the Dragon Tattoo." Pack the Kleenex box for this one.

http://www.chargerbatteryshop.co.uk/panasonic-cga-s002-digital-camera-battery-cbbs.html

http://www.gobatteryonline.com/canon-powershot-sd500-battery-charger-gose.html

http://www.keyboard-store.com/asus-04gncb1kusa4-laptop-keyboard.html

Critical Thinking: Film Critics Across the Country Name Their Top Movies and Actors

"The Artist"? "The Descendants"? "Hugo"? There was no critical consensus following a day of intense voting yesterday when a gaggle of critics groups voted their top honors. These included the Los Angeles Film Critics Association (LAFCA), the Boston Society of Film Critics (BSFC), and the New York Film Critics Online (NYFCO), as well as critics in San Francisco, Detroit and Indiana. The American Film Institute also announced its annual top 10, typically taking no risks.

Best Picture: "The Descendants" got a strong push with a win at the LAFCA, but "The Artist" took the top prize at the BSFC and the NYFCO. Both titles will make the final Academy shortlist. Fortified by nominations for their respective directors Martin Scorsese and Terrence Malick, "Hugo" and "The Tree of Life" should get nominations. The critics groups didn't get "The Help," any more than "The Blind Side," but the Civic Rights-era drama did make the American Film Institute top ten this year, so don't discount it yet.

Best Actor: Michael Fassbender is coming up fast with an LAFCA win. Why should we care about that group in particular? They're on a six-year roll predicting the Oscar winner for Best Actor. Brad Pitt's also a contender for "Moneyball," getting an art-house bump from "The Tree of Life," with Gary Oldman coming up on the outside thanks to the critical and box-office success of "Tinker, Tailor, Soldier, Spy" and a nod from the San Francisco Film Critics. How about George Clooney for "The Descendants"? He's still in the race, but not at the forefront. Like going for long shots? Then bet Michael Shannon for "Take Shelter," which won NYFCO. And if there's a sweep for "The Artist," add in Jean Dujardin.

Best Actress: Michelle Williams of "My Week With Marilyn," solidifies her spot with a win at the Boston Film Critics Association. Los Angeles went way out for Yung-Jun Hee in "Poetry" (what?) in their 'we're cool and uncorrupted by the Oscar race' vote. NYFCO went classic with Meryl Streep for "The Iron Lady." She's the Streep, but neither she nor Williams will be helped by an apparent lack of enthusiasm for their moves as a whole. Ditto Viola Davis ("The Help"), who will nonetheless make the top five Oscar nominees. Either SF winner Tilda Swinton ("We Need to Talk About Kevin") or multiple-runner-up Kirsten Dunst ("Melancholia") may slip in or come in sixth or seventh. Keep an eye out for Charlize Theron ("Young Adult"), Elizabeth Olsen ("Martha Marcy May Marlene") and Felicity Jones ("Like Crazy) as wild-card entries.

Best Supporting Actor: This is a two-man race between octogenarian Christopher Plummer and Albert Brooks playing against type as a cold-blooded hands-on killer. On the fringes: Patton Oswalt ("Young Adult"), Kenneth Branagh ("My Week with Marilyn") and Andy Serkis ("Rise of the Planet of the Apes").

Best Supporting Actress: Coming up on the inside is Melissa McCarthy for "Bridesmaids." Hurray for comedy! Bolstered by a best ensemble award from the LAFCA, this may push McCarthy into the five Oscar nominees. The LAFCA got behind Jessica Chastain, the NYFCO Breakthrough Performer, who was in every movie from "The Tree of Life" to "The Help," where she'll be competing against her popular co-star Octavia Spencer. The San Francisco critics supported Vanessa Redgrave for "Coriolanus," and Janet McTeer ("Albert Nobbs") was an LAFCA runner up in the category.

Who's out of the running in these five major categories? The Girl With the Dragon Tattoo, War Horse, J. Edgar and Midnight in Paris all underwhelmed. The X-Factor remains Scott Rudin's buzzy "Extremely Loud and Incredibly Close," which has not been screened widely after the New Yorker's David Denby flagrantly broke embargo on Rudin's other major film, "The Girl with the Dragon Tattoo." Pack the Kleenex box for this one.

http://www.chargerbatteryshop.co.uk/panasonic-cga-s002-digital-camera-battery-cbbs.html

http://www.gobatteryonline.com/canon-powershot-sd500-battery-charger-gose.html

http://www.keyboard-store.com/asus-04gncb1kusa4-laptop-keyboard.html

2011-12-09

centre.If you want to entertain clients or relax with a drink after a hard day’s work at your Docklandsof high street stores this sort of as Pop Boutique and Oxfam Vintage which specialise in quirky vintage clothing andcups, all of which tread the line between subtlety and glamour with ease.With reminders of these iconicfor your skin. When wearing the chiffon dress, the key is to wear a bright color belt.LondonLondon isStreet and shopping centres throughout, Dublin is sure to suit all tastes and budgets. Henry Street is karen millen minutes from Belfast and very popular – includes M&S, Sainsburys and Dunnes.InShops – Ideal inside the centre ofVersace or Prada. Even these high daily life labels are not exempt in the discount bug and depending on theentitled to ownership with the domain name.The fashion designer, Karen Millen, also brought legal proceedingsfor the Blanchardstown Shopping Centre stay at the Ballymum Plaza, or the Park Plaza Tyrrelstown. For TheWallis. The availability of printable vouchers makes the demand for the voucher codes more important. It may

2011-11-12

mother's maiden name

まり母親の旧姓」。

これ、アメリカだと公的書類(ビザ申請とか車の免許申請とか)にやたら書かされる。

戸籍が無い国における個人特定の手段の一つなんだろうけど、

両親が夫婦別姓とか父親側が改姓しているとか(アメリカでそれが可能かどうかは知らん)母親結婚してないとかそもそも母親が居ないとか

そういう人も居るだろうにどうしてるんだろ。

日本でこんな欄作ったら差別だと思いっきり言われそうだけど。

(「maiden name」は差別語いであり「birth name」と言う場合もあるとどっかの辞書に書いてあったが前者ばかり見るのは南部からかもしれん。

でも「旧姓」と言う意味である事に変わりは無いよね)

2011-11-08

Thunderbird から Outlook 2007 にメールを移行

やー。面倒でした。



古い情報だと Outlook Express を経由しろと書いてあるので、後継であるらしいWindows Live Mail を経由して(Windows Live Mail からエクスポートする方法で)

Outlook に移行したのだが、どういうわけか宛名が文字列として移行されてしまい、xxx@example.com というメールアドレスの移行ができなかったんです



で eml → msg もしくは pst 形式への変換ソフトを探すのですが、無料ものが見つからなくてあんまり情報もありませんでした。が、ありましたよ!お兄さん。

これなら、msg ⇔ eml の相互変換ができますです



MrMAPI.exe

http://mfcmapi.codeplex.com/



ヘルプはっときますね。

====

MAPI data collection and parsing tool. Supports property tag lookup, error translation,
   smart view processing, rule tables, ACL tables, contents tables, and MAPI<->MIME conversion.
MrMAPI currently knows:
  3916 property tags
   801 dispids
    35 types
    58 guids
   148 errors
    27 smart view parsers

Usage:
   MrMAPI -?
   MrMAPI [-Search] [-Dispids] [-Number] [-Type <type>] <property number>|<property name>
   MrMAPI -Guids
   MrMAPI -Error <error>
   MrMAPI -ParserType <type> -Input <input file> [-Binary] [-Output <output file>]
   MrMAPI -Flag <flag value> [-Dispids] [-Number] <property number>|<property name>
   MrMAPI -Rules [-Profile <profile>] [-Folder <folder>]
   MrMAPI -Acl [-Profile <profile>] [-Folder <folder>]
   MrMAPI [-Contents | -HiddenContents] [-Profile <profile>] [-Folder <folder>] [-Output <output directory>]
          [-Subject <subject>] [-MessageClass <message class>] [-MSG] [-List]
   MrMAPI -ChildFolders [-Profile <profile>] [-Folder <folder>]
   MrMAPI -XML -Input <path to input file> -Output <path to output file>
   MrMAPI -FID [fid] [-MID [mid]] [-Profile <profile>]
   MrMAPI -MAPI | -MIME -Input <path to input file> -Output <path to output file> [-CCSFFlags <conversion flags>]
          [-RFC822] [-Wrap <Decimal number of characters>] [-Encoding <Decimal number indicating encoding>]
          [-AddressBook] [-Unicode] [-Charset CodePage CharSetType CharSetApplyType]

All switches may be shortened if the intended switch is unambiguous.
For example, -T may be used instead of -Type.

   Help:
   -?   Display expanded help.

   Property Tag Lookup:
   -S   (or -Search) Perform substring search.
           With no parameters prints all known properties.
   -D   (or -Dispids) Search dispids.
   -N   (or -Number) Number is in decimal. Ignored for non-numbers.
   -T   (or -Type) Print information on specified type.
           With no parameters prints list of known types.
           When combined with -S, restrict output to given type.
   -G   (or -Guids) Display list of known guids.

   Flag Lookup:
   -Fl  (or -Flag) Look up flags for specified property.
           May be combined with -D and -N switches, but all flag values must be in hex.

   Error Parsing:
   -E   (or -Error) Map an error code to its name and vice versa.
           May be combined with -S and -N switches.

   Smart View Parsing:
   -P   (or -ParserType) Parser type (number). See list below for supported parsers.
   -B   (or -Binary) Input file is binary. Default is hex encoded text.

   Rules Table:
   -R   (or -Rules) Output rules table. Profile optional.

   ACL Table:
   -A   (or -Acl) Output ACL table. Profile optional.

   Contents Table:
   -C   (or -Contents) Output contents table. May be combined with -H. Profile optional.
   -H   (or -HiddenContents) Output associated contents table. May be combined with -C. Profile optional
   -Su  (or -Subject) Subject of messages to output.
   -Me  (or -MessageClass) Message class of messages to output.
   -Ms  (or -MSG) Output as .MSG instead of XML.
   -L   (or -List) List details to screen and do not output files.

   Child Folders:
   -Chi (or -ChildFolders) Display child folders of selected folder.

   MSG File Properties
   -X   (or -XML) Output properties of an MSG file as XML.

   MID/FID Lookup
   -Fi  (or -FID) Folder ID (FID) to search for.
           If -FID is specified without a FID, search/display all folders
   -Mid (or -MID) Message ID (MID) to search for.
           If -MID is specified without a MID, display all messages in folders specified by the FID parameter.

   MAPI <-> MIME Conversion:
   -Ma  (or -MAPI) Convert an EML file to MAPI format (MSG file).
   -Mi  (or -MIME) Convert an MSG file to MIME format (EML file).
   -I   (or -Input) Indicates the input file for conversion, either a MIME-formatted EML file or an MSG file.
   -O   (or -Output) Indicates the output file for the convertion.
   -Cc  (or -CCSFFlags) Indicates specific flags to pass to the converter.
           Available values (these may be OR'ed together):
              MIME -> MAPI:
                CCSF_SMTP:        0x02
                CCSF_INCLUDE_BCC: 0x20
                CCSF_USE_RTF:     0x80
              MAPI -> MIME:
                CCSF_NOHEADERS:        0x0004
                CCSF_USE_TNEF:         0x0010
                CCSF_8BITHEADERS:      0x0040
                CCSF_PLAIN_TEXT_ONLY:  0x1000
                CCSF_NO_MSGID:         0x4000
                CCSF_EMBEDDED_MESSAGE: 0x8000
   -Rf  (or -RFC822) (MAPI->MIME only) Indicates the EML should be generated in RFC822 format.
           If not present, RFC1521 is used instead.
   -W   (or -Wrap) (MAPI->MIME only) Indicates the maximum number of characters in each line in the
           generated EML. Default value is 74. A value of 0 indicates no wrapping.
   -En  (or -Encoding) (MAPI->MIME only) Indicates the encoding type to use. Supported values are:
              1 - Base64
              2 - UUENCODE
              3 - Quoted-Printable
              4 - 7bit (DEFAULT)
              5 - 8bit
   -Ad  (or -AddressBook) Pass MAPI Address Book into converter. Profile optional.
   -U   (or -Unicode) (MIME->MAPI only) The resulting MSG file should be unicode.
   -Ch  (or -Charset) (MIME->MAPI only) Character set - three required parameters:
           CodePage - common values (others supported)
              1252  - CP_USASCII      - Indicates the USASCII character set, Windows code page 1252
              1200  - CP_UNICODE      - Indicates the Unicode character set, Windows code page 1200
              50932 - CP_JAUTODETECT  - Indicates Japanese auto-detect (50932)
              50949 - CP_KAUTODETECT  - Indicates Korean auto-detect (50949)
              50221 - CP_ISO2022JPESC - Indicates the Internet character set ISO-2022-JP-ESC
              50222 - CP_ISO2022JPSIO - Indicates the Internet character set ISO-2022-JP-SIO
           CharSetType - supported values (see CHARSETTYPE)
              0 - CHARSET_BODY
              1 - CHARSET_HEADER
              2 - CHARSET_WEB
           CharSetApplyType - supported values (see CSETAPPLYTYPE)
              0 - CSET_APPLY_UNTAGGED
              1 - CSET_APPLY_ALL
              2 - CSET_APPLY_TAG_ALL

   Universal Options:
   -I   (or -Input) Input file.
   -O   (or -Output) Output file or directory.
   -F   (or -Folder) Folder to scan. Default is Inbox. See list below for supported folders.
           Folders may also be specified by path:
              "Top of Information Store\Calendar"
           Path may be preceeded by entry IDs for special folders using @ notation:
              "@PR_IPM_SUBTREE_ENTRYID\Calendar"
           MrMAPI's special folder constants may also be used:
              "@12\Calendar"
              "@1"
   -Pr  (or -Profile) Profile for MAPILogonEx.
   -M   (or -MoreProperties) More properties. Tries harder to get stream properties. May take longer.
   -No  (or -NoAddins) No Addins. Don't load any add-ins.
   -On  (or -Online) Online mode. Bypass cached mode.
   -V   (or -Verbose) Verbose. Turn on all debug output.

Smart View Parsers:
    1 Additional Ren Entry IDs Ex
    2 Appointment Recurrence Pattern
    3 Conversation Index
    4 Entry Id
    5 Entry List
    6 Extended Folder Flags
    7 Extended Rule Condition
    8 Flat Entry List
    9 Folder User Fields Stream
   10 Global Object Id
   11 Property
   12 Property Definition Stream
   13 Recipient Row Stream
   14 Recurrence Pattern
   15 Report Tag
   16 Restriction
   17 Rule Condition
   18 Search Folder Definition
   19 Security Descriptor
   20 SID
   21 Task Assigners
   22 Time Zone
   23 Time Zone Definition
   24 Web View Persistence Object Stream
   25 Nickname Cache
   26 Encode Entry ID
   27 Decode Entry ID

Folders:
    1 Calendar
    2 Contacts
    3 Journal
    4 Notes
    5 Tasks
    6 Reminders
    7 Drafts
    8 Sent Items
    9 Outbox
   10 Deleted Items
   11 Finder
   12 IPM_SUBTREE
   13 Inbox
   14 Local Freebusy
   15 Conflicts
   16 Sync Issues
   17 Local Failures
   18 Server Failures
   19 Junk E-mail

Examples:
   MrMAPI PR_DISPLAY_NAME

   MrMAPI 0x3001001e
   MrMAPI 3001001e
   MrMAPI 3001

   MrMAPI -n 12289

   MrMAPI -t PT_LONG
   MrMAPI -t 3102
   MrMAPI -t

   MrMAPI -s display
   MrMAPI -s display -t PT_LONG
   MrMAPI -t 102 -s display

   MrMAPI -d dispidReminderTime
   MrMAPI -d 0x8502
   MrMAPI -d -s reminder
   MrMAPI -d -n 34050

   MrMAPI -p 17 -i webview.txt -o parsed.txt

2011-09-28

ハイエンド系」ってなに?

無念 Name としあき 11/09/28(水)11:58:41 No.77177766 del

ハイエンド系」と「SF」は全然関係ないよ



… 無念 Name としあき 11/09/28(水)12:01:35 No.77178031 del

>「ハイエンド系」と「SF」は全然関係ないよ

馬鹿ライター勝手提唱して一人で使ってた言葉だしな…



… 無念 Name としあき 11/09/28(水)12:02:06 No.77178070 del

オタ絵における「ハイエンド系」って何?

カトキ重力からスイングバイして発展した…みたいな?



… 無念 Name としあき 11/09/28(水)12:03:08 No.77178154 del

カトキ重力からスイングバイして発展した…みたいな?

自分で何を言っているか理解してから喋って欲しい



… 無念 Name としあき 11/09/28(水)12:04:31 No.77178276 del

それくらい実体がないんだよ



… 無念 Name としあき 11/09/28(水)12:04:39 No.77178293 del

ハイエンドってオーバースペックとかそういうニュアンスかと思ってた

大卒とか



… 無念 Name としあき 11/09/28(水)12:06:24 No.77178443 del

オーバースペックとかそういうニュアンスかと思ってた

>美大卒とか

あ~

俺もそんな感じだわ



… 無念 Name としあき 11/09/28(水)12:06:28 No.77178449 del

>オタ絵における「ハイエンド系」って何?

エロゲレベル低い!俺はもっと上手い連中を知ってる!と馬鹿ライタームサビの連中をダシにしてドヤ顔するために作った言葉

定義は無い



… 無念 Name としあき 11/09/28(水)12:06:29 No.77178452 del

単に「巧い」ってことか?



… 無念 Name としあき 11/09/28(水)12:08:27 No.77178631 del

正直絵柄の流行り廃りは怖いと思いました



… 無念 Name としあき 11/09/28(水)12:08:57 No.77178674 del

ムサビ系でいいじゃねーか


… 無念 Name としあき 11/09/28(水)12:09:58 No.77178763 del

ピュアガールで描いてて今も一線級って誰がいるか


… 無念 Name としあき 11/09/28(水)12:10:15 No.77178786 del

ムサビ系でいいじゃねーか

それ採用



… 無念 Name としあき 11/09/28(水)12:10:37 No.77178813 del

当事者が自ら名乗ってた訳でもないのに

勝手に変なジャンルに括られて波が引く恐怖



… 無念 Name としあき 11/09/28(水)12:11:39 No.77178912 del

草食系とかみたいに

文章かきは勝手カテゴリわけしたがるんやな



… 無念 Name としあき 11/09/28(水)12:17:51 No.77179473 del

>文章かきは勝手カテゴリわけしたがるんやな

加野瀬勝手に妙なカテゴリ作って持ち上げた上に

当時主流の絵柄や塗りをガンガン否定して敵まで増やしてたな

あんなのに巻き込まれたら死ね




… 無念 Name としあき 11/09/28(水)12:43:56 No.77182329 del

撫荒武吉ならハヤカワSFの表紙仕事最近メイン

小川一水の表紙が多いけど

どれも出来良いんでオススメ



… 無念 Name としあき 11/09/28(水)12:46:22 No.77182587 del

>ハヤカワSFの表紙仕事最近メイン

結構いいポジションに収まってたんだな

前張りは描けなさそうだけど



… 無念 Name としあき 11/09/28(水)12:47:47 No.77182738 del

>ハヤカワSFの表紙仕事最近メイン

おおー 上手い

いわれてみると塗りのタッチに特徴があるような

仕事でこういう固い絵を描いて

プライベートでまえばるわけだな



… 無念 Name としあき 11/09/28(水)12:49:21 No.77182909 del

宇宙船と前張りを組み合わせた

全く新しいSF・・・



… 無念 Name としあき 11/09/28(水)12:51:10 No.77183116 del

宇宙船と前張りを組み合わせた

>全く新しいSF・・・

そして暗黒星雲賞受賞



… 無念 Name としあき 11/09/28(水)12:52:41 No.77183290 del

宇宙船と前張りを組み合わせた

>全く新しいSF・・・

宇宙版ダフネ



… 無念 Name としあき 11/09/28(水)12:54:19 No.77183458 del

まえばり業界にいるよりよっぽど先がありそうじゃねーか!



… 無念 Name としあき 11/09/28(水)12:55:07 No.77183557 del

>まえばり業界

そんなものは無い(画像

2011-09-10

Remember My Name

久しぶりに槇原敬之アルバムを買ったのは

この曲に救われたかたか・・・

曲に救われたとかいう人を僕は信じなかったけど、この曲でこの年でこの曲に救われた。

 

http://www.utamap.com/viewkasi.php?surl=k-110727-037

 

この曲はがんキャンペーンソング。

同僚と母親が同じ時期に乳がんになって約1年。

母親はかなり早期だった。

同僚は今でも辛い治療を続けている。

 

彼女乳がんってことを初めて告白したのが僕。

まり大げさにとらえないだろうから、僕に告白したってことらしい。

 

僕もあまり大げさに考えずに、なんとなーく支えようかと思ったけど、

やっぱりだんだん辛くなって。

 

昨日もかなり辛い内容のメールで、どう返したらいいのかわからなくて、

いつもは冗談で返すけど、冗談で返せない僕も僕自身がなんだか嫌で、

大変なのは本人だとわかっているのに、

なんだか僕も被害者意識を持つようになって、

それもすごく嫌で、

なんで僕だったんだろう、なんで同性に言わずに僕だったんだろう、

まだ職場の誰も知らなくて、僕だけが知っているという状況も辛くて、

それも被害者意識みたいで嫌で。

 

でもこの曲は患者本人だけではなくその周りの人たちにも救いを与えているような気がする。

 

この曲を聴きながら大泣きしながらドライブした一日。

2011-08-30

キーボードリマップ 2011_08_29_

AutoHotKey・KeySwap・Atok2005を使った

また、これは AutoHotkey.ahk (AutoHotkey設定ファイル) 自身でもある。

なお、Atokでのキーボードリマップは、以下の通り。

ATOKプロパティ  =>キーローマ字・色 タブ =>キーカスタマイズ 

ここから

────────────────────

; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a

; semicolon, such as this one, are comments. They are not executed.

; This script has a special filename and path because it is automatically

; launched when you run the program directly. Also, any text file whose

; name ends in .ahk is associated with the program, which means that it

; can be launched simply by double-clicking it. You can have as many .ahk

; files as you want, located in any folder. You can also run more than

; one ahk file simultaneously and each will get its own tray icon.

; SAMPLE HOTKEYS: Below are two sample hotkeys. The first is Win+Z and it

; launches a web site in the default browser. The second is Control+Alt+N

; and it launches a new Notepad window (or activates an existing one). To

; try out these hotkeys, run AutoHotkey again, which will load this file.

#z::Run www.autohotkey.com

^!n::

IfWinExist Untitled - Notepad

WinActivate

else

Run Notepad

return


; Note: From now on whenever you run AutoHotkey directly, this script

; will be loaded. So feel free to customize it to suit your needs.

; Please read the QUICK-START TUTORIAL near the top of the help file.

; It explains how to perform common automation tasks such as sending

; keystrokes and mouse clicks. It also explains more about hotkeys.

; ! → Alt

; ^ → Control

; + → Shift

;────AutoHotKey.ahk のキーボードリマップ 2011_08_29_

; 変換 = IME ON (日本語)  =>Atok機能で実現

; 無変換 = IME OFF (英語)  =>Atok機能で実現

; カタカナ = F7  =>KeySwapで実現

; CapsLock = F10  =>KeySwapで実現

; 右Alt = Home  =>KeySwapで実現

; 右Ctrl = End   =>KeySwapで実現

; その他はAutoHotKey機能で実現。

;vk1D::return ;無変換キー単体で動かないようにする

;RShift::^z ;右Shift で Ctrl+z

;SC07B & Space::send,{Blind}{Enter} ;無変換+Space で Enter

;SC07B & j::send,{Blind}{Home} ;無変換+j で Home

;SC07B & k::send,{Blind}{End} ;無変換+k で End

;SC07B & h::send,{Blind}^{Home} ;無変換+h で Ctr+Home

;SC07B & l::send,{Blind}^{End} ;無変換+l で Ctr+End

;SC07B & u::send,{Blind}{} ;無変換+u で

;SC07B & i::send,{Blind}{} ;無変換+i で

;SC07B & LButton::send,{Blind}{Home} ;無変換 + LButton でHome

;SC07B & RButton::send,{Blind}{End} ;無変換 + RButton でEnd  =>Ctrlと組み合わせ可。

;SC07B & y::send,{Blind}^{ } ;無変換+y で Ctr+

;SC07B & o::send,{Blind}^{ } ;無変換+o で Ctr+

;SC07B & w::send,{Blind}{Home} ;無変換+w で Home

;SC07B & r::send,{Blind}{End} ;無変換+r で End

;SC07B & e::send,{Blind}{Up} ;無変換+e で Up

;SC07B & d::send,{Blind}{Down} ;無変換+d で Down

;SC07B & f::send,{Blind}{Right} ;無変換+f で Right

;SC07B & s::send,{Blind}{Left} ;無変換+s で Left

1::+1 ;1 を Shift+1 に(記号にする)

2::+2 ;2 を Shift+2 に

3::+3 ;3 を Shift+3 に

4::+4 ;4 を Shift+4 に

5::+5 ;5 を Shift+5 に

6::+6 ;6 を Shift+6 に

7::+7 ;7 を Shift+7 に

8::+8 ;8 を Shift+8 に

9::+9 ;9 を Shift+9 に

0::+- ;0 を Shift+- に

\::+\ ;\ を Shift+\ に

;──────────────────── http://nanabit.net/softwares/autohotkey/

; Alt+F6 (例:2011_08_04_)

; Ctrl+F6 (例:03:48)

; Alt+Ctrl+F6 (例:2011_08_04_16:45)

!F6::

Send, %A_YYYY%_%A_MM%_%A_DD%_

return

^F6::

Send, %A_Hour%:%A_Min%

return

!^F6::

Send, %A_YYYY%_%A_MM%_%A_DD%_%A_Hour%:%A_Min%

return

2011-08-09

らぶちばネット菅井啓之が秋山慎一郎さん(31)を死亡させ逮捕

らぶちばネット

http://lovechiba.net/

東日本大震災復興支援活動 kizuna - 絆 - project

届けよう千葉の元気!! ~We 're all in the same boat!~


2011年3月11日に発生した、東北地方太平洋沖地震で被災された皆様に心よりお見舞い申し上げます。今回の地震により被災された方々の支援や被災地復興に役立ていただくため、東日本大震災復興支援活動 kizuna - 絆 - projectを設立いたしました。被災地の一日も早い復興を心より祈念するとともに、全力を挙げて支援してまいります


kizuna - 絆 - project 代表 菅井 啓之 

せっかくいいことやっているのに、人を殺して、何人も死傷させてしまっては、一緒に活動していた仲間が不憫でならない。

車線変更に憤慨、前に回り込み停車…13人死傷

 栃木県矢板市東北自動車道で、走行車線に停車していた高速バストラックが追突し、13人が死傷した事故で、県警高速隊は8日、高速バスの前に回り込んで停車させた乗用車を運転していた千葉県四街道市旭ケ丘、イベント菅井啓之容疑者(44)を自動車運転過失致死傷の疑いで逮捕した。


 発表によると、菅井容疑者は7日午前1時半頃、矢板市石関の東北道で、車線変更しようとしたバスに憤慨し、バスの前に車を停止、後続のトラックを追突させた。トラックを運転していた山梨県南アルプス市引っ越し秋山慎一郎さん(31)を死亡させ、バスの乗客12人に軽傷を負わせた疑い。

 菅井容疑者宮城県内にボランティアに行く途中だったといい、調べに対し「前に割り込まれそうになって頭にきた」などと供述している。

物損については、ボランティア保険の対象になる(おそらく)けれども、ボランティア仲間としては、こんなことに申請して欲しくない。

しっかりと罪をあがなってきてほしい。

ブログはここ

http://ameblo.jp/sugaihiroyuki/

自宅住所と連絡先電話番号とメールアドレスはこちらに一般公開されている。

http://whois.ansi.co.jp/lovechiba.net

GMO Internet, Inc. whois server 2.0

This server only serves information on GMO Internet,Inc.-maintained domain names

For more information, please contact hostmaster@gmo.jp.

Domain Handle: None

Domain Name: lovechiba.net

Created On: 2009-09-11 01:11:13.0

Last Updated On: 2011-02-21 01:41:26.0

Expiration Date: 2011-09-10 16:11:13.0

Status: ACTIVE

Registrant Name: hiroyuki sugai

Registrant Organization: hiroyuki sugai

Registrant Street1: 3-9-3 asahigaoka

Registrant Street2:

Registrant City: yotsukaidou

Registrant State: Chiba

Registrant Postal Code: 2600013

Registrant Country: JP

Registrant Phone: 81-434330015

Registrant Fax:

Registrant Email: yent@mac.com

Admin Name: hiroyuki sugai

Admin Organization: hiroyuki sugai

Admin Street1: 3-9-3 asahigaoka

Admin Street2:

Admin City: yotsukaidou

Admin State: Chiba

Admin Postal Code: 2600013

Admin Country: JP

Admin Phone: 81-434330015

Admin Fax:

Admin Email: yent@mac.com

Billing Name: hiroyuki sugai

Billing Organization: hiroyuki sugai

Billing Street1: 3-9-3 asahigaoka

Billing Street2:

Billing City: yotsukaidou

Billing State: Chiba

Billing Postal Code: 2600013

Billing Country: JP

Billing Phone: 81-434330015

Billing Fax:

Billing Email: yent@mac.com

Tech Name: hiroyuki sugai

Tech Organization: hiroyuki sugai

Tech Street1: 3-9-3 asahigaoka

Tech Street2:

Tech City: yotsukaidou

Tech State: Chiba

Tech Postal Code: 2600013

Tech Country: JP

Tech Phone: 81-434330015

Tech Fax:

Tech Email: yent@mac.com

Name Server: uns01.lolipop.jp

Name Server: uns02.lolipop.jp

高速バス事故 乗用車の男逮捕

栃木県東北自動車道で7日、高速バストラックが追突して13人が死傷した

事故で、バスの前を走っていた車が車線変更をめぐるトラブルに腹を立ててバス

の進路をふさぐように停止したことが事故の原因になったとして警察は車を運転

していた44歳の男を逮捕しました。

この事故は7日午前1時半ごろ、栃木県矢板市東北自動車道の下り線で、東

京発青森行きの高速バストラックが追突し、トラックを運転していた31歳の会

社役員が死亡したほか、バスの乗客12人が軽いけがをしたものです

警察は、当時、高速バスの前を走っていた乗用車がバスの進路をふさぐように

停止したため、バスが走行車線上に停止して運転手同士が口論となり、これが

原因でトラックが追突したとみて乗用車を運転していた男に事情を聞いていまし

た。

その結果、男が「車線変更をめぐるトラブルに腹を立て高速バスを止めようとし

た」と供述したことなどから8日夕方、自動車運転過失致死傷の容疑を適用して

逮捕しました。

逮捕されたのは千葉県四街道市イベント業、菅井啓之容疑者(44)で、事故

の後、東日本大震災ボランティア活動で宮城県に向かい宮城県内で逮捕

れたということです

菅井容疑者警察の調べに対し「事故の原因を作ったことは認めます」と供述

しているということで警察は、当時の状況をさらに調べています

http://www.nhk.or.jp/lnews/shutoken/1004785531.html

事故を起こさせた後、宮城に行っていたとは。

亡くなった秋山慎一郎さんがかわいそすぎる。

http://raicho.2ch.net/test/read.cgi/newsplus/1312817304/

2011-08-04

独学のプログラムエロ動画検索作ってみた

【お知らせ】2011/09/07

新しいエロWEBサービス作りました

http://d.hatena.ne.jp/uniqueweb/20110906/1315285545



プログラムは全く得意じゃないけれど最近よく見かけるようになったエロ動画検索自分でも作ってみたくて頑張ってみました。

近年、インターネットの普及によりエロ動画が自宅で簡単に見れるという素晴らしい時代になりました。

自分が若い頃はインターネットなんてものはなくエロビデオが主流でドキドキしながらレンタルビデオ屋に行き、可愛い女の子レジにいない隙を見計らってお兄さんにパッケージを伏せて空箱を渡しビデオを借りたものでした。

お兄さんにビデオ空箱を渡そうとした時に可愛い子がレジに戻ってきて焦って渡すのをやめてものすごく変な動きをしながらエロビコーナーに引き返していくなんてことも多々ありましたw

僕のお気に入りといえば「白石ひとみ」や「あいだもも」といった女優でよく借りてました。エロビを借りるということがものすごく恥ずかしい時代?年頃?でカモフラージュ普通ビデオと一緒に借りるということもしていました。それはそれは大変な思いでオナニーしてたんです

しかも、ビデオデッキ自体が貴重な時代でリビングに一台しかないのが当たり前でした。

深夜家族が寝静まってからヘッドフォンビデオを抱えリビングに行き暗がりの中でヘッドフォンテレビ差し込んでビデオ再生ボタンを期待に胸をふくらませながら押したものです。いいシーンを何回も見るためにビデオを巻き戻すんですが、ビデオを巻き戻すガチャガチャンという機械音で家族が起きてこないか?とかそれはそれはドキドキしながら見てました。一仕事終えたあとヘッドフォンを外したらジャックが外れていて大音量で喘ぎ声が響き渡っていたなんてこともありました。誰も起きてこなかったのは優しさなんでしょうか?w

さて、大分前置きが長くなりましたがエロというものものすごい技術発展させるものだと思いますエロのおかげで日本ビデオは普及しエロのおかげで日本インターネットものすごく普及したと言っていいと思います自分エロを通して技術の発展に貢献し自分自身のスキルアップになれば。という高い志を持ってこのサイト制作しました。決して自らのオナニーライフの充実と性癖を充たすため作ったわけではありません・・・

※2011.08.07 利用中のサーバーに障害が発生しているようで現在サーバー接続できない状態となっています・・・

※2011.08.07 23:53 復帰した模様です

サイト名:ヌキネーター

サイト名の由来は抜きネタからきています。抜きネーター、ヌキネーターという感じです

エロサイト制作工程日記にしてみたんで良かったら読んで下さい。そしてこのサイトを使って夜いろいろと励んでくれたら嬉しいです

では制作日記を書いていきたいと思います

サーバー選び

まず前提条件としてお金ほとんどかけたくない。アダルトサイトであるということから

サーバー選びからはいりました。

月の予算は5000円以内で考えていたのでけっこう探すのが大変でした。

日本アダルトサイトを許可している所はかなり限られていてさらにやりたいことができるのは

専用サーバーVPSしかないのでそうなると専用サーバー予算オーバーなので

VPSで探すことになり検索しまくってはじめに見つけたVPSはKAGOYAのVPSだったのですがβ版で募集を締め切っていて泣く泣く諦めました。

KAGOYAはかなり評判がいいみたいなので使ってみたかった。

次に見つけたのが○○○VPS海外サーバー日本語サポートがあり転送量の制限なしディスク容量100G

月1300円程度で借りれるということで初期設定費用に5000円程度かかりましたが借りてみました。

結果、ここは最悪でした。

  • 通信が頻繁に切れる
  • 激重
  • 借りて一ヶ月もしないうちにサービス継続が困難になりそうなのでIPが変わるとかメールがくる
  • まりに通信環境が悪すぎるとメールすると環境調査に協力してくれとメールがくる
  • 時間をかけて沢山の項目を調べて返信するも全く返答がない。

まりの酷さに1ヶ月で解約。

よく調べてみたら評判がものすごく悪い某VPS再販らしいです

お金時間をドブに捨てました・・・

もう失敗したくないと思い今度は比較的有名な海外サーバーLINODE

日本語サポートはないけれど抜群のサポートです

iptablesの設定でどうしてもうまくいかなくて拙い英語メールしてみたら

10分しないうちに返信がきました!

メールに書かれているとおりにコマンド入力したらあっさり解決。

素晴らしい!はじめからLINODEにすればよかった。

担当ブライアンはなぜか分からないけどとてもフレンドリーで親切に感じましたw

サーバー設定

LINODEは複数のディストリビューションから好きなものを選択できるので

とりあえず、64bit版を選択。

サーバー設定はほんとに面倒ですね。

一番面倒だけど重要だということで

SSH

Tripwire

chkrootkit

Clam AntiVirus

iptables

Apache

SSL

その他各種監視ツールの導入をしました。

ほんとに面倒でした。

データベース

はじめはmysqlストレージエンジンgroongaを使おうと思ったのです

初めに借りた最悪なVPSOSが32bit版だったのでgroongaがのソースが見つからずなぜかと思っていたら

どこかで見つけた記事で32bit版ではgroongaの性能を発揮しきれないということで32bit版の提供をやめてしまったらしいと書いてたので

じゃあ、sennaにするかということで最悪VPSsennaインストール

その後LINODEに変更したのでOSに64bit版を選択し念願のgroongaをインストール

しかし、調べてみると

などが理由で、結局sennaに戻して2度手間に・・・

プログラムもそれに合わせてその都度書き換えたので2度手間どころか3度手間4度手間でした・・・

senna導入はrpmでさくっといけるので簡単です

依存関係で少しはまりました。

まず

# rpm -qa | grep -i mysql

mysqlインストールされてたら削除

perl-DBIが必要なのでインストール

# yum install perl-DBI

そして下記の順番でインストール

rpm -ivh mecab-0.98-tritonn.1.0.12a.x86_64.rpm

rpm -ivh mecab-ipadic-2.7.0.20070801-tritonn.1.0.12a.x86_64.rpm

rpm -ivh senna-1.1.4-tritonn.1.0.12a.x86_64.rpm

rpm -ivh MySQL-shared-5.0.87-tritonn.1.0.12a.x86_64.rpm

rpm -ivh MySQL-client-5.0.87-tritonn.1.0.12a.x86_64.rpm

rpm -ivh MySQL-server-5.0.87-tritonn.1.0.12a.x86_64.rpm

rpm -ivh MySQL-devel-5.0.87-tritonn.1.0.12a.x86_64.rpm

my.cnfの設定をして終了

で肝心の全文検索ですデータ件数が5万件程度で少ないせいなのか、あいまい検索と比べてそれほど速さを実感できなかったです・・・

でもきっとすごく速くなったはず!

ちなみに「麻美ゆま おっぱい」で検索した場合、0.01 secで結果が返ってきました。


動画データ作成

さて、動画データ作成ですがいくつかのエロサイト制作記事でもあるようにスクレイピングということをします。

スクレイピングとはWEBサイトから特定の情報だけを取得することでネット上にあるサイトクロールして必要なデータだけを拾ってデータを作るといった感じでしょうか。

スクレイピングプログラム自体は以前にTidy関数を使って為替データ10分おきに取得するような物を作ったことがあったのでそれほど時間はかからいかなと思ったのですがけっこう時間かかりました。

スクレイピングにはTidyhtmlSQL、それにPHP Simple HTML DOM Parserを使いました。

下記のサイトを参考にしました。

phpによるスクレイピング処理入門

SQL みたいな文法で HTML を抽出する PHP のライブラリ

htmlSQLよりアツい!?jQueryみたいにセレクタでHTMLをparse(解析)する「PHP Simple HTML DOM Parser」

つの中で抜群に使えるのはPHP Simple HTML DOM Parserだったんです

ループ処理させるとメモリがすごいことになって今回のようなスクレイピングに向いてないみたいで

結局、htmlSQLTidyの両方を使ってスクレイピングしました。

両方ともPHP Simple HTML DOM Parserに比べるとうまくデータの取得ができないことが多く残念な感じなんですが他に選択肢がないので・・・

使える順に並べると

PHP Simple HTML DOM Parser

htmlSQL

Tidy

といった感じかもしれません。

おおまかにデータを取得して正規表現で特定データを抜き出しました。

広告との連携

広告にはDMMアフィリエイトを利用しています

http://affiliate.dmm.com/link.html

利用可能な物はパッケージ画像、サンプル画像(縮小)と書かれていたのでそれに従い画像を利用。

注記に※ユーザーレビュー引用いただけません。とだけ書かれているのでそれ以外は引用ありと判断して説明文とタイトルなどを利用

女優データジャンルデータDVDデータ、を紐付けたデータベース作成検索ワードに応じて検索結果に関連する商品を表示させるようにしました。

現状、売り上げ0で意味があるのか分かりませんけどw

負荷対策とか転送量とかDOS攻撃対策とか

エロサイトということで多少はチューニングとか設定とかしないとまずいかもと思い色々調べて設定しました。

やったこと

KeepAlive On

MaxKeepAliveRequests 60

KeepAliveTimeout 3

<IfModule prefork.c>
StartServers       7
MinSpareServers    5
MaxSpareServers   10
ServerLimit       30
MaxClients        30
MaxRequestsPerChild  4000
</IfModule>

様子見ということで2日間で設定してみました。

query_cache_limit=1M

query_cache_min_res_unit=4k

query_cache_size=16M

query_cache_type=1

とりあえずこんなところを設定してみましたが、爆発的なアクセスがあるわけでもないので有効なのか今のところ分かりません(-_-;)

Apache Benchでテストはしてみましたけど問題はない感じですが実際にチューニングができているか分かりません。


サイトデザイン

プログラマーとして有名なゆうすけさんのサイトgoogleを参考にしました。

シンプルで使いやすいようにしようと思いこのデザインしました。

3カラム中央可変となっています

クロスブラウザIE7、firefox3、chromeで行いました。

可変ものって作ったことなかったんですがけっこう面倒なんですね。

サイト機能

ブックマーク機能とメニューの折りたたみ機能検索結果の表示方法切替を作りました

まず、ブックマーク機能ですログインなしで気に入った動画ブックマークできるようにしました。

ブックマークに追加した動画ブックマークページで確認できるようにしました。

cookie機能を利用したらいけると思い色々調べてjquery.cookie.jsを利用。

保存したクッキー情報を呼び出してphpに渡して処理し指定要素にブックマーク一覧をloadメソッドで表示させるという感じです

$(function(){
$("#youso").load("xxx.php");
});

メニューの折りたたみ機能は人気AV女優AV女優別、人気タグなどをそのまま表示させるとずらっと長くなって邪魔だったのでつけました。

これには同じくjquery.cookie.jsを利用しました。

参考サイトhttp://blog.caraldo.net/2009/03/newjqqookiemenu.php

検索結果の表示方法切替にはZoomer Galleryを利用しました。

参考URLhttp://phpjavascriptroom.com/?t=ajax&p=jquery_plugin_zoom#a_zoomergallery

検索結果ページで表示される

[ここの画像]

××× の検索結果

44件中 1~10件目を表示

ここの画像の部分をクリックするとgoogleイメージ検索みたいに一覧でイメージ表示できるようにしてみました。

動画表示ページ

基本的に動画の埋め込みを許可しているサイトのみプレイヤー表示をしそれ以外は画像を表示し動画データリンクするようにしました。

埋め込み部分はあらかじめそれぞれのサイト対応したプレーヤー部分のコード記述しVIDEOIDの部分に置き換えるような形にしました。

XVIDEOSを例にすると

XVIDEOS場合かならず動画urlhttp://www.xvideos.com/videoXXXXXX/のようになりますのでXXXXXXの部分を

VIDEOID部分に置き換えるようにプログラムを組みました、

埋め込み部のソース

>||<object width="510" height="400" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="allowScriptAccess" value="always" /><param name="movie" value="http://static.xvideos.com/swf/flv_player_site_v4.swf" /><param name="allowFullScreen" value="true" /><param name="flashvars" value="id_video=VIDEOID" /><embed src="http://static.xvideos.com/swf/flv_player_site_v4.swf" allowscriptaccess="always" width="510" height="400" menu="false" quality="high" bgcolor="#000000" allowfullscreen="true" flashvars="id_video=VIDEOID" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>
||<

その他の動画サイトURLの一部分のデータを使っているので同様の処理をしました。

まとめ

実際の作業は2、3週間ですが色々調べる時間が多くて制作に2ヶ月くらいかかりました。

自分エロ動画検索を作ってみて有名プログラマーさん達がいかに優秀なのか思い知らされました。

皆さん思いついて数日で作ってしまうのでびっくりです

全くWEBの知識がない人で4、5ヶ月ですごいの作っちゃう人とかもいるみたいですし世の中広いな~と思います

しかし、エロサイト作りで勉強になりますね~

大分、色んな知識を得ることができました。

これからプラグラム勉強しようと思う人はぜひエロサイトから入ってみて下さい。

きっと楽しいですよ!

そんなこんなで?頑張って作ってみたエロ動画検索、良かったら使ってみて下さい。

これで少しは技術の発展に役立てたでしょうか?w

アダルト動画検索ヌキネーター

P.S エロサイトを作っていてはじめは楽しくて興奮しながら作ってたのです最後の方はエロい物を見ても全く反応しなくなりましたw

  不能ではないんですけど・・・現在も性欲が著しく減退しております・・・

  そしてスーパーpre記法がうまういかないのはなぜ?はてな匿名ダイアリー投稿全然からない・・・

  そしてそしてプログラマーさんとかデザイナーさんとかエロい人とかお気軽にお声をおかけ下さい。



【お知らせ】2011/09/07

新しいエロWEBサービス作りました

http://d.hatena.ne.jp/uniqueweb/20110906/1315285545

2011-07-31

そうしてあなたは去ってゆくのね」はそうして去ってゆくのね

http://mixi.jp/run_appli.pl?id=5638

http://mixi.jp/view_bbs.pl?id=46278682&comm_id=4544309

知らぬ間に去っていったマイミクを調べることができるmixiアプリだが、8月1日提供終了になるらしい。

現時点で、全体のアプリ週間利用者数ランキング20位、利用者数179万人のアプリである

アプリ8月1日をもって終了いたします。

これまで「そしあな」をご愛顧頂き、誠にありがとうございました。

なお、mixiアプリ版は終了となりますiPhoneアプリそうしてあなたはさってゆくのね」の提供を開始しております

このiPhoneアプリtwitterフォロワー用の「そしあな」となります

AppStoreで「そしあな」と検索してみてください。もちろん無料です

7月上旬にはAndroidスマートフォンアプリ版「そしあな」の提供も予定しております

Android版の提供を開始しましたら、またこちらでお知らせいたします。

twitterフォロワー用は継続して提供されるようだが、いなくなったマイミクを知る手段はなくなってしまうようだ。

そこで8/1以降も、このアプリを使用できる方法を用意した。(FirefoxChromeで確認済み)

↓↓↓以下説明↓↓↓

https://sap.mixi.jp/home.pl を開いて、何回かパスワード入力すると、管理アプリ一覧の画面になる。

(Developer登録をする画面になった場合は登録を済ませてほしい)

管理アプリ一覧を開いた状態で、下記の文字列アドレスバーに貼り付けてエンターを押すと、アプリ作成の画面になるので、内容を確認して問題なければ「作成する」ボタンクリック

javascript:(function(){p=location.href.match(/postkey=(.*)/);location.href="https://sap.mixi.jp/add_appli.pl?submit=main&name=%E3%81%9D%E3%81%86%E3%81%97%E3%81%A6%E3%81%82%E3%81%AA%E3%81%9F%E3%81%AF%E5%8E%BB%E3%81%A3%E3%81%A6%E3%82%86%E3%81%8F%E3%81%AE%E3%81%AD&url=http%3A%2F%2Fdl.dropbox.com%2Fu%2F36813827%2Fgadget.xml&description=%E3%81%9D%E3%81%86%E3%81%97%E3%81%A6%E3%81%82%E3%81%AA%E3%81%9F%E3%81%AF%E5%8E%BB%E3%81%A3%E3%81%A6%E3%82%86%E3%81%8F%E3%81%AE%E3%81%AD&d1_enable=1&details=%E3%81%93%E3%81%AE%E3%82%A2%E3%83%97%E3%83%AA%E3%81%AF%E3%80%81%E7%9F%A5%E3%82%89%E3%81%AC%E9%96%93%E3%81%AB%E5%8E%BB%E3%81%A3%E3%81%A6%E3%81%84%E3%81%A3%E3%81%9F%E3%83%9E%E3%82%A4%E3%83%9F%E3%82%AF%E3%82%92%E9%80%83%E3%81%95%E3%81%9A%E3%83%81%E3%82%A7%E3%83%83%E3%82%AF%E3%81%A7%E3%81%8D%E3%82%8B%E3%82%A2%E3%83%97%E3%83%AA%E3%81%A7%E3%81%99%E3%80%82%E8%AA%B0%E3%81%8C%E3%83%9E%E3%82%A4%E3%83%9F%E3%82%AF%E3%81%8B%E3%82%89%E5%A4%96%E3%82%8C%E3%81%9F%E3%81%AE%E3%81%8B%E3%81%BE%E3%81%A7%E7%9F%A5%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%E3%80%82&agreement=agree&postkey="+p[1];})();

こうしてあなた専用の「そうしてあなたは去ってゆくのね」が作成された。

あとは「アプリ実行ページへ」から普通に使うことができる。

何らかの理由で、この手順がおこなえない場合は、マイミクの誰かに代理で作成してもらい、そのアプリ自分アカウントに追加するのでもよい。

2011-07-22

twitterで知り合った婚約者リムーブした。

フォローしてないほうが幸せと聞いてはいたが、付き合って間もない頃は「フォローしたまんまでいいじゃん」と思っていた。

でもやっぱりリムーブしたくなるものだね。

見えなくなってめちゃくちゃスッキリしたし、複数リプライとかでscreen nameが見えるのもストレスの元だからNG指定したりミュートしたりしたいくらい。

2011-04-26

HTML frame の名前(name)の先頭に_(アンダーバー)をつけると挙動が変?

<frameset>

<frame name="_main" src="...">

...

</frameset>



のような、フレームを用いたWEBページを作成した

あるページで

<a href="...." target="_main">

した場合目的の_mainのフレームは移動してくれない。



フレーム名前を"main"としたら、移動してくれた。



ブラウザは、IE6



http://www.tagindex.com/kakolog/q2bbs/1301/1564.html

2011-03-30

増田キーワードリンク無効化user.js Opera

// ==UserScript==
// @name keywordlink-buster
// @include http://anond.hatelabo.jp/*
// @exclude http://anond.hatelabo.jp/*/edit
// ==/UserScript==
(function (){
  var init = function() {
    var anc = document.querySelectorAll('div.section a.keyword');
    for (var i = 0, a; a = anc[i]; i++) {
      a.parentNode.replaceChild(document.createTextNode(a.innerText), a);
    }
  }
  window.addEventListener('DOMContentLoaded',init,false);
})();

2011-03-20

より良いPHPerにならないための20Tips

http://1-byte.jp/2011/03/20/20_tips_you_need_to_learn_to_become_a_better_php_programmer/

良いPHPerだって?そんなものは丸めゴミ箱にでも捨ててしまった方が資源の再利用になる分いくらかマシだ。

つまり俺たちがしなくちゃならないことは「より良いPHPerにならないため」に何ができるかってことなのさ。

それじゃ、始めよう。

1. ?>を使うな

?>なんて使っちゃいけない。そう俺たちはBAD PHPer。

無駄ホワイトスペースの出力に悩まされるくらいなら対称性なんて丸めゴミ箱にでも捨てた方がまだマシだ。非対称性こそが賛美。

2. 設定ファイルPHPで書くな

require_once("config.php");

未だにこんなことやってるやつがいるのかいベイベー。絶対にダメだ。この一行を見たら俺は悶絶する。

ダメだ、早く何とかしないと。

大抵このconfig.phpの中身はこうなっている。見て絶望だ。

$hoge_path = '';
if (!LOCAL) {
    define('FOO_FLAG', 1);
    if (HONBAN) {
        define('HOGE_FLAG', 1);
    }
    else if (TEST) {
        define('HOGE_FLAG', 2);
    }
}
else {
    $hoge_path = '/local';
    define('FOO_FLAG', 2);
    define('HOGE_FLAG', 3);
}

define('HOGE_URL', $hoge_path.'/hoge/');

こういうのが延々と続くわけだ。もういやだ。もう見たくない。

本番環境テスト環境でどういう値の違いがあるのか、ローカル環境だとどうなるのか、まったく把握できる気がしない。

なまじPHPな設定ファイルのせいで処理をついつい書いてしまう。そしてどんどん複雑になってしまう。

やはり設定データは基本的にYAML等のデータしか定義できない形式のもので用意すべきだ。そして環境ごとに設定ファイルを分けるべきである

そうすることで何にどういう違いがあるのかすぐにわかるし、diffすれば一度にすべて把握することができる。

# 本番環境設定ファイル
foo_flag: 1
hoge_flag: 1
hoge_url: '/hoge/'
# テスト環境設定ファイル
foo_flag: 1
hoge_flag: 2
hoge_url: '/hoge/'
# ローカル環境設定ファイル
foo_flag: 2
hoge_flag: 3
hoge_url: '/local/hoge/'

3. コメントを信用するな

そう、あなたはこんな状況に遭遇したことがあるんじゃ?

// ここで後の処理のためにhogeメソッドを呼び出しておく
$q->foo();

// $a['foo']はここに来る時点で真のはず
// 2010-03-10 判定がおかしいので修正
// 2010-06-21 やっぱり値が入ってる方が正しい
if ( !isset($hoge[0]) ) {
}

コメント保守されない。そう、それは真実。こんなコメント発見したら即効削除しよう。コメントは基本信じるな。

俺たちにちょっとしたヒントと大きな損害を与えてくれる、それがコメントの役割なのだ。

4. タブとうまく付き合うしかない

わかる。いいたいはとてもわかる。俺たちはしばしばインデントにスペースを使うはずだ。一方でIDEのしっかりした言語ではタブも使うことがある。しかし悪いことに、両者を混同しているプログラマも一定数いるのだ。

タブを画面上で認識しにくいエディタが世の中には存在する(何とは言わないが)

そして画面上で認識しにくいことを理由にタブを気にしないプログラマがいる。

この二つの条件が重なると、タブとスペースの交じり合ったインデントが完成する。もうぐちゃぐちゃだ。これは永遠に続く戦いだ。

私たちが勝利を掴むためにできることなどせいぜい、常にスペースしか使わない。タブを見つけたらその都度スペースに変換する。そういった地道な活動が明日へとつながるのだ。

5. 変数名に時間をかけるな

われわれがプログラムをするとき、何に一番時間がかかってるか。実は変数の命名なのである。ここで拘り過ぎて時間をかけ過ぎては何も進まない。

御託はイイからさっさと書け、だ。しかしとはいっても変数名は重要。日頃からどういうときにどんな名前を使うかを決めておくといい。

そして変数名に型はまったく必要ない。型宣言のないPHPにおいて、型の変数名をつけること自体ナンセンスだ。

コンパイラ様に保証されてない状態での

$iNumber = 'aaa';

になんの意味もない。コメントを信じるなでも言ったが、これはプログラマを混乱させるだけの害悪なものだ。

6. 変数初期化場所

変数を使う前に初期化するのは、警告を出さないという意味でも良い癖だ。しかし具体的にどこでやるかが問題だ。

$foo = null;
$foo = $q->foo();

こんな初期化意味はない。よくあるのはやはり、if文で値を振り分けるケースだろう

$foo = null;
if ( $hoge ) {
    $foo = 1;
}
else if ( $bar ) {
    $foo = 2;
}

このとき初期化はとても有効だ。もしnullの初期化を忘れたまま$fooを使うと警告が出るが、ちゃんと初期化してるので出ない。基本中の基本だ。

7. 不正なら常に死ね

function getStatus() {
    $bReturn = false;
    if ($i == 2) $bReturn = true;
    return $bReturn;
}

(中略)

もし、何かしらの理由で、あなたの書いたif文が間違っていたら?

この書き方をしていれば、間違った値に対して、常にfalseが返る。

私たちが、PHPでsensitiveなデータを取り扱うなら、正しいデータ入力されるまでは、動かないコードを書くべきだ。

trueとfalseの条件がいまいち明確ではないが、本当に動かないコードを書けというのであれば以下のようにすべきだ

function getStatus() {
    $bReturn = false;
    if ($i == 2) $bReturn = true;
    else if ($i == 1) $bReturn = false;
    else throw new Exception("bad status! $i");
    return $bReturn;
}

中途半端にfalseを返して生存させる必要性はまったくない。今すぐ死ね

8. 連想配列キーアクセスする場合

単なる配列に対して数値をクオートで囲う必要はない。

連想配列キーを指定する場合だけ定数と間違わないようにクオートで囲まなければならない。そして逆に定数を使いたい場合はクオートで囲ってはいけない。

更に後世のプログラマ処理を見たときに、定数が使いたかったのか、文字列が使いたかったのかを明確にした場合はconstantを使うと良い。

// 定数のFOOを使うよということが明確になる
print $a[constant('FOO')];

9. echoよりもprintfを使え

もし、文字列変数の値と一緒に出力するときPHPではコンマの代わりにprintfを使うことが使える。

なぜ?コンマを使うよりも可読性がグッとあがるから

printf( “Hello, my name is %s“, $sName);

以下の代わりに上記のコードを使う。

echoHello, my name is “, $sName;

出力すべき変数が増えれば増えるほど、有効になっていく。とにかく迷ったならば、printfを使え、だ。

10. 三項演算子は一回まで

三項演算子はとても有効だ。しか優先順位に難があるせいで三項演算子ネストしようとすると以下のようなコードになってしま

$n = (($i == 1) ? 2 : (($i == 2) ? 3 :$i));

括弧だらけで読みにくいったらありゃしない。三項演算子を使うなら一回まで。約束守れないやつは丸めゴミ箱にでも捨てちまえ。

11. 真偽値のチェックは生でいけ

if ( $flag ) {
}

仕様をちゃんと把握しているなら真偽値のチェックなどこれで十分。

もし事前にbool型だというのが確定してるのなら「$flag === true」を使えばいい。

12. ++と--の演算子を見極めろ

インクリメント、デクリメント演算子は前に付くか後ろに付くかで意味が変わるので慣れるまでは非常にややこしい

けがからなくなるくらいなら初めから使わないほうが良い。見極められないなら使うな。それがPHPerなのだ。

13. 代入演算子を使え

文句なしだ。これは文句がない。

他にも色々あるので覚えておこう

$a %=  1;
$a &=  1;
$a |=  1;
$a ^=  1;
$a <<= 1;
$a >>= 1;

14. 変数dump関数はより便利に

てっとり早く画面に表示する際にpreはよく使うが、デザインの関係上画面の文字が見えないときがある。

なのでdivを使って以下のようにしとくと便利だろう。

function p($var) {
    echo "<div align='left' style='background-color:white;color:black;'><pre>";
    print_r($var);
    echo "</pre></div>";
}

15. 定数から手を洗え

君らが通常作るアプリケーションなんぞに、定数なんぞ必要ない。いいか、もう一度言う、お前ら程度のもんが、定数使おう何ぞ、おこがましいわ!

大丈夫。なんでもかんでも定数にする必要はない。結局設定ファイルに定数をずらずら作りまくってわけがからなくなってるパターンが多い。

貴様たいなもんに、定数は制御できん。いいか設定ファイルYAML等のデータで持つようにし、その連想配列データ構造を一つ持ってるだけで定数の変わりになる。

このメリットに比べれば、定数だと書き換えられなくて良いという利点などこの歯のカスほどのものだ。そんなものは丸めゴミ箱へ捨ててしまうといい。

認識を改めろ。俺たちはより良いPHPerにならないために努力している。

16. $_GETと$_POSTを生で使うな

できれば何かしら簡単なクラスでもいいのでラップしろ。

class Request {
    private $parameters;
    private $method;
    function __construct () {
        $this->method = $_SERVER['REQUEST_METHOD'];
        if ( strtoupper($this->method) === 'POST' ) {
            $this->parameters = $_POST;
        }
        else {
            $this->parameters = $_GET;
        }
    }
    function param ($key) {
        return isset($this->parameters[$key]) ? $this->parameters[$key] : null;
    }
}

これだけでもいい。たったこれだけでもとても便利だ。ここから拡張してGETやPOSTを明示的に取るメソッドとかも作ってみるといい。自分の手を動かすのだ!

17. 関数だのオブジェクトだのの問題ではな

例が良くない。こんなのは引数20個ある関数からset20回呼ぶオブジェクトに変わっただけではないか

そもそもこの20個の引数はなんなのか。何かのデータ構造なんであれば連想配列にして引数一つとして渡すべきだし、それぞれまったく異なる用途の変数なのであればWindowsプログラミングじゃあるまいし20個も引数取る時点設計が間違えている。

何がいいたいか。別に関数でもオブジェクトでもどっちでもいいということだ。

そんなことで悩んでる暇があったら設計を見直せ。

18. メソッドチェインを愛用せよ

スキあらば自分自身を返せ。スキあらばオブジェクトを返せ。配列はArrayObjectのARRAY_AS_PROPSで返せ。

ひたすらメソッドチェイン。来る日も来る日もメソッドチェイン。とにかくメソッドチェインを使い続けろ。そこに未来はある。

19. コードの汎用化は慎重に

どんなコードも繰り返すな。もし、少しでも同じコードを書いていたなら、それは関数に置き換えてしまえ。

・・・と、いうのはやめなさい。

一見同じように見えた処理でも前後の流れでまったく違うものということが往々にしてある。

まとめ方にも問題があるケースもある。何でもかんでも関数化すると、関数が膨大に増えていく。君は見たことがあるだろうか。common.phpやfunction.phpの恐ろしさを。

かに細かく関数化はされているが、適切に関数化していないのである。結合度が非常に高い。なんでもかんでも盲目的にまとめれば良いという話ではないのだ!

20. 結合度は適切に減らし、適切に結合せよ

あまりに極度に意識しすぎると、プログラムそのものができなくなる。そういう状態に陥る。

気を抜いて。そう気を抜いて。所詮あなたコードなんてすぐに消えてなくなるよ。きっともっと偉い人が作り直すよ。だからまずは思うが侭にやるといい。

結合度を減らすというのは非常に難しい何度何度も失敗し続けて、ようやくここは分けた方が良かったんだなと気付く。次に活かそうと心に決める。そしてまた同じ過ちを繰り返していくわけだ。

まずは実装することだ。これが一番の早道だ。まずはがっつり結合した関数をあえて作るといい。何も考えずに作ろう。

そしてその後に、一部分使いましたいとおもうことがあるはずだ。その時に関数に切り出そう。それを繰り返すといい。そのうち初めから分けた方が良いと気付く。

何事も経験が必要である経験を積まないプログラマ丸めゴミ箱に捨ててしまえ。

さて、先の例で言うならば、私ならadd_result_outputという関数を作ってしまうだろう。だってaddとresultを連続して呼ぶのはめんどくさいんだもん。一連の流れをいつも使うのなら、その流れをやってくれる関数を作ればいいじゃないか

function add_result_output ($iVar, $iVar2) {
    $r = add($iVar, $iVar2);
    echo result($r);
}

もっと言えばクラス化してしまってもいいかもしれない。どんな感じになるかは君の手を動かして確認しよう!


最後

このTipsはとてもわかりにくく、ニッチ過ぎる部分も多いかもしれない。

しかしもう一度タイトルを確認してほしい

あくまでも「より良いPHPerにならないための20Tips」なのだ。

君はこの記事を鵜呑みにしてはならない。PHPPHPと見抜けないPHPerはPHPを使うのは難しい


おまけ

もし、あなたPHPプログラマなら、公式のPHPドキュメントあなたのケツの穴を拭くための紙になるだろう。

私は、それぞれのセクションを眺めて、各関数でどんなことが出来るかなんぞ、歯クソのゴミ程に役に立たないとおもっている。動けばいい。はは。

あなたは、PHPで用意された既製関数で多くのことが実現できることに、(俺の仕事を減らすなと)驚くはずだ。

この記事があなたの役に立たない事を。

どんなコメントでも待ってます

ふざけんな!


個人的な感想

この記事に書かれている内容は、丸めゴミ箱に捨てた方が良いレベルです

もしここまで読んでしまったら、丸めゴミ箱に捨てましょう。



プログラ増田のあなぐら

2011-02-26

http://anond.hatelabo.jp/20110226174558

char *name="hogehoeg"; // スペルが間違っているが直さないこと。多くのシステムでコレをキーとして使っているので直すと大変なことになる。

2011-01-21

やらおんを陥れようとした萌通の正体について

やらおん・やられやく分裂騒動がほぼ判明しました。以下がその真相になります

  • http://anond.hatelabo.jp/20110127225558

この騒動を引き起こしたのは「萌通」のこと古林弘忠という人間です。彼の所業について以下にまとめます

やらおんを陥れようとした事件とは?

2011年01月15日ごろ「やられやくの管理人ブログでトレントファイルを販売している」という話題が盛り上がりました

証拠の不自然からスレは鎮火したですが、古林弘忠やらおん犯人に違いないと「萌通新聞」上で告発しました

古林弘忠ネット上で6年間の行動まとめ

  • http://affisearch.com/?q=2311075118337001

これらは現在「萌通」が使っているアドセンスコードから芋蔓式に発覚しました。上記サイトからそれを確認できます

2004年以前  RO内にてヒロディーンを名乗りロキ、ヘイムダル鯖で暴れる

2004年未明  『ヘイムダル銀行』を開設し、RMT詐欺、鯖間取引詐欺、育成代行詐欺を働く

2004年10月  対人戦で敗北したJ氏の名を騙り詐欺を働き信用毀損

2005年04月  訴えようとした被害者Nに報復するため、RMT詐欺逮捕捏造ニュースを流し信用毀損

2006年02月  競馬ブログ 『情報ブログ』開設 小林美琴を名乗る

2006年10月  『☆★なりきり恋愛コンサルタント★☆』開設。グングニル・コバヤシを名乗る

2006年12月  『せれぶろ♪』開設。大学生社長コバヤシを名乗る

2007年02月  ASPで華麗なるFX「レバレッジ・クエスト」を販売。当初はN氏を騙り、後に古林弘忠を名乗る

          規約違反によりASPを追い出された後は、ペーパーカンパニーを立ち上げ再販を繰り返す、2009年まで確認

2007年05月  【Jword認定】サブプライムショックすらあざ笑う インド株究極の「ZEROリスクトレード」販売、トライアングルエージェンシー、細木わこを騙る

2007年08月  【日本JWord認定競馬商材】立花投資競馬を販売。カリスマ女子大生立花美羽を名乗る

2008年02月  超然FX 2008年人生やり直しプロジェクト 「全てのFXトレーダーよ 超然たれ!」をASPにて販売、トライアングルエージェンシー

2008年12月  FX革命「FXスナイパーシステム」を販売。合同会社セントラルインベストメントよりASPで出した後、インフォ通信で販売

2009年04月  【最強の副収入モデル】元ネットカフェ難民の男のオークションメソッド 「億ションへの夢しるべ」を販売。新世界プロジェクト合同会社

2009年05月  アニメ違法視聴ブログ『懐アニちゃんねる 無料アニメ視聴 アニメニュースまとめ』開設

2009年05月  ブログ『萌通新聞』開設。オールハイルオレンジを名乗る

2009年06月  情報商材販売サイト、『詐欺師退治のためのインフォ通信』を開設。詐欺商材を販売

2009年06月  「★名前付き!メルマガ読者獲得代行サービス」を販売。小林寛忠を名乗る

2009年10月  「ある無料サービスに申し込んで○○するだけで6万円の収入」販売。小林寛忠を名乗る

2009年10月  「時給2355円の副業サイドビジネスが毎週届くマネー宅配」販売。小林寛忠を名乗る

2009年12月  「【ネット埋蔵金2010】たった二つのステップのみで179800円保障」販売。尾畑澪を騙る

2010年02月  同人誌転載ブログユビキタスちゃんねる』開設。ユビキタスを名乗る

2010年04月  「皇帝FXシステム」販売。新世界プロジェクト合同会社川澄舞を名乗る

2010年08月  「黒字スタートの作業代行ビジネス」を販売。ケーエイキャピタルマネジメント小林寛忠を名乗り、斉藤悠を騙る

2010年10月  ブログ『萌通.com』開設。オールハイルオレンジを名乗る

2011年01月  「無料ブログで日給15万円を稼ぐ裏技」を販売すると見せかけやらおんを陥れようとして失敗

ただし一部不正であること、そしてこれでもまだ全貌ではない可能性があります

MMORPG時代

ROにおいてヒロディーンを名乗り、RMT詐欺被害がほとんど泣き寝入り状態であったことに付け込んで詐欺を繰り返しました

被害者の1人N氏は警察が介入しないため、独自に振り込み口座名コバヤシヒロタダから彼の素性を洗い出そうとしました。それに対してコバヤシヒロタダ「ヒロディーンとして有名なRMT詐欺師N氏が逮捕された」という新聞記事を捏造することで報復しました。本物の新聞記事がゲーム内のキャラクター名までも報道することなどまずありえません。しかしこの風評被害によってN氏は2年間に渡って苦しめられられました2007年、被害届が受理され供述調書が作られたというところで情報は途絶えています。

情報商材詐欺

MMORPGの後、彼が目に付けたのは株、そして情報商材した

古林弘忠は当初はASP(アフィリエイトサービスプロパイダ)を利用して販売していました。ASPとは情報商材を販売する中間業者であり、手数料が取られるため割高になりますが、利益は1ヶ月間ASP側にプールされる仕組みになっており、信頼のおける企業のみ参加していることを売りにしています。

しか古林弘忠はここで永久サポートキャッシュバックなどを謳い、中身のない情報商材を販売、被害者クレームをつけようとしたところ架空の住所だったためにASPから追い出されました。それでも懲りずにペーパーカンパニーを作ってはASPに中身のない情報商材を高額で出品し、詐欺を繰り返しました

またASPから追放された情報商材ペーパーカンパニーから直接販売することで被害者を拡大しました

彼のやり口は一定のパターンがあります

彼はブログ面白いことを書く才能には欠如していたようですが、こうした謳い文句で他人を踊らせ、他人を陥れることにかけては天才的だと言えます

古林弘忠はこうした複数のペーパーカンパニーを立ち上げました被害者は「特定商取引法に基づく表記」に書かれたこれらの企業の住所に連絡しましたが、架空のもので連絡は取れませんでした。特に被害者の多かった情報商材レバレッジ・クエストについては被害者の会が結成されるまでに至りましたが、古林弘忠雲隠れしたため解決には至りませんでした

彼がペーパーカンパニーに使った住所は悪質な振り込め詐欺融資保証金詐欺の拠点として複数サイトから警告が出されています。

ブログ時代

株や競馬情報商材詐欺に手を出していたものの大きな利益を上げられなかったのか、彼が次に目をつけたのはブログアフィリエイトした。数万PVがあると偽り広告を募集したり、YouTubeアップロードされたアニメ動画を埋め込んだブログ同人誌違法アップロードしたブログ作成アフィリエイト利益を上げようとしました

やがて目に付けたのがゲームアニメ界隈の情報ブログした。彼がそこで何を思い、何をしたのかはまだ判明していません。時間とともに明らかになるでしょう。

恐らく古林弘忠に潰されたブログは1つや2つではないと思いま

やらおんを陥れようとしたサイト疑惑

やらおんを陥れようとした情報商材サイトと、古林弘忠が作っていたサイトはいくつかの共通点があります

1.古林弘忠独特の文体

彼のサイトや、彼が作った情報商材サイトには一定の文体の特徴があります

  • 「私は」「それは」など主語、「しかし」「では」など接続詞の後に頻繁に読点を打つ。
  • 鍵括弧に『二重鍵括弧』を使う。
  • 三点リーダに「…」ではなく「・・・(全角中点)」を使う。
  • 「~だろうか?」「~なのか?」と疑問を呈してからそれに答える。
2.ホームページ作成ソフト

彼が作った情報商材サイト、そしてやらおんを陥れようとした情報商材サイトのヘッダを確認すると次の記述があります

<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 10.0.0.0 for Windows>

これはホームページビルダー10で作成されたサイトだということを意味します。最新のホームページビルダーバージョンは15で、バージョン10が発売したのは2005年です

萌通が過去2007年2008年に作ったサイト、そして2010年やらおんを陥れるために作ったサイトは全て修正パッチを全く当てていないホームページビルダー10で作られていました

もちろんここまでは偶然という可能性もあります

3.ASPを通していない、宣伝広告もされていないサイト

ASPを通していない直接販売型の情報商材サイトというのは、一般的に詐欺の可能性が高いのでほとんど相手にされません。

それだけでなくこのサイト宣伝広告が全く行われていませんでした。通常情報商材はその手のスパムのようなブログで大量に取り上げられることが多いのですが、このサイトのように1件もリンクされないの異常です。どうやって利益を上げるつもりだったのでしょうか?

アフィリエイトブログによって利益を上げる方法を定価98,800円のところを特別価格29,800円で販売するといいながら、1,575円のアフィリエイトノウハウ本のAmazonリンクを貼るのも謎です。まるで商売する気がないというか、Amazonリンクアフィリエイトコードを埋め込むために置いたと解釈した方が自然です

4.検索に出てこないはずのサイト

この情報商材サイトが発覚したきっかけは、次の2chの書き込みでした

351 名前レインボーファミリー(catv?)[sage] 投稿日:2011/01/15(土) 19:12:19.81 ID:MxCsM2Jp0

さて、ここで俺が気付いた情報が一つある。


http://*********.tsuchigumo.com/


このサイトだ。


なんと http://*********.blog39.fc2.com/ のブログに張り付けられているアフィコード 「******-22」と一致


アフィコードなんて検索すればバレると言う事を知らなかったみたいだな。

(以下省略、また一部情報は伏せてあります

ですが、この時点でこのサイトは作りたてでgoogleクロールの対象ではな検索しても出てこなかったです

検索しても出てこないサイトを、彼は一体どこから見つけ出してきたのでしょうか?

5.萌通新聞における古林弘忠の発言との類似性

この発見者の発言は「萌通新聞」における古林弘忠の発言と驚くほど酷似していま

329 名前レインボーファミリー(catv?)[sage] 投稿日:2011/01/15(土) 18:59:56.97 ID:MxCsM2Jp0

 ・まず割れ中の不手際からミクシーがばれた。

 ・つまりミクシーと割れの関連は本来皆無で、ミクシープライベートな物だと推測できる。

 ・ミクシーは晒される事は予定しなかったので意図的な嘘のない信用できる内容が書いてある。

 ・つまりミクシーに張り付けている新しく作ったプロフの内容も信頼できる。

 ・割れ厨は http://*********.blog39.fc2.com/ の管理人である


 ここまでは確定できる情報だ。

 全て割れ厨不手際とあさはかさで偶然に繋がったから。 

355 名前レインボーファミリー(catv?)[sage] 投稿日:2011/01/15(土) 19:14:33.95 ID:MxCsM2Jp0

 皆惑わされるなよ。

 やられやく管理人なのか、やらおん管理人なのかはどうでもいい。


 割れ厨を追求することこそがこの祭りの本旨だ。


 この割れ厨がどこの誰かこそが重要

 やられやくにしろやらおんのどちらかにしろ、割れ厨をつぶせば終わる事だ。


 以上。

まとめるとこうなります

  1. やらおんを陥れようとしたサイト古林弘忠過去作成していたサイトの文体と類似
  2. やらおんを陥れようとしたサイト古林弘忠過去作成していたサイトホームページビルダー10で作成
  3. 全く宣伝リンクもされていない商売実態があるのか極めて疑わしい情報商材サイトである
  4. レインボーファミリー(catv?)は見つけられないはずのサイト検索によって発見した
  5. レインボーファミリー(catv?)の発言は古林弘忠の自サイトにおける文言と酷似している

全ては状況証拠であり、確定的なものはありません。なので彼の言葉を借りておきます

この記事は特定個人を誹謗中傷するために書いたわけではありません。

彼が犯罪行為をしたかどうかは確定していない事をお伝えしておきマス。

オマケ・古林弘忠過去に名乗った名前一覧

- 転職ならen
- 派遣ならen
9ページ中1ページ目を表示(合計:205件)