« first day (1466 days earlier)      last day (3473 days later) » 

user895378
12:00 AM
I'm so conflicted :)
 
@DaveRandom Is that the output of goats?
 
Depends what you do to them
 
OK, that's just sick, even from you.
 
hey, I'm having dinner over here! >.<
 
Caviar?
 
12:07 AM
Why does this exist
 
@rdlowrey I'd personally much rather have public readonly $foo, where $foo is still variable but can only be modified from inside the object of which it is a member
 
@QuolonelQuestions why is Bilge here? :|
@DaveRandom I can build that with traits, but you will hate me so much...
 
Well you can easily hack it with __get() but we need proper, less expensive support for it
 
ya
 
12:53 AM
@webarto I'm going to have to bail or I'm not going to get up in the morning
 
1:23 AM
hmm didnt know this chat was a thing. Hi!
 
Hello. It's usually busier earlier in the day.
 
cool. glad to know, I'll hang around here more often!
 
 
3 hours later…
4:39 AM
morning @obiNullPoiиteяkenobi
 
@crypticツ good morning :)
 
monring
 
5:11 AM
bro need help
how to call the content inside the class?
 
@winresh24 using -> or ::
 
thanks bro
 
5:29 AM
no problem bro, to the moon!
 
good morning :)
 
@CSᵠ to the moon !!!
:D
 
:)
 
to the moon and back @CSᵠ
 
the mooooooooon !~!!!
 
6:01 AM
moin
 
6:12 AM
good morning everyone
 
6:31 AM
posted on October 21, 2014 by kbironneau

/* by Nico */

 
7:01 AM
@Tyrael The fact that we have a 3-way setting called "always_*" with the possible values, one for "always do this", one for "do this lazily" and one for "never do this". Seems like we should have introduced an "enable_raw_post_data" option, which defaults to on and emitted the deprecated error until you turned it off. I'm not generally one for new ini settings, but having an option called "always_something", where one of the behaviours is actually "never_something" makes no sense
 
7:35 AM
HHVM team?? Who are they?
 
good meurning :)
 
good mornings
 
@iroegbu moin
it's awefully quiet here, it's creeping me out :P
 
I killed them all.
Every. Single. One. Of. Them.
 
@SecondRikudo Why you...
 
7:48 AM
 
8:05 AM
@SecondRikudo lolwut
morning
 
@HamZa moin :) don't mind secondrikudo.. He forgot to take his pills ;)
 
Good moonings
 
morning
 
moin
I lol'd ...
 
@JoeWatkins But... but.. does it?!!
 
8:14 AM
no ?
it doesn't need to ? you can do it yourself now ?
you could have done it yourself before ? I'm not really sure what the question is asking ?
I'll stop now ...
 
@JoeWatkins DOES IT?!!
 
no ?
lol
 
Then it's crap and useless... obviously. :P
/me turns down the sarcasm dial a little
 
hehe
 
8:34 AM
posted on October 21, 2014 by kbironneau

/* by danigosa */

 
Good answer btw ;)
No.
 
@Feeds hehehe
 
hi, can I post a link for a question here?
 
@Aminesrine If it is about CI we most likely cannot answer it
 
why?
 
@JoeWatkins array keys seem to be important...
 
its not clear?
 
9:10 AM
@FlorianMargaine huh ?
 
Monring btw peoples
@Aminesrine No. Just because the fact there aren't many people using CI (in here)
 
ah ok, thanks
 
@JoeWatkins cf. Dmitry's mail
 
morning
 
morning
 
9:18 AM
@joe I'm quite drawn to the fact I will be able to typehint (and return type) UString
 
> My thought was to make the remaining operators that don't make sense on an object implicitly cast to string before the operation takes place.
@Leigh while that sounds sensible on the face of it, it won't work I think
 
like arithmetic
 
The operator overload assumes that the result will be the desired cast type, it won't go "oh you gave me a string, now I'll cast that to what I need"
 
if it wont work, that's fine, was just a brain fart :)
 
I like and support the general idea, I don't think it would work though
 
9:20 AM
hmmm, yea you'd have to overload the operators of everything else. i.e. overload for int, and then if UString (int)(string)UString .. that seems silly :)
 
@JoeWatkins I... wut?
/me looks at @webarto and drums fingers on the table
 
I get the feeling he hasn't actually read an RFC in his life
 
@DaveRandom Sorry, wifey put me to bed forcefully, no more past 2AM, she mentioned something about being normal and stuff.
Pushing in a moment.
 
