RSSAmplifier

Blog

Code and unicorns

Code and unicorns

codeandunicorns.comRSS feed ↗69 posts

Latest posts

Example Talk

Click on the Slides button above to view the built-in slides feature. Slides can be added in a few ways: Create slides using Wowchemy’s Slides feature and link using slides parameter in the front matter of the talk file Upload an existing slide deck to static/ and link using url_slides parameter in the front matter of the talk file Embed your slides (e.g. Google Slides) or presentation video…

Top 7 Raspberry Pi-like Boards That Are Cheaper and have good Linux support

Looking for a more affordable alternative to Raspberry Pi without sacrificing compatibility with Linux? You’ve come to the right place! In this blog post, we will explore the top 7 Raspberry Pi-like boards that are cheaper and provide excellent Linux support. These boards are perfect for hobbyists, students, and professionals who want to create innovative projects without breaking the bank.…

Explore Olbia on Two Wheels: A Scooter Adventure Through Sardinia's Gem

Discover the hidden treasures of Olbia and its surroundings with the freedom of a scooter. Introduction: Olbia, a bustling port city on the northeast coast of Sardinia, is the perfect starting point for a memorable scooter adventure. With its rich history, picturesque landscapes, and pristine beaches, there’s no better way to explore the area than on two wheels. In this blog post,…

Unworldly unicorn

A recent project I was working on is an online e-commerce shop providing different kind of merchandise. From T-shirts and hoodies to different electronics. They range from different audio equipment to USB accesories and much more. The part I am the most fond of is a design that is fairly clear and easy to use by customers. I used Shopify to create the e-shop and for customisation of design I used…

London Imaginarium

Cross Ireland cyling tour

I have decided to do something different, something out of the ordinary and a wee bit on the extreme side. The winter is coming, and tourists are leaving the European shores for warmer climate, like the migratory birds. Going into their warm houses, with heating of some kind, and looking dreamily through the window into rain covered trees. But why should I just look from the warm comforts?…

Semi detached love story

I’m a house on the Oxfordshire road up the left, You are the one, Looking at me every day. Opposite each other, But one in heart. The families of old 17th and 18th century cottages, All around. They despise what we have found, Love where there wasn’t one. What to do, When the whole society is against you? Begone, It’s enough! One night, When all other houses are in slumber deep. We erect our…

Slides

Create slides in Markdown with Wowchemy Wowchemy | Documentation Features Efficiently write slides in Markdown 3-in-1: Create, Present, and Publish your slides Supports speaker notes Mobile friendly slides Controls Next: Right Arrow or Space Previous: Left Arrow Start: Home Finish: End Overview: Esc Speaker notes: S Fullscreen: F Zoom: Alt + Click PDF Export : E Code Highlighting Inline code:…

Gorvak: Sentient species of trees in a far away land

Poems are an alternative way of how to put imagination into writing. And in the following one I have imagined a world of sentient tree like beings in a nitrogenic atmosphere with their conscious great but working in a different way and speed to what we may be used to. It gives I hope also a good representation of possible challenges when encountering foreign species sooner or later into the future…

How to start Go like a pro

Presentation of my personal setup and suggestion for preparing a nice Go environment and some other resources in which you can feel comfortable to start bashing out the code. Lets have a quick lookup: Visual Code : On the Visual code install Go extension. Go (duh) But more importantly there are a nice of number tools that you would really want to run with Visual Code and Golang. Some of them are…

Cuttlefish star

Cuddle cuddle that tiny cuttlefish. Through telescopes immersive, All eyes are glued to the asteroid going round n’ round the moon. On that tiny rock liquid water shines, And it’s borders with glassy crystals and metallic rock, Make a real treat for eyes to see. In months two ago, Cousins that divorced long ago have returned, Returned to home where they once were one. For what is gathered through…

Git pull with better touch tool on Touchbar

