Skip to main content


 

Using jq to pretty print nextcloud logs


NextCloud is a great software, but its logs aren't easy to read if something goes wrong.

This is an example of "tail nextcloud.log" output (warning: it's long)

Reveal/hide... show more
This entry was edited (10 months ago)



 

Federated Git


This are some consideration about the "let's build a decentralized git solution" after the GitHub acquisition by Microsoft.

Let's start with the base: git is already decentralized. All you need is an url where other people can pull you code.
The workflow requires a way to let know other contributor about your clone and your work branch, and let them to merge it into their repos. Usually, a mailing list is used. This is the way kernel development works.
Nothing prevents you from using a federated social profile to do this (e.g, a forum profile on Friendica)
Then you need something where bug are reported. Another mailing list, another social profile? Can be.

What github/gitlab/gitea/wathever give you as a plus is a "home page" for the project where development and bug reports are easily managed and discoverable.
The downside is any of this solution require contributor to have an account there, also the self-hosted ones.

In my view, a federated replacement to git[hub,lab,ea] is not something that shout out an activity every single time a commit is insert... show more
blog

This post was inspired by some comment on that group :-)
But It's really too early for comments and I'm absolutely not AP expert. So I'll try to keep an eye on the works.
This was just to put in words some thoughts.

https://github.com/git-federation/gitpub

Note that Gitea lets you sign-in with OpenID (just saying). I know it's not enough, but is a start. With your OpenID created local account (yes, you still need to be recognized locally, to get permissions) you can file an issue and report there the URL of your clone from which you are requesting a pull.

But a "pull request" is more than that: it is a thread in which a patch is being discussed and in which you can always see (a click away) the _current_ state of that _growing_ patch. The patch grows following a discussion in the thread.

Federated pull requests have been asked for in Gitea via https://github.com/go-gitea/gitea/issues/184 (want to help ? Go is fun !)



 

Friendly dev news


Immagine/foto


New version of #Friendly, the ~friendica ~friendica client for #SailfishOS , is coming.

With improved layouts (no more long text out of page boundaries!) and support for private messages, and release on OpenRepos!

Code here https://kirgroup.com/projects/fabrixxm/harbour-friendly/pms/

It's almost ready, needs some small fixes. It's a good time to submit translations :-D
#Friendly #SailfishOS blog friendica

As I currently have a problem with the SDK, could you make a screenshot of the PostDetailsPage in action so I can get the context of the Labels?

I really don't like the universal usage of "likes" :-)

Do you know if plural forms for Qt translations exist?

I'm not sure. We can change the label. Any suggestions? "liked by" ?

I was more thinking of the other strings of the form "% likes" which could use some singular/plural distinction.

For the labels I just kept the original for this page.

As per docs here http://doc.qt.io/qt-5/i18n-source-translation.html#handling-plurals it's possible to use "%n label(s)" . I'll see if this works also in QML...

I did not see anything in this direction in the Linguist, hence I was wondering.

After a quick test, I can do in qml qsTr("%n like(s)", "", model.like), and the ts file will handle plurals.
Question is: what about "attend", "not attend" and "maybe attend"?
What's the best way to handle them in English? (dealing with the fact that "1 person not attends" is too long)

would be "1 not attends", "2 not attend" correct? making the base string "%n not attend(s)" ?

The same I think. 1 attendee, 2 attendees in Germany 1 Teilnehmender, 2 Teilnehmende.

Due my problems with the SDK I could not check if my translations are too long. But I'll check after the release and send you an updated resource file ;-)

But what about "not attend" and "maybe attend"? "1 not attend", "2 not attend" ... "1 not attendee", "2 not attendees" .. sounds wrong...
Or let's scrap the strings and use icons! :-D

It's not that important, for now I think. In German I would count the "Absagen" (Rejections ?) for not attending. Maybe attending is more complicated.

@Tobias
I've updated the strings to "%n like(s)", "%n dislike(s)", etc.. Qt Linguist should give you the possibility to enter singular and plural forms.

Ok, I'll have a look later!

In Friendiqa I have name+ will (not) attend for singular and number+ persons will attend for plural. Thats also easy to translate...



 

Laravel Queue Systemd service


Here a .service file to keep laravel queue worker running with systemd

---

[Unit]
Description=Laravel Queue

[Service]
Type=simple
ExecStart=/usr/bin/php /full/path/to/artisan queue:work -vv
Restart=always
User=www-data
Group=www-data


[Install]
WantedBy=multi-user.target

---

