Log message #1034004

# At Username Text
# Sep 13th 2009, 13:47 GustavoRamos usually the amount of opened files in x86 systems is 1024
# Sep 13th 2009, 13:46 GustavoRamos mmm
# Sep 13th 2009, 13:46 cewi oh waht i'm doing is splitting a very large pdf in single pages, sorting them by content and then rebuilding one single file.
# Sep 13th 2009, 13:45 GustavoRamos what is it about ?
# Sep 13th 2009, 13:45 GustavoRamos but a system that opens >2000 files is not so good
# Sep 13th 2009, 13:44 GreaterCoreQuad how do i use generatetreelist from TreeBehavior? i would like to find all the descendants of a particular node
# Sep 13th 2009, 13:44 GustavoRamos mm,
# Sep 13th 2009, 13:44 cewi i agree, but unfortunately it's not my decision...
# Sep 13th 2009, 13:43 GustavoRamos think it is better to switch OS, nah? lol
# Sep 13th 2009, 13:43 cewi thank you, so i'll have to rewrite my code ;-(
# Sep 13th 2009, 13:41 GustavoRamos but at windows dunno how
# Sep 13th 2009, 13:41 GustavoRamos on linux you can specify how many files to open
# Sep 13th 2009, 13:41 GustavoRamos •cewi• that is OS fault
# Sep 13th 2009, 13:39 cewi hi everybody. don't know if it is a problem of cake(1.2.5), php, apache or the underlying OS (XP). I got he following error: "Warning: fopen(C:\xampp\htdocs\vpa4\app\tmp\cache\persistent\cake_core_core_paths) [function.fopen]: failed to open stream: Too many open files in C:\xampp\htdocs\vpa4\cake\libs\file.php on line 156". My application opens really al lot of files (>2000). Any Ideas?
# Sep 13th 2009, 13:19 Laureano Is this the right way to reconnect to the database from a child process? http://bin.cakephp.org/view/100472415
# Sep 13th 2009, 13:18 abdelm some milk with that?
# Sep 13th 2009, 13:08 abdelm Thank you ;p
# Sep 13th 2009, 13:08 ionas ACTION hands some cookies.
# Sep 13th 2009, 13:08 abdelm I'd like to have some cake, please
# Sep 13th 2009, 12:41 ionas I think its a controller job in your case
# Sep 13th 2009, 12:40 ionas though I think its a bad idea because it will allow empty passwords on user creation
# Sep 13th 2009, 12:40 ionas NoReGreT, http://bin.cakephp.org/view/1548628194
# Sep 13th 2009, 12:39 TehTreag NoReGreT: Or in the manual - http://book.cakephp.org/view/73/Retrieving-Your-Data
# Sep 13th 2009, 12:38 TehTreag NoReGreT: http://api.cakephp.org/class/model#method-Modelfind
# Sep 13th 2009, 12:38 TehTreag NoReGreT: You can get the details in the api or cookbook - find($conditions,$fields)
# Sep 13th 2009, 12:38 ionas ~bin
# Sep 13th 2009, 12:37 NoReGreT TehTreag: so find(x, y) finds x in y ?
# Sep 13th 2009, 12:37 ionas but you can do it in model space/domain too
# Sep 13th 2009, 12:37 ionas justskills, that code above was in controller space
# Sep 13th 2009, 12:37 kahwee thanks guys, i reported it here: http://code.cakephp.org/tickets/view/85
# Sep 13th 2009, 12:37 ionas i'd rather put it in beforeValidate
# Sep 13th 2009, 12:36 TehTreag justskills: See the beforeSave() here in his user model. http://tr.im/yACt
# Sep 13th 2009, 12:35 justskills ionas: in the beforeFilter of the controller?
# Sep 13th 2009, 12:35 justskills ionas: where did you put that code?
# Sep 13th 2009, 12:34 TehTreag NoReGreT: An array with the fields id and username, provided it can find a match by username, and md5 hashed password?
# Sep 13th 2009, 12:33 NoReGreT what does it return
# Sep 13th 2009, 12:33 NoReGreT what does this mean, $this->find(array('username' => $data['username'], 'password' => md5($data['password'])), array('id', 'username')); I'm lost, it's in a model
# Sep 13th 2009, 12:32 TehTreag ionas: Sure, the same way recommended in teknoid's article.
# Sep 13th 2009, 12:30 NoReGreT thanks
# Sep 13th 2009, 12:29 ionas This is how I did user registration http://github.com/ionas/sna/blob/d438d956775ed6cdbb427b0c1595741b2641c620/www/app/controllers/users_controller.php
# Sep 13th 2009, 12:29 ionas NoReGreT, why not?