Archive

Archive for January, 2017

loop a youtube video

January 28, 2017 Leave a comment

Problem
You find an awesome music video and you want to play it in an infinite loop.

Solution
You need to re-format the youtube URL a bit. Sample:

Input: https://www.youtube.com/watch?v=VIDEO_ID

Output: http://www.youtube.com/v/VIDEO_ID?version=3&loop=1&playlist=VIDEO_ID

Concrete example: input, output.

Tip from here.

Advertisements

Don’t paste blindly to your terminal

January 27, 2017 2 comments

Most of the time when we see a code snippet online to do something, we often blindly copy paste it to the terminal.

Well, the copied text may contain some malicious code. Here is a post about that with a demo.

Categories: bash Tags: , ,

VPN list

January 23, 2017 Leave a comment

Autovpn is a nice and simple project to easily connect to a VPN in a country of your choice.

If you need a VPN list, you can find the necessary URL in its source.

Here is a Python implementation too (link).

Categories: bash Tags: ,

[ml] Visualizing K-Means Clustering

January 22, 2017 Leave a comment

Here is a very nice visualization tool for k-means clustering: https://www.naftaliharris.com/blog/visualizing-k-means-clustering/ .

k-means clustering

k-means clustering

Jerly: A Java implementation of Earley’s efficient parsing algorithm

January 22, 2017 Leave a comment

I found an old project of mine called Jerly. I wrote it in 2004-2005. I tried it in 2017 and it still works fine :) You can find it on GitHub.

Jerly is a Java implementation of Earley’s efficient parsing algorithm for lambda-free context-free grammars. To put it in a nutshell, it tells you if a word can be generated with a set of rules or not.

Categories: java Tags: , , ,

[math] Why is regression called “regression”?

January 19, 2017 Leave a comment

Have you ever wondered why regression is called “regression”? It makes no sense. Why is it not “line fitting” for instance?

Here is a nice read that explains why it’s called “regression”.

Categories: math Tags: ,

[manjaro] Python was updated to 3.6

January 19, 2017 Leave a comment

Under Manjaro, Python 3.5 was updated to version 3.6. This is a big change, so check out the release notes, you might have to do some manual changes.

Categories: manjaro Tags: ,