RSS Feed
2012/02/04

Migrate to Mongolab

Ivo Bathke, 2011/09/26 07:38

Recently i ran into RAM troubles on my vserver for some reasons, i encountered the evil:

Cannot allocate memory at ...

So first i suspected mongodb to use up loads of memory as top showed.

But after some recherche work i learned mongodb only -seems- to use a lot of memory.
see here and here and here
The actual usage was around 20mb RAM, so mongodb was innocent.

The true RAM monsters were some apache and php-fpm zombies, but thats another story.

While suspecting mongodb i thought about outsourcing the mongodb and i found a free and sufficient offer in mongolab.
My interests were on and i gave it a try.
The free version has a limit for up to 240MB storage and since my app is just a small counter it should last for some time.
» read more

2 comments

Tilt – 3D DOM visualization

Max Girkens, 2011/09/23 06:00

someone just +1′d this nice addon for firefox:
(thanks, conrad :)

Tilt Firefox 3d Dom Addon1-300x160 in Tilt - 3D DOM visualization

Tilt visualizes the DOM in 3D and is a lot faster than i expected.
» read more

no comments yet

Wunderlist client for Linux

Ivo Bathke, 2011/09/21 12:43

Hey, today Wunderlist released a Linux Client for the Desktop. That made me curious about the hyped tool.
So I gave it a try on my Ubuntu machine!

Open the console and:

wget http://www.6wunderkinder.com/downloads/wunderlist-1.2.4-linux-32.tgz
tar xvfz wunderlist-1.2.4-linux-32.tgz
sudo mv Wunderlist-1.2.4/ /opt/

» read more

3 comments

nerdpress language switch

admin, 2011/09/16 06:05

As we also have more pageviews from outside germany lately and we’re happy about that,
we have decided to continue posting in english from now on.

» read more

1 comment

OXID eShop manufacturer long description module and fck editor module

Ivo Bathke, 2011/09/15 15:00

I recently made my first OXID eShop module: OXID-manufacturer-text-mod
Which basically adds a long description field to the manufacturer.

This comes just as a normal textarea, as usual in OXID CE.
If you would like to add an Richtext Editor, you can purchase the fck Editor module
and install it, if you did not already.

After you installed the fck module your textareas of the basic shop are rich text.

But since the manufacturer long description comes from the module, you have to teach the fck module the new field.
» read more

no comments yet

Boilerplate Build mit FTP deploy

Ivo Bathke, 2011/09/13 09:12

Da habe ich mir letztens die html5 boilerplate angeschaut und musste feststellen, dass die einen ziemlich guten build mitbringt.
Dieser optimiert Bilder, konkateniert und komprimiert alles was so geht, mit Hilfe von u.a. dem YUI Kompressor.
Was es noch nicht kann ist der Deploy, aber das kann man ihm ja beibringen ;)

» read more

2 comments

[Symfony 2] Twig – Global Variables

Johannes Heinen, 2011/09/12 10:21

Schon mal gefragt, welche globalen Variablen in der Twig-Extension eines Symfony 2 (Standard Distri)-Projektes zur Verfügung stehen? » read more

5 comments

install silverstripe with some modules from GIT

Max Girkens, 2011/09/11 12:53

This is a small shell script to set up silverstripe CMS
along with some modules i often use (as seen in ivo’s post)

The script has two parameters:
- the folder to clone the whole thing into
- the branch/tag to checkout afterwards

# install silverstripe + common modules from github
# usage sh install_silverstripe.sh <folder_name> <tag/branch>
# examples:
# sh install_silverstripe.sh some_folder tags/2.4.5
# sh install_silverstripe.sh some_folder master

» read more

no comments yet

[Symfony 2] AsseticBundle, Less CSS & YUI Compressor unter OSX installieren

Johannes Heinen, 2011/08/25 18:55

Das AsseticBundle ist ein Wrapper um Assetic, ein geniales Tool, um statische Assets für Webprojekte zu verwalten. AsseticBundle ist extrem einfach zu verwenden, einfach die entsprechende Filter-Chain via yaml konfigurieren, um mehr muss man sich nicht kümmern. Natürlich allerdings müssen die zugrundeliegenden Abhängigkeiten im Vorfeld installiert sein. In unserem Falle benötigen wir den Yui-Compressor als jar-File und Less CSS. Less ist ein node.js Modul, was bedingt, dass wir zuvor node.js installieren müssen.
» read more

5 comments

PHP odds! today: pass by reference traps

Ivo Bathke, 2011/08/25 11:42

This is dangerous:

//example array
$array = array('a' => array(array(243,453,435,232)));

foreach ($array['a'] as &$value) {
         $value[3] = $newvalue;
}

This works, but now the $value var is in the array by reference which can lateron lead to:
Notice: Array to string conversion
EDIT:
see below in the comments for when…

This works better:

» read more

4 comments