« first day (1288 days earlier)      last day (3886 days later) » 

00:00
@CSᵠ I have not (apart from experiments), but my first thought there was "that will be a performance killer"
wow.. thats a real lot
I've also done some experiments with mongo
i had about 100k records (about 10 fields/document)
running some js took a bit
Yea, I never got up to anything that big. Thousand records maybe.
and i wrote js because it's in the engine, thougth looping with php and computing would be slower
didn't try yet...
the 'a bit' means ~2seconds
00:02
:P
give or take 1.5 seconds :)
@CSᵠ Maybe, maybe not, depends on way too many factors to make a blanket assumption like that
but
would you rather do something like ?get=one/two/three and get each value in a php by exploding them or determine an explicit regular expression for that (in case of beautifying the url?
needs to run a lot faster and with much more data, hence my 'question';
@JonLamer what's the scope/usage ?
and what are your 'values' ?
00:04
Right, with some regret I must go to bed
(on order of Her In Charge)
Good night
nite @all
I know that feeling
nite @DaveRandom
well gd n8 II
although its 5.40 am
:D
00:06
@CSᵠ to give some values to a controller -> ?controller=blah&...
regex then
well... depends, will it be complicated?
@CSᵠ complicated?
If you're in the position that you can do so I would just go ahead and change over to some kind of clean URL routing
@cspray what about you regardin mongo with JS ?
I personally wouldn't do regex matching on query parameters. Regex matching, in my opinion, should be done on the path of the URI that identifies the resource. That part of the URI should identify the controller to invoke.
@CSᵠ I'm afraid I haven't done enough work with either to safely say
Most of my work has been in the PHP and RDBMS realm
00:11
I'd regex anything, but for readability, when there's too much gibberish, break it down at least
it's really fast and easy to write
Well, I guess the point there for me is that the query parameters shouldn't be influencing the controller to create. But that's just my personal preference
I have no problem with using regex for things

RegEx - Regular Expressions

Discuss about Regular Expressions. Learn at: Regular-Expressio...
^all the things !!!
Of course for this specific discussion around routing I think you should just use nikic/FastRoute and not worry about implementing your own matching system ;)
@JonLamer Er.......just pass it as an array in the params?
@CSᵠ oh are you using mongodb with node.js?
00:20
@HamZa mongo + php
ah ok
mongo has some JS engine built in and PCRE too :D
I found this webcast usefull oreilly.com/pub/e/2109
thanx
np
01:01
@TOOTSKI No rush ^^
Well, I really hope that your proposal goes through
I'm also very glad that you didn't decide to try to force scalar type hinting into it either
It would fail if I tried ^^
01:19
Yea
For good reason imo
RFCs like this shouldn't be that broad
Scalar type hinting should be its own thing because it is complicated enough on its own
01:43
If I set a session variable, for a current session, and destroy that session using session_destory, does it kill the session variable also? Or do I have to manually unset it?
 
4 hours later…
05:41
@Illaya you know, that can be considered spamming and could earn you a chat ban. This is just a friendly advice before it's too late.
user895378
Validated flag out of spam annoyance ...
06:14
/me can't see anything, broke glasses
fixed it with string ... now I'm that guy ... scruffy geek with string on glasses living in mothers basement ...
user895378
A few weeks ago I did some serious personal glasses repair. I feel your pain.
user895378
Side-note: I'm finishing another hugely productive day of server programming. I'll be pushing all my work tomorrow, but I suspect it'll take all day to get to that point. @JoeWatkins you should have repo access by the time you wake up on Sunday morning.
awesomesauce
user895378
06:29
It's 230 in the morning here. I need to go to sleep now and stop spending Friday nights hunched over the keyboard.
probably a good idea ... I'm not able to straighten my right leg at the minute for the same reason ... it's okay, I rarely need to stand up straight anyway ...
 
