This is THE plugin for it.
https://github.com/js-cookie/js-cookie
So, on my recent DO droplet I had to install Apache (2.4.10) to run a web application for a client.
root@digitalwhores:/home/webroot# apache2 -v Server version: Apache/2.4.10 (Ubuntu) Server built: Mar 9 2015 11:53:48
After configuring the subdomain/virtual host I was getting a 403 for it.
This was the error on the error.log…
[Thu Jul 16 21:00:28.919036 2015] [authz_core:error] [pid 17411] [client 84.XXX.XXX.XXX:53565] AH01630: client denied by server configuration: /home/webroot/www/public/index.php
So, this is my current snap of my domain.conf – working -.
<Directory /home/webroot/www/public/> Options Indexes FollowSymLinks MultiViews AllowOverride all #Order allow,deny #allow from all Require all granted </Directory>
I got some works made with CodeIgnitor framework…
Some of them were returning me
Disallowed Key Characters
The solution was, on system/core/Input.php make the following change
if ( ! preg_match("/^[a-z0-9:_\/-]+$/i", $str))
{
exit('Disallowed Key Characters.');
}
To
if ( ! preg_match("/^[a-z0-9:_\/-~]+$/i", $str))
{
exit('Disallowed Key Characters.');
}
A new digitalocean droplet… this time for a client…
While I was trying to use count to see the number of elements on a object,
PHP count was returning me 1.
This is how I solved it.
$total = count((array)$objecto);
While I’m sketching a new project, and trying to maximize the server work…
I might need to join several JSON objects and order them by a value (timestamp).
This is a solution that I’v found on Stackoverflow.
arr1 = [{"link":"#","prod":"Fundamentals Of Software Engineering","price":" Rs. 201 "},{"link":"##","prod":"Real-Time Systems: Theory And Practice","price":" Rs. 390 "}];
arr2 = [{"link":"#","prod":"Fundamentals Of Software Engineering","price":" Rs. 202 "},{"link":"##","prod":"Real-Time Systems: Theory And Practice","price":" Rs. 392 "}];
arr3 = [{"link":"#","prod":"Fundamentals Of Software Engineering","price":" Rs. 203 "},{"link":"##","prod":"Real-Time Systems: Theory And Practice","price":" Rs. 394 "}] ;
var mergedArray = arr1.concat(arr2, arr3);
var sorted = mergedArray.sort(function(a, b){
var priceA = parseFloat(a.price.replace("Rs.", ""));
var priceB = parseFloat(b.price.replace("Rs.", ""));
return priceA - priceB;
});
console.log(sorted);
References:
Stackoverflow question: http://stackoverflow.com/questions/8869123/adding-two-json-objects-and-sorting
jsfiddle http://jsfiddle.net/diode/FzzHz/
Today I was whoising a domain… I’v found DropCatch430.com.
DropCatch430.com’s page is saying
Please Note: We are a partner of NameBright.com

OK! ‘430, nice to know…
How many DropCatchNNN.com there are?
f*ck!, I just know how to count until… but… looks like they are a few hundreds….
About 452 results (0.36 seconds)
Only on page 30th of Google Results I’v started to see other thing except DropCatchNNN.com results…
On the Google Search I also found…
DropCatch.com works similarly to NameJet and SnapNames when it comes to fully expired (aka pending delete) domain names. The names drop and the companies use their own domain registrars (as well as partners) to quickly ping the registry and pick up expired domain names.
The software behind DropCatch.com has been used to capture over 1 million domain names since 2006, including much of the HugeDomains portfolio.
Source: http://domainnamewire.com/2014/05/12/dropcatch-com-expired-domains/
Domain Name: XXXXXXXXXXXXXXX.COM Registrar: DROPCATCH.COM 430 LLC Sponsoring Registrar IANA ID: 1841 Whois Server: whois.namebright.com Referral URL: http://www.DropCatch430.com Name Server: DISCOUNT.HUGEDOMAINS.COM Name Server: DISCOUNT2.HUGEDOMAINS.COM Status: clientTransferProhibited http://www.icann.org/epp#clientTransferProhibited Updated Date: 03-may-2015 Creation Date: 18-oct-2014 Expiration Date: 18-oct-2015 For more information on Whois status codes, please visit https://www.icann.org/resources/pages/epp-status-codes-2014-06-16-en. Domain Name: XXXXXXXXXXXXXXXXX.com Registrar URL: http://www.NameBright.com Registrant Name: Domain Sales Manager Registrant Organization: HugeDomains.com Name Server: discount.hugedomains.com Name Server: discount2.hugedomains.com DNSSEC: unsigned To view the full Whois information please visit: https://www.namebright.com/Whois/XXXXXXXXXXXXXX.com Use this link for $100 off this domain name. http://www.hugedomains.com/coupon.cfm?id=whois
As with competing services, if more than one person backorders the same captured domain then it heads to auction. It’s important to note that any DropCatch.com customer can participate in auctions, not just those that backordered the domain.
Source: http://domainnamewire.com/2014/05/12/dropcatch-com-expired-domains/
Readings about How to grab an expiring domain.
HappyApps.io is a performance and uptime monitoring service, just like Pingdom.
I’v been using pingdom for years… since 2008 I guess…
Lets try HappyApps – their interface looks awesome.
Some screenshots taken from their home page….
Sucuri has lunched an Website Performance Tool.
We extract three key metrics that are critical to the performance of any website: connection time, time to first byte (TTFB) and total load time:
- Connection time: It measures how long it takes for the TCP session to be established to your website. If you are a networking geek, it measures how long it takes for the 3-way handshake to be completed.
- Time To First Byte (TTFB): This is one of the most important numbers to pay attention to, as it tells you how long it takes for the first byte to be received by the browser. This metric is important because as soon as the browser receives the first few bytes, it can start to load the page and display content to the end user.
- Total Load Time: This shows how long it takes for the full page to be loaded.
To give us the visibility we need for these tests, we setup 13 globally distributed testing stations:
- 4 in USA (New York, Atlanta, Dallas and Los Angeles)
- 1 in Canada (Montreal)
- 4 in Europe (Germany, UK, France and Netherlands)
- 2 in Asia (Japan and Singapore)
- 1 in South America (Brazil)
- 1 in Australia