RSS Feed
2012/01/27

extend SilverStripe memberprofile module

Ivo Bathke, 2012/01/16 11:50

Alright, SilverStripe again, still our CMS of choice.
Today i’d like to promote a very helpful module that provides Register and Profile Pages for Members for the Frontend.
The memberprofiles module.
It comes with a lot of features and customize options for nearly everthing you might need for Frontend Member Handling.
Further it is fully extendible to customize it even more.

For a starter tutorial i recommend a very good post by deadlytechnology.
I would like to describe how you extend it.

First lets install it (with the orderable module dependency):

» read more

no comments yet

thank gawd it’s online #3

Ivo Bathke, 2011/12/30 14:04

A little making of history from duckduckgo search engine.
http://www.gabrielweinberg.com/blog/2011/12/duckduckgo-used-to-run-out-of-my-basement.html

LinkedIn node.js performance tricks
http://engineering.linkedin.com/nodejs/blazing-fast-nodejs-10-performance-tips-linkedin-mobile

introducing PHP’s composer
http://nelm.io/blog/2011/12/composer-part-1-what-why/

promoting PHP’s composer
http://nelm.io/blog/2011/12/composer-part-2-impact/

node.js and PHP
http://bergie.iki.fi/blog/dnode-make_php_and_node-js_talk_to_each_other/

JavaScript API for zooming
http://lab.hakim.se/zoom-js/

Gadget: little printer
http://vimeo.com/32796535

jQuery Animations with automatic CSS3 transitions when possible
http://playground.benbarnett.net/jquery-animate-enhanced/

Batman.js is a framework for building rich web applications with CoffeeScript or JavaScript.
http://batmanjs.org/

some HTTP-Status Cats
http://www.flickr.com/photos/girliemac/6508022985/in/set-72157628409467125

no comments yet

Expeditions in the Cloud

Ivo Bathke, 2011/12/17 01:23

Caution: Scepticism ahead!

So i’d like to share some of my experiences in the cloud since i am still trying to figure out if it its worth for me or if i am better suited with an VPS.
Maybe somebody feels like feedbackin.

I tried PHPFog for PHP and no.de by joyent for node.js.
First i have to admit: yes i only tried the free models and of course they are limited and because its free you cant expect to get it all, right?
Yes and thats true.

With PHPFog i set up an app based on symfony 1.4. After some inital problems due to some bugs on PHPFog side, i got it running.
I really like to mention the kind and immediate chat support by PHPFog. It really made me feel like dealin with humans and not only machines. Big up!
By then everything felt really smooth with git deploy, configurations, mysql setup etc.
But i had to shut down the app again, because there are restrictions to PHP which killed the app like disabling “file_get_contents for remote URLS”, probably only in the free model. But that killed it for me at that point.
So read this carefully before going to cloud: http://docs.phpfog.com/index.php/features/article/shared_vs_dedicated
I guess with dedicated hosting you get more power, sure.

» read more

no comments yet

Silex and the HTTP_CACHE

Ivo Bathke, 2011/11/29 11:52

The HTTP_CACHE resp. the reverse proxy of Symfony is a pretty cool thing.
And as it is build-in Silex it can speed up the already fast micro framework massivly,
wich is good for me, as i am mainly workin with Silex right now.

To enable it you have to register it first like its shown in the docs:

 $app->register(new Silex\Provider\HttpCacheServiceProvider(), array(
 'http_cache.cache_dir' => __DIR__.'/cache/',
 ));

Also provide the writable cache dir.
» read more

3 comments

Enable Twig-Extensions in Silex

Ivo Bathke, 2011/11/21 10:55

Note: its about Twig-extensions not about the former “Silex Twig Extension”, this now called TwigServiceProvider.

First fetch the Twig-extensions code and put them in your vendor dir:

git submodule add git://github.com/fabpot/Twig-extensions.git vendor/Twig-extensions/fabpot
git submodule init
git submodule update

Then register the autoloader by using registerPrefixes:

$app['autoloader']->registerPrefixes(array(
    'Twig_Extensions_'  => array(__DIR__.'/../vendor/Twig-extensions/fabpot/lib')));

» read more

1 comment

Sending invalid Unicode via socket.io

Ivo Bathke, 2011/11/16 16:48

Well you can try to, but it will end up almost probably in an disconnect which is caused by the browser.
As i have learned here.

Given you have a string which contains invalid unicode like:

Invalid Unicode-300x29 in Sending invalid Unicode via socket.io
This will trouble the browser and the socket connection.

If you prepare your json with PHP and  json_encode the Unicode will be escaped to some strings like these:

\ud83d\ude31\ud83d\ude31\ud83d\ude04\ud83d\ude04\ud83d\udc9c\ud83d\udc9c\ud83d\udc4a

But on clientside it will still result in invalid Unicode.
» read more

no comments yet

OXID eshop routing

Ivo Bathke, 2011/11/14 12:53

If you wonder about routing in OXID eshops or how the URL structure is here are some hints:

OXIDs MVC, well thats some kind of different naming and you have to get used to:

the M (Model) you find in /core
the V you find in in your templates in /out, there the main view is called the same as your controller, given the controller has a render() method.
/views/details => /out/[templatename]/page/details.tpl
the C (Controller) you find in /views (what? oyerywell!)
like /views/details.php

The routing itself is like so:
» read more

no comments yet

Silex Starter Stubs

Ivo Bathke, 2011/11/04 16:01

There are several preconfigured Silex Apps on github. They let you start your Silex project in no time, which is good.
This makes Silex an even more simple rabbithole into the symfony2 world.

I started one myself and had a close look on the others, so i thought i share this.
They all differ a bit so you must choose what fits your needs the best.

They all follow some kind of “best practise” structure, some more, some less.

» read more

1 comment

tell redis db to not persist

Ivo Bathke, 2011/10/27 17:22

redis persists its memory data in snapshot style in every n seconds depending on your configuration.
read more here.
perhaps you would like to use redis as a pure in-memory db, like f.e. memchache.
you can tell redis to not persist and save some bits&miliseconds.
this could be the case when using redis as a f.e. realtime queue, you wont need persistence,
because you could say: nobody needs is newsfeed from the that day before the machine crashed ;)

alright, do so by:
» read more

no comments yet

thank gawd it’s online #3

admin, 2011/10/21 04:35

… aaaand these are the links:

Dynamic “responsive” Texts:
http://worrydream.com/Tangle/guide.html
via (codediesel)

When to use Silex or not!?  …incl. some nice discussions in the comments:
http://test.ical.ly/2011/10/11/is-there-a-specific-situation-when-to-use-a-php-micro-framework-like-silex/ » read more

no comments yet