ROBO47.NET
Nav
  • Blog
  • Tools
  • Texte
  • Codeschnipsel
  • Tag-Cloud
  • Archiv
  • Sitemap
  • Suche
  • Datenschutzerklärung
  • Impressum
Blogroll
  • Bebel
  • Benjamin Klaile
  • Benjamin Steininger
  • Christian Schaefer
  • Refining Linux
  • Sebastian Schmitt
  • Sven Schmalle
Flattr this
  • Creating your own git aliases based on your needs

    19.12.2010 11:56
    Tags: Git, git alias, zsh, bash

    Tweet this: Creating your own git aliases based on your needs Dent this: Creating your own git aliases based on your needs Flattr this

    If you want to create git aliases optimized for your daily work, you should start by analysing your shell logs to find out which git commands you use most of the time and create shortcuts for them:

    Weiterlesen: Creating your own git aliases based on your needs
    Kommentare: 0
  • Git, Aliases, Submodules and Symfony

    19.12.2010 11:42
    Tags: Git, git alias, gitconfig, git submodules, Symfony

    Tweet this: Git, Aliases, Submodules and Symfony Dent this: Git, Aliases, Submodules and Symfony Flattr this

    Some time ago i stumpled over Joel Perras (@jperras) blogentry Making Git Behave on twitter, covering the .gitconfig file and that was when I first found out about gits aliases and thanks to Joel I started to fill my gitconfig with more and more of them, speeding up my work with git und my working-environment for my mostly symfony based stuff.

    Weiterlesen: Git, Aliases, Submodules and Symfony
    Kommentare: 0
  • RuntimeException: PHP Fatal error: 'You cannot serialize or unserialize PDOStatement instaces' in -:31 - PHPUnit - Process Isolation and Doctrine/PDO

    03.10.2010 21:35
    Tags: phpunit, pdo, Doctrine, Symfony, process isolation

    Tweet this: RuntimeException: PHP Fatal error: 'You cannot serialize or unserialize PDOStatement instaces' in -:31 - PHPUnit - Process Isolation and Doctrine/PDO Dent this: RuntimeException: PHP Fatal error: 'You cannot serialize or unserialize PDOStatement instaces' in -:31 - PHPUnit - Process Isolation and Doctrine/PDO Flattr this

    If you ever get this message:

    RuntimeException: PHP Fatal error:  Uncaught exception 'PDOException' with message 'You cannot serialize or unserialize PDOStatement instances' in -:31
    Stack trace:
    #0 [internal function]: PDOStatement->__sleep()
    #1 -(31): serialize(Array)
    #2 -(190): __phpunit_run_isolated_test()
    #3 {main}
      thrown in - on line 31
    

    Something with a doctrine/pdo went wrong in one of your tests, but since serialize does not work on pdo-classes, it prints out only this message.
    If you want doctrines/PDOs message, run only this one test with process isolation turned off and you will get the error-message.
    Really bad to debug on a continous-integration-system if it fails only there :)

    Weiterlesen: RuntimeException: PHP Fatal error: 'You cannot serialize or unserialize PDOSt ...
    Kommentare: 1
  • Stopping symfony from screwing up uploaded files names - PART 2

    30.09.2010 19:17
    Tags: Symfony, sfValidatedFile, sfValidatorFile

    Tweet this: Stopping symfony from screwing up uploaded files names - PART 2 Dent this: Stopping symfony from screwing up uploaded files names - PART 2 Flattr this

    After using my last solution for some time i came up with some improvements. Allowing all chars can be a security and usability-problem, so I switched to use some methods Doctrine uses for its slugs now.

    Weiterlesen: Stopping symfony from screwing up uploaded files names - PART 2
    Kommentare: 0
  • Fast hack for not linking empty columns with the href as linktext in a symfony admin generator list

    30.09.2010 18:17
    Tags: Symfony, sfDoctrineGenerator

    Tweet this: Fast hack for not linking empty columns with the href as linktext in a symfony admin generator list Dent this: Fast hack for not linking empty columns with the href as linktext in a symfony admin generator list Flattr this

    Using = to make a column linked to the edit-page of an entry in the symfony-admin generator.yml is ugly if an entry's column is empty, because the link_to()-helper will then use the href of the link as link text. If prefere just an empty column.

    Weiterlesen: Fast hack for not linking empty columns with the href as linktext in a symfon ...
    Kommentare: 0
  • Stopping symfony from screwing up uploaded files names

    18.08.2010 22:05
    Tags: Symfony, sfValidatedFile, sfValidatorFile

    Tweet this: Stopping symfony from screwing up uploaded files names Dent this: Stopping symfony from screwing up uploaded files names Flattr this

    Symfonys behaviour to rename uploaded files with a sha1-hash of the original filename and a randomnumber between 11111 and 99999 [why those numbers ?], ( done in sfValidatedFile::generateFilename ) is pretty ugly. No more seo-friendly filenames, filenames where you can actually have a clue about what's behind an url or how the creator supposed it to be named.

    Weiterlesen: Stopping symfony from screwing up uploaded files names
    Kommentare: 3
  • JQuery-based Auto-submit for checkbox and select-filters in the symfony admin generator backend

    15.08.2010 12:51
    Tags: jquery, Symfony, auto-submit, checkbox, select

    Tweet this: JQuery-based Auto-submit for checkbox and select-filters in the symfony admin generator backend Dent this: JQuery-based Auto-submit for checkbox and select-filters in the symfony admin generator backend Flattr this

    Nice and simple usability-boost for the filtering in the backend if you use it often and don't want to press the filter-button each time.
    But it too can be annoying if you often filter based on date-fields and don't have a datepicker, because selecting a range is 6 changes and each time it get's submitted.

    <script type="text/javascript">
      $(document).ready(function() {
        $('.sf_admin_filter select, .sf_admin_filter input[type="checkbox"]').attr('onchange', 'this.form.submit()');
      });
    </script>
    
    Weiterlesen: JQuery-based Auto-submit for checkbox and select-filters in the symfony admin ...
    Kommentare: 0
  • Automatic deletion of thumbnails created by sfImageTransformExtraPlugin when deleting the original image in a symfony admin generator based backend

    15.08.2010 12:34
    Tags: Symfony, images, thumbnails, sfImageTransformExtraPlugin, sfImageTransformPlugin, sfWidgetFormInputFileEditable, sfFinder, sfFilesystem

    Tweet this: Automatic deletion of thumbnails created by sfImageTransformExtraPlugin when deleting the original image in a symfony admin generator based backend Dent this: Automatic deletion of thumbnails created by sfImageTransformExtraPlugin when deleting the original image in a symfony admin generator based backend Flattr this

    Symfony offers a fast and easy way for setting up admin backends including support for image uploads. You only need to change the fields widget and validator in the Form Class and symfony handles the rest:

    /lib/Form/doctrine/%Tablename%Form.class.php
      public function configure()
      {
        $this->widgetSchema['image'] = new sfWidgetFormInputFileEditable(array(
          'label' => 'Field Name',
          'file_src' => '/uploads/images/'.$this->getObject()->getImage(),
          'is_image' => true,
          'edit_mode' => !$this->isNew(),
          'template' => '%file% %input% %delete% %delete_label%'
        ));
        
        $this->validatorSchema['image'] = new sfValidatorFile(array(
          'required'   => false,
          'mime_types' => 'web_images',
          'path'       => sfConfig::get('sf_upload_dir').'/images',
        ));
        
        // delete checkbox
        $this->validatorSchema['image_delete'] = new sfValidatorPass();
      }
    

    Combining that with the power of sfImageTransformExtraPlugin to create thumbnails of images based on profiles is really great:

    Weiterlesen: Automatic deletion of thumbnails created by sfImageTransformExtraPlugin when ...
    Kommentare: 1
  • Running phpunit in a loop and let it inform you when you broke something

    15.08.2010 10:20
    Tags: phpunit, Linux, shell, popup, sound

    Tweet this: Running phpunit in a loop and let it inform you when you broke something Dent this: Running phpunit in a loop and let it inform you when you broke something Flattr this

    When refactoring code or tests I like working until I break something. When my phpunit tests switch from green to red, I want to know it immediately without restarting the tests manually each time I change something, because that's annoying and a waste of time.
    So after thinking about running the test-suite after each save in Netbeans, which I didn't find a way to do it and for unittests which run longer than some seconds, it wouldn't probably be such a good solution if after saving some changes the testsuite will take minutes to run. So I came up with another simple solution:

    Weiterlesen: Running phpunit in a loop and let it inform you when you broke something
    Kommentare: 0
  • Truecrypt 7.0 Linux AES-NI Benchmark with i7-620M on Dell Latitude E6510

    20.07.2010 19:49
    Tags: Truecrypt, aes-ni, i7-620M, Dell, Latitude, E6510, Linux, Debian

    Tweet this: Truecrypt 7.0 Linux AES-NI Benchmark with i7-620M on Dell Latitude E6510 Dent this: Truecrypt 7.0 Linux AES-NI Benchmark with i7-620M on Dell Latitude E6510 Flattr this

    The new Truecrypt 7.0 release is almost 7 times faster compared to 6.0 on my i7-620M with AES-NI. It is some hundred mb/s faster now than dmcrypt (which runs my system-encryption on Debian Squeeze), but that is expected since truecrypt makes use of multiple cores AND aes-ni and dmcrypt only supports 1 thread per mounted device, so unless you create a RAID consisting of multiple dmcrypt-devices, you can only use 1 core.

    Another nice thing, they ported the included benchmark-tool from windows to linux. In 6.3 there was no benchmarking when running under Linux, but now it is supported.

    Truecrypt achieves between 1600 and 1700 mb/s. I ran the benchmark for 1mb, 5mb, 10mb, 50mb, 100mb and 1024mb, skipped 200mb and 500mb, because I was tooo lazy :)

    Here are some images:

    Weiterlesen: Truecrypt 7.0 Linux AES-NI Benchmark with i7-620M on Dell Latitude E6510
    Kommentare: 2
