« first day (2956 days earlier)      last day (2002 days later) » 
01:00 - 18:0018:00 - 23:00

6:02 PM
@Shafizadeh You expected it to be higher?
 
not really .. I wasn't know such cheap websites have this much of visitor
 
I'm amazed it's below Yahoo.
People still use Yahoo?
 
^ same for Live.com
just be grateful that tumblr is not in top50
@Shafizadeh not sure what you mean by "cheap", since the two closest "video sites" in the ranking are Twitch and Netflix
and those to are major sites
or are you surprised that people watch porn?
 
yeah, AFAIK, they are a major contributor for the Symfony framework
 
6:14 PM
yup, heard the same thing. It's probably a pretty interesting project from the technical perspective
 
@pmmaga I have a hard time believing that post. They couldn't possibly be as low as 22nd.
 
@Trowski apparently down to #29 now
:P
 
@pmmaga According to Alexa, which AFAIK gets a lot of it's traffic data from a browser plugin.
 
@tereško "cheap" refers to low-value-content in my context. A porn video is really cheap. Why really people should watch it while there are lots of great moves such as imdb.com/search/title?groups=top_250&sort=user_rating
 
@Trowski indeed, people willing to install a toolbar in their browser is not a very good overall representation :D
 
6:24 PM
Is it even possible to look your coworkers in the eye if you work at PornHub?
I wonder what their work parties are like.
 
@Allenph They are more a tech / marketing business than a porn business
 
@PeeHaa You seem to know a lot about Porn Hub People
 
@Machavity I looked into working for them at some point
But they don't really do remote
 
At PH, the remote does you
 
:)
 
6:34 PM
@PeeHaa Well, yeah. I would assume that you would kinda need to be there in person to work at PornHub. Can't phone that stuff in ya know
 
@Machavity lol
 
Hey, if you're willing to sell your soul to PornHub, why not consider selling it to Wordpress as well? Same difference :P
 
@Machavity Wrong
One has a subsection of bdsm the other is bdsm
 
6:52 PM
@PeeHaa Yeah. I can tell by the name.
 
@Allenph Their name is mindgeek
 
Wow. Some stellar reviews. I wonder why you decided not to work there.
 
24 mins ago, by PeeHaa
But they don't really do remote
 
I was being sarcastic. The reviews are terrible.
 
Are they?
What d they say?
 
6:56 PM
Abysmal.
 
@Allenph They fire people for viewing NSFW videos?
 
@Machavity Exactly.
It said the management are all quite racist, threatening, poor team environment, etc.
 
Fucking canadians. All the same... @FélixGagnon-Grenier
cc @rlemon for good measure
 
I thought the Canadian PornHub was called CornHub
 
yeah, fuck everything / everyone. Sorry.
 
6:59 PM
@Machavity That's Kansas.
 
@Machavity heheheh
 
Holy crap. I just now noticed Felix's profile picture.
 
glorious eh?
 
Also @Shafizadeh What's Men's day? Isn't every day Men's Day in Persia?
4
 
7:04 PM
btw @tereško, since our users choose really bad titles for their questions .. sometimes they choose 2 words as their question's title. Anyway, we need to make some patterns for them. Like SO which has "how to ..." pattern
Now I'm thinking of getting an API from google auto-complete and then suggest them to our users to help them choose better (more searched) titles. Do you know about such an API?
 
@Machavity You still doing the SO review garbage task?
 
Wes
10 years into english i still don't know if adjectives go before nouns or the other way around
 
@Wes Doesn't the wrong way look/sound weird to you?
 
@Wes You can hook it up either way.
 
is this an italian thing?
 
7:06 PM
@Shafizadeh you could add a tooltip, that gets show in such cases, which would tell the users: "better titles will get more people to click on your question"
 
@PeeHaa Well, someoneone has to close all those PHP questions
 
or something along those lines
 
@Allenph haha :-) ..! well yeah, if fact every day should be Men's day except that one day named "women's day". :-)
 
The thing was cool.
That was a cool thing.
 
@Shafizadeh basically - appeal to enlightened self-interest
 
7:06 PM
@Wes I hate to tell you, but most English speakers probably couldn't tell you either
 
@Machavity but they do it intuitively right
 
Wes
that relieves me
 
@tereško yes that tooltip would be useful .. but to make our content more better in SEO, we should force our users to choose popular sentence as their question's title. (popular sentence == what google autocomplete suggests). I need to get an API from google for that .. any idea is there such a thing?
 
@bwoebi Yeah. Unless it's one of those umpteen bazillion rules where it doesn't apply
 
@Machavity fighting the good fight
 
7:08 PM
Uh, when do adjectives ever go after a noun?
 
@bwoebi In my experience the only time people who are native English speakers make mistakes in speech is when they're doing it on purpose because of some social pressure.
 
@NikiC When yoda talks maybe?
 
@Shafizadeh hard to implement, can back-fire, sounds too much like "black SEO", users will not have the relevant skills
 
@NikiC "She is nice" is an example. "nice" is the adjective
 
keep in mind, @Shafizadeh, most of the people don't even know how to search in google
 
