HAHAHAHA(HAx4)'s       




 Sharepoint 11/04/2011

Google is shooting himself in the foot by forcing Google Reader users to Google+. Merely throwing away the share/note button is not gonna cut it. As many of you might know, I'm not a big fan of social network. I think the whole social network shebang is a conspiracy to ruin the productivity of the entire human race. And by turning my LCD into a black and white TV, the new Google Reader grossly misjudged my sense of aesthetics.

Since the RSS sharing is dead on Google Reader, I have to find an alternative. Now I have opened a new blog called HAx4's Sharepoint to replace the previous Google Reader Sharing. No Google+ !!!

Labels:

    Posted by HAx4 at 1:49 AM 0 Comments  

 Word Font, CGC 10/16/2011

MS Word .docx file does not embed fonts by default. You have to choose home button/Word Options/Save/"Embed Fonts in the File" to let it carry those fonts. However, I found that some fonts, like Adobe Garamond Pro, are still missing even after that option is enabled. Maybe this is the part where you are supposed to pay.

On a different note, I would like to show my appreciation and respect for Mr. CGC (Ref[1]). Given the fact that he lost his eyesight at very young, the mistreatment he and his family have endured puts the rest of us all to shame.

References:

Labels:

    Posted by HAx4 at 7:24 PM 0 Comments  

 Lab Notes - Altera QSys and NIOS II 8/16/2011

From Quartus II V11.0, Altera officially replaced its SOPC builder with the newer QSys design tool. My personal experience with QSys is smooth and every piece falls where they are supposed to be. And here are my two cents:

(1) Add system ID if necessary. And you can always choose to ignore the mismatch of system ID during firmware download if it causes any problem during firmware development. However it is a good practice to have one built-in.

(2) Eclipse is a great tool. Use it as much as you can. However, when sometimes command line also comes handy. Here are a few commands that are useful under NIOS II command shell:
===> (A) download image: nios2-download --cable USB-Blaster -g XXX.elf

===> (B) nios2-terminal

===> (C) system-console

(3) convert from elf to hex. Need this to put boot image in the instruction RAM

===> elf2hex --input=xxx.elf --output=Instruction_RAM.hex --width=32 --verbose --little-endian-mem --base=0x????? --end=0x?????, where "base" and "end" are the addresses specified in the QSys.

Labels: , ,

    Posted by HAx4 at 12:03 AM 0 Comments  

 Hats Off to Those Independent Candidates! 6/05/2011

May 35th has just passed. If you are looking for change, it usually starts small, along with defiance and courage. And here I want to express my greatest gratitude and admiration to those independent candidates. Best Wishes to their campaigns!

References:



Labels:

    Posted by HAx4 at 1:00 AM 0 Comments  

 Karma 5/28/2011

God does not throw dice.
-- Albert Einstein.

Years of being an engineer has turned me into a big disciple of science. As we all know, the ID "Albert Einstein" carries a lot of weight in science. If he says something, I will definitely chew on it for a long while, given the fact that he was able to come up with something as convoluted as the theory of relativity. (To be honest, I did poorly in Physics during my college year, although I once deemed myself having some talent on that subject. At long last, I found out that I am more of a craftsman than a master of science. That's how I ended up as an engineer :-)

I was also told by many that God works on a much bigger scale than you and I can ever imagine. Since God is the creator of every human being on earth, and since he created man after his own image, he must know every byte of them by heart. So any attempt by human being to outsmart God will be extremely difficult, if not impossible at all.

If Mr. Einstein is the Jesus in Physics, those words like karma, kismet, and destiny start to make sense. Despite many of us being the best planner on earth, life is still causatively capricious and fickle in large part. Tiny small things could easily change our life course in a second. You might have heard some nerdish scientists saying that the flap of a butterfly’s wings in Brazil could set off a tornado in Texas. Although I'm not a butterfly, I do know that a small windfall could go a long way.

I was once an award winner in high school Physics contest. Yes, as I mentioned earlier, I once thought I was somehow gifted on that subject all because of this award-winning. That lucky shot lulled me into the illusion that I can be a scientist in Physics. Yes, can you imagine me being a scientist :-) Of course, Mr. Einstein may soon point out that Physics is not based on illusion. It has never been, and it will never be. In fact, that success indeed is a fluke. Before that contest, I have never advanced to any final round in similar contests. But the contest that I have the moment of Epiphany is the one that carries the most weight in high school years. With that single shot, I boosted my credit ranking dramatically in my high school.

And starting that year, the education system in the place I live was undergoing a reform. Some bureaucrats also had their moment of epiphany when they were drinking their afternoon teas in their air-conditioned office. If my memory serves well, the scientific facts at that time were that my home country has never had any indigenous Nobel laureates in nature science. (Regretfully, my home country still keeps the zero success-rate on that matter up to this point. But the good news is that this years' Nobel Peace Prize has been awarded to ... the "You Know Who", which is beyond the scope of this article.). As you know, the government of my home country is very enthusiastic in any spectator sports, be it Olympic Games or World Cup. So the lack of grand standing success in science is no doubt an embarrassment at too many levels. They decided to pick some high school graduates to form elite classes in major universities, just like they pick some young folks to join the national soccer team, and focus their resources on those elite classes. The wishful thinking is that someone from such elite classes could one day win the Nobel Prize (presumably Physics when I was picked. Statistically if I'm lucky enough to hit an award at regional level, I should be able to hit a bigger one at higher level over a long period of time, right? :-). Anyway, due to my newly boosted credit ranking at my high school, I was admitted into one of such elite classes through the recommendation of my high school.

