« first day (1693 days earlier)      last day (3270 days later) » 

1:00 PM
Huzzar first gold badge earned :D
 
And you probably want + and not *
 
@HassanAlthaf No excuse for not learning. I mean, my DBA, who doesn't write great code, impressed me by writing a pretty detailed regex yesterday
 
/^[A-Z0-9 .-]$/i
Is that right?
@Machavity bruvva, im 15, 0 qualificatons
*qualifications
cant expect much from me lol
 
@HassanAlthaf That will only match strings with exactly one character in them
 
@HassanAlthaf Bingo. The ^ means start of string and $ is end of string
 
1:01 PM
but yeh, very nearly right
 
@HassanAlthaf it allows the space character, was that intentional?
 
@HassanAlthaf I have a nephew about your age and he could probably write regex if he put his mind to it
 
no salathe
/^[a-zA-Z0-9-.]+$/
Is this right guys
I want to accept alphanumeric, dots and dashes
only
omg i did it
lol
<?php
if(isset($_GET['l'])) {
$l = $_GET['l'];

if(preg_match('/^[a-zA-Z0-9-.]+$/', $l)) {
echo "hello";
}
}
my tiny debugging program lol
 
@HassanAlthaf Pop it into that site I linked and it will tell you instantly
 
aye, aye, sir
done it sir
 
1:06 PM
@HassanAlthaf Congrats :)
 
I wish there was an automated regex builder
lol
Do you guys know any good basic regex tutorial?
I cannot seem to find a good one
I sort of understood something of regex with that link @Machavity Thanks a lot man.
It actually explained what this regex means
 
@HassanAlthaf regular-expressions.info is the best resource IMO
Although the PCRE docs in the PHP manual are pretty good as well
 
Give a man a fish and he eats for a day. Teach a man to code regex and you will slowly drive him insane over a lifetime
 
ty @DaveRandom @Machavity
 
@Machavity Or alternatively "Teach a man to code regex and cat river | grep fish"
4
 
1:10 PM
Hey guys
I was thinking
what message to show
 
@DaveRandom Fatal error: hook not initialised
 
if the password and the repeated password in a registration page do not match
 
"Passwords don't match"
 
How about "Y U NO TYPE SAME PASSWORD TWICE??!?!?!?!??"
 
@HassanAlthaf I prefer something simple like "Passwords don't match" but you can always go with "Hey moron, you have to type them the same way twice"
 
1:12 PM
or "See, there's a good reason to have a confirmation field. You're the reason. Moron."
 
lol
are you sure you guys are sober
 
I'm not sober.
 
wdf
bruvva
 
@HassanAlthaf Ballmer Peak man
 
oh no
what does that graph even mean
 
1:15 PM
Scroll down and read the rest
 
A supposed "peak" in programming ability caused by alcohol. The term was coined by an XKCD web comic: http://xkcd.com/323/. The phrase is in reference to Microsoft CEO Steve Ballmer, who generally acts pretty crazy, much like an angry drunk, and hence the alcohol joke.

Somewhat ironically, Ballmer never wrote any production code while at Microsoft. His background is in business rather than engineering, though he is renowned for his ability to perform difficult mathematical calculations mentally.
Nice one, therefore, there is no such thing.
But I don't drink m8
ol
Neither have I reached the legal drinking age nor is it permissable to consume alcohol in my religion.
 
My wife's family has wine with large holiday meals but outside that I don't drink either
 
lol
How much does a junior programmer be paid in the UK?
 
per annum in pounds?
yo bro
is it per annum
and is it in pounds
 
1:22 PM
I'm not your "bro"
 
and you have google
 
There abouts if they're a graduate, yep
 
Alright, yo money.
and wow
in lank
 
(this is web developer btw not programmer)
 
1:23 PM
lol?
developer as in php?
how much does a java programmer be paid then
University of Cambridge replied me with plaintext
password
when I clicked forgot password
my brains just blew that moment
 
