« first day (1941 days earlier)      last day (3010 days later) » 

12:00 PM
never mind i figured it out. :P
 
mysql query please help me out
 
Try pull broken again?
 
From github.com/php-ds/ds
 * branch            broken     -> FETCH_HEAD
Already up-to-date.
I think you might have been cursed @rtheunissen ... did you annoy any gypsy types ?
perhaps, you have unwittingly breached the tomb of the ruler of an ancient dynasty ... these things happen, you gotta be careful ...
 
ignore me!
 
@GourabNag domxpath is not a node
 
12:07 PM
yeah lol understood that after scrolling through a SO Question :P
 
:28630495 No errors here either. clone -> checkout broken -> phpize -> configure -> build -> run your example
You sure you're doing a full build, no artifacts left over from other branches?
 
did someone say node ... I love node, and jQuery ... why are you people still trying to write stuff with PHP ... use a real language, like javascript ...
 
@Leigh are you on OS X?
 
@rtheunissen Arch :P
 
Anyway I'm stuck with a problem... I actually planned to get the user's username from the SO Profile link...
This is my code still now...
-
`<?php
$so = "http://stackoverflow.com/users/5557335/jack-smith";
$so = file_get_contents($so);
$dom = new DOMDocument();
@$dom->loadHTML($so);
$xpath = new DOMXPath($dom);
$usernameClass = "user-card-name";
$username = $xpath->query("//*[contains(@class, '$usernameClass')]");
$shit = $username->item(0)->nodeValue;
var_dump(explode(" ", $shit));`
ignore the last line.. :P
 
12:09 PM
@GourabNag why dont you use api.stackexchange.com instead?
 
Exploding shit is never good
 
well I dont like the stackexchange api
LOL @Leigh
 
@GourabNag You should normalize the class and select it proper
 
@GourabNag it's much more efficient to fetch that data from the api though
 
> /dev/ploop45720p1 26G 26G 0 100% /

The hell..
 
12:11 PM
The problem is that the class user-card-name has got the shitty batch like - top 29% this quarter which also gets selected... anyway to get around that
If there isnt I gotta use the API....
 
Also <h2 class="user-card-name"> doesn't have a value
Do you want just the name?
 
yeah :P
 
$username = $xpath->query("//*[contains(@class, '$usernameClass')]/text()");
Untested...
 
@JoeWatkins @Leigh I think it's a function name issue. Map *map_init();
==11732== Invalid read of size 8
==11732== at 0x100E14F8F: map_init_vi (in /usr/lib/libedit.3.dylib)
==11732== by 0x100E14F5E: map_init (in /usr/lib/libedit.3.dylib)
 
Thanks @PeeHaa I owe you one...
 
12:14 PM
If I rename it to map_create, voila
 
one beer FTR
 
yes
you want to prefix your shit with ds_
 
Shieet
I'll do that in the week..
 
I hate my windows 10... pirated fifa 15 does'nt run...................................... O.o O.o O.o O.o
 
complaining about pirated software not running … mmmmkay
maybe you should have bought it instead?
 
12:19 PM
I am planning to buy Fifa 16 after a month LOL
Lets see if I could also get the reputation of the user.....
Yeah LOL!!!!!!!!!!!!! Got the reputation too....
 
@zaq178miami FWIW you can create tags by using [tag:tagname] :-)
 
@PeeHaa thanks!
 
np
 
@PeeHaa Where are you from??
 
12:32 PM
Netherlands
 
it must be cold there??
 
errrrr I mean @Jimbo's mom
@GourabNag Neh
 
I had heard that that Netherlands was cold... but @Jimbo's mom must be warm I guess?
 
Yeah she does a wonderful job keeping me warm
 
Anyway what is it between you and jimbo???
 
12:35 PM
I choose to refrain from answering to prevent going too off topic / crazy
 
Okay................ Do you remember me anyway... we met in this chat and you answered one of my questions in SO
 
@PeeHaa What an ass cactus
 
@Jimbo Hey kinda son o/
 
hey @Jimbo sup!
 
