« first day (1707 days earlier)      last day (3241 days later) » 

11:00 AM
I didn't bother to watch it to the end, it is about as bad as anything that Hovind person might say, whoever he is
 
@NikiC I'm kinda sorry for inflicting that on you
 
@salathe done?
 
@Jimbo every time. I clearly have some sort of blind spot for it.
 
wtf...a friend just got a shared hosting defaulting to PHP 4.4...
 
Ow
I read 5.4 and was like "sure"
Then I reread
 
11:05 AM
@kelunik ...that still exists?
 
never recommend CPU for a gaming PC before making sure what it actually contains: blogs-images.forbes.com/davealtavilla/files/2015/01/…
 
> PHP 4.4.9 (cgi-fcgi) (built: Jan 14 2014 12:10:11)
 
@kelunik burn it with fire. then use dd to erase the server's HDDs.
 
@Amelia quick! @Amelia is using tabs instead of spaces. Grab your pitchforks!!
 
@Gordon note the date on that file :)
 
11:08 AM
Once in league with the devil, always in league with the devil
 
I've learned the error of my ways :(
 
that's what all the witches say when they are caught
 
:c
@Gordon Also, I've learned to commit the lockfile for composer and test builds are orders of magnitude faster; does that redeem anything? :p
 
@Amelia deceptions and shenanigans
 
@Gordon insinuations and lies!
 
11:13 AM
> PHP 4.3.10 (cli) (built: Jan 20 2005 09:40:04)
 
@Amelia you deny to be a witch? that makes you a witch!
 
@tereško huh, wasn't aware graphics takes up so much nowadays
 
Never try and out-shit me on PHP versions
 
I'm horrified how many there are.
 
11:14 AM
@NikiC it varies from chip to chip
 
@SergeyTelshevsky every single one of those affected deserves it, to be fair :)
 
@Amelia partly true, tutorials they read should've mentioned this. You can't know what you haven't been told
 
Someone should port the Malleus Maleficarum to be about software developers
 
@DaveRandom Well, it seems like they have php5 = PHP 5.2, php6 = PHP 5.4 and php5.5 = PHP 5.5... ^^
 
@kelunik wut
php6 = PHP 5.4, that's even better than PHP "7"
 
11:18 AM
@Gordon deal
 
@FlorianMargaine No, I was agreeing with @Sherif's suggestion
 
@salathe It's a common thing in china to repeat something someone has said in full when agreeing with them (which is spammy as all heck), and on a game i helped out in we had to make the chat engine automatically flag that as spam because it got so bad
 
@kelunik lol @ php6
@Amelia It's a common thing in china to repeat something someone has said in full when agreeing with them (which is spammy as all heck), and on a game i helped out in we had to make the chat engine automatically flag that as spam because it got so bad
me so funny
 
@DaveRandom pfft
 
I'm now sitting here wondering if that was lacist
 
11:29 AM
Also, getting game servers to work through the great firewall of china is a royal god damned pain in the ass
 
TLS All The Things!
 
@DaveRandom doesn't work.
You need to bounce traffic via SSH on unblocked ports on routes that china can't block because big corporations are using them :p
Also, PSA for those who havent ever touched their sshd config: use this as a base gist.github.com/ameliaikeda/e760f3a44e0448d56983
I'm pretty sure the second an IP outside of china is pinged by someone inside china, it's immediately investigated :/
 
@DaveRandom me so funny
 
@DaveRandom I like round numbers
 
Randall Munroe misses an xkcd update. Riots ensue.
@SammyK E_NOT_FRIDAY_LINK
huh local UI fail
 
11:45 AM
@SergeyTelshevsky so basically you like 2, 3, 6, 8, 9 and 0 but not 1, 4, 5 and 7?
 
@Gordon translated incorrectly :(
@Gordon to round
like in round()
 
Apparently you like to ceil()
 
maybe
well in this case it's true
 
@Gordon At least the prime numbers are reasonably evenly distributed
 
congratulations on your half way to t-shirt :)
 
