- Click the Linux Mint Menu Button at the bottom left of the screen to open the Linux Mint Menu.
- Under the "System" section, click "Software Manager".
- In the Software Manager window, use the search box at the top right and search for "docker".
- Click on "Docker.io - Linux Container Runtime".
- Click the green "Install" button at the top right. Enter your administrator password when prompted.
- Open the Linux Mint Menu again (see step 1), search for "Users and Groups", and click it to open the "User Settings".
If your master.key has been compromised, you might want to regenerate it.
No key regeneration feature at the moment. We have to do it manually.
- Copy content of original credentials
rails credentials:show
somewhere temporarily. - Remove
config/master.key
andconfig/credentials.yml.enc
- Run
EDITOR=vim rails credentials:edit
in the terminal: This command will create a newmaster.key
andcredentials.yml.enc
if they do not exist. - Paste the original credentials you copied (step 1) in the new credentials file (and save + quit vim)
- Add and Commit the file
config/credentials.yml.enc
I am passionate about Ruby, but its execution time compared to other languages is extremely high, especially when we want to use more complex algorithms. In general, data structures in interpreted languages become incredibly slow compared to compiled languages. Some algorithms such as ´n-body´ and ´fannkuch-redux´ can be up to 30 times slower in Ruby than Go. This is one of the reasons I was interested in embedding Go code in a Ruby environment.
For those who do not know how shared libraries operate, they work in a similar way as DLLs in Windows. However, they have a native code with a direct interface to the C compiler.
Note Windows uses the DLL system, and in this case, this does not necessarily have to be in native code.
One example is DLLs written in C#, which runs on a virtual machine. Because I do not use windows, I ended up not testing if it is poss
This is what I once wrote to a reader:
- Nand2Tetris book - http://www.nand2tetris.org/
- The paper "An Incremental Approach to Compiler Construction", by Abdulaziz Ghuloum. You can find a hosted PDF version of the paper and an implementation of its contents here: https://github.com/namin/inc\
- Jack Crenshaw's classic "LET'S BUILD A COMPILER" from 1988. Even though it's kinda dated (he's using Turbo Pascal), it's one of the great "let's roll our sleeves up and write some code" texts. Here is the PDF version: http://compilers.iecc.com/crenshaw/tutorfinal.pdf
- Then there are also the 4th and 5th chapters of Structure an Interpretation of Computer Programs (SICP), in which you'll build an interpreter and a kinda bytecode-compiler for a virtual register machine. It's a pretty abstract and seemingly alien affair (using a Lisp dialect to build a virtual register machine for a bytecode defined in Lisp, produced by a Lisp compiler, etc.), but it teaches the concepts behind the whole compiler and VM thing.
# based on ruby/benchmark/bm_erb_render.rb | |
require 'benchmark/ips' | |
require 'erb' | |
require 'erubi' | |
require 'erubis' | |
data = DATA.read | |
mod = Module.new | |
mod.instance_eval("def self.erb(title, content); #{ERB.new(data).src}; end", "(ERB)") |
This is a list of MacOS apps I like. I'm trying to just include apps that are not mainstream but still high quality. The list was complied in August 2017.
- Cmder
- Conemu
- Console2
- Powershell
- rxvt & cygwin
require 'sidekiq/api' | |
# 1. Clear retry set | |
Sidekiq::RetrySet.new.clear | |
# 2. Clear scheduled jobs | |
Sidekiq::ScheduledSet.new.clear |