Jupyter and a Python (almost) (Photo credit: Wikipedia)
Following the isolation of python environements
and given I use jupyter notebooks,
isolating jupyter kernels inside virtualenv is a logical step.
To do so, you must install a new kernel using the ipython you installed inside
- Create your virtualenv
- Install ipython inside your virtualenv (use pip)
- Create a new kernel
ipython kernel install --user --name="test"
3. Start your jupyter-notebook. You can now choose your new kernel
(listed just below the python3 kernel). You can also change your kernel on an
Kernel selection menu (last item)
Sail ship maneuvers
Sail ship not tacking (Proto credit: Wikipedia)
Maneuvering a sailship is not straight forward, especially when against the wind.
This article is focused on sail position when turning for
The main sources are naval action videos.
The sailship has 2 or 3 masts.
The fore-mast (the one …
Loop device (Photo credit: Wikipedia)
Loop devices are used to acces any file as if it were a block device such as a disk. On GNU/linux, the canonical command to interact with loop devices is losetup. To list the next usable loop device: losetup -f
disk image loop mount …
awesome global shortcut
[caption id="" align="alignright" width="200" class="zemanta-img"] Multimedia keyboard (Photo credit: Wikipedia)[/caption]
The awesome window manager does not provide GUI configuration tool.
Here is a litte how to to provide a feature using global shortcut, illustrated with wolume control.
Defining and identifying the feature and the shortcut
quick and easy calendar
Calendar (Photo credit: Wikipedia)
A quick post to share something I was looking for for several month: a quick way to see a calendar.
A simple tool using the command line interface is the `cal <https://en.wikipedia.org/wiki/Cal_%28Unix%29>`__ command that display a calendar in …
vim spell checker
Spell checking learning(Photo credit: Wikipedia)
The official documentation of the vim spell checker is available on the vimdoc website. This is an extract to go through this process as quicker as I can:
udev, systemd, laptop, power management and backlight brightness
[caption id="" align="alignright" width="218" class="zemanta-img"] Laptop problem (Photo credit: Wikipedia)[/caption]
My two problems with my laptop are the following:
- I want to control the backlight brihtness of my screen even if I don't start the graphical desktop (i.e. work with tty)
- I want to be …
yahoo openID issue
[caption id="" align="alignright" width="75" class="zemanta-img"] (Photo credit: Wikipedia)[/caption]
Recently, I've encountered an issue using my yahoo openID. This is the standard way I used to log in stackexchange. I don't know where and when was the change made, but it seems I'm not the ony one …
SQL like aggregation in R
[caption id="" align="alignright" width="75"] Group by (Photo credit: Wikipedia)[/caption]
The use case
is similar to the one descibe in usual SQL
quick reference guide at the "group by" section.
first of all, I need a dataset as one data.frame:
d <- data.frame(product=sample(c("fruit …
unfactor R factor
Consider the following R code:
a <- factor(floor(rnorm(100))) class(a) summary(a)
Why should you have that? great question. Maybe because of memory place. I really don't know, but I received some R dataset in the form of a factor. My problem is to revert this process, i …