はてなキーワード: Imageとは
Like any job from where the pathway is often a difficult an individual, a very important attribute you must have got is normally dedication to ensure success. If you agree perhaps nice becoming a specialist photography, nevertheless there are actually other occupations you might equally end up being completely happy throughout, really don't go for digital photography!
Hence, considering it is a career way you will completely ought to carry out, which inturn course may be for you?
Symbol photos
Your portrait digital photographer should possibly come up with to a facility, and have unexpected location career; education beautiful photos, and also headshots designed for celebrities, performers, plus dancers. They should demand exceptional organisational skills, as they simply will probably be carrying out their unique diary-management, and keeping by themselves well apprised belonging to the most recent tendencies the two throughout photography not to mention post-production. Nevertheless zero formal certification are crucial,HP laptop keyboard a new reasonably dangerous regarding workout as well as pro knowledge essential.
Relatives photos
The family unit professional photographer can be almost entirely-studio centered. Usually addressing fractious youngsters, ones own men and women skills are usually like essential mainly because his or her knowledge for a shooter. The family unit photo throw requires diplomacy,uk panasonic charger shop and even the capacity to keep folks concentrated however laid-back. Including the symbol professional photographer, professional requirements are attractive rather then imperative.
Design photos
Removing straight into this attractive team of your business is certainly amazingly tough. The style digital photographer will stipulate a substantial real bodily portfolio of their job, and even a terrific personal internet site to make sure you function as being a gallery. His or her digital adjustment experience of your pictures these throw should really be extraordinary. Different from alot of job areas of specialist taking photographs, the style photographer need to have a realtor, that will negotiate the particular sales agreement with their function for the kids.
Photojournalism
That image journalist is actually any storyteller, displaying the fact, by using shots hardly ever doctored before they will look for their own strategy straight into produce. Professional coaching may just be more crucial right compared to during various other job areas,vw-vbk360 for a degree can have difficulties and additionally theoretical situations to the college for you to take on. AN IMPORTANT move on course can even offer imperative connections.
Wild animals photos
Just as before, that creatures photographer needs any stand-out accounts, including a willing concern in the normal country. Through investment agencies full of photos, your budding creatures photography needs severe numbers of patience, perseverance, along with enable you to read the long video game. In need of wonderful organization and marketing and advertising proficiency, some people will surely have to allure their approach right into great romances using canine parking facilties, making admission to confined areas.
One particular for any adrenaline junkies belonging to the photography planet, professional wedding photographers need nervousness about metal to remain professional in the excellent picture. Addressing that availability of peoples' once-in-a-lifetime reminiscences, its many people,us nikon battery shop as well as crowd-management knowledge should really be exceptional. Ones own croping and editing skills might also want to become top-notch, for a little refined photoshopping can certainly make all the distinction somewhere between a fantastic image, including a appropriate one particular.
Your way during the occupation relies all the about your current disposition like your own skill : if you customize your career further development to be able to which you can be, you will see increasing your current skills really pleasant.
Perhaps you have experienced the fact that shot on the famous Monalisa is found as good as the particular painting like a pro this Da Vinci displayed? And also can you think all the sunset an individual's teenage toddler contained for her smartphone checked greater following a great croping and editing work out of a powerful on the web online studio. You'll find nothing unanticipated for the method snap shots is usually upgraded in making them all check smart. Snapshot Complement is currently easy for numerous business and pro's to make sure you redefine its vision expenditure while using the rapid assist regarding on-line modifying companies.
Encourage to your globe for Photo Develop practice that is certainly switching how a community feels a graphic.
canon camcorder battery,jvc camcorder battery,panasonic camcorder battery
A skill with pics improvement features a broad scope designed for capability individuals. Together with supplemental cures for instance gradation, retouching, airbrushing, image-compositing, color choice & comparison tricks the pic strengthening requires a everyday living with its very own which enables it to often be grouped for a particular image willpower.
Photography Greatly enhance like an art form these days sees application on the majority of areas. Kept sooner for the design and additionally marketing business, it really is now included in like varied area as system and additionally serious establishments to reinforce photo good quality as well as visualization. Lack luster fashion magazines come to life to make sure a tale. Software for instance Photoshop, Illustrator and also Coral formations Sketch, will be popular by means of snapshot authors, around establishments, to aid make creatively gratifying oral presentations. Regardless of cause of that Pics Greatly enhance occupation a approaches is often ascribed to the collage involving results to convey some text or simply to make a terrific family unit getaway break.
JVC BN-VG107U Battery,Panasonic DMW-BMB9E Battery,Panasonic HDC-TM900 Battery
Using a video camera in every single fretting hand in these days, being a compact budget allowed digicam or perhaps smartphone, persons are getting upset extra footage than in the past. Enhance the following, all the providers of your online studio and you simply receive a whole entire non-selected variety of under no circumstances found in advance of coloring strategies, scintillating backdrops plus beautiful qualified superior quality symbolism.
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.
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]
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.
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
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.
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
Digital camera battery is the key for the key, second in importance only lens I’m afraid, and in order to photograph in your heart, a powerful battery to provide power as a follow-up is essential. But even the best battery time, if not properly carry out maintenance and maintenance, will not take long to lose the strong power, so battery maintenance is very important.
Battery Maintenance
For a (section) digital camera battery for the duration of use, not just its quality, power on, in fact, the use of operations with the user also has great relevance. Most photographers are used after every use of the camera on the camera bag inside, or on the cupboard, took out the battery is not kept separately, this approach sounds fine, but not conducive to battery protection.
If more than 15 days do not usually use the camera, it is best to remove the battery from the camera inside the store alone, save the environment, it is best to dry and cool place, and do not store the battery together with metal objects.
According to our survey, you can buy in the market most digital cameras use lithium batteries, it is relatively easy to store. The only caveat is that if not used for long, preferably at intervals of 2 months to activate a battery, which is the charge and discharge time, this can effectively extend battery life.
As for the Ni-MH battery 5, the most annoying is the memory effect, this effect will reduce the overall battery capacity and the use of time, and as time goes on, less and less stored charge, the battery will consume the more you have to faster. Therefore, we should try to run out of power rechargeable, each charge must be sufficient to power the most full.
If you go out, the temporary use of alkaline batteries, we must remember that time out, or when unused for long periods, the battery is easy to Tangshui corrosion circuit, the digital camera battery could not escape the destiny scrapped.
For users of alkaline batteries, already mentioned above, remember the point is finished using the digital camera, remove the battery must remember to avoid the phenomenon of cell sap and damage the machine.
As for the use of rechargeable nickel-metal hydride batteries and lithium users. Battery charge is very particular about, bought back the batteries are generally very low or no power consumption, the first charge must be adequate. Lithium battery charging time is generally longer than 8 hours, while the Ni-MH battery charging time is generally more than 16 hours. To achieve best results, that is, the battery has reached its maximum capacity, generally more than 3 times repeated charge-discharge can. Battery with three times, the best opportunity to find a completely exhausted battery to charge again, try not to charge the battery when there are remnants of repeated charge, or will shorten battery life. After the battery charge is generally more heat, it is best to be cool and then into the camera battery.
But note that lithium batteries because there is no memory effect, so do not discharge, otherwise it will damage the digital camera battery structure, loss of battery life.
In addition, in order to avoid the loss of electricity, the use of nickel-metal hydride battery user, charging is completed, remove the battery, do not let the battery contact with the conductor while the positive and negative poles, for example, do not use your fingers touch both ends of the battery. The use of lithium users should try to keep the camera inside the battery positive and negative battery contacts clean, if necessary, wipe with a dry cloth and then gently wipe the battery.
Also note that, even if the user is to use lithium batteries, digital camera in a long time when not in use, should be completely discharged, remove the battery, stored in a dry, cool environment. The other thing to note is that both the nickel-hydrogen batteries or lithium batteries using the user, it is best not to have a charged battery on the purse, pocket, bag or container with metal objects, in order to prevent short-circuit .
Digital camera battery power Dafa:
1, to avoid frequent use of flash: If you are not professional photographers, then, except in the invisible fingers of the night, the light intensity of an ordinary day for the average digital camera, it is enough.
2, try to avoid unnecessary zoom operation: zoom the camera lens stretched it out a reduction, is power digital camera battery. You can move the pace of hyperactivity, with “artificial zoom” approach instead of “camera zoom” to save power.
3, Do not let the screen has been lit: If the case of small power, can turn off the LCD screen, use the viewfinder to adjust the picture composition, is for a digital camera, LCD should be considered the most power-hungry components, general digital camera, LCD screen after closing time can be used when the original length of about 3 times.
4, less shooting and video: minimize the use of multi-shot feature and video capture video, as the completion of these functions is to use the built-in buffer body to temporarily save the screen shot, the power consumption a lot.
5, should not frequently open, shut down: Many users know that the display stays lit is power, so in order to save electricity use to frequent opening and shutdown. In fact, frequently open, shut down the electricity wasted consumption than bright display even more, especially for larger diameter lenses, but also requires a substantial expansion of the camera, the switch is power. Most digital cameras have automatic shutdown option, this setting should not be set too short, otherwise easily lead to frequent opening and shut down. Of course, frequent artificial opening, shut down and should be avoided.
6, optical image stabilization not normally open: Optical image stabilization is by driving the lens or image sensor pack components, offset by the subject matter images and the relative motion between the sensor achieved. Either way the optical image stabilization, would result in no small power consumption, in particular some models can be anti-shake mode is set to “always on” so that power loss will be caused by the more powerful. To this end, we have a good scene in the light should turn off the optical image stabilization feature, you must use, should also be less “always on” mode.
___________________________________________________
http://www.gobatteryonline.com/canon-powershot-sd600-battery-charger-gose.html
http://www.gobatteryonline.com/canon-powershot-sd630-battery-charger-gose.html
http://www.gobatteryonline.com/canon-nb-7l-digital-camera-battery-gose.html
Undesirable cameras benefits us many 100 % satisfaction, leading to numerous spectacular images, as well as the hot months is operating relating to dependable summertime. This specific classmate through break free will be able to figure out any tons in addition to waterways, downtown along with far-away beautiful gardening, and yet may these pure attractiveness to become a memento playing hit decrease, apart from skin color boil due to the high-end digicam purpose, a great deal more simple could be to evaluation whatever taking pictures competency as well as having photos. The amount, smaller try to make your work latest many of the summer season harvesting powerful see to it, typically the classmate need to next image have a go through, you become this confidently unexpected wonder.
Digital cameras would bring us lots of enjoyment, leaving a myriad of unique images, and summertime is journeying in wonderful summer season. The classmate throughout the getaway can recognize that reams together with estuaries and rivers, metropolitan and also countryside attractive panoramas, yet take place all these charm being a memento opportunity straight down, together with steam as a result of a camcorder operation, a lot more crucial is usually to examine ones own taking functionality and also taking photographs. That period, the little generate your choice have quite a few summer months firing effective be mindful, the particular classmate may as well within the next snapshot have a shot at, you will get the particular total surprising stun.
Household landscapes
By out of doors firing indoors panoramas, basic will need throughout the Windows 7, out-of-doors mild typically currently have more substantial indoors light-weight, now a couple of challenges ought to be sorted out, is the particular coverage time frame, a couple of it truly is in order to avoid a display reflective, when pics of any camera through hands-on management operate, might take number of years coverage setting up, when photographic camera goes so that you can twit style, can easily will likely be ISO level of sensitivity Surroundings bump up, this ISO 2 hundred or perhaps ISO six hundred aiming.
Inside panorama 's best golf shot employing a tripod, in any other case, wants a spot to guide, one example is in opposition to any divider and entry, and even the true reason for executing it is because very long coverage is quite effortless construct any digital camera protein shake, producing photographs regarding fluffy envision. It's best to utilize the shutter launch, or perhaps utilize to get center-weighted avoiding relocate a video camera. Notice: except if absolutely necessary, tend not to available the particular pen, stay clear of a lot more reflective.
Bring that landscape designs from the probability with the photo may well schedule some individuals or even factors, and this also may help the room inside the operation of your view photos. Get a large surfaces area photos, as an example the veranda as well as the roof top, hillside, for example. Typically inside the mid-day is without a doubt the most suitable time frame filming this landscapes. Filming, having a polarizer to adjust a illumination with the stars, produce the particular heavens develop into dreary quite a few, well known from the glowing blue stars the white kind of fog up, as a way to boost the space or room repeatedly.
Several virtually no guidebook vulnerability management of any camera together with location form, as well as the landscape designs way is completely features on the list of manner, you are able to use landscape designs way to adopt shots. Together with handbook vulnerability restrain photographic camera might opt for aperture goal option that will movie, aperture to help acquired far better pick out F8 to help you photograph or maybe F11, this photo will be extra management concentrations senses.
houses
The particular modify on the urban center is without a doubt switching, specifically together with a lot of approach large establishing intended for symbolize, and also this are at recent many portrait digital photography buffs including firing template.
Yet typical photographic camera through simply how much suitable container distortion, hence as a way to make an effort to reduce the photograph of your deformation belonging to the accumulating " up ", thus you ought to pick around substantial thoughts and opinions filming. One example is inside the steps, or perhaps some other might help the beliefs with area. If you fail to find the correct destination for a reside, you can from the again, clear of the particular lead entity to cut back a distortion. Maybe you've employed the greatest wide-angle standard zoom lens. Vivid stars will be able to replace with a developing with the darkish. Having a polarizer to cut back or perhaps wipe out construction with reflective a glass. In addition to, certainly, consume an excellent know with the can make one of a kind imaginative results.
mineral water
Firing apply or maybe a aerosol in waters, incorporate the use of part mild and also backlight try to make waters intended for introducing see through pattern. Several novices all of coveted by a really "splash with photos, in truth, I am able to effortlessly applied for, so the hurrying h2o glance alot more downy, have got a form of passionate blur. Shutter possibly inside 1/10 so that you can 1/6 erinarians regulate might get move cosmetic perception for splash pics.
Local plumber to be able to sunset taking scenario regarding is usually 15-30 moments, next the stars always possess some colouring failed to ends. As a way to raise the graphic with the amount with subject, can easily on the ending with the passage and also uncover several regarding an individual's special world. It is as well the location where the tripod on has to be, commonly programmed coverage is definitely o . k ., yet you should attempt to utilize hands-on visibility, and also the employment of the particular shutter put out restrain taking, respectively for 2, 5, 8, 12 and also of sixteen secs shutter tempo so that you can capture some photo contrast.
Needless to say now and again continue to are able to use ISO200 to help you photograph, yet so that you can be aware of an electronic camcorder with disturbance handle is normally adequate, when pixels will be overweight, or maybe together with ISO100 contrasting by using base style to help motion picture.
In truth firing night time scenarios, at times to be able to as well do not require that filming with step-by-step developing oh, this streets these kinds of, a small amount convert tips plus aiming design and style, might get the result of experiencing a specialized pattern.
_____________________________________________
http://www.gobatteryonline.com/canon-powershot-sd850-is-battery-charger-gose.html
http://www.chargerbatteryshop.co.uk/panasonic-lumix-dmc-tz7-battery-charger-cbbs.html
2010/05/16 23:40
こんにちは。昨日会った者です(これで特定するには情報不足だけど、まあわかるよね)。
で「幅優先探索でやる」という方針自体はいいと思うし、データ構造の作り方も基本は押さえていると思います(斜め読みしかしてませんが)。
ただ、コーディングの発想が「C で作る」という大方針から見て、少しちぐはぐな印象も受けます。データ構造の設計や操作の部分、汎用のライブラリを作ろうというのならあれでもいいと思うのですが、わざわざ汎用のライブラリを使わずに自分で専用の道具を一から作ろうというのなら、問題の性質を考慮して能率良くやることが大事です。
ところが、ここに載っているコードを見ると、見かけが C らしくなく、C++ や Java の劣化版のような印象を受けます。記法(マクロを大文字化しない、ルーチン名を大文字で始めるなど)だけの問題ではなく、データ構造の設計思想が「C で書く」という方針と矛盾しているように見えます。
もう少し具体的に言うと、そもそも C というのは現在 Web 系の世界などで流行のスクリプト言語類とは逆で、汎用言語でありながら低レベル(ハードウェアに近い)処理が簡単にできることに特色があります。つまり、組み込みを想定してプラットフォーム非依存のコードを書いたり、ハードウェアの特性を考慮して低レベルな最適化をやりたいというときに適しています。
そこでこの問題ですが、これを C でやるということは、処理速度や使用メモリ量の最適化が要求される状況、つまり迷路の大きさが途方もなく大きいような状況を想定すべきです。もっと言ってしまえばこの問題、たとえば画像処理などで似たような発想が要求されることがあります。このため、どうすれば時間のかかる処理を切りつめることができるかを考えてやらねばなりません。
このプログラムの場合、時間のかかる処理の代表格である malloc() が大量に使われています。これはいかにもまずいです。このような大量データを処理する場合の定石は、あらかじめ必要なだけメモリを確保しておいて、自分で割り当てることです。具体的には、必要と想定される量だけメモリを配列の形でどかっと確保しておいて、配列のインデックスをポインタ代わりに使います。そして、足りなくなったら倍々のような感じでメモリを realloc() してやればよいのです。
なお、そのような観点で言って、木の各節点の子の数は高々 4 (スタート地点が内点でないとすれば 3)であることを使っていることはよいと思います。ここで「子のリスト」とかを作ってしまっていたらこれはもうアホもいいところですから(容量の節約にすらなりません)。
そんな感じでしょうか。
とにかく、この手の問題は、アルゴリズムさえわかっていれば可読性もヘッタクレもないので、「短く書く」というような表層的なことよりも、何が求められているのかをよく考えて、柔軟に設計思想を考えることが大事だと思います。
2010/05/17 13:54
Oさんですね。専門的なコメントありがとうございます!cで書くと言いつつObjective-Cっぽい発想で書いていました。マクロの命名もその影響で、関数はImage Magickなどに似た命名規則になっている気がします。mallocを使いすぎると時間がかかるということは全然意識していませんでした。今度作るときはメモリ管理を自前で用意する発想を取り入れてみたいです。参考になるコメントありがとうございました!
ゴキブリホイホイを置いた効果を確認するような感じで、一度だけ覗いてみたい。
これは違う。
はてなブックマークのヘルプにあるブックマークレットを使用すると、画像は任意に変更できる。
javascript:(function(){var%20d=(new%20Date);var%20s=document.createElement('script');s.charset='UTF-8';s.src='http://b.hatena.ne.jp/js/Hatena/Bookmark/let.js?'+d.getFullYear()+d.getMonth()+d.getDate();(document.getElementsByTagName('head')[0]||document.body).appendChild(s);})();
これを使用すると、表示されるページ右上に、
新規だと「NO IMAGE」、画像が引用されているページだとその画像が表示される。
そこをクリックすると変更できる。
あれば一度使ってみたい機能。
元増田と同じように無駄かとは思うけど、細々と目に入ったスパムは報告してる。
はてなブックマークの価値が確実に薄くなる、スパム行為には厳正に対処してもらいたいところ。
http://b.hatena.ne.jp/entry/~ のページのコメント欄真下に
「利用規約違反を通知する」リンクがあるので、気付いた人は報告してやってください。
だよねー・・・。
via http://b.hatena.ne.jp/torin/20110614#bookmark-46762850
// ==UserScript== // ==/UserScript== (function(){ if (null != window.frameElement) return false; if (! location.pathname.match(/^\/li\//)) return false; window.addEventListener('DOMContentLoaded', function() { var curator = document.querySelector('div.balloon_box.info_prof div.balloon_img.tltip').getAttribute('title').toLowerCase(); var tweeters = document.querySelectorAll('div.tweet_box div.status div.status_right a.status_name'); var len = tweeters.length; var tweeter = ''; for (var i = 0; i < len; i++) { if(curator != tweeters.item(i).textContent.toLowerCase()) { break; } } if (i >= len) { var data = 'data:image/png;base64,'+ 'iVBORw0KGgoAAAANSUhEUgAAAKQAAAA9CAYAAAAj3MLKAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAC'+ 'vUlEQVR4nO2YS27DMAxEffNerOteq0UDFEgXkinxMyN6FrOKYT0On5Ki18fX56UoLIEDKMp7Yl92'+ 'Xd9/SYWenFPFoCTtNuxFbyJkCjE7p4pByUuJKKHAErJ1UkXJEEJC9k66LNFSSMjeiX9hspTMQuoi'+ 'BHSYvZjoJbEKib4MXVK6oIglScjeKV+Sd1ESsncgi/IsS0L2DmxZuwuTkL1Td1CQlBKyd2oPC5BS'+ 'QvZO/YFOKauFHPF6g148azCHOpZUKWSWjBKTTEiPlN2ElJQkQu5KKSF7Bw/glHLlM0nJn9LS0am+'+ 'WFEX8El5jIzZi185y/Iseh4JKSHdu0DLJCGJFmY97+QZS4SsKIkhBTebQsjTxYQDrCwNzeUVstsl'+ 'fIyQJ0oZJWRUT+x9DedBA+yUjeayslbJ00lKOMBu2WguC2e1NKd0NZ0BDdClaI+QT+tqyo8G6FL0'+ 'jK3655S5p1t2NIC3aJayd4R8Yk+37GiALmWPmFC8jB2ZuNEAUWWjC5/9LCM4I8/OmGF4gdFyMRSe'+ 'yYNkjDg7Y45pP2ixMiRgYkGySUgiEVg42Jgi50rpCi1UpgwMDGzf2pFzpXS1W/ApYRASIWMrIdES'+ 'dRISJWOUkJHvsbyzrYgS8sz/RbYW8skyHi8kWp5uMjIsn5HJLSQakD0SMph5Vioajj0s39JWNnRf'+ 'Ju6T4dkWztQhG4+Z+2R4pmUzdcjGs8Q+GgANxhwJmcg+GgANxhqrjKgOmVi2+EdDoMEYsyIjokMW'+ 'DtcMo0HQYGy5Ew/dIdPFcM3BUOYJYRayi4yvWWYDoeFYYlk4qr9OMr7muRsMDQgtZ+FvRDYh0d1t'+ 'z2Mtv0syZEQJ2U3Gf0JKSruQ1ucRMkrIA+NZ+MrzktEp5FPE3F165POScUHIzlLuLj/j+Ugh0SKl'+ 'C6lwprOMr/nQAMrG0prK+JsfF3m2CCi6mVcAAAAASUVORK5CYII='; var div = document.createElement('div'); var img = document.createElement('img'); img.setAttribute('class', 'za-wa'); img.src = data; function remimg() { var rem = document.querySelector('img.za-wa'); if(rem) { window.setInterval(function() { rem.style.opacity -= 0.05; if (rem.style.opacity == 0) { document.body.removeChild(rem); return; } }, 100); } } function addimg() { var c_img = img.cloneNode(false); c_img.style.position = 'fixed'; c_img.style.top = Math.floor(Math.random() * 100) + '%'; var leftp = Math.floor(Math.random() * 100); if(leftp < 50) { leftp = Math.floor(leftp / 4); } else { leftp = 100 - Math.floor(leftp / 4); } leftp += '%'; var ratio = (120 - Math.floor(Math.random() * 70)); c_img.style.left = leftp; c_img.style.zIndex = -1; c_img.style.opacity = 1; c_img.style.width = (Math.floor(164 * ratio / 100)) + 'px'; c_img.style.height = (Math.floor(61 * ratio / 100)) + 'px'; document.body.appendChild(c_img); var r = Math.floor(Math.random() * 1000) + 1000; window.setTimeout(addimg, r); window.setTimeout(remimg, 2500); } addimg(); } }, false); })();
・コメントが3行なのを一行に戻す。
・コメントがない行を消す
.nocomment{display:none;}
.bookmark-list span.comment { display: inline; }
.bookmark-list img.profile-image { width:18px; height:18px; }
■参考
http://hatena.g.hatena.ne.jp/hatenabookmark/20110405/1301981564
http://hibari.2ch.net/test/read.cgi/esite/1300432939/23-26
23 :名無しさん@お腹いっぱい。:2011/04/06(水) 11:48:38.71
/*サイドバー非表示*/
#container .curvebox-body { padding:20px; }
#sidebar { display:none; }
.bookmark-list li { padding-left: 20px; }
.bookmark-list img.profile-image { width:18px; height:18px; }
.bookmark-list span.comment { display: inline; }
/*ブクマ用フォーム非表示*/
#add-bookmark-container { display:none; }
/*人気コメント非表示*/
#scored-bokkmarks { display:none; }
https://gist.github.com/903132 を組み合わせて
ブクマ追加は[B!]アイコンからにするとこれまでに近い表示に。
26 :名無しさん@お腹いっぱい。:2011/04/06(水) 11:59:27.60
#scored-bookmarks { display:none; }
http://b.hatena.ne.jp/entry/hatena.g.hatena.ne.jp/hatenabookmark/20110405/1301981564
https://addons.mozilla.org/ja/firefox/addon/stylish/
見た目だけ変えてみたぞ。
あんまりいいもんじゃないと思うけど、サイドバーがなくなったらどんな感じになるか体験してみるといいんじゃないかな。
まあどんなもんかやってみて。叩き台、印象の変化の確認。
あとおまけでスター順の部分は消しておいた。#scored-bookmarksってあるだろ、そこじゃ。
@namespace url(http://www.w3.org/1999/xhtml); @-moz-document url-prefix("http://b.hatena.ne.jp/entry/") { #container .curvebox-body { padding-right:20px !important; } #main, #sidebar { width:100% !important; float:none !important; } #sidebar { margin-left:0 !important; } #scored-bookmarks{ display:none !important; } }
http://b.hatena.ne.jp/entry/lifehack2ch.livedoor.biz/archives/51229298.html
うりゃ!
@namespace url(http://www.w3.org/1999/xhtml); @-moz-document url-prefix("http://b.hatena.ne.jp/entry/") { #container .curvebox-body { padding-right:20px !important; } #main, #sidebar { width:100% !important; float:none !important; } #sidebar { margin-left:0 !important; } #scored-bookmarks{ display:none !important; } .comment { display:inline !important; } .bookmark-list .profile-image { width:16px!important; height:16px!important; margin-left:-24px!important; } .user-navigator.user-navigator-large { width:34px!important; height:20px!important; } .bookmark-list li {padding-left:32px!important;} }
最新はこれでいいんですか?
誰も話題にしてないので俺だけかな
reblogcount しか動いてなかったので自力で直そうと頑張ってみたが、
一応動画の再生と画像の拡大2種の3つに関しては動くようにできた
likeは使ってないのでとくに見てませんすみません
if (img[n].style.display != 'none') { click($X('./a', img[n])[0]); return stdin; } else{ click($X('./preceding-sibling::a[1]', img[n])[0]); return stdin; }
および
if (mov[n].style.display != 'none') { click($X('.//a', mov[n])[0]); return stdin; }
これは何をしてるんでしょうか?
残したままだとどうもうまくいかなかったので丸ごと削ってしまった
クリックすべき要素を直接XPath指定、にしたんだけどマズイ?
以下patchです
@include に www.tumblr.com/queue* も勝手に足してしまいました
どなたかまともにしてくださいm(__)m
--- 20101127_play_on_tumblr.user.js +++ 20110402_play_on_tumblr.user.js @@ -6,6 +6,7 @@ // @include http://www.tumblr.com/show/* // @include http://www.tumblr.com/tumblelog/* // @include http://www.tumblr.com/tagged/* +// @include http://www.tumblr.com/queue* // ==/UserScript== (function() { @@ -43,25 +44,15 @@ command: function(stdin) { try { if (!stdin.length) stdin = execute('current-node'); - var img = $X('.//div[starts-with(@id, "highres_photo")]', stdin[0]); + var img = $X('.//img[contains(@id, "thumbnail_photo_")]', stdin[0]); for (var n = 0; n < img.length; n++) { - if (img[n].style.display != 'none') { - click($X('./a', img[n])[0]); - return stdin; + click(img[n]); } - else{ - click($X('./preceding-sibling::a[1]', img[n])[0]); - return stdin; - } - } - var mov = $X('.//div[contains(@id,"watch_") and .//a]', stdin[0]); + var mov = $X('.//img[contains(@id,"video_thumbnail_")]', stdin[0]); for (var n = 0; n < mov.length; n++) { - if (mov[n].style.display != 'none') { - click($X('.//a', mov[n])[0]); - return stdin; + click(mov[n]); } - } - var timg = $X('.//img[contains(@src,"tumblr.com/tumblr_")]|.//img[@class="inline_external_image"]', stdin[0]); + var timg = $X('.//img[contains(@class, "inline_external_image")]', stdin[0]); for (var n = 0; n < timg.length; n++) { click(timg[n]); }
Greased Lightboxとは画像リンクをクリックするとページを移動することなくリンク先の画像を見ることができるという便利なユーザースクリプトである。たぶんGreasemonkey上で動くからGreasedという名前なのだろう。ちなみにOperaでも使える。
でGreased Lightboxが動作すると画像以外は暗くなり、画像が見やすくなるのだが黒いPC画面というのはあまり見たいものではない。画像の後ろに自分の顔が映ると萎える。というわけでこの黒い半透明の背景を白くしようと思った。
とりあえずgreasedlightbox.user.jsの色を表している部分を全部白にしてみたが背景は変わらなかった。どうやら背景は色を指定して表示しているのではなく、画像を直接指定して表示しているらしい。その画像を表す部分を見つけた。
var pngOverlay= "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAABGdBTUEAAK%2FINwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAPSURBVHjaYmJgYDgDEGAAANsAz1TKIeAAAAAASUVORK5CYII%3D')";
これを見るとbase64がカギを握っていそうだ。Wikipediaによると
Base64は、データを64種類の印字可能な英数字のみを用いて、それ以外の文字を扱うことの出来ない通信環境にてマルチバイト文字やバイナリデータを扱うためのエンコード方式である。
ということらしい。意味不明の文字列が半透明の黒い画像を表しているということだろう。ということは半透明の白い画像を表す文字列と置き換えれば背景を変えることができる。というわけでGIMPを使って白い色の透過PNG(1px四方)を作った。 次にこのページ( http://sveinbjorn.org/dataurlmaker )でその画像を文字列(Base64形式)に変えた。そしてgreasedlightbox.user.jsの先程の文字列と置き換えた。
変更前
var pngOverlay= "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAABGdBTUEAAK%2FINwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAPSURBVHjaYmJgYDgDEGAAANsAz1TKIeAAAAAASUVORK5CYII%3D')";
変更後
var pngOverlay= "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sDHg0AJ+6ZOggAAAANSURBVAjXY/j//38kAAlVA1faOaSqAAAAAElFTkSuQmCC')";
こうしてGreased Lightboxの背景が白い半透明になった。かなり薄めだがGreased Lightboxが動作していると分かればいいのでこの程度の濃さで充分かな。
「セックス嫌い」が倍増 若い男性、やはり草食化 - 47NEWS(よんななニュース)
16~19歳の男性の3分の1は、セックスに「関心がない」または「嫌悪している」との調査結果を、厚生労働省研究班が12日公表した。
2年前の調査から倍増した。分担研究者の北村邦夫・日本家族計画協会クリニック所長は「若い男性の草食化を裏付ける結果だ」としている。
セックスレスの夫婦も増え、40%を超えた。調査は、男女の生活と意識について知るのが目的で、2010年9月に実施。
全国の16~49歳の男女2693人が対象で、1540人(57%)から回答を得た。
> 続きを読む URL: http://www.47news.jp/CN/201101/CN2011011201000496.html
お肉で大きくなる
↓
小動物肉・魚肉
↓
↓
鶏肉
↓
↓
豚肉
↓ ←人間はこの辺?
↓
<img src="http://f.hatena.ne.jp/images/fotolife/m/mikipom/20051223/20051223203211.jpg" alt="f:id:mikipom:20051223203211j:image" title="f:id:mikipom:20051223203211j:image">
特に通常状態でカリ首下まで剥けない人(剥ける人は仮性包茎)はなる可能性があるので注意。
<img src="http://f.hatena.ne.jp/images/fotolife/c/cyghen/20101202/20101202014819.jpg" alt="[f:id:cyghen:20101202014819j:image" title="[f:id:cyghen:20101202014819j:image">:medium]
包皮のどこが突っかかるかは人によりけりだけど、高床式倉庫のねずみ返しみたいな感じで、カリ首より上に皮が戻れないとこうなる。
この状態だと一見ズル剥けちんぽに昇格したかと思えるけれど、
実際は包皮による締め付けが強く健康的にあまりいい状態ではない。
特に皮によりペニスが絞めつけられ、亀頭の血行が悪くなっているように見える場合は注意が必要。
(ただし血管が浮き出ているために青っぽく見える状態もあり、赤紫色気味になっていても一概に悪いとは言えない)
しかし、見た目的にもしくは感覚的に何らかの違和感がある場合は、皮を剥くにはまだ時期尚早であり、何度か包皮口を広げる準備をしてから向くのが望ましいと思われる。
質問サイトには仮性包茎(剥けば簡単に剥ける包茎の人)からの「亀頭が敏感すぎて困る」という質問に、
「とにかく何日か生活していれば慣れるから我慢」などあるが、カントン包茎の場合はこの状態で放っておくのは勿論よろしくない。
<img src="http://f.hatena.ne.jp/images/fotolife/c/cyghen/20101202/20101202014818.jpg" alt="[f:id:cyghen:20101202014818j:image" title="[f:id:cyghen:20101202014818j:image">:medium]
色々ググってると、血流が悪くなった状態に対し「最悪壊死の可能性」と書いているサイト(主にクリニック系サイト)があるが、腕や足ですら切断されてから5~6時間、指は切断後10時間以内に再び血を通わせれば壊死は免れる為、たかだかカリ首の血流が悪くなった程度で、亀頭やペニスが壊死することはない。
そのため、自分の手でどうしても戻せないなら泌尿器科を受診することも検討に入れる必要があるが、夜間に緊急に受診するほどの必要性はない。
ただし、その状態で勃起すると、カリ首が余計絞めつけられることになり健康上宜しくない。
特に夜⇒朝は、レム睡眠時に起こる夜間陰茎勃起現象(いわゆる朝勃ち)により本人の意思とは関係なく勃起してしまう。
そのため、この状態で就寝することはさけたほうがいいと思われる。
戻し方だが、一度剥けたということは、必ず元に戻す手段があるということである。
特に自分の手で剥いた場合は、逆の手順をたどれば間違いなく戻せる。
カリ首付近の皮を直接掴んで戻そうとすると痛いのであまりおすすめしない。
(1) 風呂にじっくり浸かり、皮膚を柔らかくする。
10分くらい入浴し、皮膚をふやけさせて包皮口を大きくする。
(2) 腰を大きく引き、できるだけペニス全体が引っ込むようにする。
<img src="http://f.hatena.ne.jp/images/fotolife/c/cyghen/20101202/20101202014817.jpg" alt="[f:id:cyghen:20101202014817j:image" title="[f:id:cyghen:20101202014817j:image">:medium]
(3) 包皮を根本からおしあげる。
<img src="http://f.hatena.ne.jp/images/fotolife/c/cyghen/20101202/20101202014816.jpg" alt="[f:id:cyghen:20101202014816j:image" title="[f:id:cyghen:20101202014816j:image">:medium]
腰をひいていれば、ペニスが引込み、その分皮が多めにあまるはずなので、
引っかかっている包皮口を上から飛び越えるようにして、下の皮を押し上げる。
(4) 押し上げた包皮を内側から引く。
押し上げた下の皮が亀頭の上まで到着したら、そこから内側に残った包皮口を引き上げる。
できるだけ腰を引き、ペニス自体を更に引っ込むようにすると引き上げやすい。
だいたいそんな感じ。
もし誰かの役に立ったら嬉しい。
A disk read error occurred
Press Ctrl+Alt+Del to restart
帰省中1ヶ月ほど放置し、久しぶりに電源を押すとエラーが出るようになったらしい。
変なソフトのインストールやBIOSのアップデート等はしていないとのこと。
当初はF8キーを押して[詳細ブートオプション]を開ければ、すぐに直せると思っていたけど、
ブートから進まないのだからF8キーを押しても同じエラーが出るだけ。
一応、F2キーでBIOS設定画面を開き、[Load Setup Defaults]を試すも症状変わらず。
また、VISTAにはXPの[回復コンソール]がなく、[システム回復オプション]という復旧手段が用意されている。
しかし、このマシンはプリインストール版なので、ディスクからの起動できない。
この場合はF8キーを押して[詳細ブートオプション]を開いて、そこから起動できるようだ。
その後、試行錯誤を繰り返した結果、再セットアップするしかないという結論に至った。
バックアップするにもWindowsが起動しないので、こんな時はいつもLinuxOS Knoppixに頼っている。
公式サイト(http://www.rcis.aist.go.jp/project/knoppix/)ではDVD版とCD版がiso形式で配布されており、DVDなりCDなりに焼けばOSをディスク起動できる優れもの。
さらにCD版をUSBにインストールしたUSB版も作成できるので、非常用に1つ作っておくと便利。
こちらのサイト(USB-Knoppixではじめよう http://yumenohako.jp/cgi-bin/knoppix/wiki.cgi)を参考に簡単に解説。
- 用意するもの
- 作成手順
- 前述したKNOPPIXの公式サイトからCD版のISO形式ファイルをダウンロード(現在はバージョン6.0.1)。
- 「DAEMON Tools」等の仮想ディスク作成ソフトでisoファイルをマウント。
- マウントしたディスクを開き、[KNOPPIX]フォルダを丸ごとUSB直下にコピー。
- さらに「\boot\isolinux」フォルダを開き、中のファイルを全てUSB直下にコピー。
- USB直下にコピーした[isolinux.cfg]というファイルの名前を[syslinux.cfg]に変更。
- こちらのサイト(http://www.kernel.org/pub/linux/utils/boot/syslinux/)から[syslinux.zip]をダウンロード(現在はsyslinux-4.02.zipが最新)。
- zipファイルを解凍して開き、「\win32\syslinux.exe」ファイルをCドライブ直下に移動。
- コマンドプロンプトを開き、[cd c:\]([]内のみ)と入力してEnterキーを押す。
- 次に[dir syslinux.exe]と入力してEnterキーを押す。
- さらに[syslinux.exe -ma USBドライブ名:](例:USBがEドライブなら[syslinux -ma E:]、間違ったドライブを指定すると指定先が壊れるので注意)と入力してEnterキーを押す。
- 完成!
- 使用方法
このマシンは前述の通りプリインストール版なのでインストールディスク(再セットアップディスク)が付属していない。
では、どうやって再セットアップするかというと、
しかし、今回はF11キーを押してもエラーが表示されるのみ。それにわざわざリカバリディスクを作成しているはずもなく手詰まり。
リカバリディスクはこちら(http://nx-media.ssnet.co.jp/)から購入できるけど価格は1万円。自作するしかない。
そもそも本来はリカバリディスクを作成できるのだから、HDD内のどこかにリカバリディスク用のデータが入っているはず。
そこで再びKNOPPIXを起動してみると、[NEC-RESTORE]という名前のリカバリ領域が隠しパーティションとして用意されていた。
こちらのサイト(LaVieレストア顛末記 http://deme.jp/wing/vol019/demeshin/NEC.htm)が大変参考になった。感謝。
- 用意するもの
- 作成手順
- 対象PCに接続されているUSBやLANケーブルなどはマウスとKNOPPIX以外全て外す。
- KNOPPIXで起動し、前述バックアップと同じ方法で[NEC-RESTORE]ドライブを開き、[RESTORE]フォルダを丸ごと外付けHDDにコピー(約10.3GB)。他のは不要。
- 「\RESTORE\TOOLS\IMG\winpe.iso」ファイルをISOイメージでCDに書き込む(Disk1)。
- 「\RESTORE\TOOLS」フォルダを丸ごとCDに書き込む(Disk2)。
- 「\RESTORE\BKVSTIMG.GHO」ファイルをCDに書き込む(Disk3)。
- 「\RESTORE\BKVST0**.GHS」ファイルが001から018まで18個あるので、まずは「BKVST001.GHS」から「BKVST007.GHS」まで約3.75GBをDVDに書き込む(Disk4)。
- 「BKVST008.GHS」から「BKVST014.GHS」まで約3.75GBをDVDに書き込む(Disk5)。
- 「BKVST015.GHS」から「BKVST018.GHS」まで約1.93GBをDVDに書き込む(Disk6)。
- 完成!
- 使用方法
- 対象PCの電源をつけ、Disk1を挿入。そして、電源ボタンを長押しして強制終了。
- 再度、電源をつけ、すぐにF2キーを連打してBIOS設定画面を開き、[Boot]タブから[1st Boot Device]を[CD-ROM]に変更して設定を保存。
- しばらくすると[Window Vista 再セットアップ]が起動するので、[再セットアップ]を選択(他のものを選択しても途中でエラーが出た)。
- その後[Cドライブのみの再セットアップ]など3項目が表示されたので、自分は[ハードディスクを購入時の状態に戻して再セットアップ]を選択。
- あとは「ディスク2を入れてください」等の指示に従って、Diskを入れ替えていけば、そのうちWindowsのセットアップ画面になる。
以上の作業によりHDDが故障していない限りはリカバリディスクを作成して再セットアップ可能。
ただし、当初のエラーの原因がHDDにある可能性もあるので、HDDを交換してからリカバリディスクを使用した方がいいかもしれない。
今後はCrystalDiskInfoなどのソフトを使用してHDD監視をするつもり。
再セットアップが進むと、シマンテック社の「Norton Ghost」というバックアップツールが起動し、1%2%3%...と作業が進行する。
最初にやった時は、50%ほど作業が完了したところでこんなエラーが出現。
Cannot open GHOSTERR.TXT - insert diskette (434)
File Name ? (546)
Output error file to the following location
[OK] [Cancel]
おそらくGHOSTERR.TXTというファイルの出力先が見つからないのだろうとあたりを付けて、
フォーマット済みCD-RWを挿入後、A:をCDドライブのF:に書き換えてOKを押すと
Application Error 19235
Ghost has detected corruption in the image file.
Please perform an integrity check on the image.
if this program persists, please contact Symantec support center
このイメージファイルとは、前述リカバリディスク作成手順6以降の[拡張子GHSのファイル]。GHSはGHOSTの略か?
そこで、Disk4,5,6をNERO9体験版+太陽誘電製のTHE日本製のDVD-Rを使用し、
念のためディスク1枚あたり4GBを超えないようにし、4倍速で焼き直してみたところ、今度は正常に再セットアップが完了。
最初はWindowsに標準装備されている[ディスクへの書き込み]+台湾製の安物DVD-Rを使用したのだが、
これを教訓に次からは絶対にライティングソフトと国産ディスクを使うことにしよう。
CrystalDiskInfoを使用してHDDの状態を調べたところ、案の定「注意」レベルだった。
| 注意項目 | 生の値 |
|---|---|
| 代替処理保留中のセクタ数 | B(11) |
| 回復不可能セクタ数 | 25(37) |
※[生の値]の数値はデフォルトが16進数表記。括弧内は10進数に変換した数値。
やっぱり当初のエラーはHDDの故障とまではいかなくとも寿命が近いということだったのか。
使用時間は17000時間。HDDの交換を検討した方が良いけど、一体型の交換は難しいような。
まずはWestern Digital製HDDだからData Lifeguard Diagnosticsでゼロフィルをやってみる予定。
エラーチェックで完全に逝くかもしれないけど、バックアップもしてるし、リカバリディスクもあるし。
あと、VistaのバーションはSP1だと思っていたけど、まだ更新していなかった模様。
そこで更新プログラムをインストールしてみると途中で止まってしまい、修復スタートアップする羽目に。
Vista SP1の導入に失敗し、修復スタートアップを行ったものの、12時間経っても終わらず。
そこでいっそのことHDDのデータを完全に消去して、再セットアップすることにした(7時間ほどかかる)。
方法としては先日のとおり、Western Digital製HDDの診断ツール「Data Lifeguard Diagnostics」を使用する。
このツールはFDD版とCD版しかないので、いつものようにUSB版の作成を試みる。以下作り方と使用方法。
- 用意するもの
- 作成手順
- こちら(http://files.extremeoverclocking.com/file.php?f=196)から[Windows 98 System Files]をダウンロード後、解凍しておく。
- こちら(http://files.extremeoverclocking.com/file.php?f=197)から[HP USB Disk Storage Format Tool-v2.1.8]をダウンロード後、インストール。
- [HP USB Disk Storage Format Tool]を起動し、[Device]で用意したUSBを選択。[Create a DOS startup disk]にチェックを付け、[using DOS system files located at:]のところで、先ほど解凍したフォルダ(ファイル名はwin98boot)を指定する。
- こちら(http://support.wdc.com/product/download.asp?groupid=608&sid=30&lang=jp)から[Data Lifeguard Diagnostic for DOS (CD)]のiso形式をダウンロード。
- USB内に[DLGDIAG]という名前のフォルダを作成。
- ダウンロードしたisoファイルを仮想ディスク作成ソフトでマウント。
- マウント起動したディスク内の[DLGDIAG5.EXE][DLGDIAG.txt][DLGLICE.TXT]をUSB内の[DLGDIAG]フォルダにコピー。
- 完成!
- 使用方法
- PCにUSBを挿して、起動直後にF2を連打。BIOS設定画面から[boot]→[Hard Disk Boot Priority]を選択し、USB-HDDを一番上にして設定保存。
- DOSが起動するので、[cd dlgdiag]と入力してEnter。その後、[dlgdiag5]と入力してEnter。
- [Data Lifeguard Diagnostic]が起動するので、ライセンス画面でESCキーを押す。そして承諾。
- メイン画面が開いたら、[Extended Test]を選択して、まずはHDDのチェック(結果は余裕のFail)。所要時間は容量500GBで1時間40分。
- 続いて[Write Zeros To Drive]を選択して、HDD内の全データを削除(0で埋める)。これは2時間。
- もう一度[Extended Test]を実行(1時間40分)。この時点でNO ERRORS FOUND(エラーなし)。
- BIOS設定画面を開き、デフォルト設定をロードして、あとは前述どおりに再セットアップ(1時間30分)。
再セットアップ後、CrystalDiskInfoを実行すると見事に「正常」レベルに回復。
前回注意項目だった「代替処理保留中のセクタ」と「回復不可能セクタ数」の生の値は0に変化。
なぜか使用時間が14000時間に減少していたものの、とりあえずはHDDの故障の心配はしなくていいかな。
ちなみにSP1の導入は成功。今後はCrystalDiskInfoを常駐させ、監視を続けることにする。
あれから10か月後、悪夢のブルースクリーンが降臨したので、またクリーンインストールを行った。
CrystalDiskInfoを使用してHDDの状態を調べたところ、「注意」レベルに逆戻り。
| 注意項目 | 生の値 |
|---|---|
| 代替処理保留中のセクタ数 | 2D9(729) |
| 回復不可能セクタ数 | 70(112) |
※[生の値]の数値はデフォルトが16進数表記。括弧内は10進数に変換した数値。
以前のエラー時よりさらに状況が悪化しており、HDDの寿命がかなり迫っている模様。
いつ突然死を迎えてもおかしくないので、重要なデータをバックアップのうえHDDの交換を予定。
ブログがないので、増田にログ残し。ツッコミや質問はid:frsattiまで。
さてどこから消すか
http://blog.livedoor.jp/insidears/archives/52358634.html
とにかく悪いことした人は全員逮捕
これぐらいやらないと駄目
世の中よならない
全員逮捕
ようするに
もっと規制と罰を強めようって話
今日のまとめ
ユーザーに対して怒ることじゃない
規制と罰則を与えるように働き掛けること
国もそれに応えること
これ以外に道はないからね
以上 終わり
そうですか。
初音ミクで有名な絵師「ゆのみP」が∀ガンダムや有料素材サイトのサンプルを無断使用・トレス発覚 【堕ちた天使】
http://blog.livedoor.jp/insidears/archives/52349862.html
これ、無断転載だよね。
お金払ってるの?
検証用だから著作権の引用の範囲内?でもアフィリ貼ってるし、商用利用に該当するんじゃないかな?
とりあえず下記に問い合わせてみました。
http://www.corbisimages.com/CustomerService/CustomerService.aspx
sozaijiten
https://www.sozaijiten.com/form/ex_license.asp
https://imagenavi.jp/form/support.asp
desige exchange
http://www.dex.ne.jp/frame.cgi?rtn=1&main=https://ssl.dex.ne.jp/form/
僕もこんな記事を書いた以上
ケジメを取ります。
ぜひ、ケジメをつけてください。
http://d.hatena.ne.jp/keyword/%C2%E7%C0%EE%CE%B4%CB%A1?kid=296274
* e-231kon 2010/05/29 19:48 重複しています。
* herecy8 2010/05/31 02:48 既にhttp://d.hatena.ne.jp/keyword/%C2%E7%C0%EE %CE%B4%CB%A1?kid=187790が登録されており、同じ項目が重複しています。後から登録された方を削除します。
* hikarinobosatu 2010/06/07 06:36 最新の情報です。
* hikarinobosatu 2010/06/07 06:37 最新の情報です。
* viron 2010/06/07 14:05 重複項目を理由に再三削除されているが、削除理由とは全く関係ない説明で復帰されている。
* hikarinobosatu 2010/06/08 08:01 後から登録したものの方が、より詳しいから。
* e-231kon 2010/06/08 19:05 重複。
* kobomaru 2010/06/09 10:58 何故、そんなにムキになって削除したがるのでしょうか?
* viron 2010/06/09 11:12 同一項目を重複登録する理由がない。
* kobomaru 2010/06/09 14:41 重複していても、より詳しいから。
* 大川隆法@20100609144107 (2010/06/09 14:41:07)kobomarukobomaru change category to 一般 CommentsAdd Star
* 大川隆法@20100609111221 (2010/06/09 11:12:21)vironviron change category to 削除予定キーワード CommentsAdd Star
* 大川隆法@20100609105801 (2010/06/09 10:58:01)kobomarukobomaru change category to 一般 CommentsAdd Star
* 大川隆法@20100608190535 (2010/06/08 19:05:35)e-231kone-231kon change category to 削除予定キーワード CommentsAdd Star
* 大川隆法@20100608080120 (2010/06/08 08:01:20)hikarinobosatuhikarinobosatu change category to 一般 CommentsAdd Star
* 大川隆法@20100607140530 (2010/06/07 14:05:30)vironviron change category to 削除予定キーワード CommentsAdd Star
* 大川隆法@20100607063754 (2010/06/07 06:37:54)hikarinobosatuhikarinobosatu change category to 一般 CommentsAdd Star
* 大川隆法@20100531024851 (2010/05/31 02:48:51)herecy8herecy8 change category to 削除予定キーワード CommentsAdd Star
* 大川隆法@20100531024209 (2010/05/31 02:42:09)kobomarukobomaru change category to 一般 CommentsAdd Star
* 大川隆法@20100529194812 (2010/05/29 19:48:12)e-231kone-231kon change category to 削除予定キーワード CommentsAdd Star
* 大川隆法@20100529090856 (2010/05/29 09:08:56)hikarinobosatuhikarinobosatu upload image CommentsAdd Star
* 大川隆法@20100529084943 (2010/05/29 08:49:43)hikarinobosatuhikarinobosatu upload image CommentsAdd Star
* 大川隆法@20100529084826 (2010/05/29 08:48:26)hikarinobosatuhikarinobosatu editCommentsAdd Star
* 大川隆法@20100529084759 (2010/05/29 08:47:59)hikarinobosatuhikarinobosatu editCommentsAdd Star
* 大川隆法@20100529084409 (2010/05/29 08:44:09)hikarinobosatuhikarinobosatu appendCommentsAdd Star
大川隆法総裁 http://d.hatena.ne.jp/keyword/%C2%E7%C0%EE%CE%B4%CB%A1%C1%ED%BA%DB
大川隆法総裁先生 http://d.hatena.ne.jp/keyword/%C2%E7%C0%EE%CE%B4%CB%A1%C1%ED%BA%DB%C0%E8%C0%B8
エル・カンターレ http://d.hatena.ne.jp/keyword/%A5%A8%A5%EB%A1%A6%A5%AB%A5%F3%A5%BF%A1%BC%A5%EC
主エル・カンターレ http://d.hatena.ne.jp/keyword/%BC%E7%A5%A8%A5%EB%A1%A6%A5%AB%A5%F3%A5%BF%A1%BC%A5%EC
とか、無意味に登録を増やすことに邁進しています。
法身 http://d.hatena.ne.jp/keyword/%CB%A1%BF%C8
これも重複登録かな。
k:id:hikarinobosatuとk:id:kobomaruが編集。両IDとも前川謙一であり、当然ながら幸福の科学の信者。
http://d.hatena.ne.jp/keyword/%C1%B0%C0%EE%B8%AC%B0%EC?kid=296772
* 前川謙一@20100607063128 (2010/06/07 06:31:28)hikarinobosatuhikarinobosatu 1c1 CommentsAdd Star * 前川謙一@20100607062342 (2010/06/07 06:23:42)kobomarukobomaru 0a1 upload image CommentsAdd Star * 前川謙一@20100607062233 (2010/06/07 06:22:33)kobomarukobomaru appendCommentsAdd Starhttp://d.hatena.ne.jp/keyword/%C1%B0%C0%EE%B8%AC%B0%EC?kid=296772&mode=edit
http://www.google.co.jp/search?hl=ja&source=hp&q=%E5%89%8D%E5%B7%9D%E8%AC%99%E4%B8%80&btnG=Google+%E6%A4%9C%E7%B4%A2&aq=f&aqi=g1&aql=&oq=&gs_rfai=
「陸上自衛隊准陸尉(51) 女装してケーキ店で注文しながらワンピースまくりあげ下半身を露出」
http://workingnews.blog117.fc2.com/blog-entry-2854.html
ひどすぎると思ったらこんなのはかわいいほうだった。
http://society6.2ch.net/test/read.cgi/gline/1274021896/
番付を以下に抜粋。
10 :水先案名無い人:2010/05/17(月) 21:49:26 ID:aABkZMQl0
【横綱】
・女子高生の上履きを盗みコピーしたものを見て楽しみ、逮捕→大関昇進後、今度は女子中学生の上履きを盗みコンビニでコピーし、再逮捕。ついに念願の横綱に昇進を遂げる
【大関】
・男子中学生に「マスターベーションだ。お前らも見せろ。100円やる」とオナニーを見せ付けた83歳の「マスターじじい」
・19~71歳女性に一瞬で精液をかける18歳少年「早撃ちマック」
・「セーラームーン」のコスプレで女性に近づき網タイツ越しに下半身を露出
・女性用下着を頭にかぶり「パンツ交換して」、女子中学生に下半身露出
・釣り竿を改造して、500枚もの女性下着を引っぱり上げてきた釣りキチ助平
【関脇】
・女性宅に侵入し何も盗らずPCのスクリーンセーバーをエロ画像に変えた男
・男児4人をトイレに連れ込み、自慰行為見せた奄美大島の男性教諭
・自分に浣腸をしてPAの排水溝に排泄を3年間続けてた北海道の男性教諭
・女子中学生がランニング中、男が「パワーつけろよ」と言って下半身を露出して走ってきた
・三角フラスコとタッパーを持ち歩き、女子高生にチラシを配った男「おしっこ高価買い取り中」
・下半身に直接黒いスプレーをトランクスの形に吹き付け街中を歩き回っていた男
・約1400枚の下着を窃盗→お気に入りを○×で区別。鍋敷きなどにも使用
・自宅ベランダで全裸になって腰掛けのような台に乗りライトアップ[↑]
・オークションで購入した女性の衣服を着て撮影、出品者に「おはよう かっちゃんです」と送信。通称かっちゃん(45)[NEW!!]
11 :水先案名無い人:2010/05/17(月) 21:50:55 ID:aABkZMQl0
【小結】
・「大便もらしたので、拭くの手伝って」女子学生を車に連れ込み性器見せる
・Tシャツをまくり上げ、下に着用した女性用下着を小6女児に見せつけ
・「服を脱いで襲った方が興奮した」目出し帽をかぶり裸の男、40代女性を襲う
・船橋市内の小学校に侵入し、教室を徘徊して男児の体操着のにおいを嗅ぎまわった男
・徒歩で通行中の女子中学生2名に対し男が「かゆいからけつの穴かいてくれ」と声を掛ける男
・電車車両内にミールワームの幼虫数千匹をばら撒く、「女の子が虫をぶちっと踏み潰す姿に興奮」
・女子高生に道を尋ねて教えてもらったお礼に下半身露出 食品製造販売業男
・女性用下着売り場の試着室で下着を4枚ズボンの下に着込み、万引きの男
・車から降りて「カルピス飲むか」「見せたろ。ソーセージ見せたろ。」と巧みな話術を駆使し、幼女に性器を露出
・「みんなもこんなの着る?」と女子高生に声をかける小太りツインテールのスク水男
・ふんどし姿を男子中学生に見せて『変態が来た』と思わせた男性職員懲戒[↓]
・「中学生なら男子でも女子でも…」下半身露出60~80回の学習塾塾経営の男(27)。前科あり。[NEW!!]
・「おれは足フェチだ」などと言い女子中学生の左足ふくらはぎを触った公立高校1年の男子生徒(15)[NEW!!]
【前頭】
・セミロングのカツラ・赤いワンピ・ロングコート、女装して陰部を露出。「びっくりする姿見たかった」
・「つばの曲がり具合に興味があった」ので野球帽398個、他グローブやジャージー、サッカーシューズ、テニスボール310点を盗んだ男2人 [NEW!!]
・「水を出しっぱなしにすると興奮した」ので蛇口を盗んだ男
12 :水先案名無い人:2010/05/17(月) 21:52:21 ID:aABkZMQl0
【十両】
・服の下に女子児童用体操服を着用し、小学校に侵入。「体操着を着て小学校へ行くと快感が得られる。」
・下着窃盗。「とても良い体形を想像します。次は上下セットで干しておいてください」とメモを残すトラック運転手。
・ワンピースで女装して更衣室に侵入、両手に靴下をはめて立っていた所を逮捕(再犯)
・極細水着を着て海辺ではしゃぐ男 画像:ttp://image.blog.livedoor.jp/dqnplus/imgs/2/2/221d26ce.jpg
http://d.hatena.ne.jp/europe_furugi/
またですか。http://anond.hatelabo.jp/20100126080904も含めて、何度目でしょうか。
<p><a href="http://f.hatena.ne.jp/europe_furugi/20100129020815" class="hatena-fotolife" target="_blank"><img src="http://f.hatena.ne.jp/images/fotolife/e/europe_furugi/20100129/20100129020815.jpg" alt="f:id:europe_furugi:20100129020815j:image" title="f:id:europe_furugi:20100129020815j:image" class="hatena-fotolife"></a> <a href="http://f.hatena.ne.jp/europe_furugi/20100129020816" class="hatena-fotolife" target="_blank"><img src="http://f.hatena.ne.jp/images/fotolife/e/europe_furugi/20100129/20100129020816.jpg" alt="f:id:europe_furugi:20100129020816j:image" title="f:id:europe_furugi:20100129020816j:image" class="hatena-fotolife"></a></p> <p><a href="http://f.hatena.ne.jp/europe_furugi/20100129020817" class="hatena-fotolife" target="_blank"><img src="http://f.hatena.ne.jp/images/fotolife/e/europe_furugi/20100129/20100129020817.jpg" alt="f:id:europe_furugi:20100129020817j:image" title="f:id:europe_furugi:20100129020817j:image" class="hatena-fotolife"></a> <a href="http://f.hatena.ne.jp/retroeuro/20100120225751" class="hatena-fotolife" target="_blank"><img src="http://f.hatena.ne.jp/images/fotolife/r/retroeuro/20100120/20100120225751.jpg" alt="f:id:retroeuro:20100120225751j:image" title="f:id:retroeuro:20100120225751j:image" class="hatena-fotolife"></a> </p> <p><a href="http://f.hatena.ne.jp/retroeuro/20100120225752" class="hatena-fotolife" target="_blank"><img src="http://f.hatena.ne.jp/images/fotolife/r/retroeuro/20100120/20100120225752.jpg" alt="f:id:retroeuro:20100120225752j:image" title="f:id:retroeuro:20100120225752j:image" class="hatena-fotolife"></a> <a href="http://f.hatena.ne.jp/retroeuro/20100120225753" class="hatena-fotolife" target="_blank"><img src="http://f.hatena.ne.jp/images/fotolife/r/retroeuro/20100120/20100120225753.jpg" alt="f:id:retroeuro:20100120225753j:image" title="f:id:retroeuro:20100120225753j:image" class="hatena-fotolife"></a></p>
id:retroeuroのフォトライフ(http://f.hatena.ne.jp/retroeuro/)の画像を転用しています。そちらも運用停止にしておいたほうがよいかもしれません。
# globpointglobpoint 2009/12/07 11:27 「平野楢蔵」の誤記
* 平野楢造@20091207112739 (2009/12/07 11:27:39)globpointglobpoint change category to 削除予定キーワード CommentsAdd Star
* 平野楢造@20091130180843 (2009/11/30 18:08:43)konoikekonoike 1c1 CommentsAdd Star
* 平野楢造@20091125034838 (2009/11/25 03:48:38)konoikekonoike upload image CommentsAdd Star
* 平野楢造@20091108174148 (2009/11/08 17:41:48)konoikekonoike appendCommentsAdd Star
http://d.hatena.ne.jp/keyword/%ca%bf%cc%ee%c6%ea%c2%a4?kid=279894&mode=edit
誤字を平然とキーワード登録するのはid:konoike氏の特徴(http://anond.hatelabo.jp/20091111084235)。
モデリングの参考にフィギュアの画像が欲しいときってあるじゃないですか。
最近のアマゾンは、クリックで拡大する方法で、簡単には最大解像度の画像がDLできない場合が多いです。
そういう時に簡単に最大解像度で画像保存する方法を見つけました。
例えば
http://www.amazon.co.jp/gp/product/images/B00284C90K/ref=dp_image_z_0?ie=UTF8&n=13299531&s=toys
の画像を保存したいとき、
まず、ASINまたはISBNの番号を記録しておいて(この場合は B00284C90K)
http://parasiteeve2.blog65.fc2.com/blog-entry-372.html
を開きます。
「INPUT ASIN」欄にASIN・ISBN番号(この場合は B00284C90K )を入力します。
「IMAGE SIZE」を「LARGE」にします。
「SHOW ALL PICTURES」ボタンを押します。
すると、同ページの上のほうに、そのASINの画像一覧のサムネイルが表示されます。
10/18 改訂
なお、取得した画像の著作権はグーグル他各社が保持しています。
ご利用は計画的に私的範囲でどうぞご利用ください。
#!/usr/bin/perl use strict; use warnings; use Getopt::Long; use LWP::UserAgent; use GD; my $cmdline = join(" ", $0, @ARGV); my $usage = "usage: $0 -sx=116423 -sy=51603 -ex=116426 -ey=51605 -dx=4 -dy=3 -z=17 -size=300 -get=30 -dir=cache -output=output.jpg -nodebug"; my ($sx, $sy) = (0, 0); my ($ex, $ey) = (0, 0); my ($dx, $dy) = (4, 3); my $z = 17; my $size = 300; my $get = 30; my $dir = "cache"; my $output = "output.jpg"; my $debug = 0; GetOptions("sx=i" => \$sx, "sy=i" => \$sy, "ex=i" => \$ex, "ey=i" => \$ey, "dx=i" => \$dx, "dy=i" => \$dy, "z=i" => \$z, "size=i" => \$size, "get=i" => $get, "dir=s" => \$dir, "output=s" => \$output, "debug!" => \$debug) or die "$usage\nDied"; if ($ex == 0) { $ex = $sx + $dx; } else { $ex++; $dx = $ex - $sx; } if ($ey == 0) { $ey = $sy + $dy; } else { $ey++; $dy = $ey - $sy; } $sx>0 and $dx>0 and $sy>0 and $dy>0 and $z>0 and $dir and $output or die "$usage\nBad arguments"; $dx*$dy > $size and die "Getting too large."; $debug and print "debug: mkdir $dir\n"; mkdir $dir; -d $dir or die "can't make dir $dir: $!"; my $base = sprintf("http://khm%d.google.co.jp/kh/v=46&z=%d", int(rand(4)), $z); my $ua = LWP::UserAgent->new; printf "now get %d images...\n", $dx*$dy; for (my $x=$sx; $x < $ex; $x++) { for (my $y=$sy; $y < $ey; $y++) { my $file = sprintf("%s/%02dz%06dx%06d.jpg", $dir, $z, $x, $y); $debug and print "debug: check of $file\n"; -s $file and next; --$get < 0 and last; my $req = HTTP::Request->new(GET=>+"$base&x=$x&y=$y"); $debug and print "debug: fetch from ".$req->uri."\n"; my $res = $ua->request($req); unless ($res->is_success) { print "fail fetch from $file: ", $res->status_line, "\n"; next; } if (open(my $fh, ">", $file)) { $debug and print "debug: write of $file\n"; binmode $fh; print $fh $res->content; close $fh; } else { print "fail open in $file: $!\n"; } } } $get < 0 and print "reach the getting limit, skip after all.\n"; printf "creating %dX%d image...\n", 256*$dx, 256*$dy; my $image = new GD::Image(256*$dx, 256*$dy); for (my $x=$sx; $x < $ex; $x++) { for (my $y=$sy; $y < $ey; $y++) { my $file = sprintf("%s/%02dz%06dx%06d.jpg", $dir, $z, $x, $y); $debug and print "debug: check of $file\n"; -s $file or next; $debug and print "debug: read of $file\n"; my $part = GD::Image->newFromJpeg($file); $debug and print "debug: image copy\n"; $image->copy($part, 256*($x-$sx), 256*($y-$sy), 0, 0, 256, 256); } } #$image->string(gdSmallFont, 0, 0, $cmdline, $image->colorAllocate(255, 255, 255)); open(my $fh, ">", $output) or die "fail open $output: $!"; $debug and print "debug: write of $output\n"; binmode $fh; print $fh $image->jpeg(); close $fh;
例えば秋葉原とか
perl gmwall.pl -sx=116423 -sy=51603 -ex=116427 -ey=51606
駅だけとか
perl gmwall.pl -sx=465701 -sy=206420 -ex=465705 -ey=206423 -z=19
使う数値はfirebugなどで拾ってください。
スーパーpre記法がアレなまま直ってないわけで。
姉妹サイト(?)ができていたわけで。
なにやらcookieを食べようとした形跡があるわけで。
#!/usr/local/bin/perl -w use strict; use warnings; use Web::Scraper; use URI; use Perl6::Say; use MIME::Type; use HTTP::Cookies; use LWP::UserAgent; use Path::Class; use Data::Dumper;sub p { print Data::Dumper::Dumper(@_) }; # cookie_jar~A~T~_~H~P #my $cookie_file = "lwpcookies.txt"; #my $cookie_jar = HTTP::Cookies->new(file => $cookie_file, autosave => 1, ignore_discard => 1); my $page = shift || 10000; unless ( $page =~ /^\d+$/ ) { die 'perl 4u.pl [page as int]'; } my @files = dir('./img/')->children; my $cache = {}; my $end_file = { mtime => 0 , file => '' }; for my $file (@files) { if ( $file->basename =~ /^(.+)\.(.+)$/ ) { $cache->{$1} = $2; } if ( $end_file->{mtime} < $file->stat->mtime ) { $end_file->{mtime} = $file->stat->mtime; $end_file->{file} = $file; } } for my $i (1..$page) { my $url = sprintf 'http://nijigen.straightline.jp/?page=%s' , $i; # if ($i == 1){ # $url = sprintf 'http://4u.straightline.jp/nude?filter=off'; # my $ua = LWP::UserAgent->new; # $ua->cookie_jar($cookie_jar); # my $request = HTTP::Request->new(GET => $url); # my $res = $ua->request($request); # } say "request url>".$url; my $scrp = scraper { process '/html/body/div/div[2]/div[2]/div/div/div/div/div/a', 'link[]' => '@href'; process '/html/body/div/div[2]/div[2]/div/div/div/div[2]/div/div/p[2]/span/a', 'img[]' => '@href'; result 'link','img'; }; # $scrp->user_agent->cookie_jar($cookie_jar); my $tmp = $scrp->scrape(URI->new($url)); my $links = $tmp->{link}; my $imgs = $tmp->{img}; if ( ref $links ne 'ARRAY' ) { say "end program."; exit; } for my $link (@$links) { $link =~ m{/([^/]+)$}; my $sesid = $1; if ( $end_file->{file} &amp;&amp; $end_file->{file}->basename =~ /^$sesid\./ ) { say "file exsits end program >".$sesid; # exit; next; } if ( $cache->{$sesid} ) { say "file exsits next >".$sesid; next; } sleep 5; my $image_url = shift @$imgs || next; $image_url =~ s/^http:\/\/nijigen.straightline.jp\/user\/manage\/do_register\?src=//; $image_url =~ s/%3A/:/ig; $image_url =~ s/%2F/\//ig; say "get image url >".$image_url; my $ua = LWP::UserAgent->new; my $req = HTTP::Request->new(GET => $image_url); my $res = $ua->request($req); my $content = $res->content; my $content_type = $res->headers->header('content-type'); my $ext = MIME::Type->new( type => $content_type )->subType || 'bin'; if ( $ext eq 'plain' ) { say "not found image >".$image_url; # ~\家~A~T~C~O~A~L~H~A~H~A~A~_~B~I4U~A奴~B~R~]~X~A~Y~B~K~@~B my $image_url = 'http://nijigen.straightline.jp/html/found/static/upload/l/l_'.$sesid.'.jpg'; say "get 4u image url >".$image_url; my $req = HTTP::Request->new(GET => $image_url); my $res = $ua->request($req); $content = $res->content; $ext = 'jpeg'; } my $write_path = './img/'.$sesid.'.'.$ext; open my $FH, '>', $write_path; binmode $FH; print $FH $content; close $FH; say "write image >".$write_path; } }