「Set」を含む日記 RSS

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

2012-02-13

EXCEL VBA 条件付き書式 FormatCondition(1).Formula1 に代入できぬ

MsgBox Range("A1").FormatCondition(1).Formula1

と、式の内容を読む分には問題ないんだがな。



代入しようとすると

「Public Let 'Formula1' は型 'FormatCondition' に見つかりませんでした。'CallType.Set' と共に 'CallByName' 関数を使用してください。」

となる。



Modifyメソッドで設定せよ。とある。組み合わせで設定する必要があるわけだ。

http://msdn.microsoft.com/ja-jp/library/microsoft.office.interop.excel.formatcondition.modify.aspx



ついでに

http://www.moug.net/tech/exvba/0110009.html

2012-02-02

The way to Take the place of a fabulous Personal computer Computer keyboard

Changing a new laptop computer keyboard will be difficult regarding someone considering that it is without a doubt defined to become tech function though really isn't. Just by subsequent a number of easy steps one could replace the actual laptop key pad comfortably.

1st step is actually to ensure that you will have powered down the vitality and taken off the particular battery. Equally you might want to unplug this from switchboard to prevent just about any hassle. An individual will be through with the software, you ought to start all the laptop computer along with remove lots of the screws behind that. Even if various mobile computer models possess different screws but it is simple to choose the anchoring screws in order to them all.

Typically, all the keyboards are generally devote a plastic material sheet which happens to be screwed throughout the equipment. For that reason right here anyone must also get rid of the screws in an effort to get rid of those plastic-type sheets. Any time one can find absolutely no plastic-type material sheets after that probably right now there may be some clamps which is often deleted readily.

An individual will be through with the actual taking away the plastic material sheets right now there may be some cosmetic outstanding on the computer keys. All of these plastic material bits has to be removed cautious and it could be completed any help in various cosmetic choose and tooth find. It is actually highly recommended will not use almost any needle which is able to really problems another aspects of machines.

At this time you might be through with just about all screws inside the back, you need to take away the screws towards the top because in some laptop or pc units often times there are anchoring screws beginning which should end up being deleted before you really replace all the computer keys. When most of anchoring screws really are eliminated, you will see the laptop computer keyboard is something related to any thin knowledge lead that is straightaway that come with the actual motherboard best in the bottoom. To eliminate any laptop correctly, feel free to use the equivalent enamel pick to enable you to raise the plastic-type connectors which you'll find storing with this knowledge lead. You will see of the fact that entirely computer keyboard can be free professionals who log in very easily lift that up.

You will have successfully carried out the most important part and it's the moment you are able to replace that classic laptop or pc computer keyboard while using unique 1. Very first thing earliest, take the popular computer hp laptop keyboard out from the plastic page and remedy a repair anywhere between that cosmetic fittings that are existing for the chief panel. You will need to ensure that your comprehensive brand new keyboard set is set. These days include the info line very carefully. You need to use similar choose anyone used formerly to try the equivalent. Be sure that the entire openings as well as clamps are straight aligned along with the mess space as a result for all those securing that screws repeatedly, it is possible to finished the software as necessary. Lastly refasten your current laptop computer keyboard within the top and also if you wish to remove any specific cosmetic articles replicate the equivalent option a person achieved it up to now.

Now restricted most of the screws from again and get that laptop's solar battery funding the area to enable you to observe regardless if your own laptop have been replaced instead systematically or even in no way. An individual will be through with tensing all the screws, start up your current laptop considering the fact that a person hear numerous beeps in the beginning then very likely you might want to eradicate all of the procedures once again. See a BIOS through important F2 or DEL button to be sure of whether or not keyboard is actually tracked down to be had and not even.

Tags:

HP DV7-2020x Keyboard

HP DV7-2022tx Keyboard

HP DV7-2040us Keyboard

HP DV7-2043cl Keyboard

HP DV7-2100 Keyboard

HP DV7-2103tx Keyboard

HP DV7-2104tx Keyboard

HP DV7-2105tx Keyboard

HP DV7-2108tx Keyboard

2012-01-09

Dslr camera Guideline -- The right way to Seek advise from Your own Dslr high-end camera

When considering imagine consuming, getting easy methods to make use of the digital camera are probably the fundamental assignments on the establish. The examples below digital slr high-end camera lead provides basic fundamentals about options to partner with an individual's camera and as a consequence assist you greater establish the standard terminology mandatory.

Whereby Consumers Start out... A Security dslr camera

Even if there are a not difficult motor vehicle photo video camera intended to any ordinary snapshot taker planning to point and also return or simply warning buzzers together with whistle enhanced Digital slr, the most crucial starting point is to use what you consist of. If you have had for no reason undoubtedly,Panasonic HDC-TM900 Charge do not forget to evaluate any hands-on plus try out to achieve the just about all working experience you could as a result. A good number of manuals can verify all to consider about precisely how towards employ that video camera. Keep in mind, it should receive baffling you will be know simple digital camera words.

The most crucial several stipulations to consider together with taking photographs might be:

1. Shutter Full speed

step 2. Aperture

3. ISO

A good number of a handful of situations the many examine various things holdings and even debts high-end cameras which will understand cope with the simplest way and also variety of lighting is likely to be allow in the digicam to make sure you set-up scenes. Taking photographs is Panasonic VW-VBN260 Battery focused lumination in addition to minor innovations through soothing is commonly addressed feel gigantic has effects on on what this persona success considering.

Classified ads by just The search engines

Aperture

Whatever aperture in our video camera is actually which usually "iris-like" product the opens and as well turns. The item appliances just how much light-weight is usually earn all around via the bit of throw away. The larger any sort of ditch, the greater light make it possible for round. This really is fantastic with F-Stops the moment f5. 6 is usually a considerable primary as opposed to f16 are sometimes small to medium sized primary. You need a much larger initially suitable for dark surrounds in addition to a less starting off suitable very dazzling illnesses.

Shutter Pace

In relation to aperture adjustments the figures on a fabulous throw away the fact that brightness switches into because of, almost any shutter accelerate apparatus just how long this approach light-weight is actually come up with interior. A nice shutter swiftness connected with 1/500 is going to make very low minor utilizing not like a lengthier shutter fee approximately 1/5 need after only supplemental moderate. It's fantastic with secs. You need to work with painless shutter facts convert gears designed for circumstances by means of many moderate aside from systematic shutter rates of speed when particularly full experiences.

ISO

Any sort of ISO adjustments a fabulous tenderness of the "film". Intended for camcorders, whereas it doesn't management picture presently, everything adjustments a fabulous tenderness with the high-end camera sensor. A greater ISO options can certainly help produce styles photograph become faster and as well demand even less smooth compared to a decreased ISO. Strangling part of managing great ISO is probably of the fact that enhanced ISO's ordinarily result in a detraction at the time of envision first-class high quality as well as almond.

Applying it on whe whole

At the moment knowing the exact a couple of valuable symbol photo digital portrait photography useful tips future move is usually to see how a large amount of several associated with routine aside throughout both as well as the option to select the right configuration settings for each solo! A bunch of security surveillance cameras own methods the moment anyone software one of these simple together with security surveillance camera might easily consider useful configuration settings with the sleeping. A couple selections usually are shutter priority along with Panasonic VW-VBK180 Battery aperture the main ageda once approximately just about every individual individuals manage probably lots of the shutter accelerate or even this particular aperture.

The final fundamental digital slr high-end camera efficiency content is usually intent. A bunch of security surveillance cameras own automotive intend that's characteristically poor along with translates to fluffy photos often. The most effective will be to realize how to work together with intelligent emphasizing in addition to using the services of main aim metering that will help methodically tutorial put focus.

2012-01-05

How to make digital camera battery more durable

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

2012-01-03

http://sanpoapril.blog104.fc2.com/blog-entry-167.html

http://d.hatena.ne.jp/saebou/20120102/p1

http://togetter.com/li/235545

Mステは原語表示の下に日本語訳がつく。CD付属のとほぼ同じ内容。

日本とかJAPANとか出てくるのは、その番組では言い替えて歌ったから。


スマスマ 紅白 Mステ
あなたが彼を愛そうと、キリストを愛そうと関係ない    
みんなで手を挙げて    
それがあなたの生まれ持った宿命なんだもの    
  小さい頃 よくママが言ってた My Mama told me when I was young
私が若い頃 ママが言ってた
  人はみな 生まれたときスーパースター We are all born superstars
「みんな生まれたときからスーパースターよ」
  化粧台の鏡の前 She rolled my hair and put my lipstick on
髪をまくり上げて 口紅を塗ってくれた
  私の髪をカールし 口紅をつけながら In the glass of her boudoir
ガラス張りのブードワで
  自分を愛するのはいいこと "There's nothing wrong with lovin' who you are"
ありのまま自分を愛せばいい」ママが言ったわ
  神はあなたをパーフェクトにつくったの She said, "Cause he made you perfect, babe."
「そのままで完璧あなたを 神は創ったの」
  くよくよしないでいれば きっと成功する "So hold your head up girl and you'll go far,
「だから顔を上げていれば 遠くまで行けるわ"
  私の言葉を 信じなさい Listen to me when I say"
これから言うこと よく聞いて」
  私には自分なりの美しさがある だって神様に間違いはないか I'm beautiful in my way Cause God makes no mistakes
自分らしいままで美しい だって神には一寸のブレもない
  私は正しい道を進んでいる こうなるように生まれてきたの I'm on the right track baby I was born this way
このまま進めばいいのよ ベイビー 私はこの運命のもとに生まれてきた
  後悔の殻に閉じこもらないで 自分を愛せば うまくいく Don't hide yourself in regret Just love yourself and you're set
悔いに身を隠さないで ただ自分を愛せばそれでO.K.
  私は正しい道を進んでいる 私はこう生まれてきた I'm on the right track baby I was born this way
このまま進めばいいのよ ベイビー 私はこの運命のもとに生まれてきた
  ほかの生き方なんてない Ooo there ain't no other way
Ooo そのほかの道なんてない
  こうなるように生まれてきたの Baby I was born this way
ベイビー 私はこの運命のもとに生まれてきた
  ほかの道はない こうして生まれてきたんだから Ooo there ain't no other way
Ooo そのほかの道なんてない
    Baby I was born this way
ベイビー 私はこの運命のもとに生まれてきた
  私は正しい道を進んでいる 私はこう生まれてきたか I'm on the right track baby I was born this way
このまま進めばいいのよ ベイビー 私はこの運命のもとに生まれてきた
    Don't be a drag, just be a queen
ドラッグクイーンじゃなくて クイーンになればいい
    Don't be!