Yeh I get that shit all the time. Fuck normality though
Also no worries, obv not complain about you doing free work for me :-D
 
@rdlowrey Trying the new method for getting the final URI and receiving

"Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 130968 bytes) in file on line 46"
 
9:28 AM
@JoeWatkins "...that this project was a unicorn" - sounds like you are talking about all of PHP6 rather than just the unicode element when put in context
 
@Fabien Increase memsize!
 
@DaveRandom laughted out loud ...
 
I love how Lester periodically come out with something that he obviously said just to make people think he's paying attention. More often than not, it has the opposite effect...
 
Taulant Xhaka is being investigated for this gesture that he did after Basel's win against Young Boys on Saturday. http://t.co/4Z7P83smGi
@rdlowrey ^
 
@webarto He's just waving at the crowd?
:-)
 
9:34 AM
@HamZa Still doesn't work
 
I don't think Switzerland was a puppet state :P
 
Interesting how the Nazis somehow now own the action of putting your hand in the air
 
Shoulder-air, yeah.
 
I might trademark it so I can start suing them
 
I think it's still banned from free use :D
 
9:39 AM
better @DaveRandom ?
 
@DaveRandom Same for the swastika
 
On Unicode strings in PHP7: Unicorn or Unicode http://blog.krakjoe.ninja/2014/10/unicorn-or-unicode.html #php
 
posted on /r/php :)
 
posted on October 21, 2014 by Joe Watkins

Fig 1. A UnicornSometimes we will get an idea that would create something our limited foresight says will be beautiful. We chase after the idea, regardless of everything. We have unicorns in programming. This morning I want to talk briefly about the approach some of us are trying to make in adding Unicode string support to PHP7. Unicode all the things ! PHP6 was a real thing, a bunch of eff

 
9:47 AM
@JoeWatkins #WorksForMe
@PeeHaa I know. All it takes is one giant tattoo of it on your face and people look at you like you're some kind of weirdo.
 
@DaveRandom :D
 
@DaveRandom I'll push the 2.html in a bit, we/you can modify it per your liking and surrounding design, or lack of it... bitbucket.org/webarto/random/src
 
Many thankings for you sir
I no longer have a doubt
 
my pleasure dave mate
will you send me visa now?
 
10:00 AM
@webarto If you want one of those you had better pull your finger out, our current government are dicks. I'm not sure you'd want to come here though, the pay/cost of living ratio sucks a bit, I think there are better places in EU than the UK for non-EU residents...
Go live with @AlmaDo in Germany
 
I'm hoping that Serbia will be in EU by 2019, that's how desperate my situation is.
To acquire citizenship of e.g. Austria you would have to spend at least 10 years working your ass off.
 
Or I can spark a war, and become a refugee like everyone else from here.
 
:-)
 
There's a saying here... for some war, for some brother... if it makes sense.
This is my buddy in @PeeHaaCity
At work.
 
10:09 AM
Right at the center
noice
 
Me wants too. Adopt me @PeeHaa.
 
Foster Parent Webarto :)
 
Mendix
Project Manager - Technical · Rotterdam, Netherlands

Bitbrains.com
Ops Engineer · Amsterdam, Netherlands

OMG! Ubuntu!

Booking.com
Unix System Administrator · Amsterdam, Netherlands
Once you infiltrate, you never leave :P
OK, enough of the self pity for the day.
Get back to work! whoop
 
10:27 AM
why is unicode for array keys so much needed?
 
Weird. I got a page which I am trying to grab all the links from. if I echo the HTML they're there but if I use xpath it misses them.
 
@Fabien just regex it
 
People in here will slap me if I do that.
 
we will not tell
 
@Fabien you need to scrape aspecific site, not universal compatibility...
 
10:29 AM
The script isn't for a specific site. It's universal
 
well.. in that case, forget what i said
site link
 
Testing the xpath using a chrome extension highlights it.
 
probably it's not valid?
 
surely not valid
 
@nikita2206 I will, actually ...
 
10:32 AM
I still need to grab them though.
 
@FlorianMargaine I can see the value in it, esp in terms of static maps and that kind of thing, and it would probably make sense to normalise to NFC/NFD whatever
 
@Fabien add a regex fallback?
 
@Fabien I'm willing to bet you have an issue with trying to execute a query relative to a specific node, but not specifying the query correctly
 
