« first day (2056 days earlier)      last day (2905 days later) » 

Wes
7:03 AM
@Dereleased so you are saying that java is good...
 
omg @wes
 
Wes
rofl
 
yeah I'm not sure what the point of that is ...
 
Wes
ha
 
@AdilIlhan I must agree with @Wes here :X
 
7:06 AM
@Ocramius @Wes jsfiddle.net/mqdzwn6n/3
 
Yeh, gonna need some better pictures of that in 1 week
also, who's at PHPSC this year?
 
@nikita2206 ping
@Ocramius not me :(
 
oww
 
might come in the evening for a bit ...
 
7:08 AM
@Joe pong
 
stick a two week voting period on that please
 
@Wes doesn't work in my fancy browser :-(
 
@JoeWatkins yep, was gonna close it not, thanks
 
got it working if anybody was wondering
 
Wes
@Ocramius wtf are you using?
 
7:08 AM
Firefox Aurora :P
 
it should have two weeks ... make some twitter noise to get people to come and vote ... 20~ is not really enough of a clear signal I think ...
 
@littlepootis DAMMIT
 
Wes
@Ocramius the fux is that
 
@littlepootis ?
 
7:10 AM
@Wes just firefox unstable channel :P
 
i guess @Ocramius understood
 
Wes
isn't that nightly?
 
but i didn't get it
 
@Wes yes
 
@JoeWatkins ah, we have time until 6th. I didn't even count it :P
 
7:10 AM
yeah, state when voting ends next to doodle
 
how do you close voting by the way?
 
Wes
it works on mine 49.0a1 (2016-05-31)
 
with the doodle
(attribute)
 
ah ok, thanks. will do
 
(look at functional-interfaces, I just closed it, forget the markup)
 
7:11 AM
@Wes hmm, I'm still on 48.x
lemme see if I need to upgrade. Didn't restart it in a week...
 
Wes
lol
and it still works? lol, knowing firefox i mean
 
yeah
 
Wes
do you have at least the multiprocess thing enabled
 
ofc
hmm, yes, this is not nightly. Currently on 48.0a2
 
oh who still uses firefox :p
 
7:13 AM
so I guess it's ALPHA, not nightly
 
I yhink it's on by default in Nightly
 
Wes
yeah could be
 
i forgot firefox
 
@AdilIlhan people that care about the open web and shit, you know
 
Wes
firefox is dead to me
 
7:13 AM
@Ocramius chromium?
 
@nikita2206 suggest "Vote started on May 23, 2016, ends Future Date 2016" ?
so it can't be missed
 
Wes
sadly i have to use it every day. but it's dead. for some reason people like @Ocramius still use it...
 
i was fucking fan of open web, free software etc. in the past
 
I'll switch to FF when it supports touch PCs
On Linux
 
but right now i use osx and chrome
 
7:15 AM
@AdilIlhan What changed?
(mugguh)
 
If you are a #PHP RFC voter, please review https://wiki.php.net/rfc/callable-types and cast your vote; Taking part is what makes it work !
do tweeting ppl ...
 
Wes
i'm a fan of the open web, but if open web means taking ages to load a page or switching a tab then it's pretty much closed web to me
 
heh nothing. @MadaraUchiha sick to death
 
@JoeWatkins yep, done. thanks for the tweet!
 
@JoeWatkins Does it have any chance yet?
 
7:16 AM
sure it does
 
Wes
Nov 30 '15 at 13:39, by Abe
hey, wanna know how it feels browsing the internet like it was 1990? check this time machine simulator
 
It needs, what, 11 more votes in favor and none against, got enough potential voters?
 
@AdilIlhan so switched to osx? :P
 
there are 150~ voters ... if you can get them to care ...
 
even i gave a speech about open culture
 
7:16 AM
@JoeWatkins I see
 
yeah @littlepootis
 
morgen all
 
o/
 
Ekn
mornin
 
what is your os? @Ocramius
 
7:18 AM
@AdilIlhan yeh, I use that for selenium runs, mostly because the other APIs are a mess
@AdilIlhan MacOS, Android, Windows, Linux
 
retweeted it @JoeWatkins
 
got FF on all of those
 
'a
 
some guys added me to some twitter lists when i retweeted you @JoeWatkins
weird
 
7:21 AM
@AdilIlhan try tweeting wordpress ;-)
 
