« first day (2070 days earlier)      last day (2894 days later) » 

12:05 AM
@Sara Do you happen to know how HHVM avoids stack overflows when destroying deeply nested object graphs?
 
@Danack This God-Forsaken country has been hotter than a suicide bomber's armpit lately...
 
It's not hot.....just humid and we haven't researched "Aircon" technology yet.
 
@NikiC Not really, no.
 
Today's weather: Hot grey
 
12:32 AM
@Wes thx buddy
 
Adi
1:23 AM
mornin
 
1:36 AM
oi
 
2:14 AM
cya kids
 
Adi
how can i make my website more faster when loading specially in image?
 
@Adi Have you tried giving it more fast juice?
Or just use hasmterd
 
Adi
@Sherif what is fast juice?
 
Juice that makes things faster.
 
Adi
2:29 AM
orange juice? like that?
LOL
 
 
1 hour later…
3:49 AM
Moin
 
4:12 AM
mornin
Was wondering if anyone here could take a little time and chat with me to help me understand how to use an api for an app called Wodify. I'm trying to pull in the Workout of the Day and added it to my website. Like this.. wodify.zendesk.com/hc/en-us/articles/…
 
4:47 AM
moin
 
@JoeWatkins o/
 
#PHP 8 is just going to be #PHP 7, with some extra exceptions ... also, it may be available next week.
 
Sigh, have to refund my router on eBay because apparently the 5ghz signal keeps dropping. Sounds like BS to me -_- what a waste of postage.
 
you know, that can easily happen in built up areas ... there are a limited number of channels at any frequency, they all use a certain bandwidth ... in built up areas there can easily be too many to fit ...
use a wire ...
 
Yeah, I am sure the router is fine but what can I do, have to refund the guy. And apparently I have to pay the postage.
 
4:54 AM
monin
 
ebay sucks for that ...
'nin
you could try to help him configure it ...
find out what channels are used automatically ... usually routers will not use all the channels, so just select a really low/high (depends on router and what is around) channel and it may work ...
 
Already refunded now. Will just get it back, test it to be sure and not relist it. Hopefully sell it locally.
 
yeah maybe better on gumtree or something
 
£50 item which cost £10 to ship + £3 to return. Doesn't feel like it's becoming worth it.
 
ebay is always like that though ... plus fees, right ?
 
4:57 AM
Yeah. Was okay for some other stuff though. C'est la vie
 
whenever I try to sell anything on ebay, I just get bombarded with obvious scam emails ...
 
Okay I think I figured it out, but how would I continue to update the date to the current date in this line? Needs to be in YYYY/MM/DD format.
`$response = GetWODs("112233445566778899", "06/15/2016", "FitnessPlace", "Crossfit", $json);`
 
WoD doesn't even make sense. It should be WotD or WD
"Workout of the Day"
 
yep Work out of the day
I guess WOD sounds cooler than WOTD
 
!!docs date
 
5:01 AM
[ date() ] Format a local time/date
 
"06/15/2016"
 
@JoeWatkins Right... the noise about potentially breaking crap code is frustrating.
 
so annoying
!!rfcs
 
@⁠PeeHaa error has been logged. Fix it fix it fix it fix it.
 
Hmmm, okay what would go in between the two double quotes for the date?
 
5:06 AM
I'm not going to do it for you, you need to be able to figure it out ...
or else be a baker or a farmer or something ;)
@Jeeves /me throws burning sheep at @PeeHaa
 
@JoeWatkins lol okay point taken
 
@JoeWatkins Everything for 7.1 should be merged by July 4th, correct?
 
beta one, tagged 2 days before release ...
so, yeah ... tagged on 5th ...
walking dogs, afk ...
 
Thanks, that's helpful. Didn't know that page even existed.
 
mornigotj
 
5:19 AM
@JoeWatkins date("Y/m/d") that seemed to work.
 
Wes
5:35 AM
hodor \o
 
\o
 
nin
 
@echo wasn't so hard ...
'nin new peepz
 
@Fabor heh, I knew which song that was before I clicked it :)
 
Wes
5:45 AM
espn.co.uk/f1/story/_/id/16221299/… the new azerbaijan F1 (360km/h) city circuit doesn't look too safe
if cars crash there they will crash in the buildings and in the people's houses. lol
but that bit of track near the medieval tower is too cool
 
