Category: Uncategorized

  • How to input brackets in a mac using a Portuguese PC Keyboard

    How to input brackets in a mac using a Portuguese PC Keyboard

    When you buy a mac mini without and you don’t want to spend money with a mac magic Keyboard, reusing a PC keyboard instead, and you need to use characters outputted by the right alt key (like the brackets in portuguese), you are in a trouble!

  • Redirect to your mirror at archive.org

    Redirect to your mirror at archive.org

    In case if your site goes down, and you don’t have a mirror host for your content, the wayback machine from archive.org provides you with such a thing you can make use of. Just provide your http server or web framework to detect an error (in PHP you can use the functions set_error_handler and set_exception_handler)… Read More

  • Take your virtual server out of the cloud

    Take your virtual server out of the cloud

    Wouldn’t it be good that you could extract your virtual server out of your current cloud provider, and import it in another provider, or import in a virtual machine manager installed locally ? That it’s possible, but it depends on two conditions: have access to a repair environment in a recovery console in your cloud… Read More

  • ReSpotGUI

    ReSpotGUI

    The integration of Spotify, the great daddy of audio streamers with third-party apps has been difficult over the years. Years ago, in their beginning they liberated libspotify, coded in for integration with different clients. Integration with major audio players like Foobar, Clementine and MusicBee were working, but in 2015 the company decided to drop the… Read More

  • Using PHP with Node.js in Windows

    Using PHP with Node.js in Windows

    PHP and Node.js are two coding standards made for Web purposes. Node.js is not a language by itself and is a new implementation of Javascript and a different filosophy in programming. PHP adopted some features of Node like the package manager NPM on Composer and the assincronicity make the bulk of some frameworks like Laravel… Read More

  • Don’t open random ports at your will

    Don’t open random ports at your will

    Last time I opened a port using netcat for receiving HTTP posts from a external. It’s possible, using a pipe, to redirect to forward all the received messages to a text file. Reached the time to choose a number for the port, I chose 5555. It never come to my knowledge what was going to… Read More

  • Mute Spotify ads under Windows

    Mute Spotify ads under Windows

    Created a repository under Github from one that already allowed the automatic muting of Spotify when the music application is playing annoying ads. Sometimes I switch to Windows so I thought that it would be great to have the application, which is a bash shell script, to work under Windows. I had to rewrite from… Read More

  • Damn, Google…

    Damn, Google…

    In your last update (Chrome 70), you broke the password-protected feature for Chrome Profiles, fortunately I found a extension that replaces that …. LockPWFree ! It has the defect, although, of opening a new Chrome instance if you choose to start the browser with the tabs when you last left… but anyways, is better than… Read More

  • Use Books API on Google Apps Scripts !? No! No!

    Use Books API on Google Apps Scripts !? No! No!

    It apperars the Google guys don’t like us to use some APIs directly in their Google Apps Scripts platform. I don’t see  the Books API in the list of libraries available from the top menu and also when I try to access it directly using the UrlFetchApp predefined object it salutes me with a “403… Read More

  • How to configure an E-mail distribution service using Postfix + Courier IMAP with SQLite as the credentials storage endpoint

    How to configure an E-mail distribution service using Postfix + Courier IMAP with SQLite as the credentials storage endpoint

    While I was doing the migration from Ubuntu 14 to Ubuntu 16, I came across the high resource demands required by the new version of MySQL. I’m running on a very basic VPS with to few RAM, and so MySQL (was running 5.7) crashed much frequently, so I decided to switch a MySQL fork, mariaDB, in this case. Tried first with the last stable version, 10.3, than I discovered that this version was still with more problems and running with even more problems with the very low RAM, so I downgraded to 10.1, but still the problems persisted. I ran the mysqltuner script to adjust the mariaDB configuration according to this “hardware” requirements. I changed the max_connections variable and lowered the value to 2 or 3. Still discovered that the entire VPS has crashed just because of this. Then I increased the value to 10 and Postfix started to complain with authentication errors since the e-mail credentials are stored in a MySQL schema. On that MySQL there are running other schemas, one for a wordpress site with very low bandwidth, and other wordpress site for a business, with much more load than the last wordpress. You know, wordpress does not support officialy other SQL engines than MySQL, which is bad, very bad, but I discovered a plugin that allows you to use SQLite as a Wordpress backend. Very good for the wordpress instance with much less load (Truly speaking, it right this one that is storing this blog). So I decided, if now I can use SQLite as the backend for an Wordpress site, why not use it also to store email service credentials. Very unfrequentely I change those credentials, so I move on studying how Postfix and Courier could use a simple SQLite database to store the email credentials and other stuff Postfix implements like transports, or e-mail forwardings.

Social Media Auto Publish Powered By : XYZScripts.com