return \FluentDOM($html, 'html')->find('//a[@href]')->map(
            function ($node) {
                return $node->getAttribute('href');
            }
        );
I tried straight xpath/domdoc too
 
@DaveRandom yeah... I can see it has value.. but it seems to be the most important factor for Lester and Dmitry
 
10:35 AM
@CSᵠ It picks up some links so it'd be tough to say when the fallback should work.
 
@Fabien Example HTML?
 
@DaveRandom HTML. Check my removed comment above. It's in there. Deleted due to content.
 
@Fabien getElementsByTagName() ?
 
@Fabien count match /<\s*a\s+/
 
@Fabien I'd better not, tbh, at work
 
10:38 AM
@DaveRandom No worries. It's no adult. Just a music download.
 
@PeeHaa that would be best in js
 
@CSᵠ why?
 
@PeeHaa getElementsByTagName() doesn't get it either.
 
Hi :)
Is there a 'symfony pro'?
 
ThW
@Fabien I can't see your delete comment
 
10:40 AM
@Fabien In that case the html you are retrieving is wrong
It's not what you think it is
Have you checkled the html?
 
@PeeHaa in JS it would work best, native dom
 
No the html you scrape not what is rendered by your browser
 
@PeeHaa I echo the HTML and it shows them. I also checked the network requests and it's in there as first call preview
 
ThW
Which links does it miss?
 
@CSᵠ What is a native dom :P
 
10:41 AM
@ThW Ones inside [code] that link to file lockers. ul.to etc
 
@PeeHaa sorry, meant naive :D
 
;)
 
getElementsByTagName()/hasAttribute() gets the same number of links...
 
ThW
But the ul.to inside <code> is only a string, not an attribute of an html element
 
They won't have the ones inside the code part of the site though.
Ah right, didn't realise <code> would affect it that way.
What's a good way I can tell it to grab them anyway or just have to build around it?
 
ThW
10:45 AM
a[@href]/@href <- href attributes of a elements
 
ha, nice
<code> renders the parser stupid
 
ThW
code[starts-with('http://')]/text() <- text nodes in code elements that start with http://
@CSᵠ It doesn't
 
or, load <code contents into another object and xpath it
 
They just render @Fabien stupid :-P
2
 
:D
 
10:47 AM
Insta to the star :D
 
@ThW Which method for that query?
 
@FlorianMargaine Top-tip, the PHP mailing list encourages putting quotes on top of replies, so that people can see who you're replying to without having to scroll down first.
 
ThW
I prefer FluentDOM\Document
 
Top tip 2: mailinglists are terrible for discussions :P
 
ThW
and do not forget to add the context (//code[starts-with('http://')]/text()) :-)
<- food bbl
 
10:53 AM
Thank you @ThW
 
11:09 AM
@PeeHaa +1
 
@DaveRandom introducing a new ini which will be gone with PHP7 wouldn't be much better imo.
 
So today I learnt something about <code> tags. Been a while since I learned something about HTML.
 
@Tyrael In general I'm inclined to agree, but in this case I think the explicit existing naming makes the solution we have not-awesome. But it's done now, no point crying over spilled milk and all that :-)
 
11:39 AM
@ircmaxell What was that site again of you where those photos are. Not flickr but the other one
 
@PeeHaa From his tweeterings: photos.ircmaxell.com/post/100501544438/…
 
Anyone heard of codeeval.com ?
 
@Danack Nope also not that one
There is some site I think for photogrpahers
 
I'm not a stalker.
 
@Danack :) ty
Holy fuck. $ 250
shenanigans
 
11:48 AM
@DaveRandom I've looked at it briefly....I realised that it looks like work. It seems they've changed their website....the challenges are codeeval.com/browse/5
and used to be more obviously browsable.
 
@ircmaxell "Need to store data in an database" an -> a
 
Good afternoon!
 
@Duikboot morning
 
:)
 
// Look Ma! No variables!
extract(array_slice(func_get_args(), 1));
^ I lol'd
 
12:04 PM
@Danack ty
 
@DaveRandom lol
 
Also - I don't understand why anyone ever replies to Lester. It's not like anyone cares what he says.
 
As a user of Sony gadgets: I approve
 
same goes for me
 
user1994804
12:17 PM
Hi Guys, I'm learning regex and have been studying regular-expressions.info but haven't found the meaning of #
 
you mean as in #[a-z]+#i ?
 
user1994804
Im a novice webmaster and am working with a sample I got off of a tutorial and now Im trying to dissect it so I know what everything means
 