@tereško it doesnt say whether it's tears of joy or sorrow, so you are probably right
 
@JoeWatkins no, just had to think for a minute. Thanks for the push.
 
do you wanna adopt pomodoro method? then install a phpstorm and don't install key
 
rofl… it's funny because it's true
 
Wes
5:49 AM
:P
 
I don't get it
 
pomodoro asks you to split work in 30 minute chunks, then pause for 5, write down what blocked you and continue. phpstorm w\out a license will exit after 30 minutes
 
I get it
 
Wes
lol
 
I never heard of that ...
 
5:56 AM
30mins?
not 30 days?
 
Wes
that's the eap
 
omg, you're supposed to use a timer ...
this is my idea of hell ...
 
@tereško check gmail
 
and even the eap will exit after 30 minutes after you used up your 30 days
 
5:58 AM
> The method is based on the idea that frequent breaks can improve mental agility
 
@JoeWatkins yeah, the timer is where it got it's name from.
 
he wasn't a programmer, was he ?
 
tell that to the employer. he'll tell you about a new cucumboro method - 18h of work and then you take a 6h break for sleep, rinse and repeat
 
> The creator and his proponents encourage a low-tech approach, using a mechanical timer, paper and pencil. The physical act of winding the timer confirms the user's determination to start the task; ticking externalises desire to complete the task; ringing announces a break. Flow and focus become associated with these physical stimuli
lolwut
he hates that @Saitama
 
:P
 
6:04 AM
@SergeyTelshevsky the cucumboro method? isn't that when your boss is standing behind you with a cucumber, telling you to finish that task NOW, else… well… ELSE
 
sounds like it would work better ...
 
IIRC, @Jimbo has experience with that
Apr 4 at 15:33, by Jimbo
user image
3
yupp, he does.
 
Wes
AHAHAHAH
 
6:25 AM
Good morning all you pretty things and happy prebecca day.
 
@SergeyTelshevsky that translation, that image you sent, is pure gold :D
 
o/
 
\o
:31176760 shh...
 
but keep in mind that nobody really knows what OO is anyway…
 
6:36 AM
!!urban oo
 
[ o.o ] Depending on if there are caps, or where they are/how arranged, here we go on text exotes: 1.) o.o : blank stare, as in "You've just lost me" Or "I care about this...Why, again?" 2.) O.o ; o.O : Confusion, usually used together. 3.) O.O : Suprise, shock.
 
ez, OO is confusion, OO is shock
 
I usually use o_O for confusion.
 
and OOP is singular for "oops"
so you can say I'm an OOPs developer
 
or O.o
 
6:39 AM
> I know all of the OOPS in PHP
@Gordon also OOPs development goes great in sentences with cucumboro
 
I have lots of Oops'es in my code
Colleague: "hey, you forgot a semicolon. it broke the build". Me: "Oops"
 
Someone who can give me a little assistence with this: pastery.net/kcsxgr
Im trying to setup a sql query to remove some records base on a ID and a field in an other table. so far so good, but Im not yet able to add the 'specific field' to my query
 
Wes
how do i go multiline on command line parameters to php.exe?
 
user image
7
 
@Wes have you tried \ ?
 
Wes
6:49 AM
@SergeyTelshevsky yes, actually, it's not php.exe params but phpunit's
 
@tereško cats will be cats :D
 
box
 
'nin
 
ako
7:07 AM
hi there
i have a chat room in php
i want when user types a word
instead of the word
show an emoji to the user
for example when (s)he types "hhhhhh"
instead of each three "h" a smile emoji
be shown
what is the best way to do this
and how to save emojis??
and retrieve them??
 
just use slack… or hipchat
 
ako
@Gordon what are these??
 
Wes
just use pigeons... or smoke signals
 
@Gordon :)
 
@ako proper chats where all your current and future problems have been solved already
 
7:11 AM
Oo
SELECT * FROM app_id_3 WHERE id NOT IN (SELECT registratieID FROM app_id_4 WHERE oorsprong = 'StackOverFlow')
Why .. oh why is that 'oorsprong' where clause beging ignored ><
 
ako
@Gordon but i want to implement it
what is the best way to implement that
??
 
if i were you, i would replace special keywords with emojis on front-end side
 
Wes
@ako check str_replace(), strtr() or preg_replace()
 
ako
@Wes but i think connections to the database will be very much and sth bad
i there a way to download emojis to the user's system and then load them from there???
 
