« first day (1355 days earlier)      last day (3599 days later) » 

12:27 AM
@copy or @bwoebi Are you active?
 
Active writing PHP or active in this chat?
 
Chat
I needed some help
 
Nope
 
If anyone was available.
Could you take a look at a problem I'm having?
 
Nope
 
12:31 AM
Its like 3 lines, Please.
I can just paste it here?
 
I wish I could help, except I don't
 
Any reason?
 
Yes
 
I just wanted to know if I can }else foreach.
within the foreach I want to write an if statement, then close.
 
Questions like that belong on SO main
 
12:34 AM
But it's just a quick question.
 
Jay
Has anyone come across this error issue with PDO
Strict Standards: Creating default object from empty value
 
@Jay Show your PDO code?
 
@RahulKhosla Actually, most questions are answered by google / tutorials or they're usually fine for SO. (That means: not too localized)
 
Jay
I have looked at google
tried a few things
like switching to sock connection
socket*
 
I also tried Google for my else foreach if.
 
Jay
12:40 AM
use break?
$something = false;
foreach ($array as $key => $val) {
    if ($key == 'something') {
        $something = true;
        break;
    }
}
my code is just like this:
class sql_abstract extends PDO {

    function __construct(1, 2, 3, 4) {
        // Connection
    }
}

$db = new sql_abstract(1, 2, 3, 4);
www.wizardapp.com/ecommerce_demo
 
No idea, im kind of new to PHP/PDO, so I haven't come across most of that.
 
 
3 hours later…
3:34 AM
@Jay Figure it out or no?
 
4:15 AM
@RahulKhosla try google again and in case you dont find answer/help come here we will teach you how to use google.
 
@NullPoiиteя He was actually telling @Jay that after he asked a PDO question
 
4:58 AM
good morning
 
Morning
 
5:18 AM
morning
 
5:29 AM
It's morning, morning...
 
5:42 AM
Morning..
 
6:28 AM
morning
 
Good morning.
 
I don't want to work
 
Me too it was too late last night..
BEL-USA.
 
6:49 AM
moin
 
7:21 AM
good mornings
 
morning
 
any suggestion for a rest api user? negative or positive
 
@JanakaRRajapaksha What's your question?
 
@SecondRikudo That is his question ^^
morning btw :)
 
@JanakaRRajapaksha Negative
 
7:34 AM
@JanakaRRajapaksha What do you mean?
 
i just came to read about rest and need to know how you think about REST?
 
do developers really fullfil techinical requirement of company like this ?
 
@NullPoiиteя why it is negative?
 
Watch this too: youtube.com/watch?v=hdSrT4yjS1g @JanakaRRajapaksha
 
thanks, watching
 
7:41 AM
LOL
@CSᵠ hey long long time
 
yo
mornin`
`sup?
 
just checking mail ...thanks you ?
 
man at work :)
 
@NullPoiиteя No
 
i am not working :P
 
7:44 AM
Companies often ask for more than they need, to get better talents
 
@SecondRikudo Sigh , this kind of requirements are depressing
 
If you match even some of these qualifications, go for it.
 
thanks
 
is this readable (so you can guess what this code does):
$result = array_reduce(array_slice($input, 1), function($c, $x)
   {
      return call_user_func_array('array_merge',
         array_map(function($y) use ($c)
         {
            return array_map(function($z) use ($y)
            {
               return array_merge((array)$z, (array)$y);
            }, $c);
         }, $x)
      );
   }, current($input));
good morning btw
 
mornin'
 
8:00 AM
@AlmaDo Readability is a scale, and that's on the low end.
 
@salathe hehe
 
@DaveRandom a valid usage for document.write github.com/h5bp/html5-boilerplate/blob/master/index.html#L25
(sorry about yesterday, I forgot about our conversation.)
 
uhhhggg mornign
 
Can anyone recommend a book similar to PoEAA?
 
@David how similar?
 
8:09 AM
@salathe Maybe something that goes over a few of the patterns and maybe some extra patterns and some more implementation if possible.
 
