« first day (2327 days earlier)      last day (2621 days later) » 

10:00 AM
@Stephen wget …
 
@Stephen lynx
 
@MohamedNagy A script that runs every minute or so over the database for values that weren't handled and sends an email
 
@MadaraUchiha you means cron job, i think its not a good choice because the remainder should be sent based on the time that user send a value, cron job every minute will be a cost
 
@ShobhakarTiwari then start your debugger, set a breakpoint and step through the code
 
@MohamedNagy How much does it cost?
 
10:03 AM
use Queues
 
@MohamedNagy You can't do this with Laravel.
PHP is sync, it can't execute things "later" without blocking the whole thread.
 
@Pee
 
@PeeHaa depends how ~~crappy~~ cheap your developers are
oh
no strikethrough>
:(
 
@MadaraUchiha well ...
 
10:04 AM
---foo---
 
can somebody guide me on how to setup a cron job in code igniter or if he or she can point me to some readlly nice tutorial. Thanks
 
Your options are either to use AMP or some other async framework for PHP (which doesn't play nice with Laravel), or opt for a different stack altogether, like NodeJS which can accomplish what you ask rather simply.
@JoeWatkins Yeah, yeah, I mentioned it.
 
Anybody know what does 1 means with my picture
 
@Gardezi you don't setup a cronjob in laravel
 
nope I never did any work in laravel
 
10:04 AM
@Gardezi You don't setup a cron in PHP either
 
you setup a cronjob that calls something potentially built in laravel
 
cronjob is an OS level thing
 
its an OS thing :facepalm:
 
@PeeHaa, the cron job will run every minutes even there is no values being added
 
Anonymous
@Wes If you need a hug... @JoeWatkins is always looking for love.
6
 
10:05 AM
@MohamedNagy So?
Again. what does this cost you?
 
@JoeWatkins i may be an heretic for even suggesting this, but I do appreciate GUIs for git (ie. SmartGit) as it makes it really hard to make some mistakes. Everything is in your face as you go.
 
Wes
@bwoebi @kelunik can we allow redeclaration of abstract methods in subclasses, for future better improved variance? 3v4l.org/XFgHP even today without variance, it would be useful to have so that we can at least annotate the changed type 3v4l.org/IOJbu
 
if you try to hug me, I'll punch you in the throat
6
 
@pmmaga GUIs are fine as long as you know what's going on underneath.
If you GUI does magic stashes and automatic merge conflict resolution attempts, I'd turn away.
 
@Wes I see no issue with that.
 
10:06 AM
this "developer not understanding system management" stuff is not new, but these days its fucking championed as "devops". FML.
 
@JoeWatkins :P
 
@MadaraUchiha completely agree! hidden magic always sucks
 
i can't grantee if it will be accurate, and i the reminders times is not fixed , first reminder will be after 5 minutes and the second will be after 2 minutes
 
Anonymous
^^ can I pin this to get some 11ers on board
 
Wes
10:07 AM
@bwoebi but it is a massive change, right :P i feel guilty for asking you guys stuff...
 
To be fair, the only thing that's sorely lacking for me in my IDE's very simple Git integration is a 3-way merge tool.
 
Wes
@JoeWatkins <3
 
VSC has no conflict resolution tool like WebStorm/PhpStorm does.
 
@MadaraUchiha magic stashes are fine to some extent, magic merges definitely not
 
coming from shared hosting , I do remember trying to use the traffic of the site , to trigger some things .
 
10:08 AM
@JayIsTooCommon Sure. You are RO
You can do whatever the fuck you want
 
@Vamsi That's a horrible solution.
 
I don't think a gui would help me with git, graphical things confuse and annoy me
 
@JoeWatkins Maybe I like that?
 
@Vamsi That's what wordpress does :P
 
Uhh
 
Anonymous
10:08 AM
@PeeHaa I'm going to make 11 great again.
 
\o/
 
@JoeWatkins The only graphical thing I really want is diff and merge tools.
 
Anonymous
@PeeHaa also book your tickets.
 
The text version makes it incredibly hard to find actual differences, especially when that difference is a trailing space or a single letter change.
I'll happily do everything else from the CLI.
 
Anonymous
10:10 AM
@Gordon sorry, I don't know who you are without the blue g.
 
You are going to hate me for this @JayIsTooCommon, but I am looking at phpserbia
Which is the month for that
So not sure yet
 
Anonymous
Madara sucks.
 
inb4 still flags
 
you have to come to phpsrb, I'll be there ...
 
@JayIsTooCommon I know I know
 
10:11 AM
@PeeHaa Whoooo
 
It's just that thinking about where to go is kinda hard for me now
 
@JoeWatkins Whooo
 
@JayIsTooCommon huh, it's there? clear your cache or something
 
HR doesn't like when I take anticipated paid leave rather than unpaid leave…
 
Anonymous
10:13 AM
weird
 
I don't have the means to go on unpaid leave you cunts…
 
what is unpaid leave ?
 
@JayIsTooCommon weird
 
@JoeWatkins Start your own business and you will find out :P
 
business is for chumps
 
10:16 AM
@JoeWatkins when you take a day off, but you've got a salary deduction
(I just learned that apparently UK residents pay their taxes automatically on their salaries)
 
MGE
Hey, hello I have a question
 
Anonymous
@Jimbo Can't remember if you're coming to south coast or not?
 
@JayIsTooCommon Nah can't afford this one
 
Guys, having a brainfart
How can I simplify (B && A) || !A?
 
@PeeHaa remember I had the problem with sending a badly formed XML to the 3th party software?
 
10:19 AM
@MadaraUchiha err, try something with De Morgan's law?
 
@MadaraUchiha !A || B
 
@Naruto Yeah that binary stuff
 
Anonymous
@PeeHaa England is closer.
 
@JayIsTooCommon It is for me
 
Anonymous
10:21 AM
@Ekin ughhhh
 
@PeeHaa they added a control function on their end, but if it fails now, they just send you an empty reply, no error, no nothing, just empty...
 
@JoeWatkins Right, cheers.
 
:P
 
Anonymous
@Gordon Former presidents keep the title, don't they?
 
@Naruto hey. That sounds like the thing I am working on right now
brofist
 
10:23 AM
@Gordon Now I'm convinced we're in an alternate timeline
 
@PeeHaa what are you doing?
 
@JayIsTooCommon do they? the entire article says "former president" or just "barack obama"
 
@Naruto implementation of soap api of a medical supplier
I hate soap so much
 
Anonymous
@Gordon I think so quora.com/…
 
@JayIsTooCommon interesting
 
10:26 AM
@JayIsTooCommon Also it's not the distance even afaik
 
@Gordon I think that's an american thing. From what I have observerd, the "president" title is a permanent one
 
Funny, it's not a thing at all in France
 
Anonymous
@PeeHaa @Ekin is racist?
 
We don't even call our president "Président Hollande" or so
 
Nope
She just doesn't like you in specific
 
Anonymous
10:27 AM
well then I'm coming to Serbia to spite both of you.
 
:D
Please do
 
Anonymous
and hug @JoeWatkins
 
you've been warned
 
Here in the PHP room, we practice SDD: Spite Driven Development
 
@PeeHaa I feel you.. soaps a bitch, since this morning, I'm gettin a [HTTP] Error Fetching http headers, still trying to fix that crap, while figuring out why it broke :P
 
10:29 AM
@JoeWatkins nevermind, I'm an idiot who can't read
 
@Naruto It's in my top 2 if shittiest things to do
Together with implementing paypal
 
10:43 AM
Idea: implement a paypal proxy API in SOAP
 
Idea: kill chris
I personally like the latter better I think
!!dave
 
@DaveRandom should work on DNS lib.
 
!!peehee implement a paypal proxy API in SOAP
 
@PeeHaa should implement a paypal proxy API in SOAP.
 
BTW are those aliases network wide or room based?
 
10:44 AM
per-room
 
yay
 
like command mappings
Also they are now recursively resolved
 
Yeah saw that. Noice
 
I was pondering the separation of commands and messages the other day
it's hard and would be another API break but iirc it would make separating the chat logic from the bot easier
 
As in conversation v actual commands
 
10:48 AM
As in command as in a unit of action execution vs the message that contains the command invocation
at the moment Command extends Message which is sort of weird
 
ah
 
it would enable us to do command redirection/scheduling
 
@JoeWatkins I'll hug you as often as I want :-)
 
Prophecy or just PHPUnit's MockBuilder / createMock ?
 
Upgrade to macOS Sierra Get Siri and a whole lot more on your Mac.
Yeah I totally want siri on my notebook...
 
10:51 AM
The very first thing I did on Win10 was disable Cortana
 
@Vamsi Never tried prophecy I think
@DaveRandom Same
And unfuckify the start menu
 
Yes, and once I've done that I now actually really like it
 
It's not bad (mostly)
 
@PeeHaa you probably should try installing some linux
:P
 
It's just that fucking calling home and lately I am having bsods
 
10:52 AM
@PeeHaa see, that's high praise for any operating system
 
based on heavy network traffic
 
@PeeHaa orly? not seen one yet
 
@tereško Doesn't sanely build ios apps :P
 
oh
 
I've crashed it a couple of times with my favourite wireshark trick but other than that had no issues
 
10:53 AM
Which is the only reason I even have something running macos
I hate it
 
@DaveRandom lol
@tereško Thanks for the support :)
 
any `ramsey/moontoast-math` users here? feedback appreciated
https://github.com/ramsey/moontoast-math/issues/4
 
@AdilIlhan Happy Birthday Buddy
 
@StefanoTorresi It uses bcmath which is slow as balls.
 
10:57 AM
oh yay my medical appointment is with the cute intern :3
 
/feedback
 
I meant feedback on the issue :p
I guess there is no fast arbitrary precision math, is there? :)
 