Java programmers are paid more
C# and NodeJS are up there at the moment for £$£
 
C# and Node are in shorter supply probably
 
lol
im doing C# and Java
 
In the US you can still make a living writing COBOL
 
for the diploma
can you buy a BMW with COBOL
i want a job with which I can buy my own BMW and a fine mansion
lol
What is UML
 
1:31 PM
@Machavity Obviously it's about supply and demand
@HassanAlthaf google it, modelling language
 
i know
 
A modeling language is any artificial language that can be used to express information or knowledge or systems in a structure that is defined by a consistent set of rules. The rules are used for interpretation of the meaning of components in the structure. == Overview == A modeling language can be graphical or textual. Graphical modeling languages use a diagram technique with named symbols that represent concepts and lines that connect the symbols and represent relationships and various other graphical notation to represent constraints. Textual modeling languages may use standardized keyw...
 
but is it a programming language
is it interesting or boring
lol
 
@HassanAlthaf I've heard perl just released a new version
 
1:32 PM
It's just a way of describing components, systems, their relationships, everything really. Diagrams
 
OH NO DIAGRAMS
ARE U SERIOUS
EVER SINCE I LEARNED The DEMAND AND SUPPLY DIAGRAMS, I HATE DIAGRAMS
 
ASSALAM-U-ALIKUM
hi all
 
Morning @AsimKhan
 
Ya Morning
can you guyz help me out regarding PAYPALL
 
PHP 5.6.4-4ubuntu6 (cli) (built: Apr 17 2015 15:48:37)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
 
1:37 PM
@HassanAlthaf Please stop using homophobic slurs in this chat room.
 
Finally.
@Danack Sorry, I will avoid them hereafter.
 
ty.
 
Feel free to delete that post with inappropriate content.
 
1 message moved to bin
 
whens php7 comin
 
1:38 PM
November
 
@DaveRandom are those dates DD-MM-YY
*YYYY-MM-DD
 
Yes
YYYY-DD-MM would be insane
 
Then, where is the alpha
oh wait
its coming on the 11th
nice nice
first time i am seeing such a large release
when was php5 released
 
@DaveRandom somehow the american like it though
 
1:42 PM
No they do mm-dd-yyyy
(which is equally stupid)
 
- the first alpha is tagged on 2015-06-09
- the first alpha is coming out on 2015-06-11
- the 7.0.0 final is planned for 2015-11-12
what format is that
lol
YYYY-MM-DD
right?
 
Hey I just noticed the final is planned for my bday
 
LMFAO
 
@DaveRandom lol murricans and their dates are retarded
 
seriously?!
 
1:43 PM
How the hell did somebody come to that??
 
@PeeHaa murricans itself are retared
 
Not all of them though
 
yes dey are
racist bastards
 
\o/ for generalisations
 
All UK people are drunks
 
1:44 PM
@PeeHaa It makes sense when spoken ("June 5th, 2015") but not when written as numbers
 
What Dave said
 
@PeeHaa Just the Irish
 
:)
 
@PeeHaa Yeh that's not really an insult or in any way untrue, though.
 
my country uses this format
YYYY-MM-DD
 
1:45 PM
@DaveRandom No it does not make any sense just say 5 juni tweeduizendvijftien
 
Morning
 
@HassanAlthaf Not really. You've been watching too much news reporting
 
Morning @AlmaDo
 
@HassanAlthaf Nice shirt btw.
 
@PeeHaa what about the muslim british
 
1:45 PM
So what does sighup in error logs?
 
@fabor which one
 
like - hundreds
WARNING: [pool www] child 32173 exited with code 1 after 26.867784 seconds from start
 
The one in your photo with the united states on it
 
@PeeHaa ndvijftien <-- I realise that's part of two words, but it still looks like you had a stroke and faceplanted the keyboard mid-sentence.
 
1:46 PM
that one?
 
E_GOOGLE_WAS_NOT_ENOUGH
 
