« first day (1937 days earlier)      last day (3025 days later) » 

3:00 PM
Same concept, different mechanism.
(because different backing store)
 
Wes
because it was told me "no you are wrong" with no actual further details...
 
I'd put that as an answer to that question, but I don't actually know enough about ext/session's internal guts.
 
@Wes I won't have time to answer that.....it'd be quicker just to review your code probably. And you should have encountered the blocking already. Each request that opens the session should block other requests that touch the session.
 
There could be something else concurrency related in there that's not mentioned in the public api.
and given the recent discussion around sessions, I don't really want to make firm statements.
 
Wes
@Danack which is what the row lock does
 
3:03 PM
@Wes fixed
 
yes.
 
Wes
@FélixGagnon-Grenier ty
 
ok, that question I can answer.
 
posted on February 04, 2016 by nlecointre

/* by Pop */

2
 
@Wes there's a lot that the session module does that you can safely ignore though. For example the legacy support for passing session id's as a url parameter, or upload progress.
 
Wes
3:10 PM
finally found it. but not getting the difference with my approach
Oct 30 '15 at 23:57, by ThW
A database lock can be session lock. But it is not a lock for a single request, It is a lock for the session resource and any requests that access the same resource. They have go after each other. "ext/session" can use file, database or other backends (like Redis)
 
@Wes you know you can use PHPs session logic with a userland backend right? You can still have your custom DB stuff, but let PHP tell you when to do gc, or regenerate the session id, etc.
 
Hello family
 
Hi Dad
 
I made a var_dump($myvariable) and it returned the following information...
object(stdClass)#3220 (1)
{
["info"]=>object(stdClass)#3221 (1)
{
["type"]=>string(19) "www.envigado.gov.co"
}
}
How can I print the string?
 
print $myvariable->info->type
 
3:18 PM
echo $myvariable->type
 
Wes
@Leigh yes i know, but i'd rather not be ignorant :P i want to know if what i'm doing is wrong
 
echo $myvariable->type;
 
Thanks for your help.
 
@PraveenKumar nesting, brah
 
@PraveenKumar you forget one nesting level
 
Wes
3:18 PM
also, my "session" is actually deeply rooted into the model as small pieces of information, rather than having them all in "one big array"
 
Thanks for your help, I had forgotten that.
 
@Leigh yes sorry
 
@Wes answered
0
A: ext/session concurrency problems example?

