Nu ook in het Nederlands.
 

Feed aggregator

orkjerns blogg: Now running Drupal 8, in the most hipster way imagined.

Planet Drupal - Sun, 2014/07/27 - 10:48pm
Now running Drupal 8, in the most hipster way imagined.

It has been a weekend in the spirit of headless Drupal, front-end optimizations and server side hacks. The result is I updated my blog to Drupal 8. Since you are reading this, it must mean it is live.

First let's start with the cold facts (almost chronologically ordered by request lifetime):

Other front-end technologies used that does not directly relate to the request itself:

So, HHVM, huh?

Yeah, that's mostly just a novelty act. There is no real gain there. Quite the opposite, I have added some hacks to get around some limitations.

HHVM does not work very well with logged in users right now, but works alright for serving anonymous content.

When I reload and look at the source code, there is no css loading. WAT?

Yeah, I am just assuming you remember the styles from last page load. Also, I have made it an image to have a 1 HTTP request CMS, right?

No, really. How does that work?

The real magic is happening by checking if you as a user already have downloaded my page earlier. If you have, I don't need to serve you css, as far as I am concerned. You should have saved that last time, so I just take care of that.

OK, so you use a cookie and save css in localstorage. Does that not screw with the varnish cache

Good question. I have some logic to internally rewrite the cached pages with a key to the same varnish hash. This way, all users trying to look at a css-less page with the css stored in localstorage will be served the same page, and php will not get touched.

What a great idea!

Really? Are you really sure you have thought of all the limitations? Because they are many. But seeing as this is my personal tech blog, and I like to experiment, it went live anyway.

Give us the code!

Sure. The theme is at github. The stupid cache module is at github. Please be aware that it is a very bad idea to use it if you have not read the code and understand what it does.

And since I am feeling pretty bad ass right now, let's end with Clint Eastwood as an animated gif.

Tags:
Categories:

clemens-tolboom commented on issue build2be/php-grade#7

On github - Sun, 2014/07/27 - 5:44pm
July 27, 2014 clemens-tolboom commented on issue build2be/php-grade#7

Now travis fails probably due to missing QA tools https://travis-ci.org/build2be/php-grade/jobs/30972914

clemens-tolboom pushed to master at build2be/php-grade

On github - Sun, 2014/07/27 - 5:39pm
July 27, 2014 clemens-tolboom pushed to master at build2be/php-grade
  • 4f82300 Fix behat test due to #6 as phpcs is now different configured.

clemens-tolboom pushed to master at build2be/php-grade

On github - Sun, 2014/07/27 - 5:35pm
July 27, 2014 clemens-tolboom pushed to master at build2be/php-grade

clemens-tolboom commented on issue build2be/php-grade#7

On github - Sun, 2014/07/27 - 5:16pm
July 27, 2014 clemens-tolboom commented on issue build2be/php-grade#7

My dev system has a composer version alpha8 /usr/local/Cellar/composer/1.0.0-alpha8/libexec/composer.phar Travis has Composer version ac497feabaa0d…

clemens-tolboom pushed to master at build2be/php-grade

On github - Sun, 2014/07/27 - 5:12pm
July 27, 2014 clemens-tolboom pushed to master at build2be/php-grade
  • 8a51c5d composer needs --dev somehow.

clemens-tolboom opened issue build2be/php-grade#7

On github - Sun, 2014/07/27 - 5:09pm
July 27, 2014 clemens-tolboom opened issue build2be/php-grade#7 Why fails travis?

clemens-tolboom closed issue build2be/php-grade#2

On github - Sun, 2014/07/27 - 5:09pm
July 27, 2014 clemens-tolboom closed issue build2be/php-grade#2 Title and other report widgets

clemens-tolboom closed issue build2be/php-grade#6

On github - Sun, 2014/07/27 - 5:08pm
July 27, 2014 clemens-tolboom closed issue build2be/php-grade#6 Is it possible to adhere to phpcs ever?

clemens-tolboom pushed to master at build2be/php-grade

On github - Sun, 2014/07/27 - 5:06pm
July 27, 2014 clemens-tolboom pushed to master at build2be/php-grade

clemens-tolboom pushed to master at build2be/php-grade

On github - Sun, 2014/07/27 - 5:02pm
July 27, 2014 clemens-tolboom pushed to master at build2be/php-grade

clemens-tolboom pushed to master at build2be/php-grade

On github - Sun, 2014/07/27 - 4:59pm
July 27, 2014 clemens-tolboom pushed to master at build2be/php-grade

clemens-tolboom pushed to master at build2be/php-grade

On github - Sun, 2014/07/27 - 4:55pm
July 27, 2014 clemens-tolboom pushed to master at build2be/php-grade
  • d69bda6 Added a workflow suggestion.

clemens-tolboom commented on issue build2be/php-grade#6

On github - Sun, 2014/07/27 - 4:52pm
July 27, 2014 clemens-tolboom commented on issue build2be/php-grade#6

Asnwer: yes as we now have a hardcoded --standard=PRS2 in PhpCsParser.

clemens-tolboom opened issue build2be/php-grade#6

On github - Sun, 2014/07/27 - 4:21pm
July 27, 2014 clemens-tolboom opened issue build2be/php-grade#6 Is it possible to adhere to phpcs ever?

clemens-tolboom opened issue build2be/php-grade#5

On github - Sun, 2014/07/27 - 3:23pm
July 27, 2014 clemens-tolboom opened issue build2be/php-grade#5 How to configure the parsers?

clemens-tolboom opened issue build2be/php-grade#4

On github - Sun, 2014/07/27 - 3:19pm
July 27, 2014 clemens-tolboom opened issue build2be/php-grade#4 Make phpcs a composer component

clemens-tolboom pushed to master at build2be/php-grade

On github - Sun, 2014/07/27 - 2:59pm
July 27, 2014 clemens-tolboom pushed to master at build2be/php-grade

Pages

Subscribe to build2be/com/e aggregator