Motivation Last we we are pushed to a weird domain, using MTurk to assess perceptual properties of some images. And the major technical challenge is to make a form like question page in MTurk, using my close to zero prior knowledge on JavaScript. Here are something I learnt along this. In this note I’m introducing a few key examples of using JavaScript to interact with HTML.
Nov 21, 2020
Motivation Sometimes, we want to manipulate and interact with our plot in a way that is not built into matlab figure. For example, we would like to visualize images when we are travelling in the hidden space. I requires matlab to visualize things when we click something or slide some bar.
May 16, 2020
Motivation Sometimes we are just too lazy to open a python script to do some file manipulation. (where it actually use the system api). Why not just use system’s scripting language?
Apr 29, 2020
Motivation Syntax highlighting for codes Procedurally adding lots of figures to slides using the same format (if you don’t want to copy paste in pptx) Adding lots of equations to it from latex format. Technical Choices Source of info
Apr 3, 2020
Motivation Handling parameter and recording them for numerical experiment is a pain in matlab. Solutions Option Parser Input the options as different fields of a structure and parse it through a function, fill in the fields that are missing by checking isfield
Mar 3, 2020
Motivation Matlab and matplotlib in python are plotting packages of daily usage. They share lots of structures but also have minor differences. For beginners using the plotting routines can suffice most daily needs, but for more refined control over layout, fontsize and so on, we need to better understand the object structure in matlab and matplotlib.
Jan 20, 2020
TOC {:toc} Deep Learning Environment Currently we find that multiple version of CUDA could be installed on windows. And different frameworks could use different CUDA version nicely together. PyTorch Tensorflow Co-environment Currently, we can have
Dec 19, 2019
Motivation pandas is a great tool for representing structured data in python, similar to Table in matlab and dataframe in R . Using it to interact with table data (like experimental records) on hard drive and process it in python is also great!
Dec 10, 2019
Motivation Unlike matlab, plotting dynamics in python is not as easy or straight forward to use. And to interact with the figure is not always as simple as matlab native plotting routines.
Nov 17, 2019
TOC {:toc} Python is a script language. Most of the packages are written in python, and they are just a bunch of script files in a folder hierachy. For these packages, it’s just as easy as find the script file and run them.
Jul 25, 2019