user1994804
@tere
 
user1994804
@tereško sort of...
 
@YourAdrenalineFix # doesnt have special meaning i think
 
user1994804
12:19 PM
Here's what I've got: preg_replace('#[^a-z 0-9?!]#i', '', $_POST[query'])
 
# is commonly used as "marker" (there is a proper name for it, but I cannot recall) when it comes to URL routing, because # is not in the query that PHP receives
 
@tereško delimiter
 
yeah , that word
 
user1994804
In plain english?
 
it tells where the beginning and end of expression is , after the "expression" you have the "options"
 
user1994804
Infact, Could someone please "Sound Out" '#[^a-z 0-9?!]#i for me?
 
wow didnt know there can be anything but / as delimiter ; )
 
user1994804
I thought a ^ inside [] negates the characters
 
user1994804
so the way I see it a-z or 0-9 would be replaced with nothing
 
@eyveer having / for paring URLs is a pain, because you need to escape the delimiter .. it's a pain in the ars
 
12:22 PM
@eyveer you can even use () as delimiters as in: (lol([a-z]+))i
 
right, thanks
 
@HamZa but that would be even worse than /
 
@YourAdrenalineFix correct
 
user1994804
What a dumb ass regex
 
@tereško haha someone here likes that syntax. Was it @FlorianMargaine ?
 
user1994804
12:23 PM
this is something from a tutorial and since I am very new to regex I don't know better
 
@HamZa ?
 
@YourAdrenalineFix use regex101.com it also automagically "sound out" the regex you write
 
user1994804
If this preg_replace were part of a search function, would u guys even see any need for it?
 
@FlorianMargaine do you use () as delimiters?
 
I did. My question doesn't change. If I save object instance in the storage and use this factory inside one class (which may change object properties data) and then use same factory (and object) inside another class - I have global state, the object will cary it's data from one class to another. No separation. Not good. ? — Andrew 1 hour ago
 
12:24 PM
delimiters for what?
 
ooooh, maybe @ThW !
 
@FlorianMargaine regex delimiters
 
@YourAdrenalineFix regex101.com/r/nL4dC7/1 -- see the "Explanation" box
 
@HamZa uh? () have a meaning in regex...
or you mean | for sed?
 
ThW
12:25 PM
@FlorianMargaine They keep it
 
@FlorianMargaine yes but you could write (wow([a-z]+))i
 
oh, didn't know that
I guess I'm not the one :D
 
user1994804
Thanks @salathe Im having trouble getting my head around "match a single character not present in the list below"
 
ThW
I read the () delimiters like "group 0"
 
user1994804
I think I just need to spend a day inside regular-expressions.info
 
user1994804
12:26 PM
which I already have... I just need to do so more
 
@YourAdrenalineFix We also have a FAQ but I guess reading a book would be better
 
user1994804
I was just hung up on the # but now I don't even know if it should exost
 
@ThW I read the () delimiters like "run git blame on that line and go kick someone..."
 
hehehehehe
anyways, it's an awesome trick though confusing for most developers
 
user1994804
is there even any need for such a thing in a search function?
 
user1994804
12:28 PM
(the preg_replace example)
 
@YourAdrenalineFix what thing?
 
@YourAdrenalineFix devs like to filter
 
user1994804
preg_replace('#[^a-z 0-9?!]#i', '', $_POST[query'])
 
user1994804
but whats the need in a search function?
 
user1994804
I dont "Get It"
 
12:31 PM
@YourAdrenalineFix the author here wants to allow a-z, 0-9, space, "?" and "!". The rest would be removed
 
user1994804
but I thought ^ negates a-z and 0-9 replacing these characters with nothing
 
user1994804
and why would someone want to modify a users query?\
 
ThW
@salathe Why?
 
user1994804
Seems like if the visitor says I want red I say no, you want blue?
 
@YourAdrenalineFix you're firing a lot of questions at the same time.
 
12:33 PM
@ThW because it's something most people would look at with a face like o.O
 
user1994804
but all on the same topic
 
well... Let's make it simpler
[0-9] -> will remove all digits. Input "aa123" output: "aa"
[^0-9] -> will remove all that's not a digit. input "aa123" output: "123"
 
ThW
@salathe That's another way of saying "Because we always did it this way."
 
user1994804
@HamZa so [^a-z 0-9?!] will remove anything from a-z or 0-9?
 
@ThW I guess so
 
12:36 PM
@YourAdrenalineFix lol it will leave a-z 0-9 and remove the rest
 
user1994804
Ahh
 
user1994804
Ok
 
@HamZa and ? and !
 
user1994804
I still have a lot more studying to go...
 
@YourAdrenalineFix It might be some attempt to prevent some type of injection attack. Also let's say you have a search query to search for an user by ID. As the developer, you know that the user ID is always a set of digit, you might remove everything but digits in the search box
6 mins ago, by HamZa
@YourAdrenalineFix the author here wants to allow a-z, 0-9, space, "?" and "!". The rest would be removed
I'm tired of typing, I hope he gets it now...
 
12:37 PM
@HamZa not space...
 
user1994804
Well it's for searching for models
 
user1994804
ie: Honda CRF450
 
user1994804
or CRF 450
 
user1994804
or kx80
 
user1994804
but I am getting strange results. ie: nothing returned
 
12:38 PM
@YourAdrenalineFix Well then, the author presumes that the model only contains letters, digits and spaces. This can be quite tiresome if the author didn't foresee everycase
@salathe There's a space between a-z 0-9
owned
 
user1994804
I know I have Honda CRF450 in the DB but with the above example I don't get anything back witha query Honda CRF450
 
user1994804
but I do for CRF450
 
@YourAdrenalineFix comment that line out and see if you get a result
 
@HamZa ahh so there is
 
user1994804
I was thinking about doing just that but I'm just trying to gain a good understanding of the why's and how's of whats happening here
 
12:41 PM
Hello all, Please Have a Look :
http://stackoverflow.com/q/26486476/1584275
 
@YourAdrenalineFix you understand the why and how's if you opened a new php file and started playing around with simple use cases.
 
user1994804
@HamZa please try an experiment with me
 
user1994804
Type Honda in the search box
 
user1994804
and see that CRF 250X exisits
 
user1994804
12:42 PM
then try CRF 250 in the search box and see what happens
 
it exists
 
user1994804
WTH??
 
2012 Honda CRF 250 X
 
user1994804
Why does nothing come back?
 
> Use Your Cell or PC
 
12:43 PM
sorry but this will lead us nowhere...
 
s/Cell/Mobile/
 
user1994804
Exactly @HamZa
 
user1994804
But why wont CRF 250 return this result?
 
user1994804
in my search query?
 
user1994804
Im trying to accomodate whatever a visitor may type in
 
user1994804
12:45 PM
which is not always gonna be Honda CRF 250 X
 
No idea, can you paste it in a gist or any online service?
 
user1994804
it may be CRF250 or CRF 250 etc
 
user1994804
So I've been investigating preg_replace('#[^a-z 0-9?!]#i', '', $_POST['query']) which brings us here
 
@YourAdrenalineFix it doesn't. The problem is somewhere else. Share your code or bye
 
user1994804
Hang on...
 
user1994804
12:49 PM
Just a sec
 
user1994804
Im working on anonomizing it
 
user1994804
$results = '';

if(isset($_POST['query']) && $_POST['query'] != '') {
$Query = preg_replace('#[^a-z 0-9?!]#i', '', $_POST['query']);
if (strlen($UIQuery) < 4) {
$TheQuery = "(SELECT * FROM `table` WHERE Row1 LIKE '%$Query%' OR Row2 LIKE '%$Query%' OR Row3 LIKE '%$Query%') UNION (SELECT * FROM `2ndTable` WHERE Row1 LIKE '%$Query%' OR Row2 LIKE '%$Query%')";

} else {
$TheQuery = "(SELECT * FROM `table` WHERE MATCH (Row1, Row2, Row3) AGAINST ('%$Query%' IN BOOLEAN MODE) UNION (SELECT * FROM `2ndTable` WHERE MATCH (Row1, Row2, Row3) AGAINST ('%$Query%' IN BOOLEAN MODE))";
 
hmmm
 
user1994804
Right?
 
user1994804
I think it just needs some "Time with it"
 
12:58 PM
properties in PHP! @JoeWatkins do you think it's a good idea? i.e. class Foo { Property bar { get; set; } } $foo = new Foo(); $foo->bar = '';
 
user1994804
I guess I'll be learning a lot about creating my own search algorithm over the next cple days ;)
 
user1994804
trial and error
 
user1994804
Im just still stuck at $Query = preg_replace('#[^a-z 0-9?!]#i', '', $_POST['query']);
 

« first day (1466 days earlier)      last day (3473 days later) »