How to Use SVG Patterns

<svg> <defs> <pattern id="basicPattern" x="10" y="10" width="40" height="40" patternUnits="userSpaceOnUse"> <circle cx="20" cy="20" r="20” fill= "#64bee3" /> </pattern> </defs> <rect x="10" y="10" width="200" height="200" stroke= "#333333" stroke-width="2" fill="url(#basicPattern)" /> </svg> SVG patterns provide for very unique design opportunities. We are essentially defining a canvas within a target shape or text, which is then repeated (or tiled) …

Freelancer Productivity Quest: The Ultra-Schedule

Jessica Hische, freelancer, in search of the ultimate day-schedule: When I moved to San Francisco I was suddenly surrounded by people with “real jobs”, who didn’t have the flexibility I had (and who loved filling their weekends with fun non-work-related activities). I found myself, more and more, conforming to a normal office work schedule, running …

PHP Geotools

<?php $geotools = new \League\Geotools\Geotools(); $coordinate = new \League\Geotools\Coordinate\Coordinate(‘40.446195, -79.948862’); $converted = $geotools->convert($coordinate); // convert to decimal degrees without and with format string printf(“%s\n”, $converted->toDecimalMinutes()); // 40 26.7717N, -79 56.93172W printf(“%s\n”, $converted->toDM(‘%P%D°%N %p%d°%n’)); // 40°26.7717 -79°56.93172 // convert to degrees minutes seconds without and with format string printf(“%s\n”, $converted->toDegreesMinutesSeconds(‘%P%D:%M:%S, %p%d:%m:%s’)); // 40:26:46, -79:56:56 printf(“%s\n”, $converted->toDMS()); …

How quitting my corporate job for my startup dream f*cked my life up

Doing a startup was a long journey and I was putting myself under so much pressure by giving such a f*ck about what other people think. Day by day, I was getting lonelier and more depressive as I avoided social occasions. My startup progress was not as fast as my social circle imagined it to …

Change cPanel Document Root

Recently I needed to change the document root (viz. the public_html folder) of a specific account on a WHM/cPanel server. Here’s how (root access required): Edit /var/cpanel/userdata/USERNAME/DOMAIN.COM Change the line documentroot: /home/USERNAME/public_html to reflect your needs Rebuild the Apache config files by executing /scripts/rebuildhttpdconf Restart the Apache service using service httpd restart

Building a Device Lab

Collection of slidedecks to building your own device lab (only the first one in the series embedded, click through below to see all others): We cover how to build a device lab as a product for your coworkers to test their work on a spectrum of operating systems and versions. We also cover how to …

Chartist – Simple responsive charts

/* Add a basic data series with six labels and values */ var data = { labels: [‘1’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’], series: [{ data: [1, 2, 3, 5, 8, 13] }] }; /* Set some base options (settings will override the default settings in Chartist.js *see default settings*). We are adding a basic …

Technical debt 101

Every time you don’t write software based on the best possible practices and understanding of the business domain, you incur it in a technical debt. This debt keeps increasing over time, just like an interest, because whoever has to change something has to deal with the imperfect concepts you codified on the first occasion. If …

When the “Casual” Workplace Is Confusing

Anna Lewis, Senior Recruiter at Viget: Casualness at the office starts with what we wear. The casual dress code common to start-ups and creative agencies—T-shirts, jeans, etc—seems to defy the very term “code”. When it’s time for a client meeting or a presentation, we start looking positively “nice” or “dressy” and, mysteriously, we all seem …