Hello, I’m Julian

Symfony3/Doctrine: Collections in Entity filtern

Mit Doctrine ist es jetzt möglich mit "Criteria" Collections direct über SQL in einer Getter-Funktion der Entity zu filtern.

namespace ...\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Criteria;
 * @ORM\Entity
class Parent {
     * @ORM\On...
Read more
Date: Fri, 09 Sep 2016 7:48:00

DIY Pool Teil 1

Wir haben uns vor einigen Jahren ein relativ großes aufblasbares Schwimmbecken zugelegt. Im Sommer haben wir uns darin praktisch jeden Tag abgekühlt. Nur leider ist es in dem Becken mit 3,5m Durchmesser und ca. 80cm Tiefe unmöglich zu schwimmen. Und am Ende der Saison hatten wir dort wo vorher da...

Read more
Date: Fri, 31 Oct 2014 10:17:00
Author: Julian Stricker
Tags: diy, pool


Nach Jahren der Vernachlässigungen ist es an der Zeit die Seite julianstricker.com neu zu starten: Neues Layout, neues System, neues CMS, neue Themen, neue Inhalte.

Neue Blogeinträge gibt’s jetzt nur mehr auf Deutsch. Inhaltlich werde ich zusätzlich zu den Themen Programmierung, PHP und Javasc...

Read more
Date: Wed, 29 Oct 2014 12:23:00
Tags: grav

How to add a "Save and List" Action Button to Symfony Admin Generator Form.

To improve the workflow sometimes it may be better to redirect the user back to the list after the Save-action. This tutorial shows how to implement this in Symfony 1.3 and 1.4

First copy the "processForm"-function from the action.class.php in your cache-directory ( /cache/dev/modules/auto[Modulen...

Read more
Date: Mon, 15 Nov 2010 12:47:00
Author: Julian Stricker

Fun with HTML5 Canvas Effects

During my work on the new AIE Ajax Image Editor, I have done some experiments with the new HTML5 features, especially the new Canvas tag. This script is basically a new implementation in JavaScript of a old Director-Movie which I have made about 10 years ago.
Simply move over the image to distort...

Read more
Date: Tue, 14 Sep 2010 9:51:00
Author: Julian Stricker

Validate size of a uploaded Image in Symfony 1.3/1.4

The sfValidatorFile has no options to check the size of a image in pixel. For that I have written a simple validator that extends the sfValidatorFile-class.

Create the file jsValidatorImage.php in your /lib directory:

    class jsValidatorImage extends sfValidatorFile
      protected funct...
Read more
Date: Thu, 24 Jun 2010 13:41:00
Author: Julian Stricker

Googles Web Fonts

Increasing the diversity of fonts on the web using the Google Font API, the Google Font Directory and the Webfont Loader.
The selection of fonts used on the Web is very small. This has changed with the new in CSS3 defined @font-face. This allows fonts to be loaded from the web, which works in all modern browsers. This mechanism requires appropriate fonts and the right to make them available on the web or to download from other sources. For this Google has created his Google Font Directory and the Google Font API.

Read more

Date: Thu, 20 May 2010 10:17:00
Author: Julian Stricker

Filter Admin-List in Symfony 1.4 + Doctrine

Some time ago I wrote an article about filtering the admin-list in Symfony 1.0 and Propel. Now in Symfony 1.4 and Doctrine the steps to do this are completely different:

First we have to change the auto-generated file in apps/[APP]/modules/[MODULE]/actions/actions.class.php and to add a function "...

Read more
Date: Wed, 31 Mar 2010 7:45:00
Author: Julian Stricker

Firefox implements new W3C File API specification

Web applications can access local files and upload multiple files.
The current fourth beta of Firefox 3.6 comes with support for the File API. The relevant W3C draft specification is from Mozilla developer Arun Ranganathan. The File API provides different objects. This includes FileList containing an array of individually responsive files. It should be integrated over an input tag in HTML 5 pages. Several files can be uploaded at once.

This allows Firefox to upload via drag and drop, so that files can be moved easily from the de… Read more

Date: Fri, 27 Nov 2009 11:31:00
Author: Julian Stricker

Workaround for Flash CS3 Bug in internationalization using Strings Panel : Error 1009

Flash CS3 has a Bug when creating multilanguage projects using the Strings-Panel with String-replacement-setting set to "Automatically at Runtime".

A Bug description can be found at http://www.kirupa.com/forum/showthread.php?t=281170

I spend a lot of time on trying to find a solution for that problem:

Assuming you have a dynamic textbox linked to a Strings-Panel-ID in Frame 1 - 5 you will receive a TypeError #1009 if the Player comes to frame 6.

Read more
Date: Thu, 25 Jun 2009 13:33:00
Author: Julian Stricker

Filter filename on fileupload and prevent execution of uploaded files

Its a good way to allways rename uploaded files using something like a MD5-hash and store the original filename in a database.
If for some reason you dont want to rename it using a hash, you should filter the filename using some code like this one:

$filename = strip_tags($_FILES["upload"]["name"]);
$filename = str_replace(array('|','<','>','"','\'',':','\','/','*','?'),'',$filename);

It's a good idea to deny the execution of all uploaded files: place a .htaccess file in your upload-directory:

RemoveHan… Read more

Date: Tue, 23 Jun 2009 8:50:00
Author: Julian Stricker

AIE AJAX Image Editor for Drupal

Today I found this great tutorial on how to integrate my AIE (Ajax Image Editor) into the Drupal imagefield module:


As expected, it seems to be pretty easy to integrate AIE into Drupal :-)

Read more
Date: Wed, 17 Jun 2009 12:29:00
Author: Julian Stricker

Symfony 1.0 Admin List: Highlight last edited entry

To highlight the last created or edited entry in a Admin-Generator-List copy the _list.php file from cache to your /apps/[APPNAME]/modules[MODULENAME]/templates directory and modify the code:

    getResults() as $mymodel): $odd = fmod(++$i, 2) ?>
      < tr c...
Read more
Date: Tue, 19 May 2009 9:48:00
Author: Julian Stricker

Symfony Sortable I18n-field in Admin-List

Works with Symfony 1.0. This Article shows how to make a I18n Field in a Symfony-Admin-List Sortable. In this example i use the "name"-field as I18n-field.

First, open the file apps/[APPNAME]/modules/[MODULENAME]/action/actions.class.php and add the function:

    protected function addSortCriter...
Read more
Date: Mon, 18 May 2009 11:50:00
Author: Julian Stricker

New version of jsThumbnailPlugin released

Today I have released version 1.1.0 of the jsThumbnailPlugin for the Symfony framework. It contains a important bugfix for Symfony 1.1 and a new feature.

I fixed a bug with the sfFileCache object: In version 1.0 the sfFileCache wants a string as $file_cache_dir parameter, but version 1.1 wants a A...

Read more
Date: Wed, 03 Dec 2008 16:37:00
Author: Julian Stricker

New great set of 24 Symfony tutorials

The Symfony team has released a new set of 24 tutorials published day-by-day between December 1st and Christmas, like the "Askeet tutorial" in 2005.

As for askeet, every day including week-ends, a new tutorial will be published. Each tutorial is meant to last about one hour, and will be the occasi...

Read more
Date: Tue, 02 Dec 2008 17:59:00
Author: Julian Stricker

New Symfony Plugin "jsThumbnailPlugin" for on-the-fly Thumbnails Creation

Today I have released my first plugin for the Symfony-Framework. The jsThumbnailPlugin creates Thumbnails on the fly using the GD library. It uses the Symfony cache system to cache the thumbnails.

Read more
Date: Tue, 04 Nov 2008 19:48:00
Author: Julian Stricker

Akoie is now AIE (Ajax-Image-Editor)!

Akoie´s new name is AIE (Ajax-Image-Editor)!

Read more
Date: Wed, 22 Oct 2008 12:21:00
Author: Julian Stricker

Listen im Admin Generator filtern

Einträge in Selectboxen einer foreignTable filtern (z.B. nach creator):

Read more
Date: Wed, 03 Sep 2008 23:51:00
Author: Julian Stricker

Akoie 0.5

New Akoie Version 0.5

Read more
Date: Fri, 22 Aug 2008 13:02:00
Blog Comments powered by Disqus.