morning!
 
I get added to a list almost anytime I say anything ....
I'm pretty sure the same lists appear, but don't pay enough attention to be certain ...
 
@AdilIlhan or laravel :P
 
@PeeHaa you suck
 
hmm so, if you tweet about some framework then if you don't add to a list by someone then it's a "de luxe" framework
for instance; zf
 
7:24 AM
an hereditary trait, it seems
 
eheheh
i tweeted a lot of things about zf. nobody added me to lists
 
because nobody cares about you
 
J.S
hi all, I have 14 PHP applications running on a server. Since the last few days, I am seeing 7x CPU loads. Is there any way to find out which applications is causing this load. stopping them one by one and checking is not an option :-)
 
<insert horrible joke>
 
if you become the main zf contributor, people will add you to all the lists
 
7:26 AM
read upper part @FlorianMargaine
 
Anonymous
Morningg
 
@J.S top?
 
J.S
@FlorianMargaine It just shows php
 
@J.S another thing I've done is printing CPU stats to the php logs for every request, I could then do some massaging
 
@FlorianMargaine not really
 
7:28 AM
heh
 
ZF, Symfony, etc are ~1% of what's going on in the PHP world, regardless of how vocal we are as communities
 
@Ocramius come on, you have more followers than I do
 
@FlorianMargaine yeah, but I'm not in that many lists due to ZF
 
@Ocramius not necessarily, in my experience with web agencies
 
heck, I even get added to religious BS due to doctrine and its silly naming
 
7:29 AM
@Ocramius LOL
 
@FlorianMargaine go to Asia and ask them what they use :P
It's mostly drupal/codeigniter/joomla/wordpress
 
Anonymous
!!wotd
 
Pierian: of or relating to poetry or poetic inspiration.
 
J.S
@FlorianMargaine I did not develop those applications so I cant touch code
 
@Ocramius drupal? i don't think so
 
7:30 AM
@Ocramius asia is big
 
drupal is so complex for asia
 
J.S
Is there any way to monitor CPU usage based on virtual host?
 
I'm aware of that, but really, ZF/Symfony/Doctrine are mostly unknown or "just heard of it", for example
 
question
I call this everytime its wrong
$_SESSION['NumberOfWrongAttempts'] = 1 + $_SESSION['NumberOfWrongAttempts'];
 
@J.S there is no
 
7:33 AM
and when its right it is supposed to do this
 
you can watch something with strace
 
$_SESSION['NumberOfWrongAttempts'] = 0;
But it keeps the other value, why?
 
any tips?
 
@AnmolRaghuvanshiVersion2.0 'nin
 
Anonymous
7:34 AM
@NathanMarotta Paste your full code somewhere, easier to answer then :)
 
@J.S you can do that in the configuration
 
@JayIsTooCommon it is 3 separate files
 
Anonymous
@NathanMarotta Paste the snippet that's causing the problem
 
ahh there is a software that shows some clue about cpu usage
but i don't remember its name now
 
if(!$_SESSION['isOn']){
$msg = "No session ID available, Please login through the " . "<a href='session.php'>CMS</a>";
$_SESSION['NumberOfWrongAttempts'] = 1 + $_SESSION['NumberOfWrongAttempts'];
 
Anonymous
7:35 AM
@AdilIlhan New relic?
 
:(
no @JayIsTooCommon
 
that is increasing it by one if it is a wrong attempt
 
it was an apache's command
 
J.S
@AdilIlhan ya i was looking for something like that
 
do you use apache?
 
7:36 AM
fpm has access.log and access.format to help with what I said
 
that works fine, it does what its supposed to, but under the else part i put this so if the username is correct it goes to 0
$_SESSION['NumberOfWrongAttempts'] = 0;
 
@FlorianMargaine are they help about cpu usage ? are you sure?
 
but it keeps the higher value, so when you type in the correct username it doesn't change the number of wrong attempts
 
J.S
@FlorianMargaine I will give it a try. maybe i can log it
 
@AdilIlhan you can put %C%% in access.format to show the CPU usage of the request
 
J.S
7:39 AM
if all else fail I might quitely stop each app and check ;-)
 
Anonymous
@NathanMarotta pastebin.com Paste the full snippet that is causing the issue :)
 
found the problem
i was regenerating the session
 
