Magit has nice integration with Github and Gitlab!
Just read this article from magit author about integration. https://emacsair.me/2018/12/19/forge-0.1/
Since now you can enjoy making PRs and MRs right from your lovely editor!
Keep it simple, stupid
Simplicity is an underappreciated property.
In order to dynamically edit content people tend to introduce a lot of complexity by using powerful CMS systems, databases, search engines etc. Moreover, you’ll need to spend significant efforts on maintenance, high availability, for all this stuff.
What if you can just use Markdown and provide a short training course to people? What if you can use Hugo and Github Actions pipelines or similar for publishing?
Literally everything becomes more simple, thus more robust. What power can you gain by using simple text based format like this? Countless amount of tools for editing, processing and automation. Think about this.
2020 week 28
This week I’ve saved the following links:
Smalltalk online course done
I’m always happy to gain a new knowledge, so this time I was putting efforts into Pharo programming course and voila, enjoyed it challenges and got a Certificate of accomplishment.
Interesting take on time from the Go perspective
I found really interesting how the time is specified in Go language stdlib.
From https://golang.org/pkg/time/
To define your own format, write down what the reference time would look like formatted your way; see the values of constants like ANSIC, StampMicro or Kitchen for examples. The model is to demonstrate what the reference time looks like so that the Format and Parse methods can apply the same transformation to a general time value.
Namely, you write an example of time date, not just “dd-MM-yyyy” but real date and time using numbers as values.
Here is go example:
01/02 03:04:05PM '06 -0700
Mon Jan 2 15:04:05 MST 2006
if we want to print output similar to dd-MM-yyyy we’d specify just
02 Jan 2006
Quite smart and unusual.
2020 week 24
2020 week 23
- Awesome emacs introduction Emacs Doom Youtube playlist
- Clojure spec tips and tricks
- Janestreet Blog especially Review system in Emacs
Setting up a PHP development environment with Apache2 and php-fpm on macOS Catalina
At the moment using Docker for development on macOS © has its own flaws, and in case you need good performance, there is a more or less complicated way to set up a local development environment with native apache2 and php-fpm stack.
Keep in mind, PHP 7.3 comes with macOS Catalina preinstalled, so you might not need to install PHP separately.
Prerequisites
- brew https://brew.sh/
Installation
- Install PHP
brew install [email protected] - Install apache
brew install apache2
At this point, you’ll have PHP v7.4 installed in /usr/local/opt/[email protected]/
Awesome video using REPL with Pharo on Raspberry Pi
Totally awesome video of remote REPL with interaction on the Raspberry Pi device.
If you want to know more about Pharo and Smalltalk, I encourage you to complete this the free Pharo course.
Переезжая на Hugo
Первая запись в wordpress блоге датируется декабрем 2009. Видимо в это время мне стало понятно, что поддерживать контент-менеджмент в написанном на Parser 3 сайте nexus.org.ua стало накладно и я сделал выбор в пользу популярного движка блогов wordpress. Надо признать, под влиянием medium он сильно прибавил в юзабилити и редактировать посты стало в нем одно удовольствие.
Как видите на 2009 год я считал, что поднять mysql и запустить php было очень хорошей идеей. Все это так, пока ты не становишься старше и не принимаешь решение, что поддержкой wordpress ты заниматься не хочешь, потому что:
- Нужно следить за сертификатами от letsencrypt.
- Обновлять php.
- Обновлять wordpress, который хаканый-перехаканый неоднократно.
- Следить за состоянием mysql
- В 2010 году все это контейнеризировалось, но все же. Сложности добавилось с приходом докера. Как теперь безопасно обновлять имаджи и какие именно использовать?
- Следить за сетью в докере и связностью с контейнерами nginx и letsencrypt.
- Думать о бекапах базы mysql, думать о бекапах картинок к статьям.
В какой-то момент не хочется заниматься поддержкой всех этих технологий, а хочется просто писать в блог.