11:49 AM
Serial upvotes will be reverted...
 
I upvoted only those I stumbled upon and not too many
 
Well thanks for the sentiment but it's really not necessary :-)
Also, I thought it was 200k for the T-shirt etc?
Or did they change it? /cc Uncle @Gordon
 
125
Q: What do I get with 100k reputation?

Daniel A. WhiteWhat do I get once I hit 100,000 reputation? I'm getting close. I remember Telerik was handing out licenses at 10,000.

Jeff Atwood on September 01, 2010

Have you ever wondered what happens when you reach 200,000 reputation?

Just ask Jon Skeet.

Apparently, what happens is … you get a painting of unicorns, signed by us, dedicated to you.

Estimated value? Priceless!

Joel and I actually sat down with Mr. Skeet himself to record Stack Overflow podcast #72 during the London leg of DevDays — in the very Google offices pictured here.

Although we sometimes joke that Stack Overflow was accidentally constructed as the ultimate Jon Skeet honeypot, I’d be remiss if I didn’t mention that Jon has a long history of answering people’s  …

 
such an epic bullshit :D
 
I don't think we still hand out paintings
 
11:53 AM
I wonder what he'll get on 1mil rep
 
posted on June 19, 2015 by kbironneau

/* by alb404 */

10
 
@AlmaDo I got some questions
 
@Feeds holy shit
@Feeds See also: merging the VB developer's code into anything
I'd also like to know if that's staged or if they actually burned their entire apartment block down.
 
@Feeds one should not merge feature branch with master (:
 
@AlmaDo true, but it could have been code the intern force-pushed to develop
 
12:16 PM
@AlmaDo why?
you mean it should be rebased instead?
 
@NikiC the idea is feature -> develop -> master
(in the master-is-always-stable setup/git flow workflow)
 
weird workflow
 
@NikiC mostly used for shipping products since develop is what everyone works off of; you might need multiple features before you go live with them
For libraries, just tag stable releases :p
 
As said, weird workflow
If you have stable branches, why not ... branch them?
 
I'm using it right now; develop is the staging server, master is live (we have push-to-deploy set up with only certain people having access to push master)
 
ouch
 
@Gordon Depending on the feature size I would totally feature branch
 
I mean. I would go: feature branches -> develop -> staging (aka release branch) - QA -> master
 
s/would/
 
so only release branch goes to master
@Gordon merge feature branches into develop on a daily basis as a rule will save Kenny
 
12:23 PM
@Gordon feature-branching and rebasing against a branch with pull requests is actually how most open source projects work, technically
the feature branch is just in another repo.
 
@PeeHaa Y U NO BBA?
@Amelia yes, for open source I see the value. for a single team working on the same codebase, I find trunk based development so much more convenient.
 
well, we have 9 teams though..
 
@PeeHaa interesting link
@AlmaDo s/single team/single company
 
ok, I still disagree
but nm
 
12:30 PM
technically I just make a branch for a change because we're all working on different things.
we just prefix branches with our usernames, etc. amelia/upgrade-framework-version, etc
 
we are currently pushing everything to master and hide unfinished work with feature toggles. it took some effort to get there, but it saved hours of merge conflict fixing for us.
 
Isn't that really hard to keep track of "feature toggles"?
 
yes, same question
 
Oh, my first task at the company was updating every single view in the application (>1k files)
 
In my experience it only got in the way at some point
 
12:33 PM
Merging that in caused the most merge conflicts i have ever seen in my life
I used a script to update them, because I'm lazy, and edited about 30 that didnt want to obey 20+ successive regexes
 
@PeeHaa only if you want to also use them for shadow releases and a/b testing. at it's simplest a feature toggle is just an if/else that decides which branch to execute.
here is some slides from my presentation last year about the topic: de.slideshare.net/go_oh/trunk-based-development-36406599
 
@Gordon Yeah but don't they tend to stay in the project even though sales decided something else should be implemented instead?
 
@PeeHaa i guess that depends on your sales dept
 
Aren't they basically all chasing that new shining thing they read somewhere on the web? :)
 
@Gordon Disagree. The problem comes when not adequately breaking down features into small enough components to keep feature branches short-lived.
At least in the case of a single dev, team feature branches can be more troublesome
 
12:39 PM
@DaveRandom yes. branches are not a problem in itself. the time until they are merged is the problem. but if you merge frequently, you can just as well not use a branch in the first place and toggle away
using feature branches is basically solving a programming problem inside your vcs
 
@Gordon I don't like this model because it assumes that all commits are good, and that one never needs to rebase after a push. That just doesn't work in practice in my experience.
brb, IT support call
 
@DaveRandom in theory yes. in practise you can be more pragmatic and say it's fine as long as every push is fine. you can have your CI tag all successfully build commits then.
and we are not even doing that
 
@DaveRandom but if you wanna use feature branches, use feature branches. im not saying they are bad. if they work for you they work for you. I am just saying that we got better results with not using them.
which is what HOLD in the thoughtworks radar basically means as well.
 
Also, I'm getting increasingly more annoyed that Bamboo does not allow you to store build steps in code
Who thought that CI servers should build stuff based on a config that isnt even visible to half the team?
 
12:52 PM
@Gordon I would probably have a different view if I worked in a larger dev team. I can see how it might get difficult with many contributors. That said, it does seem to work reasonably well in php-src so... idk. But yeh, CI certainly goes a long way toward resolving the "assuming every commit is good" issue - I'd feel uncomfortable if I couldn't rebase in the middle of a feature dev cycle though. TL;DR: YMMV :-)
 
