« first day (1403 days earlier)      last day (3545 days later) » 

6:02 AM
Good morning
 
yay, all bills have been paid
 
imagettfbbox(): Could not find/open font I am getting this error in cakephp can anyone help me
 
morning
 
why are <<<<<<< HEAD ========== these added to my files?
 
@shortCircuit Those are merge conflicts.
git would have warned you about them.
 
6:11 AM
how do i resolve? git status gives me nothing
 
I usually manually edit the files and save them
 
ok
and then add commit merge and push!
 
@shortCircuit You resolve it by removing the conflicts first and then git add <file>
Was this part of a merge?
Actually .. what did you do?
 
i was trying to merge things, i tried a few pull requests and then merge and push... i don't remember the exact steps .. they were arbitrary, i cannot understand these things .. with windows it was pretty simple, click drag, commit and sync ..
suppose i am in a branch , i modify the files and then do a git add <file> , then do i need to merge to master again?
 
The fact that you don't know what you're doing might explain why you're seeing these things :)
 
6:22 AM
:) thats true
 
You don't have to merge things into master straight away.
It depends on the workflow; if you're fixing a single bug, sure, commit, and merge (of ffwd) the master branch.
If you're working on something more complex, commit often and only when you're happy, merge it with master.
 
guys any ideas when this is gonna be looked at?
 
The details of the error aren't in that comment...
 
6:28 AM
@paullb but the point is valid anyhow.
 
Is there a ticket for it? Yohimbine HCL
@AwalGarg What point?
"Warning

If your application does not catch the exception thrown from the PDO constructor, the default action taken by the zend engine is to terminate the script and display a back trace. This back trace will likely reveal the full database connection details, including the username and password. It is your responsibility to catch this exception, either explicitly (via a catch statement) or implicitly via set_exception_handler()."

Ah, this
 
the revealing of sensitive data on error.
 
@AwalGarg don't show errors in production
 
well, if it's not classified as a bug, it won't be fixed
As per the documentation, you are responsible for catching the exception
 
ok. but I still hope the default nature is changed.
 
6:32 AM
@AwalGarg, now that is a fair statement ;)
 
:)
 
open a feature request for it
 
why would you not show a stack trace when an exception happens?
 
yay!!
 
6:46 AM
Is there anyone used TestFlight?
 
not very PHP related but I've used it in the past
 
7:02 AM
@AwalGarg I'll take a look at it.
 
@Ja͢ck thanks :)
 
@YogeshSuthar Still spamming iOS stuff are we? ;-)
 
@Ja͢ck Actually that question was for you. ;-P
 
lol, yeah, we're using it iirc
@Patrick it's recommended practice to only log exceptions, not show them on screen.
 
I checked it and I found that we can't send that build to any user, whose deviceID is not added.
 
7:06 AM
obviously.
 
So what's the use of that, this task we can do with normal way too.
 
The whole idea of TestFlight is that you have a handful of testers that can test the app.
And they have to "join the program" before they can test anything.
 
Yeah, but same thing can be done in normal ways. But we can't track how many downloads are done and crash reports too. I thought using testFlight we can send our app to any user to test.
 
good mornigs
 
@paullb you mean an RFC? how, I couldn't create an account. It just keeps redirecting me to the same page.
 
7:18 AM
@AwalGarg, I didn't actually try... :p
Do you know an RFC is?
 
@paullb Request for Comments ofc.
 
@AwalGarg, right and how would that apply here?
 
@paullb because directly doing a feature request is not my intention. I first want to know whether it is a good idea or not.
 
@paullb he's saying that he couldn't create an account ... that's kind of a prerequisite of being able to write an rfc in the first place ;p
 
7:20 AM
@Ja͢ck That seems like a pretty stiff requirement
 
what is meant by urlsafe base64?
 
Not anyone can report a bug?
 
err @paullb are you on a mobile device?
 
@AwalGarg no, just not used to using the @ mark for people's names
 
@paullb If by stiff you mean sane, then yes :)
 
7:22 AM
WRONG! I would have downvoted this twice if I could! — Second Rikudo 8 secs ago
 
@Ja͢ck isn't writing a full RFC quite an arduous task?
 
@paullb Depends on how big the change is.
A feature request can be made using the bug system.
 
mornings
 
