Featured

How to embed video into a website – Complete tutorial

Embedding a video into HTML website seems an easy task, but there really are lots of aspects to take into consideration when you insert a video:

  • File size and format (extensions and codecs)
  • Browser and platform compatibility
  • User internet connection (mobile vs desktop devices)
  • Server resources (bandwidth, CPU, RAM)
  • Privacy and data owning
  • Content visibility and engagement

Therefore, depending where you will insert the video and the application you use, you will be affected by some of the above or not. So let’s get our hands on it and do a step by step research about what is the simplest way to embed a video. Continue reading “How to embed video into a website – Complete tutorial”

7 years Google Adsense earnings statistics and 10.000$ barrier reached

If you are on this page, there are lots of chances you have a Google Adsense account, you are planning to create one, or Google just close the account you had.

This is where I will tell you what I’ve learned in my 7 years experience with Google Adsense and how I reached the $10,000 barrier. But before I get into more details, let me tell you how I have started. Continue reading “7 years Google Adsense earnings statistics and 10.000$ barrier reached”

PHP logical operators true false

The &&  and ||  logical operators seem to have more general recognition and background usage, although the and  and or  form of the same logical operators is taking more and more acceptation for the sake of readability.

So here is a list for the results when evaluating the expressions in PHP. I am sure that this can be applied to a bunch of other languages. (I think it is a little bit superficial to say that it apply to all programming language since I only know some of them). Continue reading “PHP logical operators true false”

How to deactivate all WordPress plugins from MySQL database

WordPress plugins can be easily disabled from the database. You just have to open your favorite client and connect to your favorite client and go to your site database. I normally use HeidSQL, phpMyAdmin or Adminer but you can use any other. For this specific task you must know your database connection credentials. If you have an FTP connection you can find that in your wp-config.php file on the wordpress installation root

You will have to go to the wp_options table and search for a specific value in the option_name column. Please note that the table prefix ( wp ) is the standard prefix but can be different from one installation to another. Continue reading “How to deactivate all WordPress plugins from MySQL database”

What is SEO, SERP, SEM, SEA, SMO, SMM and SERM

Today´s Internet contains many abbreviations. Sometimes it´s impossible tu understand the content with so much abbreviation. So what is SEO, what is SEM and where did SERP came from, what SMO and SMM stands for, did I mention SEA, and what in the hell mean SERM. Below, I will describe all this terms:

Search engine optimization (SEO)

SEO or Search Engine Optimization (one of the most used) is the technique which helps search engines to find and get better positioning for your website among millions of other sites competing you. SEO, helps search engines to better understand the content of your website and therefore helps you get more traffic.
Continue reading “What is SEO, SERP, SEM, SEA, SMO, SMM and SERM”

WordPress is asking for FTP credentials to update plugins, FINALLY RESOLVED

I was dealing with this problem for a while and did not know how to give WordPress permission to write to his folders when updating plugins or themes.

On the other hand this was forcing me to chmod wp-content/uploads  folder with 777 permissions. I am not a heavy image uploader, so when I was in need of updating I was just chmod to 777 and then, after uploading my stuff, get back to 755.

I am not a Linux lover, geek, guru (or how they call it) so I had no clue about why this happened on my VPS or how to fix that. But as a respectable “self-directed learner” as I am, I had to dig into the situation. Continue reading “WordPress is asking for FTP credentials to update plugins, FINALLY RESOLVED”

PrettyPhoto Minimal Theme – a pure CSS prettyPhoto simple theme

I have recently used prettyPhoto for a project and I have to admit that it is a great tool to have in hand when it comes to modal pop-ups.

It has lots of types of content support and it is really simple to customize. prettyPhoto also comes with lots of features and 5 built-in themes

  • light_rounded
  • dark_rounded
  • light_square
  • dark_square
  • facebook
  • pp_default
  • minimal theme – which will add here with minimal and pure CSS

…which you can easily change via JavaScript customization. But this is not the subject of this tutorial.

I prefer a default minimal and simple theme for prettyPhoto and the ability to add stuff if I need it and not the opposite. So this is my little CSS to create a simple theme for prettyPhoto Continue reading “PrettyPhoto Minimal Theme – a pure CSS prettyPhoto simple theme”