« first day (156 days earlier)      last day (4807 days later) » 

3:00 PM
And it weights 11 kB :)
 
@Robik is it on github?
 
Made by my fingers.
I gont know even SVN xP
 
@Robik then I dont want to see it ;)
 
Looking for Lib name, something better than Graphix?
But i can enter it there xP
Somehow....
 
@ircmaxell in php - true - in seaside (smalltalk framework based on callbacks stored in session) it would be oppossite (it is actually much more faster and DOS aware than php would be) because everything lives (and not dies after any request)
 
3:01 PM
Gordon, do you accept sf?
(Source Forge)
 
@Robik no, it's 2011
 
@KamilTomšík well, that technically doesn't make it more DOS aware. But I understand what you mean
 
@Robik Learn you some Git. It's the future (tm)
 
But could someone tell me what i need to use git?
Btw: Its GitHub COMPLETLY free?
 
@edorian <php><ini name="zend_debugger.xdebug_compatible_coverage" val="1"/></php> should add that value to ini when running tests, right?
 
3:03 PM
@Gordon SF is still a great site for linking to executables what you don't want to host yourself imho
 
@ircmaxell it does not (apache would do) but it has lesser memory footprint so it would stand more requests than classic php mvc framework which has to create everything every request
 
If i have to pay for GitHub then SF > GitHub.
 
@KamilTomšík That's a gross over simplification though. I understand where you're coming from. And I don't doubt your intent. But the words you're using are slightly off I think...
 
3:04 PM
But it is free?!
 
^^Wow is that ever dirty
 
@Robik Your lack of actually visiting github betrays you.
 
@Gordon value, not val
 
Cuz there are writen : pricing... brrr Imma scared
 
@edorian oh yeah, i actually have value in the xml. typo here.
 
3:05 PM
http://www.phpunit.de/manual/3.6/en/appendixes.configuration.html
<php>
  <includePath>.</includePath>
  <ini name="foo" value="bar"/>
 
I saw it, but are there any hidden $$$$?
 
@ircmaxell could be so, the idea is to deliver more readable and flexible sw using events

serializable closures: saw that few weeks ago - array callbacks were better bet...
 
still no coverage though :(
 
and under the <phpunit> so yeah
 
@Robik It says "Unlimited public repositories are free" right on the button you have to click to sign up.
 
3:06 PM
Haha: Why official Git is using google code?
 
@Robik no, there are no hidden costs
 
I mean Git for Win
 
@ircmaxell but as you've said it's probably less readable for you so it's subjective
 
@Robik no, there are no hidden costs!
 
@KamilTomšík Exactly
 
3:07 PM
@ircmaxell I guess that's mostly because I'd like to support true MVC one day (asynchronous truly live ui) for what asynchronous events are natural...
 
@KamilTomšík Well, good luck with doing that in a secure and performent manner...
 
Oh mu gosh, its soo complicated
 
@ircmaxell BTW - when you're mentioning security: callbacks have one big benefit - because they're stored in session using generated tokens they are automatically xsrf aware...
@ircmaxell but it's also double-edged sword (pretty and stateless urls are somewhat hardly to achieve - without additional work)
 
@KamilTomšík No they are not automatically C SRF aware. There is no such thing as automatic CSRF protection. None that actually work anyway...
eih
 
@ircmaxell just thing about that - if url is in ?action=fasd785675fads and so it is unpredictable
 
3:11 PM
What is SSH key for?
 
then it should be xsrf aware (at least in posts)
 
@KamilTomšík unpredictable != CSRF protection
 
@Gordon how to i upload a picture to posti via the web?
 
@Robik Authentication.
 
@edorian do you think it was a sign that WettenDass last Saturday was from Augsburg and sponsored by Solarworld?
 
3:11 PM
@Gordon gnaaaaa never mind
 
@ircmaxell - go on I'm curious (xsrf is about calling /users/logout - and so about predictable url or POST protocol)
 
@Gordon I didn't even know that was in augsburg :=)
 
@ircmaxell and classic xsrf protection involves generating random xsrf token which is signed and passed in url (and then checked on every request)
 
@KamilTomšík Security Through Obscurity is not Security. The only way of actually securing against CSRF is to use a one-time-token, and pass it in the form. Then you check and remove that token from the acceptable list. Other wise you're open to MITM CSRF style attacks, as well as other forms of attack
 
so if callback_id is randomly generated every request and passed and signed it should be secure
@ircmaxell it is one-time token - it will dissappear after call...
 
3:13 PM
It's not passed in the URL. That would disable CSRF protection. It's passed as a post parameter only
 
@ircmaxell it could (if it is signed with extra key)
 
@KamilTomšík No, since your callbacks are built on the first request, the token will be there the life of the session...
 
@ircmaxell they are not
 
@KamilTomšík No, since it's subject to a multitude of other attacks if you pass it in a URL
 
callbacks are created when rendering form or link or so
 
3:14 PM
@KamilTomšík That's not what you said earlier
 
Dudes, where i can find id_rsa.pub?
 
@edorian and the guy who won was a webdeveloper
 
@Gordon i lold
 
@ircmaxell ah :-) sorry for that :-)
@ircmaxell actually - they can be created whenever I want but they're persisted (and id is generated) during rendering
 