Save it as /etc/systemd/system/laravel-queue.service
Put your actual full path to artisan command
then run
# systemctl daemon-reload
# systemctl enable laravel-queue
# systemctl start laravel-queue
blog php
This entry was edited (2 years ago)



 
Primo raccolto di taccole dall'orto dei principianti
Immagine/foto

con l'aiuto di questo piccolo amico di passaggio
Immagine/foto

#orto
#orto blog



 

How MySQL was eating my disk space


Yesterday I tried to login in Friendica, but all I got was a "500 Server error".
On this server I run also an ownCloud instance. Same 500 error.

After a quick check, turns out that my disk space was 100% used [0].
First thought: too much data on my ownCloud files.
I downloaded them an deleted form server. Not too much, but things started to works again.

As I was considering options to upgrade my server, this morning again "500 Server error".
A more in-depth search lead me to the 5.4G folder "/var/log/mysql", fill with " mariadb-bin.\d+"[1] files.
Many of them was dated in last 4 days.

Google told me that those are MySQL's binary logs, used mainly for replication.
And that if I don't need replication, I can safely remove and disable them

Four days ago I created an account on ownClout to my dad to sync his contacts from Thunderbird to his android tablet.

Now I'm back to my usual space usage of 28%. I can re upload my files back in ownCloud :-)


#0: Yes, I could deploy some monitoring system. But then I lost all the surprises!
#1: "\d+" as in regular expression: one or more digit
blog



 
Buone notizie:
la fuga dei cervelli dall'Italia si sta fermando.

Cattive notizie:
stiamo finendo i cervelli.
blog



 

Bisciola


Ingredienti

  • farina 00 g 200 più un po’
  • fichi secchi g 100
  • uvetta g 100
  • gherigli di noce g 100
  • latte g 100
  • nocciole tostate g 60
  • farina di segale g 50
  • burro g 40
  • zucchero g 40
  • pinoli g 20
  • lievito di birra g 12
  • 2 tuorli
  • grappa
  • sale



Preparazione
Mescolate le due farine e il lievito sbriciolato, poi impastateli con il latte, il burro, morbidissimo, lo zucchero, 1 tuorlo e un pizzico di sale.Ammollate l’uvetta in acqua con 2 cucchiai di grappa, poi strizzatela. Sminuzzate i fichi e tritate grossolanamente pinoli, noci e nocciole. Incorporate tutta la frutta secca alla pasta, lavorandola su un piano infarinato (non preoccupatevi se risulterà compatta e umida).Disponete l’impasto su una teglia coperta di carta da forno dandogli una forma di grosso filone, copritelo con un telo umido e lasciatelo lievitare per 3 ore.Dopodiché pennellatelo con 1 tuorlo battuto e fatelo lievitare per un’altra ora. Infornate infine la bisciola a 170 °C per 40' circa, quindi sfornatela e lasciatela raffreddare.
blog ricette

Anche se, per poter veramente dire "piace" dovrei assaggiare :D



 

Trapano avvolgifilo


Ieri sera ci siamo trovati nella necessità di svolgere un filo da un rocchetto e avvolgerlo su un'altro.
Dopo una decina di minuti durante i quali l'abbiamo fatto a mano, con scarsi risultato, abbiamo trovato una soluzione migliore:



Attrezzatura

  • Avvitatore (o trapano, per maggiori velocità)
  • Matita IKEA (o matita usata)
blog

Eh no.. fa girare solo il rocchettino che usa sotto...



 

Sulla questione GNOME-Groupon


Di sicuro avrete letto in questi giorni della questione tra GNOME Foundation e Groupon. Quest'ultimo sta preparando un prodotto nuovo, chiamato "gnome", fondamentalmente un POS, closed-source. Ovviamente i ragazzi della GF si sono un attimo risentiti che qualcuno volesse registrare un prodotto tecnologico hardware-software chiamato come l'amato/odiato desktop. E' partita una chiamata alle armi per una raccolta fondi, chiamata che ha avuto un buon successo, sia come raccolta fondi, sia perché Groupon è tornata sui propri passi e ha deciso di cambiare il nome del prodotto.

Ora che la cosa si sta risolvendo, i commenti non mancano e molti mi lasciano perplesso.
Il primo è "ora che hanno raccolto dei soldi per questo, cosa se ne faranno?".
Dice http://www.gnome.org/groupon/:
If we are able to defend the mark without spending this amount, we will use the
... show more
#intro #GNOME blog gnome



 

Ferie


Da domani fino al 20 saro' in giro con la tenda, destinazione Gargano. Saro' per lo più sconnesso, ma vedro' di mandarvi qualche foto se fate i bravi!
Ciao!

From tomorrow to August the 20th I will be on holidays and off-line :-)
Ciao!
blog



 

A new home for my web apps