jbaffordWith its file-based sessions, ext/session implements concurrency protections in the form of a file lock on the opened session. The file lock blocks any other attempt to open the session file, and the lock is not released until the session is closed (either at the end of the request, or explicitly...

 
Wes
3:21 PM
thank you, yeah that's what i'm doing with locking and isolation
i even have a larger wait timeout so i get fewer errors
 
hmmm, I just had an idea
I wonder how feasible it would be to JIT session open/read
that is, don't actually open/read the session until something explicitly triggers a read (such as trying to get the session id, or reading/writing to $_SESSION)
 
@jbafford that's what I've used custom implementations for in the past. Remember to "touch" the session so it doesn't get garbage collected though
 
idea being: if you don't block access to the session until the actual point of use, then at least the first part of your code can execute and maybe get something useful done, assuming that useful thing doesn't depend on knowing session data.
then again, if you use a framework, the framework might be able to do that for you with enough abstraction in place
so I don't know what the real gain would be
 
3:40 PM
hey, can someone prove if I'm misreading this or not: lxr.php.net/xref/PHP_5_6/ext/pdo_pgsql/pgsql_driver.c#230
it looks like if you enable emulation for PDO, it won't actually run the query? And if you turn off emulation, it will emulate it anyway?
 
yes, it looks to me like the query is only run if !emulate
 
oh wait, I see what's going on
emulation is controlled by "->supports_placeholders"
however, it's actually rewriting
how does this even compile? It overwrites a const char*
 
I keep forgetting, is const char* a pointer to constant characters, or a constant pointer to characters?
 
it doesn't overwrite the chars
 
good point
this is insane
 
3:46 PM
s there an easy way to count the 'week' days of the current years till now?
 
when you turn off emulation, it goes through and still re-parses the query and rewrites it
PDO is a nightmare
 
agreeed
 
!!eval $date = date_create();
echo $date->format('H:i:s') . "\n";
$date->modify(time() - 60);
echo $date->format('H:i:s');
@Jeeves Pls. Either way, result wasn't as expected.
 
DateTime::modify() takes a string, not a timestamp
 
@Sean You seem to be mixing objects and procedural style there.
 
3:58 PM
Yeah, was just seeing what was going to happen
Also, it was a quick snippet to test ;P
 
You want to ->modify('@' . (time() - 60), I think
 
or just ->setTimestamp()
 
It's alright, I'll just use setTimestamp
 
@ircmaxell you forgot two things
1. named placeholders
 
user5722584
3:59 PM
hi
 
2. different placeholde syntax for different databases
PDO have to parse and rewrite every time. and emulation has nothing to do with it
 
user5722584
i have a question
 
user5722584
can i put a iframe in the data href of a facebook like and share?
 
user5722584
let me give you my code
 
!!version
 
@Sean Odd I thought I implemented multiline support
 
!!eval echo 'Hello world!';
 
oOh that's smart with the edit
 
Yeah I like that too
 
4:03 PM
Dang, you're working miracles @PeeHaa
 
That's pretty cool
 
@bwoebi's idea tbf
 
=D
 
looking through this, is just wow...
!!eval 1 + 42;
:-P
 
4:05 PM
@ircmaxell you need to print it though ;-)
 
!!eval echo "!!eval echo '!!eval echo 12;';";
 
[ 5.3.22 - 7.0.3, hhvm-3.6.1 - 3.11.0 ] !!eval echo '!!eval echo 12;';
 
^ it doesn't recurse because the !! isn't at the beginning of the string^^
 
@ircmaxell I checked the source before doing that :p
 
smart...
I had to try :-P
 
4:08 PM
!!eval print '@PeeHaa ' . rand();
 
[ hhvm-3.11.0 ] @​PeeHaa 1378576240
[ hhvm-3.10.0 ] @​PeeHaa 676393243
 
@ircmaxell where are you heading to in Germany?
 
[ hhvm-3.9.1 ] @​PeeHaa 1517156991
[ hhvm-3.8.1 ] @​PeeHaa 642673404
 
@bwoebi I land the 18th, and go home the 21st
 
4:08 PM
@ircmaxell is in Germany?
 
not right now
 
@ircmaxell where, not when ;-)
 
Munich
 
what are you doing in Munich?
 
picking up my new car
 
4:09 PM
@ircmaxell BMW?
 
how do you get it back to the states?
 
yes
 
@Leigh it doesn't ping, @ gets a zero-width space put after it
 
@Gordon they ship it back for free
 
what BMW?
 
4:10 PM
@Gordon M3
 
@PaulCrovella How unfortunate
 
@ircmaxell Welcome to the club (again) ... and NICE!
 
@ircmaxell not bad
 
:-)
 
@ircmaxell You gonna pick it up in BMW Welt (BMW World)?
 
4:11 PM
very cool
 
@ircmaxell so that's thursday to sunday, right?
 
That somehow sounds weird to me… going to a country far away extra to pick a car up… :o
 
will it ever leave the USA again ?
 
@ircmaxell Coupe?
 
@bwoebi it totally does
 
4:11 PM
@Leigh the M3 is 4 door, the M4 is 2 door
@Oldskool yup
@Gordon yes, I fly over Wednesday night, and back on Sunday
 
@ircmaxell Cool. I someday hope to have that experience. Only seen other people get all excited from a distance there ;-)
 
I wonder why one can't just have it outright shipped to the US?
 
@bwoebi Where's the fun in that?!
 
@bwoebi it is weird. But it saves me like $5,000 over just getting it shipped to the US
 
@ircmaxell I might be able to come down to munich … if you haven't made any plans yet
 
4:13 PM
because of import taxes (for an unsold vehicle it's much more expensive than for a sold one)
 
Is the steering wheel on the right side for you?
 
@Gordon I do kind of have plans... ;-)
@Leigh yes it is :-P
 
that's so strange
 
@ircmaxell Let me guess, it involves a lot of Autobahn ... ;-)
 
@Oldskool actually, no. someone's coming to meet me there ;-)
 
4:14 PM
nikita?
 
That's a lot of winky faces
 
@ircmaxell Oh, in that case .... change your plans ;-)
 
@FlorianMargaine that'd be rather Berlin ^^
 
@bwoebi "coming"
 
