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

Abe
Abe
00:46
@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
Abe
01:00
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
01:26
ugh... unsurprisingly, drinking a whoel bottle of wine is tiring.
Abe
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
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
Abe
btw, i had a nice idea for a book some days back
01:37
did you do something with it?
Abe
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
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
Abe
it's scifi :D
Abe
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
Abe
or you could dream more halo&beautybeast crossover
Abe
Abe
two words never used in the same sentence before btw, congrats :D
01:46
I'll go buy another wine bottle and see what happens :)
Abe
Abe
french? italian? :D
it will almost certainly be crap.
Abe
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
Abe
lol
actually with 15$ you can buy pretty decent wine here
must be the same also there then :D
01:49
@Abe I hope that's some memory corruption :-D
Abe
Abe
@bwoebi no it's just zone alarm :D
let's say it begins to be decent
off buying wine
Abe
Abe
later @FélixGagnon-Grenier
Abe
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
Abe
02:03
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
Abe
@FélixGagnon-Grenier memory or disk, do a memtest and a chkdsk
02:18
heh, guess I won't have a choice, before my computer just refuses booting
Abe
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
03:36
@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
Abe
04:08
@bwoebi is there a way to differentiate between ++ and + 1 in do_operation ?
$stuff++ and $stuff + 1
aw that's annoying
04:40
if there is calculation being made on stuff, the ++ vs +1 might change the order in which things happen
Abe
Abe
05:04
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
Abe
hey \o
Abe
Abe
me heading to bed instead. gn phpeeps!
05:20
@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
05:46
@bwoebi Tried compiling 7.0.1 tag, works great. Master, blows up.
05:58
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 ...
06:16
@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 ?
07:01
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?
07:15
Good morning pretties
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
07:27
Is there any open source software that prevents users from selling it?
*open source software license
does anybody work with composer satis
?
07:55
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 ?
08:05
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
08:08
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)
08:26
@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!
08:32
besides, the guys and gals in here are at least as genious as I am
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 ;)
08:49
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 */

09:13
@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 :)
@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).
09:21
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\
09:33
@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 ;-)).
09:55
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
10:24
@JoeWatkins óÒ
What is the point of apcu if it doesn't work with fpm?!
Never mind, I misread your answer
10:37
:)
11:12
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
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
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
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
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
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
Abe
12:17
@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 ;-)
$stmt = mysqli_prepare($link, "SELECT * FROM items WHERE id > ? ORDER BY id ASC LIMIT 0, ?")
12:18
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
@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
So can you help me find out how to get that done please ?
lol @Gordon
@Fabor ;-)
Abe
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
Abe
review interfaces / method names anyone? gist.github.com/WesNetmo/9f571e7222152227a421
12:32
@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
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.
user924016
RoOAOwoAOoAWR
user924016
=) did anyone get their hacktober (github/digitalocean) tshirt ??
nope
Abe
Abe
12:58
that's one small step for Abe, a giant leap for apekind
user924016
last mail I got was the "[DigitalOcean] You’ve completed Hacktoberfest, now claim your T-shirt!"
user924016
=/
user924016
I wantz
user924016
@Abe have a star =)
neither did my colleagues
user924016
12:59
Well.. I will take that as good news then
user924016
Thanks @Gordon
user924016
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
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
13:16
posted on December 17, 2015 by nlecointre

/* by zefigue */

2
13:32
@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
Abe
13:35
rofl
@marcio Only the best name ever for a repo
Abe
Abe
19 hours ago, by Andrea
@Abe ah, I see this is the source code to @NikiC
@NikiC ^ somebody is using your trademark
Abe
Abe
:D
@PeeHaa LOL
Abe
Abe
13:38
reading about references and pointers now. totally no clue
it's much easier in practice ^^
(P)hp (OP)erator (OV)erloading, ok :)
Abe
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
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
13:44
@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?
13:49
@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
Abe
13:53
@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
Abe
// line:137
// line:138
// line:139
no. fu**ing. way.
@Abe also, somebody finally started to learn C the :3
Abe
Abe
13:55
@marcio eheheh :D
My money is on that one
I suppose it's in a loop or something
14:10
@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
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..
14:27
@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
Abe
@JoeWatkins congrats for the new house! :D
fanx :)
@JoeWatkins Totally unacceptable! ;-)
Nah, good luck moving. :-)
14:41
@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
14:54
@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 (3285 days later) »