open-menu closeme
Home
RetroComp icon
Retro Computing Articles Composition Notebooks 8bit
DevOps icon
Automation K8s Done Right
GenAI icon
Fatlama Newsletter Generative AI
Projects icon
Software Projects Arduino Misterio Esp8266 SQLite
Status
Links icon
GitHub LinkedIn
About
github linkedin rss
  • Thinking in Angular 4: Templates

    calendar Jul 28, 2018 · 2 min read
     en featured knowledgebase  · great-ideas javascript javascript-war
     ·
    Share on: twitter facebook linkedin copy
    Thinking in Angular 4: Templates

    To understand Angular 4, after the “Hero” tutorial you should start from the Template syntax. 

    We highlighted some statement in red below:

    Data direction Syntax Type
    One-way from data source to view target \{\{expression\}\} [target]="expression" bind-target="expression" Interpolation Property Attribute Class Style
    One-way from view target to data source (target)="statement" on-target="statement" Event
    Two-way [(target)]="expression" bindon-target="expression" Two-way
    Binding types other than interpolation have a target name to the left of the equal sign, either surrounded by punctuation ([], ()) or preceded by a prefix (bind-, on-, bindon-).

    The target name is the name of a property. It may look like the name of an attribute but it never is. To appreciate the difference, you must develop a new way to think about template HTML.  


    Read More
  • L’ovviologo

    calendar Sep 28, 2017 · 2 min read
     it knowledgebase
     ·
    Share on: twitter facebook linkedin copy
    L'ovviologo

    Ci sono una nuova generazione di “nullasapienti”, persone che con una inutile laurea (tipicamente in legge) diventano giornalisti dilettanti, seguono i trend della “blogosfera” e leggono magari qualche bel libro di comunicazione.

    Il risultato è che pubblicano video che non sono scontati, non sono banali ma non sono neppure perle di saggezza. Sono ovvi. La cosa diventa meno bella se mettendoci la loro faccia, vogliono pure dei soldi da voi.


    Read More
  • Esp8266 your WiFi Embedded solution

    calendar Sep 3, 2017 · 2 min read
     en esp8266 featured knowledgebase  · esp8266
     ·
    Share on: twitter facebook linkedin copy
    Esp8266 your WiFi Embedded solution

    Arduino is a great hardware for a lot of reason: easy to use, difficulto to break, it is a very solid 5-Volt board.

    But it a way too much and it has a very limited amount of RAM. So I started exploring other more “different” solutions. I need an economy chip with some RAM on it. After some research, I stumpled upon a lot of so-called Arduino alternative…


    Read More
  • Removing duplicate rows in PostgreSQL, Oracle and SQLite

    calendar Jun 15, 2017 · 1 min read
     en knowledgebase sql  · evil oracle postgresql sql
     ·
    Share on: twitter facebook linkedin copy
    Removing duplicate rows in PostgreSQL, Oracle and SQLite

    Sometimes you need to remove nasty duplicate on a table, based on a subset of the column. On every big database there is something called “rowid” which can be used to indentify a column in a unique way. On PostgreSQL is called ctid, as we shall see:


    Read More
  • Emacs insert series

    calendar Mar 23, 2017 · 1 min read
     en knowledgebase  · emacs relax
     ·
    Share on: twitter facebook linkedin copy
    Emacs insert series

    In Excel you can easily fill in a column with a list of values. Some times also in Emacs you my need to write down a bunch of similar code. The dotimes function with the “elsp eval” M-x : (Esc + : on windooze) will solve your trouble easily. Try out this code on scratch buffer:


    Read More
  • La mia esperienza nell’open source

    calendar Jan 15, 2017 · 4 min read
     it knowledgebase org-mode-parser software software-projects  · github opensource
     ·
    Share on: twitter facebook linkedin copy
    La mia esperienza nell'open source

    Nel 2011,  per studiare node js creai un progetto chiamato OrgModeParser.

    Org Mode è un package per l’editor Emacs, ed è pensato per tenere note strutturate, pianificare progetti con una schedulazione, mantenere una lista di cose da fare e generare poi documenti word o html da tali file in modo piuttosto efficace.


    Read More
  • AngularJS alterantive: Micro JavaScript framework on the 2017

    calendar Jan 8, 2017 · 2 min read
     en knowledgebase software
     ·
    Share on: twitter facebook linkedin copy
    AngularJS alterantive: Micro JavaScript framework on the 2017

    AngularJS is indeed a good framework, but if you lose some grip on it (i.e. you go in vacation for 2 weeks), it is very complex to re-grasp.

    Also I have seen junior JavaScript developer confused my $scope use.

    JavaScript on client side has damned destiny: it is too easy to develop a framework from scratch: so roll you dice, cross your finger and find plenty of AngularJS alternatives


    Read More
  • Oracle Auto increment trigger HOWTO

    calendar Dec 13, 2016 · 1 min read
     en featured knowledgebase sql  · oracle tip
     ·
    Share on: twitter facebook linkedin copy
    Oracle Auto increment trigger HOWTO

    Oracle SQL Developer is full of nice feature, damned by a overwhelming options pane, like the one I will describe to you right now.

    Even if  Oracle databases (<12) does not support auto increment, you can easily ask to your sql data modeler to generate for you a sequence and a trigger in a automatic way.


    Read More
  • Oracle Database Sync

    calendar Nov 22, 2016 · 1 min read
     en featured knowledgebase sql  · oracle tip
     ·
    Share on: twitter facebook linkedin copy
    Oracle Database Sync

    Oracle SQL Developer is full of nice feature, damned by a overwhelming options pane, like the one I will describe to you right now.

    I will show here a very fast way of comparing different database and auto-generate migration script.

    1. Reverse engineer the source database using Oracle Data Modeler
    2. Now select the right arrow  shown below: sync-with-db
    3. Select the destination datasource (more here) when asked.
    4. The compare pane will enable you to compare the databases. But the default options will also use schema name to detect different object, so you will not get what you want in every scenario. In 50% of my daily job, schema are different, so you must select the options below to fix it: Select "Options" and then "Compare options". Then  de-select "Use schema property" like suggested below: magic-option
    5. Push the "Sync new object". Then push the "DLL Preview" button and inspect the generated database.
    6. Bonus: by default the tool will not include tables to drop. Inspect the two pane ad check the table you want to drop in the left pane.
    7. Refrain launching the script without proper testing. You are migrating your valuable data.
  • Pandoc: your secret best friend in document translation

    calendar Nov 13, 2016 · 1 min read
     en knowledgebase  · lisp tools
     ·
    Share on: twitter facebook linkedin copy
    Pandoc: your secret best friend in document translation

    Pandoc is an universal document converter to convert Markdown, Org-Mode, Html, Word documents from one markup format into another  After using different tools, (including GNU info and SGML). I find out pandoc vert handy.


    Read More
  • Licenze OSS: cartina tornasole

    calendar Sep 5, 2016 · 4 min read
     featured it knowledgebase software  · opensource
     ·
    Share on: twitter facebook linkedin copy
    Licenze OSS: cartina tornasole

    In ambito Open source vi sono innumerevoli licenze disponibili. Quali sono le loro differenze salienti? Come orientarsi? In questo breve articolo diamo una serie di indicazioni e spunti di riflessione.


    Read More
  • RaspberryPI life extender: tmpfs

    calendar Jul 15, 2016 · 1 min read
     en knowledgebase  · raspberrypi
     ·
    Share on: twitter facebook linkedin copy
    RaspberryPI life extender: tmpfs

    To increase performance and SD life of your raspberry PI 2/3, you can follow my first article on this subject.

    You can easily increase even more the SD life if you can trade a bit of RAM.

    The key idea is to take advantage of tmpfs, which can be resized on the fly too.


    Read More
  • The Lego Technic Impossible Revenge Part 1

    calendar Apr 2, 2016 · 1 min read
     en knowledgebase  · lego
     ·
    Share on: twitter facebook linkedin copy
    The Lego Technic Impossible Revenge Part 1

    super-pricey-setAfter my first child reached 5 years old, I decided it was time to start my Lego Technic Revenge, together with KyloRen Star Wars lego-puppy (eh eh).

    It is very difficult to find out a good set to play with gears and so on. The big Lego Technic toys like cars and so on are sold without nice pieces to link with “normal bricks” (see below the red one).


    Read More
  • Finding the good one: mithril

    calendar Feb 21, 2016 · 2 min read
     en featured knowledgebase  · good great-ideas javascript javascript-war
     ·
    Share on: twitter facebook linkedin copy
    Finding the good one: mithril

    I have just read this insightful statement on this blog article about congitive load in Javascript

    jQuery is undoubtedly useful when dealing with browser quirks, but once an application grows over a few thousand lines of code, unstructured jQuery code simply becomes too difficult to maintain, and you start needing the discipline of a framework to organize code. But when you're at tens of thousands of lines of code, you start to run out of entity types to CRUD, and your application growth starts to build on top of existing concepts. This is when you need the mental shift from being a library consumer to being a reusable component author,

    This clever guy is the creator of Mithril, a very small, well crafted javascript library a friend of mine pointed to (via github…):


    Read More
  • dos2unix for poor basic unix

    calendar Oct 28, 2015 · 1 min read
     en knowledgebase  · unix
     ·
    Share on: twitter facebook linkedin copy
    dos2unix for poor basic unix

    Do you have cygwin base install right? So no dos2unix…you can convert a windows file to unix format with a small tr command like

    tr -d '\\15\\32' < winfile.txt > unixfile.txt
    I prefer the awk way of life:

    [bash] awk ‘{ sub("\r$", ""); print }’ winfile.txt > unixfile.txt awk ‘sub("$", "\r")’ unixfile.txt > winfile.txt [/bash]


    Read More
    • ««
    • «
    • 2
    • 3
    • 4
    • 5
    • 6
    • »
    • »»

Recent Posts

  • Postgres Take it All
  • La ruota del Destino
  • Darth Android
  • Vps Provider
  • Chat
  • RSS Readers
  • Vibe Coding: easy to say, difficult to survive

Latest comments

    Giovanni Giorgi

    Copyright 1999-  GIOVANNI GIORGI. All Rights Reserved

    to-top