Mornings :D
 
lol
 
@salathe Yes that is me only less fluffy :P
 
8:25 AM
@tereško Thanks
 
@JanakaRRajapaksha fits irritating :(
 
1 message moved to bin
 
8:44 AM
Does anyone know why this line: 'filter_var($email, FILTER_VALIDATE_EMAIL)' where $email is a huge invalid email, crashes my apache server?
the email is:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa‌​aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@a‌​aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa‌​aaaaaaaaaa.com
 
O_o
 
so you should show php version, server version & sapi
 
@Luka Only thing I can thing of is the huge regex it runs, but AFAIK it should just work
I doubt there is a redox vuln in the thing
 
@PeeHaa thanks
I guess there might be some kind of bug somewhere? Maybe in xampp
 
oh xampp
well yeah
That's what you get :P
 
8:52 AM
Hi All
I have to login to gmail by giving emailid and password in the url itself
Is that possible
if yes, need some guidance
 
aha
 
@udaysagar no.
 
That would open some nasty CSRF attacks possibilities.
 
8:59 AM
what are the main things i should keep in mind to be a good developer?
 
He should have free and open mind....nothing more...:-p
 
Sep 29 '12 at 13:58, by Gordon
@hekko if you want to become an expert programmer, google SOLID, buy GOF, buy POEAA, buy Clean Code, learn Refactoring, lookup GRASP, DDD, CQRS, DCI … but dont ask for PHP books. That's the most reasonable suggestion I can give you when you ask for Expert PHP books really.
 
the more free your mind is, the more innovative ideas you get
 
@JanakaRRajapaksha Learn to debug. Learn to google. Learn to Learn.
 
@JanakaRRajapaksha Best practices today are a sin tomorrow.
 
9:02 AM
mornings
 
@JanakaRRajapaksha Learn how to code, not how to code a specific language.
 
@DaveRandom morning
 
@JanakaRRajapaksha Write code you wouldn't mind having to read if someone else wrote it (i.e. don't take lazy shortcuts, put effort into naming variables & classes, comment code which isn't self explanatory with WHY you're doing it that way, not what it does).
 
yes @JanakaRRajapaksha I agree with @LeonLotus
 
@DaveRandom mronigs
 
9:08 AM
lol
mornings guys
 
@Jimbo monring
@RonniSkansing mornignn
 
@JanakaRRajapaksha Probably the most important lesson is you will hit a time when you know a little, and you think you know everything. Get through that.
 
Did Billy manage to sort out his mess yesterday @SecondRikudo?
 
I think nearly every developer hits that.
 
@Jimbo I believe he did
 
9:09 AM
First time he came in he was all humble and nice and asking for help and listening. Then, he came in yesterday having worked in industry and he was a right nob.
 
/me goes to yesterdays dialog..
 
@SergeyTelshevsky awesome
 
so ... @AlmaDo , hows the new iteration coming ?
 
So @Jimbo... Mr Hardy informs me that there are something like 60 PHPNW tickets left :-S
/cc @PeeHaa @Fabien
 
9:12 AM
@DaveRandom Already? :/ You got your ticket?
 
Going to get it right now
 
@tereško I'm writing SQL right now (: I'll return to js a bit later
 
ehm
Whats up with the nazi users?
@Gordon ping
 
Sorted @Jimbo :-D
 
@DaveRandom Nice :D They still £99?
 
9:23 AM
122.06 incl booking fee, but I can get 80% back from work
Get on it @PeeHaa @PeeHaa @PeeHaa @PeeHaa
@PeeHaa
@PeeHaa @PeeHaa
 
@DaveRandom Nice! @PeeHaa come on @PeeHaa
Is @Gordon coming to phpnw?
And @PeeHaa?
 
@PeeHaa
 
@RonniSkansing pong
 
What about @JoeWatkins?
@PeeHaa
 
why are there swastikas everywhere?
@Jimbo nope
 
9:24 AM
^ yes!
why
 
Only just realised :/ LOL
 