you should put your emojies somewhere and call them through user's browser
 
Wes
7:18 AM
no. also in browsers there's a thing called cache
 
and if you set a cache heards for your images
 
oooooor… just use slack… or hipchat… where all your problems have been solved already ¯\_(ツ)_/¯
 
then images will load from user's computer
 
@JoeWatkins Sorry about that. The number of rfcs exceeds the character limit of chat :)
Mornign
 
i guess @ako will be competitor to slack @Gordon
:p
 
7:20 AM
@PeeHaa o/
 
Wes
mornings
 
ako
@Gordon i'm a new to php and i want to learn how to write apps or code with it..that why i want to Implement it for myself
@AdilIlhan i think it's not efficient to call emojis everytime from database
 
yea
so that's why you should handle them on front-end side
 
ako
i'm wondering how to handle them
 
moin 11
 
7:25 AM
morning
 
Morning
 
Anonymous
Mornin sisters
 
!!should i die or live
 
You should die.
2
 
Anonymous
aw <3
 
7:33 AM
:P too much care Jeeves
 
Wes
7:51 AM
twitter is so dangerous for work. clicked a php thing link, got asses in thongs... i've enjoyed them, but just because i work from home :B
 
@Wes Not only Twitter, pretty much any link on any social network should be considered NSFW.
Maybe LinkedIn being the only exception to that rule.
But even there you need to be cautious.
 
guys, i have a code block like this: paste.debian.net/hidden/8cb2b446
 
Wes
because 1 star wasn't enough
 
i would rewrite this codeblock with array_map or array_walk
 
7:58 AM
:P
 
@PeeHaa Hehehe, yeah okay .. even LinkedIn isn't safe.
 
Wes
:P dammit peehaa!
 
is there any suggestion?
 
:-D
 
Wes
@AdilIlhan why?
 
7:59 AM
@Wes I second that. Code seems fine as it is. You could refactor, but it wouldn't gain much.
 
actually i don't write much loop. i prefer array_map or arraw_walk to loops
because array_map/walk so simple
 
Wes
Feb 3 at 7:51, by Wes
but honestly i don't know why you guys are so infatuated with array_map and things. i usually just use foreach
 
i couldn't replace this code block with array_map though
@wes
you should read refactor to collections :)
@wes
it is nice book
 
Wes
will read it
 
also i hate write "else" block
 
8:02 AM
@AdilIlhan Yeah, you should avoid that when possible (and it usually is).
 
@AdilIlhan I asked about that yesterday. any particular highlights?
 
i didn't get it @Gordon
what do you mean?
 
24 hours ago, by Gordon
anyone got http://adamwathan.me/refactoring-to-collections/ and can recommend it? I only found the review here http://www.brandonsavage.net/book-review-refactoring-collections and while I like Collections a lot, I wouldn't agree that this particular example is easier to read, helps reduce complexity or cannot be just as easily achieved with native php, e.g. with array_map, array_filter or array_column.
 
morning
 
hey @Sjon o/
 
8:11 AM
\o
 
0
Q: How can i rewrite this code block with array_map or array_walk?

Adil IlhanActually, I don't like write for/foreach. I had to write a loop. I would like to replace it with array_map/array_walk. Does anyone have an idea? The code: http://pastebin.com/5rHEJjK7

 
Morning @Sjon
 
yeah some array_map functions aren't readable @Gordon
array_combine(array_map(function($key) {
return ':' . $key;
}, array_keys($set)), $set);
for example this..
 
@PeeHaa started with running only the latest version in your bot yet? I wonder if the json is complete :)
 
but collections class is so simple
you can write simple code blocks with collections and array_map
@Oldskool the highlight is not working on stackoverflow
so that's why i shared a pastebin.com url
:)
 
8:16 AM
Eh, it works when you tag your question with
SO is smart enough to figure it out ;-)
 
i already have php tag
 
Yes, and I also see highlighting because of that.
 
i accepted your changes anyway
0
Q: How can i rewrite this code block with array_map or array_walk?

Adil IlhanActually, I don't like write for/foreach. I had to write a loop. I would like to replace it with array_map/array_walk. Does anyone have an idea? The code: foreach ($data as $key => $value) { if(isset(static::$specialKeywords[$value])) { unset($data[$key]); $check['specialK...

ah yes
 