@HassanAlthaf stop being an asshat (homophobic, racist, etc.) please.
 
Dw, it is too old.
 
Just for reference this use of cat is completely pointless: cat river | grep fish
 
@DaveRandom Yeah if you split it up like that it is retarded yeah :P
 
1:47 PM
Once again, I'm sorry. @FlorianMargaine
 
grep fish river or grep -e fish river…
 
I better stop sharing my personal opinions in public.
 
just saw your "muricans are racist bastards"
 
However speaking of stupid faceplanted the keyboard mid-sentence: Llanfairpwllgwyngyll @DaveRandom
 
well thats my honest opinion, but i'll stop sharing it hereafter.
 
1:48 PM
@HassanAlthaf it's wrong though. I've spoken with plenty of americans, they're just like everyone else when you speak to them in person. Some are racist, some are not, but they're not different from other countries.
 
@LeviMorrison The cat is required, I'm using it to get the fish for me, I didn't bring a hook so I'm using its claws.
 
if you watch only media reporting however, you get a story which is designed to appeal viewers, i.e. biased and wrong
 
@JoeriSebrechts 90% of muricans i met start calling me a terrorist; paki, etc.
 
@DaveRandom Required for the joke, I understand. It's just not required for actual use.
 
@LeviMorrison It's time for grep fishing, with your host, Levi Morrison
 
1:50 PM
@HassanAlthaf At least in the part of the US where I am racist people would definitely be in the minority.
 
wait, are you racist
lol
 
I've also noticed that people are prejudiced against certain races because of bad experiences with people of that race.
 
exactly
just because some pathetic people from a particular race
*because of
they blame the whole race
 
and @HassanAlthaf you can share your opinion, but you have to do so in a civilized manner
 
@HassanAlthaf i don't know where you met those americans or whether it was face to face or online, but i'm just saying i haven't observed that sort of bias myself. then again, i'm as lily-white as they come...
 
1:51 PM
Which is what you are doing with Americans (except we aren't a race).
 
lol
since osama did that 9/11 attack
muslims are called terrorists
since a few civillians in a civil war were killed in my country
we were blamed for breaching the human rights
 
I wish you could do bash aliases where the args are dropped into the middle of the expansion, I really want to alias cat file | less to kitten file
 
while america bombs libya, etc the whole day
 
@DaveRandom you can do a function!
 
@HassanAlthaf I housed a muslim person from Saudi Arabia in my home earlier this year while he was here learning English.
You are choosing to perceive this prejudice as much more widespread than it is.
 
1:55 PM
A'ight then you win since you are an american and I have never been to america
holy crap i forgot to pray
ttly
*ttyl
 
It's not really about "winning", that's the whole problem...
 
@HassanAlthaf I'm just trying to help you understand that the biased behavior you hate is the same biased behavior you are having towards Americans.
 
one thing i do find puzzling though: why is it that while most individual americans i've met were reasonable people, the actions of the US government are so ... befuddling?
never got that one
 
lol
politics
is
totally out of our minds
only politicians understan
it
aight im going back to work now
 
hello guys i need help in sql query
SELECT * FROM (

(SELECT cdr.number, cdr.date, cdr.time, cdr.call_category_id, cdr.dialed_number, cdr.duration, cdr.charge, cdr.data, cdr.client_id FROM `cdr_04_2015` cdr WHERE cdr.client_id='15')

UNION ALL

(SELECT cdr.number, cdr.date, cdr.time, cdr.call_category_id, cdr.dialed_number, cdr.duration, cdr.charge, cdr.data, cdr.client_id FROM `cdr_04_2015` cdr WHERE cdr.client_id='15')) as t LIMIT 100
the problem with this is cdr_04_2015 contains 160 million record
and even with the limit on main query does not apply the limit on sub query
and it take ages to load
 
2:05 PM
well you're fucked
 
160 million records
holy fuck
i have never maintained over 10k
 
right now
Showing rows 0 - 99 (100 total, Query took 196.6473 sec)
this query response is
 
@FaizRasool what do you want to do with that query? you are unioning two exactly the same queries you do realize it?
 
@FaizRasool Why are you using UNION ALL here?
That makes no sense
Ninja'd (again) damn you all
 
because cdr_04_2015 is just example
it changes to every month and year
and data can be in different table
cdr_month_year
this is the format
 
2:07 PM
posted on June 05, 2015 by kbironneau

/* by daMax */

 
Have you run EXPLAIN?
 
So you need to select data from archive tables but you only want let's say first 15 rows?
 
yes
the problem is
SELECT * FROM (

(SELECT cdr.number, cdr.date, cdr.time, cdr.call_category_id, cdr.dialed_number, cdr.duration, cdr.charge, cdr.data, cdr.client_id FROM `cdr_04_2015` cdr WHERE cdr.client_id='15' LIMIT 100)

UNION ALL

(SELECT cdr.number, cdr.date, cdr.time, cdr.call_category_id, cdr.dialed_number, cdr.duration, cdr.charge, cdr.data, cdr.client_id FROM `cdr_04_2015` cdr WHERE cdr.client_id='15' LIMIT 100)) as t LIMIT 100
works very fine for the pagination
 
Don't use union for archive tables, calculate which table(s) you need to select from programmatically (you'll need to know how much there is records in each table first) and then select it
 