I can call you son by now can't I?
 
12:38 PM
ROFL
 
@PeeHaa is too busy to chat right now, he is making sure @Jeeves responds politely when someone thanks her
 
I have been looking for a decent chatbot API, but I couldn't find any
No free ones at least
 
build one
 
@GourabNag no
 
why not??
 
12:40 PM
@PeeHaa No! I thought you were younger than me?!
 
lets build one... i also need something to kill my time....
 
@Jimbo It's not a matter of age. It's a matter of who is doing your mother...
6
 
LOL
dude, you walked into that ...
 
:D
 
@PeeHaa Hold on, my mum isn't the new @Lusitanian's mom
3
 
12:42 PM
is somebody gonna tell me what is it between @Jimbo and @PeeHaa.........
 
@PeeHaa very well done
 
@GourabNag Huge amounts of gay
 
@Jimbo oh well… it actually is ;-D
 
<3
 
<3
 
12:42 PM
BTW you're not older than me are you?
 
I'm 27, you look younger than me
Shit, in June I'll be 28 and "Almost 30". FML
 
lol you edited it three times @PeeHaa
 
Thanks I guess :P
 
I thought I was supposed to be good at programming by now
 
@Jimbo Almost 32 :(
So "Almost 40"
@GourabNag Neh. I have enough projects as is to kill time
 
12:44 PM
@PeeHaa I am older than you
 
@PeeHaa So, son ;)
 
@Gordon I think you'e the most professional one here :D
 
hehehehe
 
LOL @PeeHaa I have lots of time now cuz my exams are over now....
 
IIRC @Danack is the oldest fuck in here
At least of the regulars
The guy is like antique
 
12:45 PM
I was having a nap.
 
LOL
 
@Jimbo what? that depends on age now?
 
if I had known 21 was gonna be the last good birthday, I would have got so much more smashed than I did ... probably ...
 
@JoeWatkins Tell your wife that, I reckon your next one might be a good one!
@Gordon Nope, that depends on how good you can have a photogenic pic taken at a conference!
 
@Jimbo Nobody will ever be a good programmer.
Only noobs think they ever could be.
 
12:47 PM
hey @Jimbo where are you from??
 
Hmm, did I ever tell you guys what happened last year at PHP South Coast? I had that T-Shirt on that says "composer require PHP\Awesome", and when I ordered it I created the repository on quick that says "Been there, done that, got the t-shirt". Someone prevalent in the community saw it and when I said I owned the repo he tried to tell me that PHP could take it away from me and that it wasn't allowed
 
@Jimbo ugh, that's young
 
@GourabNag We drink lots of tea here and have a Queen
 
China??
 
@Jimbo Morocco?
 
12:49 PM
well .. you're not supposed to use PHP in the name of stuff without permission @Jimbo
 
@Jimbo Ask the people from phpdbg :P
 
I guess UK!
 
@FlorianMargaine Why is 27 young?
 
@JoeWatkins Dude... I didn't make the t-shirt
But could've been nicer about it, I said any issues I'd hand it over it was just for fun!
Got a scowl, that's it
:-/
 
You're allowed to ....you just can't ever trademark it, or imply 'authority'.
 
12:50 PM
Who is said someone prevalent?
NAMES DAMNIT!
 
I've never actually heard of php going after anyone though ... even with the phpdbg thing, it was nusphere that tried to pick an argument ...
 
I used to use nusphere back in the day too... shame they were such idiots about that
 
@JoeWatkins actually isn't it rather … if you think you understand pthreads, you only understand its highest layer of abstraction?
 
@Danack Like that was even in my mind. Imagine people are doing things for good reasons first, and all that
@JoeWatkins Exactly
 
@JoeWatkins publishing.
 
12:56 PM
w00t @rtheunissen
@bwoebi well there are really only a handful of people that I know understand it ...
 
Does that link work okay?
 
@JoeWatkins pthreads on the syscall level or on the php ext level?
 
ext
 
ah well.
 
@rtheunissen clickable if that's what you mean ?
 
12:57 PM
Goes to the post..
 