Even still. Passing a token in a URL is not safe. It must be a post parameter, or you're opening yourself to potential issues...
eih, I'm done.
 
3:16 PM
@Robik .ssh in your home folder. /users/blah/.ssh on windows, /home/blah/.ssh on *nix.\
 
@ircmaxell - hm, you're right with links - the question is how to solve this (change links for buttons or sacrifice security by using links only for fetching)
 
@KamilTomšík Use links for only fetching. pass it in as a hidden post parameter
 
@ircmaxell I'll think about that - this is not easy decision (I can hardly identify fetch actions and I would like to deliver web1.0 compatible solution - which looks like I have to listen for available javascript and then render links with $.post on them and render button in all other cases)
@ircmaxell anyway - thx for that observation
 
Well, a URL identifies a resource, not an action (either the HTTP verb or a POST parameter identifies the action)...
@edorian lol
 
3:22 PM
If i can create only open repos does that mean that they can upload there something
or only read and download?
 
@ircmaxell sure - I know http but for my current project I can sacrifice stateless nature of HTTP (and I hope I can figure this out somehow later)
 
@Robik It means they're public. No, wait. I have no idea what you're talking about. :p
 
@KamilTomšík can and should are very different concepts...
 
@ircmaxell I can and it will not result in any problems (kinda-intranet app - public but for limited number of people)
 
I hate MySQL sometimes: 21970293 user sys blah 812 Query select TRIGGER_NAME from information_schema.TRIGGERS where TRIGGER_SCHEMA = 'blah' -- Why oh why is that taking over 800 seconds?
 
3:24 PM
@James that allows some one else to add/delete/change files in repo?
 
@KamilTomšík That's no excuse for not doing this correctly...
@Robik No, only people you explicitly allow to do that can
but anybody can view any public repository (view only)
 
@ircmaxell it is - http is just medium it's not entrypoint
 
@Gordon Don't spoil it
 
@ircmaxell what are reasons for using triggers?
 
@KamilTomšík Granted, there is a difference between good and good enough, but I cringe every time I hear it's not a problem, it's for an intranet. It raises all kinds of red glags
 
3:26 PM
@ircmaxell I've written one app with them some time ago and it was one big mistake
 
@KamilTomšík Uhhh. Lots of reasons? Maintaining summary tables since MySQL doesn't support materialized views for one
 
@ircmaxell which usually occurs when developers are arguing about multiple tabs and active javascript...
 
@ircmaxell i think you should rephrase that blog post to "good and what you can get away with"
 
@Gordon didn't see the text
 
@KamilTomšík which usually occurs quite often.
@Gordon Well, that could be another post entirely
 
3:27 PM
 
@ircmaxell I had some bad moments with them (because customer were not able to grant me permissions, etc.) and those triggers has to work transactionally which result in poor performance (app locking were much better choice in next version)
 
