« first day (1935 days earlier)      last day (3013 days later) » 

12:11 AM
I found myself a few usages for functional programming…
And I each time hated it to not have nice short closures with scope inheritance :-(
                    $foreach_op1 = function($do) use ($dsc, $op_types) {
                            return function() use ($do, $dsc, $op_types) {
that's just ugly and awkward :-(
use case is dynamically leaving a loop-level out or not (and use a default value instead)…
 
12:26 AM
@LeviMorrison no. Someone is working on Argon2i for 7.1
@LeviMorrison Upgrade to 5.3. Seriously
 
1:05 AM
@JoeWatkins removed ##
 
1:19 AM
@ircmaxell It's not PHP that is the issue.
I'm talking about our clusters.
 
Fatal error: Cannot use lexical variable $extra_spec as a parameter name in /Users/Bob/php-src-X/Zend/zend_vm_gen.php on line 1006
@NikiC thanks for adding this! =)
 
1:30 AM
@LeviMorrison can you explain? bcrypt is compiled into PHP from 5.3 on and can't be disabled as of 5.5.
 
Our passwords for our website are the same for our login nodes and for our compute clusters.
The login nodes don't use PHP at all.
 
2:17 AM
github.com/bwoebi/php-src/blob/… … Closures are powerful tools … and again:
2 hours ago, by bwoebi
And I each time hated it to not have nice short closures with scope inheritance :-(
 
 
1 hour later…
3:24 AM
Congrats, @Andrea, you've somehow made it to my Facebook trending feed. o_O
 
@Charles so people keep telling me...
 
Well, congrats/condolences.
 
Wes
4:15 AM
mornings \o
 
4:37 AM
hi all
 
5:11 AM
mornings
 
5:34 AM
moin
@rtheunissen the moment of truth ...
the tests ran, but some failures happened on windows ...
 
5:51 AM
Morning @JoeWatkins
 
morning
 
Sounds like I may need to set up a windows env
 
meaning what?
 
What tests were failing? Did it show why they were?
 
I commented on last commit there with log
and yeah, probably best ...
 
5:52 AM
Cool thanks haven't checked
 
@rtheunissen I think it would be fair to say that it's way above your paygrade
 
they mostly seem to stem from the same issue
/s/mostly/all/
 
Yup and I think I know. It's qsort
 
It's not stable so some of the relative ordering isn't consistent.
I just have to update the tests to account for that.
 
5:56 AM
yeah
@rtheunissen how fast is your internet connection ?
omg, the disk for windows is 40gb, nevermind :o
 
6:15 AM
@JoeWatkins ~1.5 Mb/s maybe 2
 
good morning, room
 
Pushed a potential fix, may be one or two tests not covered.
 
@rtheunissen you should start downloading sometime last week ...
only fixed 3
moin @SergeyTelshevsky
 
6:35 AM
Hi Friends
I am beginer in laravel
anyone suggest me tutorials or helping material related to laravel latest version
 
o/
 
\o
 
yet another morning to most of 11 and I feel like an owl
 
V funny
 
6:48 AM
Thanks
Sergey
 
hi
can i ask a question
??
 
7:07 AM
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>Using with Buttons</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="demonstration of some noty capabilities">

<link href='http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic&amp;subset=latin,latin-ext,cyrillic' rel='stylesheet' type='text/css'>
<style type="text/css">

html {
i AM using a notification plug in
and trying to fetch data from mysql
unfortunately i am getting same data output twice
like the $row['fname'] is same
 
good morning!
@TahaDhailey use something like pastebin, don't paste full code here
 
Morning
 
@Ekin you live in a wonky time zone
 
@Ekin your eyes aren't able to move in their sockets, you have a dish shaped face, and like to eat little fury things ?
 
@Ekin Can you turn your neck 360 degrees? :D
 
7:18 AM
@JoeWatkins define "small"
 
270~ actually @Epodax
 
do rabbit's count
@Epodax that Exorcist you ar thinking about there
 
@JoeWatkins Close enough :P
@tereško Owls =/= Demons
 
@tereško small-ish, compared to the owl that can eat them ...
 
7:21 AM
@tereško I do, unfittingly.
@JoeWatkins Face, check. Little fury things? That's a nope.
@Epodax that'd be really useful now to see if coffee is ready :p
 
@tereško awwwww
 
awww
 
so ... @Ekin does this look edible?
 
sorry @Naruto
function generate(layout) {
var n = noty({
text : 'Call <?php echo $row["fname"] ?> today',
type : 'alert',
dismissQueue: true,
layout : layout,
theme : 'defaultTheme',
buttons : [
{addClass: 'btn btn-primary', text: 'Comment', onClick: function ($noty) {
$noty.close();
noty({dismissQueue: true, force: true, layout: layout, theme: 'defaultTheme', text: 'You clicked "Comment" button', type: 'success'});
}
},
{addClass: 'btn btn-danger', text: 'Dismiss', onClick: function ($noty) {
this is my notification function
 
@tereško My wolf says it's a nope
 
7:23 AM
@Ekin I imagine it would be useful in a lot of scenarios :P
 
i want to echo fname from mysql
 
@tereško Is that a bonsai-dog ?
 
@TahaDhailey ctrl-k your code or use a pastebin please
 
I honestly have no idea, I just asked google for "tiny dog"
 
It's like a bonsai-tree!
 
7:25 AM
@Epodax probably, but I doubt that cutting off random limbs is a part of the "taking care" process
 
sorry ctl-k not working
 
@tereško Properly not.
 
there are some ugly dogs on google when you look for tiny dog :D
 
stahp
 
@Naruto I found this ultra ugly ninja dog :P
 
7:27 AM
1 message moved to bin
 
@TahaDhailey there, pastebin.com/THfPfc8f - i pasted it for you, please stop posting it.
 
Guys, please don't flag code blocks as spam / offensive
 
@Cerbrus why not? They look like spam.
 
he pasted all his html though
 
interesting idea: Defensive Programming via Validating Decorators though I am not sure whether I like the class explosion it will bring
 
7:28 AM
They are not spam
Let a RO clean it up.
 
@Cerbrus already did
 
@Cerbrus well, I flagged it as "offensive"
 
@Gordon The clean up crew/guy.'
 
@tereško Just ping a RO next time.
 
1 message moved to bin
 
7:33 AM
@Epodax well ultra and ninja confirmed.. ugly a little less ;)
 
:P
 
Calling it a day now, I'm gonna go try finishing tomb raider without falling asleep
so I can play the beyond earth tomorrow at this hour :p
 
@Ekin let's hope you like it better then I expect
 
let's see, I also might get to try xcom early in the day
o/
 
7:50 AM
Hey I'm working a little with a MySQL query and I'm getting an error
SELECT uID, (6371*acos(cos(radians(59.306883))*cos(radians(uLat))*cos(radians(uLong)-radians‌​(18.1223423))+sin(radians(59.306883))*sin(radians(uLat)))) AS distance FROM users HAVING distance < 75 WHERE uID` != 1 LIMIT 25`
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE uID != 1 LIMIT 0 , 20' at line 1
If I remove WHERE uID != 1 it all works out fine
 
there is backticks at the end of uId and at the end of the clause. you likely wanted to enclose uID only
 
I always use backticks.
I'll try to remove all of them and we'll see, hold on
 
WHERE uID` != 1 LIMIT 25`
 
It didn't change a thing
Because in the real code they're around uID
but since I wrapped my query in backticks too for the formatting I guess that's why
 
"in the real code" means you didnt show us the real code and still expect us to be able to spot the error?
ah ok. dont wrap code you paste here in backticks but ctrl-k it instead
 
7:54 AM
Okay, so the real code is

SELECT `uID`, (6371*acos(cos(radians(59.306883))*cos(radians(uLat))*cos(radians(uLong)-radians(18.1223423))+sin(radians(59.306883))*sin(radians(uLat)))) AS `distance` FROM `users` HAVING `distance` < 75 WHERE `uID` != 1 LIMIT 20
Sorry about that
 
np
try to put the where part before the having part please
 
Okay I'll try
 
yay, the new Noblesse is out
isn't HAVING supposed to be used with GROUP BY ?
 
That solved it, thank you!
 
np
 
7:59 AM
I don't really know why I'm using HAVING
I got the query off of a website
I don't know why I just don't put the distance < 75 in the WHERE clause
 
@MagnusBurton HAVING is used to filter the results instead of filtering the data
(that's the best way I can articulate the difference)
 
@tereško Oh okay so since Im doing the calculations as distance I can use that to sort out the results in the HAVING part?
 
basically, yes
 
Never knew that it existed
Thanks both of you
 
MariaDb has limited geospatial features btw: mariadb.com/kb/en/mariadb/gis-functionality
 
8:03 AM
What is the meaning of MAC in this answer?
Is it Macintosh ? ^
 
@Shafizadeh Yeah
MacOS, Apple device, whatever
 
@Gordon Oh I'll def look into that, might speed up the querying
 
@MadaraUchiha And for users who uses MAC or it point to the OS of server? (which website is implemented on it)
 
wat
that didn't come out in english
 
8:10 AM
In that answer mentioned ".Also,works for MAC". Now I want to know for who? Users that use MAC or if OS is MAC (on the server)?
 
put a comment and ask
 
:-)
ok
 
@Shafizadeh the question is about keyboard events in browser using javascript
think it through
 
@tereško Yes I know what is it... Just I cannot understand his point of "MAC" ..
 
.. so do majority of PC users :D
3
 
8:13 AM
@Shafizadeh I would say that since it's javascript it's the browser that is a MAC. Or the user agent at least is a browser on a mac
 
Ah .. I got it now ^ tnx
 
Morning 11
 
@Oldskool Morning ...
 
morning
 
8:33 AM
good mornings
 
@Danack usually I'm checking mentions from time to time
@Danack there is an ongoing thread on the mailing list about that PR, stas did a good job pointing out the problems.
 
Wes
morning(2)
 
mormngrn
 
8:50 AM
Can somebody please splash some coffee on my face :|
 
@Wes LOL
 
lol :/
 
Can you unonebox it plox @Wes?
lol dat timing :D
 
Wes
:P
 
8:57 AM
@Wes someone just shared me this song youtube.com/watch?v=pjmiap-uXug
4
 
Wes
that's totally me
 
Good morning.
 
moin
 
9:03 AM
I'm looking for a English letter for <kbd> tag in the markdown-editor . (Ctrl + {what?})
Ctrl + B (stand for Button) is for Bold
Ctrl + I (stand for Inputs) is for Italic
 
posted on February 02, 2016 by nlecointre

/* by Sebastian */

 
@DaveRandom o/
 
Wes
unrelated news. i started painting (properly, with easel and things) because i thought it would've been relaxing. yesterday i ended up punching the canvas. totally didn't go as expected
 
:-P
 
Wes
too much coffee probably :B
 
9:06 AM
Or not enough meth
 
Wes
i accidentally made a cut in the canvas with the knife (it's a tool for painting and for murder) so i raged up and punched it :B
 
Improv
 
moin v2
 
'nin
 
9:13 AM
@JoeWatkins Where you the one with a curved monitor?
 
Wauw debug day >< Testing out some PHPMailer thing, which always worked but now it stopped sendin gmails.. so I wrapped some easy mail functions from PHP around it... they all work :( So some PHPmailer code must go worng
 
Wes
swiftmailer?
 
@Duikboot Well, either that or if it always worked, it's more likely your mailserver is malfunctioning or blacklisted for spam or something.
@Duikboot I'd check your MTA logfiles.
 
screaming at sysadmin might also work
 
@JoeWatkins If you have one, then yes! ;-)
 
9:15 AM
@Duikboot Check the mail log
 
Although he's likely to give you a blank stare while sipping his coffee ;-)
 
He'll gaze a gazeless stare
 
Morning @JoeWatkins
Could you please run tests on recent commit? I'll set up a windows box when I get a chance.
 
SMTP error from remote mail server after initial connection: 550 oh
Weird, all other mails ( registration, lost password,... work except 1 ) ( And this messages is from 30/01)
 
9:32 AM
hiii everyone is anyone free i need a little help :)
 
Alittle help
shoot it out :)
 
preg_match('/\b(xray\w+)\b/i',"I want to sell XRAY machine of Philips in a good c...", $matches);
why the matches is empty
$matches is empty
 
Well, yes.
You grouped a \w+ inside that xray group.
But there's a space after xray, which doesn't match \w.
 
What oldskool said
 
When changing the status of an "item", would you do ..->setItemStatus($item, $status) or something like ..->setItem{$status}($item)?
 
9:35 AM
!!eval preg_match('/\b(xray)\b/i',"I want to sell XRAY machine of Philips in a good c...", $matches); var_dump($matches);
 
moin 11-ers
 
You died? :(
 
[ [Output for 5.3.22 - 7.0.2, hhvm-3.6.1 - 3.11.0](https://3v4l.org/Fnc8d) ] array(2) {
[0]=>
string(4) "XRAY"
[1]=>
string(4) "XRAY"
}
 
Good boy
@Sean Momgguh o/
 
9:36 AM
@PeeHaa let me give it a try
 
@PeeHaa Damn that's cool :p
 
@Sean I have a better version locally which also supports multiple version by polling and editing the message for live updates
 
!!eval echo "@PeeHaa sucks";
 
@PraveenKumar By the way, preg_match is not really necessary if you're just looking for one word. You could also use stuff like if (false !== strpos(strtolower($string), 'xray')) { // Found xray in the text }
 
9:37 AM
Dat eval ping abuse \o/
 
BUt i want the next word along with it if i search "xray" then it should give me "xray machine"
 
!!eval echo "@PeeHaa sucks on " . PHP_VERSION;
>:)
 
[ Output for hhvm-3.6.1 - 3.11.0 ] @PeeHaa sucks on 5.6.99-hhvm
 
@PraveenKumar Then put a space between xray and \w+
 
9:38 AM
@salathe The new version of the eval plugin actually handles that :)
 
The space does not match the \w, so you'll need to find it separately in your regex.
 
@Jeeves only hhvm?... screw you bot!
 
@PeeHaa feature request: have the bot reply to the command
 
@PraveenKumar regex101.com/r/sQ7pS3/1 .. you can fiddle with it there. Great site to bookmark if you want to learn more about regexes too.
 
@Ol but how i am using it in a autocomplete ajax box
it will be dynamic value
 
9:40 AM
Watches Jeeves get auto-banned
Maybe make a testing room for Jeeves if there isn't one already?
 
Or just ban me from using that command :P
 
FR: !!undo (deletes last message)
 
@rtheunissen just seen message, doing it now ...
 
3 messages moved to bin
 
9:44 AM
it's funny seeing you going through all the errors we went through in the js room :D
 
lol
 
@rtheunissen 29 failures
 
@salathe You kinda deserved that, you know. :P
 
Arghhhh - eat his shoe
 
9:46 AM
@Oldskool Thanks for the link
WHat i am doing is using this preg_match in autocomplete box ajax so if i type "xra" it should give me "xray" as result and if i type "xray" then it should give me "xray" and if i type "xray " then it should give me "xray machine"....
I think i am clear on what i want
 
@JoeWatkins :<
Could you please post the log again? I'll set up a windows build and fix them tomorrow.
 
@MadaraUchiha Abuse!
 
Thanks for your help.
 
@salathe I didn't kick you.
 
I know, I'm telling on him.
 
9:49 AM
:D
 
@FlorianMargaine Could you dump FR's on github. I'm forgettnig thnigs already as it is now :P
 
@PraveenKumar Uhm, not really.. So you want the space to magically include the next word always?
 
@PeeHaa are you asking for effort?
 
Yes :P
 
@FlorianMargaine Sounds to me like he's asking for effort.
@PeeHaa FR: !!fr command to automatically post FRs on GitHub.
 
9:52 AM
:P
@Sean There is
@MadaraUchiha Oh right you can see kicks ofc :) cc @salathe
I love the running to a mod though :P
 
@Oldskool
preg_match('/\b(xray\w+)\b/i',"I want to sell XRAY machine of Philips in a good c...", $matches);
Case 1:- if i type "xra" then it should give me "xray" , status :- working
Case 2:- if i type "xray" then it should give me "xray" , status :- not working
Case 3 :- if i type "xray " then it should give me "xray machine" , status :- working

I want 2nd case's status working.. hope you got me now
 
@PraveenKumar Well, I can't think of any way to make case 2 and 3 work together using regex.
\b(xray ?\w+)\b would work for case 3, but then renders case 2 impossible
 
@Oldskool
Yes sir i am facing the same problem always everytime i give it a try if 2nd case works then 3rd fails and if 3rd works 2nd fails

May be you can give any other advice or way to make this happen together
 
Best way I can think of is check if the search term has a space using strpos() and if so, then pick either one of the regexes (with and without the " \w+" part.
So you'll end up with 2 regexes.
 
Any demo code will help a lot :)
 
10:02 AM
@rtheunissen done
 
Applause, fixed the mail issue.
 
@Oldskool
need to check space at last position :)
Dont know how to do that :D :D
 
@Oldskool How you doing!? :)
 
@PraveenKumar if (substr($string, -1) === ' ') { // Last char is space }
 
@Oldskool Thanks a lot let me give it a try
 
10:12 AM
@Duikboot Fine thanks, you?
 
Great, lots of work to do :D
 
@PraveenKumar \b(xray(?:\w+|\s\w+)?)\b
"xray" => "xray machine"
"xra" => "xray"
 
@Sean Yes, but that still doesn't match "xray" as separate word (without the space).
 
So you want "xray" to match both "xray" and "xray machine"?
 
@Sean No, that's where it gets tricky. "xray" should match xray, but "xray " should match xray machine.
The space needs some magic
 
10:15 AM
oh
 
yes
the search term need to be exact
or bit open for new words
like witout space it should give exact "xray" to "xray" and if "xray " then it should give "xray machine","xray for"(if present)

@Oldskool @Sean
 
wait nvm
still wrong
 
@Duikboot Well, it's better to be busy than it is to be bored.
 
Indeed! :-) What do you mostly do? PHP - non - stop?
 
\b(xray(?:\w+)?)\b Would that not do it?
"xra" => "XRAY"
"xray" => "XRAY"
"xray " => "XRAY machine"
 
10:24 AM
@Duikboot Not non-stop, I do DevOps, so I also manage the servers our apps are deployed on.
Bit of a mix between dev and sysadmin.
 
That's awesome! :-) ! Are you managing large applications?
 
/cc @PraveenKumar
 
@Sean Yes working fine thanks a lot
 
@Sean Ah, nice find! :)
That should do it yes.
 
Saved my another day from being wasted :D
@Sean
 
10:27 AM
@Duikboot Mediocre I think. Some of our main apps have about 50k users a day.
 
Are you talking about, web apps or native mobile applications?
 
@Duikboot Web apps. We do have some mobile apps as well, but that's not my division :)
 
@Oldskool Any solid places to start learning in DevOps?
 
Hmm, well there are no real DevOps classes/training that I am aware of. In my case it just came "naturally" because of my interest in both development and Linux/Unix systems. Just spend enough time on both. Not only try writing an application, but also deploy it and tend to think bigger than "it should just work". Stuff like chmodding 777 is a case of bad sysadminning and you should want to know why and how you can avoid having to do that (by using proper permissions/processes and stuff).
 
@Sean devops-knowledge-base.readthedocs.org/en/latest what do you think about this @Oldskool ?
 
10:34 AM
@SagarNaliyapara Seems like a nice knowledge base.
Covers pretty much all the topics you have to deal with.
 
Cheers ^^ I know the basics of the basics just from what I've needed to know, but I'd like to get more of a grasp of it at least ^^
 
@Sean Well, curiousity is a good thing to have. Always try to think about next steps. If you apps are up and running, great! But can you do more to make it run more secure or efficiently? If you keep asking yourself questions like that and explore your options, you should get a long way.
 
@Oldskool welcome to the club
 
@FlorianMargaine I got enlisted to the club? Finally! \o/
 
10:52 AM
 

« first day (1935 days earlier)      last day (3013 days later) »