Wes
@Gordon i totally agree with you. reading map, filter and stuff even in other languages gives me headaches. it's not more readable at all, or at least, it's subjective
 
i think the highlight is not working on "preview"
 
8:18 AM
@Sjon Nope not yet. I will do it tonight if you need me to verify it :) Will ping you when done
 
No worries, I don't need it, was just interested :)
 
Wes
ehy Sjon \o
 
hey Wes!
how's the redesign going? :p
 
Wes
@AdilIlhan the fact that you are not able to write it is a clear sign that foreach is better, imho
 
Anyone played with satoshipay.io/#demo ? Seems kind of cool
 
8:21 AM
What's the canonical source of php-uv? And why ain't bwoebi's a fork of chobie's?
 
!!wotd
 
cater-cousin: an intimate friend.
 
Wes
@Sjon great, will finish it within this century!
:P
 
@Wes haha, nice :)
 
Wes
i want to do too many things... and i accomplish none
 
8:22 AM
I'm still happy with the logo btw
 
Wes
yeah luckily the logo was 2 minutes work :P i could finish that
 
maybe I'll print some t-shirts and mugs with it, see if I can sell those
 
TIL: japanese sex dolls are called dutch wives
!!urban dutch wife
 
[ dutch wife ] n. Blow-up doll. Orig.: Dutch people use body-length bolsters to sleep with...or so they claim.
 
@PeeHaa ^
WHY???
 
Wes
8:24 AM
@Sjon would buy them, but with some funny joke would be even better :D
 
Well, maybe I'll include a few submitted php-scripts and their output. Those can be funny as well
 
@Gordon That's how we roll
 
One day I might count the number of times I missclick and open sublime text. Gotta be in the 10s
 
Hi , bye
 
\o
 
8:51 AM
do you mock concrete dependencies in unit tests or just use the concrete classes? (yes I know it's better to depend on abstractions)
 
@Patrick depends on the dependency. I usually only mock them if they are not Value Objects or very tightly coupled parts
 
Wes
@AdilIlhan still filter and kind of stuff would be better for mutable collections. for example $vector->removeBy($predicate) is much better than java's foreach($i = $vector->getIterator() as $v){ $i->remove(); }
 
Wes
lol. still java7 here. haven't checked latest additions :P
 
8 is pretty decent
with lots of lambda stuff
 
9:05 AM
@Sjon @Wes Do you have the logo in high res?
 
Wes
idk, checking
 
@Sjon What does cursive font mean for runs @ recent?
 
@kelunik that's a hidden feature ;)
 
Wes
@Sjon this the largest i have imgur.com/ylv8qkA not vector
 
<td>{if ($this->row->runArchived)}<i>{/}{row->run}{if ($this->row->runArchived)}</i>{/}</td>
 
9:09 AM
@Wes Top point must be adjusted to green I guess :P
 
That template syntax.....
 
Wes
yep :P
 
shudder
 
Yeah; I know.
I'm sorry you had to see it... :P
 
Wes
@Sjon do you want me to convert it to svg? don't have much time atm, i'm trying to finish some php stuff... even if i'm clearly already procrastinating :B
if you want to print tshirts you're gonna need ai/svg, no matter how simple it is
 
9:12 AM
@Wes Ah, no I can do that myself. It's not a problem
 
Wes
ok, should be easy :P
and remember to use a snap grid :D
 
print-screen > crop > cheapest-enlarge = done
 
Wes
rofl
ok i'll do it :P
 
9:23 AM
I thought of a bad pickup line for devs. \o/
Hey Baby, wanna be treated like an object? ;). Value object.
3
 
Do we have any ELK stack guru's around today? (especially the logstash bit?)
Need to know if it is possible to direct a log entry to a specific index based on a specific property/value
 
Wes
@Sjon do you have inkscape?
 
I have the Gimp
That Dont Impress You Much
 
Anonymous
@Fabor
 
@JayIsTooCommon Good time to mention I am single.
Pinch of salt and all -_-
 
Anonymous
9:30 AM
xD
 
Nice, thanks!
 
@Fabor singleton, I hope?
 
Oop :X I like it. +1 Sergey
 
@Jeeves yeah, that's quite cool :p
 
9:39 AM
@AlmaDo I know right!
 
@tereško gc in action ;)
 
10:06 AM
@Fabor You've got class!
 