@KamilTomšík This is a very read heavy applicaiton, so write performance is not a concern
The greatest obstacle to discovery is not ignorance, but the delusion of knowledge
 
@ircmaxell my case was write heavy...
 
Well, there's different solutions for different use-cases ;-)
 
@ircmaxell sure - I don't complain I've been just curious for proper use-cases for triggers
 
3:30 PM
yeah
 
I can find id_rsa, there is only known_hosts !
 
New blog post: Mandatory "Template Engines (Twig) vs Plain Old PHP" Post http://post.ly/1mcDn #php #shortpost #templates #twig #blog
 
Ok ive found, but there is written: copy exacly like there is written
so have i t ocopy that : -----BEGIN RSA PRIVATE KEY----- too?
 
Ctrl a, Ctrl c.
 
lol :-D
 
3:40 PM
@Robik NOOOOOOO
don't ever copy or give away your private key
 
I did but theres error: Oops! The key is invalid. It must begin with 'ssh-rsa' or 'ssh-dss'.
 
only your public one (should be id_rsa.pub)
@edorian I still dislike templating engines
 
yummy. i like ahoi forestmaster browse.
 
i have generated rsa to a txt file
oh i didnt end with .pub xP
this with .pub is correct
 
@ircmaxell I don't have strong feelings ether, i just don't like to look at pure php templates. I haven't seen any that feel readable but thats really a matter of taste
 
3:42 PM
fair enough
 
@Robik It's too late. GitHub could have kept your private key. Trust noone. Regenerate it immediately. Paranoia is the best security policy.
 
@James Agreed 100%
 
@sadmicrowave thanks :)
 
When i am trying to test all out like in point .5 in tutorial it returns:
 
@edorian the trend is to switch from templates to component builders/renderers (in order to gain more readability, flexibility and also avoiding xss)
 
3:44 PM
Permission denited (publickey)
 
@Gordon smile
 
^^
 
@KamilTomšík care to elaborate? (since i'm not sure i follow)
 
@KamilTomšík If I understood that correctly, I agree
 
@edorian RoR uses renderers (for xml/html/rss/whatever), kohana uses helpers, seaside(smalltalk fw) uses renderers/builders which also allows passing callbacks
 
3:49 PM
When i am trying to login? (ssh git@github.com) it returns Permission denied (publickey) whats wrong?
 
Don't ssh in
follow the git instructions
 
I am trying to add soem file
 
@ircmaxell it's in the guide to if the key works
 
i do
 
For me RoR and Twig look pretty much the same, what is your differentiation between templates and renderes?
 
3:50 PM
@Robik Try looking at this page help.github.com/troubleshooting-ssh
 
@edorian it is? Hrm, weird (I don't remember it)
 
@edorian, no prob
 
@KamilTomšík i assume we are having a misunderstand based on the terms used
 
@edorian templates were invented and popularized because designers could give us working layout - the problem is that it just doesn't happen (and/or we have to do some re-coding anyway at least because of security) - so it's not worth of it... (it is much more easier to get css and use html as prototype and re-code everything from scratch)
@edorian template is just string with marks - renderer is object which understand messages like input, textarea, etc. with given parameters - you can also add your own constructs like form, loginform, etc.
@edorian builder is object for creating other objects (in this case ui components) -> in this case every object will live at least until render phase (so it can co-operate with the rest of application) - $builder->user_panel() would result in creating new instance of UserPanel ui component
ui components are heavily used in asp.net, php prado fw and JSF (and all their subtechnologies like Jboss Seam)
 
Ok, for me the term "template" refers to "shit where i put html". If i've build something around that the better. Thanks for clearing that up for me
 
3:56 PM
That's why I prefer MVCL
 
and yes, i wholeheartedly agree with you. But thats not where the php community is right now as far as i'm concerned
 
have a look - I'm not sure if it will result in a tree of separate objects or if it will just do render and store callbacks like I do... but you should get the idea
 
and having something like Twig that at least gets escaping right (makes it easy) is nice to have. I've yet to see something written in php that produces ui elements.
The closest thing i can think of is Zend_From and from there to acceptable it's a long way (imho)
 
DOM gets escaping right. Need no stinking Twigs
 
@ircmaxell on the gibhub thing: help.github.com/troubleshooting-ssh
 
3:59 PM
@edorian you can get escaping done right using simple template preprocessing layer which will replace <?= xx ?> for escaped counterparts - <? echo xxx; ?> will be then leaved untouched - it is cool but it's not readable after all (as I've experienced)
 
ok
 
@KamilTomšík the seaside thing i get and there i see a difference
 
@KamilTomšík Proper escaping should be done in a context dependent manner. Blind replacement will almost never work (which again is one issue I have with templating engines)...
 
And one more thing
 
@KamilTomšík Yeah, pretty much thats what i expect a template language to encapsulate for me. Escape variables i use in the template for html context unless it tell it otherwhise (js context, raw, w/e)
 
4:00 PM
@ircmaxell that's why I've rather completely switch to renderers...
 
git add README < its ok
git commit -m 'First Commit' < not
 
@edorian there's difference - if you say template language it can perform all of these - but template systems usually does very little about this and you have to control yourself everytime you're using them
 
eih
 
helpers like <?= html::input(name, value) ?> are actually poor-man's renderers...
 
@KamilTomšík I'm not arguing against your point
@KamilTomšík yeah, that made it kinda hard to understand you at first
 
4:03 PM
@edorian I know :-) I'm not angry - I've just add more details
 