@Gordon I don't see them any more after a refresh
 
@Gordon :-(
 
@DaveRandom yupp, they got deleted already
@Jimbo when is that?
 
@Gordon first weekend of oct
cv-pls: Docs, Backlog | Tools: Explain, phpdbg, devdocs.io | Addons: [cv-pls], PHP Manual Linkifier | Snippets: ext/mysql | Reference: QAs
6
 
9:28 AM
ummm ...
Stackoverflow still has sync issue
 
refresh
and the user probably continues to make new users, and they continue to get deleted.
Maybe it will be best just to ignore
 
Seems someone keeps making a new account with that picture
 
pattern matching avatar to stop user from using the same banner? ~_~
 
not impressive anyway =/
 
Did I see a single ping from a single user?
Wow btw dat nazi
 
9:31 AM
@PeeHaa I believe so yes. I forget who it was.
@PeeHaa
 
@peehaa
 
@PeeHaa
 
Anyway @PeeHaa the point is: buy your phpnw ticket now or you basically won't get one
word on the street is there are <60 left
 
ow shiiiiit
 
Buy buy buy buy
 
9:39 AM
wtf is going on with avatars !?! oh ... someone is trolling
 
aww ... @DaveRandom I'll probably have to miss it then ... crappy ...
 
@Gordon wake.. please
 
@AlmaDo i'm here.
 
hi everybody..
 
@Gordon well, you can see that sh*t in right part of the screen, I hope..
 
9:49 AM
did everyone else just see that ??
@user3797133 wtf ?
 
@JoeWatkins You should email Magma and tell them you want to do an unconf talk on pthreads, they might be work something out for you. I realise you're prob not one for public speaking but it's 5 mins of pain in exchange for a free bar on the Sat...
 
@JoeWatkins those are many users (but I think all from one bastard..)
 
It must be a bot, they are appearing too fast
If you refresh the page they disappear
 
@AlmaDo what do you mean? the swastikas? we are aware of it.
 
yes, that @Gordon
 
9:52 AM
reload the chat window
 
do they originate from one address ?
 
aaah, the good old memories when you open an old project andh ave no clue what it actually does.. =D long live comments :)
 
@DaveRandom who is magma ?
also, that sounds pretty scary ...
 
@Gordon oh, sorry. Didn't think about that. Right, no more that crap
 
@JoeWatkins magmadigital.co.uk they guys who organise it
You could talk directly to @phpcodemonkey on twitter
 
9:56 AM
seems cheeky
 
@JoeWatkins they're a very friendly bunch. If you don't ask, you'll never know though ;)
 
@DaveRandom did you get my ping?
 
Don't think so, one sec
 
I really don't want to look at that ...
 
2 hours ago, by Florian Margaine
@DaveRandom a valid usage for document.write https://github.com/h5bp/html5-boilerplate/blob/master/index.html#L25
@DaveRandom ^
 
10:05 AM
im out for lunch. will continue destroying nazis when im back.
 
first time that got said in a while ...
 
@FlorianMargaine That is more readable in that case (the <\/script> trick is nice), but I don't see why that is functionally different from creating an element object?
That was the point really. I'm not saying either way is right or wrong, just trying to understand if they behave differently in terms of the overall effect
 
one of them is extremely slow in old versions of IE ...
 
@DaveRandom the plugins.js file won't work if it relies on jquery if you create an element object
 
is the only difference I ever observed in the real world ...
(document.write appears to be faster than creating element objects, so I've changed code that did create objects to use document.write because IE was apparently super important and it's not worth having two versions of the same code ...)
 
10:10 AM
because jquery would then be loaded after the plugin.js file
 
How does the \/ work?
 
@FlorianMargaine but that's the thing, on both cases the dynamic script seems to be run immediately
19 hours ago, by DaveRandom
@FlorianMargaine Seems to be run immediately in both cases: http://jsfiddle.net/Wkr6c/ vs http://jsfiddle.net/Wkr6c/1/
@Jimbo javascript strips backslashes that ae not valid escape sequences
In PHP 'f\oo' == 'f\\oo', in JS 'f\oo' == 'foo'
 