@FlorianMargaine still doubting it.
 
4:14 PM
@ircmaxell An M3 should be baptised on the autobahn going 200km/h+ at least ;-) (not sure how much that is in miles, I think about 140+ or so)
Obviously when the engine is all nicely warmed up :)
 
which it won't be ... for several weeks probably ...
worn in ...
 
@Oldskool depends on the ground condition
 
you don't really wanna do that, you don't need too ...
 
Yeah, that takes a while. But some small peaks shouldn't hurt too much :)
As long as you don't put your foot on the floor all the time it should be fine.
 
I've maxed out at 235 km/h before. In a 5-series BMW. I could go further than that
 
4:16 PM
they'll take their toll on high performance engine, for sure ... do what the manual says ...
 
user5722584
:)
 
@JoeWatkins so the engine controls automatically do that for me
 
until the components are worn in, you don't want to push it ...
 
when you start the car, it limits it to like 150hp and a low redline until it gets warm enough. As it warms up, the redline and power both increase
 
user5722584
!!version
 
@JoeWatkins I don't know if that's as true today as it once was...
 
I sometimes wish I could go 220+ on the Autobahn during night when nobody's there…
 
user5722584
who made this chat?
 
nah, I wouldn't do night
 
@Jeeves unit converter please
 
4:18 PM
@ircmaxell Why? I found it's actually easier in night to spot all the cars due to singular lights in the darkness (It just needs some experience to have a feeling for distances...)
 
user5722584
.
 
@ircmaxell does "kind of" mean "no time at all" or "book your trip already"?
@NBOT @Jeeves you fight like a dairy farmer!
 
@Gordon How appropriate! You fight like a cow!
 
@ircmaxell BTW, I don't know if you already did this or have this planned, but you can get a tour of the BMW facilities and see parts of the production line in action. A very cool experience I'd definitely recommend :)
 
that makes the difference betwen a good bot and a stellar bot :)
 
4:20 PM
@bwoebi FAR harder to judge distance, and road condition
 
@ircmaxell see what the manual says about that ...
 
and when you're traveling at +200km/h, distances are a lot shorter than they seem
 
"being care for that protocol" is a correct sentence?
 
@Oldskool it's in my plans :-)
 
I dunno what kmh is in the queens money
 
4:21 PM
@Shafizadeh Doesn't sound right.
 
ah ok, do you know the right of it? ^
 
@Shafizadeh s/care/responsible
 
what's 0-100mph time ?
 
@ircmaxell Cool, I hope you'll enjoy it. Good choice though :)
 
Would you suggest how should I calculate money in case when, for example I need to apply two coefficients (subtract some percent of the value and then add another percent). In this case if I store money in integer I'll get float after the first operation
 
4:22 PM
@JoeWatkins 235km/h is about 140m/h
 
@tereško well this comment is really vague
 
@JoeWatkins 0-60mph is like 4.1 or 4.3 seconds
 
I've managed to figure how to create dynamic pages (& their urls) for my site using the loop below. My problem is how do i get the newly created page at ahref to combine data I have in database and the template, so that when the user clicks on it, he goes to the page populated with the data. Am i supposed to use a javascript click function (would rather not). how would i do it with php and html?
 
what about 100 ?
 
				<?php foreach ($reciperow as $recipe) { ?>

				<a href="?id=<?php echo $recipe['uniqno'];?>"><h2><?php echo $recipe['rectitle'];?></h2></a>

				<p class="subhead"><?php echo $recipe['recsummary']; ?></p>

				<?php } ?>
 
4:24 PM
@Leigh Already handle by zero width spaces \o/
 
@JoeWatkins I don't know. It does a 1/4 mile in 12.4s at 114mph
 
!!> echo '@Leigh';
 
@ircmaxell definitely … Always underestimate your estimate ;-) Agreeing about road condition, though you can't really estimate it with your eyes either…
(unless obvious because water, but in general, no)
 
@ircmaxell very impressive for a car
 
4:29 PM
@JoeWatkins An M3 is very impressive :)
 
credit for understanding the above foreach to teresko
 
bike would have the legs on you, with a better rider on it ...
not as apples and oranges as it seems ... guess who owns triumph :D
@Oldskool they are ... I do love a fast car ... but think I love a fast bike more ...
more than anything, they are actually beautiful things, m3's ... you don't need to go everywhere at 100mph ...
less people will see it (and be jealous) if you do ...
 