@KamilTomšík what I'm saying is that i don't see more complex renderers used in todays php
 
Oh mu god! It worked!
 
Maybe i don't know about some libs but i just havn't seen anything :)
 
What are commits?
 
@edorian they're not but I hope they will be... - I've just mentioned the trend in all programming languages used for web programming in general
 
4:05 PM
+1
 
@Robik Again, gitref.org
 
@edorian if you want more complex renderers use XSLT. all these template languages will eventually reinvent that
 
Thanks i didn;t see that one
 
@Gordon xslt can't give you widgets (self-contained sub application)
 
I just don't see that happening Gordon
 
4:08 PM
@KamilTomšík Sure it can
 
including handling request data? and integrating with the rest of php code?
 
@KamilTomšík of course it can. XSLT is a transformation language. as long as it can transform it can give you everything you want
 
While it solves the problem very solid (create xml, transform, sucess) it seems to be too much to ask from the normal webdev
 
> too much to ask from the normal webdev
this is the frigging problem
all these template engines try to solve THAT
and only that
 
Ok, if I have a file_put_contents() command that the root user on my webserver is executing when the web command comes in to the server, what would be causing it to not write the file?
 
4:09 PM
but well, it it's well encapusalted by a usable frontend i don't care
 
Gimme some GitHub project example.
 
@sadmicrowave NEVER run as root
 
@Gordon well xslt is not hard but it will result in decentralized app (which I guess wont be easily modifiable - at one place)
 
@KamilTomšík How do you figure? The app generates an XML document, and your template is XSLT. It's still flexible and quite trivially modifyable
 
@ircmaxell, I'm not, I have a user who has root permissions
 
4:11 PM
@sadmicrowave Even so, don't run it as root, unless you want to make it easier for someone to break in and reek havok
 
@sadmicrowave That's so much better. Note: this is not actually much better.
 
@ircmaxell it doesnt even have to generate an XML document. as long as the source document is XML, the output can be whatever
 
@Gordon well.. i expect a lot of convenience from a templateing system, at best it could abstract any use of html alltogether and at that point i really don't care about the backend anymore :)
 
Can someone give me a link to ANY git hub project?
 
@Gordon Well, right. But that's what I mean, the app itself generates an XML middle document, which XSLT converts to the final output
 
4:13 PM
@ircmaxell, then how will write commands work? I have to be able to write files to servers that only root has access too.
 
@ircmaxell imagine simple widget for showing ip address - you'll have to need some php code, which will generate xml and after that you can use xslt to "skin" it. if you'll decide to change algo as well as "skin" you'll have to modify xml as well as xslt -> which will probably result in "WTF is skin?" moment...
 