Anonymous
:)
 
@salathe do you know where I can find the documentation for access.log/access.format of fpm?
I can't seem to find it
 
@FlorianMargaine seems nice. but i can't see %C there: httpd.apache.org/docs/current/en/mod/mod_log_config.html
 
7:41 AM
it should be in there but I can't find it php.net/manual/en/install.fpm.configuration.php
@AdilIlhan because that's apache documentation, not fpm's
 
don't you use apache? @J.S
 
J.S
@AdilIlhan I use nginx :-(
 
ah i see
sorry then
 
ngnix FTW!
 
@J.S if it's nginx + fpm, then it's all good.
 
J.S
7:44 AM
@FlorianMargaine Oh good :-) I will try it
 
112
Q: Is Google using ReCaptcha as a free source of human-intelligent labour?

MindwinHaving worked at the Amazon Mechanical Turk for a long time, I find that some ReCaptcha questions are very similar to the 1c tasks there. Identify this, identify that. A search shows that several web authors share the same suspicion. Most of them are high in the tinfoil scale, so they are not th...

 
Wes
8:01 AM
lol
 
Anonymous
That's pretty cool
 
Wes
i'm suing them because i didn't think of that first
 
Anonymous
I wonder if their 'new' select images captcha is used to make Google image searches more accurate.
 
Wes
awesome 3v4l.org/dZTcN #TIL
 
@FlorianMargaine I love you too :)
 
Wes
8:11 AM
\o
 
the answer doesn't make any sense, but that's because french doesn't work that way
 
@FlorianMargaine Same for Dutch. So probably french is odd ;-)
 
ugh I forgot a client meeting. brb all o/
 
o/
 
Wes
8:22 AM
to me it doesn't make sense not even in english :B that is a very poor explanation (admitted that is not a guess)
 
I've tried to do this level for 15 mins now, still no luck... totaljerkface.com/happy_wheels.tjf?level_id=9073597
 
@Saitama I don't have flash
 
Y?
 
hi
 
8:26 AM
@bwoebi if you use the stripos example, you should change it to return false not bool.
 
Also, I think there needs to be a bit of text pointing out the obvious after each of the examples:
> For this example, it is clear to both static analysis tools and humans that passing anything other than an array or a string to this function, would be an error.
> For this example, it is clear to both static analysis tools and humans that passing anything other than a ParameterGenerator object or a string to this function, would be an error.
> For this example, it is clear to both static analysis tools and humans this function can return either an integer or the value 'false', and so both cases need to be handled in the calling code.
Boring repetitive, but spells out the actual benefit of the RFC more clearly.
 
what happen when i use return in half file ? is file stop and return something and does not execute more ?
 
it depends
 
http://paste.ofcode.org/39n4G2fuBHRAMeRdDRSnqj7 ..
in case: if first condition is true the file wont execute write ?
 
8:33 AM
Just test it...
 