@JoeWatkins Been toying with the idea of one myself, for after I've bought my house though
 
@Leigh do it, obviously ...
my credit is only just good enough to acquire vehicles, will be a few years yet before I can get a mortgage, so I figured I'd treat myself, got some crappy diesel eurobox-family-and-dog-friendly car thing, and a dreamy bike ...
you could start training now, and if you haven't ridden before get yourself something you don't mind dropping ...
 
4:39 PM
Looking at something like a Suzuki M109R
 
I rode for many years before getting a full license, badly ...
 
Yea I can't justify the cost of a full one right now, it's ridiculous, car license is far less
 
jesus, does that really say 1.8 litre ?
 
Go big or go home, right
 
dude, that's a terrible first bike
I love it
but please don't
 
4:40 PM
But I want a pretty looking cruiser
 
I really think you'll hurt yourself, that is going to be extremely heavy difficult thing to manoeuvre, the kind of thing you buy when you've been riding a seriously long time ...
well do they do one without a car engine bolted between your legs ?
lol
 
The Intruder M800
 
there are lots of pretty ones, and that is an excellent dream bike, but I'd be terrified for you if you got that first ...
I see one of those every day
excellent presense
it could be c800
 
The C800 has uh... "flair" :p
 
that's a much more sensible bike, at first ...
 
4:44 PM
@Leigh I agree with Joe on bad choice for first bike
 
I think it might the m800 with a c800 head
 
I consider getting a bike, but I haven't sat on one in twenty years. my dream bikes would be a Vmax or Night Rod, but hefty price tag and I guess there is cheaper ways to kill myself.
 
Morning ;)
 
Oh, I sat on a few a good 16 or so years ago, but they were little putt putts
 
4:46 PM
@Machavity nice :-)
@JoeWatkins I'm not purchasing a bike. I'd die
 
I don't like cars, I don't like being offset from the middle
 
@ircmaxell get one of these alpinestars.com/tech-air. you'd only lose a limb or two
 
@ircmaxell yeah I thought that ...
 
:-)
 
I just ... grew up a little ...
it took about two twists of the throttle on a big bike, once to find out, and another time to make sure that's really what it does, to make me just be sensible ...
 
4:53 PM
 
it's savage, like words can't explain, it does 60mph in first gear and gets there in three seconds, over 100mph though, power feels limitless, the front wheel wants to come up in any gear ...
 
@Leigh cycle-ergo.com is useful to check how you look on it
 
-2
Q: How to decrypt an md5 string in PHP

deepakI have encoded a string with md5() and I want to decrypt the same string. I have written the following code: <?php $rr = md5(utf8_encode('hello')); echo $rr; $rr1 = md5(utf8_decode('5d41402abc4b2a76b9719d911017c592')); echo '<br/>' .$rr1; ?> Now I am able to encrypt the string. But now, I...

I'm just gonna leave this here
enjoy your nightmares
 
if you pushed it all the time you'd die, so I just realize that I don't need to push it, I don't need to get near cars at all, I need to survive ...
 
@ScottArciszewski that must be a dupe
 
4:55 PM
the author is a dope
close enough?
 
@Gordon It is, and just closed as such.
 
took two days. too long.
 
True.
 
Wes
@Sean dem effects. hair is pixar quality
 
@Gordon I'm 6'3, I'm sure I'll look stupid on most that are < big
 
user5722584
4:57 PM
here is my question:
 
user5722584
how can i post a iframe into facebook like and share buttons
 
give me like another couple of months to accumulate rep and/or enough votes for a gold badge in the php tag, and I can close them ;)
 
user5722584
this is what i have got
 
user5722584
<div class="fb-like" data-href="" data-layout="button_count" data-action="like" data-show-faces="true" data-share="true"></div>
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
 
user5722584
4:57 PM
i have tryed to put a iframe into the data-href
 
user5722584
just gave error
 
that's a cool thing @Gordon
 
@Leigh yupp
 
@Sean why
 
@JoeWatkins helped me sort out a lot of bikes in advance
 
4:59 PM
having a go is more fun, I did that ...
but there are actually some I wouldnt have tried
if it could show your leg on the floor that'd be useful
or tell if you could get both legs down
 
@JoeWatkins it can do that in the options
 
