Saturday, November 19, 2011

Pancakes Sorting Algorithm

There is a recent Slashdot article about pancake sorting. Somebody seem to have proved that optimal sorting of pancakes is NP-hard. If you look at the citations in the paper[arxiv], you'll notice the mentioning of a paper by a certain "W. Gates"... the by the very same Bill Gates that everybody knows about.

I mentioned the problem to my father, and he, having a Ph.D. in mathematics came up with the operational gadgetry to perform comparison on any two pancakes, and declared the problem done. Later on he called me and told me to use this problem to attract a date to bed.... sigh.... Btw, his gadget for comparing two pancakes uses only two flips, mine used three. sigh....

So during our latter discussion, as he gave me this great idea, we also chance upon another interesting solution to the sorting problem, which has complexity
O(hλ)

where h is the height of the stack and λ condition number:the ratio of the largest pancake to the smallest pancake in the stack. How? Consider this algorithm:

* Flip the stack side ways so one side of all pancakes are flush
* Flip back upright.
* Cut from flush side λ cuts starting from the flush side towards the non-flush side. The widths of all cut is to be equal. That width can be any width smaller than the width of the smallest pancake. To achieve fewest cut we use the width of the smallest pancake.
* The pieces of pancakes will fall, producing a stack of pancakes including all sizes of original sizes with the largest at the bottom and the smallest at the top.

It takes a small bit of animation skill, which the blogger does not have, to illustrate it. Or if you can just imagine for me.  The rate at which object fall is roughly proportional to the height from which it falls. Since we are on earth, and there is a terminal velocity, the time it will take for all pieces of pancake to fall into place after each cut is height divided by terminal velocity--so linear in height of the stack. since there are λ cuts, the algorithm takes O(hλ) to run. The proof will be in the pudding after breakfast by induction:

Base case: We start with one pancake. Slice laser down at any width less than this pancake's width.The pieces fall to no where and the pancake is now sorted.


Induction Hypothesis: suppose we can sort in n-1 pancakes using the above algorithm using λ laser slices,

Induction Step: W.L.O.G. add one pancake on top of the n-1 stack to create a stack of size n: Suppose the newly added pancake is smaller than the smallest pancake in the existing stack of size n-1. then the problem is solved: Slicing from it's right side keeps it on top, and since new slicing width is same as lower stack's slicing width, using this width to continue slicing will sort the stack of n-1 pancakes below as well.

Suppose the top nth pancake is not the smallest slice in the n-1 stack, let us use the smallest slice width from n-1 stack. By slicing the top pancake by that width creates a new pancake of the smallest size. The remaining portion of the top pancake in the n stack falls down and becomes part of a pancake in an n stack. Note that this operation has swapped the position of the lowest pancake in n-1 stack taking on the smallest size with the top pancake from n stack. Smallest pancake is on top, and we have a stack of n-1 unsorted pancakes. We can proceed using the current width and sort the remaining n-1 pancakes by I.H. in O((h-1)
λn) time. Adding the one cut from this step yields a total of O(hλn) running time.

Q.E.D!

Rule of physics challenge: okay, so the pancake may fall out of order from the torque exerted by gravity as it receives support from only one side. This issue may be mitigated if we set up λ lasers in λ time and perform all of the the slicing simultaneously, thus all pieces fall vertically, solving the torque problem.

Btw, if we do not know lambda, then clearly it takes O(n) time to compute it using the comparison gadget. in that case we have  

O(hλ+2n)
 running time. Linear time is still superior to  O(nlg(n)) using only pair-wise comparisons and swaps.

J. Edgar

I am trying very hard to keep the image of Robert Ebert after his throat cancer surgery out of my head as I sit down and type my thoughts on this movie. I have been having a throat pain on and off for several months now and it is scaring the shit out of me. And why do I taste salt every time I drink water?

Anyway, another image that I have trouble keeping out of my head is Clint Eastwood, the director of this film, chewing the words: "He is a fucking cock sucker!!!"

The simple days... The really simple days when FBI originally started, in the first decade of the 20th century, things seem so simple then. The cars had simple engines... the liquor was hard, and the vegies all organic. And you could meet women in a club and they would offer to warm your bed for ya.

It makes me reflect on today, we are into second decade of the 21st century, at the end of which, will I look back and think, "wow... those were the simple days, they measured computer performance in peta-flops.", and they didn't even have to sign a pre-date to go on a date.