I admit that on the ext level it's much harder to understand due to its sideeffects and impact on shared structures :-/
 
@rtheunissen yes
 
@bwoebi for sure, there's so much magic involved, I should wear a cape ...
 
@JoeWatkins yea, precisely.
There was a time I understood pthreads, but today you piled more and more magic up on it… it's just too much magic.
What's the bus factor? 3?
 
1:01 PM
if the bus ever does come ... pthreads is finished, it always was really ...
the magic isn't too hard to understand, it's just undocumented and mostly in my head (or tests) at the moment ...
I can't find the energy to update documentation ...
it's more difficult, undeniably, but I don't care about that if the software produced is better, and it will be ...
trying to make it easy in the first place, was a stupid thing to aim for, it's not easy, no matter the API ...
 
bah, kqueue() is and will always be more efficient than pthreads
 
@Jimbo I replied, to ask exactly what they meant. The only thing that Auryn is 'missing' and 'could use' is the ability to be able to decorate objects on creation. However......I think that leads to insanity. And in fact I pretty much refused to even look at code that uses AOP.
 
@bwoebi different things
 
Although it's clearly clever, and allows you to do fun stuff.....it seems to be only used by people who have gone insane.
(It is unclear whether they were insane before using AOP, or as a result).
 
@JoeWatkins no, not quite. kqueue() allows you to synchronize threads over fds instead of "wild" synchronization
 
1:07 PM
Also:
> Ray.Di was created in order to get Guice style dependency injection in PHP projects. It tries to mirror Guice's behavior and style.
 
@bwoebi because I'm older
 
Thanks for the RT @JoeWatkins
2am..
Night everyone
 
nn @rtheunissen
 
@JoeWatkins (note that I'm talking about synchronization via pthreads primitives, not about the fundamental pthread_start)
 
Wow! Is it true that PHP cannot access IPv6 in general :O
 
1:08 PM
@bwoebi oh I see ...
you totally lost me there ... I thought you had gone mad for a minute ...
 
@JonasGröger that'd surprise me … but I already had that PHP was behind some router which didn't support IPv6
@JoeWatkins no worries :-D
 
well I'm not going to argue the case for pthread, I don't love it ... I just used it :D
 
@JoeWatkins ah okay
 
@Jimbo oh, the ability to bind specific implementations for classes is also missing in Auryn. e.g. being able to bind a specific logger to be used with a particular class. Although that is useful (and I spent ages trying to get in done in Auryn), I just don't think it leads to sane applications...
 
@bwoebi Hmm. There seems to be absolutely no information about that online... And I mean: Its a BIG issue imho if that were true.
 
1:11 PM
@JonasGröger and, yes, PHP can access IPv6 in general.
At least locally it can :-P
 
posted on February 08, 2016 by nlecointre

/* by SynxS */

 
smells like stale answer/info maybe ?
 
@JoeWatkins hm?
 
there was probably a time it couldn't ... I don't watch that stuff closely enough, so I don't remember it ...
 
@JoeWatkins possible… but at least since PHP 5.5 it can
 
1:13 PM
^ longer than that, I know I did it in 5.4
 
yeah, I remember working with them in 5
 
Although I seem to recall that there was a bug regarding url parsing in the streams API that meant certain things didn't work, but here was some work-around
 
@DaveRandom Are you talking about converting functions for ip addresses or actual connection functions in the std lib?
 
Is this code secure enough to generate serial keys: pastebin.com/3WV2j3u4
 
@JonasGröger Can't remember the specifics. A better question here would be "what specifically are you trying to do that's not working?"
 
1:17 PM
@KristianHareland Seems random enough. Generating is not really the problem with serials. Validating is the hard part (unless you just keep a copy of all generated serials in a db, but then that could be a security risk).
 
@DaveRandom Trying to connect to a mssql database. I guess its a connector issue then
 
@JonasGröger Code that doesn't work?
 
We are thinking about hashing the serials and the send them in plain text to us when verifying and do a new hash on our side to verify/not verify
 
It may be that whatever extension you are using doesn't support ipv6, that's quite conceivable
 
@rtheunissen in the Queue section you mention SplStack rather than SplQueue
 
1:19 PM
@DaveRandom:

$conn = new PDO("dblib:host=$db_host:$db_port;dbname=$db_name", $db_user, $db_pass);
Where $db_host is ipv6
 
What's the exact contents of that var?
Is it enclosed in square brackets like [aaaa::ffff]?
 
@PaulCrovella fixed :)
 