1 hour later…
07:44
@SaraMG debugInfo support was never written into opcache
ffs
08:02
Morning
I knew some troll will ask for it. No I wont, input is not important here. You can see $year and $month are vals like 2013 and 10 — Ultra 1 min ago
lol, asking for print_r() output is trolling. People are weird, sometimes :)
08:39
@Fabien cool design
and morning
09:00
Copy paste answer again. :(
Did you write this function yourself? If not, please credit the original author/answer. — Amal Murali 16 mins ago
He probably grabbed the function from this blog post
Engineer: 1900 Can build a bridge 1960 Can assemble computer from parts 1995 Knows how to compile kernel 2014 Makes button blink w jQuery
One of my friends got a bounty from facebook for finding a bug. 7500$ :O
Awesome :D
awesome
What was the findings?
09:04
Well, a bug! Facebook didn't ask for read_mailbox permissions previously, but allowed app developers to access the inbox.
I found a bug in php-src this morning that was introduced by an employee of facebook ... where's my prize ?
Meaning: anyone with a valid access token could read the contents of the user's inbox. lol
user924016
09:17
/me hands @JoeWatkins the Oracle prizze
@SaraMG debugInfo support was never written into opcache
THANKS !!!
(it was never tested with opcache loaded, a "core" feature of 5.6, terrible ...)
@JoeWatkins opcache also doesn't work with zts anymore, I think
on purpose or something broke ?
no I'm testing with zts at the moment, it is working there ... is there a plan to remove support or something ? @NikiC
@JoeWatkins didn't work for me last time I tried
well it's working in cli, I tested in apache the other day but wasn't worker mpm so nts ... I will check that ...
wouldn't surprise me, they are doing a pretty terrible job at including that into php ... what happened to integration !?
you know if you run pear with enable_cli=1 (so normal opcache mode) you get a bunch of leaks from it, and pears not exactly magical ... I think there's going to be many many bug reports when it starts being used in production ...
09:29
@JoeWatkins The optimizations are somewhat unsafe
I think if you run without them, it should be reasonably stable
maybe but the default is fully optimized isn't it ?
I couldn't make sense of it all tbh, I started to try and study it to work out what the passes do a few months ago
gist.github.com/krakjoe/962e54c38b155f896b00 that's as much detail as I could extract from what I saw ...
yeah, the optimizer is not exactly simple ^^
> perform block optimizations
totally wimped out around there ...
lol
most complicated pass ;)
definitely yeah ...
at phpuk this year, davey shafik gave a lecture on opcache ...
he started by telling everyone he just learned what a union was that morning ...
this is amazing isn't it ? I mean, I'm not silly by any means but I couldn't explain how opcache works in it's entirety and I spent several days (of spare time) reading it's code ...
I always was against those rushers who needed to get it into core. I hadn't the argument that the code is too complicated, but I keep that in mind :)
bugs.php.net/bug.php?id=67124 @NikiC any idea why that $array is separated here?
@bwoebi because we're using convert_to...
maybe convert_to can be optimized there?
09:43
@hakre yes, it could by having input zval and output zval as args...
Morning
In case you guys missed it, here's my wall of text feature-request about duplicates
8
Q: Duplicates MKII, Canonicals, more aggressive duplicate prevention

Second RikudoThis question is another take on the duplicates problem. It steals is inspired by ideas from the verious posts and feature-reqeusts posted here on meta. Disclaimer: In this post, I am referring to the "Users" or "The People" or "The Gang" or "Everyone". What I actually mean is the bunch of folks...

