Recent Activity

2015/06/01 11:35 euron just want to know what is the problem
2015/06/01 11:35 euron anything I can do to make it happen
2015/06/01 11:35 euron been reading around and googling around I still do not get any answers
2015/06/01 11:36 euron I have two options
2015/06/01 11:36 odingbeard mail() uses sendmail
2015/06/01 11:36 odingbeard and is generally regarded by any competent person running and screaming
2015/06/01 11:36 euron firstly, I got an idea from stackoverflow saying it could be that my php.ini has no sendpath
2015/06/01 11:36 euron secondly, I got an idea that I need to install sendmail
2015/06/01 11:37 euron which of these two options is most like to solve my problem
2015/06/01 11:37 odingbeard a step up from that is using a smtp wrapper like phpmailer/swiftmailer
2015/06/01 11:37 odingbeard and either have a smtp server set up on your server
2015/06/01 11:37 odingbeard or using an external one (E.G. mandrill, google)
2015/06/01 11:39 odingbeard then there are api based services like mandrill, (google?), mailchimp
2015/06/01 11:39 odingbeard where you just send in an array/json with preset keys
2015/06/01 11:39 odingbeard I find the latter to be by far the easiest
2015/06/01 11:40 euron ok
2015/06/01 11:40 euron thanks
2015/06/01 11:52 ase_wk1 Codingbeard: mail() uses the sendmail binary :) ....which can be postfix or exim on a sane distro...and while sendmail does make me go running, postfix is pretty nice
2015/06/01 11:53 odingbeard yeh
2015/06/01 11:53 ase_wk1 well documented and easy to configure and because it queues it will still work offline
2015/06/01 11:53 odingbeard I use postfix/dovecot for one of my projects
2015/06/01 11:53 ase_wk1 so i would argue that mail is a reasonable choice
2015/06/01 11:53 odingbeard though I still use mandrill for outbound (it causes less emails to go to junk)
2015/06/01 11:53 odingbeard I just use postfix to smtp relay
2015/06/01 11:54 ase_wk1 yeh that's how i would use one of those services also
2015/06/01 11:54 ase_wk1 which still involves configuring an MTA locally.
2015/06/02 03:22 puy767 If mails are going to junk, the server and DNS rules are configured improperly.
2015/06/02 03:23 puy767 I fired up a mail server two weeks ago and not one single message has gone to junk.
2015/06/02 05:13 yxep :D
2015/06/02 06:24 odingbeard ACTION throws a potato at zyxep
2015/06/02 06:25 yxep thx
2015/06/02 06:25 yxep ACTION is getting frustrated about Docker
2015/06/02 06:26 odingbeard sounds fun
2015/06/02 06:26 odingbeard just got back from my first ride :3
2015/06/02 06:26 odingbeard http://i.imgur.com/AH9lWGo.jpg
2015/06/02 06:26 odingbeard ain't it pretty
2015/06/02 06:27 yxep :D
2015/06/02 06:27 yxep meh
2015/06/02 06:27 yxep :P
2015/06/02 06:27 odingbeard heh
2015/06/02 06:27 odingbeard it's powered by potatoes
2015/06/02 06:27 yxep this is pretty: http://i.dailymail.co.uk/i/pix/2012/10/17/article-2219188-158CE597000005DC-42_964x507.jpg :D
2015/06/02 06:34 odingbeard sweet lawdy jesus
2015/06/02 06:35 yxep google server center :P well a part of it
2015/06/02 04:02 yxep mom ?
2015/06/02 04:02 yxep ACTION slaps Codingbeard with a fish
2015/06/02 04:03 yxep :D
2015/06/02 04:03 yxep 'n chips
2015/06/02 04:03 odingbeard :'c
2015/06/02 04:03 yxep wazzup
2015/06/02 04:04 odingbeard aww yiss
2015/06/02 04:04 yxep ACTION has installed jira and stash :D
2015/06/02 04:06 yxep welcome stecman
2015/06/02 04:42 yxep damn i love it already
2015/06/03 02:31 t9 Ne pansar jag glömde bara bort att hexchat inte dockar till taskbaren när man kryssar ner det :D
2015/06/03 06:12 yxep omg Codingbeard i love my new jira & stash setup, i just finished it today
2015/06/03 06:12 yxep with dns and a nginx proxy infront
2015/06/03 07:07 odingbeard nice!
2015/06/03 07:08 odingbeard oh, zyxep
2015/06/03 07:08 odingbeard tomorrow morning, interview for a place that uses phalcon \o/
2015/06/03 10:44 yxep Codingbeard, awesome
2015/06/03 01:15 yxep Codingbeard, how much do you enjoy music
2015/06/04 02:46 lkana1 Hi
2015/06/04 02:47 lkana1 They are someone of the zephir team here ?
2015/06/04 03:37 yxep Alkana1, not core devs no
2015/06/04 04:42 odingbeard eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
2015/06/04 04:42 odingbeard Got the phalcon job!
2015/06/04 04:42 odingbeard I start next week :3
2015/06/04 04:43 yxep awesome
2015/06/04 04:43 yxep congrats man
2015/06/04 04:43 yxep where is it at ?
2015/06/04 04:43 odingbeard http://www.justdevelop.it/
2015/06/04 04:44 odingbeard they're currently on 1.3.4, but all of the dev boxes are running 2.0 :D
2015/06/04 04:44 yxep oh they have multiple companies
2015/06/04 04:44 odingbeard with a view to upgrade everything to 2.0
2015/06/04 04:44 yxep awesome :D
2015/06/04 04:45 yxep do they need a sys adm ? ;)
2015/06/04 04:45 ivakic congrats =)
2015/06/04 04:46 yxep and i got my new keyboard today :D
2015/06/04 04:46 yxep have to get used to it
2015/06/04 04:47 ivakic mechanical one?
2015/06/04 04:47 yxep yes
2015/06/04 04:47 yxep corsair k95 rgb
2015/06/04 04:47 yxep cherry mx brown switches
2015/06/04 04:47 ivakic nice!
2015/06/04 04:47 yxep ya
2015/06/04 04:47 yxep expensive though
2015/06/04 04:48 yxep let's celebrate https://www.youtube.com/watch?v=wFWDGTVYqE8
2015/06/04 04:48 ivakic woop woop
2015/06/04 04:49 yxep :D
2015/06/04 04:49 ivakic we're just migrating our products to phalcon 2, all new ones are being done on 2.0, I'm happy =)
2015/06/04 04:49 yxep sweet :)
2015/06/04 04:49 yxep i'm coding my new project in phalcon too
2015/06/04 04:49 yxep i did setup jira & stash from atlassian yesterday :D to have control over my project
2015/06/04 04:50 ivakic yup, just set up an app in one week, basic crm in phalcon 2, it's supersonic :D
2015/06/04 04:50 yxep :P
2015/06/04 04:50 ivakic coupled with elastic search
2015/06/04 04:51 ivakic our client dropped his jaw when we demostrated full text search
2015/06/04 04:51 yxep nice
2015/06/04 04:51 yxep :D
2015/06/04 04:51 yxep i have to embed elastic search to my project too
2015/06/04 04:51 ivakic ruflin elastica
2015/06/04 04:51 ivakic recommendation
2015/06/04 04:52 yxep ruflin elastica ?
2015/06/04 04:52 ivakic offers plain simple api to elastisearch
2015/06/04 04:52 ivakic https://github.com/ruflin/Elastica
2015/06/04 04:54 yxep https://www.youtube.com/watch?v=8NjbGr2nk2c hf
2015/06/04 04:55 ivakic good theme song for phalcon2 :D
2015/06/04 04:55 yxep oh yes
2015/06/04 04:56 ivakic and motivational video :D
2015/06/04 04:56 yxep god damn my workout today was rough..
2015/06/04 04:56 yxep always :D
2015/06/04 04:56 yxep 5 deadlift every minute in 12 min :S
2015/06/04 04:56 ivakic oh
2015/06/04 04:57 yxep with 80kg/176 lbs
2015/06/04 04:57 yxep and that is only 1 part of the workout lol
2015/06/04 04:57 ivakic whenever I want to excercise I remember there is a new feature in incubator that I haven't tried :P
2015/06/04 04:57 yxep lol
2015/06/04 04:58 yxep https://www.youtube.com/watch?v=5Ogx-5yV-Ew another classic :D
2015/06/04 04:59 ivakic well..I'm off to lunch =) ttyl
2015/06/04 05:00 yxep :P
2015/06/04 05:07 yxep Codingbeard, now it's time to listen to https://www.youtube.com/watch?v=btPJPFnesV4 :D
2015/06/04 05:11 yxep and then https://www.youtube.com/watch?v=04854XqcfCY :D
2015/06/04 05:13 odingbeard \o/
2015/06/04 05:14 yxep :D
2015/06/04 07:34 hoenixSTF hey guys, I have sort of an issue, I have a controller with initialize() but it does not get execute when the action is called directly.
2015/06/04 07:35 odingbeard hmm
2015/06/04 07:35 odingbeard it's called somewhere by phalcon's bootstrap
2015/06/04 07:36 hoenixSTF ok the issue is this I have the session->has("auth") on initialize, and if it does not have it should not execute any action on that controller...
2015/06/04 07:37 hoenixSTF it works on the controller but not if it has contoller/action
2015/06/04 07:37 odingbeard I would suggest adding a private variable to the controller $initialized = false; and have initialize set it to true, then a isInitialized() function which checks this. Then put it at the beginning of each function?
2015/06/04 07:38 hoenixSTF A bit too much work for a simple thing?
2015/06/04 07:38 odingbeard well it's only simple because phalcon is doing all that behind the scenes
2015/06/04 07:39 odingbeard if you want to E.G. $controller = new ListController(); $controller->someAction();
2015/06/04 07:39 ivakic do you have some security plugin ? beforeDispatch may perform some redirect, acl ?
2015/06/04 07:39 odingbeard then you'll have to do what phalcon does
2015/06/04 07:39 ivakic in any other case initialize should trigger for any of the actions
2015/06/04 07:39 hoenixSTF I know that, my question is why isnt the initialize executed before the action?
2015/06/04 07:40 odingbeard oh, you're accessing it normally?
2015/06/04 07:40 hoenixSTF yes I guess I am
2015/06/04 07:40 odingbeard Hmm, in which case it should work fine
2015/06/04 07:40 hoenixSTF localhost/controller/action
2015/06/04 07:40 ivakic as far as i know it is triggered
2015/06/04 07:40 lkana1 Are you custom the router ?
2015/06/04 07:40 odingbeard but I'm not sure if initialize can stop the propagation of a dispatch
2015/06/04 07:41 ivakic well..it should if you've not done something wrong
2015/06/04 07:41 hoenixSTF no custom router
2015/06/04 07:41 ivakic acl?
2015/06/04 07:41 hoenixSTF nop
2015/06/04 07:41 ivakic beforeDispatch event listener?
2015/06/04 07:41 hoenixSTF just if the session does not have a var redirect
2015/06/04 07:42 hoenixSTF nop I dont have that...
2015/06/04 07:42 ivakic hm
2015/06/04 07:42 lkana1 Are you extends the controller with the initialize function ?
2015/06/04 07:43 hoenixSTF $this->response->redirect("auth/index");
2015/06/04 07:43 hoenixSTF if(!$this->session->has("auth")){
2015/06/04 07:43 hoenixSTF {
2015/06/04 07:43 hoenixSTF public function initialize()
2015/06/04 07:43 hoenixSTF {
2015/06/04 07:43 hoenixSTF class AssiduidadesController extends Phalcon\Mvc\Controller
2015/06/04 07:43 hoenixSTF $this->view->setTemplateBefore('index');
2015/06/04 07:43 hoenixSTF }
2015/06/04 07:43 hoenixSTF }
2015/06/04 07:43 hoenixSTF $this->view->setVar('page','MapaAssiduidade');
2015/06/04 07:43 ivakic initialize can't stop propagation
2015/06/04 07:43 lkana1 ok
2015/06/04 07:43 ivakic http://docs.phalconphp.com/en/latest/reference/dispatching.html
2015/06/04 07:43 odingbeard ^ as I suspected
2015/06/04 07:43 ivakic dispatch loop events
2015/06/04 07:43 ivakic paragrapho
2015/06/04 07:44 hoenixSTF what???
2015/06/04 07:44 ivakic you should use beforeDispatch to check for these things
2015/06/04 07:44 lkana1 a "return false" in event functions ?
2015/06/04 07:44 hoenixSTF I dont get it sorry....
2015/06/04 07:44 ivakic initialize cannot perform any operations that control the loop
2015/06/04 07:44 ivakic so you cannot do "redirect" for example
2015/06/04 07:44 ivakic by "loop" I mean dispatch loop
2015/06/04 07:44 odingbeard even if the redirect works, it will still execute the code in the action
2015/06/04 07:44 ivakic so checking auth won't basically do anything
2015/06/04 07:45 ivakic correct Codingbeard ! =)
2015/06/04 07:45 lkana1 oh, yes I see
2015/06/04 07:45 ivakic since redirect has to be stopped
2015/06/04 07:45 ivakic or return false after it
2015/06/04 07:45 odingbeard you could do if !auth { header('location: etc/etc'); die(); }
2015/06/04 07:45 ivakic lol
2015/06/04 07:45 odingbeard but why hack it when there are nice events
2015/06/04 07:45 ivakic hack my btch up :P
2015/06/04 07:46 hoenixSTF I can return false from initialize???
2015/06/04 07:46 lkana1 no, the result of initialize is not interpreted
2015/06/04 07:46 lkana1 use beforeExecuteRoute
2015/06/04 07:46 hoenixSTF so I have to either use acl's on index or ....????
2015/06/04 07:47 lkana1 {
2015/06/04 07:47 lkana1 public function beforeExecuteRoute($dispatcher)
2015/06/04 07:47 lkana1 return true;
2015/06/04 07:47 lkana1 }
2015/06/04 07:47 lkana1 return false;
2015/06/04 07:47 lkana1 $this->response->redirect("auth/index");
2015/06/04 07:47 lkana1 if(!$this->session->has("auth")){
2015/06/04 07:47 lkana1 }
2015/06/04 07:47 hoenixSTF Alkana1: but that way it will work for every controller??
2015/06/04 07:47 odingbeard https://github.com/CodingBeard/phalconskeleton/blob/master/app/plugins/CodingBeard/Acl.php
2015/06/04 07:48 odingbeard https://github.com/CodingBeard/phalconskeleton/blob/master/app/config/services.php#L69
2015/06/04 07:48 lkana1 create a ControllerBase and all your others must extends this one..
2015/06/04 07:48 ivakic something like https://gist.github.com/ivan-ivakic/5d6ec603ae51076cfaa0
2015/06/04 07:48 odingbeard just create a class with your beforeExecuteRoute function, add it to your dispatcher, and you can set custom rules to allow or deny people access to controllers/actions
2015/06/04 07:49 lkana1 agree it will be better
2015/06/04 07:49 odingbeard but if you /only/ ever want to restrict access to that one controller, I believe Alkana1's solution will work
2015/06/04 07:49 ivakic yup, anything is good =)
2015/06/04 07:49 lkana1 your choice :)
2015/06/04 07:49 odingbeard you could also make use of the annotations system
2015/06/04 07:50 odingbeard which is pretty cool
2015/06/04 07:50 hoenixSTF ok thanks guys, i have to bury my head in it
2015/06/04 07:50 lkana1 :D
2015/06/04 07:50 hoenixSTF I really dont like anotations, makes me think about doctrine
2015/06/04 07:50 odingbeard I haven't used it personally, but it's shiny
2015/06/04 07:51 ivakic learn the dispatch loop, it's required :)
2015/06/04 07:51 hoenixSTF ACTION yellss "Stay Away from the light"
2015/06/04 07:51 hoenixSTF iivakic: yes i have to
2015/06/04 07:51 hoenixSTF thanks a lot guys
2015/06/04 07:51 hoenixSTF sorry for barging in like this
2015/06/04 07:51 odingbeard no problem
2015/06/04 07:52 ivakic np, good luck!
2015/06/04 08:47 odingbeard oh, zyxep
2015/06/04 08:47 odingbeard they use phpstorm there \o/
2015/06/04 08:47 odingbeard and I can use my idea licence
2015/06/04 08:58 yanBrooks Chiming in here Codingbeard - annotations are freaking rad. I wish I could do the same thing in golang, they've made life pretty darned easy
2015/06/04 08:58 yanBrooks Best feature of phalcon, I think. :D
2015/06/04 10:35 hoenixSTF ok I got to work with dispacher in a simple manner for now, going to implement acl or rbac in few weeks.
2015/06/04 10:36 hoenixSTF thanks again guys :)
2015/06/04 10:36 odingbeard Not a problem :3
2015/06/04 10:37 odingbeard One thing you have to be aware of when adding handlers to the dispatches event system is that adding them in different orders can lead to unexpected results
2015/06/04 10:39 odingbeard I can't pin down exactly what the cause is (or, if I have done, I've forgotten) but just make sure to test any acl thoroughly
2015/06/04 10:45 hoenixSTF sure, if adding handlers is like adding to an array then its top->down execution it's natural to get unexpected results, you have to normaly pay attention and debug a lot
2015/06/04 02:40 erend anyone know if there is a book to learn this framework?
2015/06/04 02:42 odingbeard not that's comprehensive
2015/06/04 02:43 odingbeard you're best to read through the docs, try to hack the examples to your needs
2015/06/04 02:43 odingbeard and just get your teeth stuck in
2015/06/04 02:43 erend I've never used a framework before...but the poll application in 15 minutes is amazing to me
2015/06/04 02:44 odingbeard yeh, phalcon is pretty damn powerful
2015/06/04 02:44 erend looked at a few other frameworks but just too seem bulky for what i would need something for
2015/06/04 02:44 odingbeard but it can be daunting to a newcomer if they haven't worked with the mvc paradigm before
2015/06/04 02:45 odingbeard if you get stuck with anything, just leave a question in here
2015/06/04 02:45 erend yea thats what i definitely feel like
2015/06/04 02:45 odingbeard and someone will get around to it eventually
2015/06/04 02:46 odingbeard (it can take a while due to afk/lack of noticing)
2015/06/04 03:09 yxep mom ?
2015/06/04 03:09 odingbeard hey zyxep
2015/06/04 03:10 yxep hey
2015/06/04 03:10 yxep https://www.youtube.com/watch?v=ZyHbRrvXxl4 LOL thats epic
2015/06/04 03:10 yxep 32 sec long