Thanks.
 
@KamilTomšík You're making two changes, and you don't expect to need to touch two systems? I'm confused as to the point your trying to make...
 
yeah, me too
 
@sadmicrowave Such as?
 
4:14 PM
file serves on my network
 
using one class with rendering as well as algo you would have less work (and please don't convince me that it's bad to have design in class - if I'm using ui indirection it is completely ok)
 
@sadmicrowave Why not mount them, and grant the proper user access, rather than trying to jury rig some system with root
@KamilTomšík It is bad design. You should never have logic and display code in the same place.
 
I'm not expecting that anyone will agree with me, I was always been separating design from business - not anymore...
 
@edorian XSLT can give you that convenience. All these renderers and helpers are basically nothing but custom tags.
 
Data Logic should be separated from Data Storage semantics, just like Presentation Logic should be separated from Presentation semantics.
otherwise you're tightly coupling logic to output
 
4:16 PM
@ircmaxell I'll give you simple question - If you've been an object and I've asked you to sign yourself - would you give me xml which I could then transform to actual signature?
 
define sign yourself?
 
$ircmaxxel->sign_yourself_using_pen_on_paper($pen, $paper)
I don't expect you to return me anything - I want you to do it...
and you and nobody else should know that - if you can't sign yourself using pen and paper you're not ircmaxxel ;)
 
Well, that's a bit of a silly problem
And I'd actually argue it's a break in single responsibility principle, but
Paper would be defined the the iDrawable interface. So anything that's drawable would be able to accept the interface
 
Oh my god! I DID IT
 
it's completely ok and that's the whole idea behind tell don't ask - person should be able to render itself on given renderer (and we pretend that renderer know every stuff person needs)
 
4:19 PM
Are you happy? I did it without destroying github.com :)
 
@KamilTomšík Well you expect me to make a change to paper, thats pretty much what i'm doing i guess? :)
 
@ircmaxell it IS (but very little) breaking of SRP, but we will get much more logic code
 
Before i will give line please dont laugh it my first time with GIt
 
@Robik I would have been mighty impressed if you broke github
 
4:21 PM
@edorian imagine renderer instead of paper and pen (which knows renderParagraph, renderHeadline, renderTable, etc...)
 
@KamilTomšík Well, but here's the thing, 99.9% of the time, you'd be better off implementing a iSignable interface on that object, and returning an intermediary to draw the signature
 
@ircmaxell of course you can internally use other objects which will do the work for you (so you can achieve extra SRP but in most cases it's not worth of scattered class hiearchy)
 
@KamilTomšík Well, there's the difference between good and good enough... :-D
 
And what do you think? Does it have future?
 
@Robik It looks like a thin wrapper over gd.
 
4:24 PM
Liek what?
It makes code bit cleaner
 
@ircmaxell I don't - I am an Object who can sign myself on paper (using let's say my own pen - that doesn't matter) - it's completely logic and I don't want to return anything to my callers... that's the magic behind black-box and tell dont ask
 
Something is wrong? Or do you see error - please tell me!
 
@KamilTomšík Again, you do lose flexibility and introduce tight coupling to get that. If you ever need to re-implement the presentation layer (paper in this case), you're screwed since you need to edit each and every single signer...
 
It was my first project that saw Internet :D My first public class.
 
that mario guy is annoying
17
A: [PHP] global in functions

GordonGlobals are evil This is true for the global keyword as well as everything else that reaches from a local scope to the global scope (statics, singletons, registries, constants). You do not want to use them. A function call should not have to rely on anything outside, e.g. function fn() { gl...

see last comment
 
4:27 PM
@ircmaxell you can pass adapter to new api...
 
Gordon, and what do you think?
You want to see it on GitHub, and you has.
 
@KamilTomšík Well, perhaps. But if you were using an intermediary, it would be far easier to test in the first place
@Gordon He's getting redunkulous
 
@ircmaxell again - not right - passing parameters is basically parameter-injection -> you are getting much more than loosing - you can use mocks/stubs for testing
 
@ircmaxell thanks
 
Mario is always trolling (i.e. getting on a personal level) so meh :)
It's the internet, SO is very civilized given that
 
4:33 PM
Ok, I'm really done this time
 
I love GitHub :)
 
