Posts

  • Canvas Clock

  • Build an analog clock using HTML canvas. var canvas = document.getElementById("canvas"); var ctx = canvas.getContext("2d"); var radius = canvas.height / 2; ctx.translate(radius, radius); radius = radius * 0.90 setInterval(drawClock, 1000); function drawClock() { drawFace(ctx, radius); drawNumbers(ctx, radius); drawTime(ctx, radius); } function drawFace(ctx, radius) { var grad; ctx.beginPath(); ctx.arc(0, 0, radius, 0, 2*Math.PI); ctx.fillStyle = 'white'; ctx.fill(); grad = ctx.createRadialGradient(0,0,radius*0.95, 0,0,radius*1.05); grad.addColorStop(0, '#00CC99'); grad.addColorStop(0.5, 'white'); grad.addColorStop(1, '#00CC99'); ctx.strokeStyle = grad; ctx.lineWidth... Read more
  • How to install Matlab2016b on Ubuntu 16.04 LTS

  • This tutorial will explain how to install Matlab2016b on Ubuntu 16.04 LTS. The instaling files are usually divided into three packages, that is R2016b_glnxa64_dvd1.iso R2016b_glnxa64_dvd2.iso Matlab 2016b Linux64 Crack.rar Table of Contents Step 0: Before installing Step 1: Mount the directory Step 2: Start to install Step 4: Mount the second dvd file Step 5: Complete the installation Step 6: Obtain support Step 0: Before installing Unrar crack files and Read the readme.txt file. $ sudo apt install... Read more
  • How to configure sublime text

  • Install package Click the Tools-Command Palette menu; Input “Package Control: install Package”; Waiting until the list of package appeared; Choose your ideal package and start to install package. Configure (LaTeX) LaTeXTools Configure Markdown Markdown Editing Markdown Preview Click the Preferences-Package Settings-Mardown Editing- KeyBlings-User menu. Copy the following contents to set keys alt+m for Markdown preview. [ {"keys": ["alt+m"], "command": "markdown_preview", "args": {"target": "browser"}}, ] Click the Preferences-Package Settings-Mardown... Read more
  • How to compile and install VASP 5.4.1 on Ubuntu 16.04 LTS

  • This tutorial will explain how to install VASP 5.4.1 on Ubuntu 16.04 LTS. Table of Contents Step 0: Before installing Step 1: Acquiring the necessary packages Step 2: Extracting the VASP source tar and adding patch Step 3: Setting the build procedure Step 4: Configuring the makefile Step 5: Compiling Step 0: Before installing As an old saying syas, Sharpening your axe will not delay your job of cutting wood. There is a marvelous wiki of installing VASP, highly recommend. Assuming you have already got the source files... Read more
  • How to Speak English Well- 10 Simple Tips to Extraordinary Fluency

  • Table of Contents 1 Accept That English Is a Weird Language 2 Dive into the Deep End 3 Stop Being a Student 4 Remember the Answer Is in the Question 5 Get More out of Listening 6 Use It or Lose It 7 Learn and Study Phrases 8 Don’t Study Grammar Too Much 9 Don’t Be Afraid to Make Mistakes 10 Learn from Everyone 1 Accept That English Is a Weird Language Sometimes you can find patterns in English grammar, but other times English doesn’t make sense... Read more