:(
 
php writes file to disk after your code works
thus you can access to details about the file
 
someone told me use if like http://paste.ofcode.org/39n4G2fuBHRAMeRdDRSnqj7

I have ask here question http://codereview.stackexchange.com/questions/129801/upload-image-with-secure-code?answertab=votes#tab-top
 
Wes
so yeah, one of my snippets from a bug report ended up added to the HTML spec
it's a bit embarrassing :B
text was also cut out
 
Anonymous
@Wes hahahaha
 
@Wes heheheh that's cool :)
 
ah i've remembered you @Phoenix
 
ohh finaly
 
are you still dealing with the upload class?
meh
 
8:39 AM
How's you framework coming along @Wes :P
 
Wes
@PeeHaa sigh 2
 
:D
 
@Wes ARGH
 
Wes
oh well, my indentation was correct, i think
 
@AdilIlhan yes
is it bad practise to use nested if's ?
 
8:41 AM
you should be avoid to nested if
 
huhu
5.5 will be EOL in a month
 
➜ ~ php -v
PHP 5.5.29 (cli) (built: Sep 9 2015 00:26:40)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
from my local computer :(
 
ok so my question about it..
if i use if statment for check image name,size,extension.. then
i cn use
if(size) return unvalid size;
if(error) return error;
if(ext !== "jpg "|| ..) return "unvalid ext ";
if first stament true.. wont be execute next if write ?
 
yeah
also
 
also ?
 
8:47 AM
take a look at "early return" term through Google
 
si
?
 
si ?
 
why you said "cazzo" ?
 
It's "Torni subito a bordo, cazzo!"
 
8:49 AM
si = yes in italian language
you sent google.it
so that's why i said "si"
 
i undestand
 
cazzo, basta!
:p
 
english plz
lol
early return wont execute right.. i searched on google they tell about elegancy and do not speak about the script stop working after return.. :(
 
f*ck, that's enough!
:p
early return is connected to code style
and...

if(true)
return 'xyz';

this line never be executed
 
okkkkkk ty ahahahha lol.. You are angry ahah
 
8:54 AM
nope?
i'm not angry. i'm hungry :p
 
Anonymous
This is painful.
 
which one?
 
The odd refund is fine, but we've had to refund ~£620 worth on #phpsc16 tickets this morning. That's a really hard pill to swallow. :(
:s
 
:O
 
Anonymous
@JoeWatkins any idea why?
 
9:02 AM
I'm not sure if it being a 1 day event helps though.
 
no idea
 
Adi
hello guys
 
Anonymous
I'm tempted
 
moin
 
'nin
 
Wes
9:08 AM
@PeeHaa halp please. want to PR a better text pastebin.com/UDdwAPL7 is this proper english :B
also others ^ please have a look
 
Adi
is that possible to open an image and it will open depends on id and image name?
 
yes
 
Adi
the image is not in database? is that possible?
 
9:20 AM
 
'nin
 
yes
 
Wes
welp. anyone? :P
 
@Wes that is Windows for once doing something sensible. It does that when it detects that an installer routine tried to do something which requires administrator rights but didn't ask for them, usually modifying HKLM or HKCU or creating a new directory under %programfiles%. So yeh, installer sucks but at least windows knows that it sucks and tries to fix it for you.
@Wes lgtm
 
Wes
tnx. commits
 
Anonymous
9:27 AM
Is PHP South Coast any good? I'm tempted to book
 
It was good last year, that's the only thing that anyone has to go on because last year was the first one
I would be going if I wasn't going to be out of the country
 
Moin.
 
Anonymous
@DaveRandom hmm I think I may give it a shot.
 
Adi
hello guys can you help in here? im trying to retrieve the image of the specific person using the id and the image_name. the image is not saved in database. how can i do that? here is my code pastebin.com/NR6WdhGq
 
Wes
yay, got merged already :P
 
9:41 AM
 
@Adi SELECT id, image_name` FROM crew_info WHERE id = ?`
@Adi You're trying to bind the result to$image_name not SELECT it. You don't know it yet.
 
Adi
@Sherif yes thats my query
 
@Adi No, that's not your query. Your query is "SELECT id, image_name FROM crew_info WHERE id = ? AND image_name = ?";
Remove the AND image_name = ? part and remove it from bind_param
 
Adi
@Sherif i need to remove image_name = ?
okay
 
You're trying to look up the image_name using the id, you aren't trying to get data from the database you already know, are you?
That would be like calling up your friend on the phone to ask them what their phone number is.
 
9:52 AM
@Sherif lol
 
Adi
im trying to use the id to look up for the image_name @Sherif
 
1 min ago, by Sherif
You're trying to look up the image_name using the id, you aren't trying to get data from the database you already know, are you?
Notice the question was rhetorical. I obviously already understood what you were trying to do.
 
Adi
but that query still gives me the same image for every user
 
Then you have the same image stored for every user.
 
Adi
yeah sorry bout that @Sherif
but in my database, their image_name is different
 
9:55 AM
@Adi And you verified this how?
 
Adi
in my daytabase it's different
 
The question was how did you go about determining that it's different in your database. You've already stated that it's different. I'm interested in the "how was that conclusion reached" part.
 
@JoeWatkins the number of hotel rooms available is not that high....
 
"how did you reach your conclusion" not "what was your conclusion"
 
Adi
everytime i click the upload button for a particular person, my code for updating the image name worked. @Sherif
 
9:59 AM
3 mins ago, by Sherif
@Adi And you verified this how?
 
@Adi That does not conclude that the image_name is different in your database since it still leaves us with the question "how did you determine that updating the image name worked" which then begs the question "how does that prove the image_name is stored differently in the database"
 

« first day (2056 days earlier)      last day (2905 days later) »