<12345678910>1/21

Letzte Kommentare

  • rama!: Hi! congratulation from Argentina for the post. I have got running MySQL Workbench from .deb's o...
  • gjerokrsteski: Habe es mal endlich geschafft das Ganze auf GitHub hoch zu laden. https://github.com/gjerokrst...
  • Dieter: Herzlichen Dank u. ein gutes erfolgreiches Neues Jahr MfG Dieter
  • Niko: Genial
  • Bernd: Hallo Benjamin, super Sache mit dem Auslesetool! Vielen Dank! Wünsche Dir einen guten Rutsch! ...

Letze Inhalte

Logging Mails send via Zend_Mail with Ze ... 19.12.2010
Creating hidden dummy files in empty dir ... 19.12.2010
Creating your own git aliases based on y ... 19.12.2010
Git, Aliases, Submodules and Symfony 19.12.2010
RuntimeException: PHP Fatal error: 'You ... 03.10.2010
Stopping symfony from screwing up upload ... 30.09.2010
Fast hack for not linking empty columns ... 30.09.2010
Stopping symfony from screwing up upload ... 18.08.2010
JQuery-based Auto-submit for checkbox an ... 15.08.2010
Automatic deletion of thumbnails created ... 15.08.2010

Feeds

  • Inhalte Feed (Alle Artikel)
  • Kommentar Feed