@ircmaxell with what?
 
@edorian I've got work to do
 
Gordon feeding the trolls :P
 
@edorian yeah, but I removed the repwhoring part
I already told him that before anyways
 
4:35 PM
@ircmaxell I'm not saying that you can't code using separated ui/business - i did for a long time -> but it just bothers me to edit things in multiple places + it will result in more oo code.

anyway you can still benefit from srp using mixins...
 
all righty then
 
@KamilTomšík You miss the point if you're editing things in multiple places. Think about what you're describing, and if you designed right, you'll only edit multiple places when it actually makes sense to
 
@edorian he already accused me of attention whoring on friday
because I put the bounty on that question
 
@Gordon Yet he didn't -1. Which is quite odd
 
@James have you found any error/bad soulution/bad think?
 
4:37 PM
@ircmaxell yeah, that's why Im thinking too. If he thinks it's wrong, then just -1 me and be done with it
 
Because i want to make it public :)
 
but accusing me of attention whoring when all of the answers will get the same attention by the bounty is ridiculous
 
So let him :)
 
might as well put up his own answer and participate on the attention featured items get
 
Well, if he thinks it's that bad, answer and get the bounty himself
 
4:39 PM
he would have to be very convincing though for that
given that I get to assign the bounty
 
@Robik I only skimmed it.
 
I intend to give it to whatever is highest though (excluding mine)
 
But how you rate idea, worth public?
 
@ircmaxell there are cases when separating is appropriate - mainly in java world because compiling whole application takes dozens minutes (experienced myself :-/) - this is not true for php nor smalltalk or anything I'm going to use - when fixing design (after deploy) I would change one place (class) in one method, it is testable it is readable, it is easily understandable, so I'm not missing anything - my argument was about devel stage where everything changes often
 
@Gordon Well, considering how bad he thinks your answer is, that should be easy for him, no? :-P
 
4:41 PM
yeah
 
@Robik It didn't do much. 3/4ths of the functions just called gd directly.
 
@KamilTomšík Maintenance suffers, which is my point from soup to nuts...
 
Meh, you asked him nicely to provide an answer, everything more is just wasting time you could spend bashing fl or ko or ci
and thats at least amusing for most people
 
@James include that code is cleaner
 
@edorian if I wouldnt be able to see deleted posts I'd guess he removed his answer, like he did with his comments on friday
 
4:43 PM
@Robik For the functions that don't do anything other than call gd, the code isn't really much cleaner.
 
So what? That only means he is trolling (if you will) to the best of his abilities. No harm done there
 
@ircmaxell I'm sure we'll discuss this few months later - and if I'm wrong be sure that I can admit it...
 
It's not about wrong and right
it's different approaches
each has benefits
each has disadvantages
 
@edorian given that he apparently co-wrote a book with a number of well know phpeople I wonder why he actually thinks the answer is wrong at all
 
It's more about where your priorities are that push the balance one way or another...
 
4:44 PM
@ircmaxell agree - but those benefits are valuable in a completely different environment (java)
 
eih
 
and SO has a really low troll/content ratio so be happy about that
heh, gotta ask kore how he is in person
 
@edorian i already did ;)
 
but he.. everybody has the right to be as arrogant as he wants
 
and he doesnt know him. the various authors simply submitted their parts
 
4:46 PM
There's only 3 big trolls I can think of
Mario, Rook, and The Col
But all three can be very valuable as well, depends on the day and mood...
 
I'm pretty much a dick too when it comes to OOP
 
I'm a dick when people don't respect those answering the question (such as people who post questions like Is it possible to add 2 numbers with PHP?)
Or when people make outright wrong suggestions (especially to security related questions)
 
I'm not a dick, I have a dick (prefer composition over inheritance) ;)
 
sigh
 
lol
 
4:50 PM
@ircmaxell Wrong, it should be *sigh*.
 
