Thursday, July 13, 2017

Bash Script to Run Multiple Commands in Different Tabs

Running Multiple Commands in Different Command Line Tabs


This small tutorial is directed at people that still have to do a lot of initial setup every time they reboot your Linux machine and are looking for some automation, with a simple bash script.
Creating a bash script to run multiple commands isn't really a hard task. I wrote some articles before about this here and here.
The tricky part was that I wanted some of those commands to run in different tabs so I can easily access the outputs for debugging purposes (like Docker containers, log monitoring, etc…).
I also didn’t want to go to the trouble of installing and configuring tools like tmux or tmuxifier (if you want something more advanced, definitely check them out!) for such a simple task like launching a few command line tabs. So, I decided to do some research and I found that the solution is rather simple if your Linux machine has gnome-terminal installed.


Saturday, February 4, 2017

Speed Up WordPress in 8 Actionable Steps


"Since nowadays, speed and performance are kings when it comes to SEO and user engagement (search for “page load time impact” on google, just don’t try to read everything because you will be overwhelmed), I decided to take a look on how to speed up my blog. Turns out that, with the right set of plugins and tools, it actually pretty easy to achieve a decent amount of performance improvement. In my case around 300% faster."
- quoted from joaoperibeiro.com

The website in this article went from 7 seconds load page time to less than 2 seconds and a 86 Points on YSlow (Grade B) to 95 Points on YSlow (Grade A) on “Small Site or Blog”.

All of this improvement in your WordPress by following this 8 actionable steps:


1. Optimize Media with Imagify or WP SmushIt

2. Lazy Load Images with Lazy Load plugin

3. Minify and Merge JavaScript and CSS using Fast Velocity Minify or WP Super Minify

4. Analyze Your WordPress Plugins P3 Profiler

5. Optimize the Database with WP-Optimize

6. Cache Content using WP Super Cache or W3 Total Cache and Far Future Expiry Header

7. Use Cloudflare

8. Use Nginx with PHP 7 and OPCache


Check out the full original article, with detailed information about each step, here.

Monday, January 2, 2017

Laravel PHP Framework - Year 2016 in Review

Laravel News just released a year review of the top articles, tutorials, packages and resources of the Laravel Framework during 2016.

If you are a Laravel user (or just thinking about being), you differently should check this out. If 80 is too much for you to go through, I leave you here my Top 5.

My Personal Top 5 From Laravel in 2016:




Congratulations to Laravel community for all this new packages and resources.


Bonus Laravel Resources:


If you're not yet a Laravel user (or starting now), this next post has a list of links and resources to learn and get good with Laravel 5.


Curious to see what Laravel will bring us in 2017.

Happy coding!

Friday, December 2, 2016

PHP 7.1 Released - Nullable types, Void Return Type, Class Constant Visibility and more

The PHP development team announced yesterday the release of PHP 7.1.0. This release is the first point release in the 7.x series.



The list of changes contains:
"-Nullable types

function answer(): ?int  {
    return null; //ok
}
 
function answer(): ?int  {
    return 42; // ok
}
 
function answer(): ?int {
    return new stdclass(); // error
}
- Void return type
function lacks_return(): void {
    // valid
}
function should_return_nothing(): void {
    return 1; // Fatal error: A void function must not return a value
}
- Class constant visibility modifiers
<?php
 
class Token {
 // Constants default to public
 const PUBLIC_CONST = 0;
 
        // Constants then also can have a defined visibility
        private const PRIVATE_CONST = 0;
        protected const PROTECTED_CONST = 0;
        public const PUBLIC_CONST_TWO = 0;
 
        //Constants can only have one visibility declaration list
        private const FOO = 1, BAR = 2;
}
- Iterable pseudo-type
- Square bracket syntax for list() and the ability to specify keys in list() 
- Catching multiple exceptions types
- And many more features and changes…"
Quoted from: http://php.net/releases/7_1_0.php

Saturday, November 26, 2016

Reviews of Top Frameworks For HTML5 Hybrid Mobile Apps


Technology moves so fast now a days, and this is specially true in the JavaScript world. So if you're starting now in  Hybrid Mobile development and you're looking for a Framework, you will come face to face with dozens of choices (that at first look, they all look the same).

One good place to start is by checking comparisons and reviews of the top Frameworks available for Hybrid Mobile Apps development and see which one most fits your needs.

I leave you here some good blog posts about it:







My Top 3 are Ionic Framework, Framework7 and Onsen UI. And yours?