Wednesday, August 27, 2014

Links about Data Science

Checkout this  DataScience repository to learn and apply for real world problems.

You can find 
  • Data Sets 
  • Bloggers 
  • Facebook Accounts 
  • Twitter Accounts 
  • Toolboxes - Environment 
  • Other Awesome Lists
about DataScience in this repo.

Monday, August 25, 2014

Listen switch_user Event in #Symfony

    class: MyApp\AppBundle\Listener\SecuritySwitchUserListener 
      - { 
         name: kernel.event_listener, 
         event: security.switch_user, 
         method: onSecuritySwitchUser }
// src/MyApp/AppBundle/Listener/SecuritySwitchUserListener.php
namespace MyApp\AppBundle\Listener;
use Symfony\Component\Security\Http\Event\SwitchUserEvent;
class SecuritySwitchUserListener
public function onSecuritySwitchUser(SwitchUserEvent $event)
$newUser = $event->getTargetUser();
} }

Friday, August 22, 2014

Pecl errors

PECL paketleri kurulumu sırasında bazen arşiv hataları olusabiliyor.

Örnek bir durum

$ sudo pecl install mongo 
downloading mongo-1.5.5.tgz ...
Starting to download mongo-1.5.5.tgz (192,109 bytes)
.........................................done: 192,109 bytes
could not extract the package.xml file from "/build/buildd/php5-5.5.9+dfsg/pear-build-download/mongo-1.5.5.tgz"
Download of "pecl/mongo" succeeded, but it is not a valid package archive
Error: cannot download "pecl/mongo"
Download failed

install failed

Bu durumdan genellike --nocompress ile kurtulabilirsin. 

pecl install --nocompress mongo"

Friday, August 1, 2014

#redis Matt Stancliff talks about the challenges on a large open source project.

Redis is a popular key-value store used by many companies. Matt Stancliff, a Redis Core Contributor, talks about the challenges with working on a large open source project. Takes your 30 minutes, but worth it.

At first I must say that Matt is a bit prejudiced about MongoDb. but still a "must watch" video if you are interested in open source development and redis.