Do what you can't -- Casey Neistat

2018-01-21
Solve Latex Pakcage not found by tlmgr

Solve Latex Pakcage not found by tlmgr

When installing latex packages for Latex. Users can either install texlive-basics or full version texlive. However, the basic version is light version uses much less strorage. Instead, full version texlive covers most of packages but more storage on disk.

Install texlive-basic

I choose to install texlive-basic and install the packages required for my Latex file.

Read More

2017-11-22
create a python package and upload with PyPI

create a python package and upload with PyPI

Recently I want to manage some frequent used code and pacakge them and install them on cross platforms.

Creat a Project and Setup File

1
2
3
$mkdir cps
$cd cps
$touch setup.py
Read More

2017-11-17
Kth Largest Element in an Array

Kth Largest Element in an Array

The problem to find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.

For example,
Given [3,2,1,5,6,4] and k = 2, return 5.

Read More

2017-11-16
Understand Tensor Decomposition

Read More

2015-09-19
Advanced Sql Programming Problems and Solutions

Advanced Sql Programming Problems and Solutions

description: The sql schema we used here is a bar-beer-drinker relational schema. Bars can sell beers, which are from different manufactories have different types. Drinkers frequents bars and like beers.

1.List the number of beers that bars starting with B serve(all bars)
2.The set of bars and manf that have average price for the beers from the same manufacturer more than 5 bucks
3.Unusual beer (A beer that is sold in the least number of bars)
4.Bars that serve all beers
5.Bars that have a beer Mike likes that is cheaper than in any bars Mike frequents
6.Bars that have maximum variety
7.Unusual manf per bar (A manufacturer that the current bar has the least number of beers from)

Read More

2015-06-20
Ubuntu给桌面环境注册程序

sublime 在ubuntu下不支持中文输入法,这对于开发来说难免有很多不方便的地方

使用自定义程序方法启动sublime2./sublime3

首先,我们进入sublime的配置目录下:

cd /opt/sublime-text2

这里,我们新建一个代码文件来进行编译生成我们的自定义程序

sudo touch sublime-imfix.c

Read More