Year
2019
5 posts in this year
-
Collatz Conjeture in PHP
2019-12-17
I've made some versions of the Collatz Conjeture in PHP, this is the most simple, it didn't use any array storage to avoid filling the computer memory. It takes 163 seconds in my MacBook to test first 10.000.000 integers. Sample output...
-
Collatz Conjeture in Rust
2019-12-17
As a test of Rust language I've done a simple Rust checker from 1 to 10.000.000 it takes 18 seconds in my MacBook. Sample output (after 18 seconds): 10000000 numbers checked in 18 seconds (555555 numbers per second) use std::process::exit;...
-
Avoid wt.social sending mails all the time
2019-11-19
If you have signed in into wt.social lately you'll find that the new social media platform sends a lot of mails by default, to avoid that you can go to the menu->notifications section once you are logged in and uncheck all the email...
-
Check if a folder is in use from PHP in a linux system
2019-09-12
Sample code to check if a file is in use before loading data, for example if an FTP is writing to the file. In fact we check for the entire folder, in this example a constant called DIR_XMLS, if any file is open in the operating system we...
-
Post resum 2018
2019-01-02
Gadgets of the year (comprats o regalats): Apple tv 4k 64Gbs Tenda wifi mesh Mando carregador per la Nintendo Switch Samarretes del any: Mapachao de to! No spoilers please Nekobasu La invasion de los ultracuerpos Friky coses guays:...