Ah-thank you for your contribution :P
 
Wes
10:21 AM
guys, i have two mock classes with the same name that i'm using in two different phpunit test classes. i'm getting "cannot redeclare class x because the name is already in use". is there a way to execute tests singularly in phpunit, without it attempting to load all the things first?
 
Wes
can i have it per file?
 
why does is raise the error anyway? how do you include the mock classes?
 
Wes
with a plain require()
 
wouldn't a require_once fix this then?
 
10:28 AM
o/
 
afk… lunch
 
Someone a 'fast' fix for a sql to excel export? I have the query with all fields etc etc
 
Wes
nope. i have
c1.php that contains class Foo{ /* different from following */ }
c2.php that contains class Foo{ /* different from previous */ }
same name different code, i'm just require'ing one or the other, but apparently once i loaded the first i can't load the other, because phpunit runs all tests at once
 
@Wes there's an option to run tests in separate processes that might solve that for you
 
@Wes if its different classes, give them different names. or put them in a different namespace or something. or just use the mockbuilder.
 
Wes
10:40 AM
process isolation doesn't seem to work :B
yeah @Gordon but it's not just one class, it's several symbols
but nvm, i'll use different names
 
@Duikboot pma?
 
957
A: How to output MySQL query results in CSV format?

Paul TomblinFrom http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/ SELECT order_id,product_name,qty FROM orders WHERE foo = 'bar' INTO OUTFILE '/tmp/orders.csv' FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n'; Using this command columns names will not ...

Or perhaps better mysql --batch, -B
tabs > commas
 
11:03 AM
No CSV :P fur mich it needs to be XLS
 
No it doesn't
csv/tsv can be opened by excel
 
I know but I did that already but then people said: hey hey hey you Duikboot provide us an Excel (csv) where all data is in 1 cell... and then other people say hey hey! yo! Duikb00t it works perfect. ....
 
Err, need more coffee.
 
But Hey hey not all people know there is a 'delimiter' that has a default setting in their excel...
So... Im looking for a good way everyone can open it, in a good format.
 
@Duikboot That's why I said to use tabs instead of commas
Also there is no way in hell mysql itself is going to output excel :)
Alternatively use phpexcel. It's pretty decent
 
11:12 AM
PHPExcell From maatwebsite
 
11:27 AM
http://stackoverflow.com/questions/37831131/getting-product-collection-sorted-by-minimum-price

Plz help over this
 
Wes
11:43 AM
is it ok to say that a class member is "invisible" when it's private?
 
If you can see it's there, is it invisible? 3v4l.org/TTDGI
 
@Wes Not really.
 
Wes
invisible.... to incompatible contexts
 
Evenin'
 
Wes
or using "not accessible" is better?
yo \o
 
11:47 AM
@Wes need some frontend (or jquery halp)!
 
Wes
i don't do jquery. only dom
 
Kat
@Leigh Catan?! OMG! ASAP! :D :D
 
:D
@Kat well I'll let you organise with @Danack when you're both free, then let me know
 
Wes
@Saitama i'm a pro, not a jquery artisan kiddo
 
11:48 AM
(if he wants to that is)
 
Minimum 3 for Catan anyway
 
Kat
Yup! I'll see him tonight at the web perf meetup, will chat about when he's free
Yeah, Catan with 2 is no fun
 
:P
 
You guys should learn to play a real board game like Go
 
Kat
does backgammon count as a "real board game" or not? :P
 
11:50 AM
Negative. Go is the only board game. Go is love, Go is life.
 
Kat
I agree with you if we're talking golang :P
I'd happily learn Go, never tried it but heard good things!
 
I've heard it involves way more thinking than I'm prepared to invest
 
Kat
A guy I know moved to Japan for a year just to learn Go, so it must be good :D
@Leigh lol :D
 
Go is a beautiful game. It's no where near popular enough. Though risen lately due to DeepMind
 
Kat
11:53 AM
Great, there goes my lunch break :P
 
Worth :P
 
$arr = [1] => [2] => [3] => [4] => [5] => [6] => [7] => [8] => hello[9] =>h [10] =>f [11] =>f [12] => hai
unset array values before 7
?
 
@Crysis array_slice?
 
any examples pls
 
!!docs array_slice
 
11:59 AM
[ array_slice() ] Extract a slice of the array
 

« first day (2070 days earlier)      last day (2894 days later) »