ah yeah
I need another inch off my seat to get both feet down
 
@Gordon the passenger appears at 5' 4 by default. somewhat kek'd
 
already got lowered seat with 1inch taken off, need 2
/me bookmarks
very cool, misses is tiny (literally, that's what I call her), should be able to find a non-stupid (>125cc) bike for her that's comfortable ...
 
@FélixGagnon-Grenier never tried the passenger option. the wife wont ride with me
 
5:04 PM
@Gordon mine loves it ... would rather get on my bike than hers ...
 
fights not to read more than necessary here
 
none of my brothers and sisters will get on though
(6 of those)
 
posted on February 04, 2016 by nlecointre

/* by Quidam */

 
Anonymous
Is the Github master branch for PHP always stable?
 
hardly ever
what's stable depends on what stage in the release cycle we're at ...
you can take a quick look at travis for master, or whatever branch you like to get a rough idea of what condition it's in
but the only truly stable branches have been released
 
5:08 PM
ok peeps, what is the reverse of "router matching url" ?
 
Anonymous
url matching router
 
I can't just call it "generator" because that's way too generic
 
Anonymous
@tereško So you mean "synonym" not "revese"
 
s/the reverse/a contraction of/ ?
 
5:12 PM
no, I mean a process, which works in opposite direction
 
hmmm. like a process that... generates urls?
spawner?
(played sc2 too much lately)
in fact, the oposite of a router matching urls is a user browsing the web
 
@FélixGagnon-Grenier yes
 
there's two kind of people in room 11, those that do motorcycle and those that play video games. I'd hazard the former have kids
6
 
@FélixGagnon-Grenier you don't have time to do either when you have kids
 
Anonymous
[root@samayo php-7]# ./buildconf
You should not run buildconf in a release package.
use buildconf --force to override this check.
 
Anonymous
5:19 PM
meh php ..
 
@tereško lru gnihctam retuor
 
lol. wondered when that would get out^^
 
farjing headhunters
 
@tereško do you mean a tool that can take a regex/url pattern and generate string matching that?
 
Them: Do you want to go for an interview in bumfuck nowhere tomorrow?
Me: No, I have an interview in the city centre, at a nicer job opportunity.
Them: Come on, you can easily do another interview half an hour away right before that interview.
Me: No srsly.
Them: GOO OOOONN!!!
 
5:24 PM
lol
 
Anonymous
[root@samayo src]# wget de1.php.net/get/php-7.0.3.tar.bz2/from/this/mirror -q -O master.zip
[root@samayo src]# unzip  master.zip
Archive:  master.zip
End-of-central-directory signature not found.  Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive.  In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of master.zip or
    master.zip.zip, and cannot find master.zip.ZIP, period.
 
Anonymous
> PHP ruining peoples' lives since 1995
 
@tereško Route generator, URL generator, or URL routing generator, or similar. And they aren't quite opposites. A URL router may need to match legacy URLs, whereas the generator never needs to know about them.
 
Anonymous
damn, I forgot how to untar .bz2 files
 
tar xvfj file.bz2 iirc
 
Anonymous
5:30 PM
what an epic fail, this time I outsmarted myself :/
 
Anonymous
I asked for bz2 file and changed it to zip /fml
 
I kinda resent the options with linux commands. sometimes take a -, sometimes not. I never remember
is there a logic I don't understand to it?
 
Anonymous
Sometimes there is no logic whatsoever.
 
{
     "deRule": 0
}
JSON derule-oh
What is my life right now.
 
@ircmaxell I just ran some API benchmarks, and strict_types=1 nearly doubled my execution time. Not seeing much (any?) talk about this.
 
5:43 PM
strict should be quicker, shouldn't it?
Hmm, maybe just for error cases.
 
It should be same as weak types if types are identical
We might have fudges something, I don't think anyone ever measured this
 
It's probably because now values are converted earlier
 
@nikita2206 that would be a concern for weak types with type hints, not strict types
I'm assuming of course he's testing strict types vs weak types, not strict types vs no types
 
@NikiC I thought there were type hints
oh I got "doubled my execution time" as "made it twice as fast"
 
unless he has try/catches in there...
so errors are raised in strict mode and then ignored
 
user1804599
5:51 PM
PHPHPHPHPHPHP
 

« first day (1937 days earlier)      last day (3025 days later) »