Sunday, 20 December 2015

Summer of Love

Every community starts out needing to recruit members, so they tend to be very friendly to newcomers.
After a few years, an insider group of old-timers forms. They get to know each other. They know the rules. They know the history and the legends of the community. And it’s only natural to get little bit irritated when newbies show up who don’t know the rules.
Newbies will show up, make a newbie mistake, like wearing shoes indoors or forgetting to close the toilet lid, and the old-timers will look at each other, roll their eyes, and snort, “Typical!”
At this point, if it’s a normal human community, it will start to feel a little bit unfriendly to outsiders. Insular.
And the newbies will say, “well, gosh, that’s not a very friendly place.”

Thursday, 10 December 2015

Victoria Secret

Sean Parker: A Stanford MBA named Roy Raymond wants to buy his wife some lingerie but he's too embarrassed to shop for it at a department store. He comes up with an idea for a high end place that doesn't make you feel like a pervert. He gets a $40,000 bank loan, borrows another $40,000 from his in-laws, opens a store, and calls it Victoria's Secret. Makes a half million dollars his first year. He starts a catalog, opens three more stores and after five years he sells the company to Leslie Wexner and the Limited for four million dollars. Happy ending, right? Except two years later, the company's worth 500 million dollars and Roy Raymond jumps off the Golden Gate Bridge. Poor guy just wanted to buy his wife a pair of thigh-highs.

Wednesday, 9 December 2015

Job and Flasche (Bottle) Collector

In Germany, empty bottles can be returned to the supermarket and exchange for some money.

It somehow created a job for people just walked around and collect for empty bottles.

However, given the tradition of people here that they do not simply littering their empty bottles, those collectors would have to start digging the dumpster..

Or asking people on their lunch / dining table, even in the canteen of the university.

I was somehow compassionate for their situation, but I believe that they deserve to have a better job.

Imagine a bottle for 10 cent..

The minimum wage in here is 8.50 Euro / hour.

Well, I hope they could get a better job or I really feel like providing them a job, but what?

Perhaps not from me, they could become a German teacher? Cleaner?

At least it would be more productive and contribute to the country growth, rather than collecting bottles which would eventually be recycled by the user.

More importantly, they would earn more.

Perhaps I should try to talk with them.

Thursday, 3 December 2015

How to improve your coding skills? Excerpt from Quora

On Psychology

I have been in exactly the same place. Psychologically you have to come to terms with something. NOBODY LEARNS TO DO IT RIGHT THE FIRST TIME. Just let yourself get a result of anykind. That means being DRY and writing at the proper level of abstraction comes later. Resign yourself to throwing away your first baby after several rounds of refactoring. And most answers are kinda half-assed on the coding forums. 

Also, ALL LANGUAGES ARE FLAWED. If you look for the perfect OOP or FUNCTIONAL approach in a given situation, chances are you'll realize it's not there!!! Just learn the way that you can best remember and move on.

A Practical Path

I wouldn't recommend this path to someone without your background. It risks too many pigeonholes for the neophyte. 

What you need is a stack that gives instant gratification. You need minimal configuration so you don't get bogged down in editing she'll scripts. And you need aspects of that chain to become intelligible to you as your knowledge expands. 

If your environment is a *nix and hasn't taken too much of a beating from various installs from failed development attempts, install on it. Ifnot, stand up a fresh virtual machine with Ubuntu or something.

Install git, node.js and then harp.js. Don't bother with databases, connectors to your favorite api or any of that shit yet.

Lesson 1 - follow the harp.js directions till you're looking at your first page. Play around till you're familiar with jade and markdown. Pay special attention to adding tags and scripts to the page. Use HTMLTidy, JSBeautify, or whatever to look at the out put and compare it to the input. Congratulations you're using a rendering engine and you're learning 3 markup languages and a bit of CSS and LESS at the same time.

Lesson 2 - Learn how to change CSS attributes for standard tags, classes and ids. The learn to use variables, loops and conditionals in LESS. Learn how to include another LESS file. Harp.js will do the rendering work for you. Congratulations, you now know how to apply the three core grammars of a programming language to do something cool in a language that is EVERYWHERE.

Lesson 3 - Get the source code package for BOOTSTRAP. Copy the LESS files into the right spot and include bootstrap.less in your less file.

Go through the CSS section on the bootstrap site and play with tags and content. Congratulations, you're using a library to speed the process of doing something you already have the skills to do yourself. Go look at some of those LESS files and CAREFULLY READ THEM. Enjoy understanding someone else's code.

Lesson 4 - Use JAVASCRIPT to replace the content of a div or other DOM tag. Replace everything with a p tag with the word, "Suweet!" Now learn how to make an array and access an element of that array. Make "suweet" the 3rd element in the array and replace all the p tags with it. Now learn how to iterate through the array and display a list.

Lesson 5 - Spend a few days learning simple Javascript stuff from Thau's book or W3Schools. Have some fun with it. Learn how to make objects and acess their properties and methods. Then learn to use a callback function. Notice I said, "Learn to use...."  Understanding the callback function might be SUPER irritating at this point. 

Congratulations you've had some fun with a language and finished up by learning the feature that will betray you constantly until you master it - then, if you're really as versed in theory as you say, it will make you feel dirty. Javascript without mastering the callback is a toy. With it, it's a slowly collapsing black hole that will eat the lives of a generation of developers.