@Ja͢ck That's what I meant. A feature request via the bug system
 
7:35 AM
@Jack
got some time ?
 
Always :)
@AwalGarg The problem doesn't actually lie with PDOException itself; it's the stack trace that's the issue here ... that's a harder problem to solve though
 
@Ja͢ck why?
 
@AwalGarg Because that's an artefact of the engine itself, not PDO specific.
We would have to define an "API" that internal functions can use to mark arguments as "sensitive".
@JoeWatkins Correct me if I'm wrong ^^
 
@Ja͢ck No, I don't want that.
Don't be an idiot and catch your exceptions.
 
I'm hurting, and have to go to hospital in a while ...
 
7:45 AM
The only cases where an Exception might not be caught is in development
 
@SecondRikudo I'm not arguing for or against here ;-)
 
maybe you could think about how we could implement that ... we want to be able to case from zval to UnicodeString (or the union that replaces it later), and back again ... just pointer arithmetic so v fast ...
 
@Ja͢ck Just making sure it's clear for @AwalGarg
 
@SecondRikudo :(
 
Ah okay .. I will try to make some time tonight ... boss says i have to do work heh @JoeWatkins
 
7:47 AM
Morning
 
@JoeWatkins Wait, what union btw?
 
well UnicodeString* might be replaced with union of UnicodeString* UText* and whatever else is necessary ...
 
Oh I see.
 
so I did that ... to hide the details ... so we can support both, if necessary but need to be able to cast from php type to icu type for integration with intl and whatever else ...
I think ...
moin @Fab @TomášAresakMalčánek
 
7:50 AM
@JoeWatkins So when you pass PHP_USTRING_CAST_ZVAL, you mean that is the internal data type and the return value should be zval?
zval* rather.
 
yeah
 
okay, should be doable .. when is that called? when i do (string)$ustr?
 
any help on this:

http://stackoverflow.com/questions/25378109/how-to-open-big-images-on-clicking-respective-thumbnail-carousel-images
 
so then intl and whatever can take UString and work with it as a zval using the api or cast to internal type and work with it at the icu level ...
no this is internal api only for C[++]
 
okay, so how can i test the code? heh
 
7:52 AM
write some test stuff in ctor I guess ...
or a test method ... while testing ...
 
okay
I'll see what I can do :)
 
cool
been up since 5 (it's now near 9) ... woke up in pain, all over ... possibly walking yesterday done me no good ...
 
yikes
 
even my ribs have started hurting :(
 
@JoeWatkins you're just an old wreck :-D
 
8:00 AM
Wait, hang on, an actual useful article on w3schools?
 
mornings
 
> maximum URL length is 2048 characters
^ wrong
 
Mornirnig
 
ah, i knew it couldn't last long.
though, that does "seem" a sensible URL length limit.
 
8:03 AM
@DaveRandom yes. And, more, it's also about - how much meaningful chars can be passed, because each web-server also has a restriction on how much chars can it accept in GET-request
 
1953
A: What is the maximum length of a URL in different browsers?

Paul DixonShort answer - de facto limit of 2000 characters If you keep URLs under 2000 characters, they'll work in virtually any combination of client and server software. Longer answer - first, the standards... RFC 2616 (Hypertext Transfer Protocol HTTP/1.1) section 3.2.1 says The HTTP protocol doe...

 
> Pitchswag added you to list PitchswagLtd/impressive-developers
Damnit I knew I had to trademark pitchblade :|
 
lol
 
@Ja͢ck iirc the lcd is old IE, which has a limit of 2047 chars because of it's declared as a char[2048] and is treated as a C string (someone did a whole bunch of digging on this a while ago), and the next limit in common use was lighttpd which had a hard line length limit in the headers of 8192 incl crlf and terminating \0 (which may not be true any more). But spec-wise, there's no defined limit.
 
Yeah, but there's something to say for practical information that's based on reality :)
 
8:09 AM
Trying to find refs for ^ that, there's an epic essay SO answer somewhere
@Ja͢ck Oh totally, if you need to transmit huge chunks of data, GET is the wrong method
 
Hmm, I may have found a reason not to use DOMDocument for something ;-)
 
@Ja͢ck Let's hear it
 
@Ja͢ck Weird, I'm 100% positive that IE<very old> had a limit of 2047 chars, they upped it in IE8 by not very much to a strange number?
 
Well, some of my projects use PHPTAL, and DOMDocument chokes on them, because they're not always complete HTML documents :)
 
The main issue I see in #php core is too many boxed thinking, my ext, my new function, etc. Bit of lack of global picture. Must find a way.
Pot, Kettle anyone?
 
8:19 AM
@Ja͢ck Chokes as in spits out errors or chokes as in outright refuses to load the document?
@DaveRandom lol
 
@PeeHaa It will load the document, but when you later save it ... it would become unusable :)
 