なればいい!
分別をわきまえて、友を愛しなさい   Give yourself prudence And love your friends
自分の体を尊重して 友だちを愛するの
日本のみんな、真実を喜びなさい   Subway kid, rejoice your truth
サブウェイキッズ真実を祝え」
自信が持てない者達の信仰のために   In the religion of the insecure I must be myself, respect my youth
弱者のための宗教では 自分らしくいて 若さに敬意をしめす
私は自分を見失わず若さ大事にする    
誰を愛しても、それは罪ではない   A different lover is not a sin Believe capital H-I-M (hey hey hey)
恋人が“ヘン”だからって罪にならないわ 信じて大文字の“H-I-M”(神)を
主なるイエスを信じなさい    
私は自分人生を愛しているし、この曲も愛している   I love my life I love this record and Mi amore vole fe yah (love needs faith)
この人生もこのレコードも愛してる(愛には信じる心が不可欠)
愛することは確信することよ    
私は私のままで美しい   I'm beautiful in my way Cause God makes no mistakes
自分らしいままで美しい だって神には一寸のブレもない
だって神様は間違えたりしないか    
私の生き方は間違っていない、これが私の生まれ持った宿命   I'm on the right track baby I was born this way
このまま進めばいいのよ ベイビー 私はこの運命のもとに生まれてきた
悲嘆に本当の自分を隠さないで   Don't hide yourself in regret Just love yourself and you're set
悔いに身を隠さないで ただ自分を愛せばそれでO.K.
自分自身を愛せば大丈夫   I'm on the right track baby I was born this way
このまま進めばいいのよ ベイビー 私はこの運命のもとに生まれてきた
私の生き方は間違っていない、これが私の生まれ持った宿命   Ooo there ain't no other way
Ooo そのほかの道なんてない
    Baby I was born this way
ベイビー 私はこの運命のもとに生まれてきた
他の生き方なんてできない   Ooo there ain't no other way
Ooo そのほかの道なんてない
これが私の生まれ持った宿命   Baby I was born this way
ベイビー 私はこの運命のもとに生まれてきた
私の生き方は間違っていない、これが私の生まれ持った宿命   I'm on the right track baby I was born this way
このまま進めばいいのよ ベイビー 私はこの運命のもとに生まれてきた
野暮なこと言わず女王でいればいいのよ ぼやいてないで いっそ女王になろう Don't be a drag, just be a queen
ドラッグクイーンじゃなくて クイーンになればいい
あなた貧乏でも、お金持ちでも 貧富の差も 肌の色も 国籍も関係ない Whether you're broke or evergreen
あなた貧乏でも 恵まれていても
黒人でも、白人でも、ベージュ肌でも、ラテン系でも   You're black, white, beige chola descent
黒人でも 白人でも ベージュ肌でも インディオ系でも
レバノン生まれでも、東洋系でも   You're Lebanese, You're Orient
あなたレバノン生まれでも 東洋系でも
障害を負って、仲間外れにされて、イジメられたり、からかわれても 人生で困難があっても いじめられ からかわれても Whether life's disabilities Left you outcast, bullied or teased
人生で障害を負って 仲間外れにされて イジメられて からかわれても
自分を讃え、愛してあげなさい 自分を信じ 愛してあげよう Rejoice and love yourself today
今日いる自分を愛して そしてお祝いして
だってそれがあなたの生まれ持った宿命から それがあなた人生から Cause baby you we're born this way
だってベイビー あなたはこの運命のもとに生まれてきた
たとえゲイでも、ストレートでも、バイでも 性的好みなんてどうでもいい No matter gay, straight, or bi Lesbian, transgendered life
たとえゲイでもストレートでもバイでも レズビアンでもトランスジェンダーでも
レズビアンでも、性同一性障害であっても、関係ないわ  
私の生き方は間違ってない、ベイビー 私は正しい道を進んでいる どんな困難も乗り越える I'm on the right track baby I was born to survive
まちがってなんかいないよ ベイビー 生きるため産まれてきた
私は生き抜くために 生まれてきたの  
黒人でも、白人でも、ベージュ肌でも、ラテン系でも、東洋系でも 肌の色や国籍なんて関係ない No matter black, white or beige Chola or Orient made
黒人でも 白人でも ベージュ肌でも ラテン系でも 東洋系でも
    I'm on the right track baby I was born to be brave
このまま進めばいい ベイビー 勇敢になるために産まれてきた
  そう 歌おうJAPAN  
私はこのままで美しい 私には自分なりの美しさがある だって神様に間違いはないか I'm beautiful in my way Cause God makes no mistakes
自分らしいままで美しい だって神には一寸のブレもない
だって神様は間違えたりしないか    
私の生き方は間違っていない、これが私の生まれ持った宿命 私は正しい道を進んでいる 私らしく生きている I'm on the right track baby I was born this way
このまま進めばいいのよ ベイビー 私はこの運命のもとに生まれてきた
自分自身を愛せば大丈夫 後悔の殻に閉じこもらないで 自分を素直に愛せばそれでいい Don't hide yourself in regret Just love yourself and you're set
悔いに身を隠さないで ただ自分を愛せばそれでO.K.
私の生き方は間違っていない、これが私の生まれ持った宿命 私は正しい道を進んでいる 私はこう生まれてきたか I'm on the right track baby I was born this way
このまま進めばいいのよ ベイビー 私はこの運命のもとに生まれてきた
他の生き方なんてできない ほかの道はない Ooo there ain't no other way
Ooo そのほかの道なんてない
これが私の生まれ持った宿命 こうして生まれてきたんだから Baby I was born this way
ベイビー 私はこの運命のもとに生まれてきた
  ほかの道はない Ooo there ain't no other way
Ooo そのほかの道なんてない
  こうして生まれてきたんだから Baby I was born this way
ベイビー 私はこの運命のもとに生まれてきた
    I was born this way hey!
私はこの運命のもとに生まれてきた
私の生き方は間違っていない、これが私の生まれ持った宿命 私は正しい道を進んでいる こう生まれてきたか I'm on the right track baby I was born this way
このまま進めばいい ベイビー 私はこの運命のもとに生まれてきた
これが私の生まれ持った宿命 私はこう生まれてきたか I was born this way hey!
私はこの運命のもとに生まれてきた
私の生き方は間違っていない、これが私の生まれ持った宿命 私は正しい道を進んでいる こう生まれてきたか I'm on the right track baby I was born this way hey!
このまま進めばいい ベイビー 私はこの運命のもとに生まれてきた
同じ遺伝子

2011-12-31

MIT develops new fast-charging battery technology ideal for automobiles

February With the world going mobile and billions of new devices requiring electrical storage, battery technology is almost certainly due for a renaissance in the near future and recent developments suggest MIT will play a role in the next significant battery technology. Less than a week ago, we reported on work being done by MIT's Laboratory for Electromagnetic and Electronic Systems (LEES) that could become the first technologically significant and economically viable alternative to conventional batteries in 200 years. Now a second new and highly promising battery technology is emerging from MIT - a new type of lithium battery that could become a cheaper alternative to the batteries that now power hybrid electric cars.

Until now, lithium batteries have not had the rapid charging capability or safety level needed for use in cars. Hybrid cars now run on nickel metal hydride batteries, which power an electric motor and can rapidly recharge while the car is decelerating or standing still.

But lithium nickel manganese oxide, described in a paper to be published in Science on Feb. 17, could revolutionize the hybrid car industry -- a sector that has "enormous growth potential," says Gerbrand Ceder, MIT professor of materials science and engineering, who led the project.

"The writing is on the wall. It's clearly happening," said Ceder, who said that a couple of companies are already interested in licensing the new lithium battery technology.

The new material is more stable (and thus safer) than lithium cobalt oxide batteries, which are used to power small electronic devices like cell phones, laptop computers, rechargeable personal digital assistants (PDAs) and such medical devices as pacemakers.

The small safety risk posed by lithium cobalt oxide is manageable in small devices but makes the material not viable for the larger batteries needed to run hybrid cars, Ceder said. Cobalt is also fairly expensive, he said.

The MIT team's new lithium battery contains manganese and nickel, which are cheaper than cobalt.

Scientists already knew that lithium nickel manganese oxide could store a lot of energy, but the material took too long to charge to be commercially useful. The MIT researchers set out to modify the material's structure to make it capable of charging and discharging more quickly.

Lithium nickel manganese oxide consists of layers of metal (nickel and manganese) separated from lithium layers by oxygen. The major problem with the compound was that the crystalline structure was too "disordered," meaning that the nickel and lithium were drawn to each other, interfering with the flow of lithium ions and slowing down the charging rate.

Lithium ions carry the battery's charge, so to maximize the speed at which the battery can charge and discharge, the researchers designed and synthesized a material with a very ordered crystalline structure, allowing lithium ions to freely flow between the metal layers.

A battery made from the new material can charge or discharge in about 10 minutes -- about 10 times faster than the unmodified lithium nickel manganese oxide. That brings it much closer to the timeframe needed for hybrid car batteries, Ceder said.

Before the material can be used commercially, the manufacturing process needs to be made less expensive, and a few other modifications will likely be necessary, Ceder said.

Other potential applications for the new lithium battery include power tools, electric bikes, and power backup for renewable energy sources.

The lead author on the research paper is Kisuk Kang, a graduate student in Ceder's lab. Ying Shirley Meng, a postdoctoral associate in materials science and engineering at MIT, and Julien Breger and Clare P. Grey of the State University of New York at Stony Brook are also authors on the paper.

The research was funded by the National Science Foundation and the U.S. Department of Energy.

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

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

http://www.chargerbatteryshop.co.uk/panasonic-cga-s101e-cc1-1b-digital-camera-battery-cbbs.html

2011-12-29

Choose the best digital camera rechargeable batteries

Due to the nature of a digital camera, they need a lot of voltage and also need to keep good battery long periods of inactivity digital camera rechargeable batteries to a big hit, many current digital camera has a flash, may also make a short film, the two characteristics is very good, but can drain battery two times normal speed, photo shooting.

Most people are familiar with basic rechargeable battery, but the key to finding a good a doctor to give your digital camera is to look at the battery material, how will charge, and how long will the cost in use and sitting on the shelf or in the digital camera.

A little I look in my purchase any digital camera I buy is to ensure that there is a common battery size. The reason is, no matter how you plan a photo shoot, things happen, you may have to resort to the old alkaline batteries solve your problems, then. Panasonic battery my first choice is a rechargeable battery, but you never know, this is a very good thing can find a new set of batteries.

There are several important factors to consider, rechargeable batteries is the best. The first is the amount of voltage, followed by long time, then the battery of the time; Four is charge (how long shelf life will be held responsible for the storage battery).