7:11 PM
^ People don't know how to use Google? Just remembered all of the people that come into this room.
 
@tereško true .. but I don't care about asking correctly .. I care about "what they search for their intention" .. In that case, our posts' titles will be exactly the same as what people search .. and it causes coming in the first page of the google search result
Oh .. what I'm looking for is itself trend:
 
@Machavity Okay, but that hardly counts. Do adjectives in attributive use ever come after the noun in english?
 
@NikiC I heard something interesting.
 
@NikiC They generally don't, but then you get those oddball cases where it doesn't apply
 
Thanks, I see
Never noticed that
 
7:18 PM
OH YES ..! I did it @tereško (that's the autocomplete result for "how to" prefix)
 
hmmm ..
 
> Just because a tool is available doesn't mean people will use it correctly. People have abused booleans, dates, enums, databases, Go-To's, PHP, reinventing the wheel and even Excel
 
OH GOD ..! That result contains user's browser history .. it means, if you search for "how to do X" and don't get your answer in the google result, then you come in our website to ask a question, we will suggest you "how to do X" as your questions title :-) @tereško
 
website are not supposed to have access to a user's browsing history.
 
7:34 PM
oh wait .. lemme think ..
ok, it's not about our website .. we're getting that result from google .. google knows user's history
emm .. ok ignore what I said .. since that request will be sent from our website, then google doesn't know about the user and his history .. so, you're right @FélixGagnon-Grenier
 
> ignore what I said
No need to tell me that
 
:-)
 
!!lxr hash_equals
 
[ /ext/hash/hash.c#846 ] PHP_FUNCTION(hash_equals)
 
7:55 PM
guys, noob question - is it required to check array length before looping with foreach?
 
@choz No?
 
Got it
Thanks @Allenph
 
@choz Make sure it's an array, tho. Anything else will throw errors
 
Hrm, foreach doesn't skip null?
 
@Machavity And by "make sure" he means to make sure that you pass an array. Do not insert is_array checks or similar.
 
8:02 PM
Good idea, thanks for pointing that out
It's guaranteed that the element I'm checking is an array tho. But, ill add that array check as well.
 
... dude
@choz It's literally the contrary of what you were just told
 
Gah..
@NikiC Ack - got it
Maan, my brain needs reboot.. its 4 am here
perhaps anotehr coffee
 
heh, maybe some sleep ;)
 
Rasmus wrote PHP 1.0 over 72 hours of sleeplessness when his girlfriend dumped him for a "real" Unix programmer. PHP is still best understood while sleep deprived
 
8:15 PM
can foreach work with an iterable? or I guess iterables are for generators?
 
lol - did you just make that up? because im not googling it now
 
iterable?
 
@Machavity
 
oh
 
soz @Tiffany - not sure about your question.. perhaps another expert will show up soon
im interested to know the answer too 8)
 
8:18 PM
@Allenph Nebraska. Have you driven through Nebraska? Almost entirely corn fields and little else.
 
@Tiffany Anything that implements Traversable (which includes Iterator) can use foreach
 
@Tiffany Nope. I always go under it.
Also Machavity beat me to it. Have you not tried to make a collection class before?
 
asdf
 
@Tiffany Yes, it can. That's pretty much what iterable is about :)
 
@Allenph my experience with OOP is extremely limited. It's been quite a while since I've completed a project which utilizes OOP. Or at least interface-based/class-based programming
 
8:22 PM
@Tiffany Is your entire project procedural code?
 
I think the last one was the No-Framework tutorial and that was more of a hand-holding experience
@Machavity Primary PHP codebase that hosts current website is not procedural code, but it was not written by me.
 
Didn't have great success with you refactoring effort then?
 
@Allenph nope 😒 and pretty much given up because we're switching platforms. It would be a wasted effort at this point. So I'm slapping bandaids as needed. ... and if it's a bandaid I can apply ...
and didn't finish the CSV to XML project because I figured out an easier way to solve the issue that the CSV to XML project was going to solve
 
That's pretty weak brosiah.
 
I think I was getting close to it working with DaveRandom's help, but I got horribly stuck with a bug. DaveRandom was busy (around the time he started new job), and I wasn't able to figure it out myself, before we started moving forward with new web platform project.
 
8:29 PM
Oh, is that where Dave's been?
 
He hasn't really said, but I haven't pried, it isn't my business.
 
@DaveRandom Get your banana hammock back here.
 
now I'm trying to remember where I had left off with the Grand Refactoring project, pretty sure it was router related, and I was in the process of putting some tests in place so that I didn't fuck stuff up, but the code is difficult to test
 
You were trying to test your router?
 
is it empty($arr) or !$arr the preferred way to check if an array is empty?
 
8:37 PM
@choz Empty.
 
@Allenph routing was handled by the router, controllers and at least one or two models. It was screwy.
 
@Allenph thanks again
 
@Tiffany Rough.
 
I remember that one of the models was returning null values and I couldn't figure out why
 
I have no idea what "one of the models was returning null values" means.
Was it like an active record thing?
 
8:40 PM
@choz count
 
@Allenph in reference to routing being handled by "at least one or two models," one of the models that handles routing was returning null values
 
