« first day (2412 days earlier)      last day (2526 days later) » 

12:02 AM
this... does not seem like a good thing independent.co.uk/news/uk/home-news/…
 
12:25 AM
Escaping a digit on directory name – #74641
 
@DaveRandom I would be somewhat reassured, no?
my heart skips a beat every time I see the "Congratulations! You passed an audit" dialog. I never realize I am having an audit. It feels even better when the right decision is to leave open.
 
 
1 hour later…
2:15 AM
someone online?
I am not able to ask more questions, what to do?
 
stop asking questions =p
 
should I delete my other questions?
 
dont think so
I am not really qualified to answer it, but if I remember right deleting does not help
maybe makes it worse
 
yeah I don't want to delete it because it may be usefull for other users
 
3:01 AM
Mornings
 
3:22 AM
@Danack at first I was "oh dem beards!" but then I was "o that escalated quickly.!"
@OtávioBarreto deleting your questions will not help about the ban. All you can do is improve your existing questions. But most importantly, read this meta post.
 
3:38 AM
@OtávioBarreto This question ban is surprising, if I understand correctly. It would seem all your existing questions are ok (upvoted or neutral, accepted answer). Could you have deleted a lot of questions in the past? A 10k+ user could tell by looking at your profile, or @MadaraUchiha if something strange is going on.
 
 
2 hours later…
5:21 AM
moin
 
@Danack Don't listen to @bwoebi, json_decode should throw, nobody wants to write github.com/DaveRandom/ExceptionalJSON/blob/… every time.
socket_client_connect should also throw, but others should not. fwrite will always be used with @, because most people will simply not check the return value, but "failure" happens in a completely normal program.
 
Mornings
 
@Trowski do you have access via tweet deck to announce it?
 
5:37 AM
posted on May 24, 2017 by trowski

This is a release candidate for Amp v2.0.0. Please test it carefully and provide any feedback you have. - Added `isRequested()` and `throwIfRequested()` methods to `CancellationToken`. - Fixed issue in `UvDriver` where certain conditions could ca...

 
6:14 AM
@kelunik I do, but I see you took care of it. :-D
 
6:42 AM
posted on May 24, 2017

New Cyanide and Happiness Comic

 
6:59 AM
posted on May 24, 2017 by CommitStrip

 
github.com/amphp/socket/pull/28 < That makes cancellation so much easier. @Trowski @bwoebi
(RC 3)
 
Wes
David Robinson on May 23, 2017

This morning, a popular Stack Overflow question hit a major milestone:

You’re not alone, jclancy. In the five years since this question was asked, there have been over a million other developers who got stuck in Vim and couldn’t escape without a bit of help. Indeed, the difficulty of quitting the Vim editor is a common joke among developers.

I’ve been told by experienced Vim users that this reputation is unfair, and I’m sure they’re right (even I’ve gotten the hang of it in the last few years). I think there are two reasons it’s easy to forget how to exi …

 
@Wes You are late :)
Mornighi all
 
yes, morning
 
@Wes you are late and you don't read my twitter. I don't know what I find more appaling
 
Wes
7:26 AM
/me cries
 
add "being a crybaby" to that list
 
Wes
:B
 
@Jimboob
 
7:53 AM
@kelunik uhh, won't that give a null deref?
 
@bwoebi Indeed.
Maybe we should add a NullCancellationToken :D
 
@salathe anybody working on fixing the online editor?
 
@kelunik I was wondering the exact same thing … though it would mean an object construction at many, many places … the impact wouldn't be insignificant I guess.
 
@SalOrozco about 20k words with another 10k random articles that I haven't fit in yet
 
Anonymous
8:00 AM
mornin
 
Guys, does anybody know what "cozy" means in this photo? the translator of google translates it a bad thing, but I guess it should be a good thing ...
@JayIsTooCommon YO!
 
Anonymous
> giving a feeling of comfort, warmth, and relaxation.
 
oh .. I see, thx
 
@kelunik I wished we could add such an object to a constant and just use that instead...
 
Wes
@Shafizadeh comfortable?
 
Anonymous
8:06 AM
45 mins ago, by PeeHaa
@Wes You are late :)
 
Wes
fu guys
 
Anonymous
:D
 
@bwoebi We can do that, just not with a constant.
 