Here are a series of typical rechargeable batteries and their voltage output:

Ni-Cad rechargeable battery, 12 volts

Nickel metal hydride rechargeable batteries-1.2 to 1.5

Ni-ZN rechargeable batteries-160 volts

Standard alkalines is 1.5 volts

Also have a level a reference number of energy storage, from the ability to represent called milli ampere hour. These level general fleeing to 2100 from 750 from is high, the more the number of the battery capacity (higher digital better).

The Ni-Cad and nimh most common, almost every major brand battery multiple versions. The latest technology is Ni-ZN are excellent storage capacity and long shelf life. Many types of rechargeable batteries can be charging many times, but they didn't mention that drop down power amount of recharges x.

And this is the real factors to consider. Let us say that if you find new battery you can use about 100 photos before they go to the south. Recharges Numbers increase, reduce many pictures. Some can only continue to before they start, recharges loose the ability to completely costs. Clever cost is still good savings from an ordinary AA alkaline battery cost $1.15 and the comparable charge is $2.50, according to the figures from $5.00.

Recent Ni-ZN cost about $5 each request and take over 500 recharges in any losses before the injury charge ability. But they also play more voltage so for example your flash recycling half the time to complete the normal alkaline batteries. If you have 100 threw a set of alkaline, you should get at least 175 vote of Ni-ZN are the same size. Plus storage life N-ZN than any other choice.

Rapid turnover a flash can be a big problem, because it is a very painful, but when photographs in the interior, need to wait for two minutes of the flash is full of power. Or, if you are shooting a series of short a minute video and ran out of the juice in the middle is not a good thing.

So, based on the pricing and ability, if you can recharge the battery is more than 500 times more the highest price, they use more cheap long-term development. If they hold up close to claim 500 cost, well, you can do the math. This is a no brainer, Ni-ZN provide more voltage, better life, and more fees each battery.


__________________

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

http://www.chargerbatteryshop.co.uk/panasonic-dmw-bmb9-digital-camera-battery-cbbs.html

Portable electronic equipment battery technology

1, about the trickle charge, rapid charging and stable battery charging algorithm

According to the energy requirements of the final application, a battery may contain up to 4 lithium ion or lithium polymer battery core, its configuration will have a variety of change, at the same time with a mainstream power adapter: direct adapter, USB interface or car charger. Remove the core quantity, core configuration or power adapter type difference, the battery has the same charge characteristics. So they charge algorithm. Lithium ion and li-ion polymer battery best charging algorithm can divided into three phases: trickle charge, rapid charging and stable charge.

trickle charge. For depth discharge core to charge. When core voltage in less than about 2.8 V, use a constant 0.1 C of the current charging for it.

fast charging. Core voltage trickle charge more than the threshold, improve the charging current rapid charging. Fast charging current should be lower than 1.0 C.

stable voltage. In the fast charging process, once the core 4.2 V voltage, stable voltage phase began. This is through the minimum charge current or timer or of the two joint to interrupt charge. When the minimum current below about 0.07 C, can interrupt charge. The timer is to rely on a default to trigger the timer interrupt.

Advanced battery charger with additional security function normally. For example, if the core temperature exceeds the given window, usually 0 ℃-45 ℃, charge will be suspended.

Remove some very low-end equipment, now on the market/li-ion polymer lithium ion battery solutions are integrated with the outer components or, in accordance with the characteristics of the charging to charge, this is not just to get better effect charge, but also for safety.

lithium ion/polymer battery charge is an example of applications-double input 1.2 A lithium battery charger LTC4097

LTC4097 can be used to exchange adapter or USB power supply for single quarter/polymer lithium ion battery. Figure 1 for double input 1.2 A lithium battery charger LTC4097 schemes. It USES constant current/constant voltage algorithm charging, from exchange adapter power charge, programmable filling up to 1.2 electric current A, and with USB power can be as high as 1 A, at the same time, automatic detection in each input voltage whether there. This device also provide USB the current limit. Applications include PDA, MP3 players, digital camera, light portable medical and test equipment and big color cellular phone. The performance characteristics: no external micro controller charging termination; The input power automatic detection and choice; Through the resistance from the exchange of charging adapter input can be as high as 1.2 A programming charge current; The resistance of programmable USB charging current is up to 1 A; 100% or 20% USB charging current set; The input power output and existing bias NTC (VNTC) pin as a 120 mA drive ability; NTC thermistors input (NTC) pin for temperature qualified charged; Pre-settings battery voltage with floating plus or minus 0.6% accuracy; Thermal regulation maximize charge rate and free hot air LTC4097 can be used to exchange adapter or USB power supply for single quarter/polymer lithium ion battery. The use of constant current/constant voltage algorithm charging, from exchange adapter power charge, programmable filling up to 1.2 electric current A, and with USB power can be as high as 1 A, at the same time, automatic detection in each input voltage whether there. This device also provide USB the current limit. Applications include PDA, MP3 players, digital camera, light portable medical and test equipment and big color cellular phone.

2, lithium ion/polymer battery scheme

Lithium ion/polymer battery charge scheme for different number of core, core configuration, and power types are different. At present mainly have three main charging scheme: linear, Buck (step-down) switch and SEPIC (booster and step-down) switch.

2.1 linear scheme

When the input voltage in big with the charger with sufficient clearance of core after opening voltage, it is linear scheme, especially 1.0 C fast charging current than 1 A big too much. For example, MP3 players usually only one core, capacity from 700 to 1500 mAh differ, full charge voltage is open 4.2 V. MP3 player power is usually the AC/DC adapter or USB interface, the output is the rule of 5 V; At this time, the linear scheme is the most simple, most charger of the efficiency of the scheme. Figure 2 shows for lithium ion/polymer battery solution linear scheme, basic structure and linear voltage neat device.

linear scheme charger application examples-double input Li + charger and intelligent power source selector MAX8677A

MAX8677A is double input USB/AC adapter linear charger, built-in Smart Power Selector, used for rechargeable single quarter by Li + batteries portable devices. The charger integration of the battery and the external power source and load switch charging all the power switch, so that no external MOSFET. MAX8677A ideal used in portable devices, such as smart phones, PDA, portable media players, GPS navigation equipment, digital camera, and digital cameras.

MAX8677A can work in independent USB and the power input AC adapter or two input either one of the input. When connecting external power supply, intelligent power source selector allows the system not connect battery or can and depth discharge battery connection. Intelligent power source selector will automatically switch to the battery system load, use the system did not use the input power supply parts for battery, make full use of limited USB and adapter power supply input. All the needed electric current detection circuit, including the integration of the power switch, all integration in the piece. DC input current highest limit can be adjusted to 2 A and DC and USB input all can support 100 mA, 500 mA, and USB hung mode. Charge current can be adjusted to as high as 1.5 A, thus support wide range of battery capacitive. Other features include MAX8677A thermal regulation, over-voltage protection, charging status and fault output, power supply good surveillance, battery thermistors surveillance, and charging timer. MAX8677A using save a space, hot enhanced, 4 mm x 4 mm, 24 of the pins TQFN encapsulation, regulations, work in exceptional temperature range (40 ~ + 85 ℃).

2.2 Buck (step-down) switch scheme

When A 1.0 C of the charging current more than 1 A, or the input voltage of the core than with high voltage open many, Buck or step-down plan is A better choice. For example, based on the hard drive in the PMP, often use single core lithium ion battery, the full of open is 4.2 V voltage, capacity from 1200 to 2400 mAh range. And now PMP is usually use the car kit to charge, its output voltage in a 9 V to 16 between V. In the input voltage and battery voltage is the voltage difference between high (minimum 4.8 V) will make linear scheme lowers efficiency. This kind of low efficiency, plus more than 1.2 A 1 C fast charging electric current, have serious heat dissipation problems. To avoid this kind of situation, will the Buck scheme. Figure 3 for lithium ion/polymer battery charger scheme Buck diagram, basic structure with Buck (step-down) switching voltage regulators completely the same.

2.3 SEPIC (booster and step-down) switch scheme

In some use of three or four lithium ion/polymer core series equipments, charger of the input voltage is not always greater than the battery voltage. For example, laptop computers use 3 core lithium ion battery, full charge voltage is open 12.6 V (4.2 V x3), capacity is 1800 mAh to 3600 mAh from. Power supply input or output voltage is 1 6 V AC/DC adapter, or is car kit, the output voltage in a 9 V to 16 between V. Apparently, the linear and Buck solutions are not for this group of batteries. This is about to use SEPIC scheme, it can in the output voltage is higher than when the battery voltage, can be in the output voltage less than when the battery.

3, and power detection algorithm is proposed

Many portable products use voltage measurements to estimate the remaining battery power, but the battery voltage and surplus power relationship but will with the discharge rate, temperature and battery aging degree of change, make this kind of method can top 50% margin of error. The market for longer to use product demand unceasingly strengthens, so the system design personnel need more accurate solution. Use capacity check plan come to measure battery or consumption of electricity, will be in a wide range of application power to provide more accurate estimate of the battery power.

3.1 power detection algorithm is one of the examples of application, function complete list, double the battery portable battery application design

power detection principle. Good capacity check plan at least to have battery voltage, temperature and battery electric current, measuring method; A micro 9 a; And a set of and the verification of the punishment power detection algorithm is proposed. Bq2650x and bq27x00 is full capacity check program function, with a measuring voltage and temperature of the digital converter (ADC) and a measuring electric current and charging sensor the asp. These capacity check plan also has a microprocessor, is responsible for the implementation of the Texas instruments power detection algorithm is proposed. The algorithm can compensate the lithium ion battery life.low self-discharge, aging, the temperature and discharge rate, and other factors. Chip embedded microprocessor as host system processor save these calculation burden. Capacity check program can provide remaining power state information, bq27x00 series products also offer surplus can Run Time (Run Time to Empty) host may at any Time to capacity check plan these information query, then LED indicator light through or displays will inform the user battery. Capacity check meter is very easy to use, the system processor need only configuration 12 C or HDQ communication drive can.

The battery circuit description. Figure 4 (a) can be used for identification of IC functions with typical application circuit batteries. According to the use of IC testing program is different, the battery needs to have at least three to four outside the terminal.

VCC and BAT pins will even to the battery voltage, so that for, C power and the battery voltage measurement. The battery is connected a grounding resistance smaller detection resistors, let capacity check meter high impedance SRP and SRN input can monitor sensor resistance on both ends of the voltage. Through testing the current flows through a resistor can be used to judge the battery or release the amount of electricity. Designers choose detection resistance value must be considered when resistance on both ends of the voltage can't more than 100 mV, low resistance may be more hours in current errors. Circuit board layout must ensure that SRP and SRN to testing from as close as possible to the connection of the resistor sensor resistance end; In other words, they should be the Kelvin attachment.

