After saving more than 9400 images in my photos album, of my iPod Touch 3G, it is corrupted off a sudden!
In fact, it is not all of a sudden. It started getting sluggish when the album has enough number of images (cannot even remember since how many), each time when I try to view the images in the photos album, after saving some images from the internet, it starts "rebuilding the library", and also "updating library, this may take a few minutes". The more images there are, the longer time it takes before I can view the new images, or the whole album.
Finally, the crises came when there are over 9500 (not sure of the exact number though) images, it starts this "rebuilding the library", and also displaying "updating library, this may take a few minutes" at the same time. But as soon it is over, and the album is viewed, the same process starts again. By the way, it is not a few minutes each time it tries, maybe more than 10, but never cared to time it.
After searching around, found this iPhone PC Suite. This is really an angel sent from heaven! Some how the version I downloaded is in Chinese, but it works perfectly. I can view the contents of the photo album. The only thing I needed to do is to delete some of the images, actually moved to other places. After that, the iPod started the same ritual again. But this time the album can be viewed! The only change is that the icon of the album is changed.
By the way, according to "iPhoto 6 and later: Rebuilding the iPhoto library" in Apple's support page, rebuilding the library may resolve issues such as the library appearing to be unreadable, missing photos, or other issues related to reading the iPhoto library structure. My guess is that "other issues" include increase of large number of photos (images). Although the detailed specification is not clear, my experiences show that a few dozen more new images can cause it to start rebuilding the library.
According to the page above, it looks like Apple's iPhoto (part of iLife) can also solve this problem. But, the bad news is that it only works on Mac! And what's worse, it is not free.
Upon more search, found out that this "updating library" happens after synchronization with iTune too. Somebody reported that all the music was gone. By somebody's effort, it showed that it happens after the number of songs increases to certain range. For somebody, it disappears after "rebooting" the device, and restore with iTunes. In fact, the "lost" music had not been lost. It should be just the corruption of iPhod's data or file structure. The files are there, just not accessible by iOs.
iPhoneやiPod Touchの写真(Albumに保存されている画像)が突然見れなくなることはありませんか。実際iPod Touchで9400枚以上の画像を保存してから、Albumは全く見られなくなりました。救済方法はいくつあるようですが、iPhone PC Suiteは一番簡単でした。どうも見られなくなる原因はOSの画像・フォトライブラリの管理ソフトにバグがあるように思います。その根拠は、写真・画像の数が千枚になると、新規に複数の写真を保存するたびに、画像の管理情報を再構築するように見えて、数分にわたって、システムが固まってしまいます。処理中のメッセージは表示されますが、時間がかかり過ぎて、壊れてしまっているのではないかと心配させられます。
因みにiPhotoでも問題回避できるそうですが、Macを持っていないので、実証できていません。
Wednesday, April 4, 2012
Tuesday, April 3, 2012
Hacker's Delight ハッカーの楽しみ
この本は計算機のリソース(メモリ、時間など)の利用を最大限に最適化するための、ハッキングに使い凄技が満載です。特に感心させられるのは、単純なシフトや論理演算(論理和、論理積、排他的論理和、否定)と加・減算だけて、高度な計算を実現してしまうことです。以下は、そのいくつかの例です。
Hacker's Delight is book by Henry S. Warren, Jr.. There is a dedicated website for this book. It has the link to the sample source codes in the book. This book is for C programmers, providing many "superoptimizer" tricks. According to the above site:
一番右側のビットに関する演算一番右の1であるビットをオフ(0)にしたい。ない時には結果が0になる。応用編としては、結果が0である場合、xは2の冪乗であること。
x&(x-1)
符号なしの数値が2^n-1(0とオール1を含む)であるかどうかを確認したい
x&(x+1)
一番右の1であるビットを取り出したい。なければ結果は0である。(例:01011000=>00001000)。
x &(-x)
一番右の0であるビットを取り出した。なければ結果は0である。(例:10100111>00001000)。
~x & (x+1)
後置ゼロ(Trailing Zero)のマスクを作りたい。0の場合オール1になる。(例:01011000=>00000111)。
~x & (x-1)
~(x | -x)
(x&-x)-1
一番右側の1であるビットと後置ゼロのマスクを作りたい。0の場合はオール1になる。(例:01011000=>00001111)
x^(x-1)
一番右側にある1を右一杯に伝播させたい。0の場合ロール1になる。(例:01011000=>01011111)。
x | (x-1)
一番右側の連続1ビットをオフ(0)にしたい。(例:01011000=>01000000)。これの応用は負ではない数値は2^j-2^k(j>=k>=0; ^は冪乗)の形であるかどうかを確認することです。結果は
0であれば、真です。
((x|(x-1))+1)&x
上記の計算式は「対」でもある。つまり、1を0で置き換えれば、また、x-1をx+1、x+1をx-1、-xを~(x+1),&を|、|を&0で置き換えて、xと~xをそのままにすれば、に対する記述・判別しきになる。
例えば、以下の式は一番右側の0をオン(1)にすることができる。(例:10100111=>10101111)。
x | (x+1)
左ローテートシフト。Xは符号なしである。
(x<<n)|(x>>(32-n)
右ローテートシフト。。Xは符号なしである。
(<>>n)|(x<<(32-n)
変数(x)に2つの値(aとb)を交代に代入したい
x <- a + b - x
x <- a^b^x
これは、以下のコードより効率的である
if (x == a) x = b;
else x = a;
ある2の冪乗に繰り上げ、繰り下げたい。例えば、2のK乗の場合。
繰り上げ:x&((-1)<<k)
あるいは、(x>>k)<<k ここで、>>は論理右シフトです(0で埋める)
繰り下げ:t<-(1<<k)-1; (x+t)&~t
あるいは、t<-(-1)<<k; (x-t-1)&t
次の2の冪乗に繰り上げたい
x = x|(x>>1);
x = x|(x>>2);
x = x|(x>>4);
x = x|(x>>8);
x = x|(x>>16);
x <- (x-(x>>1))
次の2の冪乗に繰り下げたい
x = x-1;
x = x|(x>>1);
x = x|(x>>2);
x = x|(x>>4);
x = x|(x>>8);
x = x|(x>>16);
x <- (x+1)
1の数を数えたい
x = (x & 0x55555555) + ((x >> 1) & 0x55555555);
x = (x & 0x33333333) + ((x >> 2) & 0x33333333);
x = (x & 0x0F0F0F0F) + ((x >> 4) & 0x0F0F0F0F);
x = (x & 0x00FF00FF) + ((x >> 8) & 0x00FF00FF);
x = (x & 0x0000FFFF) + ((x >>16) & 0x0000FFFF);
パリティを計算したい
x = x ^ (x >> 1);
x = (x ^ (x >> 2)) & 0x11111111;
x = x*0x11111111;
p = (x >> 28) & 1;
先行ゼロ(Leading Zero)の数を数えたい。NLZ(Number of Leading Zero)
x = x - ((x >> 1) & 0x55555555);
x = (x & 0x33333333) + ((x >> 2) & 0x33333333);
x = (x + (x >> 4)) & 0x0F0F0F0F;
x = x + (x << 8);
x = x + (x << 16);
n <- (x>>24)
NLZをつかて、2を底とするlogを計算できる
31-nlz(x)<log2(x)<32-nlz(x-1)
後置ゼロを数えたい
32-nlz(~x&(x-1))
Hacker's Delight is book by Henry S. Warren, Jr.. There is a dedicated website for this book. It has the link to the sample source codes in the book. This book is for C programmers, providing many "superoptimizer" tricks. According to the above site:
A superoptimizer is a program that makes a serious attempt at finding optimal code, in the sense of a minimal number of instructions, for a given function. It works by trying all sequences of computational instructions of a given length, simulating each sequence for various inputs, until it finds (stumbles on) a sequence that matches a given user-defined function.The site above also contains a link to "Pokerlistings Odds Calculator", which is a fun site for gamblers.
Friday, March 23, 2012
Happiness and Satisfaction - from the Sudden Death of Whitney Houston
&npbsp; The sudden death of Whitney Houston is both a shock to the public, and somehow expected tragedy, give the ups and downs of her recent life. There had even been a wrong report about her death in 2001, close to 10 years ago. What's ironic though, she will be valued much more than when she was alive from now on, just all of the famous artists in the history.
&npbsp; Her sudden departure from this material world remind one how much difficult for human being to really appreciate this particular material world. Having been extremely successful in her career, one can easily imagine the fortune she have made from her success. A happy marriage with a similarly famous and successful person makes people expect even more happiness for her. Yet, in reality, it has turned out to be totally different.
&npbsp; No need to say, every family, every individual encounters all kinds of problems. It is not "sour grape" to think more about those endured by more successful people. Rather, this particular example shows how hard it is not to have worries, anxieties, perplex about our life, no matter how rich one can get in terms of material.
"Material Things Will Not Bring You Happiness" (backup) in "The Teenager's Guide to the Real World online", there are detailed descriptions about "happiness" and its relationship with all kinds of materials. In fact, this is not only for teenage, but also for adult people of all ages.
&npbsp; The GNH (Gross National Happiness) advocated by Bhudan's King is more holistic and psychological terms than only the economic indicator. But it is no doubt an important indicator of the most important aspect of our life, with a more general definition for holistic and psychological.
(updated on Mar. 22)
According to TMZ, "The L.A. County Coroner has just released the singer's official cause of death -- accidental drowning ... but the report also notes heart disease and cocaine use were contributing factors to Whitney's demise. ". ... "Officials say Houston also had traces of marijuana in her system ... as well as Xanax (anxiety medication), Flexeril (muscle relaxer) and Benadryl (allergy medication)." How sad it is. Drug starts everything evil, and ends what should not have ended.
&npbsp; Her sudden departure from this material world remind one how much difficult for human being to really appreciate this particular material world. Having been extremely successful in her career, one can easily imagine the fortune she have made from her success. A happy marriage with a similarly famous and successful person makes people expect even more happiness for her. Yet, in reality, it has turned out to be totally different.
&npbsp; No need to say, every family, every individual encounters all kinds of problems. It is not "sour grape" to think more about those endured by more successful people. Rather, this particular example shows how hard it is not to have worries, anxieties, perplex about our life, no matter how rich one can get in terms of material.
"Material Things Will Not Bring You Happiness" (backup) in "The Teenager's Guide to the Real World online", there are detailed descriptions about "happiness" and its relationship with all kinds of materials. In fact, this is not only for teenage, but also for adult people of all ages.
&npbsp; The GNH (Gross National Happiness) advocated by Bhudan's King is more holistic and psychological terms than only the economic indicator. But it is no doubt an important indicator of the most important aspect of our life, with a more general definition for holistic and psychological.
(updated on Mar. 22)
According to TMZ, "The L.A. County Coroner has just released the singer's official cause of death -- accidental drowning ... but the report also notes heart disease and cocaine use were contributing factors to Whitney's demise. ". ... "Officials say Houston also had traces of marijuana in her system ... as well as Xanax (anxiety medication), Flexeril (muscle relaxer) and Benadryl (allergy medication)." How sad it is. Drug starts everything evil, and ends what should not have ended.
America - a Free Country? アメリカは自由な国?
Is America a free country?
アメリカは自由な国でしょうか。
One has no freedom of choice, when going through security check at the airport. One must take off his/her belt, shoes, and some must be scanned FULLY including under wears.
空港にいったら、いくつかの自由がなくなってしまいます。セキュリティチェックで、ベルトから靴まで脱がなければいけません。人によっては、下着(それ以上?)まで見られる全身スキャナーで検査されます。
似たようなことで、バスケゲームを見に行っても、金属探知ゲートを通らなければいけないし、鞄は持ち込み禁止です。
One has no freedom of keeping privacy, when going to a wash room (aka toilet). Anybody sitting in the neighboring cube can see part of his/her legs, hence identification. There is therefore no secret of daily bowel movement, or how things are getting OUT.
トイレに入ると、すべてのドアや壁の下は開いています。中で用を足している人のスネから下が丸見えなのですから、30センチ〜50センチは空いています[5]。ドアに隙間もありまして、角度によっては中をのぞけます。
アメリカは自由な国でしょうか。
One has no freedom of choice, when going through security check at the airport. One must take off his/her belt, shoes, and some must be scanned FULLY including under wears.
空港にいったら、いくつかの自由がなくなってしまいます。セキュリティチェックで、ベルトから靴まで脱がなければいけません。人によっては、下着(それ以上?)まで見られる全身スキャナーで検査されます。
似たようなことで、バスケゲームを見に行っても、金属探知ゲートを通らなければいけないし、鞄は持ち込み禁止です。
One has no freedom of keeping privacy, when going to a wash room (aka toilet). Anybody sitting in the neighboring cube can see part of his/her legs, hence identification. There is therefore no secret of daily bowel movement, or how things are getting OUT.
トイレに入ると、すべてのドアや壁の下は開いています。中で用を足している人のスネから下が丸見えなのですから、30センチ〜50センチは空いています[5]。ドアに隙間もありまして、角度によっては中をのぞけます。
References
Saturday, February 25, 2012
Tips on Blog Edition on Blogger.
The original Blogger Tips and Tricks is probably the best place to go for looking for ways of editing a blog on Blogger.com with one's own style.
Quick Blog Tips - Bogging Tips to Make your Blog Stand Out is not really on blogging on Blogger, but for writing good blogs that will attract people to read.
クリボウの Blogger Tips は日本語のサイトで、Bloggerで記事を書くときのコツを随時紹介しています。
Quick Blog Tips - Bogging Tips to Make your Blog Stand Out is not really on blogging on Blogger, but for writing good blogs that will attract people to read.
クリボウの Blogger Tips は日本語のサイトで、Bloggerで記事を書くときのコツを随時紹介しています。
Tuesday, February 21, 2012
バス路線図・時刻表
バスは便利ですが、本格的に使おうと思うと、意外と分かりにくいです。どこに何のバスがあり、どこまでいけるかなどは、なかなか分かりません。
東京都にあるバスならば、東京都交通局のホームページで、いろいろと役立つ情報を見付けられます。同ホームページでは、品川、渋谷、新宿、池袋、上野、浅草、錦糸町、亀戸、東京夢の下町バスなどのエリア別のバス路線図をダウンロードできます。
fugutaさんが作成された「一般路線バス」は、全国都道府県の路線バスをまとめてあります。そのキャッシュは以下にあります(2012年2月21日現在)。
NAVITIME社の「バス時刻表」では、全国のバス時刻表を調べられます。
東京バス案内WEBでは、東京における一般路線バス、高速バス、深夜急行バス、空港連絡バス、貸切バスなどの情報を調べられます。一般路線バスについては、停留所名、ターミナル駅、住所、施設と地図などからバスの路線を検索でします。他の種類のバスについても、地方と県名で検索できます。
ekitan(路線バスの時刻表)では、首都圏、関西、東北、九州について、バス会社とバス停名でバス停の時刻表を検索できます。
会社別では、西武バス、国際航業バス、小田急バス、東急バス、横浜市営バス、阪急バス、京王電鉄、京浜急行バス、千葉&葛飾路線バス、新潟交通バス、関東バス、三重交通バス、旭川バスなどの専用サイトがあります。
東京都にあるバスならば、東京都交通局のホームページで、いろいろと役立つ情報を見付けられます。同ホームページでは、品川、渋谷、新宿、池袋、上野、浅草、錦糸町、亀戸、東京夢の下町バスなどのエリア別のバス路線図をダウンロードできます。
fugutaさんが作成された「一般路線バス」は、全国都道府県の路線バスをまとめてあります。そのキャッシュは以下にあります(2012年2月21日現在)。
北海道・東北、関東、甲信越・北陸、東海、近畿、中国、四国、九州、沖縄
NAVITIME社の「バス時刻表」では、全国のバス時刻表を調べられます。
東京バス案内WEBでは、東京における一般路線バス、高速バス、深夜急行バス、空港連絡バス、貸切バスなどの情報を調べられます。一般路線バスについては、停留所名、ターミナル駅、住所、施設と地図などからバスの路線を検索でします。他の種類のバスについても、地方と県名で検索できます。
ekitan(路線バスの時刻表)では、首都圏、関西、東北、九州について、バス会社とバス停名でバス停の時刻表を検索できます。
会社別では、西武バス、国際航業バス、小田急バス、東急バス、横浜市営バス、阪急バス、京王電鉄、京浜急行バス、千葉&葛飾路線バス、新潟交通バス、関東バス、三重交通バス、旭川バスなどの専用サイトがあります。
Tuesday, February 14, 2012
False Alarm of Disabled AdSense Account by Webmail Notifier?
After installing the Firefox Add-on "Webmail Notifier" (Ver. 2.9.2), I suddenly got the following message, when jumping to my AdSense account from www.blogger.com. Having done absolutely nothing for any invalid clicking for the ads on my blogs, and having received no mails from Google, I was deeply puzzled and perplexed. After trying a few more times with the same failure, suddenly I started to suspect the newly added Add-on. Because I have added the Gmail address for my AdSense account their too. When tried to with Chrome browser, I was tremendously relieved to see my AdSense again. What a surprise!
Still no idea why AdSense is so upset with this operation though.Account DisabledYour AdSense account for this login is currently disabled. We recommend checking your email inboxes for any messages we may have sent you regarding your account status. Sometimes our messages can be caught by email filters, so please be sure to check the Bulk/Spam folders of your email accounts as well.
If your account was disabled for invalid click activity, please visit our Disabled Account FAQ for more information.
Return to AdSense home.
Monday, February 13, 2012
Why My Computer Is So Slow? コンピューターが遅い原因
自分のPCは時々妙に遅くなったことについて悩んだことはありませんか。最新のCPUが搭載で、メモリもそこそこ入っていて、そして大したアプリを動かしていないのに、何故かシステムの反応は鈍いです。
その原因は色々あります。例えば、メーカーによって、ウイルススキャナーが一所懸命ウイルスのスキャンをしている間は、システムの反応が遅くなる場合があります。また、アプリケーションによって、巨大なメモリを使うこともあります。
しかし、一つ日常に遭遇する使い方でコンピューターが簡単に遅くなってしまうことがあります。それは、インターネットブラウザーです。そう、その何でもないアプリケーションは、実はメモリを馬鹿食いしています。試しに5,6個のタブを開いてみて、タスクマネージャーで見てみればすぐ分かります。IEであろうが、Firefoxであろうが、Chromeであろうが、皆似たよものです。それで簡単に600メガバイトかそれ以上メモリが占領されてしまいます。
ホームページによって、100メガパイと以上のメモリを使ってしまう場合もあります。さらに、プラグインなんかもメモリリークのような動きをし、いつの間にかすべてのメモリを使い果たしてしまうこともあります。それで、システムはハードディスクを仮想メモリとして使い始めて、すべての処理・操作は遅くなってしまいます。
もしXPのユーザーであれば、悲惨なことに、一旦上記のモードに入ると、システムを再起動しない限り、どんなにアプリケーションを落としても、永遠に遅いままになります。
結論、ウェブブラウザーを使う時に、見ないタブをこまめに閉じることです。
[追記]
今日は、一つメモリの大食い王を見付けました。XPのPCでChrome(Ver16.0.912.75 m)を使っていたら、何故かPF使用量は3.5G以上になってしまい、PC全体はめちゃくちゃ遅くなりました。タスクマネージャで見ると、あるChromeのタスクは369MBも食っていることを判明しました(下の画面)。Chromeのプロセスだけで、合計741MB以上使っていることになっています。
そんなバカな...!!!!
それで、オープンした7個のTabのどれがその元凶なのかを調べることにしました。方法はタブを一つずつ閉じることです。
あるページまで来たら、タブの終了は全然終わらなくなりました。そこまでは、問題のメモリ大食い王はまだ居座ったままです。そこから不思議なことが起こりました。その大食い王が使っているメモリは369MB徐々に増え始めました!暫く待っていると、411MB まで上昇しました。これでは、話にならないと思い、そのプロセスをタスクマネージャから終了させました。
その後、Chromeの別のタブから、「次のプラグインがクラッシュしました:Shockwave Flash」というメッセージが表示されました。そのShockwave Flashはどんな馬鹿なことをしているかはとても想像がつきません。
もっと言う、今のウェブアプリ、ブラウザのプラグインやサーバー上にあるすべてのアプリを含め、作りは想像を絶するほど雑で、品質の「ひん」も言えない粗悪のものです。実情をよく分かったら、きっと大金を払って買った人立ちは激怒するでしょう。
Being a heavy Windows PC user, from time to to time I am frustrated by the slow response of the system. When searching around for the reasons, one common advise is to check for virus or mal-ware. But ironically, adding another piece of software that runs constantly on my PC will only further slow down it. What's worse, nothing evil has ever been found!
One culprit that tends to be forgotten is the internet browser most user use daily. It is true that most of the browsers are making great progresses so that they are more and more user friendly. But everything has a price. The price everybody is paying is the work load it has brought to the computer.
Nowadays, almost all browsers have tab pages for different site visiting. The tab feature is truly convenient because one can keep track of different pages without having to switch or finding widows for each one. But, each innocent looking tab is actually a "memory monster", eating up dozens of mega byte memory. Since the tab feature is so handy, one usually ends up opening many sites with the same browser without realizing it. The result? The browser can easily use a few hundred mega bytes of memory.
For a computer with 4GB on board memory, this does not sound like a disaster yet. But, remember for a 32 bit Windows operating system, only more than 3.2 gigabyte of memory can be used. The operating system by default can use from over 500 megabyte to over 1 gigabyte memory, depending on the versions. If some fancy, but mostly useless default applications (also the notorious services) have been installed, about 1.5 gigabyte memory may have already been occupied.
The other pitfall of the modern software is that every one is designed with the consumption of infinitive amount of on-board memory. Little efforts haven spent on saving required memory. Only the speed of development, outlook of the user interface are pursued to their maximum, but none for the resources (e.g. file size, memory used). As a result, every software including the frequently used mailing software (e.g. Microsoft Outlook), word processing or presentation software (e.g. Microsoft Office) consumes memory like nobody can imagine. In no time since one started one's computer, all of the on board memories are used up. Then, the system starts to use the hard disk as memory, which puts the computer at a speed of stone age.
Things get worse when one try to switch to another software that has been started, but not used for a while. The system then tries to push what is active to hard disk, and load what was in the hard disk back to on board memory, freezing everything on the screen. Sometimes even the mouse cursor.
To prove my point. Below is the screen capture of the task manager on one pc. The "chome" tasks circled in the red lines are by the five (5 only!) tabs in the only one Chrome Window. Why there are 11 of them when there are only 5 tabs?! To dramatize the result, the total memory used is: 19+17+42+23+7+55+33+91+81+194+9=571 mega-bytes! It is not even showing all the memory it is using. Isn't this freaking crazy? This is an example of Chrome, but any other browsers are as bad as this. Maybe there are some funcky options for optimizing memory usage, but who on earth has the time to dig them out?
Similarly, when using Google Map in a browser, activating Google Earth plugin, about 200 megabyte memory will be used. After surfing the web for some time with both Chrome and Internet Explorer, I found out that the total memory used has reached 2.77 gigabyte, even though the total tabs are only three for each browser. Then I tried to close both browsers. Guess what? The total memory used became 1.4 gigabyte. So, about 1.4 gigabytes have been used by these two browsers! By the way, this was done on a computer with Windows XP. Windows 7 will be less obvious as memory usage is displayed in a different fashion.
The conclusion: be aware of the heavy users of your precious memory. When you feels that the computer is getting slow, make sure that you are not opening too many pages with your browser. This can be a very quick solution. And remember that the browser tends to hold up the memory even if most of the tabs are closed. In that case, just close the whole browser, and some times you have to make sure that the (ghost) process is not there by the task manager.
----Updated on Feb.12, 2011----
searchindexer.exe, a program for "windows search" service, takes about 50MB. There has been many posts about how this program consumes huge resources and how beneficial it is to stop this service. But this guy is needed at least by Microsoft Outlook, even for its "quick search".
Talking about Outlook, it eats up about 50MB by just starting.
Internet Explorer (Ver. 8.0.6001.18702) shows 25+88MB of used memory by opening only one page. After opening one more tab and browsing for a while, about 180MB is gone!
With Firefox Ver. 10.0, opening a window with 3 tabs caused a memory usage jump by about 200MB! And right after opening the window then exit the application, 20MB seems to be missing, when checking with the "PF Usage" of task manager's "Performance" tab. Maybe this guy is not precise at all. But one serious problem with many applications is their lack of cleaning up after termination. It simply means that some memory will "disappear" thereafter. As a result, no matter how much memory has been installed, the system will eventually turns into "swap" mode, using hard disk as system memory. All of a sudden, everything becomes noticeably slow. In this case, the "CPU Usage History" of task manager shows very little activities, but all programs seems to be working very very hard, taking long time before responding to any operations.
その原因は色々あります。例えば、メーカーによって、ウイルススキャナーが一所懸命ウイルスのスキャンをしている間は、システムの反応が遅くなる場合があります。また、アプリケーションによって、巨大なメモリを使うこともあります。
しかし、一つ日常に遭遇する使い方でコンピューターが簡単に遅くなってしまうことがあります。それは、インターネットブラウザーです。そう、その何でもないアプリケーションは、実はメモリを馬鹿食いしています。試しに5,6個のタブを開いてみて、タスクマネージャーで見てみればすぐ分かります。IEであろうが、Firefoxであろうが、Chromeであろうが、皆似たよものです。それで簡単に600メガバイトかそれ以上メモリが占領されてしまいます。
ホームページによって、100メガパイと以上のメモリを使ってしまう場合もあります。さらに、プラグインなんかもメモリリークのような動きをし、いつの間にかすべてのメモリを使い果たしてしまうこともあります。それで、システムはハードディスクを仮想メモリとして使い始めて、すべての処理・操作は遅くなってしまいます。
もしXPのユーザーであれば、悲惨なことに、一旦上記のモードに入ると、システムを再起動しない限り、どんなにアプリケーションを落としても、永遠に遅いままになります。
結論、ウェブブラウザーを使う時に、見ないタブをこまめに閉じることです。
[追記]
今日は、一つメモリの大食い王を見付けました。XPのPCでChrome(Ver16.0.912.75 m)を使っていたら、何故かPF使用量は3.5G以上になってしまい、PC全体はめちゃくちゃ遅くなりました。タスクマネージャで見ると、あるChromeのタスクは369MBも食っていることを判明しました(下の画面)。Chromeのプロセスだけで、合計741MB以上使っていることになっています。
そんなバカな...!!!!
それで、オープンした7個のTabのどれがその元凶なのかを調べることにしました。方法はタブを一つずつ閉じることです。
あるページまで来たら、タブの終了は全然終わらなくなりました。そこまでは、問題のメモリ大食い王はまだ居座ったままです。そこから不思議なことが起こりました。その大食い王が使っているメモリは369MB徐々に増え始めました!暫く待っていると、411MB まで上昇しました。これでは、話にならないと思い、そのプロセスをタスクマネージャから終了させました。
その後、Chromeの別のタブから、「次のプラグインがクラッシュしました:Shockwave Flash」というメッセージが表示されました。そのShockwave Flashはどんな馬鹿なことをしているかはとても想像がつきません。
もっと言う、今のウェブアプリ、ブラウザのプラグインやサーバー上にあるすべてのアプリを含め、作りは想像を絶するほど雑で、品質の「ひん」も言えない粗悪のものです。実情をよく分かったら、きっと大金を払って買った人立ちは激怒するでしょう。
Being a heavy Windows PC user, from time to to time I am frustrated by the slow response of the system. When searching around for the reasons, one common advise is to check for virus or mal-ware. But ironically, adding another piece of software that runs constantly on my PC will only further slow down it. What's worse, nothing evil has ever been found!
One culprit that tends to be forgotten is the internet browser most user use daily. It is true that most of the browsers are making great progresses so that they are more and more user friendly. But everything has a price. The price everybody is paying is the work load it has brought to the computer.
Nowadays, almost all browsers have tab pages for different site visiting. The tab feature is truly convenient because one can keep track of different pages without having to switch or finding widows for each one. But, each innocent looking tab is actually a "memory monster", eating up dozens of mega byte memory. Since the tab feature is so handy, one usually ends up opening many sites with the same browser without realizing it. The result? The browser can easily use a few hundred mega bytes of memory.
For a computer with 4GB on board memory, this does not sound like a disaster yet. But, remember for a 32 bit Windows operating system, only more than 3.2 gigabyte of memory can be used. The operating system by default can use from over 500 megabyte to over 1 gigabyte memory, depending on the versions. If some fancy, but mostly useless default applications (also the notorious services) have been installed, about 1.5 gigabyte memory may have already been occupied.
The other pitfall of the modern software is that every one is designed with the consumption of infinitive amount of on-board memory. Little efforts haven spent on saving required memory. Only the speed of development, outlook of the user interface are pursued to their maximum, but none for the resources (e.g. file size, memory used). As a result, every software including the frequently used mailing software (e.g. Microsoft Outlook), word processing or presentation software (e.g. Microsoft Office) consumes memory like nobody can imagine. In no time since one started one's computer, all of the on board memories are used up. Then, the system starts to use the hard disk as memory, which puts the computer at a speed of stone age.
Things get worse when one try to switch to another software that has been started, but not used for a while. The system then tries to push what is active to hard disk, and load what was in the hard disk back to on board memory, freezing everything on the screen. Sometimes even the mouse cursor.
To prove my point. Below is the screen capture of the task manager on one pc. The "chome" tasks circled in the red lines are by the five (5 only!) tabs in the only one Chrome Window. Why there are 11 of them when there are only 5 tabs?! To dramatize the result, the total memory used is: 19+17+42+23+7+55+33+91+81+194+9=571 mega-bytes! It is not even showing all the memory it is using. Isn't this freaking crazy? This is an example of Chrome, but any other browsers are as bad as this. Maybe there are some funcky options for optimizing memory usage, but who on earth has the time to dig them out?
Similarly, when using Google Map in a browser, activating Google Earth plugin, about 200 megabyte memory will be used. After surfing the web for some time with both Chrome and Internet Explorer, I found out that the total memory used has reached 2.77 gigabyte, even though the total tabs are only three for each browser. Then I tried to close both browsers. Guess what? The total memory used became 1.4 gigabyte. So, about 1.4 gigabytes have been used by these two browsers! By the way, this was done on a computer with Windows XP. Windows 7 will be less obvious as memory usage is displayed in a different fashion.
The conclusion: be aware of the heavy users of your precious memory. When you feels that the computer is getting slow, make sure that you are not opening too many pages with your browser. This can be a very quick solution. And remember that the browser tends to hold up the memory even if most of the tabs are closed. In that case, just close the whole browser, and some times you have to make sure that the (ghost) process is not there by the task manager.
----Updated on Feb.12, 2011----
searchindexer.exe, a program for "windows search" service, takes about 50MB. There has been many posts about how this program consumes huge resources and how beneficial it is to stop this service. But this guy is needed at least by Microsoft Outlook, even for its "quick search".
Talking about Outlook, it eats up about 50MB by just starting.
Internet Explorer (Ver. 8.0.6001.18702) shows 25+88MB of used memory by opening only one page. After opening one more tab and browsing for a while, about 180MB is gone!
With Firefox Ver. 10.0, opening a window with 3 tabs caused a memory usage jump by about 200MB! And right after opening the window then exit the application, 20MB seems to be missing, when checking with the "PF Usage" of task manager's "Performance" tab. Maybe this guy is not precise at all. But one serious problem with many applications is their lack of cleaning up after termination. It simply means that some memory will "disappear" thereafter. As a result, no matter how much memory has been installed, the system will eventually turns into "swap" mode, using hard disk as system memory. All of a sudden, everything becomes noticeably slow. In this case, the "CPU Usage History" of task manager shows very little activities, but all programs seems to be working very very hard, taking long time before responding to any operations.
Three true Job Interview Questions
According to LinkedIn, the only three true job interview questions are:
In regard to job interview,
- Can you do the job?
- Will you love the job?
- Can we tolerate working with you?
In regard to job interview,
If you’re the one doing the interviewing, get clear on what strengths, motivational and fit insights you’re looking for before you go into your interviews.
If you’re the one being interviewed, prepare by thinking through examples that illustrate your strengths, what motivates you about the organization and role you’re interviewing for, and the fit between your own preferences and the organization’s Behaviors, Relationships, Attitudes, Values, and Environment (BRAVE). But remember that interviews are exercises in solution selling. They are not about you.
Friday, February 10, 2012
Super Models without Makeup
The article at izisimile.com is what makes people to realize the differences between ideal and reality. When only looking at the photos on the left side, probably nobody can imagine anything of glamor, elegance, or fashion. This shows how makeup, dresses change change people's perspective.
(backup at Gyotaku)
(backup at Gyotaku)
Subscribe to:
Posts (Atom)