@KristianHareland back up a sec, what is this for, product licensing, invitation codes, something else?
 
product licensing
basically an iot device
 
@JoeWatkins nice work on the datastructures. i was just recently thinking that it would be nice to have optimized structures. its probably java brain damage kicking in
 
1:22 PM
@Gordon I didn't do anything really, it was all @rtheunissen ... I just talked mostly ...
 
@rtheunissen see above ;)
 
Can I use yoda as a verb?
 
@KristianHareland Ok, a lot of people these days (for software licensing at least) will use public key crypto, you send out a license file with details of the user, their type of license, etc signed with your private key, and have the software verify with your public key
 
Thanks @Gordon
 
hmm, ill look into that. Thanks! @Leigh
 
1:25 PM
@rtheunissen and now please a RFC to deprecate SPL structures in favor of taht new extension :-D
 
@bwoebi really ?
you just don't learn do you :D
 
hmm?
 
surprising to hear you advise someone to merge something into php-src is all ...
I think it better to leave it a while ... or indefinitely ... first because stability, and then politics ...
 
@KristianHareland Although in your case... would you expect the device to be able to contact your servers at any time? Since it's an IoT device, would it be inconvenient for it to require an internet connection to "activate" the device?
 
1:27 PM
php-src !== RFC
 
oh, I didn't mean merging it straight ahead… but a merge in a few months could be fine
 
Oo.
 
@DaveRandom If doesent work with or without brackets.
 
@rtheunissen kinda is ...
 
And also datastructures are something which need to be stable and by far not as volatile as phpdbg.
 
1:28 PM
It's more than just a PR though.
 
@rtheunissen so was phpdbg ...
 
I see I see
 
The device is shipped with an M2M sim and has data costs covered so it should contact the servers every 7 days to check its license and then perform set actions based on the response. The device is kind of a "black-box" environment meaning the end-users wouldnt be able to connect as there are no ports etc. @Leigh
 
@JoeWatkins as said, phpdbg is a constant moving target and can be improved any time
 
@bwoebi yeah I suppose ... I just don't love the idea of merging code into php-src anymore, I don't see the benefit ...
 
1:29 PM
Could just be a default extension, right?
 
@JoeWatkins well, I avoid extensions not enabled by default as much as possible in code unless unavoidable
 
I do see the benefit of independent release cycle, and avoiding politics of internals ...
 
and I do see the benefit of general availability
 
@KristianHareland does the device have an IMEI? (and can you access it programatically?)
 
but the phpdbg merge was just way to early.
 
1:30 PM
there was a real reason to merge phpdbg, it can't very well function outside of php-src, not the same with an extension ...
yeah exposure is good ...
 
@Leigh yes it would have an IMEI, but i wouldnt be able to access it as for now
 
@JoeWatkins the goal is rather to be able to finally ditch SPL datastructures with PHP 8.
 
Ah that sucks, because you could basically use the IMEI as the serial :D
(if you had a record of issued IMEIs at your end)
 
@bwoebi that's also an advantage, I guess ... but it did just take a really long time to remove mysql
and even then, when there are several better options, people fought against it ...
 
yea
Hence we need really rock solid datastructures
 
1:33 PM
@Leigh the process is: the device gets powered on by the user, the user would put in a flashdrive thats containing the license file -> then the device will check the license against th server and validate etc if success the device is added to the users account and the user can put on new stuff to the device/change things etc
 
@bwoebi most people don't really build from source though, you'll get as much exposure as a pecl ext if the major distros decide to package the extension ... if it's available to apt-get/yum/whatever people don't care where it comes from ...
 