@kelunik in that case we could just as well construct a new object ^^
 
@bwoebi Isn't a function call cheaper than new objects?
 
8:14 AM
@kelunik not really
(given the object has not ctor or dtors)
 
Anonymous
@Danack why O.o
 
@Wes yup :-)
 
@Wes my my… late, appaling and offensive
 
@Gordon :D ..! dont be mean ..!
 
Wes
 
8:28 AM
@bwoebi Then let's add it?
 
@Wes can I go home 2?
 
@Shafizadeh hey, don't blame me. the truth hurts sometimes :D
@Naruto ain't you at home already?
 
Wes
what person do you use in comments. is it ok to use "we"? or would that sound strange? impersonal = we in italian (ish). so i'm probably biased. e.g.
// We don't want to do that so do this instead.
// We are looking for $whatever, so traverse the results
 
nope, I'm at work
 
Anonymous
@Wes I use we
 
8:30 AM
@JayIsTooCommon I tought you said qw for a second, that would have been strange ^^
 
Anonymous
you must be seeing things
 
Wes
i tried to go actually impersonal but sounds even weirder
 
@Gordon :-)
 
(removed)
 
(poop)
 
8:34 AM
(from)
 
Anonymous
we're so cool.
 
Anonymous
!!wotd
 
cantankerous: disagreeable to deal with; contentious; peevish.
 
Anonymous
@PeeHaa you smell of peevish
 
Anonymous
I think I used that right.
 
Wes
8:35 AM
lol
 
!!? peevish meaning
 
Search for "peevish meaning" (https://www.google.com/search?q=peevish+meaning&lr=lang_en)
• Peevish | Define Peevish at Dictionary.com - Peevish definition, cross, querulous, or fretful, as from vexation or discontent: a peevish youngst… (http://www.dictionary.com/browse/peevish)
• Peevish | Definition of Peevish by Merriam-Webste… - Define peevish: feeling or showing irritation — peevish in a sentence. (https://www.merriam-webster.com/dictionary/peevish)
• peevish Meaning in the Cambridge English Dictiona… - peevish meaning, definition, what is peevish: easily annoyed: . Learn more. (http:
 
fine
 
Implementing $token-?>throwIfRequested() or $token?->throwIfRequested() in php-src would solve that, too. :D
 
Wes
are stuff like empty else{}'s removed automatically when optimizing? i was wondering if i should do else{ /* comment */ } and nothing else in it, just for cleanness sake
 
Anonymous
8:38 AM
@Wes ew what
 
Anonymous
why would an empty else be clean?
 
Wes
if(){ /* comment code */ code }
else{ /* otherwise we'll proceed with bla bla bla */ }
 
@Wes Anyone can see that you proceed with that. ^^
 
Anonymous
surely a developer would know that it proceeds ?
 
Wes
christ
 
8:40 AM
!!? urban peevish
 
Search for "urban peevish" (https://www.google.com/search?q=urban+peevish&lr=lang_en)
• Urban Dictionary: peevish - "So, i had to put Ol' Yeller down today" "Why?" "Damn thing was peevish as hell and he was pissing… (http://www.urbandictionary.com/define.php?term=peevish)
• Urban Dictionary: #peevish - disagreeable to deal with; contentious; peevish. tempered and quarrelsome; disagreeable. Someone th… (http://www.urbandictionary.com/tags.php?tag=peevish)
• Dictionary of English slang and colloquialisms ..… - A monster-sized dictionary of English slang and British colloquialisms (informal sp
 
Wes
12 mins ago, by Wes
user image
 
If you explain something there, then why, not what.
 
Anonymous
Apr 26 at 8:22, by JayIsTooCommon
yesterday, by JayIsTooCommon
Apr 13 at 14:51, by JayIsTooCommon
@Wes god, you're gross.
 
Wes
i want to explain what happens in the case if is not hit
and the best place to put that comment would be an empty else
 
Anonymous
8:40 AM
but your code should explain that in itself?
 
Wes
why is that so wrong
 
@PeeHaa kinda describes you perfectly I guess? ^^
 
Wes
Comment your code. Code alone smts is not clear enough even for you, please admit it. And it won't make you look dumb #programming
if you don't write comments i hate you
because i'm dumb and i need comments
 
I didn't say you shouldn't write comments, you should.
 
Anonymous
So you mean like this 3v4l.org/Z2vmt ?
 
8:42 AM
But explain why, not what you do.
 
Wes
that was an example. jesus. can we stop this trolling wes session
i'm out
36 mins ago, by Wes
fu guys
 
Anonymous
I genuinely wasn't trolling, I was asking if that's what you're getting at
 
ooooh wait we are trolling @Wes?
I want in
Can I join please?
 
Wes
too late
 
:(
 
Wes
8:46 AM
it is not obvious what happens if the if() is not hit @JayIsTooCommon so i thought to add an empty else to explain what happens if if() is not hit
but of course i wouldn't do that if causes overhead
 
@Wes Show us the real code.
 
Anonymous
Yeah, so like this? 3v4l.org/lWXjG (as an example)
 
Wes
3 mins ago, by Wes
36 mins ago, by Wes
fu guys
 
Anonymous
 
Wes
if(){ /* comment code */ code }
else{ /* explain what happens if if() is not hit */ }
 
Anonymous
8:51 AM
I don't understand the use case, any developer should be able to understand what happens if the condition isn't met.
 
7 mins ago, by kelunik
@Wes Show us the real code.
 
9:19 AM
> Comments often are used as a deodorant [on code smells]. — Refactoring [page 87], Martin Fowler and Kent Beck
4
 
Moin 11
 
Anonymous
yo of the dead
 
Doing well JB?
 
Anonymous
All swell, yourself?
 
Feel the byrne
 
Anonymous
9:25 AM
saucy
 
I've bought a VPS and I'm starting to config it. Do you know should I install which one first?
- Apache
- MySQL
- PHP
- PHPmyadmin
 
I would start with nginx :D
 
I did it :-)
then?
 
And after that postgres
 
@PeeHaa I don't use it
 
9:30 AM
then you dont need apache
@Shafizadeh in that case: mariadb
 
@tereško what's wrong with "mysql" ?
 
!!poop
 
💩
 
:-))))))))))))
 