DEAL WITH IT. Magic always betrays you. Complexity management is a boring drag like buying insurance. That's why nobody does it. Worry about it when you're further along the learning curve.

You can hardly get anything done on the Web without Javascript. JQUERY, NODE.JS and the rest of the pony show use callbacks and nested callbacks for EVERYTHING. Don't fear using deep nests of callbacks, you'll be in good company and have some ugly war stories to share.

Lesson 6 - Learn basic JQUERY. Do the same things from lesson 5 but do them the JQUERY way. 

Lesson 7 - Get bootstrap fully folded into your harp.js playground. Make version 0 of your personal website with it using LESS and the rest of what you've learned.

Lesson 8 - build a reply form that uses node.js to send you an alert.

Lesson 9 - use what you've learned so far to make a publish-to-site.js file that automates harp.js publishing your site as static html via SFTP or some other secure protocol.

At this point you've created a really sophisticated toolchain for building and managing your web site. It should be easy to operate and maintain and should also stay FAR out of the way of any cool web app stuff you might want to try. You have many of the benefits of Wordpress without being stuck in the Wordpress world running off of mySQL.

If you get this far and nothing has grabbed you.... Try Python again but this time focus entirely on text processing until RegEx is a second language. Then learn everything you can about Bayes - start with the Statistics class at Udacity.  ;)

Sunday, 29 November 2015

PhotoHackDay

I built a hire-travel app with real time wifi camera. I know that my project might not be technical challenging, but I fucking hate this hackathon.

20 prizes, 17 hacks. I'm not 1 of the winner.

So much people can walk away with prizes by creating fancy slide show and presentations, while I am building real stuffs which is workable. I have also seen a lot of people working so hard and spending a lot of time twisting their code so that it could really work, not just some fucking mock-up.

I really fucking sad about this event. Though I have to admit that I must improve my coding skills, but I am so desperate for the prizes.

I was so stunned after they gave out all the prizes and I did not even receive any of them.

Maybe I should blame myself for being too timid and not standing up in the crowd and question them.

Is your definition of hackathon means creating fancy slide show and screenshots?

Note to myself: 
1. Be brave to stand up for myself, especially when the situation is not fair to me.
(Porbably I have been suppressed by the Msia government for too long, IT's TIME TO STAND UP AND FIGHT MY MY OWN RIGHT!)

2. Be more competent in coding, I will fucking code every day.



Sunday, 8 November 2015

Japanisches Haus

I went to the shop and price of the foods are voluntarily determined by your own donation.

Cool concepts!

Maybe I'll open up a chinese Haus too :)

Sunday, 4 October 2015

Chinese Mathematics

Although this switch from counting rods to the abacus allowed for reduced computation times, it may have also led to the stagnation and decline of Chinese mathematics. The pattern rich layout of counting rod numerals on counting boards inspired many Chinese inventions in mathematics, such as the cross multiplication principle of fractions and methods for solving linear equations. Similarly, Japanese mathematicians were influenced by the counting rod numeral layout in their definition of the concept of a matrix. However, during the Ming dynasty, mathematicians were fascinated with perfecting algorithms for the abacus. As such, many works devoted to abacus mathematics appeared in this period; at the expense of new idea creation.

Tuesday, 1 September 2015

Windows to the soul

I rarely looked into the eyes of people until last year. I read some books and it mentioned that it's so important and powerful to make eye contacts. So I thought to myself, why don't I give it a try?

Used in sales, people, friends. But still, I don't understand why it just worked. Until recently, I just realized that you could fake your languages and even body languages, but not your eyes.

Pupils and iris tell a lot. The most common one, dilated pupils especially. Yet I still couldn't figure out how to observe the pupil with black iris. No clue, sigh.

Chemistry of love is incredibly simple but very destructive.

Gute Nacht.

P/S: This is incredibly interesting too. The question is, can you do it?
http://www.iflscience.com/brain/you-can-alter-your-mind-staring-someones-eyes-10-minutes

Wednesday, 10 June 2015

(Eclipse) Upgrade from ADT 22.0 to 23.0

If you are having troubles in the old version of ADT. This is the only way to do it.

https://www.youtube.com/watch?v=jPZpJdnbbN0

Still an Eclipse fan huh?


Friday, 29 May 2015

Die erste mal in krankenhaus

didn't eat until 2.30, went to deutschkurs. Constructed not yet eat sentence, feel that i forgot to eat. eat after deutschkurs at mensa. tok 1 mushroom from friend ordered a large potion of pasta. while eating, stomach feels not comfortable. van't figure out isi it pasta, or mushroom or gastric. pain from 5 pm till the whole night. couldn't concentrate on work. keep passed out in toilet. tried to sleep, failed. too much pain. decided ride to hospital. wandered around in it. measured blood pressure etc. hanged witha pack of liquid. feeling ease, at least i am able to sleep for a while. woke up, liquid finished. go back home. it was just an hour in here. still pain in the moment. symptoms reduced. from 1 hour pro mal in toilet to 2 hour and now 3 hours. guess if i reach 24 hours pro tag i would be normal. god bless.

Saturday, 18 April 2015

AMD processor for VirtualBOX 64 bit (Problem solved)

If you have trouble running 64Bit Operating System on AMD Processor.

The following video is extremely helpful.



Just remember to enable SVM.

Reboot and launch your 64bit Linux!

Hope it helps :)