ah wow. That really doesn't happen often
> To be short, PHPTAL is a XML/XHTML template library for PHP.
 
it does on html partials .. it's not uncommon for template systems to have certain document parts in a separate file.
 
ughhhhhh
serves you right :P
 
8:21 AM
@Ja͢ck Pretty sure libxml has an option for that when saving you know (assuming you mean the auto <html><body> wrap), PHP just doesn't expose it
 
@Ja͢ck What is the issues with it?
Just pass the correct flags
 
@PeeHaa It wraps it :)
 
Nope not if you tell it to not
 
example?
 
At least libxlm does has the flags and IIRC php implemented those in later versions
 
8:22 AM
saveHTML() doesn't have an $options arg
 
It has a $node argument, though.
 
$html->loadHTML($content, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
 
Moment, I was reading the libxml docs on this the other day, let me try and find them
 
Is it neccessary to create users table and related controller model and view in cakephp to authenticate user or we can authenticate the user by creating other table like signups and their related controller,model and view
 
That should in theory prevent the wrapping @Ja͢ck
 
8:23 AM
@PeeHaa hmm let me give that a whirl and see how it goes :)
 
@Ja͢ck Yeh, which is fine if the data you want is a single node, but not if you fragment has multiple root nodes (common case, I imagine)
 
kk let me know. I knew it didn't work in old versions, but should be implemented now if my memory is correct
 
@DaveRandom Yeah, I'm afraid that might actually happen.
 
@RonniSkansing good afternoon
 
One of my ex colleagues asked me whether I had plans to OSS my HTML optimisation app.
So I'm trying to get out of my current regexp solution heh
 
8:25 AM
What does html optimization mean? minify and strip the thing?
 
@PeeHaa nah, i can use any random tool for that.
 
What does it do?
Adds extra jquery? :P
 
My tool analyses blocks of scripts and/or styles and rewrites them into single resources.
 
@PeeHaa lolwut
Looks like it doesn't like multiple root nodes
 
8:27 AM
@DaveRandom whoops
 
WTF
 
.. well .. anything fun ?
 
Stupid libxml fuck you tard
 
It makes sense, though. @PeeHaa
 
8:28 AM
Seems to work for a single root node though 3v4l.org/2VRCJ#v540
 
document needs a (=one) root node.
 
@Ja͢ck Yeah it kinda does. Still it should rather throw up in some way
 
It's obviously a desperate attempt to make sense of it.
 
And making stupid decicions while trying to do it :P
 
What would you expect? An error?
 
8:31 AM
For this specific case: yes
 
@Ja͢ck on prod yes, I said so earlier. But on dev I like my stack traces in my browser
 
@Ja͢ck @PeeHaa So here's what I'm thinking... we add a $flags arg to saveHTML(), and a flag which means that only the children of the passed node are output, which can easily be done internally if libxml can't do it by iterating it's children, calling the HTML export routine on each and concatenating them. thoughts?
The manual approach can be done in userland as well, btw
 
@Patrick I like wanton indiscriminate sex with strange women, but that doesn't make it a wise thing to do ;-)
 
@DaveRandom Yes that would be nioce. The manual approach is what many people are already doing using hacks
and pre libxml < some version
 
8:33 AM
@DaveRandom You mean like what saveHTML($node) has? :)
 
@DaveRandom s/flag/node
ow damnit
@Ja͢ck That also outputs the node itself right?
 
Hmm Yes :)
 
@Ja͢ck so you don't show stack traces on dev and look in the log every time you have an exception?
 
@Patrick Better, I have the system email them to me directly.
Call me old fashioned, but I like hearing bad news directly.
 
@Ja͢ck we have that on prod, and a ticket gets generated automatically. On dev that would make no sense at all.
 