@bwoebi or use array count internally. it works in userspace, too, just commented.
@hakre that's not the problem.
I have no ideas of internals at that place, so I can only offer what I found as workaround. sure that does not solve the problem.
anyway, need to get some food from markets
cu later
@hakre we were obliged to do that ... as soon as it was mentioned rasmus pretty much said he wasn't going to work on apc anymore, that killed the only opcode cache we had, it was opcache or nothing it looked like ... and we were told it would be integrated, it hasn't been, it has been abandoned in ext, you cannot build it statically into php dispite the PR to patch it having existed for a year (github.com/zendtech/ZendOptimizerPlus/pull/53) ...
they are not keeping up their end of the deal is the problem ...
wtf
that's been closed
so it's going to stay abandoned in ext ...
09:50
Zend, boooo
@JoeWatkins It's not closed, the one who linked to it is.
oh yeah ...
But it's dead ^^
yeah, still totally letting us down .... it's not just about being able to compile static, but proper integration has to start there, proper integration means that the functionality now contained in ext/opcache is integrated directly into the compiler ...
no longer an extension, that was the idea, for opcode caching to be standard behaviour and part of the engines design so that we could maximize on the benefit of having the infrastructure to optimize compiled opcodes ... but abandoning is just as good I suppose ...
@bwoebi Anyway, don't bother working on that
Morning
10:03
Mornign @PeeHaa
@NikiC at least not before PHP-6, yup…
@PeeHaa Happy Queens Kings Day :)
If you use a roll-on to smell super-fresh, you can avoid deodorant stains by drying your arm pits with your wife/girlfriends hair dryer before putting your top on.
@TOOTSKI tnx :)
@Fabien Can I use my hairdryer?
#foreveralone
10:08
:P
@TOOTSKI heh. Lies, we've seen your wifey
My wifey took my car, and I'm chatting with you now.
I'm not treated well.
If she took it to go buy food it's not so bad.
No, she took it to go shopping with gfs, that's double fail for me.
I wanted to have beers, but no...
Sad times. At least you're free to watch pr0n.
10:11
Nah, I'm kidding. She locked me in the house and hid the key.
Been there... missed a delivery :(
@Fabien And play games too!
morning @tereško
10:14
Like Counter Strike Source? Which you're currently buying and downloading?
Luckily, I have GPS in car, so I'm alerted, I can therefore pretend to read a book.
@Fabien Still on 1.6, wil do it. Souuuurce.
There's Global Offensive too but meh. Better mod maps on CSS
I found it cheaper to shoot AK in CS than IRL.
Best game ever made. (of its type)
Yup yup
Well UT 2k4 is close. And GOTY
@Fabien It's a different genre though
10:20
Both FPS though
UDP and shit.
Nice example to play with sockets and streams.
Yeah, but my opel vectra and a bugatti are also both cars ;)
user1642018
@PeeHaa hello
@TOOTSKI Steam username?
10:31
heh
> hehehehehehehehehehehehehehehehehehehehehehehehe
user1642018
@PeeHaa I'm building a torrent site and would like your input on getting seeders and leechers from trackers.
@AMB And what is the specific question?
AFAIK you just query the trackers
user1642018
which is faster for getting trackers info ? php vs c
user1642018
my current php code takes 2 days for scraping 22 mil hashes .
user1642018
10:36
i would like to lower the time to near about 5-7 hours.
@AMB The bottleneck is most likely not the language but the actal requests
How are you making the requests?
urm ...
user1642018
using 3rd party class udp data scraper
user1642018
it uses fsockopen
Day two with Darude - Sandstorm stuck in my head :(
10:40
it probably is the requests, but it's probably only the requests because that's a lot of work to conduct on a single core on a machine where most of the cores are sitting idle ...
php.net/Thread you will need 8-16 cores to meet your target ... I don't know how realistic the target is, but this is way too much work to execute on one core ... definitely ... even if you could do nbio which you probably cannot, you actually need to process the data, not just download it ...
@JoeWatkins Doing async requests will also help :)
user1642018
can i run 5 instances of it ?, i mean will it work ? i am still testing so dont have 22 mil hashes, but i did some benchmark and thats what i got 2+ days
@TOOTSKI Got steam yet? -_-
@PeeHaa do we know of anything supporting non blocking udp ?
I could tell you a joke about UDP but you probably won't get it...
ba dum tsh
10:44
hehe
@Fabien :)
@JoeWatkins You forgot to ping @rdlowrey :P
I did ...
:)
yay another new VPS arrived! Time to molest the thing
Poor vps
What are you doing with them anyway?
10:59
For the new business. Webserver, mailserver, dbserver
db server is already running
Now going to setup webserver
wow really going all out
Sales guy must know what hes doing
We both agreed we don't want to dick around :)
2 weeks ish now right?
+ notice
I'm going to finish may
Going to be a busy year too I presume
11:10
Let's hope so :)
Remember us when you're a millionaire!
Of course. I will buy you people an entirely new room to hang out in :D
lol
is it going to be lots of small business or scalable big business?
@Fabien More the bigger companies. We are first going to focus on business between 10 and 50k
Sales guy is also client fetching guy I take it.
Just the two of you?
11:21
Yeah and yeah
Is there no real design element or just not a big requirement?
For now not a real big issue. If it ever becomes a big need we will outsource it first
It's the cheaper aspect of web business anyhoo
I'm excited for you.
Yeah me too :) It's a somewhat scary thing, but I have been wanting to do it for too long now
That kind of independence is awesome. I have absolute faith you'll do great with your talent.
11:28
I certainly hope this is going to succeed and I never have to work for a boss again :)
And set your own beer-time :P
Once your bank-roll is established things get a lot more comfortable.
11:46
hello every one
i need to sample the image in php during curl..
11:57
Guys, hi. I am very need magento guru
morning.
I need to make stuff during <insert some random noun>
He's thankful enough to award me with a bounty, but not to upvote or accept? stackoverflow.com/a/22010521/871050
12:14
He is does not accept
i have an array which is contains over 3400 elements
and i'll json_encoding it
and later i'll use json_decode
but now my array contains only 817 elements
why ?
May be server limit to post transfer data or get. May be json. Need to google
oh man. sometimes you look at the question and think "that's way too easy for me, let others get some point and practice". and then they come up with this: stackoverflow.com/questions/23308393/how-can-i-write-a-function-to-find-missing-‌​number-in-php/23308740
Holy moly, that is quite the answer
12:32
@KarolyHorvath And everybody fails to see that the solution that's actually wanted is checking the Gaussian sum :/
At least that's the most efficient approach
@KarolyHorvath function findMissinngNumber() { trigger_error('U high or wut!?', E_USER_ERROR); }
@nikic: wanted? not sure.... but look again, it's there.
I wish I was high
I've just downvoted this but vote count increased (it was 2) refreshed page and it's 2 again, so wtf?
@SecondRikudo Tried in 3 different browser and IE is among them it's definitely not local cache.
12:46
@Leri Does it still show 2 for you?
user1994804
Hi everyone, Im very much a novice and I know my example is outdated but please just help me understand without the need for bashing. If I have multiple functions declared on a page, Is it bad practice to use the same var name in each? (ie: $query_run = mysql_query($query);)
@BenjaminGruenbaum: :DDDDDDD
user1994804
Basically Im wondering if having "$query_run" and "$query" in more than one place is a bad practice
user1994804
or if I should: $query_run2" and "$query2"
user1994804
etc...
Reminds me of
heh
@YourAdrenalineFix: depends on your style. It's fine.