double sigh
 
You have to use \* instead of *
 
double sigh across the sky. what does it mean?
 
Read the new comment on Gordon's post
 
You didn't see that coming?
It's the natural progression of things
 
4:52 PM
I did, but still sigh
 
anyway, gotta go - thx for discussion @ircmaxell, @edorian, @Gordon - it was valuable and please don't get my comments as offense - that's not point at all...
 
later
 
@KamilTomšík Have fun, no offense in any way taken. Enjoy talking to you
 
@ircmaxell @edorian he wont answer because of the "chat voting clique"
 
4:55 PM
I will not vote on anything I don't honestly think deserves it.
 
doesnt sound like he's too confident in his own answer then
 
I'm actually slightly offended that he insuinates otherwise...
 
I always like people telling me that i don't have a mind of my own and thus should agree withm them
 
Only slightly since I don't actually value his opinion...
if it was someone I respected, different story...
 
I guess after playing certain team based games SO is just to nice of a place to get offended by anthing
 
4:58 PM
lol
 
hes basically saying: "i know better but i wont answer because i'm afraid of downvotes". How chicken is that? One single upvote and he's got 5 dvs compensated.
 
Not to mention that I personally wouldn't downvote him unless he was plain wrong...
0
Q: optimizing date() and strtotime() function calls in php

user669814How can I optimize this: $enddatetime = date("YmdHis", strtotime(date("YmdHis", strtotime($session_date.' '.$session_time)) . " + ".$session_duration." minutes")); eg values: $session_date 2011-01-31 $session_time 19:30:00 $session_duration 100

^^ uhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...hhhhhhhhhhhhhhhhhhhhh
 
yeah, me too. im actually kinda disappointed no one put a different opinion yet
 
Yeah, I think they were intimidated
 
by the h1?
 
5:03 PM
No, by the +17 to a post that's opposite of their views
 
posted on March 21, 2011

Phil Sturgeon has posted a new screencast to his blog today showing you how to set up a REST controller with CodeIgniter, covering some of of the things you'll need to get up and running. I wrote up an article on NetTuts last year "Working with RESTful Services in CodeIgniter" hoping that would cover the majority of questions but with new features like API Keys, Limiting and Logging being a

 
Hrm, after that post is done, what about opening a new question on programmers.se about about it...
 
im not registered with that
i cannot be bothered with all those other sites
 
fair enough
Ok, haircut time...
 
gl
 
5:19 PM
lol. update
 
5:34 PM
posted on March 21, 2011

In a new post to his blog today Rob Allen shows you how to create compound form element handling in a Zend Framework application thanks to some custom work with Zend_Form and Zend_View extensions. A little bit of googling found this site http://codecaine.co.za/posts/compound-elements-with-zend-form which has not unfortunately disappeared, so the code in this article owes a lot of the author

 
lol, i just can't rember that rob allen == akrabat
 
And back
Still no response
sad really
 
@ircmaxell there is a response
 
I saw
but I meant answer response
 
oh my.. he did it again. he removed his comments
 
5:45 PM
yup
really counter productive
 
i mean, im all for removing comments when they are clutter and in this case they are
whatever
 
eih
Exchange two PHP variables without using a third: list($foo, $bar) = array($bar, $foo); /via @nateabele
 
from the deptartment of things you can do but make no sense
 
exactly
 
anyway, i think im gonna remove my comments too
 
5:54 PM
fair enough
 
I like the list swapping thing
it makes for good trivia
 
@edorian sure, I like it too, but do you know a practical usage?
 
Well, I can think of a practical use
but not one that i would use it for
 
@Gordon nothing that doesn't came from bad datastructures, as always :)
 
    $tmp   = (int) max($max, $min);
    $min   = (int) min($max, $min);
    $max   = $tmp;
 
5:57 PM
thingi: $startdate, $enddate
if $enddate > $startdate => swap
or rand functions with min max or something
depending on if you accept that as valid input
 
list($min, $max) = array(min($min, $max), max($min, $max));
too ugly...
 

« first day (156 days earlier)      last day (4807 days later) »