Do you need decimal or just integers?
 
well GMP will give you faster MP for ints
 
10:59 AM
yep, I knew that, but I need decimals ;)
 
Wes
why i keep hearing that bcmath is slow. maybe for calculating gravity fields in galaxies... :B
 
@Wes Because it is, relatively
 
@Leigh I'll keep an eye on that, thanks!
 
I could probably implement basic extended precision (integer) arithmetic in userland PHP faster than bcmath can do it - especially if fixed precision (i.e. 256 bit)
 
11:03 AM
that wouldn't be enough for what I'm doing anyway :(
 
Wes
i planned doing a bigdecimal extension, mostly for math operators overloading
 
Fast userland mp math has been on my list for a while too. I keep implementing stuff for my toy crypto libs, and telling myself I should spin it out into a separate library
 
Wes
i have no clue about these things, i would've used bcmath internally, i think :B i have a bigdecimal class that works (same as java, but ignores trailing zero decimals [java sucks, btw]) but it's terrible to work with because ->add ->mul ->div
 
You can probably get the gist of how it works
 
Wes
in case you don't know, in java BigDecimal(0.10) != BigDecimal(0.1) :B
@Leigh i'd have more luck understanding ancient aramaic, probably :D
how would non fixed precision work? you keep increasing the bits internally, like in 64 bits steps?
 
Wes
looks like ascii art to me :B
Feb 7 at 12:54, by Wes
sorry, you know i'm not a very bright person :B
 
Basically big ints are represented as arrays of smaller ints, and it loops over them multiplying each part with other parts and carrying overflows
 
Wes
aaaaah, that makes sense
 
GMP uses the same approach, storing parts of the big int as "limbs", smaller ints of n bits that make it possible to perform operations on 32/64 bit architectures
bcmath on the other hand stores numbers as binary strings
it's very naieve
 
well, isn't that fundamentally the same approach though, only n = 8 ?
 
11:25 AM
I don't think you can compare the approaches like that
for GMP n will typically be 32 or 64
whereas bcmath doesn't break the numbers down
 
Well I will defer to you on that, math is not my strong point
 
math is hard sometimes
 
@Wes dang, the GIF was cut in half on mobile, that's why I didn't understand it, sorry
 
Wes
@Ocramius thoughts?
 
@Wes seems useful
but I generally just have 5 LOC functions anyway
so...
 
Wes
11:31 AM
even if it's just few lines, having to figure out what throws what is super annoying
dunno..
 
@Wes I see it highlighted
because anything that is not defined in my @throws comes up as a warning
 
@Wes wat
 
Wes
@Ocramius not the same thing, but that doesn't always work
 
I hope I am not understanding it
You have to either annotate or catch it directly?
Instead of just happily let it bubble up?
 
11:42 AM
Wat?
 
@PeeHaa I always annotate: gives the consumer less "WTF" moments
 
@Wes How is bubbling of exception a problem?
 
Wes
yes. letting it bubble up is valid too, but i'd like a @throws annotation please
otherwise i hate you <ins>even more</ins>
:B
 
@Ocramius There is something to say for that yeah
zoomed in btw
 
Wes
badum tss?
 
11:44 AM
:P
 
I got my two lines free for four whole months
 
@JoeWatkins you got static IPs sorted out as well?
also did you manage to speak to an English person?
 
because the service was mis-sold to me, and the prices they gave me were wrong, and I complained, and won a bulk payment of a few hundred pounds
I haven't yet, they just offered to transfer me after the call, but I don't have the fucking patience for it today ... was an american, said he'll "see what he can do" about the missing static ip email ...
I also got a cheque in the post the other day from bt for 20 quid, dunno what it's for ... their incompetence is sometimes a good thing, if you endlessly complain ... it seems
and it's still going to be cheaper than residential when I do have to start paying for it ... £84.96 a month ... residential was £102
 
s/Joe/Captain Complainy Pants/
 
they did mis-sell it to me though, that's why they are picking up the bill for the next few months ... very slippery sales people
 
11:50 AM
Absolutely, wasn't trying to insinuate it's a bad thing. You're obviously an excellent complainer :D
 
basically .. a god of complaining ... goddus moanus ...
 
Anonymous
Has anyone tried DataGrip by JetBrains?
 
Anonymous
It seems cool
 
> Meet DataGrip, our new database IDE that is tailored to suit specific needs of professional SQL developers.
/me looks around in the room
Nope. Nobody here
 
Anonymous
It can be used as an MySQL client, and that's what I am interested in :)
 
Anonymous
11:55 AM
SQLYog is fantastic, but I yearn for more
 
mysql client can also be used as a mysql client
 
mysql cli client from mariadb is decent
 
How can a cli client be bad :P
queries go in -> results come out
 
and some folks use sequel pro (os x only)
 
Anonymous
cli client? No thanks
 
12:00 PM
@samayo is that more than just the db integration of all the language IDEs? kinda like webstorm is integrated in phpstorm
 
an IDE for databases, no thanks ...
 
@samayo sqlyog is fantastic indeed
 
Anonymous
@Gordon I don't know, maybe. But I just finished downloading it ...
 
Anonymous
@Gordon Yeah, I love it
 
i can predict that we'll see IDE for IDEs anytime soon
 
12:01 PM
I hate markdown so much
what am I looking for ?
 
---poop---
 
love?
 
@pinepain that exists, is called eclipse
 
tbh, phpstorm is quite decent and clion is also nice
 
@Leigh I installed 7.1, now I get Cannot open source device on session_start(), no config changes, no custom sessions-related config of any variety that I know of... halp?
 
12:03 PM
@DaveRandom downgrade to php 5.6
 
Just blame yasuo
 
@Gordon thanks (y)
:-P
 
@pinepain I morally object to IDE's
 
@PeeHaa how is that booze api coming forward? Can I test it yet?
 
oh I think it might be chrooted
ffs
 
12:04 PM
@JoeWatkins also orally
 
@DaveRandom Do I look Japanese to you?
 
@Gordon I am actually doing work right now
 
@JoeWatkins Morally?
 
:O
 
@Leigh yes.
 
12:04 PM
You think I'm turning Japanese? :x
 
@PeeHaa on it?
 
@AllenJB tongue buried firmly in cheek .. I just don't use them because there aren't any good ones that cover all bases, and I don't have time or patience to learn several different ide's ... that time is better spent learning whatever language you want to use imo
 
@Gordon nope :P
 
@DaveRandom So, what's the env? Linux?
 
rhel6
 
12:05 PM
@PeeHaa ah! fake work
 
Yeah but it brings in real monies though
At least I hope
 
@DaveRandom Did you compile from source?
 
@PeeHaa fake work, fake monies
 
@Leigh remi
@Leigh I think this fpm pool is pointlessly chrooted, I'm just undoing that and seeing if the problem goes away
 
if it's chrooted that is a problem, but there's something pretty wanky going on in the source there too, and I have no idea how it got like that...
 
Anonymous
12:08 PM
@JoeWatkins If you can learn to program in several languages already, figuring out using an IDE literally should feel as difficult as drinking milk.
 
@Leigh I could hazard a guess...
 
It's in random.c
 
Anonymous
/unless you don't drink milk for some reason ..
 
@Leigh the name is more a description of the code than what it does?
 
https://github.com/php/php-src/blob/5da004cc759f81b5c07ea8798c76fdd305411354/ext/standard/random.c#L144

So it's an if (...) a compiler condition, then the same if (...) - if the compiler condition fails its the same comparison twice in a row
 
12:09 PM
@samayo it's a very different thing ... a graphical thing, one that requires the kind of memory I just don't have ...
 
@samayo what if your lactose intolerant?
 
Oh actually, I know how it got like that, I was told to remove stuff for arc4random
I don't think it's actually harmful though
 
Anonymous
@JoeWatkins hmm, there is another word for that ... and it's called laziness! :)
 
Anonymous
@Gordon good point :p
 
okay, I'm lazy ...
but seriously, it's nothing like laziness ... not everybody works the same ...
 
12:11 PM
@DaveRandom See if you can fopen('/dev/urandom', 'r');
@samayo If you can learn to program in several languages already, all of the VIM shortcuts you need to replace an IDE should be a piece of cake :)
 
