| m u s h i n |mu-shin.ca

 
December 21, 2010

PHP Magic faster than simply setting the class attribute?

Tags: — Marc Trudel-Bélisle @ 2:30 AM

I don’t get this… and I guess it doesn’t matter that much, but if someone has an explanation, let me know

[root@vm-202-167-238-17 ~]# cat test.php; for d in A B C; do echo "——"; ./test.php $d; done;
#!/usr/bin/php
<?php

$className = $argv[1];

class A

{

public function __get($a)

{

return 5;

}

}

class B

{

public $a = 5;

}

class C

{

public function __get($a)

{

$this->a = 5;

return 5;

}

}

$a = [...]

 
July 1, 2010

Meanwhile, in Japan… Ka-Boom!

Tags: , , , , — Marc Trudel-Bélisle @ 1:33 AM

Yes, I have not been writing a lot. Very sorry about this… I have been so busy lately.
Here is the reason: http://www.micky2be.com/4111/sekai-camera-kaboom

We have been developing the world first social augmented reality game. Micky, a collegue at Wizcorp, has published on his blog a great presentation about Ka-Boom! – a real-world plant-and-defuse bomb game, available through [...]

 
November 27, 2009

Kevin Rose: Digg,1 000 000+ User sites and The Broken

Tags: , — Marc Trudel-Bélisle @ 11:29 AM

Do you know Kevin Rose? Most people actually know him as the founder of Digg. He has done a great presentation on how to get a site to a million+ users. Great presentation, everyone which wants to start a web business must watch this.

Link: http://carsonified.com/blog/web-apps/9-ways-to-take-your-site-from-one-to-one-million-users/
However, I used to know him because of this shows back [...]

 
October 30, 2009

User Management System Architechture

Marc Trudel-Bélisle @ 1:42 PM

Here is a good diagram, which I found while doing some research on the Catalyst Perl Framework :

Note the red-colored squares after user, which represent its roles. Basically, a role could be a way to view a certain data set with certain privileges. We sort of see that in certain DBMS system, but I think [...]

 
July 2, 2009

CodeIgniter standard model

Tags: , , — Marc Trudel-Bélisle @ 1:14 AM

I have been working with CodeIgniter for a while, for a personal project of mine. Here is the current model all my other model are extending – its a nice way to wrap up the basic standard ways of making certain operations for all models. Following are some notes concerning that code.

class M_core extends Model [...]

Powered by WordPress