Statistik

  • Blogeinträge: 208
  • Kommentare: 440
  • Texte: 43
  • Tools: 11
  • Tags: 638
  • Codeschnipsel: 32
mehr Statistiken
Lizenzen:
Soweit nicht anders angegeben:
  • Codeschnipsel: New BSD license
  • Texte, Blogeinträge: CC BY-NC-SA
  • Photos / Bilder: Soweit nicht angegeben unter keine freien Lizenz!

Über den Author:

Photo Benjamin Steininger Benjamin Steininger ist Webentwickler auf der Suche nach einem neuen Job und photographiert sehr gerne. Er beschäftigt sich viel mit dem Internet, PHP, Symfony, Testing und hat einen Wunschzettel bei Amazon.
Profile: Ohloh, Github
, Coderwall

mehr Informationen über mich

Powered by

Zend Framework 1.10 / Doctrine 1.2 / ezComponents 2009.1.2 / Webalizer Extended / Piwik / Apache 2.2 / Lighttpd 1.4 / php 5.2 / mysql 5.1 / Debian / JQuery 1.4 / Syntaxhighlighter 2.1 / Blueprint CSS Framework / HTML Purifier 4 / ...
mehr Informationen zur Technik

Kontaktmöglichkeiten

  • Jabber: robo47@blub-blub.net
  • OTR: 9262263C 3024C0D5 B4EEA269 CFEDF021 D28CB980
  • Email: robo47@robo47.net
  • Skype: robo47
  • Twitter: robo47
  • Identi.ca: robo47
  • Kontaktformular