This is a short tutorial on how to setup Terminal command with Better touch tool in one of my use cases. In my case I used Synchronous blocking terminal command that git pulls from the repo and at the same time remakes changes to one configuration file to prepare it for local development. Get BTT (bettertouchtool) and install it Under TouchBar add a Global TouchBar button. (Of course you can do it…

Petri dish

For thee, dear Petri dish, Which supplies us knowledge, with culturing what we can not see, Thanks for the insights that enlighten us . Let us fill thee with agar, And as a chef fills his favourite dish, Enrich you! A bit salts, carbs,amino acids and blood, For mix to fully flourish, Adding a bit of dye, To make it easier to see. After the mix carefully prepared, We wait until the culture matures.

Get weekly CPU usage function with AWS Python Lambda

Let’s first cover the gist of the actual functionality that will be responsible for giving us averaged CPU utilization during a specific time frame. The code itself is a run of the mill kind of code but already coupled in a nice working example so quite easy adapted. If we take a look at the function bellow: import boto3 import sys from datetime import datetime, timedelta def…

Whalleya

Whale-ing around the cosmos on engines old and rusty, Stopping at clusters on the way, To trade, to live to breathe. For I am a whale, many miles long, That’s it’s ocean is space, And air an atmosphere of any kind. Through machinery inside my nose, Conservation and conversion. From cluster to cluster, At ports the biggest I trade and share. For the pirate ants, Of millions in number, The hunters…

Utopia

In the land of the free, Where you can do whatever you imagine, On condition, Of the holy chip inside your head. Whatever knowledge you want, At finger’s point, From the world wide web, Contained in corporation one. In a world, Where sex is lax and unbounded by society, But snipping obligatory, And reproduction strictly regulated. For a perfection of individual, Price needs to be paid. All…

Progression

When you look at yourself, In this modern day and age. Do you ever stop, To think to yourself? Do you ever stop, And see difference from the past? Merit knowledge we posses, Has exponentially evolved. There no point, To be petrified by yourself, Emotions that are in the loop, for the last million or so years. Embrace the newness, That the current future is. The possibilities it opens, And gifts of…

Lively asteroid

Rotating slowly around axis of its own miniscule gravity, Small asteroid of mostly metallic mixture of elements, Just rotating round the giant planet made of gas, Radiating its interiors inside out. On surface miniature, molten lakes, small hills and crevices, Hosting life based on silicates and metals, Evolution boosted by radiated rays. Through years gone by, Sun ray absorbing crystals forming,…

Reboot reborn

Thousand years have passed since I woke from a slumber last time. Distress and confusion, always days or weeks till body adjusts. It takes time, for the brains and the functions to resume to it’s normal state. My tentacles moving slowly through caves eroded, Raising the dam of sub-terran lake for provision of electricity of mini hydro-plant. Sensors activating, for check into refilling of the…

Meaning

For thy sun has long forgotten what it means to be alive, For he has scoured the skies with brothers of mothers unaccounted for. How long has been, since his eyes have saw, How long until he rests again in rumble of the void? Circling in the years one hundred a million, Around the grand keeper of souls, Around himself planets moving as electrons around neutrons in orbits unknown, Time, what’s the…

Brother’s love

Throughout the eons of yesterday’s, I have watched you. Watched your fiery soul develop, melt and burn. Reshaping through time forever more, forming bumps and cracks till flat ain’t no more. Your valleys deep condense with water, your tops moisten into clouds and drops, marking the landscape in blue and white. Through eons passed you evolved into being a new, forming habitats uncounted and life in…

Kubernetes Dashboard with kops

Following is an example of simplest possible setup of dashboard add-on for kops. By default we utilize the official yaml configuration which already works fabulously with basic user-authentication. That should be perfect for a very small or one person team. Generally though, it is very smart to double check security of the monitoring service itself and extend upon it. First run the yaml…

docker-compose Jenkins with persistent data

This guide will focus on the local environment for now, but should be easy to adapt to higher env’s. The focus of the guide is how to run Jenkins image, add changes to it, and load then on next start. Create a following file on your local machine and go to that location in the terminal. docker-compose.yaml file: services: jenkins: image: 'jenkins/jenkins:lts' labels: kompose.service.type: nodeport…

Using nativefier for creation of desktop application based on electron with any website

Recently I was working a bit more with Magnolia CMS . While I was working on it locally I really wanted to basically just package it as desktop application so it would be a bit easier to use it locally or even having multiple sources pointing in its own direction. So let’s take a good look first for a hosted page in my case I pointed it to Magnolia on a server and secondly let’s try it on…

Interesting command lines

Capture video Macbook webcam with cpu accelerated Captures video from webcam and encodes it using the accelerated hardware provided by videotoolbox framework. It takes about 20% cpu in a i5 2015 macbook air. ffmpeg -f avfoundation -framerate 30 -video_size 1280x720 -pix_fmt uyvy422 -i "0" -c:v h264_videotoolbox -profile:v high -b:v 3M -color_range 1 /tmp/out.mp4 Command-line russian roulette This…

Smart home devices for 2017

In this collection which I am doing mostly for myself. I’m compiling a list of IoT devices that I want to use for my home automation. Majority of products should be compatible with modern hubs such as Alexa. Even though my aim is to make everything connected via OpenHAB and Alexa. Some of the products are not really properly tested but if it at least inspires you, I’m sure you can find…

Java GUI terminal interaction example

The following example will go over following Github repo created specifically for this. **Github: ** https://github.com/mitola/selftomator It was primarily aimed to provide a bit of exploration space since I was looking at several ways to automate a couple of my workflows, so I explored through Java, Node.JS, terminal solutions etc. In the current iteration of the project certain things are…

Touch bar (Macbook pro) terminal automation & Better Touch Tool

Recently I upgraded my work computer to MacBook Pro 13 ” with the new touch bar. But to be totally honest I quite dislike the default customisability of the touch bar that is included in os X by default. After a careful and in depth review of different solutions that could be use to amend that situation I stumbled upon BetterTouchTool (BTT in short), which is a great productivity enchanter in many…

Booktop: Raspberry Pi zero W powered laptop book

I was thinking to myself, you have lots of factors of laptops that fit in a size of a book. So why hasn’t anybody did a Booktop? A nice book with a whole computer inside for your enjoyment? It can also be fairly incognito as additional perk. I am aware it looks a bit wonky on the first picture, but that’s mostly wooden glue before i have removed it together with screen protection. I…

Acer Travelmate 4150 retrofitting to Raspberry Pi Laptop: Part 2 – Working LCD and Raspbian

Explanation on setup I finally got the LCD LED controller. I spent some time to understand a bit better how it works. So basically from the LCD controller there is a connector with red/yellow/black lines going to driver board, which is needed for this old types of LCD monitors. From there it is connected with two cables to monitor itself. The cable covered in black thicker part which combines…

Top 5 Kali Linux Pentest tools for WiFi/network and exploits

Aircrack-ng Aircrack is quite a useful tool. It focuses on several aspects of wifi connected security and breaking into Wifi for certain encryptions as well. For monitoring Aircrack provides: Capturing of packets and export of that data to text files for further processing. For Cracking: It can focus on relatively straightforward cracking of WEP and WPA PSK (WPA 1 & 2) For Testing: Checking of…

Treent Incorporated

Good morning sun, good morning everyone, the woody neurons inside my hollow head are waking into a lovely day a new. You may wander who am I, and what is going on as a reader of my notes, it may be me who is reading it when I’m old and senile, or audience that long forgotten about us and all that came before. Many years before no one is sure how many exactly, a mega-earth like planet Kapteyn…

Acer Travelmate 4150 retrofitting to Raspberry Pi Laptop: Part 1 - LCD and cleanup

First about the idea: I decided to try to create my own laptop with using one of older laptops not useful for anything else. Idea was to find a cheap one on ebay with working LCD and keyboard, ignoring everything else. Choosen laptop: Acer Travelmate 4150 15 Intel Centrino 1.73Ghz spares/rebuild. // Cost 15£ Perfect, It arrived fairly soon and everything seems to be in order. The laptop has only a…

Pibakery example of first setup with wifi and on boot VNC ( for updated version of pibakery)

Recently Pibakery has released an update with updated blocks, that changed quite a bit in comparison to previous versions and improved with several additions of the new building blocks or simplification of the previous ones. Now you even have cron job scheduler which is absolutely amazing! First boot: Let’s start with taking a look at First boot part of the image above: We start with…

Finding faulty commit with git bisect

Recently the problem I have encountered was that the master got broken, possibly due to broken commit. Therefore I was investigating what would be the best and most appropriate way of finding a solution. Git bisect is a tool that uses binary search to find a faulty commit. Without something like this, your only other option is going through each of the commits until you found the one that is…

Observation analysis of Messier 31 super massive black hole

From a viewpoint of objective observer at centre of galaxy identified as Messier 31 or as known “Andromeda galaxy” by the robotic observer of high elevation of AI it appears that the super massive black hole at the centre, harbours different characteristics to previously identified patterns in the database. Based on currently collected data, the constant flow of energy and mass from the central…

What is blue-green deployment and why do we need it?

As a growing company, we have decided to switch from externally managed CMS solution towards our own internally managed one. In this article, we will take you through our short journey of providing zero-downtime releases for our CMS in the world, where maintenance windows are they default options. Our short story with CMS deployment The main reasons for the change were: increased development…

TM1638 Scrolling text on Arduino

The following explanation of the code and how it works and how to connect TM1638 (with led array, display and button array) to Arduino. For IDE and project Initialization I used PlatformIO and due to that and since it makes lots of stuff easier it generates project in C++ with lots os useful configs pre-prepared and if your using Git you will find already prepared .git-ignore file in project as…

Learn to code through games

CODECOMBAT Cost: Free and Paid version ($9) Teacher support: YES **Description: ** It’s quite cool! Supported languages as seen on the picture are Python, JavaScript, CoffeeScript, Clojure and Lua. It’s essentially a proper RPG where you control your character movements through writting the code to avoid obstacles and collect all the collectibles on the way. CODEINGAME Cost: Free for developers…

Top 5 Arduino integrated development environments ( IDE )

Original Arduino Software IDE Cost: Free Description: Default IDE’s environment developed by Arduino. Great starting point for beginners and with perfect connector to physical boards and delpoyment of code. Most of Environments use at least a bit of API or connection of Arduino software IDE to deploy the code to boards themselves. I seriously suggest installing this IDE just in case as an…

Want to learn electronics?

I was just exploring and playing roundabouts with my electronic kits, and it got me thinking. Maybe the world needs a kind of intuitive, different representation of many amateur accessible ecosystems regarding electronics and related resources. Now that intro is gone, lets start: littleBits mini ecosystem You don’t have much idea about electronics but still want to play and do some pretty…

Upon the voyage beetwen the stars [POEM]

Title: Upon the voyage between the stars Author: Matjaz Trcek Description: Poem that talks about long abandoned home, destroyed by the ultimate fear of mankind, upon the travel through the stars, to new beginning to new life waiting at the other end. It can be of course interpreted in a free way as metaphors of different kind. Enjoy! Through the stars we roam, encased into eternal sleep, breath…

Antipatterns in software development

Recently I was diving deep into Antipatterns and found them terribly interesting. Here is a list of quite many different sourced possible antipatterns and their wag abound descriptions. Big ball of mud: Simple way of saying it: An apocalyptic mess. It lacks an understandable and coherent architecture, it can happen commonly due to big pressure, unsustainable growth and need to fix it fast and…

Love is all [POEM]

For Chezi poem: Love is all I see a wall, impregnable fortress of walls, that look like mountains, all the way to the sky high. O miss from the garden of Eve, I am doomed, What can I do? There’s no way, no solution in sight, happiness unreachable. The sky darkens, stormy clouds suddenly appear, ground beneath my feet opens and swallows me whole, engulfed in earthy fire. When everything…

Android Google Vision API project example part 2

In this part of the code we are going in depth of overlays of previews and Google Vision API. The next part of the code will be properly commented so the read out should be easier JAVA part /** * Created by mitola on 22/08/15. */ public class FaceView extends View { private Bitmap mBitmap; // Initi of Bitmap private SparseArray<Face> mFaces; // And Faces public FaceView(Context…

Android Google Vision project example part 1

The following article is an example of using Google Vision API which was recently released by Google. The Vision API is capable of detecting smiles, winks and multiple faces in the picture, as well as providing multiple reference points from which you can define and use your own programmable detections and behaviours. In the following example the smile probability is used together with displaying…

Genomes and object granularity II

As I was finishing the previous part of these series on computational genomics I couldn’t help myself to engage in an actual implementation of a genetic algorithm. But how can one start? Well I tell you… by doing it If you studied operational research the term genetic algorithm shouldn’t be a novelty at all. It started as a theory for solving optimisation problems based on an approach (=…

Revintas travel

Motors are humming into a silent dawn. My head resting quietly onto glass of magnificent machine, that is carrying us over terrain unknown. Eyes slowly opening, watching horizon grow into a mixture of colours. Ranging from light blue, and encompassing into 2 rings, one bigger with a darker blood red and another smaller one of yellow with a slow transformation with addition of a green shade which…

Genomes and object granularity I

I enjoy dedicating a good share of my free time reading and learning new skills. It is a necessary trait that keeps my sanity level high on day-to-day basis and helps me abstract from boring tasks at work. But when I do want to learn a new language I prefer having a decent and meaningful project that will keep me motivated. This time it all started with a statement from one of my favourite…

File retrieval and changing img element with Bootstrap

Sharing a smaller code snippet / mini tutorial / example since I have found it very useful in connection to HTML preview display of cam image or an uploaded image, depending on what you want really 🙂 So, the example is using Twitters Bootstrap, jQuery and beloved base64. I know the last one is just an encoding, but I like it nonetheless! In the following code a simple example is provided with an…