Soo, currently am doing this..

if (empty($whitelist_instances) || empty($alert_instances)) {
continue;
}
 
@PeeHaa If it's not empty that's slower.
 
@Allenph possibly, considering at the time, the programmer was hopped up on RoR. But I know very little about Active Record. In fact, I know less about Active Record than I do OOP.
 
would it better if i go for..
if (count($whitelist_instances) + count($alert_instances) === 0) {
        continue;
      }
 
8:41 PM
@Allenph COnsidering they do two different things it doesn;t really matter
 
@Tiffany Good. It will be easier to unlearn.
 
Performance for that check doesn't even matter regardless of perceived performance improvement
 
I actually prefer perf instead of brevity in this case..
both arrays wouldn't have more than 10 in terms of its length
 
@PeeHaa I'm not going to check. You're smarter than me.
 
@choz I am not surprised
 
8:45 PM
s/smarter/more experienced
though, smarter might be true, I dunno
 
@choz I would not worry about it too much. Get it to work and then worry about performance waaaaaaaay later.
 
yeah, times running out
thanks anyway @Allenph @PeeHaa
 
Better reference youtube.com/watch?v=tcGQpjCztgA @Tiffany
 
@PeeHaa I had to take an IQ test when I was seeing a neuropsych, and scored above average. Wisdom/experience has told that IQ means very little, unless you're a unicorn on either end of the bell curve.
 
8:48 PM
You're bound to score pretty high on the IQ test if you're a programmer, but you're right. It means very little.
IQ is a measure of abstract problem solving capability which is what we do all day.
 
@Allenph there are other parts of it that I scored average on :P
reciting words that start with a letter I'm really bad at because my brain draws a blank. I had to recite numbers that were spoken to me, and I had to mentally sort numbers and letters, then recite them aloud after they were spoken to me, I did average on these. Indicative that my prefrontal cortex is underdeveloped, which is true of people with ADHD.
 
I bet the tester would crap themselves after administering Nikita's test.
 
probably
 
@Tiffany Speaking of this I fell down the Wiki well last night. There are some insane TBI survival stories out there.
 
does preg_match return falsey value if its not a match?
 
8:55 PM
I saw a video about a little girl who had an arrow shot through her brain, entry point was her eye socket. She survived and was rehabilitated.
 
k, that was stupid q
thanks
 
I remember reading an article about a kid who had part of his ... either left or right brain removed because of cancer, and scientists learned that the other side of his brain rewired itself to compensate for the missing brain parts. It's interesting.
 
ThW
grmpf I can get PHP DOM to delete a namespace definition "the right way"
 
@Tiffany This is actually a pretty common treatment for young children.
 
8:59 PM
@Allenph the treatment isn't what surprises me, it's that his brain adapted by rewiring itself
 
Yeah. It is pretty amazing. If you get rid of a hemisphere of the brain early enough absolutely nothing is wrong with most of them.
 
@PeeHaa I haven't watched any of that stuff since I was a teenager. I cannot imagine being so engrossed in seeing that every single day for hours and hours.
 
it wasn't cancer, it was epilepsy
 
Yeah. That's really late. How crazy.
 
9:02 PM
@StatikStasis You mean looking at php code right
 
Rofl.
 
LOL- sure
 
9:27 PM
I am working on search result in wordpress I am getting the results and they are correct.
After an user has typed and searched the results, the value or the typed text will be stays filled so the user don't have totype again This part is working fine See:
$value = '';
if (is_search() && ! empty(get_search_query())) {
$value = get_search_query();
}
?>
<input name="s" class="filter-search_input input" type="text" placeholder=" search" value="<?php echo esc_attr($value); ?>" data-js="input">

My question is How can I do this with a checkox so if the user has checked one option and searched, af
 
@user8124685 session, checked
unless you're doing something fancy with $checkBoxValue, a value is unnecessary for the checked attribute
 
@Tiffany How do I do that with the session? $checkBoxValue is simply 'checked' nothing else.
is there maybe an wordpress function that i can use?
 
@user8124685 php.net/manual/en/intro.session.php and I'd recommend removing the variable, if that's all it has. It's unnecessary.
@user8124685 I don't work with Wordpress by intention, so I wouldn't know. Google might.
 
@Tiffany Thanx, yeah already doing that as well
 
9:42 PM
I wrote a (very poorly coded) form that had data retention, I made heavy use of the $_SESSION superglobal. I'm not sure I have a copy of the code anymore because I was ashamed of it, still am ashamed of it.
found an example of how I did it. I store the checkbox value in the session, and do a check in the HTML D: to see if the value exists within the $_SESSION superglobal, if it does exist, then "checked" is added
<?php if (!empty($_SESSION['form_data']['ohgodwhy']['whywhywhy'])) { ?> checked <?php } ?>
I need to delete that folder... I deleted the rest of the evidence
 
10:32 PM
We seem to have NULLs inside of ZEND_AST_STMT_LISTs, which seems odd. Anyone know why?
 
10:47 PM
Is there a standard place for initializing compiler globals?
 
01:00 - 18:0018:00 - 23:00

« first day (2956 days earlier)      last day (2002 days later) »