Anyway, snap back to reality, wow! I thought half way into this movie, this whole country is created not by white men, it was created by homosexual men! The film portrays J. Edgar Hoover, founding director of the FBI and Clyde Tolson, founding Associate director of the same TLA as homosexual couples. Various reports (wiki) quotes Clint Eastwood saying that he chose the script because it was not homosexual! But that was clearly a statement of the opposite, that the script did not focus on his homosexuality.

Was the script a PSA (public service announcement) for personal fitness? Because Clyde got a stroke for saying that he doesn't like to exercise and Hoover dies hours after revealing that he wasn't working out either to Clyde.

Because it wasn't a promo piece for the FBI either. Though it did show that the underlines, the nameless agents do do good work that hoover takes credit for.

I don't know why, but I have a fairly positive impression of the FBI, despite my deep seeded hatred for spying of all form be it organized or disorganized, effective or ineffective, and government sanctioned or not. So the movie is a slight understatement there for me too.

Perhaps it is for the best that the movie does not go into great detail about the things that we find lacking. The details of his extortions, the details of his relationship with Clyde, the details of all the political struggles that he won.

Btw, did Rober Ebert get throat cancer from HPV when he had oral sex with his black wife or through his promiscuous Hollywood lifestyle?... sorry, my most feared thoughts escape my skull some times...

The movie overall felt like it fits the demographics--most of the people in the audience, me excluded, were older couples same age as the dying Hoover. People from a simpler times... like when in a hundred years they'll complain about lack of details: "oh man, that old geezer is posting into a blog about his java code about such a simple system called Hadoop. That's soooo simple and unscalable."

Thursday, November 17, 2011

Email Fraud

I recently received a bounced email on my gmail account. It would appear some body at this IP-address (192.83.180.224) attempted to send an email as me to jobs@selabs.com. that IP-address is in the range 192.83.180.* registered to "Ministry of Education Computer Center, Taipei Taiwan" There is a middle man (87.98.235.52) which is ovh.net a polish web hosting company located in France.

I'm actually kind of flattered that somebody from taiwan's ministry of education wanted to send email as me. But I do not appear to have any apparent relevant skills for the company selabs.com. This is very odd. I should ask my taiwaneese roommate if he's playing a prank on me, or if I should ask friends at gmail how serious this is to my online identity?



from: Mail Delivery Subsystem mailer-daemon@googlemail.com
to: huan.chang@gmail.com
date: Wed, Nov 16, 2011 at 12:45 PM
subject: Delivery Status Notification (Failure)
mailed-by: googlemail.com
: Important mainly because of the people in the conversation.

Delivery to the following recipient failed permanently:


    jobs@206.65.164.155


Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 550 550 5.1.1 Mail Refused - Address <jobs@selabs.com> Recipient Unknown (state 14).


----- Original message -----


Received: by 10.52.23.242 with SMTP id p18mr49440063vdf.79.1321476306469;
       Wed, 16 Nov 2011 12:45:06 -0800 (PST)
Received: by 10.52.23.242 with SMTP id p18mr49440062vdf.79.1321476306426;
       Wed, 16 Nov 2011 12:45:06 -0800 (PST)
Return-Path: <huan.chang@gmail.com>
Received: from 87-98-235-52.ovh.net (lolth.cyber-host.pl. [46.105.112.83])
       by mx.google.com with SMTP id cg1si2765747vdc.124.2011.11.16.12.45.04;
       Wed, 16 Nov 2011 12:45:06 -0800 (PST)
Received-SPF: neutral (google.com: 46.105.112.83 is neither permitted nor denied by domain ofhuan.chang@gmail.com) client-ip=46.105.112.83;
Authentication-Results: mx.google.com; spf=neutral (google.com: 46.105.112.83 is neither permitted nor denied by domain of huan.chang@gmail.com) smtp.mail=huan.chang@gmail.com
Received: from 192.83.180.224 by 87.98.235.52; Wed, 23 Nov 2011 23:05:15 +0200
Message-ID: <IYVOSPVZJDKZIRWTTWKMCBH.OCIJODhuan.chang@gmail.com>
From: "�u�{�N�ԴڡC" <huan.chang@gmail.com>
To: jobs@selabs.com
Subject: �U�ؿĸ�CThu, 24 Nov 2011 03:02:15 +0600
Date: Wed, 23 Nov 2011 15:07:15 -0600
X-Mailer: eGroups Message Poster
MIME-Version: 1.0
Content-Type: multipart/alternative;
       boundary="--4382705805593925"
