« first day (1181 days earlier)      last day (3993 days later) » 

00:05
> Standards from the last days of Disco, like Disco, will never die.
Made me lol.
E_INSUFFICIENT_COFFEE
00:41
*kkzzt* Evacuating room 11. Over and out.
user895378
00:54
@Danack Hmm, after thinking about it a bit more I guess the kind of functionality I was thinking of can't be achieved with the existing ext/session.
user895378
But honestly I think it would be a lot of trouble to try to alter the extension's behavior.
@rdlowrey "Yes - which is why I think using a generic session store is a bad idea, as there are far too many things that need to be decided at the application level."
user895378
I have to do some testing on it today and tomorrow before I can push it but I wrote a full userland sessions implementation over the last day and a half. Maybe you'd be interested in playing with it?
Yes - I've also got one as well now - but my back is being a bit painful and so haven't done as much as I'd hoped.
01:12
Any programming team has at least two programmers: you, and you three months later.
user895378
01:25
I was skeptical at first but I think the PSR thing can be a really positive thing if the "arbitrary" things can be removed ...
01:37
@rdlowrey I'm starting to lose hope for decent interfaces by PSR =_=
user895378
Well as much as I think the other PSRs are unnecessary the HTTP one could be very useful but it has to lose the implementation details. Otherwise I'll be a very vocal opponent of it.
user895378
Artax is whatever ... I don't care about the performance there ... but I am trying to make sure they don't enforce anything that would conflict with my server's performance.
@rdlowrey I'm pretty sure it will look like "I want also that feature" party
That's what a simple service location interface definition discussion currently looks like =_=
"yaaaay, let's add more methods for the sake of it"
user895378
Wait. There's seriously a service location interface PSR discussion?
There is
user895378
01:42
OMG OMG OMG OMG OMG OMG OMG
I think it would be quite a step forward given all the different containers out there
I really want to keep it to SL only. We don't yet have compatible containers out there
user895378
Standardizing an anti-pattern?
user895378
I don't ...
user895378
I just ...
user895378
Why?
01:43
@rdlowrey well, any DIC usually is also a SL - standardizing just the getter that is the entry point of an app would be cool IMO
allows swapping out the entire bootstrap or run step of an app
user895378
but that's just ... I can't even ... I just don't have any energy left to talk about SL anymore.
@rdlowrey SL has a place out there. Not everyone is going to wire an entire app together in one shot
and you will still have cases where you want to lazy load deps
user895378
catering to bad design is not a good excuse IMO.
that's not bad design, SL is actually OK for lazy loading purposes
user895378
I really really don't care to talk about it. Everyone knows how I feel on that subject.
user895378
01:47
I can't be persuaded because I've never encountered a situation where I couldn't do real inversion of control to solve a problem.
@rdlowrey you see...the thing is, most of the people can't design systems that well
user895378
@Ocramius Yet somehow I'm able to do really high performance things both in CLI and web SAPI using automatic dependency resolution and no service locators.
@andho there's still a lot of cases where SL is used to map controllers, to handle routing, to do a lot of stuff
user895378
I get it. I understand the arguments people make for SL. But I just don't agree because I haven't encountered the same drawbacks.
01:49
@rdlowrey yes, and afaik, you do not have business rules with dozens of pages of requirements right now, right?
I may be wrong, I don't know your current employment situation
For example, even in your case with long running processes - why would you spawn all dependencies required by a thread when the thread will only use some?
user895378
I do it in the web sapi too, though. These things can be done efficiently.
user895378
@Ocramius I work for myself and pretty much just code whatever I want ;)
I'd love to copy-paste you my current customer's business rules engine just to make you understand the need for SL
but can't
user895378
Hmmm ... that sounds really awful actually.
just imagine a giant set of listeners that only handle logic in rare cases
but still, I need to attach them eagerly to be sure to catch all cases
and the engine behind each listener needs instantiation as well
blablabla - lazy loading - blablabla
that's the sum-up
service location is an implementation for me - I don't use it explicitly except in the wiring up
user895378
01:53
Okay then. I can agree that the lazy-loading afforded by a SL in that scenario could make sense.
user895378
Leave it to business rules to screw everything up.
well, business rules give me daily food
I hate them, they hate me, we feed each other
user895378
As long as people don't come around saying that it's not any worse than regular IoC we're fine ...
and if I could say "fuck Zend\ServiceManager, I'm gonna use Symfony\DependencyInjection"
well, that would be cool
@rdlowrey then please do flame on that issue XD Some people really want to standardize an IoC as it seems >.<
and it makes little sense to me right now...
user895378
@Ocramius On a related note ... I might argue that the SL need would be largely eliminated by not using ORMs where you have to turn your entire backend into a million objects ;)
user895378
02:00
hehehe but I won't go down that road because we definitely won't agree
user895378
And that's okay.
@rdlowrey uhh, how about
:D
Yeah, I really need to stop arguing while half asleep xD
morning
Alright I have a design problem here that I need some advice on. I have a fixed navbar on top (using twitter bootstrap). I created a basic F.A.Q. page where, when I click on the link, it automatically shows the corresponding information. However, the fixed navbar on top always ends up coming over the information box.
What should I do?
@AGirlSaidMySmileIsCute Go on a murderous rampage.
Once you're done killing everyone, do an onload that looks at the hash and then does a scroll to the offset of the id on the page minus the height of the navbar.
You'll also possibly need to do an onhashchange listener as well
02:15
somewhat makes sense.
@AGirlSaidMySmileIsCute What are the modules with the IDs? <p>s?
I am not sure I understand. All I have are links on top, which look something like this: <a href="#what">What is this?</a>
@AGirlSaidMySmileIsCute You don't wrap each question in it's own paragraph?
then I have the following: `<div id="what">...</div>
So when I click on that link, the page gets scrolled down to the div.
@AGirlSaidMySmileIsCute So give each div#what padding top of however tall the navigation bar is. If this creates a spacing issue, remove a bit of the margin you should already be using.
02:22
Good idea. Let me try that.
@Jeremy It works, but as you said, overload of spacing looks really messed up.
You'll need to play around with margins and whatnot
I guess I could do negative margins
Why do you need to? How tall was the navigation bar? Are you giving your readers an eye break between paragraphs?
Navbar is 51px
They are DIV boxes with 20px breaks
Hmm... yeah, maybe negative margins =/
02:30
@Ocramius $locatorInterfaceThingy->get('db.host'); doesn't click with me. Is there a real need for pulling scalars from a Registry?
Thanks bud! Using margins did the trick. Saved me from doing an hour of research to fix this problem.
@andho more configs tbh, yes
No problem.
@andho same configs may be shared by different similar services
such as (for example) a base cache dir
ok
03:11
I have a simple script that doesn't work. What the freaking heck!
can anyone help me with an AWS issue?
mail('[email protected]', 'Feedback', $messageText);
no mail received
WHAT THE HECK
user652649
'ning
is there a simpler way to send email using php and the default mail() function?
user652649
use swiftmailer
03:21
Eh, I am looking for a simple email service. All I need to do is take whatever feedback the user submits in a form and email that to myself.
I don't want a huge thing for it.
What's wrong with mail()?
Doesn't send me the email
Tried this: mail($to, $subject, $messageText, $headers);. No email sent...
$to = 'my email';
$subject = 'Test';
$headers = "From: [email protected]\r\nReply-To: [email protected]";
No email received.
Not even in the spam/junk folder
Maybe it'll work once I'm off localhost
If you're doing it on localhost you'll need to configure it properly. It varies depending on what server you're using it on.
Anyways, g'nite.
03:41
@Jeremy Everything is wrong with mail(). It's a black box that nobody should ever use.
@AGirlSaidMySmileIsCute Switch to a modern PHP mail library, like SwiftMailer or PHPmailer or Zend_Mail or something that actually reports errors.
Pair it with a known-working SMTP server, and you're golden.
Only thing is, I have never used those libraries before. I don't want to overcomplicate things.
Of course, if it's simple, then I'll be happy to use that instead.
The problem is that mail() is too "simple".
Well, all I'm using it for is sending the message from a feedback form to my email.
The main problem with mail is that you have no control over what happens when something goes wrong. The return value just means that it thinks that it was able to ask the local MTA to queue the mail for delivery. That does not mean that the MTA accepted it, nor does it begin to ensure that delivery was successful.
A modern library, while more complicated, removes all of the unfortunate abstraction introduced by mail. This lets you actually determine what to do when something goes wrong.
04:35
@AGirlSaidMySmileIsCute You will find for all but the most trivial rich mail those libraries are much easier then using the mail function (especially if you want to do multi-part e-mails)
04:48
Anyone have any suggestions on tools that can be used to create a displacement map
@Orangepill 3D Studio Max? Blender? I dunno =o(
@crypticツ yeah ... I was afraid of that :(
@Orangepill soundstep.com/blog/2012/04/25/javascript-displacement-mapping ? not sure if that does what you want or not
That blog post is part of the inspiration for the project.... I need to back into the map used to achieve this effect.
I want to project user supplied images/text onto a curved surface (wine glass)
@Ocramius I am disappoint; I can't believe you support having Interface in the name.
05:20
Is this an alright structure for a config file? gist.github.com/KyraD/bb89f86b7bef6b408d9f I'm wondering if I can remove some levels, while still maintaining the 'backlog' prefix and keeping it all organized.
@crypticツ It's comparatively shallow, based on some config files I've seen in the past.
I wouldn't really worry about it.
I used to use a path mapping dealio, which would translate a string like 'foo/bar/baz' into array offsets ['foo']['bar']['baz'], etc. Anyway, sometimes I'd look at the path and think "gee, this would be a fucking retarded URI", and that was typically what prompted a reorganization.
backlog/sources/chat/cache_ttl/ids is pretty clean if you ask me.
sweet. Now I just need to figure out how to access my application settings via stackapps.com I don't know how to get to it =o\ blah
well, it seems my application is not listed, which is weird since I have a working API key
05:36
jsfiddle.net/ccJ9p/7 the marker opens the infowindows but how can i open a infowindow on click and previously opened window should be closed ?
Well, that's about enough for today.
Adios.
06:05
morning @Wes
user652649
sup
nothing much, listening to music and doing PHP stuffs.
user652649
good, that's all you need
no, I need food too. Haven't eaten dinner yet and it's 1am. Been munching on some cheez-its. I should probably go cook something.
user652649
yesterday evening i had carbonara. not something you would eat at dinner... then i watched like 5' of almost human and i fell to sleep.. thanks to the carbonara xD
user652649
06:15
then at 3 am i woke up like a zombie, because i have slept on the couch
user652649
and now i'm checking data entry of a customer, and i'm like doing a facepalm every 10 seconds
@Wes what did they do wrong?
user652649
i have made a tool to check duplicates on the fly before inserting a new record that sayz "CHECK IF IT EXISTS ALREADY BEFORE INSERTING A NEW ROW", it's like blinking 40pt red font
of course they totally ignored it and i'm spotting tons of duplicate entries
user652649
naturally for every row they inserted, they registered also a bunch of invoices, which belongs to the same client not to different ones -__-... the same invoice was added twice to two different rows which refers to the same customer
user652649
a total disaster
06:47
@Wes but why was the tool allowing the dupes to be submitted?
user652649
because you can't safely determine by code if customer is really a duplicate or not, the best thing you can do is to show similar results and let the user to check manually
07:12
moin
anyone in the usa ?
there are pictures online of niagra falls frozen
there are pictures online of niagra falls frozen
is that real ?
I guess it is ..
07:28
did you know you can create 'hot' ice out of water?
where it's melting point it well into the hundreds of degrees
water is such a weird thing
user652649
@Wes that's not water though
user652649
that's hot ice!
user652649
science is fun!
the ice I'm talking about can only be made in small amounts in lab, has to be put under 15K atmospheres of pressure between two diamonds to turn water into ice at room temp and where the properties of that ice become different than regular ice.
hot ice is a figurative term for ice forming at temperatures above 0C/32F
07:38
"the ice I'm talking about can only be made in small amounts in lab, has to be put under 15K atmospheres of pressure between two diamonds" --- that's what I would expect to hear from unicorn if I met them in person ever
or is your avatar just a pony? :-S
well they have to use a diamond because it's the only thing that will stand up to the pressure.
no, one is for the experiment and another is for lab director's wife
bbc.co.uk/programmes/b016fpyy worth watching =o) it's on TPB
08:51
Morning all
morning
good mornings
Morning
Seems like the PHP tag is being spammed by jQuery questions the past minutes... Already edited 5 posts or so
@crypticツ Despite the fact that the answer is awful and uses deprecated db API, it's still valid answer, imho. :)
08:57
@Leri look at the 2nd highest voted answer's example
notice anything similar?
Oh, another copy-paste.
it adds nothing new to what has already been posted and just clutters up the question with repetitive content. So reason it should just be removed.
Basically, the reason is low quality of the answer. ^^
Agreed.
mornings
mysql_escape_string is deprecated. You may use htmlentities() if you do not want to use mysql_real_escape_string() — Anil R 2 mins ago
09:10
@Leri nice ...
09:28
Morning @JoeWatkins
morning @Fabien
What time you shooting off Joe?
09:43
@Leri apparently I'm not the only one who reviewed all his answers after seeing his above comment =oP
@crypticツ Yes. :p Actually, I was expecting help it's urgent question list.
10:09
@Fabien just before 12 I think ...
Assuming you're coming through sholing, there's a toll bridge. 50p.
good morning
@AlmaDo morning.
@Leri how it goes?
10:21
Pretty good. How about you?
try to guess what I'm doing :p
Chatting? :p
nah :p
In that case I have no clue. What are you doing?
Mornings
10:22
I thought it would be easy to guess. I'm doing nothing, as usual :p
hi, @DaveRandom
Hey everyone!
Hey all
Morning @Suhosin
11:31
@Mr.Alien Not sure about that - I know it's already open but even with that code it's barely possible to tell wtf is going on there
11:49
Last day of early bird pricing for PHP UK guys :D
@DaveRandom and that's why I didn't answered, but anyways, couldn't leave closed on that reason, for more code, we can ask for ... by commenting...
Hi just want clarification about this gerneral relationship
can anyone help me
well that's a first
@Suhosin Even Ircmaxell said it was pricey :P
@gowri - please elaborate.. what's general SEO table? That diagram makes exactly 0 sense.
11:55
@N.B.: Seo -> table will have meta title, description, etc
You're talking about a Database Table right
it's common for both page and post
yes
@gowri - what does table mean? HTML table? Database table?
Excel sheet?
NoSQL document?
database table
He's asking for entity relationships
11:55
Squirrel? Potato?
yes
Fail at ERD attempt ;P
@Fabien We got the Blindbird rate
And what is troubling you exactly? What is post? Is it a HTTP POST request?
Yeah, I was more tempted back then but the price put me off, now it's even more expensive :P
11:56
You need to give us details so we can work with them :>
You'll have Joe there though.
all are tables post, page and seo
Is "post" some sort of entry in the database table?
Consider Post table have the post "hello world" I want to store their meta information in seo table
same like I want to state the about us meta info in seo table
Think more, Product meta will be stored in "SEO" table
So "SEO " table will be general
I can extent that for any entity that I create
So what type of relationship is this
@gowri Do you know what you should have done? Shown us the table structures
12:00
It's either 1:1 or 1:M by the looks of it, you gave us exactly 0 details :>
@N.B
still 0 deals what else you need
@Fabien Asked my boss for a price for you for that ticket
@Fabien Still waiting for reply :P
Right, there seems to be a language barrier so I'll excuse myself from further discussion. Good luck to you.
@Suhosin Probably trying to hock it himself :P
@N.B. It's fine thanks
12:02
@Fabien My boss has no interest in code :P
Surprised no one else in your office isn't trying tbh.
@Suhosin How cheap can you get them?
12:24
@Fabien Everyone who wanted one got one
@Jimbo I only have 1 spare
@LeviMorrison how did you manage foot notes in GH comments? O_O
Reviewing your old code is really tiring.
@Ocramius <sup> tags
facepalm
I forgot that MD supports eichtiemell
12:40
Hi all
how r u
@Ocramius my json provide response like this {"Response":[{"sucess":"S","message":"Login Successfully","userid":"1","profile_path":"http:\/\/212.48.68.53\/newidenty\/pro‌​file\/4994harrry.jpg","contact_path":"http:\/\/212.48.68.53\/newidenty\/friend\/"‌​,"access_token":"11e4bd6e35e30fbe750cd97b92d64beecf4f3d31","expires_in":3600,"tok‌​en_type":"Bearer","scope":null,"returncode":0}]}
fn, thx, bt w dnt us abbrv
i require {"Response":[{"sucess":"S","message":"Login Successfully","userid":"1","profile_path":"http://212.48.68.53/newidenty/pro‌​fi‌​le/4994harrry.jpg","contact_path":"http://212.48.68.53/newidenty/friend/"‌​,"acce‌​ss_token":"11e4bd6e35e30fbe750cd97b92d64beecf4f3d31","expires_in":3600,"tok‌​en_t‌​ype":"Bearer","scope":null,"returncode":0}]}
I can't see the difference
@Ocramius profile_path is change "profile_path":"http:\/\/212.48.68.53\/newidenty\/pro‌​file\/4994harrry.jpg" to "profile_path":"http://212.48.68.53/newidenty/pro‌​fi‌​le/4994harrry.jpg"
there are backslahes in profile path how to remove it
Why would you remove it?
You're obviously parsing your JSON wrong.
Which proposes a question - what are you using to interpret that message anyway?
12:45
@N.B. i am passing like this "$response[] = array('sucess'=> $sucess,'message' =>$message,'userid'=>$userid,'userid'=>$row['id'],'profile_path'=>'http://212.48.68.53/newidenty/'.$row['profile_pic'],'contact_path'=>'http://212.48.68.53/newidenty/friend/','access_token'=>$data1['access_token'],
'expires_in'=>$data1['expires_in'],'token_type'=>$data1['token_type'],'scope'=>$data1['scope'],'returncode'=>$returncode);
$respon['Response'] = $response;

print_r(json_encode($respon));"
@Suhosin Nice company :)
@railsbox the backslashes are correct in that json...
So you have json_encode() at one point and json_decode at other point, where's the problem? Slashes are fine. When you decode that JSON you'll have correct data.
@Ocramius i know its a correct but my TL require this. want to change it . please HELP buddy
@Ocramius @N.B. i dont find any solution yet
@railsbox "my TL"?
12:48
@Fabien They invest in people.
Must be nice. :(
Your TL is an idiot then if he requires something that doesn't have to be there.
@Ocramius Team Lead
Tell the consumers to fix their json parser
@railsbox he's an idiot.
fix the parser instead of building security issues
Why would someone ASK for something that they don't need? Talk to your TL and explain that you don't have to fix it because it's fine.
12:49
@Fabien I like it.
@Ocramius @N.B u r right
@N.B. More likely s/he wants to reduce traffic. lol
@Leri yes, so much traffic will be saved, worth millions of dollars :)
lol
let me add some backslashes in your million dollars
:D
@Ocramius @N.B. @railsbox JSON_UNESCAPED_SLASHES
I forget what, but there is a JSON parser out there that just refuses to do it right, so that option was added
12:52
wha?!
why on earth...
inorite
@DaveRandom For example? Seriously, I have not seen any (but some home-made ones).
<3
@DaveRandom checking
I can't remember what it was, might have been an obj-c 3rd party lib but don't quote me on that. I know I've run into this issue before though.
12:55
ffs - fix the client then O_O
@DaveRandom It not Working
@railsbox Requires PHP 5.4+
You shouldn't have showed him that @DaveRandom :)
But really, seriously, fix the client
gaaaah
bitcoin mining difficulty had a huge spike this month :(
12:57
@DaveRandom Sorry i applied on wrong way Working fine :-)
@DaveRandom thanks :-)
@railsbox Please consider that a temporary band-aid fix and get the other end to fix their JSON implementation
;-)
@Ocramius Blame @ircmaxell and his Butterfly miner
yeah
I got a smaller one and it is now not producing enuff
at least it paid itself already...
@railsbox - please consider continuing to use code badly so I'm never left without work, no insult intended but "developers" like you and your TL help me earn my bread :)
@N.B. interesting POV
^^
13:00
@Ocramius Meh, as long as you're in the black on power consumption you're still way out in front of the GFX card-based rigs
@DaveRandom right now consuming 25ct and producing 2 eur
that's still profitable, plus it keeps my room warm
@Ocramius Yeh that's true, I guess it doubles up as a fan heater :-P
@DaveRandom : r u dere ?
I m in need of one help urgent
SELECT ID,Date,SitesNames,Notes,PersonsId FROM tblDiary WHERE Date LIKE CONCAT('%' , '-'.$getMonth, '-'.$getYear)

What is wrong with this query ?
concat? really...
Nothing wrong with the query. Error is in 1) having a field named Date and 2) thinking that dates work like strings.
13:09
@N.B. $getMonth and $getYear in which format ?
@Fabien there's sql concat and php concat '.' hehe
@Pushkraj - no. I didn't say that.
@Pushkraj It's open to sql injection.
I m iOS developer, PHP person is not here so just updating one query as per my requirement of API
So please tell me how the query will be
You think that you can use date or datetime type of column as a string.
13:11
Date column is in varchar format so what will be way ?
They are not strings, those columns are numbers internally. Your LIKE doesn't work on dates. Unless if it's a varchar
its a varchar
Well if you have a varchar column for date then you have a whole different problem :>
http://stackoverflow.com/questions/21021198/how-can-i-count-matrix2d‌​-array-elements-usign-php
Apart from being open to SQL injection, use whatever language you use to check what error you get after executing the query
13:12
can i change column name to other than Date
?
Why don't people check for errors?
@N.B. : can i change column name to other than Date ?
You can name your columns anything you like, as long as you don't use reserved words (dev.mysql.com/doc/refman/5.5/en/reserved-words.html) and even if you do, use backticks (`) to quote them.
After you execute your query, check for errors
And if you can't solve the problem after that, ask and include the error you get
That's about it.
@N.B. : Ok sir
I will check and let you know
?
@LeviMorrison I do indeed - I personally like having the Interface suffix - helps a lot when working with larger code bases and leaves no space for doubts. There's an old discussion (sorry for the mess in formatting) about that that I fully agree with and that basically sums up why I like suffixes
13:16
No, don't let me know, just do it and ask here, someone else might help too.
Ok
Sure
thanks
Hello all
i wanna know how to call a php file from another php file
@Leri i have echo in that php file then how will i view that echo?
How do you usually "view the echo"?
Just try it and see what happens. No nuclear bombs will go off.
13:25
no i mean requireonce also show me echo?
@MuneemHabib or include
Try it
1
Q: How to make this properly testable, mock doesn't have method connect()

WebnetThe error: Database::connect() does not exist on this mock object How can I get around this seeing as this method is executed in the constructor? Should I avoid executing a method in the constructor like this altogether, or is there some other route I should take? I'm not understanding why it ...

I'm struggling with something silly in PHPUnit here. If anyone can take a look I'd appreciate it
@MuneemHabib imagine that the required/included file is part of the calling file.. that might be easier for you to understand..
13:56
I love SPLFileObject. In your tests you can mock it out with an SPLTempFileObject :D

« first day (1181 days earlier)      last day (3993 days later) »