Being able to getting into such elite class did open my eyes widely. I met a lot of new folks who have fatty IQ scores. On top of that, they also showed huge interest in western literature, which make sense since English by itself must be more fascinating than the mind boggling Physics and Mathematics. Their fervor in English also influenced me as well. So the fluke in Physics competition somehow pushed me westward. And soon I found out that my IQ score is not in the same order as that of Mr. Einstein's. (I assume that is not a surprise to any of you, right:-) Engineering might be a closer match to my IQ score. Yes, I flunked on the way to Nobel Prize due to the constraint of my IQ score (Hope those fatty-score-folks could have better outcomes in that quest :-), but on the other hand, being able to get into an elite class did lend credit to my capability. And that was translated into a job offer after my graduation that brought me to the Mecca of tech world. When I was cracking Physics nuts on that day of contest, I'd never thought I would meet those wonderful folks in my life later, and work thousands miles away from my home town. Now come to think of it, perhaps God has something other than Physics for me to crack. God does work in a mysterious way.

But curiosity is human nature. Human Beings have never stopped their effort to fathom God's next move. In the theory of probability and random processes (Ref [1]), there is something called Markov Chain. Basically, it is a way to model the dependency among state transitions. If we take samples for observation, and if we observe long enough, we will notice that if a certain state with small transition probability does happen at some point over time, those states followed could become dramatically different afterwards. If we have to put out something mathematically to offer interpretation for karma and kismet, this is the closest we can get as far as I can tell. Although it offers no clue for God's next move, it does illustrate that a small state change in life could mean dramatic consequences. If something is in your destiny, that state is bound to be reached no matter how impossible it looks like from the humongous state space.

As many of you might know, I'm also a movie buff. One of my all time favorite is "A Chinese Odyssey" (by Stephen Chow, Athena Chu etc.). In the second installment of this movie (Ref [2]), the monkey king (Stephen Chow) successfully drew the sword out of the sheath, which is a sign that he is the preordained husband of Violet fairy (Athena Chu). So the Violet fairy asked him with hesitation that "There is a preordained marriage for me, but ...", and what the monkey king said was: "Don't worry about anything else. That is your kismet, and kismet trumps!" (你管他那麽多,上天安排的最大嘛!). Yes, kismet trumps, and destiny will prevail. And just like the movie, God will put his arrangement in the kismet, and it might also give you a sign from time to time to guide you to your destination. If your mom was told by a fortune-telling monk that her little daughter would one day fly over the ocean to be with her husband on the other side of the Pacific, would you take that seriously? Have you ever thought that a last minute phone call could bring someone you never know before to your side from thousands of miles away? Distance and time can never match the power of karma. (Mr. Einstein must be on the same page with me for this conclusion:-)

And welcome to the land of freedom, honey!!


References:

[1] Probability and Random Processes with Applications to Signal Processing (3rd Edition), Henry Stark, John W. Woods, Prentice-Hall, 2002


    Posted by HAx4 at 3:30 AM 0 Comments  

 Lab Notes: Altera PFL 5/24/2011

One way to config Altera FPGA is to use an Altera CPLD as flash controller; read out the FPGA bit file from flash and config the FPGA device during power on. The CPLD could also function as a flash programmer through its JTAG interface.

Altera has a megafunction called PFL (Parallel Flash Loader) in its Quartus II software. Here are a few notes on PFL:

(1) Prepare the FPGA image. The default file format generated by Quartus II is .sof format. It should be converted by Quartus II (under Menu File) to .pof format

(2) PFL has both programmer and loader function. Please be advised that if "optimization for speed" is chosen, the size of this megafunction could be pretty big for some MAX II device.

(3) Under Quartu II programmer software, right click the CPLD device and choose "attach flash device" to add a flash attachment. Add the flash device and .pof file from there.

(4) It might take more than 10 minutes to program a big flash. And more than 30 minutes to verify the flash.

(5) When program the flash through CPLD's JTAG, sometimes it will show "Can't recognize silicon ID for device x". Other than the board problem, it is usually the incorrect IO constrain on CPLD that leads to such failure. (Please note that flash_data[] is bidirectional. pfl_flash_access_granted can be set to high, and leave pfl_flash_access_request unconnected)

Labels: , ,

    Posted by HAx4 at 12:53 AM 0 Comments  

 FBX is egged on! 5/23/2011

Anyone who tries to access GMAIL from China recently would know how excruciating it is to be behind walls. Yes, the F* GFW is stubbornly running a fool's errand (Mrs. Clinton also has contribution to this phrase.)

So when the news comes that FBX, the father of GFW, is egged on, literally, followed by an angry shoe attack, the mood is quite hilarious across board. Although I'm strongly against violence, and I believe everybody deserves a due process, even for guys like FBX, I still think a prank like this is acceptable, given the hardship he has wrought in and out of the GFW. I also believe that any wall, no matter how tall it is, will crumble sooner or later under the barrage of time.

References:


Labels:

    Posted by HAx4 at 12:49 AM 0 Comments  

   

 

    

    
Follow hahahaha_hax4 on Twitter
    

Features

*) Grand Opening
*) Why HAHAHAHA
*) Stay Foolish
*) Rabbit Hole
*) Sharepoint
*) Blotter
*) Notebook

Labels

*) Limerick
*) Movie
*) Tech
 +) Embedded Systems
 +) FPGA-ASIC-HW
 +) Linux
 +) Software
 +) Windows

Links

*) Blotter (Obsolete)
*) Notebook
*) Rabbit Hole
*) New Sharepoint


*) TEXT2PNG
*) China Blog List


*) Bertrand
*) Bruin
*) Bulldog
*) EragonJ - Hax4
*) Hua
*) I Love Rei
*) Mas
*) Philewar
*) Rodent
*) Samuel
*) Tom

Archives