« first day (1888 days earlier)      last day (3066 days later) » 

Abe
12:46 AM
@NikiC so i didn't need to reimplement the fallback to the default behavior, if you return FAILURE it will fallback automatically to the casting attempts
 
Abe
1:00 AM
class Foo implements Augend{
	function sum($other){
		return 10 + $other;
	}
}
$lol = new Foo;
var_dump($lol + 20); // 30
var_dump($lol - 20); // Object of class Foo could not be converted to int
 
1:26 AM
ugh... unsurprisingly, drinking a whoel bottle of wine is tiring.
 
Abe
lol
 
just woke up from a strange dream about fighting with a bear, and moving the stuff in my room around... mixed with disneys the beauty and the beast elements, confronted with halo like marines... pretty nice in fact
 
Abe
write a novel!
or a comedy book! :B
 
heh. sadly the memories are fading away. quickly. I vaguely remember the scene of a four army battle, featuring some insect like people, but...
you tried issac yet?
 
Abe
btw, i had a nice idea for a book some days back
 
1:37 AM
did you do something with it?
 
Abe
like, writing it?
i want to do too many things
 
yeah, I feel you. my github account is a mess. but the good part is since the data is not exactly in my hand, it actually persists, contrarily to many other sprouts...
 
Abe
even if it doesn't look so from my english, i'm pretty decent with italian. i could actually write a book, if i had no job, and what's left of my life :B
maybe in my sixties i will
 
I'd read it. Especially if it's sci-fi or medieval things
 
Abe
it's scifi :D
 
1:40 AM
yay
 
Abe
why does zone alarm even exist
 
I.. don't know what's happening.
however, I'll now proceed to waste what's remaining of the night on steam.
 
Abe
or you could dream more halo&beautybeast crossover
 
Abe
two words never used in the same sentence before btw, congrats :D
 
1:46 AM
I'll go buy another wine bottle and see what happens :)
 
Abe
french? italian? :D
 
it will almost certainly be crap.
 
Abe
that's a popular brand too
:D
 
yeah :p under 15$, you often don't get much here
please don't brat on how you get quality wine for two euros
 
Abe
lol
actually with 15$ you can buy pretty decent wine here
must be the same also there then :D
 
1:49 AM
@Abe I hope that's some memory corruption :-D
 
Abe
@bwoebi no it's just zone alarm :D
 
let's say it begins to be decent
off buying wine
 
Abe
later @FélixGagnon-Grenier
 
Abe
comodo in italian means "comfortable", but the firewall is as comfortable as a giant sequoia up your ass
2016 and still no decent firewall for windows exist
 
Abe
2:03 AM
actually, zone alarm is pretty neat now
 
/feels so good.
 
@Danack you moved code out to another repo?
 
yep. Been needing to do it for about a year.
 
lol. not sure where I read it but apparently some tutorial out there advised for not adding composer.lock in a version control. always feels good to have proof that we're being monkeys. getcomposer.org/doc/…
just got a IRQL_DRIVER_NOT_LESS_OR_EQUAL blue screen error. ugh...
in fact it's in the no-framework-tutorial. github.com/PatrickLouys/no-framework-tutorial/blob/master/…
I guess he had reasons
 
Abe
@FélixGagnon-Grenier memory or disk, do a memtest and a chkdsk
 
2:18 AM
heh, guess I won't have a choice, before my computer just refuses booting
 
Abe
:P
 
@Jimbo I'm looking forward to it as well! I'm hoping they didn't use the slides I sent them and instead used an actual video feed
because otherwise the "that's supposed to be an emoji, but I don't think NT 4 supports them" remark won't make sense
 
3:36 AM
@Sara did I ever tell you that PHP docs suck? like… it all makes sense if you know what it does, but it doesn't actually describe its effect… example from today: $address parameter on php.net/stream_socket_sendto … wtf does it do?
 
Abe
4:08 AM
@bwoebi is there a way to differentiate between ++ and + 1 in do_operation ?
$stuff++ and $stuff + 1
aw that's annoying
 
4:40 AM
if there is calculation being made on stuff, the ++ vs +1 might change the order in which things happen
 
Abe
5:04 AM
i mean that ++ assumes it's just +1 while it should be "increment" as in github.com/php/pecl-php-operator/blob/master/tests/incdec.phpt
 
good morning
 
Abe
hey \o
 
Abe
me heading to bed instead. gn phpeeps!
 
5:20 AM
@bwoebi presumably the address sent to
 
@bwoebi I'm getting some weird behavior with generators on master right now, as though it's invoking the same yield expression over and over when calling send().
 
