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
  • Hacker News Undocumented features

    calendar Oct 4, 2022 · 1 min read
     en knowledgebase
     ·
    Share on: twitter facebook linkedin copy
    Hacker News Undocumented features

    https://github.com/minimaxir/hacker-news-undocumented

  • Next.js: Give it a Try!

    calendar Jul 10, 2022 · 1 min read
     en featured knowledgebase  · reactjs
     ·
    Share on: twitter facebook linkedin copy
    Next.js: Give it a Try!

    I was trying to explore a way to build a client/server application in Typescript; after some failed experiments, I found something better: Next.js offer the ability to build a React application and to render server-side its dynamic components.

    So you can have the best of the two words: static pre-rendered pages pushed to the browser, and server side components (for doing your overwhelming BORING queries you know :)


    Read More
  • SQLite Tool-set

    calendar Jun 20, 2022 · 2 min read
     featured knowledgebase sql
     ·
    Share on: twitter facebook linkedin copy
    SQLite Tool-set

    Random list of very interesting projects (will be updated, guys).

    I will add my own ideas/impression as soon as possible.

    From simpler to more complex stuff:

    1. sqlite-utils is a rather useful tool for managing SQLite databases, importing structured data and manipulating them from the command line
    2. A simple approach to use json, virtual column and indexes to get NoSQL features on SQLite
    3. Full text search FTS5
    4. Tools from datasette ecosystem (like DogSheep)
    5. Litestream Litestream is a standalone streaming replication tool for SQLite. It runs as a background process and safely replicates changes incrementally to another file or S3. Litestream only communicates with SQLite through the SQLite API so it will not corrupt your database.
    6. Dqlite (distributed SQLite) extends SQLite across a cluster of machines, with automatic failover and high-availability to keep your application running. It uses C-Raft, an optimised Raft implementation in C, to gain high-performance transactional consensus and fault tolerance while preserving SQlite’s outstanding efficiency and tiny footprint.
    7. Xlite: Query Excel and Open Document spreadsheets as SQLite virtual tables A lot of tools, from plugin like Xlite to command line export tools.
    Extra feature you can find useful:
    1. STRICT TABLES SQLite uses duck-typing and it is very "elastic" on typing. Anyway in the more recent versions you can enable a "STRICT" typing, which does not work on date types, but can help to avoid mixing integer, real and strings in the same column.... see https://www.sqlite.org/stricttables.html
  • Bash Regular expression replace (regexp)

    calendar Apr 13, 2022 · 1 min read
     en knowledgebase unix-featured  · bash
     ·
    Share on: twitter facebook linkedin copy
    Bash Regular expression replace (regexp)

    You can easily use bash to search-and-replace on variables…

    f="/home/alice/myfile.md"
    $ echo ${f//.md/.pdf}
    /home/alice/myfile.pdf
    
    $ echo ${f//alicee/bob}
    /home/alice/myfile.md
    
    $ echo ${f////-}
    -home-alice-myfile.md
    
    
    

     

    Splinch
  • Let PiHole play nice with docker-compose

    calendar Apr 3, 2022 · 1 min read
     devops featured knowledgebase unix-featured  · docker-compose pihole
     ·
    Share on: twitter facebook linkedin copy
    Let PiHole play nice with docker-compose

    When you run pihole in a docker container, it could be difficult to build images on the same docker daemon, because docker-compose cannot pass DNS request to another container during build, and normal dns resolution fixes won’t work.

    I solved this issue reading this article and configuring my docker daemon to use a public DNS service:


    Read More
  • Data Driven Form in angular

    calendar Feb 4, 2022 · 1 min read
     en knowledgebase  · angular
     ·
    Share on: twitter facebook linkedin copy
    Data Driven Form in angular

     

    JSON Schema is a vocabulary that allows you to annotate and validate JSON documents.

    Benefits

    • Describes your existing data format(s).
    • Provides clear human- and machine- readable documentation.
    • Validates data which is useful for:
      • Automated testing.
      • Ensuring quality of client submitted data.
    On top of it you can run JSON Forms, a  data driven forms library:
    1. Declare your forms as JSON based on a JSON Schema
    2. Fully-featured forms including data-binding, input validation, and rule-based visibility out-of-the-box
    3. Designed for customizability - from custom styling to custom widgets
  • OCI Autonomous Database: Change MEDIUM Service Concurrency Limit

    calendar Jan 27, 2022 · 1 min read
     en knowledgebase
     ·
    Share on: twitter facebook linkedin copy
    OCI Autonomous Database: Change MEDIUM Service Concurrency Limit

    On Oracle Autonomous Database (Oracle Cloud DB service), the consumer groups of the predefined service names provide different levels of performance and concurrency.

    How do you tune this limits?

    1. From the Autonomous Database details page, click Service Console.
    2. On the Service Console click Administration.
    3. Click Set Resource Management Rules.
    4. On the Set Resource Management Rules page, select the Concurrency limit tab
      Description of adb_console_set_concurrency_limit.png follows

    For more information see the Oracle Manual


    Read More
  • Log4jShell

    calendar Dec 20, 2021 · 1 min read
     en knowledgebase software
     ·
    Share on: twitter facebook linkedin copy
    Log4jShell

    Log4jShell vulnerability

    1. Kasperky article
    2. https://www.lunasec.io/docs/blog/log4j-zero-day-update-on-cve-2021-45046/ with the following "news":If you have previously used LOG4J_FORMAT_MSG_NO_LOOKUPS to mitigate the log4shell vulnerability, in certain conditions this will not be sufficient to protect your code from RCE. Refer to our mitigation guide for additional steps you can take to remediate the impact of Log4Shell
    3. Apache group released two fix in short delay, after  the second fix was found vulnerable to other attacks, a third fix (2.17.0) was released.
     
  • HyperV Machine Export

    calendar Oct 28, 2021 · 1 min read
     en knowledgebase
     ·
    Share on: twitter facebook linkedin copy
    HyperV Machine Export
    1. Shutdown VM and compress the compact the disks
    2. Check if you have enough space: you need more or less the space of the VM disks+ minimal RAM configured
    3. From your Hyper-V host, run PowerShell as an administrator and then run something like: GET-VM This will display all the VMs running on the current host.
    4. Then run:
      $ExportPath = “C:\\Exports”
      Export-VM -Name “BoxNameFromGetVM Step3” -Path $ExportPath
       
  • Cassandra Compendium

    calendar Aug 29, 2021 · 17 min read
     en knowledgebase
     ·
    Share on: twitter facebook linkedin copy
    Cassandra Compendium

    Apache Cassandra Compendium, pasting together documentation from https://cassandra.apache.org/doc/latest/cassandra/data_modeling/index.html


    Read More
  • Simple method to add historic feature to SQLite

    calendar Apr 8, 2021 · 5 min read
     en featured knowledgebase sql  · database sqlite
     ·
    Share on: twitter facebook linkedin copy
    Simple method to add historic feature to SQLite

    Abstract: Make a database which can be store historic modification is often considered a “secondary” activity, but bad design leads to databases that are difficult to optimize and often not very understandable. In this article we illustrate a simple method that respects the dictates of relational theory & is easy to understand. As a plus we will show it on SQLite, a small but powerful database system.


    Read More
  • How to re-enable right click

    calendar Feb 21, 2021 · 1 min read
     en featured knowledgebase
     ·
    Share on: twitter facebook linkedin copy
    How to re-enable right click

    Some news site still try in 2021 to disable right click and ability to copy content. These tactis are very very poor, and only block the users not interested in copying/stealing your code.

    The  idea is to put something like that on body tag:

    <body oncopy="return false" oncut="return false" onpaste="return false" onbeforecopy="return false" ondragstart="return false" onselectstart="return false" oncontextmenu="return false">

    The code to re-enable it is easy to find out:


    Read More
  • Legacy Management

    calendar Feb 10, 2021 · 1 min read
     knowledgebase software
     ·
    Share on: twitter facebook linkedin copy
    Legacy Management

    Good insights from this article:

    How to strangle a legacy codebase

    The strategy is simple:

    Progressively delete the old code base, in favor of a new one.

    Here’s the plan:

    • Have the new code acts as a proxy for the old code. Users use the new system, but it just redirects to the old one.
    • Re-implement each behavior to the new codebase, with no change from the end-user perspective.
    • Progressively fade away the old code by making users consume the new behavior. Delete the old, unused code.

    [...]

    More here
  • TiddlyWiki

    calendar Jan 19, 2021 · 1 min read
     knowledgebase
     ·
    Share on: twitter facebook linkedin copy
    TiddlyWiki
    TiddlyWiki is a rich, interactive tool for manipulating complex data with structure that doesn't easily fit into conventional tools like spreadsheets or wordprocessors.
    Tiddlywiki born in 2004, is great if you need a fast way to make fast notes. In the past it was able to store itself using local javascript extensions, but now you need a node server or some specific setup.
  • JonnyDecimal rulez!

    calendar Jan 18, 2021 · 1 min read
     knowledgebase
     ·
    Share on: twitter facebook linkedin copy
    JonnyDecimal rulez!

    https://johnnydecimal.com/

    • ««
    • «
    • 1
    • 2
    • 3
    • 4
    • 5
    • »
    • »»

Recent Posts

  • Arduino Q da far crescere
  • Postgres Take it All
  • La ruota del Destino
  • Darth Android
  • Vps Provider
  • Chat
  • RSS Readers

Latest comments

    Giovanni Giorgi

    Copyright 1999-  GIOVANNI GIORGI. All Rights Reserved

    to-top