Confessions of a researchaholic

2016-11-12

Basis cases

Filed under: Real — liyiwei @ 8:38 pm
Tags: ,

Back in the good old days when I was working as a GPU architect in NVIDIA, we had suites of tests for various stages of GPU development: architecture, RTL, driver, real chips, etc.

Ogtest, consisting of tests written in OpenGL, can be applied to all stages. Each test is written to be as compact as possible, the tests are ordered from simple to complex, and collectively they cover the entire target space (e.g. all applications to run on the target GPU).

For example, the first test is to draw a flat colored triangle, the next is a textured triangle, and the next is called son-of-the-textured-triangle (with two textures instead of just one, if I remember correctly).
I then went on to add a test called daughter-of-the-textured-triangle (I am all in for gender equality) which consists of two textures but exercised a different path through the texturing and shading units (if I remember correctly).

I like to think of these as the basis test cases for the entire target space, analogous to basis vectors in linear algebra.

This applies to all research and development projects. Instead of jumping to debug full-scale applications, it can help to design a set of basis cases first. The process can clarify our thinking, and help us debug and explore algorithm/implementation issues. The basis cases can even be part of the analysis section of a research paper.

2016-08-19

svn to git migration

Filed under: Real — liyiwei @ 5:02 pm
Tags:

In the process of migrating some svn repos on my server to git repos on github (public) and bitbucket (private), I found the following migration process works well.

. Import the svn repo to github. It worked for private svn repos that require authentication (as in my case).

. The github repo will be public. If you want a private repo, import the github repo to a private bitbucket repo, and delete the public github repo.

I looked at the revision history and it appears to be well preserved.

I have tried direct import from svn to bitbucket but it did not work, probably due to file system structures of my svn server.

2016-07-03

tripling.dreamers.suspended

Filed under: Real — liyiwei @ 5:13 pm
Tags:

Is the what3words address of my HKU office.
🙂

2016-05-20

System surveys

Filed under: Real — liyiwei @ 11:41 am
Tags:

Few people have the time and patience to answer surveys, even when they do they might not provide genuine opinions (consciously or not), and the sampling is inherently biased.

A well designed system collects data and analyzes users on the go; just look at Google, Facebook, and Amazon.

2016-03-27

Algorithmic species

Filed under: Real — liyiwei @ 11:04 am
Tags: , , ,

Algorithms can already devise algorithms and write programs.

It is just a matter of time before they can do that in a scale massive enough to displace many, if not most, programming jobs, just like what robots have already done to the manufacturing jobs.

2016-03-17

Maintaining success for the long term

Filed under: Real — liyiwei @ 10:02 am
Tags:

I found inspirations from this Q/A session between Sam Altman and Michael Moritz not only for startups but anyone who needs to deal with an ever changing environment: do not sit on the past, keep a fresh team, and change with the future.

2015-07-04

Neural inceptionism art

Filed under: Imaginary,Real — liyiwei @ 10:10 am
Tags: ,

I have decided to feed the art works by (or related to) my father, grandfather, great*** grandfathers, etc., to this neural network inceptionism code.

Below are some results. Each group consists of the original image, and the results amplified for low and high level neurons.

巷尾 ~ At the end of the lane
end_of_the_lane_original
end_of_the_lane_pretty_impressionist
end_of_the_lane_weird

戲院街的後巷 ~ The back side of theater street
back_side_of_theater_street_original
back_side_of_theater_street_pretty_impressionist
back_side_of_theater_street_weird

巷弄內望見普德宮的廟頂 ~ temple top

temple_top_originaltemple_rooftop_pretty_impressionisttemple_rooftop_weird

Calligraphy, uniform font size
R1043620_original
R1043620_pretty_impressionist
R1043620_weird

Calligraphy, varying font sizes

R1043599_pretty_impressionistR1043599_weird

Kublai Khan

kublaikublai_pretty_impressionistkublai_weird

2015-04-08

Debug your own code

Filed under: Real — liyiwei @ 2:24 pm
Tags: ,

Never, ever, send your code to others and ask them to debug whatever functional or performance issues you have.

That is the most effective way to signal you being a liability rather than an asset. It is like asking others to wipe your ass for you.

Spend time figuring out what is going on inside your own code, and ask specific questions if you need help. Take a look at stackoverflow.com, a good forum for coding questions.

2015-02-11

Jeff Bezos shares his best advice to entrepreneurs

Filed under: Real — liyiwei @ 11:11 am
Tags: ,

The whole article can be found here, but gist is to do what you really love.
It is that simple, repeated elsewhere, and applicable to different professions.

« Previous PageNext Page »

Theme: Rubric. Get a free blog at WordPress.com