Congratulations John Liu! The Comptroller of NYC

You made it, John Liu! Yes you did. I am proud of you. We are all proud of you, John.

First of all, John is the first Asian-American stepped into the City Council of New York and now he's the first A-A made to a city-governmental level position, the Comptroller of NYC.

For the past 8 years of your hard works as a Councilman, John, you deserved this victory. I am proud of you, not only because you are a Chinese / Asian, but because of what I see from your dedication. You aren't those money-loving creatures. You are the good moral and the model of what a politician should be. When we approach you, you will always come forward and step into the problem. You will help the helpless and hopeless people to get their needs. You made MTA the real liar and you made the education more into the hands of the parents, not the small petty-group appointed by the Mayor.

You did a lot for our high school as well. Francis Lewis is proud to have you as a friend who helped us getting those MTA buses to serve the student everyday. We are proud of you. You have attended the Arista orientation and my graduation. You have been a friend to us, everyone in the community.

John C. Liu. Yes, we can. We made it.

http://cityroom.blogs.nytimes.com/2009/09/29/liu-and-de-blasio-lead-in-early-returns/?ref=nyregion

http://www.new.facebook.com/group.php?gid=137175583546#/john.c.liu?ref=mf

Congratulation, John Liu, the Comptroller of NYC.
Are you ready, John? :)

John Yeukhon Wong

Who is the most power-friendly Browser? IE8!!?

I discovered this testing today and I was very impressed with the overall result of what IE8 has from the 3 testings.
http://anandtech.com/mobile/showdoc.aspx?i=3636

The results are tested on 2 laptops and one netbook. Battery is critical today before buying a portable machine.

IE8 only top on the Intel Core T6500 result. But overall, while IE8 might not be the fastest browser and the best solution as a browser, the result does changes our general view on IE8. It has been optimized so well that is top along with Chrome, FireFox + Adblocks.

I do not see a reason running Adblocks to test FireFox in the beginning.

We also ran a test using Firefox with the AdBlock Plus add-on, which means the Flash advertisements didn't show up. The compromise there is that AdBlock requires more processing time up front in order to parse the HTML. Each test was done (at least) twice, taking the higher score of the runs.

In fact, they should do an extra testing for Firefox without running AdBlock. There is no need to do so but I think the users are interested in learning the differences. Safari remains lowest in all three cases but I am sure it will have a better power-saving performance under OS X.

To be fair, this testing was poorly done in one way.

visiting lewis

There was something different about Lewis. It seen like I wasn't welcome to Lewis anymore. All the sudden I felt like I was only a visitor. When I tried to go around, I didn't know where to go exactly. Even with the alumni, Mr.Shama didn't mention too much.

I think I need to focus on my study then.

Well, after seeing Wendy yesterday, I just lost all the mood and she completely wiped out my mind. All I did after visiting Lewis was sleeping. It was a sad story. I felt like it was impossible to keep this inside my head. It was completely stupid to dream "I will get you 10 years later".

It was completely pointless to like someone who isn't my friend anymore. It was completely painful to remember all these people I hurt and people I liked. Two days ago I came across to Grace Tsui. I always feel disgusting every time I remembered what I did in my Sophomore year. That letter and presents I gave to Grace make my sick now.

What about Wendy? There was a feeling of worthless. All I remembered was another disgusting moment. Those memories would drive me crazy. It took me a couple months to finally not get into these memories as much as possible. But every time when she appears in front of me, these disgusting moments and love returns like they will strangle me to death.

I have two exams comping up and I know I must ace those two exams.
Mike Chen told me she's planning to attend Baruch. I know exactly why she made this decision. But she gave up on me. She said she would go to engineering. She lied to me. Just a year ago.

odd fate much?

Sometime, things go oddly. I thought about meeting her one day, especially the day visiting Lewis again. But God has His own plan for human.