but it only gets the first row of record
yes i'm doing that
and that data can be in 2 tables
it is actually call listing
data
user on the end select from and to
 
2:10 PM
We get it, it's not important
 
why this union is not smart enough to apply filter of limit into to sub queries
and calculate the limit and offset with out reading the full table
anyone with answer
 
As I said, you'll need to query COUNT of rows from the first table first (applying a predicate that you have), if this COUNT is enough you only make query to that table, otherwise you COUNT rows in the next table, if the sum of these two is enough then you do TWO queries to each table (not a union) with a predicate and LIMITs set as you need (you will need to calculate LIMIT for the last table)
 
@nikita2206 interesting
 
Anyone here plays Clash of Clans?
 
sdd
2:29 PM
I am trying to set up a proxy server, it is working fine in browser but not in email client
anyone knows why?
 
because your proxy doesn't handle smtp/pop/imap?
 
sdd
how to fix that?
 
@SebastianBergmann I coughing guy in a trenchcoat told me you were rewriting (parts of) php unit. Is it true? If yes do you already have a branch somewhere?
 
Good morning
 
Morning @JonathanLafleur
 
2:38 PM
I've been trolled by the room 11 elephant :(
lolll
 
Anonymous
Is there a tool that makes cronjob and php bond like bonnie and clyde
 
Do someone have seen @DaveRandom today?
 
yeah
 
Scroll up like 30 lines
 
Always forget that we have history -.-
lol
 
Anonymous
2:42 PM
@JonathanLafleur does all your question begine with Do someone..?
 
Do someone know what's the point with @samaYo ?
;)
 
Anonymous
I think someone do.
 
so. nearly. weekend; hurts ...
 
@JoeWatkins \o/
Wait wut? Hurst? HURTS?! HURTZ?!!?!
 
the last hour of friday isn't painful for you ?
 
Anonymous
2:46 PM
@PeeHaa Answer my question, or I'll ping you to hell :P
 
yes
yw
 
Anonymous
/ googles yw
 
Anonymous
damn you, you slang master
 
@JoeWatkins last hour of friday? lucky for some!
@PeeHaa WURST!
 
@JoeWatkins Well tbh. I haven't been doing much today ;) Will do something tomorrow instead
@salathe oh lolo yeah
 
2:54 PM
@JonathanLafleur @DaveRandom is currently unable to answer the phone due to self-inflicted illness. If you'd like to leave a message after the tone, I'll get back to you when my brain is no longer liquid and dribbling out of my ears.
beeeeeep
 
sunny weekend coming, lots of riding as a result ...
 
@salathe ugh, those German sausage jokes are the wurst.
 