Somebody will remember my domain problems last November (1,2,3). At the end I got a .net domain which has been unused until now.
Here is it: kirgroup.net, the new home for my web apps Just a quick homepage with bootstrap and wildcard subdomains to host apps.
Next I want to add a simple "deploy with Git" system...
blog
This entry was edited (5 years ago)



 

Who's our next bad guy


Everywhere (and for "everywhere" I mean "on hacker news") I read news about the new Mozilla CEO, how he is evil, how bad he is and everything he touch, because once he spent his money to support California’s Proposition 8 (a ballot initiative against same-sex mariages) some years ago.
Some sites (starting with dating site OkCupid) showed a message to Firefox users asking them to change their browser because this.
And more and more I'm reading posts about "how I switched to chrome because of new Mozilla CEO".
Now, read this slowly:

Google is still into NSA mess. Chrome is Google's product.

(reread as needed)

I think all this noise is also bad for LGBT community: fight hate with hate? You're on the right way, sure...
blog





 

Tenetevi pronti


The Film

Cosmos Laundromat: About | Gooseberry | The Open Feature Film (Francesco Siddi)

blender blog



 

Delle diete.


Sono piuttosto convito che il proliferare di diete e dietisti sia il moderno manifestarsi della magia e dell'unguento universale, ottimo per i calli, il mal di gola e le calvizie.
Parlo specificatamente delle diete da libreria, quelle che consigliano riti particolari per riuscire a perdere peso, che alla fine se va bene danno consigli generici sempre validi, se va male...

Mi capita per le mani un libro che consiglia diete a seconda del gruppo sanguigno. Basta un semplicissimo esame e non si dovrà più penare per mantenere il peso forma. A quanto pare, vengono comunque consigliate diete prevalentemente vegetariane, che in se non è male. Ma se mangiare fagiolini o taccole è da decidersi a seconda del fattore RH.

Ora, io propongo l'infallibile metodo

Tempo atmosferico e ovulazione della gallina Padovana

si riassume in quattro punti:
- se piove e la gallina ha fatto l'uovo, si mangia l'uovo sodo
- se c'è il sole e la gallina ha fatto l'uovo, si mangia l'uovo in padella
- se piove e la gallina non ha fatto l'uovo, b... show more
blog

@Silvia** Morgenstern si, è un caso limite di cui dovrò tener conto prima di mandare il libro alle stampe. Direi come regola che nel caso la gallina sia già in brodo e piove, liberi tutti :-)

guarda, io non seguo nessuna regola del gruppo sanguigno, ne' del colore dei capelli, ne' della lunghezza del.. naso.., e i miei valori stanno nella norma.
Io non discuto degli stili di vita "sani": sono convintissimo che limitare il pane e la pasta e aumentare il tempo dedicato all'attività fisica mi aiuti a tenere sotto controllo "la panza".
Io commentavo il correlare consigli generici a valori arbitrali.
Potrei ugualmente dire che se porti il 43 di scarpe dovresti evitare di mangiare fuori pasto. O che se il tuo nome inizia per N non mangiare le arance la sera.



 

String substitutions in javascript console log


Just found:

https://developer.mozilla.org/en-US/docs/Web/API/console#Using_string_substitutions

Basic string substitutions in console.log():
for (var i=0; i<5; i++) {
console.log("Hello, %s. You've called me %d times.", "Bob", i+1);
}

outputs:
[13:14:13.481] Hello, Bob. You've called me 1 times.
[13:14:13.483] Hello, Bob. You've called me 2 times.
[13:14:13.485] Hello, Bob. You've called me 3 times.
[13:14:13.487] Hello, Bob. You've called me 4 times.
[13:14:13.488] Hello, Bob. You've called me 5 times.


Also on Chrome...
blog



 

Tempo di scelte


Schedule
Every year, FOSDEM hosts a wide variety of activities. This page gives an overview with links to further information about scheduled events.

FOSDEM is a very busy conference. This edition features 425 speakers, 453 sessions, and 44 tracks. We do our best to provide you with as much information and navigation options about the schedule as we can.
blog

I've just installed confclerk on my pandora: I hope it will help managing the list of interesting stuff and turn it down into a list of interesting stuff that doesn't overlap :)

Anything like confclerk for android?

Edit: Giggity
This entry was edited (6 years ago)



 

Sfogo


io odio nodejs e npm.

#detto
#detto blog

Hermann Hesse non ha mai dovuto provare npm, l'unico gestore di pacchetti che richiede 4 tentativi (consecutivi senza modifiche apparenti) più altri due con leggere modifiche per installare UN pacchetto...

io PHP o Python o Optf