Jun 29, 2016 from twilweb Java Generics This week I learnt Generics can be quite useful to retrofit a combination of interfaces . e.g suppose your method wants to accept any Object that implements Cloneable and Runnable . you can do this...
Feb 04, 2016 from [tekovic.com~]# Dynamic HAProxy backends HAProxy is one of very few pieces of software that are truly a joy to use. It’s written in C, it’s reliable, fast, secure and versatile. I’ve been using it for a number of years now for all kinds o...
Dec 29, 2015 from Randall Degges Obsessing Over Availability is Dumb Over the past handful of years, as I’ve been building and working on several very large and very public API services, I’ve noticed that almost everyone I speak with is a zealot for availability. Th...
Dec 18, 2015 from Randall Degges Two Years of Evangelism In a couple short months, I’ll have been at Stormpath for two full years. It’s pretty insane how fast the time has flown by. It seems like only yesterday I was writing about my decision to move to ...
Sep 01, 2015 from [tekovic.com~]# Rebuilding software RAID without mdadm.conf Rebuilding software RAID array is very easy when you have your mdadm.conf file at hand, but when you find yourself in a situation without backup of that little config file, e.g. after reinstalling ...
Jan 19, 2014 from Stranger Than Usual Kochprojekt Woche 3: Fenchel mit Käse überbacken Diese Woche habe ich mangels Fleisch für Rouladen überbackenen Fenchel gemacht.
Oct 03, 2013 from [tekovic.com~]# How to remove VirtFS like a boss Recently I was unfortunate to witness huge filesystem loop on a cPanel server that was caused by combination of VirtFS and Idera’s Server Backup software (previously known as R1soft CDP backup). To...
Jan 19, 2013 from [tekovic.com~]# Fixing timeout between Nginx and PHP-FPM In case you’ve set up Nginx as reverse proxy for PHP-FPM and you have very slow or complex PHP script that executes for quite some time, you’ve probably seen an 504 gateway time-out error. This is ...
Oct 15, 2012 from [tekovic.com~]# Exim ACL for blocking certain senders If you’re in a need for fast and simple solution to block certain senders directly on Exim mail server, you’re in luck. Couple of weeks back I needed to blacklist a spammer on a relay mail server, ...
Sep 12, 2012 from [tekovic.com~]# AWStats - poor man’s download counter A few days ago I was asked to configure AWStats to count downloads of .exe files on an website. I know that it’s blindingly obvious that AWStats isn’t the right tool for this job, but sometimes you...
Jul 20, 2012 from [tekovic.com~]# Change passwords for multiple cPanel accounts (bulk password reset) The other day I needed to change passwords for multiple cPanel accounts. Since there was a lot accounts in question, changing passwords manually was out of the question. Changing passwords from she...
Mar 17, 2012 from [tekovic.com~]# Adding custom modules to Nginx RPM If you’ve installed Nginx from source, adding custom modules is easy. You simply recompile Nginx and include the module you want. But what if you’ve installed Nginx from RPM? How do you install cus...
Mar 11, 2012 from [tekovic.com~]# Nginx maintenance page with 503 HTTP status code The other day I had to do some maintenance on a server with Nginx configured as a reverse proxy for Apache. The configuration was very simple - Nginx was in front of Apache and it served static con...
Feb 11, 2012 from Renfei Mao on flujoo 电影情节的结构 “电影情节” 有时是对一部电影的内容不加区别的统称, 有时是对一种可能出现的结构的指称. “这部电影的情节很淡” 偏向前一种情况, “这部电影没什么情节” 则偏向后一种. 本文探讨后一种情况. 电影情节的结构 当你想向他人介绍一部电影时, 可能会使用语言, 并进行一些概括. 假设你是这么向别人介绍某部电影的: “他激怒了她, 她一怒之下对他开了枪, 把他杀了”. 这是你对电影中发生的 “事情...
Oct 04, 2011 from modFoss Credential Management In DBIX::Class Most companies have a method of storing passwords and configuration details in a configuration file. For programmers working on on DBIx::Class, this usually means writing your own functions to load...
Oct 27, 2010 from modFoss Find a Perl Module's Path This article covers the standard methods of locating Perl Modules on your system.
Oct 20, 2010 from modFoss Force Download with HTTP Headers Through the use of the HTTP headers you can force a web browser to download content, instead of displaying it. You could even set the filename differently.
Sep 21, 2010 from modFoss Cookieless Domains The premise of cookieless domains is that one can speed up an HTTP transaction and the amount of entities downloaded at the same time to increase the rendering.
Sep 15, 2010 from modFoss Understanding Bash History Understanding how to fully utilize bash's history functions are paramount to being able to quickly recall commands and navigate the terminal. This article focuses on the lesser-known commands built...
Sep 01, 2010 from modFoss Understanding Job Control In Bash Between opening a number of shells and running a screen multiplexer like 'screen' there are many ways people utilize terminals to run multiple commands at once. Bash provides its own built-in way o...