not to mention, pink boots ...
 
And those are really pink
 
as pink as they come, I think ...
 
2:55 PM
@DaveRandom Hi DaveRandom it's Jonathan, my brain look like shit right now too, maybe we caught the same illness! When you're back on track call me back (hangup sound)
 
They look fabulous Joe
 
they look cool on the bike .... when you walk, which I had to, to break them in, everyone under the age of 20 says "That guy is wearing pink shoes" ...
they wish they could pull it off ...
 
Hello everyone, what do you guys use for functional testing?
 
@JoeWatkins In fairness, if I saw the typical tattooed biker walking down the street in pink shoes I would probably do a double take...
 
@Ivan0x32 End users
 
3:05 PM
Let's start by saying Hi @DaveRandom :P
 
@JonathanLafleur Hi! How's the project going?
 
Good ! Should be fine by the end of the day :)
 
gotta love a bit of blind optimism
:-P
 
Anonymous
/ me will never trust @salathe's links
 
@DaveRandom I just realized that I've made a mistake the stop_code_list -.- I've presumed that in my "n" columns of stops the longest one should be the one with all the stops... but it's not always the case, the client released new schedule that are not working with this way of resolving stops_code_list :P So I have to merge "n" columns before looping trough it
 
3:10 PM
@samaYo ...and yet you continue to click on them...
@JonathanLafleur tbh the whole thing is actually pretty fragile the way they've given you the data. It's likely that if you have a circular route and one of the journeys only does the return leg, you'd end up with some weird results
As usual, really the client needs to clarify their own ideas and processes before you write word 1 of the code.
 
@DaveRandom yeah... i'm at the fifth iteration of the code since we've talked last time
 
Anonymous
@DaveRandom yeah, just like you would not click on this one
 
Anonymous
does that actually work?
 
Anonymous
I guess it doesn't. I see no forks :/
 
> Thank you for purchasing this copy of Microsoft PeeHaa 12.3.Unhandled NullPointerException. Please register your product by read of address 0x00000000.
 
3:21 PM
Are there any (sane) alternatives to opcache you could recommend?
 
@DaveRandom :)
 
@AlmaDo Probably not for 5.6, I doubt any of the alternatives have been made to support it now that opcache is integrated. Obviously there are issues with opcache, but what specifically is making you ask that question?
I've actually forgotten what they were called, but I remember there were some
 
@DaveRandom SIGSEGV on live cluster makes me think like that. Disabling opcache isn't an option (response time raises to the sky). And I can't even properly debug it as even after blocking node out from LB it still shares storage, cache etc, so overloading it causes hit of apdex score limit..
So far I only know that it's opcache stuff
Tried to play with black-listing to catch faulting file - without any success
Tried to play with internal buffer sizes and failed in that approach too
Now thinking to upgrade PHP from 5.5.25 to 5.6 and see if it helps
But if it won't I don't know what to do
 
It's not likely to be a specific file,
 
but rather what?
 
3:29 PM
updating to 5.6 might help, I think there were some tweaks done when it was bundled
 
I hope so, it's my last resort
But however most likely it's related to core lib functionality
 
Really needs a stack trace but obviously that's hard to get from a live env, what SAPI are you using?
 
3:42 PM
@AlmaDo Did you disable optimizations yet?
 
@samaYo *grin*
 
Anonymous
cast you to hell :)
 
Anonymous
((hell) $salathe)
 
Anonymous
if(gettype($salathe) !== 'hell'){echo 'I give up';}
 
Hi, any opinion of the used class?
1
A: Is it possible to change PHP error log output?

sitilgeSo agreeing to && finalizing all the comments given above the best approach is to set_error_handler. Wrote a class for you. I also like to set_exception_handler to have unified experience and save all the errors in Error::$throwables to display them on shutdown instead of the View (handled by Vi...

do you prefer to use exception handler as well?
 

« first day (1693 days earlier)      last day (3270 days later) »