Jun's Blog

Output, activities, memo and etc.

Info-tech

How to remove not removed container images & useful docker commands

Before next blog for qemu-user-static. I would write some articles. How to remove not removed container images The subject is that I faced. The reason is after upgrading a docker, the actual storage to manage containers were changed. Then …

qemu-user-static - part 2 register

qemu-user-static enables us to run multi architecture environment such as ARM on x86_64 like this. $ docker run --rm --privileged multiarch/qemu-user-static:register --reset $ docker run --rm -t multiarch/ubuntu-debootstrap:arm64-bionic un…

qemu-user-static - part 1 summary

qemu-user-static [1] is a software to enable qemu [2] consumable to build and run multi architecture (ARM 64-bit, ARM 32-bit, Intel 32-bit and etc) on x86_64 Intel processor environment. If you run docker or a docker compatible software, y…

Install Debian 9 and how to report a bug

I wanted to report a request for feature to bowtie2 package on Debian project Checking and asking how to report a bug to the bug tracking system (= BTS) on the project, it seems 2 ways. One is to send a report by email (https://www.debian.…

How to use host os directory from chroot (mock) environment.

On Fedora Project's work, a chroot environment is usually used to build and test. The environment is called "mock" environment. As I often forget the way, I save it to this page. There are 2 ways. 1. Using mount --bind Use below command. $…

Travis CI: A better alternative of travis_wait to output the command stdout

I found a better way to run heavy command, seeing a code [1] by chance. If the command does not output log to stdout or stderr for 10 minutes, the job stops. The popular practice to prevent it is like this. But the problem is this command …

OpenStack vs AWS: comparing the services

I am comparing between OpenStack [1][2] and AWS services. [3] is all the services of OpenStack. [4] is the comparing document. I have an experience for AWS. But I do not have for OpenStack. The intent to compare those services is to rememb…

Convert Markdown file to PDF file on Mac (2)

Previously I used markdown-pdf. But I found another tool to convert GitHub style PDF mdpdf [1]. And I would prefer it. junaruga.hatenablog.com mdpdf Install $ npm install mdpdf $ which mdpdf /Users/jun.aruga/node_modules/.bin/mdpdf Usage $…

Convert Markdown file to PDF file on Mac

I was looking for how to covert from a Markdown file to PDF file. After finding a Stackoverflow page [1], I found markdown-pdf [2]. Install Install Nodejs at first, download "10.13.0 LTS" for Mac. $ which node /usr/local/bin/node $ node -v…

How to convert PDF file to PNG file with high quality on Fedora

Here is the way to convert PDF file to PNG files (1 PNG for 1 page of the PDF) with convert command, according to [1]. Maybe output image file type are recognized automatically from the file extension name ".png". $ convert \ -verbose \ -d…

Install Perl 5.28.0 with thread on Mac

I would note how to install perl with thread, as I needed it to use RNA Sequencing tool: Trinity [1]. I needed to upgrade Perlbrew [2] itself, as I got an error to install perl. Upgrade Perlbrew. $ \curl -L https://install.perlbrew.pl | ba…

Install TensorFlow from source on Fedora 27

I tried to install TnsorFlow from source seeing the official page [1]. The source is on GitHub [2]. Install build dependency RPM packages $ sudo dnf install python-devel Install a build tool Bazel. Bazel is necessary to build TensorFlow fr…

Install TensorFlow on Fedora 27

This article is about how to install TensorFlow binary package on Fedora Linux. I referred the install document for Ubuntu Linux on official page [1] $ cat /etc/fedora-release Fedora release 27 (Twenty Seven) $ python3 --version Python 3.6…

Install RPM 4.8.0 on CentOS6

I investigated how default running RPM v4.8.0 [1] is built and installed on CentOS6, because my application [1] needs to support CentOS6. Very old version RPM v4.8.0 is running as a default on CentOS6. We can use CentOS6 environment, downl…

Sending pull-request to Mercurial repository

A way to send pull-request to Git repository is deeply in my mind and body. In case of git repo. I would show this as a comparison of Marcurial repo. $ git clone <repo url> $ git remote add junaruga <forked repo url> $ git checkout -b feature/foo $ vi something $ gi</forked></repo>…

Anaconda and Jupyter

When talking with researchers, they like using Anaconda to install Python and other Python packages to build Python environment. Anaconda is a collection or all in one for Python and other Data Science (Analysis) packages. People do not ha…

Install MongoDB 3.4.3 on Fedora 26

Use the RPM packages. In case of Fedora MongoDB RPM Package, mongodb RPM includes the client commands "mongo". mongodb-server RPM includes the server files and the commands such as "mongod" and "mongos". Install Install is easy. Just type …

Visualization is a key for learning

I realized it recently. I am saving my memory's main structure as an image. It is something like the Tree trunk: saving as an image or sense. Small branches and leaves: saving as an text. To get information from my brain. Maybe I am access…

A picture of Machine Intelligence companies

It's fun. The Current State of Machine Intelligence 3.0 www.shivonzilis.com

Install Docker on Mac 10.9

I installed Docker on my Mac. The situation is the latest Docker does not support my old Mac. But by installing Docker toolbox including Docker, I could use Docker on Mac. To install the toolbox, see this page. https://store.docker.com/edi…

Python Best Practices & Cython

This is a memo for Python’s Best Practices and C extension from Python. I have heard that from my colleague. Python’s Best Practices The Hitchhiker’s Guide to Python! — The Hitchhiker's Guide to Python : So far, this site is the best. PEP …

Python, Bio Tools and me

My idea Needless to say, recently bio industry’s development is remarkable. After finishing first human genome’s full sequence, the investment by governments and big company, related services. I am a fascinated person for that. I have lots…

Install RPM from source on Fedora

When I used Fedora 23, I was not able to build RPM due to errors. However today when I tried to do it on Fedora 25, I was able to build and install. Great. I will note the build success day here. Install $ git clone git@github.com:rpm-soft…

Upgrade Fedora 24 to 25

Yesterday I upgraded Fedora 24 to 25 reading below article that I used last time. [1] Unfortunately I have faced several issues after that. I want to take note for that here. There are some articles about Upgrading Fedora [2][3]. Later I w…

Install Python 2.7.13 from source on Mac

Continuing from previous article. $ cd ~/hg/cpython Check latest version in v2.x. v2.7.13 is latest version for that. $ hg tags | grep 'v2\.7' Below command hg update -r something is like a git checkout something. $ hg update -r v2.7.13 31…

Download cpytyon with Mercurial

I wanted to compile python from source code, reading a document[1]. However I was failed to do it last time. [2] hg clone was failed because of the issue. It may be because of my PC’s poor memory environment. $ hg clone https://hg.python.o…

Mercurial training

I started to use Mercurial that is another source code management (SCM) tool such as Git. Nowadays there are many SCM tools, such as CVS, SVN, VSS, Git, Mercurial. CVS, SVN, and VSS is central repository management tool. Those are already …

Git Tips

I will summarize tips that I learned after reading a Git book. git describe Show the most recent tag that is reachable from a commit For example, we know a commit hash that a bug was fixed. And we can find fixed version base on the commit …

Think about the Python environment like Ruby Bundler

Want to use Python environment like Ruby Bundler! Ruby Bundler is very convenient. Below process is so common before starting development for a RugyGem package. $ git clone GIT_URL/foo.git $ cd foo $ bundle install --path vendor/bundle $ b…

Install Python 3.5.2 from source on Mac

Python Install latest stable version Python 3.5.2 on Mac. Seeing official site [1]. However as I was not able to download with Mercurial (hg command), that is on the official site, get the source from git mirror. [2] Install from Git sourc…