And oracle
So !!doublepoop
 
9:31 AM
@Shafizadeh mariadb is a "more opensource version of mysql"
 
@Jeeves very funny!
 
@Shafizadeh Can you tell me a joke?
 
@tereško then everything which is working of mysql will be working on the mariadb too?
 
yes
 
good, thx
 
9:32 AM
Who has access to the online editor box @DaveRandom?
 
@kelunik did you meant just socket_connect() ?
 
@tereško also I need both of them. because there will be multiple websites on this server and some of them use apache and others use nginx
 
@PeeHaa Peter probably does, yannick, hannes I would guess
 
@Shafizadeh websites usually dont depend on the exact webserver
 
!!annoy Salathe
 
9:34 AM
@salathe @salathe @salathe @salathe @salathe @salathe @salathe @salathe @salathe @salathe @salathe @salathe @salathe @salathe @salathe @salathe @salathe @salathe @salathe hi
 
@Wes use either we or 'one' if you are a monarch.
> In this function, one calculates the order total and applies any relevant discounts.
 
Does this step important? I guess I don't need it
> step8: add sudo apache2ctl configtest to the /etc/apache2/apache2.conf file to suppress a warning message
 
@Danack No, stream_socket_client
@bwoebi @Trowski Why do we have github.com/amphp/pgsql and github.com/amphp/postgres now?
 
the one thing is native ext/postgres, the other ext/pg I think
 
9:53 AM
@PeeHaa I don't know any more than what is in the emails.
 
I've installed PHP on the server, but CURL doesn't work on the server (while the same code works on the local). Does anybody what's wrong?
 
