Category Archives: Dev

Adding Placeholder attribute to Tokeninput jQuery plugin

I was having a hard time to get the placeholder attribute to work with Tokeninput jQuery plugin.

First I managed to get it to show up by adding attr(‘placeholder’) to the onReady:
$("#myInput").tokenInput("/url/to/your/script/"){
onReady: function(){ $('#token-input-myInput').attr('placeholder','type here...'); }
};

It worked but every time it lost focus the resize of the input field would partially hide it. So, I tweaked with the code inside jquery.tokeninput.js and after line 436 (declaration of var escaped) added:
if(input_box.attr('placeholder')!=undefined){
escaped = input_box.attr('placeholder');
}

It is not pretty but it works 🙂

List of monitor.us ips to allow on your server and avoid CSF block

I use monitor.us to get a notification when my site goes down.

I noticed that I was getting notifications even when the site was up and guessed it was CSF ( ConfigServer Security & Firewall) that was blocking the frequent ping from monitor.us.

So, I searched and found a list of IPs monitor.us that should be white listed. I had to clean that blog post to be able to add it to the list of Allowed IPs.

Here you have the  clean list so you can go to you WHM->Plugins->ConfigServer Security & Firewall->Firewall Allow IPs and add one IP per line

177.52.128.74
67.215.13.74
184.154.136.138
190.123.47.108
173.193.219.173
174.36.251.137
72.46.129.234
173.192.34.91
75.126.39.114
162.220.220.18
198.23.71.107
50.23.115.100
114.80.200.199
152.101.170.75
180.149.242.167
175.41.242.122
202.73.56.236
37.252.233.46
217.116.243.67
37.252.225.18
37.252.227.70
46.165.193.28
178.255.155.14
91.142.250.250
95.163.88.127
93.90.30.27
91.145.2.40
217.150.241.105
46.23.67.107
31.24.33.218
111.118.164.210
197.221.27.186
37.252.245.68
54.232.125.216
177.52.128.80
54.232.125.219
67.215.13.74
184.154.136.138
190.123.47.108
174.129.239.136
184.72.232.216
184.73.184.49
23.23.225.212
23.21.171.41
184.73.72.186
54.243.190.254
54.225.135.101
23.23.180.107
174.129.239.136
162.220.220.46
173.192.81.171
67.208.117.66
184.72.53.147
50.18.158.37
184.72.42.184
184.72.48.40
50.115.121.196
54.241.35.2
54.241.14.164
162.220.221.34
162.220.221.38
72.46.129.234
162.220.220.18
162.220.220.38
162.220.220.42
162.220.221.50
152.101.170.75
37.252.249.42
180.149.242.167
175.41.242.122
176.32.89.6
37.252.233.46
217.116.243.67
37.252.225.18
37.252.227.74
46.4.24.147
178.255.155.14
159.253.145.163
159.253.131.85
95.163.88.127
93.90.30.38
91.145.2.40
217.150.241.105
79.125.4.86
79.125.105.93
54.247.180.199
176.34.209.142
176.34.216.57
54.247.74.202
54.247.85.237
37.252.230.66
111.118.164.210
37.252.240.26
37.252.240.38
197.221.27.186
37.252.245.68
208.76.245.135
67.228.177.17
178.63.77.135
88.198.51.12
213.239.213.102
177.71.150.172
175.41.203.36

Link schemes, Google Rankings and RapGenius

There we have it! As expected, RapGenius was penalized!

A few days ago RapGenius was exposed for asking users to make links to help them improve their rankings. This is a direct violation of Google’s Guidelines.

Because RapGenius was doing such an amazing work with their site, I thought that maybe Google would just give them a slap on the wrist and reach a closed door agreement. RapGenius is without a doubt the only true innovator in the Lyrics websites vertical. So, I was wondering.

Wonder if google will penalize RapGenius

Next day, RapGenius founders sent out an open letter clamming that other competitors were doing far worse.

Today, RapGenius was officially penalised and gone from Google’s search results. With this penalty, I would guess that RapGenius must be losing over 75% of their traffic.

Is Google making an example out of them? Maybe yes, maybe no but anyway that this be a lesson to all of you. Do not ask for links, swap links, participate in other link schemes or you can feel Google’s wrath upon you.

—-

I tested Storify with this post and it ended up looking like this:

Pretty cool 🙂