These are the steps to build latest libvips (8.7.4) deb package on ubuntu 18.04
##1. install build scripts
# sudo apt install build-essential devscripts
##2. download vips source
| width, imagemagick, libvips | |
| 1000, 0.129, 0.045 | |
| 1500, 0.190, 0.067 | |
| 2000, 0.276, 0.054 | |
| 2500, 0.380, 0.068 | |
| 3000, 0.498, 0.085 |
These are the steps to build latest libvips (8.7.4) deb package on ubuntu 18.04
##1. install build scripts
# sudo apt install build-essential devscripts
##2. download vips source
| const compressGraphqlDocument = graphqlDocument => | |
| graphqlDocument | |
| .replace(/#.*\n/g, '') | |
| .replace(/[\s|,]*\n+[\s|,]*/g, ' ') | |
| .replace(/:\s/g, ':') | |
| .replace(/,\s/g, ',') | |
| .replace(/\)\s\{/g, '){') | |
| .replace(/\}\s/g, '}') | |
| .replace(/\{\s/g, '{') | |
| .replace(/\s\}/g, '}') |
| // Amazon購入履歴のCSVエクスポート | |
| // | |
| // 使い方: | |
| // 1. 全部コピーする (右上の Raw をクリックした先でやるのが楽) | |
| // 2. Amazon の注文履歴ページ ( https://www.amazon.co.jp/gp/css/order-history/ ) を開く | |
| // 3. F12 または 右クリ→要素の検証 とかで出てくる開発者ツールのコンソール (JavaScript REPL) にペースト | |
| // 4. エンターで実行 | |
| // (Firefox はなんか allow pasting とタイプしろみたいなことを言われるので従う) | |
| // 5. しばらく待つと、コンソールに合計金額が表示され、CSVが保存される | |
| // |
| #!/bin/bash | |
| # Workspace switcher for GNOME | |
| # Author: thevtm@github | |
| # | |
| # Based on Andy Balaam's workspace-switcher | |
| # http://www.artificialworlds.net/blog/2011/03/04/switching-workspace-in-gnome-via-the-command-line/ | |
| # | |
| # REQUIREMENTS: | |
| # * wmctrl | |
| # |
Please note that this has a little problem: It posts the links as Slack Bot and not as yourself. You could add your name to the message but doesn't look right.
I've created a little bookmarklet that posts the url of the current webpage to a Slack channel. You have to set your token and the channel name manually but it's all fun and profit from there.
| ======= Prolbem ================================================================================================================= | |
| I have installed : ruby-2.0.0,postgres-9.2 , now in rails app when I execute: | |
| rake db:create , command I get: | |
| PG::InvalidParameterValue: ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII) | |
| HINT: Use the same encoding as in the template database, or use template0 as template. | |
| : CREATE DATABASE "my_db_name" ENCODING = 'unicode'....... | |
| bin/rake:16:in `load' |
| { | |
| "AWSTemplateFormatVersion": "2010-09-09", | |
| "Description": "VPC knowhow template", | |
| "Parameters": { | |
| "KeyName": { | |
| "Description": "Name of an existing EC2 KeyPair to enable SSH access to the instances", | |
| "Type": "String", | |
| "MinLength": "1", | |
| "MaxLength": "64", | |
| "AllowedPattern": "[-_ a-zA-Z0-9]*", |