Kategoriarkiv: English

Responsive Adsense and WordPress

The problem

No ads show up when using the responsive code for Google Adsense in a WordPress 3.8.1 page or entry.

The solution

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Responsive -->
(adsbygoogle = window.adsbygoogle || []).push({});

Take the code presented by Google and remove all line breaks in it. In other words, make all the code be on a single line. Then paste it where you want ads on your web page. It’s WordPress’ wpautop function that doesn’t recognize the asynchronous Javascript and therefore adds formatting markup that breaks the code.

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><ins style="display:block" data-ad-client="ca-pub-0000000000000000" data-ad-slot="0000000000" data-ad-format="auto"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});</script>


Blender console in Mac OS X

For those of us aspiring to write Blender scripts it can be a little difficult to figure out how to access the console when you run Blender 2.6x on Mac OS X. The menu shortcut in the Windows version simply isn’t there. The trick is to open Blender through the terminal. The normal way to go about this is by navigating to the ”Applications” folder and type

open blender.app/

This will not do the job. Instead you need to execute


The active console window should now present the output from Blender. I hope this will save someone some headache.