A nice cross browser testing tool
Instant access to all desktop and mobile browsers. Say goodbye to your setup of virtual machines and devices.browserstack.com
If Paul Irish likes it, it's probably good.
Instant access to all desktop and mobile browsers. Say goodbye to your setup of virtual machines and devices.browserstack.com
If Paul Irish likes it, it's probably good.
Last week Bramus presented a cool mixed content scanner on his blog. Just for fun/as an excercise I made my own version.
The core scanner is mostly a copy of Bramus' code but there are a few noticeable differences. My version:
You'll find the instructions how to use it on github.
Join 9,500+ smart developers
Get my monthly newsletter with what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.
No spam. Unsubscribe anytime. You can also follow me on X.
"If you are one of the *millions* who have downloaded a Spatie package, then you understand the quality that Freek aims for. The newsletter is of the same quality of any Spatie package you're using."
Probably you're using a .gitignore file for every project. If you find yourself creating a .gitignore file for the same files on every project you should use a global .gitignore file. You can specify the location of the global .gitignore file with this command: git config --global core.excludesfile…
Sitemap is a package built specifically for Laravel 4/5 that will help you generate XML sitemaps for Google. Based on laravel-sitemap this package operates in a slightly different way to better fit the needs of our project. A facade is used to access the sitemap class and we have added the ability to produce sitemap indexes as well as sitemaps. Furthermore, it's tested.https://github.com/dwightwatson/sitemap
Using this on polkadots.be.
You can view the dns cache of Google Chrome by surfing to
The cache can be cleared by clicking "Clear host cache"
One of the easiest way of increasing the responsiveness of your server and guarding against out of memory errors in your applications is to add some swap space. Swap is an area on a hard drive that has been designated as a place where the operating system can temporarily store data that it can no longer hold in RAM.https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04The information written to disk will be slower than information kept in RAM, but the operating system will prefer to keep running application data in memory and use swap for the older data. Overall, having swap space as a fall back for when your system's RAM is depleted is a good safety net.
In this guide, we'll cover how to create and enable a swap file on an Ubuntu 14.04 server.
Adding swap is only to be used to give your server a bit of breathing space. If your server is constantly using a lot of swap memory consider upgrading the amount of RAM.
Just as "vagrant up" is a single command to create a development environment for any application, `vagrant push` is a single command to deploy any application.https://www.vagrantup.com/blog/vagrant-push-to-deploy.html
Ultimately, we can even imagine a long term in which secure origins are so widely deployed that we can leave them unmarked (as HTTP is today), and mark only the rare non-secure origins.https://www.chromium.org/Home/chromium-security/marking-http-as-non-secure
I'm all for it.
Earlier today Spatie, the company where I work, launched a webshop polkadots.be. When the project started one of the first choices that we had to make was if we were going to use an existing solution or build our own custom solution. For this project we took an extensive look at some existing…
Nginx Server Configs is a collection of configuration snippets that can help your server improve the web site's performance and security, while also ensuring that resources are served with the correct content-type and are accessible, if needed, even cross-domain.https://github.com/h5bp/server-configs-nginx
WatchKit bears a striking resemblance to UIKit, which is not entirely surprising, given their shared history and purpose. Watches are different from phones and tablets, which themselves are different from desktops. Some concepts are shared, but each have unique purposes and constraints that shape the topography of their software.http://nshipster.com/watchkit/
Compare load times of the unsecure HTTP and encrypted HTTPS versions of this page.https://www.httpvshttps.com/
October saw the company add 26.000 new active users, a continuation of the average 20,000 new users coming on board each month.http://www.forbes.com/sites/benkepes/2014/12/09/digitalocean-raises-50m-but-even-that-cant-explain-the-growth/
I didn't know these guys were so big.
With my recent move to HTTPS I wasn’t sure if there were any pages left on my site that had Mixed Content or not. To check this I wrote a little PHP CLI app to scan an HTTPS website for Mixed Content. The script starts crawling at a given URL, and processes the page.https://www.bram.us/2014/12/10/mixed-content-scan-scan-your-https-enabled-website-for-mixed-content/
Nice!
Programmers work at night because it doesn’t impose a time limit on when you have to stop working, which gives you a more relaxed approach, your brain doesn’t keep looking for distractions and a bright screen keeps you awake.http://en.codeceo.com/why-programmers-work-at-night.html
Though I keep working at night to a minimum it sounds very familiar. It seems a bit strange but not having a deadline is great for productivity for some types of tasks.
Evan Miller makes the case for offering xls-exports instead of csv-exports.
Most people of your website’s users are also Excel users. When they export their data as CSV, they’ll probably just bring it into Excel first to have a look around. You should probably offer an explicit XLS export, and take it seriously.http://www.evanmiller.org/please-offer-an-excel-export-option.html
An xls-file is capable of things that 'll never be possible in csv:
This is how you export all values from a given repository that returns Eloquent models:
Excel::create($pathToFile, function($excel) {
$excel->sheet('The sheet name', function($sheet) {
$sheet->freezeFirstRow();
$sheet->cells('A1:Z1', function($cells) {
$cells->setFontWeight('bold');
$cells->setBorder('node', 'none', 'solid', 'none');
});
$sheet->fromModel($this->yourOwnRepository->getAll());
});
})->export('xls');
The result is an excel-file with the header row frozen and underlined and it's values in bold.
Here's a great Laravel package if you want to use the no CAPTCHA reCATCHA that was introduced by Google last week:
https://github.com/anhskohbo/no-captcha
Personally I'd go for a honeypot before resorting to a recaptcha because a honeypot is invisible for users. Here's a good package by Maksim Surguy if you want to go that route:
I've used MySQL over the years and it has served me well. I didn't know the default behaviour is a bit messed up. Look at this video for some examples:
Because there's a lot of validation being done by the php-applications I work on, I've yet to run into the problems described above.Though the default configuration has some problems I'm not migrating my current projects from MySQL to something else. But for fresh new projects, I'll consider using PostgreSQL.
If you are considering this as well here's a guide by Chris Fidao (I stumbled upon the video above when reading that guide). If you are in any way interested in running your own server you have to subscribe to his excellent newsletter, Servers for Hackers, and buy the book with the same name.
You can clear a beanstalkd queue in Laravel with this Artisan command.
Fontastic is a service for creating custom font icons.
They offer hosting of the icons as well so you can manage them in one place.