RSS Feed
2012/02/04

Silex, Twig und HTML5 BoilerPlate

Ivo Bathke, 2011/10/12 07:31

Alright, there is a bundle for H5BP for symfony2 and there is Assetic, you can probably use both with Silex and thats just fine.
But in case you want to keep your Silex project lean (since its micro) you can use Twig and H5BP only and build / deploy your app from the outside.
Boilerplate-300x158 in
With a little tuning of the H5BP build, of course / unfortunatly. (Ok thats the caveat)

So i have a structure like so:
web/
(this is the webroot, here is js/css/images, all that asset stuff and the index, here we use the recommended H5BP stuff’n'structure)
views/
(this is outside of webroot and here are all of the *.twig)
» read more

nodejs plugin for netbeans

Ivo Bathke, 2011/10/05 07:45

Over the weekend i looked for a plugin for node.js in netbeans and ended up tryin this one:
http://timboudreau.com/blog/read/NetBeans_Tools_for_Node_js

Actually its all said on the post itself: installation, features and restrictions.
So go and read it.

Its still a bit early stage and only runs on a nightly-build netbeans but it already has some helpful features.
» read more

2 ways to your offline wikipedia

Ivo Bathke, 2011/09/28 10:05

… for whatever reason you might need that ;)

For both ways you will need the dumps, you get them here:
http://dumps.wikimedia.org/dewiki/latest/
The main dump is the pages-articles.xml.bz2 if you want the categories as well, you need the
category.sql.gz and categorylinks.sql.gz too.
The pages file is quite huge and will take you probably about 4 hours to download, depending on your connection.

You will also need a fresh and running installation of the mediawiki software.
Install it and here we go:
» read more

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

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

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

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

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

obsvr.net

Ivo Bathke, 2011/08/02 17:05

Just wanted to mention it here: http://obsvr.net

A media search aggregator build by Me and Max, as the wonderfulwebsolutions.

Its a luckily distributed wolpertinger of symfony, silex, node.js, jquery, isotope, apache and lighty, more to come.

» read more

install ant ftp task on ubuntu

Ivo Bathke, 2011/07/29 17:17

Tired of manually uploading your changes via FTP?
And no shell because your client cant/wont buy a hosting package for real men?

Then go for ant and its ftp task!

Install it on ubuntu like so (given you have ant and java already):

» read more