8:38 AM
@Ja͢ck @PeeHaa this
/cc @ThW ^
 
@DaveRandom Yes. I can totally live with that
quick PR it :)
 
@DaveRandom Ship it!
 
Will try and throw it together at lunch
btw, what should the constant be called? Would have to be global constant, DOM doesn't use class constants atm
DOM_HTML_SAVE_CHILDREN?
 
DOM_HTML_THINK_OF_THE_CHILDREN
 
DOM_HTML_I_DONT_CARE
 
8:45 AM
@DaveRandom DOM_HTML_SKIP_SOMETHING sounds nicer I think
Although the only sane SOMETHINGs I can think of make it kinda long
My main issue with DOM_HTML_SAVE_CHILDREN is that the name looks like the childresn are not saved otherwise @DaveRandom
 
ok .. so .. I have been working on this thing
it has Response instance
and I pass to it an object which represents a content type header
but .. here is the question:
what should happen when I pass to it another (different) content type header representing object?
 
@tereško What happens when you pass two content types in a http response?
 
- replace silently
- throw an exception
- trigger a warning
- trigger an optional warning
 
@PeeHaa DOM_HTML_CHILDREN_ONLY?
(or ONLY_CHILDREN)
 
@PeeHaa I know that the default behavior is "silent override"
 
8:58 AM
woops
 
that's wrong
 
@tereško I would say either silent replacement or "throw exception, additional argument to indicate that replacement should happen"
 
Yeah just checked it used the last. In business logic that doesn't make sesen
 
Probably silent replacement
 
Either one of those would be fine by me @DaveRandom
 
8:59 AM
thing is that the $header object can be altered after you have passed it to the response
 
@tereško I'm having a hard time seeing when you want to do that @tereško
the replacing that is
 
@tereško Not relevant IMO
 
@PeeHaa when application's default content type is html/text , but user make an AJAX call and now I need to serve it as JSON XML
 
@tereško Do applications really have / need a default content type?
 
they actually usually have one
=P
 
9:03 AM
I don't see the point of it in php :)
 
so , the consensus is: silent override
 
> oblige:
- make (someone) legally or morally bound to do something.
- do as (someone) asks or desires in order to help or please them.
 
I'm still struggling how a default content type header is useful. I mean I can kinda see having a fallback to prevent having to setup the content type for every response, but manually setting a content type and manually overwriting it later... it's hard for me to see the usefulness of it
 
an application which provides REST API , it would probably respond only in text/xml or application/json
 
9:12 AM
yes, which is something that is known the moment you create your response
No need to overwrite it later
 
@DaveRandom DOM_HTML_SKIP_ROOTNODE ?
Skip sounds a bit odd, though ...
 
@Ja͢ck Thought about that, but it is not really root though (when passing in the $node param)
sorry quadruple ping :)
 
@PeeHaa Well, considering that $node is the new root.
In terms of output.
 
@Ja͢ck @PeeHaa So it turns out that there actually is a "proper" way to do this, although it is clumsy and broken until libxml version was recently updated: 3v4l.org/UmcPG
 
@DaveRandom So that's basically undoing whatever it did before heh
 
9:19 AM
lol @ <><div>hello</div>
 
meh, just substr() it under the carpet heh
 
Well the overloading of saveHTML() approach from before works in >=5.3.6 so... just go with that :-P
 
Sometimes I am a bit jealous of the JS people. They get lots of shiny shit
 
@PeeHaa Yeah, but the page is served using php :D
 
:P
 
9:26 AM
@DaveRandom You'll want to be cloning the nodes, else the operation is destructive.
 
Moving pecl_http to core seems like a pretty big thing huh.
 
@Ja͢ck I'm interested in why... can't think of anything other than "to make more people use it".
 
Its dependence on two other pecl extensions is kind of ... unfortunate.
Why not Artax in core?
=D
> IMPORTANT: Artax is still very unstable! APIs are constantly changing and things may be broken due to the current lack of testing.
perfect candidate.
 
Put ALL THE THINGS™ in Core!
 