Guys i need to update my table with around 2 lac entries. I want to update username of all the users by concatenating their first and last names. Also the username should be unique. Please help me with a good and optimized query so that it takes minimum time to update all the 2 lac entries.
I am using mysql database
 
5:46 AM
@bwoebi Tried compiling 7.0.1 tag, works great. Master, blows up.
 
5:58 AM
What it is, yo.
@bwoebi "sucks", I can't agree with. Even when I was first learning PHP, I thought they were amazing. As to your example.... The meaning of the arg seems pretty clearly spelled out. :/
 
moin
phpdoc sucks to write, one of my least favourite things ... but the manual has got to be one of the best things about php ...
 
omin
 
Hi. ;]
 
6:16 AM
@JoeWatkins Agreed about writing docbook. I tried to make HHVM's docbook just to make shadowing php-doc easier, but ultimately everyone hated docbook, so we wound up with markdown everywhere.
 
md ftw, I heard on the grapevine someone has a md -> docbook converter in development ... if we can't parse a text document, we are in the wrong business ...
I wish we could just commit markdown, don't care what .net systems do with it, there are some that argue translation is more difficult, or that markdown isn't formal enough to describe a prototype ... but we already have a formal definition ...
does hhvm manual get translated in markdown ?
 
7:01 AM
Hi currently I am working on laravel4. I am stuck at one point.. in controller folder I have created my module folder suppose party and I put PartyController.php file in that folder
and now the problem is how can I access that controller in URL?
 
7:15 AM
Good morning pretties
 
Mornin'
 
moin
 
can u guys help..
 
we don't really do laravel ...
 
I don't get the whole new MIT license things, am I suppose to do credits allow use of my code whenever I post a answer now? .o
 
7:27 AM
Is there any open source software that prevents users from selling it?
*open source software license
 
does anybody work with composer satis
?
 
7:55 AM
composer satis?
 
it's fine
i'm following it
@Gordon have you work with satis ?
it's really confusing me though
 
@underscore You didn't come for ESOFT Dev Challenge day?!
 
nope
who is the winner ?
:p
 
Nilupul Kawinda
The pictures are there on the page.
 
web category ?
 
8:05 AM
Ya.
He got 240 likes
or something
-______________-
I gave a long essay to esoft
 
@underscore not really. we had it at one project. its a local cache for your composer stuff. can improve build times in your CI
 
Damn, Composer definitely needs that.
npm is much faster.
 
@Gordon i'm gonna making module based application architecture
i'm planning to use it
 
@Gordon Oh Gordon, weren't you part of some development for some server monitoring tool?
 
#complicatingStuff
 
8:08 AM
npm is for node
 
Yes.
Much better than Composer.
Works blazing fast.
 
like i said it's for node
 
@Epodax yes, APM tool. instana.com
 
@Gordon You're a genius. Can you mentor me pls.
 
How come PDF's fetched from mailboxes cant be sent to ftp storage ? all the pdf files are blank (And the pdf i transferred works on the server its sent from)
 
8:26 AM
@HassanAlthaf Yes, but first go through all of my answers at Stack Overflow so I don't need to start at zero
 
@Gordon Holy mother of fucking cow, that is 2500+ answers.
 
@HassanAlthaf yes, that's gonna buy me some time lol
 
@Gordon lol
I'm pretty sure most are quite old answers.
But yeah, consider mentoring me. I'm a good student. :]
 
I have a baby to mentor though, so you are probably better off from asking your stuff here and learn from the combined knowledge in this room instead
 
@Gordon lol!
 
8:32 AM
besides, the guys and gals in here are at least as genious as I am
 
Nice.
 
not sure if I said morning already, but anyway: Morning!
 
@Gordon I'll see you in a month, and I expect you to be ready with the extra prep time :P
 
@Epodax hehe, I'll have you go through my reading list then to buy me even more time ;)
 
8:49 AM
At some point you'll run out of material :P
 
@Epodax yes, but at that point you no longer need mentoring ;)
 
@Gordon Touché - Well played.
 
@Epodax that's why I am a genius ;)
 
Hehe, sneaky.
 
:)
 
Morning all.
 
posted on December 17, 2015 by nlecointre

/* by Brutalibre */

 
9:13 AM
@JoeWatkins ohh no
 
I dont want instaling something else, i want use mail() function only!!! — Dmitrij Holkin 9 mins ago
I used to be like that :)
 
morning PeeHaa :)
 
@PeeHaa Haha, the stubbornness. Although, it's possible that someone above him is forcing that onto him. Not always the devs choice (although it obviously should be).
 