that naked mysql_query call, OTOH, *is* scary. don't repeat yourself.
don't use mysql functions
13:00
@SecondRikudo Yes. :/
Now?
Clear cache
@NikiC I have an internals question. How come when I define a function using ZEND_ARG_INFO(0,...) (so pass by ref == 0), when I zpp out a string, then modify it, the variable I passed to the function is modified as if it was passed by reference
@Fabien There's some really cool stuff in there
@BenjaminGruenbaum if you use ubuntu, you deserve all that you get
13:12
I use ubuntu, just not on my vps.
@Fabien that bug would not affect a vps
Oh didn't even see the link.
It's okay I have an attack cat to prevent people using my PC.
@Leigh because copy on write
you get a shared zval
if you want to modify a zval, you need to separate it first. however, I'm not sure why you'd want to modify the string contents of a not-by-ref zval
@NikiC ah, it's a clamping function for a secret key
so I should just estrdup it to prevent it being modified
13:15
@Leigh yes
Roger, thanks :)
13:26
am I only one who feels that the parallels between Austrian Anschluss and Crimea are disturbing ?
hey! I'm at 70000 exactly :-)
4
Grats, I had a private party for one when I hit 8192
I've broken that :p
@ircmaxell Here, have a downvote :P
bastard
13:29
no..
I've upvoted..
muahaha
I was 42k but then bloody ppl kept upvoting...
I think I have to delete some answers
I still can't believe this is only #6 answer in this thread:
64
A: When to use self vs $this?

ircmaxellTo really understand what we're talking about when we talk about self versus $this, we need to actually dig into what's going on at a conceptual and a practical level. I don't really feel any of the answers do this appropriately, so here's my attempt. Let's start off by talking about what a clas...

@ircmaxell +1 :)
I haven't read it, but presumably it's good
lol :-)
13:34
too verbose?
It's starts from Adam and Eve
He included 3 tldr's
Reading isn't gonna give you an illness or anything ;)
@ircmaxell fwiw, it's one of the PHP features I find missing most in other class oriented languages like C#.
@BenjaminGruenbaum what's that?
@cspray: there's way too many thing I would like to read.....
13:37
fair enough
ECMAScript 6 has something kind of similar.
@ircmaxell and accepted answer has 600+ .. figures. That's how it's going on SO :\
600+ for copy/paste from a bad-information spreading forum
@AlmaDo it also was made long before mine
5 years before mine to be exact
@ircmaxell since I'm 20k+ now, I won't do any repwhore anymore :p
so I'm free of such score system :p
14:03
Awesome answer @ircmaxell an enjoyable read
14:19
\o/
another security issue today!
yaaaaaaayyyy (not)
what exactly is the reason someone would do this? error_reporting(round(0));
@crypticツ Probably the same reason someone would do error_reporting(rand())
3
14:29
insanity?
@crypticツ someone just tried to be original (seems like he've succeded in that since you've posted that line)
it's a meme then.
@AlmaDo it's part of a PHP shell backdoor, code is already obfuscated, so curious as to why that line was done that way as it would not help in hiding the code.
@crypticツ if someone would like to search error_reporting(0) in the folder structure - that will fail. Such search may be done if the person have forgotten where there was such error level setting (obvious, lame) - and if that person wants to disable errors on production..
just for curious, is stackoverflow using Apche solr for searching
14:41
It used to -- I think
Jeff Atwood on January 27, 2011

Google has ruined search for everyone.

By that I mean they have done it so long, so fast, and so well — despite the recent speed bump — that users simply expect everyone’s search to be as good as Google’s. And that is … challenging. Particularly considering Google is an enormous company now, with server farms roughly the size of the state of Pennsylvania.

How’s a little startup supposed to compete with that? Or should we even try to, really? From the beginning, Joel and I said that the de facto Stack Overflow home page was a web search. So why, exactly, do we  …

user1994804
14:52
@KarolyHorvath Thanks for your input. Could you plz elaborate on: that naked mysql_query call, OTOH, is scary. don't repeat yourself. Also wondering what OTOH is?

« first day (1288 days earlier)      last day (3886 days later) »