As soon as I stepped out the E train today at Roosevelt Ave, I saw her. She was walking. Yes, right at the moment I left the E train, I saw her. She was so easy to be recognize. Same bag, same back-look. I knew it was her. I turned around, and tried to move away from her. I even thought about leaving that area and moved down. I refused. I meant my feet refused to cooperate with me.

There was so much bumping and pulse went crazy. I felt a pressure.
I admitted the truth: I miss her and I still like her. I want her. Period.

When we got out the train together, I turned to the Q.B direction instead of the entrance to Grand Ave. I wanted to avoid her and pretended I didn't see her at all. I knew she wouldn't dare to say hello to me. She knew I wouldn't want to talk to her again.

Maybe she had the same feeling too - she didn't want to talk to me either. Or maybe she didn't have any pressure because, she didn't like me.

When I finished my shower, I went to sleep. I didn't want to think about it anymore. But I noticed one thing: I lost the mood. It wasn't just the mood. But her appearance wiped out my mind. I just like her very much. Maybe God should let me rewind the past and fix that error.

working on matrices 3x3 in Matlab (2)

So after a few days of working on the matrices and its mathematical operations, theories and conceptional components (especially with matlab), I found a useful way to quickly determine whether a system is, either unique solution, no solution, or infinite solution.

First of all, I think I have thought too much about matrices and constructing a program. The objective, after spending a few days indeed, is probably just to find out "what number will produce" each of the three conditions. However, number goes on forever. But if we set a range for alpha and beta (the two variables we use) in the program, then there is a purpose for the program.

Matlab, just like any other programming language, has its own library, a collection of operations and pre-defined source-codes to use through the MatLab. For matrices, we do not need to worry about the operations. I probably had thought too much about "writing a program". I can still develop one, it isn't that hard once you know matrices' operations.

I can also make the program without doing the loop, simply just a program with the following sets of statements, and return a message to tell which condition is produce.

Now, the tools to determine each conditions quickly is to use the rule of "rank".

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
>> alpha = 3, beta = 4, A=[(alpha) 2 0;0 1 2; 0 0 0], b=[(beta);0;1], rref(A), X=A\b, rref([A b]), rank(A), rank([A b])

alpha =

     3


beta =

     4


A =

     3     2     0
     0     1     2
     0     0     0


b =

     4
     0
     1


ans =

    1.0000         0   -1.3333
         0    1.0000    2.0000
         0         0         0

Warning: Matrix is singular to working precision.

X =

   NaN
  -Inf
   Inf


ans =

    1.0000         0   -1.3333         0
         0    1.0000    2.0000         0
         0         0         0    1.0000


ans =

     2


ans =

     3

if rank(A) = rank([A b]) = u.s and infinite solution may exit
else
no solution exit

if rank(A) = # of unknowns, u.s exit
else
infinite solution exit.

If these statements are valid and true, then the first half of the program is just to create a loop and set a range to alpha and beta. The computer will print out the pair of alpha and beta when (1) there is no solution and (2) infinite solution. For unique solution, there is no need to print out the alpha and beta. Clear enough?

working on matrices 3x3 in Matlab (1)

Okay, let's cut this short.

So far so good just need references to guide me through to crack down the concepts.

For Matrices, according to the alternative theorem,there should be 3 cases
1. Det =/ 0 and it's has unique solution
2. Det = 0, no solution
3. infinite solution

What I don't get is how do you determine something is infinite solution. To construct a program in Matlab isn't that difficult. All it takes is time to learn the ways to program in Matlab., The problem is the set of rules to determine the value of Alpha and Beta (input) and matrices (calculations). We can simply use det = or =/ 0 to determine something is either case 1 or case 2.

Well .... it seems something is working here.
when the last two numbers in the last rows are the same and the alpha and the first number in the last row are the same, it produces 0 det and infinite solution and also if we make the last row completely empty with zero, also infinite solution.
I guess I need to go through the references and see what I can do with it.

