Profile cover photo
Profile photo
ferdinand Tan
About
ferdinand's posts

Post has attachment
my way
现在,最后的日子近了
在我面对最后的落幕时,
朋友,我想清楚的告诉你,
我的故事, 至少我确定的那一部分。

我的一生是充实的
我走过了每一条道路
不仅仅这样,甚至远远超过这些,
我用自己的方式走过了这些路

遗憾,我有
可要说起来,实在少的不值一提
我做了自己应该做的
而且毫无畏惧的承担后果

我认真地规划每一段旅程
以及在路旁的每一小步
不仅仅这样,不仅仅这样
我始终用我自己的方式

是的,有些时候,你知道
我咬住的远远超过了我能够吃下去的
即使在这个时候,这个充满迷茫的时候,
我也会咬碎他们,然后再狠狠...

Post has attachment

Post has attachment
mac install intl
如果你用  brew install icu4c 安装了icu,然后你希望安装 $ sudo pecl update - channels $ sudo pecl install intl 你会有这样的错误: configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works. 因为icu的位置不在/usr/local, 它被安装在...

Post has attachment
for composer install in env prod.
cause comoser.phar use env=dev as default. so :

"export SYMFONY_ENV=prod && composer install"

Post has attachment

Post has attachment
css margin with negative value
if you want to use a negative value for margin top, you need set the previous block: overflow: auto (or hidden, i'm not sure) to make sure the margin works.

Post has attachment
autohide place holder
by default the placeholder does not disappear when the field is on focus, until you start typing. Here’s how you can change this, if you need so: input:focus::-webkit-input-placeholder { color:transparent; }
input:focus:-moz-placeholder { color:transparent; }

Post has attachment
the ondelete=cascade and cascad={ "remove"}
well, write it down for remind. example: class A{
/**
*
* @var ArrayCollection
* @ORM\OneToMany(targetEntity="Jpo", mappedBy="institute", cascade={"persist","remove"},orphanRemoval=true)
* @ORM\OrderBy({"id" = "ASC"})
*/
pro...

Post has attachment
a severe bug for doctrine : fetch="EXTRA_LAZY"
If you set some OneToMany relationship with fetch="EXTRA_LAZY", you will earn the same effect as orphanRemoval=true. This is really ridiculous.

Post has attachment
great
Wait while more posts are being loaded