@Leigh it's basically a multi purpose device which usage will depend on the license
 
xdebug is everywhere, for example ...
 
@JoeWatkins is it? meh.
 
I guess it's not a terrible thing to aim for, but it might take years to get php to decide to remove any part of spl ...
@bwoebi sure, so was apc, so is apcu
memcached, redis, mongo
 
1:35 PM
@JoeWatkins first step would be having a replacement in ext/
 
yeah probably ...
afk, school run, lata
 
@rtheunissen worth a modstar, I think
 
@JonasGröger the value supplied in host is passed directly into dbopen() without any kind of parsing or validation
 
@SergeyTelshevsky what's a modstar?
 
@rtheunissen he means pinning I guess
 
1:40 PM
so I guess you need to go find out how freetds works, which I don't know
 
or particularly care :-P
 
Ooo
 
1:51 PM
I wonder whether we could implement channels (like in Go) in PHP … instead of async/await
 
@Jimbo The fact that you said this warrants starring and further mention.
 
@SergeyTelshevsky Happy? :)
 
uopz_undefine('THE_MUM_EVERYONE_DOES');
define('THE_MUM_EVERYONE_DOES', $jimbo->mum);
Also, morning.
 
@PeeHaa as always :)
 
1:54 PM
@PaulCrovella ;-)
 
#include room11_users.h

#if defined(JIMBO)
# define THE_MUM_EVERYONE_DOES JIMBO.mum
#elif defined(PEEHAA)
# define THE_MUM_EVERYONE_DOES PEEHAA.mum
#elif defined(DAVERANDOM)
# define THE_MUM_EVERYONE_DOES DAVERANDOM.mum
#else
# define THE_MUM_EVERYONE_DOES YOU.mum
#endif
That's the pecking order
So to speak
 
Have you guys had like a meeting on this beforehand?
A mother's union?
 
there was an rfc
 
@DaveRandom there's still @Lusitanian on the top :-(
 
That's... what she said?
 
2:04 PM
?
 
I dunno, since he doesn't come here much any more, seems kinda wrong to abuse his mother quite so habitually
 
@DaveRandom okay, get him in again then ^^
 
@DaveRandom It seems wrong, but feels so right.
 
Morning
@DaveRandom ping :)
 
@DaveRandom ... why cpp?
 
2:15 PM
Is there any term to explain this situation? "This event isn't weird, this happens sometimes for even me, this occurrence is kinda common"
 
hello guys
just figuring out the way for the problem i got
i got the cache reader class with the interface of read and write.
then file system implements cacheread and cachewrite interface
cache class take the interface in constructor
but the point is while making factory to implement cache class
i dont want to use if or case statement.
like for now i have filesystem implementing that interface, later on i will create possibly database and the in memory cache.
how can i make it happen in the factory method
 
$cachedFile = new CachingIterator(new SplFileObject('some_file.txt'), CachingIterator::FULL_CACHE);
maybe you are looking for this?
 
2:33 PM
i don't want this implementation in client code
this is why i'm using factory pattern
 
what is a CatchingIterator??
 
It catches. Iteratively.
@DejanMarjanovic @Webfarto!!
 
never heard of it lol!
 
3:06 PM
posted on February 08, 2016 by nlecointre

/* by Shadam */

 
http://stackoverflow.com/questions/35272784/problems-with-send-form-‌​email-php
 
@Wes Halp. I figured out a way that would be acceptable to me to have the code bits extending past the 'panel', by having a border-image underneath the other elements to give a nice effect when that happens. What I can't figure out is how to make the border image be the correct height.
To be clear, I want the border to go around the pink panel, without having to hard code the height of it.
 
any postgree users here?
is there any window function / combination of them that's capable of retrieving number per group, not number in group?
Example: this does number in group
want same, but when number is incrementing per group. Tried to play with row_number(), but failed for now
 
3:40 PM
Grr, failing with PSR-0/4 and autoloading
I have app/initialisers/res.php. My composer.json in app/ contains: ""app\\": "/". I expect the class app\initialisers\res to exist, but it doesn't. Yes, lowercase (legacy)
Any ideas?
 