Ahhh
Or, just type 'foo' :-)
 
What's up with all those nazi avatars?
 
read up
 
10:18 AM
If you use php, you're effectively a code nazi
 
@Jimbo Yeh but in the case of what we are talking about here it's required, because var foo = '</script>'; in an inline script will cause the browser to exit that script block
@PeeHaa Are you on top of it?
 
oh, my input string contains $. My code works only if i escape $ in the input. How i make the code to work without escaping it in the input.
any suggestions?
 
@AvinashRaj copy a minimal example in pastebin or something and link it here
 
10:32 AM
That's one persistent nazi :P
 
see this answer stackoverflow.com/a/24528400/3297613 . It works only if i escape the $ symol in the input. But op don't want to escape it in the input.
 
@PeeHaa Nazi* nazi = pemalloc(sizeof(Nazi));
 
@AvinashRaj I have not read it all. but the OP seems to have fixed it already?
 
Soooo… let's break php-src travis build again :-D
 
That is not good.
 
10:35 AM
Ffs. I've had a problem with my form for a day. The reason, which took hours to figure out? I'd put an actual <form html tag, as well as the {{ form_start(form) }} twig tag. What. A. Bell end.
 
@Danack sorry, what's wrong with that exactly?
 
@DaveRandom Not really I still have to check whether it am available :(
 
Including the module changes how maths works.
Which means to reason about the code, you also need to be aware of which modules are loaded....which may not fully be in your control.
 
@PeeHaa Check now. Make yourself available. DO IT.
:-P
@Danack Same is true of mbstring func overloading in PHP
I admit global operator overloads seem like an odd thing to allow
 
10:38 AM
Yeah exactly. mstring func overloading is terrible - it's meant to be being removed at php.next isn't it?
 
but it won't work for me.
 
Also, I am coming to PHPNW - is there a recommended hotel that other people are staying at?
 
@Danack I don't know, it's one of those things Yasuo was banging on about I think, which basically means no-one has any idea because I'm reasonably certain there were no coherent thoughts presented
What's your hotel budget?
 
Whats up with the natzi symbols in the chat?
 
Read up
 
10:42 AM
@RahulKhosla F5 will save the world
 
@DaveRandom Don't know. Was just wondering if there was a hotel that everyone else was staying at, for the purposes of late night drinking.
 
Hurray
Why were they there?
 
I need to see if my company will pay for the ticket I bought + hotel :-)
I was so hungover last time
 
Why? As it looks like all the world madness or stupidity need to be explained.
 
I might be able to get a discount at the Britannia @Danack, I'll have a word with my mate who works for them and scope it out. It's about 5-10mins walk from the conf. britanniahotels.com/hotels/britannia-manchester
@Jimbo Yeh didn't you go home on the Sat night last time?
And then bailed on the Sunday sessions
 
10:46 AM
@DaveRandom Yeah, didn't manage to get the hot recruiter to go for a night out afterwards - her boss was there :( So. This time. I need a hotel. :D
 
@DaveRandom cool.
 
Also how much is this discount :P
I need to stop putting smileys :) :P :D
 
@Danack If the event is over a few days, only book a hotel for 1 night.
 
^ Very wise words
Thanks Rahul!
 
Message, written on the wall:
- I'm nazi. And who're you?
message below:
- I'm anti-nazi. And where are you?
 
10:47 AM
Ok :)
 
@PeeHaa solved using <<<'EOD'
 
@Jimbo I've just text my mate who works for Britannia to see what he can do
 
Nowdoc
 
Add more smillies @Jimbo =]
 
xD X--) :O
 
10:49 AM
@AvinashRaj ?
 
No work today, and I am almost completely clueless on what to code/look at today... Been thinking about those websockets.. but meh.
Any of you got summervacation?
 
@RonniSkansing meh? MEH!?!?! MEH!?!?!?!?!??!
It's freaking websockets only thing moar awesome is lasers!!!
 