9:21 AM
186
Q: The MIT License – Clarity on Using Code on Stack Overflow and on the Stack Exchange Network

samthebrandCC-BY-SA is an ideal license for a crowdsourced knowledge base. We’ve benefited immensely from it, our community has gained protection through it, and we look forward to CC-BY-SA continuing to cover prose contributions to Stack Overflow and across the network for all of eternity. But code is a ...

2
Oh yeah. We are going to change the license on our site in two weeks. kthxbye
#wtf
 
@PeeHaa while I appreciate the effort to make taking code from Stack Overflow legally unproblematic, my assumption is no one cares anyway
 
Not sure about that. Or at least people should care
I know I care
 
should for sure. And I have no evidence to prove my assumption. But I'd still be willing to bet that there is tons of SO code in production code that is unattributed.
 
Oh yeah totally
 
o\ o\ o\
 
9:33 AM
@AnmolRaghuvanshiVersion1.0
 
@PeeHaa Little bit short notice, yeah. But I license all my stuff under the MIT license already anyway, so I don't really mind. And everything I post on SE sites is meant as public domain information, I don't expect people to put my name above any of it (although it would be nice ;-)).
 
onim
 
9:55 AM
moni
@Oldskool Yeah but licenses are a complicated beast and giving people time to udnerstand what is happening is a good thing
 
@PeeHaa Yeah, that's true. They should wait with implementing it a bit longer, but I'm guessing they won't.
 
This in combination with the careers merge makes me feel they have no idea what they are doing
@Jimbo OMFG that is so cool
 
I told him I would
:P
 
:D
 
10:24 AM
@JoeWatkins óÒ
What is the point of apcu if it doesn't work with fpm?!
Never mind, I misread your answer
 
10:37 AM
:)
 
11:12 AM
How come PDF's fetched from mailboxes cant be sent to ftp storage ? all the pdf files are blank (And the pdf i transferred works on the server its sent from) --
code: pastebin.com/DpDrSx9k
 
12:04 PM
it's awefully quiet here today
 
Hello Everybody
I want to convert a pdo prepared statement and bind parametter into a procedural one
this was the original thing
```try {
$sql = 'SELECT * FROM items WHERE id > :last_id ORDER BY id ASC LIMIT 0, :limit';
$query = $pdo->prepare($sql);
$query->bindParam(':last_id', $last_id, PDO::PARAM_INT);
$query->bindParam(':limit', $limit, PDO::PARAM_INT);
$query->execute();
$list = $query->fetchAll();
} catch (PDOException $e) {
echo 'PDOException : '. $e->getMessage();
}```
I am not that good with binding parametters in the procedural so i did
$stmt = mysqli_prepare($link, "SELECT * FROM items WHERE id >?" ORDER BY id ASC LIMIT 0, ?)
please what am i doing wrong ?
 
You are using mysqli
 
I like MySQLi
 
Yes I am
 
12:14 PM
It has far better balancing between the upper and lower case letters.
 
1 min ago, by Man Of God
please what am i doing wrong ?
 
How to reproduce the same code with the procedural instead of PDO, I am not too conversant with PDO
 
@ManOfGod you aren't saying what the problem is, which makes it very hard to know what is going wrong.
 
Abe
o/ folks
 
oK My problem is that I want to reproduce this
line of code exactly
try {
$sql = 'SELECT * FROM items WHERE id > :last_id ORDER BY id ASC LIMIT 0, :limit';
$query = $pdo->prepare($sql);
$query->bindParam(':last_id', $last_id, PDO::PARAM_INT);
$query->bindParam(':limit', $limit, PDO::PARAM_INT);
$query->execute();
$list = $query->fetchAll();
} catch (PDOException $e) {
echo 'PDOException : '. $e->getMessage();
}
 
12:15 PM
I understood s/he wants the same code in the try/catch block but for mysqli
 
but in a procedural way
 
@Abe Hey Ape
 
@Gordon Exactly
How can i get that done please
 
@ManOfGod .....Ok. Just follow the examples in the manual for MySQL e.g. php.net/manual/en/mysqli-stmt.bind-param.php
 
<<< psychic
 
12:17 PM
Yes actually I have already read the manual but I did not understand how to get it done
 
Do you actually need something specific from mysqli?
 
Try writing some code?
 
Because it seems to be a downgrade to me
 
Another fine example of community moderation: stackoverflow.com/questions/34334368 .. killed it with fire in < 1min
 
Yes this is what i did so far
 
