Allowing other websites to embed your Django powered webpage or single page into an iFrame. Deals with XSS, Content Security Framework and X-Frame-Options.
You are browsing archives for
Tag: programming
Moving from Sublime Text 2 to Sublime Text 3
As Sublime Text 3 is around in public beta for quite some time, i thought i upgrade from my 2.x version to the new and – as it’s written on their homepage – faster version 3. Ross Lawley has a perfect guide how to upgrade painlessly: http://rosslawley.co.uk/posts/switching-to-sublimetext-3/ And thanks for the hint to check the […]
Use multiple email addresses (SSH keys) with GitHub
There is a good tutorial on Gist that shows all the required tasks: https://gist.github.com/2351996 This post is to remind me how to do it 😉
Von TextMate auf VIM umsteigenSwitching to Vim from TextMate
Basierend auf Daniel Fischer’s Artikel habe ich hier dokumentiert wie ich von TextMate nach Jahren auf MacVIM umgestiegen bin. Das hat den Vorteil für mich, dass ich nur noch einen Texteditor verwende, egal ob ich auf Linux oder auf Mac OS X arbeite. MacVim installieren MacVim von https://github.com/b4winckler/macvim/ (latest snapshot) runterladen MacVim.app in /Applications kopieren mvim […]
Flash on the Beach 2009 – Brighton, UK
Fotogalerie mit Impressionen von der Flash on the Beach Konferenz in Brighton Some pictures from Flash on the Beach, Brighton
Error compiling for iPhone SDK 2.2
After upgrading to iPhone SDK 2.2 and updating my iPod Touch’s Firmware to 2.2 (hell yeah, i love the option to disable automatic spellchecking!!!), i got an error building my iPhone Project: ld: library not found for -lcrt1.10.5.o The solution: The error indicates some error when crosscompiling similar to crosscompiling from OS X 10.5?to Mac […]
Compile Python 2.4.4 on Mac OS X 10.5 (Leopard)
Recently i upgraded my OS to Leopard and had to recompile python 2.4.4 for my Zope 3 buildout setup (i need a clean python for that). The problem was, that python 2.4.4 won’t build on leopard, Jodok Batlogg from Lovely Systems had the same problem and instantly found the solution. As he hasn’t posted it […]
Anarchy Media Player
As you might already know, Anarchy Media Player is a way cool javascript-based player solution for playback of media files like .mp3, quicktime movies, flash movies and so on. The very cool thing about that is, all you have to do is to include the anarchy player javascript file into your html document and each […]
get kaa.metadata (mmpython) running on OS X
go into kaa/base and edit setup.py by changing (line 36) this extensions.append( Extension(‘shmmodule’, [‘src/extensions/shmmodule.c’]) ) to this #extensions.append( Extension(‘shmmodule’, [‘src/extensions/shmmodule.c’]) ) or use this diff: 36c36 < extensions.append( Extension(‘shmmodule’, [‘src/extensions/shmmodule.c’]) ) — > #extensions.append( Extension(‘shmmodule’, [‘src/extensions/shmmodule.c’]) ) until now the support for cdrom drives only works on Linux, so i disabled it on OS X. now go to kaa/metadata and edit setup.py: change this ext_modules = [ cdrom, ifoparser ] to #ext_modules = [ cdrom, ifoparser ] ext_modules = [ ifoparser ] and change this ext_modules = [ cdrom ] to #ext_modules = [ cdrom ] ext_modules = [ ] or use this diff: 58c58,59 < ext_modules = [ cdrom, ifoparser ] — > #ext_modules = [ cdrom, ifoparser ] > ext_modules = [ ifoparser ] 61c62,63 < ext_modules = [ cdrom ] — > #ext_modules = [ cdrom ] > ext_modules = [ ] now go back to kaa/base and install the kaa.base package: $ sudo python setup.py install now go to kaa/metadata and install the kaa.metadata package: $ sudo python setup.py install you may use a different python instance, like /opt/python24/bin/python or something else if you don’t wanna install kaa into the default python on OS X.
go into kaa/base and edit setup.py by changing (line 36) this extensions.append( Extension(‘shmmodule’, [‘src/extensions/shmmodule.c’]) ) to this #extensions.append( Extension(‘shmmodule’, [‘src/extensions/shmmodule.c’]) ) or use this diff: 36c36 < extensions.append( Extension(‘shmmodule’, [‘src/extensions/shmmodule.c’]) ) — > #extensions.append( Extension(‘shmmodule’, [‘src/extensions/shmmodule.c’]) ) until now the support for cdrom drives only works on Linux, so i disabled it on OS X. now go to kaa/metadata and edit setup.py: change this ext_modules = [ cdrom, ifoparser ] to #ext_modules = [ cdrom, ifoparser ] ext_modules = [ ifoparser ] and change this ext_modules = [ cdrom ] to #ext_modules = [ cdrom ] ext_modules = [ ] or use this diff: 58c58,59 < ext_modules = [ cdrom, ifoparser ] — > #ext_modules = [ cdrom, ifoparser ] > ext_modules = [ ifoparser ] 61c62,63 < ext_modules = [ cdrom ] — > #ext_modules = [ cdrom ] > ext_modules = [ ] now go back to kaa/base and install the kaa.base package: $ sudo python setup.py install now go to kaa/metadata and install the kaa.metadata package: $ sudo python setup.py install you may use a different python instance, like /opt/python24/bin/python or something else if you don’t wanna install kaa into the default python on OS X.
kupu resize images
I always had the problem, that i could resize (drag with my mouse) images inside kupu, but when i save the document the image has its original size 🙁 Today i found the solution to this problem here To enable kupu to keep the resize information upon save you have to add width and height to the style whitelist in the kupu preferences in your site preferences.