also do ln -s /dev/urandom /dev/uranus and then see if you can fopen('/dev/uranus', 'r');
 
Also, I demand everyone install my /dev/xkcdrandom kernel module
 
@Gordon and
krakjoe@fiji:/usr/src/php-src$ php -r "var_dump(fopen('/dave/urandom', 'r'));"
resource(5) of type (stream)
 
It delivers a stream of random based on a fair dice roll
 
@JoeWatkins on my machine it outputs poop
root@tp:/usr/src/php-src$ php -r "var_dump(fopen('/dave/uranus', 'r'));"
resource(5) of type (poop)
7
 
12:15 PM
lol
 
12:30 PM
@Leigh no I can't because chroot, turns out the app has been build with a load of hardcoded absolute paths that expect chroot, I'm fixing that now and then it should be fine I think
 
Wes
is there a one word for "the thing being assigned to a variable"? the rhs of the assignment = operator
 
@Wes assignee? value?
 
@Wes Have you saw similar to your unknown exceptions solution desribed here denis-zhdanov.blogspot.com/2010/07/… ?
 
Wes
@Gordon isn't the assignee the destination, ie the lhs?
@DejanMarjanovic looking for something more specific if it exists
 
12:36 PM
> In computer programming, a variable or scalar is a storage location paired with an associated symbolic name (an identifier), which contains some known or unknown quantity of information referred to as a value.
 
@Wes just use value
 
You an also say quantity of information but that's weird :-)
 
Wes
@Gordon i have no problems with that, just wondered if assignment operands had actual names
 
Command '!!rand' aliased to '!!say 4'
 
@Leigh ^
 
12:42 PM
I approve
 
How can we achieve live notification system like facebook or google ?How websockets concept can help on it? Any code explaining in simple way how to implement it ?
 
!!rand
 
4
 
@Sayuj3 if (has_new_notifications()) print_new_notifications(); exit;
 
9 messages moved to Trash
3 messages moved to Trash
 
12:57 PM
Bot spam moved to bin
 

« first day (2327 days earlier)      last day (2621 days later) »