HDQ pin need external and resistors, this resistance should be located the host or the main application, such capacity check plan to the battery and portable devices when sleep function enable connection broken. Advice and resistance choose 10 k Ω.

battery identification. A low cost WeiMao batteries are getting more and more serious, these cells may not contain OEM requirements of security protection circuit. So, genuine battery may contain figure 4 (a) shows the appraisal circuit. When to identify the battery, the host to contain IC (bq26150, the function is cyclic redundancy check (CRC)) issued the battery packs a ask value (challenge), the CRC will contain battery according to this inquiry value and, in the building of the IC in CRC polynomial calculation the CRC value. CRC is based on the host of command and IC secret in the query of the definition of the CRC polynomial completed, the host in CRC values calculated with the calculation result of well battery comparison to identify the appraisal success.

Once the battery through the appraisal, bq26150 will issue commands to ensure that the host and quantity test plan of material lines between normal communication. When the battery connection interruption or to connect, the whole the identification process will be repeated again.

double the battery application. Figure 4 (b) for use bq26500 support double the typical application of lithium ion battery circuit. In order to support more battery, and this circuit is adding a adjustable regulators. Capacity check millions of BAT pin and the bottom of a battery anode linked to complete the variable voltage measurement of the battery.

Host to be able to read capacity check plan of variable voltage measurement battery, to make sure the end of discharging threshold and charging terminate threshold. As for the remaining state power (RemainingStateofCapacity), do not need to read can use directly.

