Website Performance - We can Help - Merkados
Website Design Promo

List Folders and Subfolders in order of File Size in Bash

May 21st, 2015 admin

This is the command in bash that you would need to list the folders and subfolders of a directory in order of file size. This is useful because you may need to know in what directory you have bigger files – for example when trying to delete old big emails.


/* Command to enter in Bash*/
du -h --max-depth=1 2> /dev/null | sort -n -r | head -n20
/*End of Code*/

How to get the MX records of a Domain

April 27th, 2015 admin

Quick little post. You may need to know the MX DNS record of a domain in order to know what server handles the communications. You can find out via terminal (BASH). Here is how:

dig mx +short

That’s it folks – until next time.

Search / Find files modified in the last x days with Bash in Terminal

March 13th, 2015 admin

So, if you are like me, sometimes for any number of reasons, you have to find all the files of a certain type that have been modified lately. For example, if a client had a security problem with their website and you would like to check what files where modified since the last backup. Or let’s say that you don’t remember what files you modified the last time that you made some changes to a directory, etc.

Read the rest of this entry »

The easy tutorial of Rsync to “SYNC” two folders and its contents.

January 19th, 2015 admin

If you are looking for a solution to syncing two folders, whether it’s over a network or locally, this is how you do it.

In my opinion this is a very valuable specially when you have media files that are very important to you and you want to lose them.

Read the rest of this entry »

Replacing a Character in a MySQL table using REPLACE

November 24th, 2014 admin

The latest replacement I had to do was to change all occurrences of an apostrophe with a single quote in a table. Now, that wouldn’t be a lot of fun to do by hand and believe me, with the number of records it would also be exhausting! So, this is a very quick post that shows you how to update a table, using the REPLACE function in MySQL to change one character:

1. First go ahead and find out how many records are going to be affected:

SELECT * FROM table1 WHERE column1 LIKE "%\'%";

2. Once you know the number of records then simply run the update routine:

UPDATE table1 SET column1 = REPLACE(column1, "\’", "\'") 
WHERE column1 LIKE "%\’%"

That’s it – very simple. We are updating the table1 and setting the column1 to be equal to the result of a replace. The replace function takes three parameters: 1. The column, 2. The replacement pattern (in this case escaped by a backslash), and 3. The character to replace with – in this case, also escaped with backslash.

The result is a fine looking column of data with your new characters…


Cross Domain Tracking with Universal Analytics.js – Google Analytics.

November 14th, 2014 admin

So I know that you could go to the Google Analytics blog and simply try to understand all the information that they have to offer about how to track several domains with the same Google Analytics Profile. However, I wanted to post a simpler way to get going fast and easy with the cross domain tracking without having to spend 3 hours. Before we begin, let’s say why this is important. Let’s say that you have an e-commerce cart, and let’s say that that e-commerce cart is located in an external domain. If you implement Google analytics the normal way you’re going to end up increasing unnecessarily the referral count. More importantly those referrals are going to show as if they are coming from your own website.

So, without further adieu, let me share with you the secrets of implementing cross domain tracking in Google Analytics, specifically with the universal tracking code.

Read the rest of this entry »

Robben perdió

June 30th, 2014 admin

Ganar con trampa es perder.

En el fútbol como en cualquier área de la vida, hay reglas. Muchas veces esas reglas son explícitas y muchas veces son inherentes. En el fútbol, el reglamento de competición tiene un espíritu de protección a la competencia honesta entre dos equipos. Dos equipos quieren ganar el partido, buscando anotar más goles que los que reciben. Todo dentro del marco de un reglamento que define la competición.

Read the rest of this entry »

Presidente de Costa Rica tendrá las manos llenas ante retos económicos del país. ¿Qué sucederá en el 2014?

January 31st, 2014 admin

Las economías emergentes tiene de que preocuparse pues la Reserva Federal de Estados Unidos ha anunciado una nueva redución en su política de compra de Valores con Respaldo Hipotecario (Mortgage Backed Securities en Inglés).

Costa Rica cuenta con una economía de tercer mundo pero ciertamente considerada emergente y  principalmente enfocada hacia la venta de sevicios. El tipo de cambio de Costa Rica está recibiendo presión hacia la alza, o en otras palabras, presión de devaluación del colón con respecto al dólar. Cuando disminuye el valor de la moneda local, aumenta la inflación. El gobierno de Costa Rica tendrá que defender el tipo de cambio para prevenir la inflación por medio de venta de dólares de reservas ( De acuerdo a una nota del periódico La Nación, el precio del dólar, alcanzó su valor más alto en los últimos dos años. Esto es solo el comienzo de lo que está por venir. A pesar de que el Banco Central intervino vendiendo más de $5 Millones de USD, el tipo de cambio subió ¢6,55 en tan solo un día.

Read the rest of this entry »

Moving a cPanel acount from host to host

January 28th, 2014 admin

So, for this post, I am going to assume that you are having some trouble moving a cPanel account from one server to another. Usually, the problem is because certain hosting companies modify the cPanel installation and therefore once you create a backup – it doesn’t work.

This steps are going to reduce the time that you would waste trying to figure it out on your own. Read the rest of this entry »

Seiki 4K with Mac OS X – Full Res at 30hz – SOLVED

September 25th, 2013 admin

The Problem with using a Seiki 4k LED Display (Ultra HD) with Mac OS X (Lion, Mountain Lion or perhaps even Mavericks).

Ok so if you are here, I am assuming that you are having the same problem that I was having. You are on a Mac, you decided to go ahead and buy the tempting Seiki 4k display and plug it to your Mac as a nice huge display. The only problem is that when you plugged it – it didn’t want to show you full 4k resolution(3840×2160) right? Don’t get alarmed you are about to fix it.

Now, if you go online, unfortunately there aren’t many people doing this kind of thing (Most are in PCs). Therefore if you were to Google a solution (like I did) you would get frustrated and angry and tired. Not to mention that you’ll invest an incredible amount of time understanding what is wrong.

Now, I am going to share with you the knowledge that my extensive research gave me – so that you don’t have to do what I did. Are you ready?

Question: Can I use my Seiki 4k Display (either 39″ or 50″) with my Mac(Mac Pro, MacBook Pro, etc) and have it display at its native resolution (3840 x 2160) at 30hz? The answer is yes. Let’s see how.

Protected Content
Register Now
You need to register (FREE) or if you have already registered, be logged in to see this part of the post. Please Login here. If you haven't registered, you may register using the form below:

Thank you for your interest in registering with Merkados' Intermarketing Digital Media Resources & Strategy Information. In order to access some of our premium content and downloads you are required to provide your personal name and valid e-mail account. This information is only used by Merkados to send occasional information about additional digital media products, services and resources that may benefit you. We will never sell or share your information with anybody - ever.

Platinum Member - 500 USD per 6 months - for 1 time
Platinum Member - Access all of our content - including Private Material.


| Lost your password