Product & Tech Blog

search
expand_more
expand_more
Showing 72-84 of 112 results

Results for category: Software engineering close

Varnish + HTTP Cache: An intro guide for web developers – Part 1

Blog post header

Varnish, the web application accelerator: Varnish development was initiated as a project within VG as a direct response to increasing demand hitting our servers hard. Existing caching systems were simply not fast or flexible enough to deal with VGs needs; and so Varnish was born with it’s first official release

How to make Ubuntu play nice with VMware

Blog post header

Here at VG a large amount of our services are deployed on virtualized servers in our VMware cluster. A majority of these servers are running CentOS, but from time to time there is a need for other distributions, like Ubuntu. In this short write up we will go through a

Scrum? What a drag!

Blog post header

I attended a Scrum Master course at Crisp last week. These are some of my reflections from that course (which I recommend by the way). But first: why would I take a course on something I’ve been using for at least 5 years? I think it’s because I’ve seen so

iOS7-bug: Shows white page when getting 304 Not Modified from server

Blog post header

It seems like after Apple upgraded almost every line of code in the iPhone they also introduced a bug regarding browser cache in Safari. If your site takes advantage of the Last-Modified or ETag headers, you will probably run into this problem as well. The iPhone will send a If-Modified-Since

CSS: Block formatting context

Blog post header

Floats, absolutely positioned elements, block containers (such as inline-blocks, table cells, and table-captions) that are not block boxes, and block boxes with ‘overflow’ other than ‘visible’ (except when that value has been propagated to the viewport) establish new block formatting contexts for their contents. ~ W3C, CSS 2.1 Confusing? I

Avoid Dependency on 3rd Party Sources With Composer

Blog post header

Composer is the defacto standard dependency manager for PHP out there, also here in VG. We use it for not only our internal packages, but for all external packages like ZF2, Symfony, PHPUnit, etc. For the most parts it has been a pleasant experience, but it creates a hard dependency towards

Dissecting Javascript clicks in UIWebView

Blog post header

In VG we make heavy use of UIWebView, almost all of our iOS apps is a mix between native code and HTML. This is nice and dandy for presenting all sorts of content – being a newspaper means tons of webpages with ads, frames, javascript menus and whatnot. Generally this

Inheriting configuration in Zend Framework 2 applications

Blog post header

When working on Zend Framework 2 applications you might come across situations where you need to differentiate the application configuration for the different application environments, be it development, staging, testing and/or production. This can be cache TTL‘s, Memcached hosts, Redis hosts, debugging levels and more. Instead of copy/pasting the complete

EditorConfig: Consistent coding style

Blog post header

If you’ve worked on more than one project in your coding career, you’ll probably have come across different coding styles. While some projects prefer an indentation of four spaces, others might prefer to only use two. Some may even use tabs. Then there’s line-endings, charsets and trailing whitespace. When you

Responsive CSS

Blog post header

The days when it was enough to create html stylesheets that work on one given screen width (eg 1024px) is over. As smartphones and tablets took the market, it was very common to have separate pages for such devices, like m.domain.com or touch.domain.com. Today, browsers are found on devices of

Using PHP’s built-in web server in Behat tests

Blog post header

Behat is a tool for running acceptance tests for your application. If your application is a web application you will need a web server to execute your tests. This is not likely an issue when running your tests locally since you probably have a web server running on the development

Logging the correct IP address using Apache 2.2.x

Blog post header

Here at VG we have loadbalancers and proxies in front of most of our webservers. This is key to being able to handle the big amounts of traffic we get. One problem that arise when traffic is being terminated this way is that the backend webserver, namely Apache will get