aaaah css, you already destroyed my day! :(
 
ThW
9:45 AM
@DaveRandom I don't think this is a good idea
 
Big data help. We need to store checks as to whether we have seen a value or not. Currently we use redis but it's taking up too much space. So we were giong to use a bloom filter. Are there any other solutions?
speed, size and accuracy are a concern
 
@Fabien md5?
 
@ThW ...because?
 
(or something similar)
 
too inaccurate
 
9:51 AM
@Fabien Does that mean you actually found collisions?
 
i have learnt sudo apt-get , but how doi unistall emacs24 and install emacs23, i cannot get the cod auto completion to work
 
Or does inaccurate mean something else in your context?
 
@salathe In the specific case that brought the subject up in the first place, that does not matter, point is just to be able to load/save fragments of HTML that are not a single root node
 
4
Q: Using MD5 for file integrity checks?

H M General Always check the MD5 hashes of the .NET Framework assemblies to prevent the possibility of rootkits in the framework. Altered assemblies are possible and simple to produce. Checking the MD5 hashes will prevent using altered assemblies on a server or client machine. Source: https...

 
@DaveRandom WOWTFOMGAPPELGEBAK
 
9:53 AM
appeltaart
 
appelkruimel!
omnomnomnonmom
 
hahaha
it deserves a star lol
 
I cannot even begin to express quite how much I hate that idea
 
ThW
@DaveRandom Basically you're saving a node list. Maybe allowing to provide a node list and not just a node.
 
I hate the word save in those dom methods btw
 
ThW
9:57 AM
This would not limit it to the children, but allow xpath results
 
@ThW Oooh that is a better idea /cc @Ja͢ck @PeeHaa
 
Yes I can see that working for me
 
ThW
$dom->saveHtml($node->childNodes); or $dom->saveHtml($dom->getElementsByTagName('div'));
 
Works for me, should be easy enough as well by the looks of it
Will try and implement it later
 
@DaveRandom Implement dom->qsa() while you are at it please :D
 
ThW
10:00 AM
@DaveRandom If you're working on the DOM extension could you think about moving the thrid argument of DOMXPath::evaluate() into a property? :-P
 
@ThW That should be like a 2 line patch or something, if I just add a prop that defines the default value for the third arg would that work for you?
 
ThW
yes
 
OK, what should it be called?
 
ThW
Here is bug for this btw
 
@ThW Nice to see that level of maintenance commitment from the team :-P
 
ThW
10:05 AM
Well, its just XML, nobody uses that ever...
 
@PeeHaa No but we do about a million checks/adds per day
 
On this topic, must try to convince @krakjoe that UString is not only a new class, rather less useful if not well used in other areas. :)
 
No as in I don't know.
 
wut ?
 
@Fabien But are collisions your concern or something else?
 
10:07 AM
yeah
we dont want to do the same on twice
 
@Fabien I highly doubt collisions will be an issue, but if you are really worried about it you can always use sha1 or even both md5 and sha1
But considering sha1 is 10^48 the chances you hit a collision are pretty slim in itself
 
@PeeHaa Somewhat beyond me I suspect :-P
 
@DaveRandom Yeah I guess that is really hard to do :D
 
I mean I could probably implement a selector engine by walking the DOM but that would be (relatively) slooooooow (I guess)
 
Use xpath behind the scenes :P
xpath2 mind you ;)
 
10:14 AM
@PeeHaa The size of what we store is an issue too. This was the reason for the bloom filter.
 
@PeeHaa This. This is what is really required.
That's waaaaay beyond me though
iirc @ThW as a CSS->XPath impl with DOM though?
 
posted on August 19, 2014 by kbironneau

/* by Arekibian */

posted on August 19, 2014 by kbironneau

/* by gulymaestro */

 
10:30 AM
@PeeHaa please do what you can do best: stackoverflow.com/q/25380470/1208233
 
Ow I forgot about dupe hammer
> ...and it has been discussed million times before
^ this means close as dupe, not answer ;-)
 
@DaveRandom yeah, but I couldn't resist
 
@bad_boy The answers on that thing... :(
 
10:56 AM
.. this is a 100k+ user
 
@PeeHaa So what you were saying about md5() + sha1. We need a one way hash just to confirm is a value is there. We do about 3 million per day and that number is increasing. Space/Speed is the concern.
 
/me is still trying to figure out the whole Response thing
I wonder (again) ... how to handle the cookies
 

« first day (1403 days earlier)      last day (3545 days later) »