X-Priority: 1
X-MSMail-Priority: High


----- End of message -----

sales tax

Are some restaurants out there in California still charging 9.4% tax because they haven't reprogrammed their cash registers?

I found at least one.

The sales tax in Menlo Park should be 8.25%. The new rates effective Oct. 1 2011 are listed can be found on this page.

Sunday, April 24, 2011

Atlas Shrugged - The Movie

Is it my impression or is it that Dagny's "Galt" Sounds like "gout" ??! sigh... what pain to have a name like that...

So... I guess Objectivism, (third time is the charm for me I suppose), is about heros and their individual achievement; It is about not supporting universal health care; It is about small government; It is about ruggedly handsome super-wasp having a great time with another quite stunning super-wasp while saving the world from complete chaos.

The blue Rearden Steal tracks! wow. I literally felt the smoothness of that train ride at 250 mph! Yeeeeeeeeaaaaaaaaaah!!!! take that China and Germany and Japan! and France, and .. and.. the falling mid-east... We have American Steal!! and American Engines!!!

wohooo!!!!! I feel so high right now! I am tempted to look up the objectivist group here and ...

er....

wait.... (hmm, as I type this... my high is interrupted :(

What should I, a non-wasp, fat, underachieving, poor, single, (and single child), immigrant do? I'll probably be the scum that broke the union lines and drove for those who "carry the rest"...

This is such a dilemma for me. I want to be a hero! I want to be that ruggedly handsome guy that makes the world work, and I want to attract a matching beauty who also makes her world work, AND GET THIS, she is a engineering major!!

(And I have to admit, quite bashfully that I "read" this book for extra credit in high school but don't actually know what the outcome is... sigh, bad memory is such blessing curse)

so... I'm sure in due time, I will find out that feminine beauty, masculine forms, individual achievements and hot sex, may not be the central theme of objectivism. But, for now, and ignoring racial issues, I am liking Rand's portrayal of not only a world falling apart, but also a world containing elements (individuals, heros, in this case) that can bring positive change, elements that are succeeding despite mounting adversity from commoners whom these elements are here to save.


Btw, who is John Galt?

Ohh, and Happy Easter, and Mazel tov about passover. Is it normal for these two holidays to overlap?

Sunday, April 3, 2011

wixel? waxel? or woxel?

Hrm, so I read that blog entry of mine from that lonesome friday night. It seems the word "voxel" comes from combination of vo-lume and pi-xel. If I followed this convention, then we should be using the word "waxel" for wa-ll+pi-xel, pronounced wax-sel.

So regarding the output of waxels, I realized a bit later into that night that it's a little bit more complicated than that. In computer CG ray tracing, typically we trace a single beam of light that does not increase in width as it travels. It's like a laser beam. Now, we can make a naive assumption that our waxel projectors swiveling around on a universal joint (or some other mechanism for achieving the same effect) emits light that does not diffuse, OR we could just call it a laser beam.

The slight problem with laser beam is that it may harm eyes, and the color is difficult to control. (I think the lasers today are fixed color... so we'd have to have three lasers (RGB) on each projector, projecting from the same point vertically outward.

Well, alternatively, the user of this immersive visualization and entertainment system can simply wear a polarized contact lens. In fact, even today's movie theaters can hand out polarized lens for 3d viewers who can tolerate contact lenses.

Next problem will be an averaging algorithm to generate an image in the person's eye when there are more than one object in the sphere.

Saturday, March 26, 2011

肉麻博客 and fertility test

I recently had a physical that involves me spilling some man juice and having my sperms counted and tested... So on a subsequent date I bragged to a girl:

化验表明我的精子很多而且很有活力!

and she response:

好巧,我正好在找精子多而有活力的人.


:-D ;-)

Some Viz Ideas and revival of the lonely-friday-night-typo's

I had attended Bittorrent reunion recently at Ashwin Navin's restaurant at The Summit in SF. Ran into some old friends, and had an interesting discussion with David Harrison and Jens, and Arvid. So here's the idea that I pitched and we discussed:

Say I have a room, well, say I'm on the inside of a sphere, and say there's a glass floor that I am standing on and that all of the interior of the sphere are covered with little projection devices that can very quickly beam a light at any direction inside the sphere. Individually, these are miniature projectors rotating on two axes.

Now, each of these pivoting projectors pivots very fast, and is able to scan through the entire space in front of it and alter color as it does so, if one puts a piece of paper in front of one of this device, one would find that its able to project any image like a typical projector.

The spherical room's wall are completely covered with these micro projection systems, each the size of a TV screen pixel, or smaller. Each of these wall-pixels are connected to a central computer system.

The goal is to render a 3-D image for a person standing on the glass floor anywhere in the room, simultaneously.

This means, the computer system computing the output for each of these woxel (wall-pixel instead of voxel or pixel), does not have to take into account where the person is in the room or what he is doing. All view points/angles are simultaneously rendered correctly.

The room will be able to accommodate two or more persons and still produce faithful images on/behind or in front of real objects--again without respect to where each person is. Think simply, each woxel is producing rays that a ray-tracing program would produce using parallel projection.

The genius of this discussion is not necessarily the concept of a woxel, which I just named but my friend David Garmire told me about some years ago, but the fact that the computer behind this system is a massively interesting CG problem that has not been worked. The optimizations there-in has not been written yet. AFAIK.

A second related thought is one of specular reflection. So one of the things that current cellphone manufacturers does not allow us to do, actually also screen/TV, is that it does not allow us to set the apparent reflective property of the glass infront of each pixel. I can set RGB, but I can't make that point more glossy by increasing the specular reflection.

It would be very cool for CG effects if we could set these properties of the material on top. It would look and reflect like paper when it's displaying a book, and the iPhone 16 could turn into a mirror, and there'd be an app for that.

Anyways, some ideas and description of systems/implementation/algorithms for posterity to snicker about... poor old Huan, didn't even think of the possibility that the iPhone 11 render mirrors completely useless (obviously not by having pixels that can turn into reflective mirror as I've discussed here)....


sigh...... talk about a set of lonely-friday-night-typo's.

Saturday, March 19, 2011

Sadness upon unhappiness

Okay, so I'm in a rough patch in my life called the 30's. And David Rumelhart, inventor of backprop for fitting xor using ANN just passed away. Sigh, how can this get any worse.

Oh God! Please don't answer that question!!

Anyways, one minute of silence on this blog to remember Rumelhart.

Friday, March 18, 2011

OMG! oh sh*t, f*** F*** F*** F*** F***

Wait, did Cutie just break up with House? and House fell back on drugs. OMG!!!

I can't stand it!!! I can't' believe it!

This sucks big @$$!!!



I am so distraught! :-(

Tuesday, February 8, 2011

privacy win

It would appear that renewal of the Patriot Act failed to pass in the house of rep's. This seems like a big win for the peoples of the United States.

But the truth remains, that many people believe the "American way of life" still require this kind of invasion of privacy. The house missed passing the renewal by only 7 votes.

I seem to feel a great number of voices cried out in pain and then silenced... (Obi-wan about start destroyer blowing up a star)

I wonder if this is also a win for terrorists ? I feel selfish and foolish for wanting monitoring and hacking of my computers to end, but somehow, there is fear in me that Bush jr. and the American Government that passed the original act may have been wise, and that not having it will actually cause a net decrease in quality of life here in the USA...

alas, only time will tell, and for now, I think it's a change for the better...


Monday, February 7, 2011

anger management...

I took my Dad hiking this past weekend. To be precise, we hiked Mission Peak from 1pm to 6pm February 5th, 2011. This was still a period of celebration for all Chinese people as part of a multi-millennial tradition in China.

We got yelled at by a state ranger for stepping on some grass that we were not supposed to step on. This person of unidentifiable genetic heritage, took a truck, half way up the mountain, got out in his skin tight spandex bike shorts and proceeded to yell at us for the next 5 minutes saying:

"is this old man your father? Well, if he is then he sure didn't teach you very well to be a good person.. You stepping on that grass is like you walking into those people's backyard (pointing at some expensive mansions near the trail)"

Well, he insulted my father by saying he is old. Then he insulted me by insulting my father and saying that he didn't teach me well--a Chinese insult.

I looked at him, up an down, carefully. His face shows that he is an adult, however his eagerness to insult us using a Chinese insult, during Chinese new years celebration, over a very minor matter, which he could have equally well stated in a much more calm voice, indicates to me that he is a new recruit into the ranger service. His insults of parents, the tone reminds me of hazing shown in military school, an insult surely foreign to the speaker, is given for the express purpose of insulting us.

Actually, the same thing happened to me a few days early. A coworker yelled at me for very little reason that made a lot of people very uncomfortable, and indeed embarrassed me the most because the people who I cared about was right by my side when this happened. I was made to look very bad.

This was one of the reasons why a resolution was passed to address that half of the problem. A second consideration, now that I've seen additional insults, is the consideration of karma.

Have I caused some one, in some way, a great deal of annoyance? discomfort? anger? hatred? that has ben pent up for a long time such that it is released so rapidly and with very very little supporting context to justify such explosive outburst...

I feel that I must have done something wrong along the way some where that is making all this happen.

What ever it was, I hope there is something out there that can help me ameliorate for it. Because I don't like to be yelled at, and I don't know what will happen next time, when pent up rage is released, I mean, maybe next time he'll pull out a baton and wack my dad over the head with it, and his partner (driver of that truck) will come and run us over with his rusty old truck. They might go to jail, but that does not pay for the damage that they will have done unto us. Or worse, maybe next time I will strike the offender? My hands, which are so weak and feeble will surely crumple in a furious clash of rage...


fingers crossed,
wood knocked,
and big smile on the face... tomorrow is going to be a better day...


happy thoughts....


I feel pretty,
Oh, so pretty,
I feel pretty and witty and bright!
And I pity
Any guy who isn't me tonight...


:'(

Thursday, February 3, 2011

Huan's Chinese New Year Resolution

Whereas, the person named Huan Chang is of mature age and suitable economic disposition for marriage in this tenth year of the 21st century, CE, and has continued to express interest in the opposite sex, and therefore heterosexual; and

whereas, Huan has sought the companionship of females of suitable age and interest by means of spoken and written language, gifts, manipulation of friends, physical display, and all but groveling on his knees; and

whereas, these attempts to gain any, committed, continuing, and lasting affection of the said suitable female humans have failed in spectacularly public display of explosive and violent rejections by each of these female humans; and

whereas, the public rejection are displayed without regard to normal decorum, in presence of coworkers, friends, family, and any other potentially suitable human females; and

whereas, these public rejections are displayed without regards to Huan's feelings, reputation and credibility; and

whereas, Huan is devastated, desperate, and on the verge of insanity; and

whereas, the last of these rejections happen on the last day of the nineth year of the 21st century, CE.


Therefore, be it resolved by Huan, who is of sound mind and able body, that additional intelligent, persistent and concerted efforts shall be made by himself to secure a wife in the tenth year of 21st century, CE, 庚寅兔年; and be it further

resolved that Huan shall allocate at least one hour of time each week day, no less than 10 hours each week to be spent on securing a wife; and be it further

resolved that Huan hsall allocate at least 45 minutes of time each weekday, no less than 8 hours a week to be spent on improving the health and appearance of his body in order to secure a wife; and be it further

resolved that Huan shall reserve at least 15% of post tax salary, to be put into an account reserved for the purpose of securing a wife; and be it further

resolved that Huan shall seek professional help, either from psychiatrist, medical doctors, professional life coaches, professional dating coaches, lawyers, professional conman, or any other legal aid, and any combinations of the above, without regards to cultural restrictions and personal insecurities, to secure a wife; and be it further

resolved that Huan shall secure a wife, without regards to approval or disapproval of his parents; and

resolved that Huan shall secure a wife, without regards to approval or disapproval of his peers, coworkers, bosses, and ex-girlfriends; and be it further

resolved that Huan shall secure a wife, without regards to her appearance, income, race, age, creed, religion or sexual preference; and be it further

resolved that Huan shall make all attempts to gain understanding, trust, cooperation, and control of all and any female human being of Chinese origin, such that no such explosive, uncontrollable, public humiliation as he and his the exploding female counter part has experienced during 2010, CE, shall happen without his personal foreknowledge or permission; and be it further

resolved that Huan shall make this resolution available to public viewing.

%#$!%N$#@^ %#@$ %#% #@ %


Some girls are 北极上面的冰激凌沙漠里面的干燥剂, there's no heat in my loin warm enough to melt her heart, nor tears real enough to wet her.


Lina's second place

Watched the final game of the Austrilian Open recently. Lina versus Kim Cjk.

Second and Third set was a real bummer. It's like the announcer said, it's sad to see the fans, the flash photography get to her in a big game like this.

Some two decades ago, the Chinese analysts will have blamed Lina's loss on her lack of nutrition, comparing to her gigantic arms and legs, surely late into second and third set, Lina ran out of steam.
But it's two decades later, and I'm sure it's not nutrition. So let's go with western analysis, that she is inexperienced. Personally, I think she is not sufficiently detached from her home country's politics. She tried to, exclaiming to the referee to "Tell the Chinese to stop teaching me how to play tennis." Something that any Chinese not causing her to miss shots might find offensive out of context. However, I can totally understand her. It's something she has to do in order to achieve the individualism that she aim to achieve, "I play for my self" she says, proudly. It breaks with widely misunderstood Chinese traditions. And the occasional counterintuitive necessity of breaking with supporters in order to progress.

Also, did anybody else notice that awkward and embarrassing sweat spots on Kim's chest ??!! omg! Is that milk seeping out? I cannot, I simply cannot remove my eyes from those expanding wet spots around her nipples that eventually join together and covers her whole torso. God!!!! that should be illegal, as should her jersey, which is various colors of green--green being the color of the tennis ball.

Overall, I guess her individual achievements are commendable. I might not stay up to watch another one of her games until she gets to final again, but I would watcher her again in finals, despite my current frustration with the apparent reasons for her loss of the grand slam title.....

misc links

this link on Cnn explains some Chinese customs. Many of these I just learned about.

this video takes a very extreme approach to sales. It talks about how the world is about to break down, and that there will be mass riot and social disorder in the United States. Scary, considering what's happening in Egypt, recently... Fun to watch, if not in the least informative.

Saturday, January 22, 2011

Black Swan

I'm having a tough time in my personal life. So I saw this movie by myself. And plus geeks love natlalie portman because she's the Queue!!!

Okay, in Black Swan, she's the Swan Queue. The movie follows her audition for the role and obtaining it, and her attempt to excel at playing the black swan and win the love of her director, a charismatic and slightly eccentric Thomas Leroy played by Vincent Cassel, without the act of the love.

The movie may seem shallow to those deeply entrenched in the ballet theatre, but for me, it is the first time I heard about the Swan Lake story. There exist not only the white swan, a prince, but also a black swan and a monster. The black swan seduces the prince and white swan commits suicide. Oh, right, white swan is a princess, and her committing suicide relieves her of a curse that makes her the swan and she is, therefore, free.

Nina, the white swan struggles with controlling and a single parent and her mental condition that has her fantasizing and hallucinating (for the most part without the help of drugs) many things that we, the movie viewer, believe to be true--because they are completely within the norm of what could happen to a child of a constricting single mother and high competitive show business of New York ballet theater.

One wonders, what could have been a better outcome ? She has won and achieved what her mother had given up to have her for--to become the star in a ballet production. It would seem that after all the torment she suffers to achieve this, the hard work, the physical pain, and all that mental illness, and to have survived and displayed to the audience her brilliant performance, that any thing else would just ruin perfection.

In an ideal world, I would like to find a better outcome. But those tears in the white swan's eyes as she closes them for the last time. I could not bear the thought of bringing her back to this world, to her mother, to her director, and to her friends all of whom may love her, but are actually really her antagonizers.

At least, at this moment, I don't want to imagine the after, the ER scene, and 3 months later... It all seem so meaningless.


Oh, as an aside, loved Winona Ryder as Beth, very very memorable character, just as her Amanda (spock's mother)...

ahh, aside 2, Lesbian love scene is way over hyped..., and for those who thinks it's an hallucination, it's probably not. Mila Kunis is probably lying to her in her attempts to get her role as the Swan Queue.

Black Swan

I'm having a tough time in my personal life. So I saw this movie by myself. And plus geeks love natlalie portman because she's the Queue!!!

Okay, in Black Swan, she's the Swan Queue. The movie follows her audition for the role and obtaining it, and her attempt to excel at playing the black swan and win the love of her director, a charismatic and slightly eccentric Thomas Leroy played by Vincent Cassel, without the act of the love.

The movie may seem shallow to those deeply entrenched in the ballet theatre, but for me, it is the first time I heard about the Swan Lake story. There exist not only the white swan, a prince, but also a black swan and a monster. The black swan seduces the prince and white swan commits suicide. Oh, right, white swan is a princess, and her committing suicide relieves her of a curse that makes her the swan and she is, therefore, free.

Nina, the white swan struggles with controlling and a single parent and her mental condition that has her fantasizing and hallucinating (for the most part without the help of drugs) many things that we, the movie viewer, believe to be true--because they are completely within the norm of what could happen to a child of a constricting single mother and high competitive show business of New York ballet theater.

One wonders, what could have been a better outcome ? She has won and achieved what her mother had given up to have her for--to become the star in a ballet production. It would seem that after all the torment she suffers to achieve this, the hard work, the physical pain, and all that mental illness, and to have survived and displayed to the audience her brilliant performance, that any thing else would just ruin perfection.

In an ideal world, I would like to find a better outcome. But those tears in the white swan's eyes as she closes them for the last time. I could not bear the thought of bringing her back to this world, to her mother, to her director, and to her friends all of whom may love her, but are actually really her antagonizers.

At least, at this moment, I don't want to imagine the after, the ER scene, and 3 months later... It all seem so meaningless.


Oh, as an aside, loved Winona Ryder as Beth, very very memorable character, just as her Amanda (spock's mother)...


Tuesday, January 18, 2011

Treaty and Inflation

During lunch conversation from some co-workers in the high-tech industry in the Silicone Valley recently, I found an interesting thing to suggest to Mr obama and Hu, which is for China to factor into current talks and negotiations a treaty with the United States in which Chinese visitors can more easily gain access to the United States and that Chinese immigrants have an extra tax break.

And the deal would be structured in such a way that Chinese government forgives a portion of American debt in exchange for an equal amount in tax credit for Chinese immigrants. Further more, as America opens up to China for cultural exchange and visitors, this will truly facilitate a mutually beneficial resolution to the mounting debt America owes China.

It's almost free money to the US, and it gives China face when America puts back on the bully face, and China finds out that once again, it is really very lonely in the world of developing and developed nations.

Chinese government's investment arm can certainly purchase companies founded by Chinese people in America, that way, the debt won't be lost completely to inflation and other occurrences that reduces their real value. This can be done immediately.

It's kind of surprising that there hasn't been very noticeable inflation for the consumer. For businesses, they are probably starting to feel it, but for consumers, bread is bread, and in recent few months it seems that price has gone down by maybe 10% to 30%. Looking it up, it seems that this link says that there are several factors. The high unemployment is listed as a top problem, because, basically, inflation will not occur in the United States to cause people to not have food to eat. When wages are low or none, inflation cannot happen, because there is no demand for stuff.

Other reasons listed are Tight money (suspicious), low oil price, lack of debt driven consumer. Well, money doesn't seem to be tight, given historical low rates. (The actual reason being the conditions for obtaining the loans are stricter, but that just means there aren't as many good businesses out there as there ought be). oil price is out of control and debt driven consumerism is dead, hopefully.

As I talk about this, I'm growing suspicious of this low wages and unemployment being a deterrent of inflation. When was the last time, when I wanted something, and seller said to me: "hey, kid, look, I know you can't afford the price, so I'm going to not increase the price to support my own business, so you can have what you want." I mean, that's basically what this unemployment relieving inflation is saying, and I just don't buy it.

Perhaps, collectively the businesses of America is fighting the government's attempt to inflate the dollar by charging each other low rates for service rendered and products provided in order to punish the government for the war. No inflation means they cannot pay back war debts, which forces them to end the war.

I hope that's the case, because the war is almost over and let's inflate prices and our salaries.

bubblies for everybody, and an authentic bottle of maotai for me.

;-)

Treaty and Inflation

During lunch conversation from some co-workers in the high-tech industry in the Silicone Valley recently, I found an interesting thing to suggest to Mr obama and Hu, which is for China to factor into current talks and negotiations a treaty with the United States in which Chinese visitors can more easily gain access to the United States and that Chinese immigrants have an extra tax break.

And the deal would be structured in such a way that Chinese government forgives a portion of American debt in exchange for an equal amount in tax credit for Chinese immigrants. Further more, as America opens up to China for cultural exchange and visitors, this will truly facilitate a mutually beneficial resolution to the mounting debt America owes China.

It's almost free money to the US, and it gives China face when America puts back on the bully face, and China finds out that once again, it is really very lonely in the world of developing and developed nations.

Chinese government's investment arm can certainly purchase companies founded by Chinese people in America, that way, the debt won't be lost completely to inflation and other occurrences that reduces their real value. This can be done immediately.

It's kind of surprising that there hasn't been very noticeable inflation for the consumer. For businesses, they are probably starting to feel it, but for consumers, bread is bread, and in recent few months it seems that price has gone down by maybe 10% to 30%. Looking it up, it seems that this link says that there are several factors. The high unemployment is listed as a top problem, because, basically, inflation will not occur in the United States to cause people to not have food to eat. When wages are low or none, inflation cannot happen, because there is no demand for stuff.

Other reasons listed are Tight money (suspicious), low oil price, lack of debt driven consumer. Well, money doesn't seem to be tight, given historical low rates. (The actual reason being the conditions for obtaining the loans are stricter, but that just means there aren't as many good businesses out there as there ought be). oil price is out of control and debt driven consumerism is dead, hopefully.

As I talk about this, I'm growing suspicious of this low wages and unemployment being a deterrent of inflation. When was the last time, when I wanted something, and seller said to me: "hey, kid, look, I know you can't afford the price, so I'm going to not increase the price to support my own business, so you can have what you want." I mean, that's basically what this unemployment relieving inflation is saying, and I just don't buy it.

Perhaps, collectively the businesses of America is fighting the government's attempt to inflate the dollar by charging each other low rates for service rendered and products provided in order to punish the government for the war. No inflation means they cannot pay back war debts, which forces them to end the war.

I hope that's the case, because the war is almost over and let's inflate prices and our salaries.

bubblies for everybody, and a scotch on the rocks for me.

;-)

Saturday, January 15, 2011

Why did god let me come into being if I am to turn out so useless to the world?

Famous last words...

既生瑜何生亮既生亮何生瑜 ??????

Sigh, the main point of this blog entry is to talk about a simplification to the world. So, why is marriage such a notoriously hard to deal with relationship? The real reason is that it has no end. Well, "till death do we part" according to western ideals, but essentially (and in some religions specified to be) endless, and especially, that there is no "after" the event. The reason why an unending stream is difficult to comprehend and manage is because merely that it does not end.

Suppose we reform the human marriage institution and make it so that by default the marriage expires after 5 years, that if they so wish, they can renew it for 2-years thenceforth. By default, we expect there to be hot romance and happiness and commitment and children for that entire duration, but it is expected that it end at the end of that time, and that it is an exception for it to be renewed. Second marriages will be renewed only at 2-year intervals.

More than three quarter of all marriage problems will be completely solved if this were the cases. (Stated here without proof)

And it would give more meaning to "getting a marriage license" if you have to renew it or get a new one.

Most abstract thoughts (including formalized thoughts about math, CS, engineering, and the likes) are had with the assumption that the universe, and all things conceived and manufactured continue without end. But realistically, most things we deal with, however large, actually are bounded and have a definitive and accessible end point, and that there is time and space afterwards.


alas, useless garbage

Sunday, January 9, 2011

New year, Girl, China and Political Correctness


Ahh, It's new year time, time to post a new piece of art from the f-collection. So, during an email conversation with a friend in China, I found that I had to type things in a politically correct way. I asked her to read my blog, but she couldn't see it.

So, is it the great Huawei-Cisco-Incompatibility? Or are you too busy?

Trying to be PC has it's payoff, which is that she actually will receive that email and will remain unaccosted. Here in the United States, we have such great lives, having personal freedom guaranteed by law. I can safely sleep at night knowing that nobody else is reading my emails and that I won't be punished for typing something into a email window or because I've received a _private_ and _personal_ email from someone in my personal email account !!

This will be such a great year in America!


oh, ps, if you are a girl who's reading my blog not for glory or money but because you want to get to know me, that other girl is not a gf, wana go out on a date with me?
oh. ps2, If you are that other girl, can I take you out to dinner some time?