=]
Meh as in, big topic
I still find them abit scary
in regards to cors
been thinking about trying to use everyone that joins a site or xss to be slaves to a master, sending out calculations
 
:)
 
it just seems crazy
 
11:06 AM
@tereško if select will have onclick & I'll hide it. How to maintain compatibility? Get current html select onclick event handler is fine, but - where to trigger it? Before container onclick? After? Or where?
 
@AlmaDo select wont have an onclick
 
@tereško why?
 
it usually will have onchange
 
usually - yep. but what if .. ?
 
11:08 AM
^ that's not a problem. Problem is in logic..
 
@tereško I think it does have one, it's just not hugely useful for form events
 
so I doubt it's possible to create 100% compatible replacement ..
select may have.. onblur for example or whatever..
 
Google it
 
@JanakaRRajapaksha nazi's ...
 
11:14 AM
Google allows search by image.
 
that was so many more letters to type than "nazi" @SecondRikudo :s
 
@JoeWatkins give a man a fish...
 
probably everyone already seen this masterpiece, but: hackertyper.net
2
 
@DaveRandom I said that it won't have one , not that it cannot have one
 
@SecondRikudo ...and he will start a world war?
 
11:18 AM
@SergeyTelshevsky E_BLACK_SCREEN
 
@AlmaDo type
 
@SergeyTelshevsky nothing
 
enable js :)
 
@SergeyTelshevsky I see green cursor now :p But still nothing
 
try typing in that window, dunno why it's not working for you
 
11:21 AM
oh that. funny. huh, but why standard sorting algorithms are treated to be "hacker" things is not clear to me
 
don't know, anywhat, you may substitute the text file via js console
 
I'm stuck on rendering a Symfony Form. I think I might need to ask a question. But it'll be a big question as it'll most likely involve: DB schema (doctrine entity) and more
-.-
 
@SergeyTelshevsky I like this genius thing
 
What am I doing wrong here: pastebin.com/xRUcXr7E
 
@AlmaDo It just crashes my browser
 
11:25 AM
@Jimbo looser (:
 
@RahulKhosla read the documentation
 
@SergeyTelshevsky this is the rendering file for that: hackertyper.net/_/misc/kernel.txt
 
@JanakaRRajapaksha yes
 
make sure to debug your script as I told you a couple of times.. with lots of var_dump($x); die;
 
@RahulKhosla let's start with the fact that "db" is an undefined variable in that function
 
11:25 AM
function dlln($db, $loggedInUser) {
I assume this will work?
Let me try
Ok that worked, thanks.
 
@AlmaDo amazing :)
 
yeah. Looking for that I really understand how low is my js skill
 
@RahulKhosla second, "what am I doing wrong" is not a question in itself. What do you intend to do? What is the expected output? What is the actual output? By not adding these details to your question, you have slim to no chances of getting an answer.
 
Ok will keep that in mind.
Thanks.
 
random nazi's are random.
 
11:30 AM
btw, may be there is some native way to check if string matches some format in MySQL? It's for this issue - and I did stored function, but may be there's a way to do it with STR_TO_DATE() somehow?
 
@AlmaDo Damn I was about to answer that question
 
@SergeyTelshevsky your wish to answer was so strong that you've even cv-d it ? (:
 
if (dlln($db, $loggedInUser) < 0) {echo "LOL";}else if //my if
Looking at this function http://pastebin.com/hYZ2q0xr Im trying to check if dlln is smaller than 0. Its currently -16 but Im not sure why I am not getting the echo... I just get -16, I assume its because I am echoing the row.
 
@AlmaDo I understood that there was a way right after cv-g :D
 
@DaveRandom in your second fiddle, the script is run in the body, and added to the end of the head, so it's run before
 
11:52 AM
Any ideas?
 
Have you tried all debugging tips you have gotten the last few days?
 
user2518044
It is possible to send a DELETE request without cURL?
 

« first day (1355 days earlier)      last day (3599 days later) »