Skip to content

Instantly share code, notes, and snippets.

View jmikola's full-sized avatar
💭
🌭

Jeremy Mikola jmikola

💭
🌭
View GitHub Profile
@jmikola
jmikola / transcript.txt
Created November 17, 2011 17:17
Log of #symfony-dev meeting 20111117 (all times GMT-5)
Nov 17 11:01:04 <lsmith> ok .. lets start
Nov 17 11:01:10 <lsmith> first topic: [Config] added ability to set info message to node definition: http://bit.ly/nIuAcZ
Nov 17 11:01:24 <lsmith> kbond: take it away :)
Nov 17 11:02:20 <kbond> ok, just looking at some recent activity on the pr
Nov 17 11:02:55 <kbond> looks like we will have to implement a new interface because the current one has @api set
Nov 17 11:03:20 * rooster has quit (Remote host closed the connection)
Nov 17 11:04:00 <fabpot> kbond: unfortunately, we cannot break the current API
Nov 17 11:04:04 <kbond> right
Nov 17 11:04:32 <kbond> like you say, a new interface will make it more complex - is that what we want to do?
Nov 17 11:05:31 <Stof> kbond: "more complex" == adding an instanceof check in the command
@jmikola
jmikola / SecurityLastActivityListener.php
Created November 11, 2011 21:12
Custom Symfony2 Voter for recent-activity and has-password security checks
<?php
namespace Acme\DemoBundle\Listener;
use Acme\DemoBundle\Security\Authorization\Voter;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpKernel\Log\LoggerInterface;
use Symfony\Component\Security\Core\SecurityContextInterface;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
@jmikola
jmikola / transcript.txt
Created November 3, 2011 17:09
Log of #symfony-dev meeting 20111103 (all times GMT-4)
Nov 03 12:00:08 * lsmith has changed the topic to: http://www.doodle.com/pn4r2x9xmrqd6ubn | http://symfony.com/doc/current/contributing/
Nov 03 12:00:55 <Seldaek> oh, I didn't see the new topics
Nov 03 12:01:57 <lsmith> ok lets start i guess .. jmikola|w, fabpot, johannes__, Stof, couac .. ping
Nov 03 12:02:23 <couac> yep
Nov 03 12:02:39 <jmikola|w> improving flash messages leads by a wide margin: drak
Nov 03 12:02:42 <lsmith> most popular topic this week seems to be Improve flash messages: http://bit.ly/vqnTFT
Nov 03 12:03:09 * lstrojny has quit (Quit: lstrojny)
Nov 03 12:03:22 <lsmith> drak: could you briefly explain the purpose .. then again i am not even sure if there is any big controversey at this point ..
Nov 03 12:03:37 * kriswallsmith ([email protected]) has joined #symfony-dev
Nov 03 12:03:37 * kriswallsmith has quit (Changing host)
@jmikola
jmikola / transcript.txt
Created October 6, 2011 16:24
Log of #symfony-dev meeting 20111006 (all times GMT-4)
Oct 06 11:01:12 <lsmith> ok first topic then
Oct 06 11:01:13 <lsmith> Added syntax for obtaining the original bundle: http://bit.ly/nRHuww
Oct 06 11:01:32 <lsmith> not sure if hanson is around
Oct 06 11:01:55 * IIcke has quit (Ping timeout: 258 seconds)
Oct 06 11:01:57 <lsmith> the use case is being able to references the parent (or a specific parent in a tree of parents) template
Oct 06 11:02:32 <lsmith> last i read it seems the consensus was to just focus on providing support for the top most parent (that sounds weird)
Oct 06 11:03:01 <lsmith> as for syntax it seems there are 3 proposals:
Oct 06 11:03:03 <lsmith> ..FooBarBundle::index.html.twig
Oct 06 11:03:05 <lsmith> !FooBarBundle::index.html.twig
Oct 06 11:03:11 <lsmith> ^FooBarBundle::index.html.twig
@jmikola
jmikola / MessageDigestPasswordEncoder.php
Created September 26, 2011 19:08
Custom MessageDigestPasswordEncoder class for Symfony2
<?php
namespace Application\Bundle\MainBundle\Security\Encoder;
use Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder as BaseMessageDigestPasswordEncoder;
/**
* Extends MessageDigestPasswordEncoder to support custom merging of password and salt strings.
*
* @author Jeremy Mikola <[email protected]>
@jmikola
jmikola / transcript.txt
Created September 22, 2011 20:43
Log of #symfony-dev meeting 20110922 (all times GMT-4)
Sep 22 11:01:12 <lsmith> lets start then
Sep 22 11:01:16 <lsmith> jmikola|w: weaverryan
Sep 22 11:01:27 <weaverryan> here here
Sep 22 11:01:39 <lsmith> first topic .. kbond take it away
Sep 22 11:01:40 <lsmith> ability to set info message for configuration nodes http://bit.ly/nIuAcZ
Sep 22 11:01:46 <jmikola|w> here
Sep 22 11:02:14 <kbond> ok, well what are the thoughts on that PR? good, bad, ugly?
Sep 22 11:02:18 <lsmith> kbond: just briefly explain what your PR is about, what questions there are
Sep 22 11:02:20 * avalanche123 has quit (Quit: Computer has gone to sleep.)
Sep 22 11:02:37 <lsmith> are there still open issues from your POV?
@jmikola
jmikola / common_prefix.php
Created September 22, 2011 00:15
Find the longest prefix(es) for a set of words.
#!/usr/bin/env php
<?php
/**
* This script calculates the longest prefixes for a set of words. The input is
* expected to be a list of newline-delimited strings from either STDIN or a
* file specified as the first command line parameter.
*/
call_user_func(function(){
$words = getUniqueWordsFromInput();
@jmikola
jmikola / es.sh
Created September 12, 2011 19:01 — forked from aaronshaf/es.sh
Install ElasticSearch on Ubuntu 11.04
cd ~
sudo apt-get install unzip
sudo apt-get install python-software-properties -y
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin -y
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.6.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
@jmikola
jmikola / Parameter.php
Created August 3, 2011 18:53
[DDC-1317] @column(unique=true) is not semantically equivalent to @UniqueConstraint and yields invalid SQL for table create statements
<?php
use Doctrine\ORM\Mapping as ORM;
/** @ORM\Entity */
class Parameter
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
@jmikola
jmikola / FooCommand.php
Created June 9, 2011 16:00
Catching SIGINT to cleanup from a MongoDB mapReduce command
<?php
namespace OpenSky\Bundle\MainBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class FooCommand extends Command