SSH to Matlab in school

Mr. Yao was a very helpful person. He gave me this command to to test:

1
2
$ ssh -X 000.00.000.00 -l your_username
$ matlab

Instead, the -| didn't work out so I changed it around. Now this worked.

1
2
3
> ssh -X username@000.00.000.00
> password
> matlab

(more...)

My first thought on Matlab

I will probably give another thought later when I get used to Matlab. As far as my study with the common programming languages, like Perl and C++, I do see a big difference in Matlab. This is more a mathematical language than what we usually expect from a programming language. However, people use Matlab for engineering projects because of the capacity of the mathematics offers by Matlab.

I don't know. I am the kind of person that needs real introduction to every language, from the most basic "Hello-World" script to the most advance (you write whatever you want!!!). I have to spend sometime finding a good book covering Matlab. There are some helpful sources online but the technical references they use, someone strike me down.

At the moment I am dealing with Matrices. Matrices aren't that difficult to understand, it's just math. But my pre-calc class was two years ago. I didn't remember any matrices operation at all. I probably need extra time to get use to the way Matlab writes program and how it works with numbers and command.

Here is the matrices

1
v=[1, 2, 3, 4], b=[4;5;6;7], v*b

Output

1
2
3
4
5
6
7
8
9
10
11
12
13
14
v =

1     2     3     4

b =

4
5
6
7

ans =

60

WP Cache Solution: SuperCache vs 1Blogcacher vs Hyper-cache

I will do a more complicated all-round analyst later when I get the time. But as far as what I did in the past, I can tell you right away, 1blogcacher blow up the other two.

WP-Super Cache (0.9.6.1): http://wordpress.org/extend/plugins/wp-super-cache/
Hyper-Cache (2.4.2): http://wordpress.org/extend/plugins/hyper-cache/
1Blogcacher (2.0.4): http://1-blog-cacher.javier-garcia.com/#requirements

I first ran Super Cache, and I found the blog accessibility was getting difficult. The amount of time to finish loading was getting longer each time. I thought it was just a host problem but when I disabled the super-cache, the time got shorten.

Super Cache only cache two or three pages according to what I see. I enabled eveything: gzip, Super Cache and WP-Cache and did all sorts of optimizations. I gave up on Super Cache.

Then I decided to give a try to Hyper-Cache. It has a very good feature for mobile cache. But according to my testing, and the statistic it provides, 90% of the caching failures.

I finally gave my last try to 1blogcacher. The loading time is better than Super Cache and Hyper-Cache.

Here are a few reasons.

Query time [ look at footer]

  • SuperCache: 0.25 - 0.40 seconds
  • Hyper-Cache: 0.90 seconds - 1.20seconds
  • 1blogcacher: 0.40 seconds - 0.60seconds

(more...)

Removing 99 99 Group files/directories from your host

Ok, this is a frequent problem to everyone. When a program [a script], for example, Wordpress or Drupal, created a file / directory, the permission and group assigned is usually 99 99 Group. It's a known issue. If someone wants to remove a file or a directory with 99 99 Group permission, then only the host support has the permission to do so.

To send a ticket, depends on the kind of host provider you have, usually take a day to complete. I don't like waiting for someone to solve my problem. I did the request a couple times with my host supporter. The very last time I requested to delete the directory, I didn't specificity it enough and he deleted the wrong directory [my old blog directory].It wasn't his fault but it took a few days for me to actually work on the recovery.

I like to do things as quickly as possible if I get a chance. So I decided to search for a script or something to help me to break through this 99 99 Group limitation. Here is the solution I used:

http://drupal.org/node/231401
There the author provided 3 scripts:

[1] Change the permission to 777 in order to delete them [for optional removing !!!!]

1
2
3
4
5
<?php
   $old = umask(0000);
   chmod("name of folder or flile", 0777);
   umask($old);
?>

(more...)

Page 1 of 212»