Abe
12:17 PM
@PeeHaa :B
 
@Oldskool But how am I going to do ORACLE SOA ONLINE TRAINING now?
 
by following the manual i did this
 
@PeeHaa I guess, you don't.... getting SOA's is nasty anyway ;-)
 
:P
 
$stmt = mysqli_prepare($link, "SELECT * FROM items WHERE id > ? ORDER BY id ASC LIMIT 0, ?")
 
12:18 PM
1 min ago, by PeeHaa
Do you actually need something specific from mysqli?
 
@Danack I lolled
 
@PeeHaa Yes I need to bind the parametters just as in the code i pasted previously. The parametters from last_id and limit
 
@ManOfGod what @PeeHaa is trying to find out is why you want to change to mysqli when pdo does most of what mysqli can do, too.
 
But in a procedural way not with PDO because I not much conversant with it and have already developped my whole script with a procedural connection
 
Read what @Gordon said what I asked
As it is now you have something that works and you want to change it because insert magic reason here
 
12:21 PM
@Gordon My whole script is based on a procedural function . If i am to go with pdo then i will have 2 connection opened, my procedural one and my pdo one
 
If Star Trek fans are "Trekkies", what are Star wars fans?
 
@Peehaa And I want to keep only one connection to my db in my script
 
But how did you end up with two?
@Fabor nerds
 
@Fabor Star Wars became boring since Spock is no longer in it
10
though I like that Ewok. what was his name? Mogwai!
 
@PeeHaa That's like the top/first answer for the question on most sites :P
 
12:23 PM
So can you help me find out how to get that done please ?
 
lol @Gordon
 
@Fabor ;-)
 
Abe
@Gordon :D
 
@ManOfGod You're really unlikely to get help here when your request is basically please "write me some code". The manual is a great resource for learning how to use the functions in PHP. I suggest you read it. Feel free to ask specific question, but people here just aren't that predisposed to writing blocks of code for people.
(I can't scroll up to read the backlog....anyone else got that?
 
Abe
review interfaces / method names anyone? gist.github.com/WesNetmo/9f571e7222152227a421
 
12:32 PM
@Danck Thanks. I think maybe i did not rephrase my question well. I have the same problem and can not scroll up. What i wanted was how to bind a parametter in a procedural way because i read the php.net documentation and what i did is not working
 
There are examples on the manual page. Follow them, and then if you still have an error SAY WHAT THE FRICKING ERROR IS rather than just saying it does not work.
 
@Danack Dude. It just no work!
 
is there any icons/logos for php-fpm?
 
@Gordon Nothing official I think.
 
only found this
 
12:45 PM
Probably just "fan art", don't think that's the official logo (but then again, I don't think there is one at all, nothing on php-fpm.org anyway).
 
heh, will use the php logo then. thanks.
 
RoOAOwoAOoAWR
=) did anyone get their hacktober (github/digitalocean) tshirt ??
 
nope
 
Abe
that's one small step for Abe, a giant leap for apekind
 
12:58 PM
last mail I got was the "[DigitalOcean] You’ve completed Hacktoberfest, now claim your T-shirt!"
=/
I wantz
@Abe have a star =)
 
neither did my colleagues
 
Well.. I will take that as good news then
Thanks @Gordon
Maybe abit of info from their twitter
// DigitalOceanVerified account ‏@digitalocean Dec 11
// If you're waiting for your #Hacktoberfest t-shirt and/or stickers, thank you for your patience. They're // in transit!
 
maybe someone hacked the transit company and diverted the t-shirts
 
@Abe lol lovely name :)
 
Abe
@PeeHaa :D
it mostly works, i need to figure out what happens when doing "+$foo" because it doesn't work :\
github.com/WesNetmo/php-popov/blob/master/popov.c#L86 mostly i don't get why leftOperand == &leftOperandCopy is checked
 
1:16 PM
posted on December 17, 2015 by nlecointre

/* by zefigue */

2
 
1:32 PM
@gordon
having problem in print preview in chrome after latest update on google chrom browser
any idea??
 
@Priyank57 random ping is random
 
Random ping about a totally random offtopic thing is random
 
@Priyank57 dont ping me again with random problems please. thank you.
 
@Gordon i understand
 
@Abe wtf is php-popov? :D
 
Abe
1:35 PM
rofl
 
@marcio Only the best name ever for a repo
 
Abe
19 hours ago, by Andrea
@Abe ah, I see this is the source code to @NikiC
 
@NikiC ^ somebody is using your trademark
 
Abe
:D
 
@PeeHaa LOL
 