@Jimbo "./"?
 
@AlmaDo pong
@AlmaDo Given that input data from the question, what would your result set look like?
 
@PaulCrovella Thought that might be it, but still nope
 
Sometimes I forget to do compose update or dump-autoload to regenerate the files......but you probably just want to step through the autoloader with a debugger.....you'll have it solved in 5 mins.
 
3:53 PM
Also, February can fuck off.
2
 
instastar
 
@Danack too much rain?
 
I don't mind rain....I really don't like wind.
Except when it's warm.
 
95mph winds are no fun ...
12 foot trampoline flung over garden fence, smashing many things, ruining trampoline ... but luckily not killing anyone ...
 
4:01 PM
I concur ...
 
Most of February is OK, the 14th is always a bit iffy though
 
does anyone know why they started naming the weather ?
 
@JoeWatkins "naming" the weather? What do you mean?
 
@Oldskool They've started giving all storms names
 
@DaveRandom sql fiddle is not responding for me. I'll try to post it here
 
4:02 PM
Blustery Wind "Albert" currently rampaging across the south coast..
 
they are naming storms now, I know it's a thing elsewhere, but I don't remember them doing that last year, or any year before it in the UK ...
 
hi guya
guys*
 
Oh that, well pretty much for historical value I believe. Like if they talk about this storm a year from now, they can refer to "Monica" or whatever and not "that storm of February 2016".
It's a bit more convenient.
 
@DaveRandom here:
capt, rnum
foo, 1
foo, 1
bar, 2
bar, 2
bar, 2
buz, 3
buz, 3
 
4:03 PM
@Oldskool urm ...
but ... it's the UK ...
where it can piss down with rain in june ...
I'm supposed to be able to remember individual episodes of bad weather !?
 
You'll wind up only remembering the ones that do a lot of damage
 
mentions the island recording peak speeds ...
 
@JoeWatkins oh, that balmy breeze =)
 
apparently "The Met Office hopes that naming big storms will mean people are more aware of them and how dangerous they can be."
No clue why they would think that, LOL.
 
ah, this makes some sense ...
 
"Ooh, it has a name. It must be dangerous"
 
+ also, does anyone know good sqlfiddle alternative? Since it is broken for god only knows how long
 
@AlmaDo mysql; create database test; use test; <insert stuff here> always works like a charm ;-)
 
@Oldskool the thing about tracking progress seems reasonable to me
 
4:07 PM
@JoeWatkins Yeah, that makes some sense. Like I said, that is more convenient than "That storm of February 2016".
 
the nasa page has some good points too, avoiding confusion when there's more than one storm
 
@Oldskool doubt you can run your SQL in this chat
 
@AlmaDo LOL no, I mean on your dev box or wherever you have a SQL server available.
 
the mighty terminal
 
(but you'll need one somewhere :))
 
4:09 PM
 
@Oldskool and then you need to share the stuff..
 
Okay I shall build a console for you then...
Gimme 30 mins
 
@Oldskool It helps a lot on Hurricanes. The problem is that there's no standards for naming anything else
 
4:21 PM
@AlmaDo Hmm, yeah good point. If it's for someone else other than yourself it becomes trickier ;-)
 
Hi guys! Sup!
 
@Oldskool sqlfiddle provided a shared place to your sql code together with the possibility to run it. Meaning that you just post the fiddle with your attempt to chat - and then anyone who knows what's your problem - can fix it right in-place and re-post new version of your fiddle
 
I'm trying to build a something like that for ya...
 
Are there any post-route packages out there? Just dossing around with Slim Framework and looking to load in my controller layer without having to write in a bunch of closures
 
Just use function names?
Or class::method names?
 
4:39 PM
Oh yeah.
I'm just stupid :v
 
I suggested in the past that they shouldn't use closures in their 'how to get started' guide. Because that's what everyone attempts to follow.....and it's not a good pattern.
 
or present both
 

« first day (1941 days earlier)      last day (3010 days later) »