Lets hope…
Posted by kiwinewt on 11 January, 2010This works:
order allow,deny
deny from 203.97.120.87
deny from 121.73.214.121
deny from 219.88.68.120
allow from all
Can anyone confirm it before I test tomorrow?
Technohippies are a breed of their own. They are not malicious, but only interested in the way things work. They have a broad wisdom of many different technologies. Ignorance and hatred is looked down upon by the technohippy. The technohippy embraces the environment and will do as much as they can to protect it and help it flourish. All in all, a technohippy is a philosophically-open eccentric geek.
This works:
order allow,deny
deny from 203.97.120.87
deny from 121.73.214.121
deny from 219.88.68.120
allow from all
Can anyone confirm it before I test tomorrow?
For future reference really:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Controller::loadModel(’Student’);
$students = array();
foreach ($courseStudents as $crsstd) {
$students[] = array($crsstd, $this->Student->find(’first’, array(’conditions’ => array(’Student.id’ => $crsstd[’student_id’]))));
}
function compare($x, $y) {
if ( $x[1][’Student’][’lastName’] == $y[1][’Student’][’lastName’] )
return 0;
else if ( $x[1][’Student’][’lastName’] < $y[1][’Student’][’lastName’] )
return -1;
else
return 1;
}
usort($students, ‘compare’);
Why does RoR not support multi-table inheritance? Theres no way at all (apart from an obscure plugin that noone knows how to use) to get it working without writing SQL views and such, which just gets messy.
It should not be so hard!
As many of you may have seen (If you have ever visited my blog), I have implemented a new design. It’s still based on the good old wordpress backend but now is more oriented towards the business end of things (since I will be getting business traffic pointed here.
Yeah I know, I’m only a one-man [...]
Currently working on a project that I really dont want to be doing any more on now…
So, from Procrastinators-r-us:
user = User.new(:username => “Frankie”, :password => “Fishy”, :password_confirmation => “Fishy”, :email => “frankie@fishlovers.com”, :first_name => “Frank”, :last_name => “EnStein”)
For future reference…
With the later version of Rails, you can reload your models and controllers with the following command. Be sure to recreate any instances of your models as they will still be using the old class
reload!