Abe
1:38 PM
reading about references and pointers now. totally no clue
 
it's much easier in practice ^^
(P)hp (OP)erator (OV)erloading, ok :)
 
Abe
anyway marcio would love you looking at it when you have time :D i mostly did copy/pasta from other repos and messed up something somewhere :B
 
do you have any test showing the bug?
 
Abe
fails with unary operators
class TestClass implements Addition{
	protected $value;
	function __construct($value){
		$this->value = $value;
	}
	function add($other){
		return new TestClass($this->value + $other);
	}
}

$lol = new TestClass(50);
+$lol;
-$lol;
 
this reminds me that I still need to write my operator overloading RFC
though first I need shadow classes
 
1:44 PM
@Andrea presumably, but a quick test didn't show me that. Maybe it's just for udp? no idea…
 
@bwoebi yes, for UDP
it doesn't make sense in the context of TCP
 
@Andrea nothing is mentioning that.
 
@bwoebi look up the docs for Berkeley sockets or WinSock
 
@Andrea why not, at least as long as you control the other IP?
example: server being in control of two public IPs
@Sara they are, they suck in limited ways though, to be precise ;-D
@Trowski weird, do you have a repro case, at least the phpt tests in php-src work fine?
 
1:49 PM
@Abe k, I can't look now (work) but I'll see later today :)
 
@bwoebi TCP is stateful
 
@Andrea oh, wait… it's a target address?
I assumed it were an origin address…
@Andrea and how exactly does that hinder you from having a whole stream over another IP/interface?
 
@bwoebi Cool, I'll take a look in a bit
 
@bwoebi you use a separate socket for that, otherwise the library would have to magically create a new connection, send the packet and disconnect?
 
CODE:
if ($apiResponse->result->result === 0) {		// line:137
	//var_dump($apiResponse);					// line:138
	//exit('XYZ');								// line:139
}

RESULT ERROR:
Undefined property: stdClass::$result (.....xyz.php:137)

CODE CHANGE:
Removed comment in line 138,139

RESULT:
object(stdClass)[113]
  public 'result' =>
    object(stdClass)[393]
      public 'result' => int 0
      public 'reason' => string 'OK' (length=2)
      public 'error' => null

XYZ
can any one help me on this ... this isweird error as the result parameter is still there. But it only outputs when I give exit on next line.
 
Abe
1:53 PM
@marcio thank you very much :D no rush! had to start somewhere and nikic told me this was easy to implement and indeed (mostly) was. will use it to write a wrapper for gmp and bcmath that is uniform to nikic's scalar_objects api i'm attempting to write
 
@Andrea TBH, that's what I expected (via FAST_OPEN, ideally)
 
@TechCare99 Either impossible, PEBKAC or opcache
 
didn't get anything after impossible :D... any suggestion
because this is not impossible. this is what I am getting right now in my code. struggling and debugging since an hour.
 
Abe
// line:137
// line:138
// line:139
no. fu**ing. way.
 
@Abe also, somebody finally started to learn C the :3
 
Abe
1:55 PM
@marcio eheheh :D
 
My money is on that one
I suppose it's in a loop or something
 
2:10 PM
@PeeHaa urbandictionary.com/define.php?term=ID10T keeps nailing it.. Saw a reddit post about it once, guy got fired for using the term ^^
 
:)
 
@Abe You can't assume that the object is the left operand
 
Abe
oh
what actually happens on +$x and -$x ? is the former a void call or something
or is it 0 + $x 0 - $x ?
yeah that must be it..
 
2:27 PM
@Jimbo I can't say that I'm not filled with glee knowing that image will haunt him forever /cc @rdlowrey
 
just picked up van to do move ... pings in the next 24-48 hours might be ignored, sorry about that ...
 
Abe
@JoeWatkins congrats for the new house! :D
 
fanx :)
 
@JoeWatkins Totally unacceptable! ;-)
Nah, good luck moving. :-)
 
hehe
 
2:41 PM
@DanLugg That's why you should avoid having an image of you as avatar… it'll lead people to bad ideas…
 
Is a WordPress guru here by any change? =D
 
2:54 PM
@bwoebi That wasn't a bad idea!
 
@Jimbo It wasn't a bad idea from everyones POV except Daniels ;-D
 
@bwoebi Wait, he didn't find it funny? He said this?
 
dunno
 
Ah, okay then ;P Had me worried for a sec. I remember telling him I'd put his face on-screen and he laughed
 
Knowing @rdlowrey he would have been sad if you hadn't done it ;)
 

« first day (1888 days earlier)      last day (3066 days later) »