@DaveRandom fair enough
 
@DaveRandom Wouldn't "assuming every commit is good" require pre-commit review and CI?
At which point you effectively branch for every commit ;)
 
@NikiC well, pair programming is a pre-commit review. kind of.
 
@DaveRandom I have a commit that is revert 'revert 'revert 'revert 'commit message'''' within the last 50 commits on develop :p
 
GOG's "end of sale" has begun: gog.com
 
^ not my particular cup of tea
 
@SebastianBergmann maybe of interest? gog.com/promo/summer_rollercoaster_tycoon_bundle_070615
 
Some of the classic LucasArts games were very ahead of their time
 
@Amelia As a partial workaround, I don't put any code in my Bamboo build steps. Instead I just call scripts that are in the repository.
 
@Gordon I find examples like this more interesting: gog.com/game/wasteland_2_digital_classic_edition
 
1:11 PM
@tereško never got a chance to play wasteland. was always busy playing fallout
 
heh
 
@SebastianBergmann while I agree that having a way to signal fpm to reset itself would be a good thing (I'm thinking something closer to the nginx "reload" op, where the config file is reloaded and all state is reset, but currently processing requests are allowed to complete before the workers are killed) a decent work-around is just to have two separate fpm pools and using nginx reload to do the switch instead of re-pointing a symlink
This is probably preferable in other ways too, for example you might get some weirdness if you repoint a symlink to the src in the middle of a request and some classes from the old version are already loaded, and the autoloader then gets some classes from the new version
 
@tereško but there is loads of nice games on that site. I have to close it else I buy something for which I wont find the time for.
 
@Gordon well, they are on sale :)
 
@tereško that makes it only worse :)
 
1:15 PM
for example, there is "Trine 2" with -90%
 
Thanks to Steam Sales I still have 20+ games to play which I will likely never manage to do
 
Hello:D
 
or lichdome with -87%
 
it's just a waste of money if I never get to play them
 
/me has been slowly going though the library
 
1:37 PM
does anyone know why DirectoryIterator wouldn't be iterating over half of my directories? :c
all the permissions are the same, it's just only picking up a couple
 
user895378
morning
 
@rdlowrey morning
 
eugh okay, i'm getting some really weird behaviour with DirectoryIterator
drwxrwxr-x 2 piuma piuma 4096 Jun 19 13:43 1-discover │sent 11239 bytes received 474 bytes 4685.20 bytes/sec
drwxrwxr-x 2 piuma piuma 4096 Jun 19 13:43 2-the_legend │total size is 4210425 speedup is 359.47
drwxrwxr-x 2 piuma piuma 4096 Jun 19 13:43 3-boiler_maker │
drwxrwxr-x 2 piuma piuma 4096 Jun 19 13:43 4-the_ritual
okay so i have 4 folders, and DI prints them all out okay
as soon as i add a 5th one "5-legendary_cubes", only 2, 1 and 5 are printed out
 
@AaronHarding How would you expect people to help you without you showing any code?
 
^ this
(pastebin if it's more than a couple of lines pls)
 
1:50 PM
well I thought maybe DI is a bit bugging or something
i'll pastebin
 
It's not buggy - just misunderstood....and some of the tests only work by chance...
 
@Gordon Thanks, but I already have it on Steam. And I prefer riding rollercoasters IRL :-)
 
@Danack It's SPL, it's probably buggy
 
@DaveRandom Thanks, I'll ponder that.
 
so the full function is:
 
1:52 PM
@SebastianBergmann I sent it to the list as well, in case anyone has a good reason why that won't work
 
and there are no php errors either
 
Like I say though, I think the feature would be a sensible one to add to fpm regardless of whether that approach works or not
 
@Gordon I have 105 games in my Steam library, most of which I never played or only for a couple of hours.
 
the script works on my local, but this the staging environment, so it's a different server
staging server is running PHP 5.2.17, i'm on PHP 5.5.25
 
user895378
@LeviMorrison exactly this.
 
1:54 PM
@AaronHarding Start by echoing/logging out the entries at the top of the loop, inside the first if block and inside the second. My money is on those regexes not doing what you think they do
 
i've tried that too, let me show you what i get:
(and you'll see that it seems like the DI just stops reading the directories)
 
so with all 5 directories, i can print out:
loop through ..
loop through 2-the_legend
loop through .
loop through 1-discover
loop through 5-legendary_cubes
and now if I delete the 5-legendary_cubes folder, I get:
loop through ..
loop through 2-the_legend
loop through .
loop through 1-discover
loop through 3-boiler_maker
loop through 4-the_ritual
like wut?
 
This is with the output command placed where in your code? (line no of pastebin)
 
and also it's not looping through alphabetically, like it was locally, which looks like:
pastebin between lines 6 and 7
so now 7
 
1:58 PM
Talking about Steam. Why would I want to preorder a game right now that will probably be released 12 months from now?
 
and my local dump looks like:
loop through .
loop through ..
loop through .DS_Store
loop through 1-discover
loop through 2-the_legend
loop through 3-boiler_maker
loop through 4-the_ritual
loop through 5-legendary_cubes
(ahh, sorry for the poor formatting :l)
 
@SebastianBergmann Sometimes, it's cheaper to pre-order the game than it is to purchase in the first 3-6 months
 
@AaronHarding just out of interest, is the OS of your staging the same as your local dev env? For the record, there is no guarantee about order in the directory iterator (which is why I consider some of the tests to be invalid.)
 
@Danack it doesn't?
 
@FlorianMargaine why would it?
 
2:01 PM
@Danack nope, i'm running Apache/2.4.10 (Unix) PHP/5.6.5 and this server is running Apache/2.2.15 (Unix) PHP 5.2.17
 
Street Fighter V is available for pre-order as of today. For 60 EUR. If that is cheap then I don't want to know what it'll cost on release day.
 
@AaronHarding It iterates them in the order returned by the OS. Sometimes this is alphabetical, sometimes it's by created time, sometimes it's other things, depends on a lot of factors (and shouldn't be significant to the issue)
 
@DaveRandom ah okay, thanks
well I have a 2nd staging server which is giving no errors and the same output as my local
 
can hello anyone help...
Deprecated: MongoCommandCursor::rewind(): The 'MongoCursor::$timeout' static property is deprecated, please call MongoCursor->timeout() instead in C:\wamp\www\subscriber_details\cman.php on line 72
what is the timeout command to use
 
that's on Apache/2.2.22 (Debian) php5.6.7-1
 
2:03 PM
@AaronHarding 5.2.17 is jurassic, it's quite possible this is simply a bug that no-one bothered to backport a fix for because 5.2 is long dead.
 
ahh okay
 
well i'll report it to the sysadmin then and just use the 2nd server i guess
 
@SaikumarA It literally tells you in the error message...
 
@rdlowrey public function when(callable $cb) { return $this->then($cb, $cb); } <-- done
 
2:04 PM
 
i tried using MongoCursor->timeout(-1) @Dave
@DaveRandom not working
 
@AaronHarding Developing on 5.6 and deploying on 5.2 is going to lead to all kinds of problems, you really need to update the target server to something more recent. I'm aware this is often easier said than done, but your current workflow is not going to be viable.
 
user895378
@ircmaxell How do you differentiate between an error and a success in that model?
 
posted on June 19, 2015 by kbironneau

/* by Argamea */

 
user895378
$this->then() has no way to tell which is which.
 
2:05 PM
@SaikumarA Define "not working"
 
@rdlowrey how do you in your model?
 
@DaveRandom Seeing as we're on the subject then; would you agree that this test is just bogus github.com/php/php-src/blob/master/ext/spl/tests/dit_004.phpt ? In the clone it's copying the readdir structure, but there's no guarantee at all that the order of the cloned copy is going to be the same as the order of the first dir iterator.
 
@SebastianBergmann the latter I know (rollercoaster riding irl). That's why I thought you might like it. For when you cannot ride them ;)
 
also, you don't need to pass an error handler to every then to handle errors. You could simply specify that if a promise has no error handler, the error propagates to the next one. If there is no next one, it converts to an exception
 
PHP 5.2 reached end-of-life 4.5 years ago: php.net/eol.php
 
2:07 PM
@DaveRandom thanks. well currently I have 2 staging servers, one with 5.6 so that's no problem
 
@Danack I don't know, since I don't know how that is handled underneath... if it's caching the entries and that cache is copied across to the clone then it's valid.
 
user895378
@ircmaxell which is a terrible idea if you're running a server. Just deciding to crash everything because something doesn't get handled isn't a good option.
 
@SebastianBergmann jesus, and I only started working here 9 months ago :lol:
I guess no-one's gotten around to updating it
 
@Gordon hehe. Rollercoaster Tycoon was nice, especially liked it on the Amiga back in the day.
 
@rdlowrey no, you just have an outer try/catch in your event loop to prevent that
 
2:08 PM
@AaronHarding So you have an application that is being runs on and is being tested on PHP 5.6, but you deploy to PHP 5.2?
That's really stupid.
 
@NikiC nono, dev on 5.6, staging on either 5.2 or 5.6, deploy to 5.6
 
user895378
@ircmaxell which I do, but I still don't see how you differentiate between an error and a success if you're passing a single parameter to the same callback in both conditions.
 
@Dave below the command i have used .
 
@AaronHarding Ah, okay
 
$result->timeout(-1);

$result = $collection->aggregateCursor([[ '$match'=> [ 'date'=> [ '$gte'=>$start, '$lte'=>$end ] ] ],[ '$group'=> [ '_id'=> '$date', 'count'=> [ '$sum'=>1 ] ] ]]);
 
2:09 PM
Strike that, it was Theme Park on the Amiga.
 
@rdlowrey how does your when() implementation do it?
 
I've only ~just found out right now~ that one of the staging servers is still running 5.2 :p
 
user895378
@ircmaxell function($error = null, $result = null)
 
@AaronHarding How is that possible?
 
hm
I'm lost
 
2:09 PM
@DaveRandom Fatal error: Call to undefined method mysqli_result::timeout() in C:\wamp\www\subscriber_details\cman.php on line 67
 
@DaveRandom There's no caching....it opens a new dir structure, and just advances it by the same number that the iterator being cloned has gone through. Which only works if the order is exactly the same (and also fails if new files have been created since the iterator was opened.....).
 
@rdlowrey go style...
 
@NikiC well, I rarely do my staging on this server (i've only been here 9 months)
 
@SaikumarA ...
 
2:10 PM
I mainly use it for node
 
> Fatal error: Call to undefined method mysqli_result ::timeout() in ...
 
@Danack if I find out where lxr.php.net/xref/PHP_TRUNK/main/php_streams.h#145 is defined, I should be able to tell if the order is defined..
 
and I use the other one for php which must be the only staging server the sysadmin maintains
 
> Deprecated: MongoCommandCursor ::rewind(): The 'MongoCursor::$timeout' static property is deprecated, please call MongoCursor-&gt;timeout() instead in
 
@AaronHarding What I mean to say, how can you have only now notice that you're required to write super ancient PHP code?
 
2:12 PM
@NikiC well, I haven't ran into any troubles before? if that's what you mean..?
 
Unless of course that second server is not actually used at all
 
it's been stable enough for no-one else to notice, I guess?
 
@AaronHarding So you never use short array syntax? You never use closures?
namespaces, ffs
 
user895378
Why_Would_You_Want_Namespaces_When_You_Can_Use_Underscores_LOL
 
@DaveRandom yes, I just imagine that we were deploying those scripts onto the main staging server
like I said, this second one is mainly used for node and js applications
 
2:14 PM
PEAR_Is_Awesome_And_Does_All_The_Things_And_Has_Totally_Sensible_Naming
 
^ fail
 
yup..
 
@Ocramius Have you gone mental with your Jun 15 slides?
 
@AlmaDo 😹
 
2:15 PM
So now I'm working in another company
 
"Optional dependencies do not exist"
Then he shows how a logger should be forced in via constructor :P
 
@Danack Well, I would imagine that 99.9% of the time the order won't change unless something changes in the file list itself (a file is created/deleted/renamed) but yeh, if there's no cache then the test is E_USELESS
/cc @bwoebi ^ you wanted an example of a garbage test
 
^ That's not rebecca black I promise :P
 
I looked at those slides yesterday, I think. Looks like it is a great talk :)
Any I chance I can convince you to give it at IPC, for instance, @Ocramius?
 
@FlorianMargaine I am over 50% sure it's defined here - lxr.php.net/xref/PHP_TRUNK/main/streams/plain_wrapper.c#883
 
user895378
2:18 PM
@Jimbo If I have to use setter injection it's a sure sign that my design needs to change.
 
@salathe Thanks for the pman update!
 
@Danack no, it's this function that I want to know where it's defined: lxr.php.net/xref/PHP_TRUNK/main/streams/plain_wrapper.c#900
 
@rdlowrey Let's say I don't want to use the decorator for a logger because I'm a lazy shit
What about the observer pattern?
(if a logger exists in the watchers, it logs)
 
user895378
What stops the logger from being an observer of a subject?
 
user895378
The subject no longer requires a logger instance at that point
 
2:20 PM
The subject will have an array of observers to alert data with, right?
as a class member
 
user895378
It doesn't have to be an array, but yes.
 
(You know what I mean :P)
 
@FlorianMargaine same thing - the php_stream_ops structure lists the functions to use, and gets passed through to where you're looking.
 
@Ocramius ocramius.github.io/extremely-defensive-php/#/30 is a myth I have personally proven wrong on a couple of occasions.
 
So, you can add to that array: ->addLogger($sysLogger);, ->addLogger($criticalEmailerLogger)
^ They're setters, and they're optional
 
@SebastianBergmann Yes! I knew we weren't all wasting our time...
 
I am not a cat person. I hate all this cat content clogging the intertubes.
 
user895378
@Jimbo sure, it's just ugly and now you're left doing if ($this->logger) { $this->logger->log('foo'); } all over the place
 
@SebastianBergmann TobyS and I put a slide with a cat in a talk we did together because of that
 
user895378
IMO something is either a dependency or it isn't. Anything in-between is suboptimal. It can still work, sure, it's just not ideal.
 
user895378
I tend to agree with @Ocramius on that front.
 
ION, my deb-packager now creates debian package correctly. Although they don't install much, the changelog/control/md5sums files are all correct. All this working even on windows! Yay!
</kinda-narcissic-rant>
 
@rdlowrey I was thinking you'd do $this->notify($data), and the ::notify() method would just loop around $this->observers and, if any exist, log the data
 
user895378
@Jimbo sure, that's completely different and much better than $this->setLogger($logger)
 
user895378
Because now you're objects are doing what objects were meant to do: sending messages to each other
 
2:26 PM
@rdlowrey I only changed it to $object->addLogger($logger) and you can add more than one if you like... it's still an optional setter though right?
 
user895378
@Jimbo why addLogger() and not the decoupled ObservableThing::attach()?
 
@rdlowrey Hmm, hadn't thought of that. But then you have less visibility about what can actually exist within that observables list
 
user895378
When you use addLogger() you're asking other code to know how the class does its job internally
 
Sounds like tradeoff time! (envisaged everyone running on stage, creepy smiles, shouting "it's tradeoff time")
 
@SebastianBergmann No problemo. It's the first time I've updated pman, so was fully prepared for it to go horribly, but it was easy and everything (*touch wood*) seems fine. :)
 
user895378
2:28 PM
I haven't personally ever encountered a situation where I wasn't able to refactor things to accept a logger object in my constructor, though ... if it's possible to address logging dependencies in the constructor I think that's preferable to using a subject/observer pattern
 
@Jimbo I'm thinking more like when you need a hammer and can't find one, and you try to use the handle of a screw driver or something
 
@DaveRandom We're not talking php specifically, here
:P
 
@Jimbo No I was just thinking about it in the context of hammer time
Seing as how, y'know, you can't touch this and all
 
@Ocramius nice presentation. I personally dont agree to all the points, but that looks like something I would have enjoyed attending.
 
user895378
I think those are really good rules in general. But like all rules they exist as a baseline so that once you really know what you're doing you can break them when you have good reasons to do so :)
 
2:43 PM
@DaveRandom Get out.
@Gordon (and heckling)
 
@Jimbo You can't touch this.
 
@DaveRandom my computer would like to disagree
[florian@localhost tmp]$ touch this
[florian@localhost tmp]$ ls this
this
[florian@localhost tmp]$
 
HI All..
 
@FlorianMargaine We so need to modify touch() so that if you pass it an object that can't be stringified it emits an exception with a message of "you can't touch($this)"
 
hi baby
 
2:54 PM
I need solution to call some function after sessions expire
In my example I need to block user after 5 unsuccessfullly entered password
So I`m adding $_SESSION['deny'] = true;
now I need to expire this session example after 30 minutes and after this expire set $_SESSION['deny'] = false;.
but may be client close browser tab.
So I thinked that I need timer, but Google said that there is garbage to start session
but I need not expire full session
I need to add expire time on only this $_SESSION['deny'].
 
duh
why is this not allowed: 3v4l.org/WU1EP
 
I know php has function like this
setcookie($cookie_name, $cookie_value,$expiretime), "/");

is there any solution like this for sessions?
 
ah... php7 fixed that...
 

« first day (1707 days earlier)      last day (3241 days later) »