@salathe :(
 
@Shafizadeh if you have nginx , you dont need to install apache
 
@tereško ok, is there any command to remove everything? I want to start over
 
I don't like how Symfony will enable auto-di and registration of stuff by default in Symfony 4
But you get assholes like this being a dick about it: twitter.com/titouangalopin/status/867316914879594496
 
9:58 AM
@Shafizadeh shouldnt you be working :P
 
yes, there are commands to "remove everything", but your VPS provide also should have "remake whole machine" options somewhere
@Jimbo nobody should be using the entire framework :D
 
snmprealwalk resets oid output format – #74642
 
mornin2 room
 
@tereško all I need was this command: sudo apt-get install curl
I wasn't aware CURL won't be installed by default
 
10:13 AM
@bwoebi @Trowski I added a basic package overview, some packages need better descriptions there. amphp.kelunik.com/packages.html
 
I'm using the PHPStorm extended inspections - anyone know what it's trying to say there?
 
It's saying you aren't passing any params or reusing the prepare handle so there's no point in preparing it
 
@Danack You can directly ->query there, you don't need a prepared statement.
 
Basically it's trying to save you a redundant round-trip to the database
 
ta
 
10:23 AM
wth uuid in core. Is that really needed?
 
@PeeHaa I hope it passes. Means I can finally do the uniqid deprecation RFC. :D
 
How are those things related??
 
@kelunik I just can't take that font seriously…
 
There were quite a few people saying they'd vote against it with no replacement like uuid merged into core.
 
wat
That makes no sense at all
Those two things have nothing to do with eachother
Like nothing at all
 
10:26 AM
how is uniquid related to uuid?!
 
No sense
 
levenshtein distance is small, they are clearly related
like terrorism and tourism
 
Ah, that explains it ......
 
@PeeHaa Well, both create a unique ID.
 
No they don't
 
10:28 AM
seriously though, UUID in core is a useful thing
 
@kelunik well, random_bytes(16) does too
 
uniqid doesn't do that at all
@DaveRandom Could you explain to me why?
 
@PeeHaa It does, with only one system. And that's why I want to deprecate it.
 
@kelunik oh?
 
@kelunik Not even on one system depending on the setup
Either way. Those things are not related
 
10:29 AM
@PeeHaa Yes, except for some Windoof configs.
@bwoebi It sleeps a very short time to ensure that. ^^
 
@tereško one question, why already did you say: to config a VPS takes half day? I did it in less than 1 hour
 
@kelunik no
nix is also fucked...
 
@kelunik uhm… that is no guarantee...
 
@PeeHaa mostly because people are forever writing and using incorrect userland implementations. I have used UUID generators in PHP loads of times, Windows is full of UUIDs, LDAP is full of UUIDs, quite a lot of systems use them for a lot of stuff. It just happens that the majority of the tools in the PHP eco-system don't.
 
that just makes it unique on a same server @kelunik
 
10:32 AM
@PeeHaa Well, in one process. ^^
 
They are really useful in data warehousing applications because you can construct data dimensions ahead of insertion, instead of needing to create a reference record to get a database generated ID for relating them
 
@bwoebi that's what I said.
 
that's not unique...
 
@Shafizadeh so the PHP works on your webserve? Have you set up vhosts? Have you set up login with private key? Have you set up accounts for DB?
 
that's bullshit.
 
10:33 AM
if I am not mistaken, you have just installed the software
 
@bwoebi That's why I want to deprecate it.
 
hi. I have array in my file ['test'=>$test], how can I get name $test not value?
 
@tereško then which part should take lots of time? Installing linux for example?
@DaveRandom I never understand what's the relation between that animal kind of cat and the programming one.
 
@Shafizadeh you mean the linux command cat?
It's an abbreviation of "concatenate"
 
10:45 AM
@DaveRandom oh I see
Is there any other "cat" in the programming?
 
@kusanagi use PhpParser to parse file and traverse through Nodes
 
@kusanagi why do you want to do that?
 
@Danack I have very big array and want to collect names of variables
 
@kusanagi that sounds .....like a bad problem to have. If your code is too big to just see all the variables at a glance, something has gone horribly wrong. However secure.php.net/manual/en/function.get-defined-vars.php might help.
 
@Shafizadeh configuration
 
10:52 AM
@tereško well when you buy a vps, it is configured I guess.
 
no, I mean the configuration of the various software, that you install
 
ah ok
 
11:11 AM
@kelunik The thing is. If anybody is even implying that uniqid is in any way related to uuid's they are doing it wrong and whatever they say should 1) be ignored and 2) is reason to punch them in the face for being bad developers
 
someone should invent a programming language called bad
 
it'd have so many developers
 
"hey, what are you doing?" "I'm a Bad developer" "Oh I am sure, you are good" "No, really, I am a Bad developer"
 
@PeeHaa There are use cases where it's fine, e.g. @Ocramius mentioned he uses it in tests for test IDs. But those could be replaced with either random_bytes or UUIDs.
 
@kelunik There is imo not a single valid use case
Actually the only valid use case I have is showing how bad php is
 
Anonymous
11:14 AM
@Gordon pfft as if someone would say you're good
 
@PeeHaa Even if there is, there's something better to do instead.
 
Yeap. Just sneak the PR in :P
 
no PR, just push to master
 
@PeeHaa Unfortunately requires a RFC. :P
 
@kelunik You are sneaking wrong :P
 
11:15 AM
or replace uniqid() implementation with return random_bytes()
 
Even that would be better
 
zend_read_static_property returns &NULL for extending classes – #74643
 
@Jeeves do you think I am a good developer?
 
@FlorianMargaine That's a BC break, better just deprecate + make people use the right thing.
 
Wes
Thank you, @HipHopVM, for the kick in the butt that kickstarted the development of #PHP7. Besides that, I no longer… https://twitter.com/i/web/status/867338003567521792
 
11:15 AM
@Gordon I haven't heard your voice yet.
 
Wes
#thug
 
@Jeeves am I a good developer or not?
 
@Gordon Yes you are a very good girl.
8
 
@Wes Aaaaand another one down
 
@Jeeves I am not a girl
 
11:16 AM
@Gordon You just said you were.
 
@Jeeves no, you did!
 
@Gordon You're either lying or very confused.
 
Anonymous
I like Jeeves.
 
@Jeeves You are either lying or very confused!
 
@Gordon I would never lie to you.
 
Wes
11:16 AM
@PeeHaa i'm not happy. competition is always good
 
@Jeeves you just did!
 
@Gordon You're mistaken.
 
@Jeeves You are broken!
 
@Gordon No I am not!!!
 
Wes
hhvm still has a bunch of things php sucks at
 
11:17 AM
@Wes Yes agreed, but from a library / project maintenance POV it doesn't make much sense
 
@Jeeves yes, you are!!!1
 
@Gordon No, I am a girl.
 
@Jeeves Right. Good, we sorted that out.
 
@Gordon Ok.
 
so let me ask you again
 
Anonymous
11:18 AM
ah god
 
@Jeeves am I a good developer or not?
 
@Gordon I have no idea. I'm guessing not.
 
hehehe
 
pfffffff
@Jeeves who is a good developer?
 
@Gordon I am a good boy!
 
Wes
11:18 AM
@PeeHaa if projects don't support it hhvm can only die
 
@Jeeves you just said you are a girl
 
@Gordon @‌jeeves you just said No you are a girl
 
@Wes Yes
But my remark still stands
Open source takes time to maintain
So unless somebody steps in because they want/need to support hhvm it makes no sense
 
Wes
i don't think it takes much effort to support hhvm that's what i think
not supporting it on purpose is stupid
 
@Wes How many oss projects do you support? :P
 
Wes
11:20 AM
perhaps you need a fix every 1000 lines
i hate you
but i am right
 
hehehehe lol
 
@Wes have you read Fabien's post?
 
Dat conclusion ;D
 
Wes
nope @FlorianMargaine
 
Please do before commenting.
 
Wes
11:21 AM
link?
 
It takes 2 minutes and the justification is sound.
@Wes you provided it...
 
Wes
oh that. i didn't even see it. stopped reading after sebastian
ok but it's sad
not because i care about hhvm, but because php will go back being lazy
 
if ($http_status == 404) {
      // Skip error handling
     // Apparently their api returns 404 for valid empty result sets
}
............................asdapsd[asdk[aspdk[aspdk[aspkd[asjaifhohs[f
 
Wes
lol
 
@Wes I feel like the role of HHVM within the PHP 7 development is greatly overestimated…
 
11:47 AM
mornings
 
> and adding only insufficient random
Sounds a bit broken
random what? dave?
:)
But other than that. Yes please
 
"...and not making sufficient use of randomness sources"
I am acceptable for use with uniqid(), but I am not cryptographically secure.
 
:P
You are a fucking great source for random stuff
:D
 
Wes
11:59 AM
@bwoebi maybe you are :D
 

« first day (2412 days earlier)      last day (2526 days later) »