The above bq2650x and bq27x00 etc capacity check plan provides the battery manufacturer a simple to use options, this scheme L [just measuring battery voltage to be precise, so these capacity check plan can be applied to various battery framework, and can support the battery identification and double the battery application '

3.2 power detection algorithm is an example of applications another, can apply to all kinds of general voltmeter new IC.

Today's many manufacturers can provide a variety of voltmeter IC,, the user can choose the suitable function device, to optimize the product price. Use voltmeter measurement of storage battery parameters, the separate architecture allows users in the host custom power measurement algorithm within. Eliminating embedded processor battery cost. On this to Dallase semicconductor company called cases of DS2762 chip for typical analysis. A new separate voltmeter IC, its structure see chart 5 (a) below.

DS2762 application characteristics

DS2762 is a single quarter of lithium battery voltmeter and protection circuit, integrated into a tiny 2.46 mm x 2.74 mm inversion of packaging. Due to internal integration for power detection of high precise resistance, this device is very save a space. It is the small size and incomparable high level of integration, for mobile phone battery and other similar handheld products, such as PDA, etc, are all very ideal. Integrated protection circuit continuously monitoring the battery voltage, over voltage and flow fault (charging or discharge period). Different from the independent protection IC, DS2762 allow main processor surveillance/control protection FET conduction state, such, can DS2762 through the protection of the power system and the control circuit implementation. DS2762 can also charge a battery consumption has depth, when the battery voltage within three V, provide a limit of the charging current recovery path.

DS2762 accurate monitoring battery current, voltage and temperature, the dynamic range and resolution of common satisfy any mobile communication product testing standards. The measurement of current for internally generated when the integral, realize the power measurement. Through the real-time, continuous automatic disorders correct, the precision of power measurement can be increased. The built-in measuring resistance due to eliminate manufacturing process and temperature and cause resistance change, further improve the precision of the voltmeter. Important data stored in 32 bytes, can add the lock EEPROM; 16 bytes of SRAM are used to keep dynamic data. And DS2762 all communication all through the 1-Wire, more communication interface node, minimize the battery and the connection to the host. Its main features for; Single quarter of lithium battery protector; High precision current (power measurement), voltage and temperature measurement; Optional integrated 25 m Ω measuring resistance, each DS2762 after fine-tuning alone; 0 V battery restore charge; 32 bytes can lock EEPROM, 16 bytes SRAM, 64 a ROM;

1-Wire, node, digital communication interface; Support more battery power management, and through the protection system control FET power; Dormancy mode power supply current only 2 µ A (most); Work mode power supply current for 90 µ A (most); 2.46 mm x 2.74 mm inversion of packaging or 16 feet SSOP package led, and both are can choose with or without detection resistance; After has with e

2011-12-17

CStaticコントロールにCBitmapを表示する方法

//ダイアログクラスにメンバ変数定義
std::auto_ptr<CBitmap> m_pbmp;

//bitmapを設定するメンバ関数
void C*****Dlg::Set*****Bitmap() {
	CDC* pDC = GetDC();
	CDC memdc;
	memdc.CreateCompatibleDC(pDC);
	m_pbmp.reset(new CBitmap());
	CBitmap& bmp = *m_pbmp;
	bmp.CreateCompatibleBitmap(pDC, width, height);
	
	CBitmap* old = memdc.SelectObject(&bmp);
	memdc.FillSolidRect(0,0,width,height, color);
	memdc.SelectObject(old);
	((CStatic*)GetDlgItem(IDC_STAIC_*********))->SetBitmap(bmp);
}

スクリーンと同じデバイスコンテキストビットマップ作成し単色で描画している。描画し終わった後のSelectObjectを忘れてはいけない。

CStatic::SetBitmapに渡した後も実際に描画されるまでCBitmapの寿命保証しなければならない。

そのためメンバ変数にCBitmapを持たせるがCBitmapが再利用を考慮していないという驚くべき仕様なので仕方なくauto_ptrでラップしている。

いい加減MFC滅びてくれないかな。抽象度が低すぎる。こんな記事自分ブログに書きたくないよ。

さらにVisualStudio 2005のauto_ptrのバグを見つけた operator = にポインタを渡すとおかしくなる。これは本来コンパイルエラーになるべきで代わりにresetメンバ関数を使用するべきだ。

修正するには<memory>ヘッダのauto_ptr_refのコンストラクタひとつ上の行(642行目)に private: template<class T> friend class auto_ptr; を挿入する。

これならばアクセス制御をしているだけなので他のコードへの影響は無いと思う。

2011-12-16

Along the way, thank you

Do all the way, the dream all the way, and read all the way, the injury all the way, the youth of this shore, I eyebrow XinWei cu, listening to the wind tells the years of the past; Go all the way, appreciate all the way, listen to all the way, drunk all the way, time of the other side, you gently walk, bring me for my whole life the oath. Smile, as a jade, just like the cold winter la month of a warming Yang; Words, amiable and gentle, like stroke and a wisp of spring breeze; The heart, clear as bright, filled with tolerance and forthright.

In the boundless huge crowd, you I meet by chance, and then silence who know each other, as world all the fate, we own the roaming in, repeated a story of others. Looking at today's you and me, read the yesterday's he and she, original all is so similar to the ends of the earth, the same scene, every moment thousands of deduction. The different stage, the same script, different actors, the same lines, perhaps, that is what the world had said the world of mortals.

Life, seems to be a little spring and fall streams, no waves without wind, go light, so of the day, that you and I, is I have dreamed of. But he is always thinking of, perhaps our stories will be something different, always feel, I want life probably shouldn't so, always think, and the story you and I should deducing other wonderful. Perhaps this is the so-called is not satisfied with it.

Not content with me, occasionally also play a song in life all much ado about nothing. The occasional upset, the occasional sentimentality, occasionally sad sorrow bosom, such me, sometimes not even willing to tolerance, but you will always smiled and said it doesn't matter. A that's ok, covers the you to my tolerance. Thank you, thank you willing to listen to me, thank you willing to understand me, thank you for your concern and care of understanding.

Along the way, just behind the one season blossom has collected, have already in the years flows through place vanished, lift. Magging issues.it, those flowers, then no longer in those days Ming yan; Walk off, those figure, also do not know when from my life disappear; For a around, those familiar with smile, and those who agreed upon oath, and has set up a file in the baptism of the mood swept away. Looking back, QiFengChuYu also only you have been, from beginning to end with reckless abandon.

I know, you are always on, maybe not at nearby, but has lived in my heart. You are in my heart, so, I count the mirror in flower, and cicadas in the eyes of the tender you smile and looked at on the water, and know that you SiQi born rich, and son ChengYue vow.

You know, more than any other, I in the character of the much a slightly thin cool. Those who love, I do not say, and not understand; Those good, I don't talk, and not unknown; Those who warm, those carefully, I pretended that I don't know, but one can see in the eye, and talks to heart. I'm not good at expressing, doesn't mean I don't have felt in the heart, on the contrary, a warm action, a concern of look in the eyes, a warm words, of all things, I kept away, and put it in my heart.

Since always, all don't understand you in my life to a role play, from that year to now, you and I walked all the way from strangers, to close right now, our story is in what the beat is a? Perhaps the story is finalizing a play, also or two hearts were there, but I thank you have in this warm attitude in my MingTu.

Thank you for the lonely in my time took me by the hand, and thank you for making me again believe a fairy tale of aestheticism, thank you for your face my unreasonable never give up, thank you for your tender feelings with the whole life the warmth of my I thin cool, thank you to accompany me along the way. To you, please make I say thank you, thank you let me in such years can also ease dream, let me be able to a insignificant posture face a window to listen.

The dream flowers, quietly away, and in a hurry fell, some people, quietly, and silently walk, that time, like water flowing silence, from refused to make a little I stopped, and our story? Our story will end in where? Tomorrow's you I is near at hand, or the apart?


_______________

http://www.chargerbatteryshop.co.uk/panasonic-lumix-dmc-tz7-battery-charger-cbbs.html

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

http://www.keyboard-store.com/compaq-presario-v2200-laptop-keyboard.html

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-10

本当のソーシャルゲームイノベーション人間ボットの区別がつかない環境

ソーシャルゲームイノベーション。だがイノベーションは、すべてのユーザー接続された単一のサーバーを使う、マルチプラットフォームマイクロトランザクション、コレクション中心のゲーム性ゲームマネーリアルマネーの最小限の垣根、スマート課金システム、ゆるやかなコミュニケーションではない。ソーシャルゲームのコア技術。だがゲーム伝統的なオンラインゲームウェブサービスなどが実現済み。だが人類史ソーシャルゲームけが実現した特徴。人間ボットが混在してもボット存在が気がつかれない革新的な環境ボット人間擬態して人間ゲームプレイしてゲームを盛り上げるSF近似の環境が実現。ソーシャルゲームではユーザー同士の人間的なコミュニケーションを極限まで減少することでこれを可能に。革新的なことにもかかわらず不思議に語られない。すごく残念に思う。私が語ろう。

#

ボットは、パソコン MMO では周知の事実違法がはびこっている。これから話すことは少し違う。ソーシャルゲームボットは、ゲームメーカー自身によって開発された。ボットは、普通ユーザーには区別がつかない。仲間やあなた競争相手のいくつかはボットと考えるのは簡単。多くの人が疑問に思う。人間ボットの区別がつかないはずがない。セカンドライフパソコンMMOのような環境ボット人間のフリをするのは大変困難。MMOはすべてのプレーヤーの動きをリアルタイムに見ることができる。すべてのプレイヤーがどのように動作するかを誰もが見ることができる環境では、特異な行動パターンは際立って目立つ。ほぼ同じアクションが繰り返されるならすぐにボットとわかる。ありえない動作もすぐにわかる(超高速移動、不可能なタイミングの攻撃を続ける、など)。MMOボットのためのチートツールは不自然ではない動きの再現に苦労。NPCキャラの移動は不自然。同じ場所しか歩かない。不自然に遠回り。隙間に入って抜け出れなくなるなど。人間操作する自然な移動は非常に困難な技術ボット人間パーティを組んで行動するのは不可能。ボットは会話できない。MMOキーボードと共にある。ゲームチャット機能も充実。チャットをするのは当たり前。完全な無言のユーザーは不自然存在協調行動は全く取れない。すぐにボットが露見するであろう。

#

対照的にソーシャルゲームでは人間ボットを区別する機能が軽視。あるいは未実装。他のプレイヤーの行動は目立たない。気がつかない。他のプレイヤーにあまり興味を持たないことでボットことに気がつかない環境。他のユーザーが何をしているのか分からない。ユーザーの仲間は行動記録を閲覧できる。ユーザーと対戦したユーザーとの試合結果は見ることができる。それは非常に断片的。ボスを倒した、ダンジョンクリアした、などの結果しかからない。他のユーザープレイの状態を把握することはできない。ソーシャルゲームでは装備の着替えを繰り返しているユーザーがいても誰も気がつかない。MMOで装備の着替えを繰り返しているユーザーがいたらすごく目立つ。ソーシャルゲームでは異常な行動パターンをとっていても問題にならない。目立たない。ボットにとても都合が良い。ソーシャルゲームでは移動に必要もない。移動はリンククリックだけ。人間らしい移動アルゴリズム不要ソーシャルゲームでは会話がとても軽視。他ユーザーへのコメント掲示板がある。しかしあまり活用されない。ゲームに協力する戦略性が必要が薄いため。またキーボードが使えない。ずっと無言のユーザーも珍しくない。会話がとても少ない。ボット理想環境ソーシャルゲームは最低限のコミュニケーションで成り立つことに最適化。それは同時にボット人間擬態することにも最適化。結果的にボット人間擬態できる環境が生まれている。結論。リンクランダムクリックするだけでもボットが完成。それは不自然ゲームプレイが予想される。だが他ユーザーは気がつかないであろう。

#

ボットを活用しているのは違法ユーザーではない。ゲームの開発会社が用意している。運営している。言い換えればハック不要。無制限にデータベースへのアクセスが可能。実際にゲーム操作する必要ない。データベースに記録を行えば良い。SQLだけでボットを作ることが出来る。例えば、"ナンバーワンのユーザーの敗北を増やす"SQLの次の2行で実現することができます。余談。MySQLのサブクエリ限界は非常に気に入らない。「SELECT userid FROM usertable ORDER BY gold DESC LIMIT 1;UPDATE usertable SET lose=lose+1 WHERE userid=xxxxxx;」これは不十分。たかだか敗北数を増やすだけ。正しくは対戦相手と対戦ログゲームルールに合わせた形で記録。データベース勝敗結果を記録するプログラムが必要。これはゲームプログラムに元々存在している。流用するだけで良い。PerlPHPで実装されているだろう。対戦結果の偽装は簡単。

#

ソーシャルゲームSNSプロフィールページと連動。ユーザーの顔画像クリックプロフィールページに遷移。プロフィールページの偽装が必要。プラットフォーマーは己のSNSデータベースへのアクセスが可能。ランダム名前自動大量生成することは容易。ボットプロフィールページを用意することは容易。ボットユーザーは、日記を書くことなく、まったくの無言で、熱心にゲームプレイ。そのような特徴は正規ユーザーにも珍しくなく違和感はない。参入メーカーSNSプロフィールページを大量に作成できない。正規プロフィールページを使い回す。その場合には、ゲーム上のH氏とG氏ののSNSプロフィールが互いにV氏で同じ人に。これは異常。しかユーザーは他ユーザープロフィール対応を全てチェックしたりしない。発見される確率はとても低い。

#

閲覧者はボット開発の容易さには納得したと信じる。まだボットの必要性と活用には納得していない。これからの話しで納得できる。

伝統ゲーム開発者感覚を基準にゲームバランスを決定(マーケティングの無視を意味しない)。ソーシャルゲームユーザーアクティビティに基づいて、科学的な分析ゲームバランスへのアプローチを決定。これはユーザーアクティビティのサーバーログが蓄積されるために可能。ユーザーアクティビティの分析結果がゲームバランスに反映。例。チュートリアルの進行状況50%で停止しているユーザーが多数いるという分析結果。その箇所のチュートリアルは高い障害ことが想定される。対策。その箇所を平易に修正。その箇所を短縮。その箇所を除去、など。結果、チュートリアルの進行状況50%で停止するユーザーは激減。課金でも分析重要課金アイテムバナー画像を表示する例。ランダム分割したグループAユーザグループBユーザに別々のバナー画像を見せる。しばらく続け、結果的により課金が多いグループバナー画像がより最適。繰り返すことでより効率的なバナー画像が完成。

#

ゲームパラメータは簡単にデータを調整できる。しかしこれは不十分。人間同士のプレイ分析適応できない。例。「開始直後に他のユーザーと対戦し3連敗したユーザーの70%はそれ以上プレイを続けない」という分析結果があると仮定。これはゲームパラメータでは解決できない問題。開始直後のユーザーは誰もが同じ強さ。ゲーム内で最弱。パラメータの調整とは別問題。解決策はボットの利用。開始直後のユーザーより弱いボットを用意。開始直後のユーザーボットに優先的にマッチングボットの内部パラメータは開始直後ユーザー以下だかユーザーにはユーザーと同程度のパラメータに見せる。ユーザーは確実に勝利できるので3連敗してゲームを辞めてしまう可能性は激減。またユーザー自分と同程度のパラメータの相手に勝利したと信じている。プレイ継続するモチベーションに繋がる。ソーシャルゲームプレイ中の人は確認推奨。理論ユーザー全体の対戦での勝利数と敗北数は一致。上位のユーザーは勝利数のほうが多く下位のユーザーは敗北数が多い。コアユーザーでないのなら敗北数が多いのが正しい。もしもあなたが下位ユーザーにもかかわらず勝利数のほうが多いのであればあなたボット感謝する必要がある。逆の例:ロンチ直後のランキング上位にはボットを置く。それがないと初期ユーザーはすぐ上位到達。同ボットゲーム人口が大幅に増加したら不要になることがおおい。

#

課金でも分析結果にボット適用するのは重要。例。「課金経験でしばらく連勝を続け宝物のコンプリートまであとわずかのユーザーに突然強力な一人のユーザーが連日攻撃し続け宝物を奪いにきたときユーザー課金アイテムを購入して防衛する可能性が高い」という分析結果があると仮定。ユーザー心理は、今をしのげば他ユーザーには連勝を続けられると考える。今だけでもと課金を行う。これを再現するボットの開発は容易。データベース検索して課金経験でしばらく連勝を続け宝物のコンプリートまであとわずかのユーザー発見。そのユーザーと対戦可能で勝利できるパラメータボット検索ボットは前もって様々なパラメータで大量に用意しておくのは当たり前。発見したボットユーザーと対戦し対戦結果をボットの勝利でデータベースに書きこむ。これでユーザー課金する確率が飛躍的に高まる。課金経験ユーザー課金経験させることは実に重要。一度同様のボットプログラムを開発したら後は全自動継続的に動作するのは当たり前。分析ボットの組み合わせアプローチ日本ソーシャルゲームの驚異的課金率の施策の1つ。

#

このようなパターンユーザーアクティビティを分析することで無限発見することが可能。ゲームの盛り上げと収益の最大化に大きく貢献。あと1つ例を。課金経験ゆったりプレイユーザーボットが仲間申請。ボットゲーム情熱的にプレイ課金も積極活用。仲間ゆったりユーザーボットプレイ結果がどんどん伝わる。多くのソーシャルゲームでは仲間のプレイ状況は断片的にユーザーに知らされる。中のプレイ状況は大きな刺激。仲間に影響されてよりプレイが活発に。「ユーザープレイ頻度は一番プレイが頻繁な仲間のプレイに近づいていく」分析結果への対応。地味であり効果は直接でないが確実にある。ボット数の効率化の観点から、1つのボット100人以上のユーザーと仲間になるのが望ましい。ゲーム内の仲間人数制限をボットに限り解除。ユーザーボットプロフィールを見たときボットことが露見すると冷めてしまう。表向きは仲間人数制限を解除していることが露見しないように。

#

伝統的なRPGゲームではユーザーの進捗状況に応じて十分な強度の仲間と敵を提供します。これとソーシャルゲームボットは近似している。ユーザーモチベーションを上げるのが目的のは同じ。RPGモンスターと敵はユーザーコンピュータAI操作ことを知っている。それでも十分楽しいが。しかしそれが人間ならもっと楽しい。そこでMMOしか人間は己もプレイヤーユーザーに合わせて適度なパラメーターで楽しさを演出などしない。そこで人間擬態したボットユーザーに合わせてゲームを盛り上げる。ユーザー人間だと信じているのでモチベーションも最高に。あらゆるゲーム問題点完璧に解決されている。ボットの役目はユーザーの退屈に刺激を与えること。ゲームボットだらけ必要はない。賢いボット利用を。このようなボット効果ソーシャルゲームユーザー間のバランスを調整しモチベーションを維持するために非常に大きいですボットほとんど話題にされない。技術情報に積極的な企業ボット不思議と話題にしない。結果。ソーシャルゲーム開発会社も知らないところが多い。ボットを利用するソーシャルゲームはむしろ少数派。ゲームパラメータ調整だけでは限界がある。ユーザーアクティビティのログ解析はハイレベルだが本当に重要ですログ分析に基づいてボットが適切なアクションを残すことでユーザーを興奮させるのでゲームに活用してください。また歴史人間コンピュータ黎明期以来、初めてボット人間の見分けがつかない世界技術革新を達成したことに多くの技術ユーザーは興味を抱くであろう。ソーシャルゲーム会社技術者を積極採用中。その一端はより優れたボット開発。興味があるなら是非応募を。ソーシャルゲームの一層の発展を願う。

#

最後。謝罪。文章下手であり遺憾の意を表明。修正大歓迎。

2011-07-12

今話題になっている「モバツイツイートデコ」をiPhoneデコる方法

モバツイに新機能として搭載された「ツイートデコ」。

対応デバイス・キャリア:フィーチャーフォン(docomoausoftbank・DisneyMobile)

・サービス使用料:無料

てなわけで、せっかくの無料サービスなのにiPhone蚊帳の外・・・。

んなわけで、さっそくのハックです



1.ひとまずガラケーからモバツイへログインする。

この時点でガラケーをお持ちでないフューチャー兄貴は、デスクの隣のマドンナにガラケー借りるべし。

恋が生まれるかも。


2.ログインが成功したらあなた専用のURLが表示される。

専用って響きにウットリしながらクリックすべし。


3.「タイムライン」「@」・・・「ツイートデコ」のツイートデコをクリック

利用規約うんぬんはみなさんの自己責任で。とりあえずこのかわいいデコってみる!!」をクリック


4.とりあえず「タイムライン」をクリックしてみると。

ツイートデコ!」と力強いボタンが表示されてればOK。


5.ガラケーの「機能」または「メニュー」ボタンを押すべし。

こんなメニューが出るはず。そして「iモードメール作成」をクリック


6.URL添付を選択すべし。

ここで仮にデスクの隣のマドンナにガラケーを借りてたら、同時にメアドゲットだぜ!!


7.自分のiPhoneのメールに転送しよう。

とりあえず、言われたとおりメール送信しておこう。別に自力でメモってもいいんだけど・・・。


8.おもむろにiPhoneのAppStoreから「KeitaiEmu」をダウンロード。

無料なので安心しなさい。そして何のためのソフトなのかは気にしない。これお約束


9.そろそろURL送ったメールも届いてるだろうし、クリップボードにURLをコピー!

いや、べ、別に手書きでメモってもいいんだからねっ!!


10.「KeitaiEmu」を起動。

※画面はイメージです。いろんな意味で。


11.「KeitaiEmu」の上のお口にURLをペースト。

下のお口はGoogle検索です


12.無事にモバツイにアクセスできた!けどもっかいパスワードを!

認証方法が違うので、文句を言わずパスワード入れて認証を。



13.おめでとう!!「ツイートデコ」ボタンが表示されてます!

西野カナ並に震えるところです。ほら。さぁ!


14.すかさず右上のブックマークボタンを押して「Add Bookmark」か「Set Default Page」へ

デコレーションする前に、まずは明日のためのことをしよう!


15.何か書いて「ツイートデコ」ボタンを強打!!

すばらしい。すばらしい素材の安定感。往年のマンセルを思い起こさせる。


16.無事にツイートデコ達成!

おめでとうございます!!


次回からは15からでOK。あ、忘れずに「KeitaiEmu」を起動してね。

2011-05-16

はてブコメントページをWebApp版へ飛ばすProxomitronフィルタ


公式 Chrome ウェブアプリ はてなブックマーク」でコメントページを表示すると、旧UIのようにコメントだけを一覧表示できていい感じ。
というわけで訓練されたはてブ民の間ではuser.jsなどで飛ばしたりアレするのが流行るものと思われるが、グリモンだかなんだかに馴染みのない私は、今さら誰も触れないであうProxomitronを使った転送方法を記しておく。
適当ながらメタブ対策を盛り込んでみたのがチャームポイント

  1. 公式 Chrome ウェブアプリ はてなブックマーク」を導入する
  2. Proxomitronに「URL: URLControl」フィルタか「URL: Control URLフィルタを導入する
  3. 上記フィルタ対応するリストに以下のmatchを書き込む

#はてブコメントページをChrome Web App版に飛ばす 2011/05/17 14:50
(^$OHDR(Referer:http://b.hatena.ne.jp/viewer\?))$URL(http://b.hatena.ne.jp/entry(/|\?mode=more?url=)(s/$SET(#=https://)|(http(s|)://)\#|(^(^[^/]++.))$SET(#=http://))(\#))$SET(9=$UESC(\@))$JUMP(http://b.hatena.ne.jp/viewer?entry=$ESC(\9))
($OHDR(Referer:http://b.hatena.ne.jp/viewer\?))$URL((http://b.hatena.ne.jp/entry/*)\0)$SET(9=$UESC(\0))$JUMP(http://b.hatena.ne.jp/viewer?entry=$ESC(\9))

下の行はメタブのためのmatch。タイトル下のブクマ数カウンタークリックするとメタブページへ飛ぶようになる。不要ならばコメントアウト

不具合があればどこかでid:Falkyidコールするか@Sizukenにmentionを飛ばすかすると直るかも。


UIの好き嫌いが分かれてる感じですが、好き放題CSSを流し込んで左ペインさんに消えていただいたり、jsいじくってインラインプレビューを無効化したり、ちょこちょこいじってやるとそこそこ快適なブコメビューワになりますよ。新UIよりはずいぶんマシな感じですね。http://img.ly/system/uploads/000/993/748/original_PrtSc_000114.png

おまけ

アップローダがかなりドイヒーなので転載http://www42.tok2.com/home/proxo/4.html

<<< URLControlフィルタ >>>

これはURLを扱うヘッダフィルタを1つにまとめるフィルタですime.nuを飛ばしたり、他のサイトジャンプさせたりと、指定の
仕方次第で様々なことが実現出来ますバージョン4.5以上推奨。
4.4以下で動くかは不明。(バージョンアップ推奨)



(インストール方法)

1、オミトロンフォルダ内のListsフォルダの中に URLControl.txt という
  テキストファイルを作る。

2、このテキストファイルを 設定、BlockFile、追加 から URLControl と
  いう名前オミトロンに登録する。

3、下のヘッダフィルタオミトロンに追加する。
  範囲選択で下のフィルタを選択、コピーファイル、設定フィルタの併合、
  クリップボードからデータを併合、ファイルデフォルトの設定に保存。

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

[HTTP headers]
In = FALSE
Out = TRUE
Key = "URL: URLControl (Out)"
Match = "$LST(URLControl)"

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

4 URLControl.txt にURLとその処理方法を登録すれば完成。



( URLControl.txt の記述例 )

書き方は

$URL(http://付きのURL)行いたい処理

という感じです。

例、
# ヤフー上のページにアクセスしようとしたgoogleトップページに飛ばす。
$URL(http://www.yahoo.co.jp/)$JUMP(http://www.google.co.jp/)



#------------------------- URLControl.txt -------------------------
# NOADDURL
# 先頭に # がある行は無視されます。

# 2chime広告ページを踏まずに直接リンク先に行く。
$URL(([^:]+:/+)\0(ime.(nu|st)/|pinktower.com/)(\1))$JUMP(\0\1)

# したらばで、広告ページを踏まずに直接リンク先に行く。
$URL(http://jbbs.shitaraba.com/bbs/link.cgi\?url=\0)$JUMP(\0)

# Livedoor ブログ検索
$URL(http://sf.livedoor.com/show\?blog_url=([^&]+)\0)$JUMP(\0)

# 旧tripodアクセスしようとしてたら移転先のinfoseekに飛ばす。(2種類)
$URL(([^:]+:/+)\0(cgi|members).tripod.co.jp/([^/]+)\1\2)$JUMP(\0\1.at.infoseek.co.jp\2)
$URL(([^:]+:/+)\0([^/]++.|)\1tripod.co.jp/)$JUMP(\0\1at.infoseek.co.jp\p\q\a)

# Proxomitron-Jでウェブフィルタを無効にする。
$URL(http://www.pluto.dti.ne.jp/~tengu/proxomitron/)$FILTER(False)

# Proxomitron User's Wikiウェブフィルタを無効にする。
$URL(http://abc.s65.xrea.com/prox/wiki/)$FILTER(False)


### 以下はコメントアウトして無効になっています。
### 有効にした場合コード行の先頭の # を消して下さい。


# local.ptron/以下に接続するときWEBフィルタを無効にする。
# Bypassリストから local.ptron/ を消してこれを使えば
# local.ptron/ にもヘッダフィルタが使えます。
#$URL(http://local.ptron/)$FILTER(False)

# アクセスするときキーボードのSキーを押していたらページのソースを表示する。
#$KEYCHK(S)$URL(([^:]+:/+)\0\1)$RDIR(\0\xsrc..bypass..\1)

# アクセスするときキーボードのDキーを押していたらデバックモードでソースを表示する。
#$KEYCHK(D)$URL(([^:]+:/+)\0\1)$RDIR(\0\xdbug..\1)

# pya! で「18歳以上ですか? はい、いいえ」ページをスキップ。
#$URL(http://pya.cc/pyaimg/han.php\?han=\0)$JUMP(http://pya.cc/pyaimg/spimg.php?imgid=\0)

#------------------------- URLControl.txt -------------------------



※ \k はマッチ欄では動かないのでこのフィルタでは使えません。
  \kを使いたい処理は Kill-a-URL フィルタをご利用下さい。


更新情報2004/4/14 -> 2006/4/18 リスト更新

2011-04-13

SNTPNTP の違い

http://www.seiko-p.co.jp/systems/hardware/cyber_time/time_server/faq.html#q2

ちなみに

NTPとSNTP互換性がありますので、NTP(SNTP)クライアント→SNTPNTP)サーバへの時刻同期は可能です。」

とのこと。

「Win32Timeサービス(w32tm)」や、「日付と時刻のプロパティ」の「インターネット時刻」などの説明で

この2つ言葉がしれっと混在していて不安にさせてくれるが、実情がわかって安堵。



日付と時刻のプロパティサーバー一覧は、次のレジストリキーに登録されている模様(探して見つけただけなので注意)

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers



にしても、SNTPNTPって処理にずいぶん時間をかけるなぁ

net time ¥¥PC名 /set

だとすぐなんだがなぁ。

特殊な用途ならともかく、多くの標準ユーザーPCの時刻をコンマミリ秒まで合わせたいと思うかな?

オーバースペックじゃねーか?



参考

・第1回 Windows OSにおける時刻同期サービスNTP - @IT

http://www.atmarkit.co.jp/fwin2k/operation/winntp01/winntp01_01.html



Windows Server 2003Windows 以外の NTP サーバーとの同期が成功しない - Microsoft

http://support.microsoft.com/default.aspx?scid=kb;ja;875424



Active Directory構成Windows XP外部の時刻サーバーと同期させたい - 個人サイト(TAKAHASHIさん)

http://www.monyo.com/technical/windows/27.html



・w32tmコマンドWindows XP/2003) - 日経NETWORK

http://itpro.nikkeibp.co.jp/article/COLUMN/20060907/247379/

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-03-14

福島原子力発電所CNNコメント欄 MIT科学者科学者見解1【東日本巨大地震

結論:大丈夫


MvK2010

I'm going to copy paste a full blog post of a research scientist at MIT here, who explains the situation at Fukushima much better than anyone else has, his message: no worries.

This post is by Dr Josef Oehmen, a research scientist at MIT, in Boston.

He is a PhD Scientist, whose father has extensive experience in Germany’s nuclear industry. I asked him to write this information to my family in Australia, who were being made sick with worry by the media reports coming from Japan. I am republishing it with his permission.

It is a few hours old, so if any information is out of date, blame me for the delay in getting it published.

This is his text in full and unedited. It is very long, so get comfy.

I am writing this text (Mar 12) to give you some peace of mind regarding some of the troubles in Japan, that is the safety of Japan’s nuclear reactors. Up front, the situation is serious, but under control. And this text is long! But you will know more about nuclear power plants after reading it than all journalists on this planet put together.

There was and will *not* be any significant release of radioactivity.

By “significant” I mean a level of radiation of more than what you would receive on – say – a long distance flight, or drinking a glass of beer that comes from certain areas with high levels of natural background radiation.

I have been reading every news release on the incident since the earthquake. There has not been one single (!) report that was accurate and free of errors (and part of that problem is also a weakness in the Japanese crisis communication). By “not free of errors” I do not refer to tendentious anti-nuclear journalism – that is quite normal these days. By “not free of errors” I mean blatant errors regarding physics and natural law, as well as gross misinterpretation of facts, due to an obvious lack of fundamental and basic understanding of the way nuclear reactors are build and operated. I have read a 3 page report on CNN where every single paragraph contained an error.

We will have to cover some fundamentals, before we get into what is going on.

Construction of the Fukushima nuclear power plants

The plants at Fukushima are so called Boiling Water Reactors, or BWR for short. Boiling Water Reactors are similar to a pressure cooker. The nuclear fuel heats water, the water boils and creates steam, the steam then drives turbines that create the electricity, and the steam is then cooled and condensed back to water, and the water send back to be heated by the nuclear fuel. The pressure cooker operates at about 250 °C.

The nuclear fuel is uranium oxide. Uranium oxide is a ceramic with a very high melting point of about 3000 °C. The fuel is manufactured in pellets (think little cylinders the size of Lego bricks). Those pieces are then put into a long tube made of Zircaloy with a melting point of 2200 °C, and sealed tight. The assembly is called a fuel rod. These fuel rods are then put together to form larger packages, and a number of these packages are then put into the reactor. All these packages together are referred to as “the core”.

The Zircaloy casing is the first containment. It separates the radioactive fuel from the rest of the world.

The core is then placed in the “pressure vessels”. That is the pressure cooker we talked about before. The pressure vessels is the second containment. This is one sturdy piece of a pot, designed to safely contain the core for temperatures several hundred °C. That covers the scenarios where cooling can be restored at some point.

The entire “hardware” of the nuclear reactor – the pressure vessel and all pipes, pumps, coolant (water) reserves, are then encased in the third containment. The third containment is a hermetically (air tight) sealed, very thick bubble of the strongest steel. The third containment is designed, built and tested for one single purpose: To contain, indefinitely, a complete core meltdown. For that purpose, a large and thick concrete basin is cast under the pressure vessel (the second containment), which is filled with graphite, all inside the third containment. This is the so-called “core catcher”. If the core melts and the pressure vessel bursts (and eventually melts), it will catch the molten fuel and everything else. It is built in such a way that the nuclear fuel will be spread out, so it can cool down.

This third containment is then surrounded by the reactor building. The reactor building is an outer shell that is supposed to keep the weather out, but nothing in. (this is the part that was damaged in the explosion, but more to that later).

Fundamentals of nuclear reactions

The uranium fuel generates heat by nuclear fission. Big uranium atoms are split into smaller atoms. That generates heat plus neutrons (one of the particles that forms an atom). When the neutron hits another uranium atom, that splits, generating more neutrons and so on. That is called the nuclear chain reaction.

Now, just packing a lot of fuel rods next to each other would quickly lead to overheating and after about 45 minutes to a melting of the fuel rods. It is worth mentioning at this point that the nuclear fuel in a reactor can *never* cause a nuclear explosion the type of a nuclear bomb. Building a nuclear bomb is actually quite difficult (ask Iran). In Chernobyl, the explosion was caused by excessive pressure buildup, hydrogen explosion and rupture of all containments, propelling molten core material into the environment (a “dirty bomb”). Why that did not and will not happen in Japan, further below.

In order to control the nuclear chain reaction, the reactor operators use so-called “moderator rods”. The moderator rods absorb the neutrons and kill the chain reaction instantaneously. A nuclear reactor is built in such a way, that when operating normally, you take out all the moderator rods. The coolant water then takes away the heat (and converts it into steam and electricity) at the same rate as the core produces it. And you have a lot of leeway around the standard operating point of 250°C.

The challenge is that after inserting the rods and stopping the chain reaction, the core still keeps producing heat. The uranium “stopped” the chain reaction. But a number of intermediate radioactive elements are created by the uranium during its fission process, most notably Cesium and Iodine isotopes, i.e. radioactive versions of these elements that will eventually split up into smaller atoms and not be radioactive anymore. Those elements keep decaying and producing heat. Because they are not regenerated any longer from the uranium (the uranium stopped decaying after the moderator rods were put in), they get less and less, and so the core cools down over a matter of days, until those intermediate radioactive elements are used up.

This residual heat is causing the headaches right now.

So the first “type” of radioactive material is the uranium in the fuel rods, plus the intermediate radioactive elements that the uranium splits into, also inside the fuel rod (Cesium and Iodine).

There is a second type of radioactive material created, outside the fuel rods. The big main difference up front: Those radioactive materials have a very short half-life, that means that they decay very fast and split into non-radioactive materials. By fast I mean seconds. So if these radioactive materials are released into the environment, yes, radioactivity was released, but no, it is not dangerous, at all. Why? By the time you spelled “R-A-D-I-O-N-U-C-L-I-D-E”, they will be harmless, because they will have split up into non radioactive elements. Those radioactive elements are N-16, the radioactive isotope (or version) of nitrogen (air). The others are noble gases such as Xenon. But where do they come from? When the uranium splits, it generates a neutron (see above). Most of these neutrons will hit other uranium atoms and keep the nuclear chain reaction going. But some will leave the fuel rod and hit the water molecules, or the air that is in the water. Then, a non-radioactive element can “capture” the neutron. It becomes radioactive. As described above, it will quickly (seconds) get rid again of the neutron to return to its former beautiful self.

This second “type” of radiation is very important when we talk about the radioactivity being released into the environment later on.

What happened at Fukushima

I will try to summarize the main facts. The earthquake that hit Japan was 7 times more powerful than the worst earthquake the nuclear power plant was built for (the Richter scale works logarithmically; the difference between the 8.2 that the plants were built for and the 8.9 that happened is 7 times, not 0.7). So the first hooray for Japanese engineering, everything held up.

When the earthquake hit with 8.9, the nuclear reactors all went into automatic shutdown. Within seconds after the earthquake started, the moderator rods had been inserted into the core and nuclear chain reaction of the uranium stopped. Now, the cooling system has to carry away the residual heat. The residual heat load is about 3% of the heat load under normal operating conditions.

The earthquake destroyed the external power supply of the nuclear reactor. That is one of the most serious accidents for a nuclear power plant, and accordingly, a “plant black out” receives a lot of attention when designing backup systems. The power is needed to keep the coolant pumps working. Since the power plant had been shut down, it cannot produce any electricity by itself any more.

Things were going well for an hour. One set of multiple sets of emergency Diesel power generators kicked in and provided the electricity that was needed. Then the Tsunami came, much bigger than people had expected when building the power plant (see above, factor 7). The tsunami took out all multiple sets of backup Diesel generators.

When designing a nuclear power plant, engineers follow a philosophy called “Defense of Depth”. That means that you first build everything to withstand the worst catastrophe you can imagine, and then design the plant in such a way that it can still handle one system failure (that you thought could never happen) after the other. A tsunami taking out all backup power in one swift strike is such a scenario. The last line of defense is putting everything into the third containment (see above), that will keep everything, whatever the mess, moderator rods in our out, core molten or not, inside the reactor.

http://anond.hatelabo.jp/20110314030613

へ続く

2011-02-20

Well-informed people can be trusted with self-government

The ability of people to govern themselves was a major goal of education in Jefferson's mind. The new Federal Constitution of the United States "and a submission to it" proved to Jefferson that "whenever the people are well-informed, they can be trusted with their own government; that whenever things get so far wrong as to attract their notice, they may be relied on to set them to rights." (T.J)

2010-12-06

Wikileakswget -m でページ丸ごとダウンロードする方法

というか表題のコマンドを実行するだけであまり説明することもないが。

wikileaks.org でアクセス出来なくなったのもあり、いつサイト自体が無くなってもおかしくない(まぁ当初からずっとそうだけど)ので興味ある命知らずは丸ごとダウンロードしておくことをおすすめする。


WikileaksPaypal停止と「言論の自由」問題 | WIRED VISION
http://wiredvision.jp/news/201012/2010120523.html

(追記 2010-12-06)今日 wget してみたところ、1,708 ファイルで 67.0MB だった。大体 1 時間位でダウンロード完了できた。


wget の準備

Windowswget ないぜって人はこの辺から落としてこい。


wgetWindows版) - 俺の基地
http://yakinikunotare.boo.jp/orebase/index.php?wget%A1%CAWindows%C8%C7%A1%CB

Mac OS XmacportsLinuxapt-get やら yum やら使って適当インストールしてください。


wikileaks へのリンク

http://wikileaks.org (上述の記事の通り、DNS の登録から外されたらしい)

http://213.251.145.96/(多分本家

http://wikileaks.ch/(ミラーコピーサイト?)


コマンド

mkdir wikileaks

cd ./wikileaks

wget -m http://213.251.145.96/

※ "213.251.145.96" は wikileaks.org の登録元 IP。(だと思う)

あと、wikileaksミラーサイトになってくれるところを募集しているらしいので、更に命知らず(リアル命とセキュリティアタック的な意味で)な人はこの手順に従ってミラーサイトが公開できますよ。ちょいと wikileaks なんとかっていうドメインサーバスペースを契約してミラー作ってあげたらいいんじゃないですかね。


Bash | #### tutorial about how to set up a wikileaks mirr - Wikileaks mirroring tutorial(英語
http://pastebin.com/6q6E3Z0C

ちゃんと匿名ダイアリーで書いてるし(wikileaks.hatena.ne.jp まだかな!)、はてなの人も言論の自由を脅かすなんてことは、おっと誰か来たようだ

2010-11-23

http://anond.hatelabo.jp/20101123015210

>Implementations reading

>font set files must include code to check version numbers so  

→実装読んで、フォントセットのファイルバージョン番号をチェックするコードを含める必要があります

>that if and when the format and therefore the version number changes,

→その場合は、必要な形式とそのバージョン番号の変更

>older implementations will reject newer versions gracefully.

→それ以下のバージョンでの実装では、最新バージョンを拒否します。

 

意味ごとに適度に改行を入れて訳すとわかりやすいぞ

英語わからん (´・ω・`) 助けてくれ

これ訳しているのだけど、文法が全然分からないので困っている。

The Compact Font Format Specification

Page 11


Implementations reading font set files must include code to

check version numbers so that if and when the format and

therefore the version number changes, older implementations

will reject newer versions gracefully.

特にこの部分(´・ω・`)???→ so that if and when the format and therefore 


追記:

どうもありがとう(´・ω・`)

今度から区切るように読んでみます

gracefullyの訳にすごく悩んでいたので感謝です!

2010-07-28

http://anond.hatelabo.jp/20100728210407

logy とついているので、学問関連であることはわかるよね。

それを言い始めたら、伽藍 とか 推測できんのか?って話で 句?の難しさでいわれてもね。

re-play とか 再-再生 とか re-set 再設定 とか 句?が簡単なら推測可能でしょ?

 

aやbには意味が無いけど re とか logyとか 句?になると 意味があるからねぇ。 

2010-07-24

google発のProtocol Buffersについて

オブジェクトシリアライズツールであるプロトコルバッファについて書きます。

プロトコルバッファって何って方はこちらへ

Protocol Buffers 本家

http://code.google.com/apis/protocolbuffers/

XMLはもう不要!? Googleシリアライズツール「Protocol Buffer」

http://journal.mycom.co.jp/articles/2008/07/18/protocolbuffer/index.html

Protocol Buffers (Protocol Buffers の内部解説記事。とても参考になります)

http://dodgson.org/omo/t/?date=20080712

内容

プロトコルバッファは異種言語間でオブジェクトのやりとりをするための規格です。

独自の言語によりオブジェクトインターフェースを規定することで、多言語対応を行っています。

例えばこんな感じ。

  • address.proto
package tutorial;

message Person {
  required string name = 1;
  required int32 id = 2;        // Unique ID number for this person.
  optional string email = 3;

  enum PhoneType {
    MOBILE = 0;
    HOME = 1;
    WORK = 2;
  }

  message PhoneNumber {
    required string number = 1;
    optional PhoneType type = 2 [default = HOME];
  }

  repeated PhoneNumber phone = 4;
}

// Our address book file is just one of these.
message AddressBook {
  repeated Person person = 1;
}

以上のようなprotoファイルから各言語ソースコード、または何らかのデータ操作ライブラリを使いオブジェクトの処理を行います。

googleによってC++, Java, Python用のライブラリ作成されましたが、他の言語対応したサードパーティー製のライブラリがいくらでもあるので、実質的にほぼすべての言語で使えると言っても過言ではありません。

以下はこのライブラリを使ってみた感想などです。

整数型はVarintという可変長型でバイナリに保存される

数字が多きければ大きいほど、長いバイト長で保存されます。ただし、負数の場合符号ビットが立つ関係で、ほとんど常に変換後のバイト数が最長バイト数(10)になってしまいます。フィールドの型をsint32, sint64で宣言しると、各数値にzig-zags変換が行われるため、負数であってもその値の絶対値で使用バイト数が決まるようになります。

保存されるデータは各メッセージID/型/値のみ

バイナリに保存されるデータは各メッセージID/型/値のみです。なので、同じ定義の二つのメッセージ型は、プロトコルバッファ上では全く同じように扱うことが出来ます。例えば、片方からシリアライズしたデータを、もう片方の型でデシリアライズすることが可能です。

またオブジェクト連続シリアライズ/デシリアライズすることもできます。

継承されたクラスマッピング

すでに存在する継承関係のあるクラスを、Protocol Buffersでシリアライズ/デシリアライズしたい場合は次のようにします。

(Base, Derived はすでに存在するとします)

(ソースコード中になぜか日本語が書けないので、コメントはすべて英語になっています)

message PbBase {
        require int32 id = 1;
        require int32 value = 2;

        require Derived derived = 10; // - Point !!!
}

message PbDerived {
        require string string_value = 1;
}

継承元のメッセージ定義に、継承先のメッセージを持たせます。Base継承するクラスシリアライズ/デシリアライズしたい場合は、PbBaseメッセージを中心に処理を行うことで、比較的簡単に処理を実装することが出来ます。

例えばこんな感じ

Base *Base_DeserializeFrom(PbBase &amp;amp;pbobj)
{
    // Arrange the classes which inherits from Base.
    if (pbobj.has_derived()) {
        return new Derived(pbobj);
    }
    else
    ...
}

class Base {
    ...
    virtual void Base::SerializeTo(PbBase &amp;amp;pbobj) {
        // Set the fields of 'pbobj',
    }
    ...
};

class Derived {
    ...
    virtual void Base::SerializeTo(PbBase &amp;amp;pbobj)
    {
        PbDerived *derived = pbobj.mutable_derived();

        Base::SerializeTo(pbobj);
        // Set the fields of 'derived',
        ...
    }
    ...
};

protoファイルを以下のように書くと、メッセージの扱いが非常に難しくなります。

message PbBase {
        require int32 id = 1;
        require int32 value = 2;
}

message PbDerived {
        required PbBase base = 1; // - Here is the point !!!
        require string string_value = 2;
}

2010-05-15

起業するなら心に留めておきたい5つの秘訣

1. ビジネスを立ち上げる日を設定する。BeckySheila場合は、5月会社をその年の9月に設立すると決めた。最初は「どんなにか大変だろう」と思ったのだが、それほどでもないことに気づいたが、日付にはこだわった。信念を持って計画を達成しよう。

2. 自分たちに完璧を求めないこと。努力するのはよいことだけど、顧客のための自分のドアを開く方法を見つけた方がよい。

3. テスト期間中に収益をあげよう。ビジネスを立ち上げ、ビジネスを始めるときには、すでに顧客からのフィードバック、何を売るのか、何に優れているのか、何が収益が高いのか、自分が何がしたいのか、ということが土台になっているように。

4. 狭いターゲットに絞ろう。これは非常に難しいことだ。なぜなら、人間の傾向として、巨大な市場の後についていって成長するほうが簡単だと、考えがちだからだ。小さな市場サービス提供するという信念は、最もよいチャンスに注力することや、とてもよい製品ソリューションを作るときに役立つはずだ。そうすれば顧客クチコミによってそれを広め売上がついてくるだろう。

5. 顧客課題を解決するために自分たちのツールを売り込むことよりも、顧客課題自体に集中しよう。この心構えは、ビジネスプランを練ったり、製品顧客ニーズに合わせることに役立つはずだ。これは、異なる製品サービスビジネスを成長させるためのソリューションになるかもしれないということを気づかせるかもしれない。

http://d.hatena.ne.jp/momoco-f/20100507/1273163950

5 Secrets from a Profitable Start-Up business

 A year ago, Becky McCray and Sheila Scarborough were entrepreneurs with their own businesses who attended the SOBCon conference and decided to partner to start a business. By September 2009, they had launched Tourism Currents to teach tourism professionals how to use social media. In their first month, they generated a profit. Today, they came back to SOBCon and shared the secrets of their success, with the caveat ? these are not rules, the path has not been perfect, but it worked for them, so it could work for you too:

 

 1.Set a deadline to launch your business. They decided in May that they would launch in September, and stuck to the deadline even as they learned their initial expectations of “How hard could it be?” were inaccurate. Push forward and…

 2.Don’t expect perfection of yourself. It is good to strive for this, but is better to find a way to open your doors to customers so you can…

 3.Generate revenue while you test. Launch and iterate on your business based on feedback from your customers, what sells, what you’re good at, what is profitable, what you want to do.

 4.Solve for a narrow target. This is very difficult because our natural tendency is to think it is easier to grow by going after a big market. Trust that solving for a narrow market helps you focus on the best opportunities and will help you create great products and solutions that your customers help you sell through word of mouth.

 5.Focus on your customer’s problems rather than the tools you’re selling to solve them. Having this mindset allows you to evolve both your business plan and products to meet their needs. This allows you to see that a different tool (your product or service), rather than a better one, might be the solution that helps you grow your business.

 http://blog.quickbooksonline.com/2010/05/01/5-secrets-from-a-profitable-start-up-business/

2010-04-24

test

ルータメーカーサイトファームウェアを最新バージョンにするか、自動チューニング機能の設定を変更(無効にするなど)してみるといいかもしれません。

ルーターファームウェアアップデートする方法は、説明書なりメーカーのサイトなりに書いてあるでしょうからそちらを見てもらうとして、自動チューニング機能の設定を変更する方法ですが、

http://ascii.jp/elem/000/000/106/106192/

スタートメニューから「すべてのプログラム」→「アクセサリ」→「コマンドプロンプト」を右クリックし、「管理者として実行」を選択する。 続いて、「netsh interface tcp set global autotuninglevel=disabled」と入力すればいい。元に戻す場合は「netsh interface tcp set global autotuninglevel=normal」と入力する。

http://journal.mycom.co.jp/articles/2010/01/20/w7/index.html

受信ウィンドウ自動チューニングレベルを調整するには、「netsh interface tcp set global autotuninglevel={設定値}」と実行します。設定可能な値は下記のとおり。

「autotuninglevel」の設定値

disabled:自動最適化を無効にします

highlyrestricted:既定値より受信ウィンドウ保守的に拡大します

restricted:既定値より受信ウィンドウを制限的に拡大します

normal:既定値に戻します

experimental:実験的なシチュエーションで使用します

通常は「restricted」もしくは「highlyrestricted」を選び、先のコマンドを実行しますが、どちらがベストなのか、もしくは自動最適化を無効にした方が速くなるのかと、どの設定値を選ぶべきかは環境によって異なります(図15)。

これでも駄目な場合、もしかすると下記リンクが参考になるかもしれません。

http://questionbox.jp.msn.com/qa5697109.html

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