Fix RVM “run script from the internet to install”

May 8th, 2015

On Wednesday I complained about the latest UN*X fad of installing software by running scripts from the internet, without any regard to how your operating system handles software installation.

Docker, that I complained about last time, at least has a script that takes into account the local software management solution (uses apt for Ubuntu, yum for Fedora, etc), but RVM – the Ruby Version Manager which is a popular tool among rubyists everywhere, just downloads a bunch of executable stuff (granted, most of it are scripts, but the difference is lost on most people) into arbitrary location on your file system. At least it doesn’t install system software, oh wait – it does.

While I can’t help with RVM’s desire to install system level software (that it actually needs because one of the things you want RVM to do for you is to compile ruby versions from source), I can try to help you figure out how to install RVM where you want it and use it how you want it.

Read the rest of this entry »

Docker and the horrible “one line installation” fad

May 6th, 2015

One of the weird things that sane (or some would say “old skool”) system administrators complain about lately is that with the rising popularity of UN*X systems (mostly Mac OS X and Linux) in the world, and in particular in the software development world, people using UN*X system want less and less to understand how to manage their systems and the culmination is the

to install this complicated system level software, just copy and paste simple wget command to your terminal

with Docker being the most horrible example of that behavior. No sane person (who understand UN*X) will ever think that installing Docker by feeding the content of a URL to bash is a good idea, but for some reason this is the documented and recommended way by the Docker people. Other examples are abound, but lets concentrate on fixing the Docker scenario.

Read the rest of this entry »

Best Terminal Emulator Application

April 16th, 2015


Frankly, I don’t think that there is any point of discussion, it is hands down KDE’s Konsole, but as recently I’ve been using GNOME 3.16 as my main desktop environment, I thought it will be useful to have a list of features missing from GNOME Terminal to be a contender:

Read the rest of this entry »

Microsoft open-sourced MSBuild

March 26th, 2015

The Microsoft initiative to open source the .Net platform (which the MSBuild tool is a part of) has been talked about a lot in the past (though I have something to say about this as well, probably later in this post), but the fanfare has died down quite a bit since the last announcement. One might say that the reason they didn’t open source the entire thing at once was so Microsoft can space out the announcement and synthetically generate continued buzz about their platform, but knowing how these things usually work, its much more likely that because preparing a project for open-source is difficult and time consuming and a project as large as .Net doubly so (or a thousand times so), so it makes sense to do so in parts.

But to the question at hand – what does an open source MSBuild means to you? Read the rest of this entry »

Never let a Mac user design your website, here’s why:

February 17th, 2015

Well, at least until the entire world uses high DPI screens. Lets see an example:

Pulsing button (video)

This is a “call to action” effect on a button – it pulses slightly to get attention. This has proven to be really effective at improving “conversion” (web term to “getting you to do that thing I want you to do”). But even if you are not a designer at heart its easy to see that the text in the button is pulsing at different speeds and this creates a really jarring effect.

Read the rest of this entry »

דברים מטופשים: טקס פרסי הטלוויזיה

February 16th, 2015

למי שלא שם לב (בטח כולכם), האקדמיה הישראלית לקולנוע וטלוויזיה(1) חילקה ביום שישי האחרון את פרס האקדמיה לטלוויזיה (שמוגדר באתר האקדמיה כ-“המקבילה הישראלית לפרסי האמי האמריקאים”, אבל בניגוד לפרס אופיר לקולנוע ולפרס האמריקאי המצוין לעיל, אין לו שם).

בטח לא שמעתם על זה, כי טקס חלוקת הפרס ליצירה טלוויזיונית ישראלי מקורית, בו חולקו פרסים לסדרות בהפקת ערוצי טלוויזיה ישראלים, לא שודר באף ערוץ טלוויזיה ישראלי,  אפילו לא אלו שקיבלו את הפרס.

אני ספרתי שלושה דברים מטופשים.

Read the rest of this entry »

  1. למה את המילה הזאת לא עיברתו? []

Pollution Efficiency of Alternative Fuel Cars

November 25th, 2014

Every now and then, when discussing EVs (electric vehicles) or other alternative fuel cars(1), that offer basically zero pollution (in the form of green house gases and other poisonous gases) someone always raises the argument that these cars just “move the pollution upstream” to the electric power plants and you are still polluting just the same.

But this argument only works if the power production “upstream” really is polluting as much as an onboard gas engine – which really sounds weird to me, because as you increase the success of the engine – from something that had to be small enough to fit in a car to something that basically only had the limit of required to be cost effective – surely you can have large efficiency gains, even if burning the same fuel?

So here are some numbers:

Read the rest of this entry »

  1. like the new “hydrogen powered” cars []

Script day – Amazon AWS Signature Version 4 With Bash

November 19th, 2014

As anyone who works with the Amazon Web Services API knows, when you submit requests to an AWS service you need to sign the request with your secret key – in order to authenticate your account. The AWS signing process has changed through the years – an earlier version (I think version 1) I implemented in a previous blog post: upload files to Amazon S3 using Bash, with new APIs and newer versions of existing APIs opt in to use the newer signing process.

The current most up to date version of the signing process is known as Signature Version 4 Signing Process and is quite complex, but recently I had the need to use an AWS API that requires requests to be signed using the version 4 process in a bash script(1), so it was time to dust off the old scripting skills and see if I can get this much much much more elaborate signing process to work in bash – and (maybe) surprisingly it is quite doable.

With no further ado, here is the code:

Read the rest of this entry »

  1. I’m trying to use SQS to send change notifications from a FreeBSD jail running on a FreeNAS server – a place were I’m uncomfortable installing the AWS CLI tool or the SDK. This also help explains all the FreeBSD compatibility written into the code []

הלקוח צודק, גם כשהוא מעצבן

August 10th, 2014

English: GSM Micro SIM card vs. GSM Mini SIM card

ניגשתי היום לנקודת שרות של סלקום בשביל לשחזר את כרטיס ה-SIM של הטלפון שאיבדתי (את הכרטיס, לא את הטלפון), וכשאיש השרות שאל אותי איזה סוג כרטיס אני צריך, עניתי לא בפשטות “הרגיל – מיני SIM”. מה שהוביל לויכוח האם קיים דבר כזה שנקרא “Mini-SIM” (רמז: קיים, זה מה שיש ברוב הטלפונים).


שזה כנראה היה טעות מצידי, כי איש השרות א) לא מבין במוצר שהוא מוכר (שזה לא מקרה מיוחד), אבל ב) משוכנע ש(חוסר) הידע שלו הוא הדבר הנכון ו-ג) מאוד לא סלחני לאנשים שמנסים להסביר לו שהוא טועה – מה שגרם לכך שקיבלתי שרות ממש גרוע ויחס מזלזל.


GNOME 3 Fails As A Desktop Environment

August 6th, 2014

Because if you don’t like exactly 100% what the GNOME developers think the desktop should look like, then too bad, you’d just have to suffer.

In addition to really annoying misbehaviors that I doubt anyone could justify (like the evolution color problem), here are the list of things that cause me to hate GNOME and will eventually cause me to reinstall KDE.

Full disclosure: I’m normally a KDE user and have been trying the latest GNOME using Fedora 21 pre-release. I expect that some of the things I mention below are bugs that will be fixed in time for the public release, and if so feel free to point them out. Also, I’m aware that some of the issues I have can be “fixed” by installing the GNOME Tweak tool or editing the dconf (the GNOME “registry”), but I don’t feel this is a valid way to build software – “if you want it to not be painful, you should be an advanced user”. Did I mention I love KDE?

Read the rest of this entry »

Spam prevention powered by Akismet