« first day (1748 days earlier)      last day (3190 days later) » 

user895378
12:59 AM
tumble weed
 
@rdlowrey mhm? :-)
 
user895378
Three hours of silence on a wednesday is a long time!
 
@rdlowrey Most Europeans sleep at this time
 
user895378
Hmm, good point.
 
2:38 AM
@DaveRandom the other day I was vaguely interested in adding operator overloading to PHP, and I was considering submitting to PHPNW15's CFP
will either happen? eh, idk
 
Hi Guys
Anyone Here ?
:)
 
3:08 AM
what happening
 
Hi Orangepill
How to link to a user in a comment so that the user will receive comments
in the stack overflow mailbox
thank you
 
@ username
without the space
don't spam the person though unless you want to end up on there ignore list
 
ok let me try to link to you in a comment so that I can see whether it is working
Hi Orangepill
Did u receive any inbox
I just put @Orangepill in one of my trial comments
 
um no... i did get the mention here though
 
oh ok
so how come it is not working
can u try to mention me in a comment and let me see if it works
thanks a lot Orangepill
 
3:18 AM
maybe you need a certain amount of rep for it to work
 
oh ok
 
@websuccess you should have gotten a ping from me on this answer
 
let me check it
Orangepill
Hi Orangepill I did not get any ping from you on that answer
but i see that u commnented there
So what can I do Orangepill
:)
oh I got it now - Thank you
can u try to comment with @websuccess in one of ur answers
thank you
 
3:57 AM
Hi Orangepill
Are u here
Can u check this link:
0
Q: Cannot import google contacts via oauth 2.0

WebSuccessGood Afternoon, everyone. I have used the code like this to try to connect to Google via OAuth2. The code has been obtained from : https://www.design19.org/blog/import-google-contacts-with-php-or-javascript-using-google-contacts-api-and-oauth-2-0/ The demo in the site works and the google conta...

Please see if u know how to fix the problem
Please tell me whether u know or not
Thank you
Anyone else here - please also check it out and see if u know how to fix it'
 
show me what you get when you echo out $xmlresponse after your call to curl? (pastebin it or something)
 
4:15 AM
why would a server add special characters on its own?
 
@php_purest it wouldn't... or rather shouldn't.... what are you seeing
 
webfarm.io
go to home
is it a zend bug?
 
I'm not seeing anything strange
 
not a �
 
ohh... I see
did you copy/paste from word
 
4:24 AM
what's causeing it?
 
are those supposed to be quotes there?
 
no, <b>
run it through a scraper?
 
you need to include thisL to try it github.com/google/google-api-php-client
 
The bold tags are showing up... it's probably emdashes or emspaces
 
oh yeah u have the link ok
 
4:27 AM
@php_purest erase the "spaces" that are there and re type them...
it's a copy paste character encoding issue.. you see it a lot when you copy and paste from design and word processing software.
 
oh u are not looking at my problem
ok
didn't notice that
 
k
got most of them
 
focusing on php_purest's problem - ok
 
why does html do it sometimes?
 
@php_purest alternatively you can specify the character encoding of the page to be UTF-8 ... probably a better option
 
4:32 AM
hmm
 
<meta charset='utf-8'> in the head of the document
 
got it
 
yep
 
@Orangepill <3
 
I would do it right before the jquery include... there is some XSS vectors that can be exploited by tricking the browser into guessing the wrong encoding you can eliminate that by specifying a character set in the first "x" bytes of the document (I don't recall what the value of x is)
@php_purest exploit is documented here code.google.com/p/doctype-mirror/wiki/ArticleUtf7
give me that and I might be able to help you
@php_purest so are you in Lino Lakes?
 
5:06 AM
Hi Orangepill
U want something from me >
?
what should I give u
 
@WebSuccess you should use of @ for calling someone, like @Orangepill
 
ok
thanks @Sajad
 
@WebSuccess your welcome !
 
@Orangepill u want Something from me
@Orangepill - pls tell me what should I give u
 
@WebSuccess ^ that
1 hour ago, by Orangepill
show me what you get when you echo out $xmlresponse after your call to curl? (pastebin it or something)
Or that rather
 
5:10 AM
oh ok @Orangepill
btw, what is pastebin - @Orangepill
 
@WebSuccess pastebin.com
@WebSuccess Paste the results in there...hit submit and paste the url in the location bar in here and I can see what you typed without overflowing chat
 
how should I control 'vote button' for each post ?
in the stackoverflow, when you open a question, if you gave it voteup or votedown, you can see it. that's mean when you open a question, before loading, it checks that you gave it vote or not, how it checks ?
 
ok @Orangepill - Can I get back to u within 2 hours
 
@websuccess I hopefully will be asleep by then
 
5:25 AM
oh ok @Orangepill - then after how many hours should I get back to u
@Orangepill - I will try my best to come back within 1 hr
 
5:46 AM
mornings
 
5:58 AM
morning
 
6:31 AM
I need more powerful macros in netbeans.
 
6:44 AM
@Orangepill Am Back
 
7:03 AM
stupid internet is down
 
posted on July 30, 2015 by kbironneau

/* by jgomes */

 
@NikiC why no zend_hash_release ?
 
amazon aws s3 documentation is really crappy
 
well, not all documentation can be as good as PHP's ;)
 
7:18 AM
Mornign
 
@PeeHaa Mornign o/
 
\o
 
anybody used amazon s3 v3 ?
 
7:33 AM
@Orangepill I tried to echo $xmlresponse after my call to curl but nothing is displayed
@Orangepill I am confused where it stop working
 
@WebSuccess Did you use CURLOPT_RETURNTRANSFER => true?
 
where should I use it and what is it for @kelunik
 
@WebSuccess As option in your cURL call.
 
Mooooorning
 
Morning
 
7:46 AM
@kelunik can u give me the code to do it
@kelunik thank you
 
@WebFailure, you need to read more ..
 
@WebSuccess No, I already gave you a link, you should start reading and searching instead of asking for code.
 
ok that one @kelunik
@kelunik but it is not in english
@kelunik pls give me an english link
 
@WebFailure, use google, it's friendly..
 
7:51 AM
...I just made a Factory Factory. I feel ashamed.
 
^ factory that instantiates.. factories? yes, that's odd
 
ok thanks @Alma Do @kelunik
 
@AlmaDo I have a generic factory that creates an instance of something, but accepts a driver array for config. Then I made a class named after the driver that just calls the original factory :p
 
@WebSuccess Ups, replace the /de/ with /en/ in the link, there's also a language chooser somewhere...
 
It's temporary, since I'm still in alpha for this package and I wanted a minimal example for it, lol
 
7:55 AM
Happy Thorsday :)
 
@salathe All hail the mighty thunder god!
 
@Amelia generic factories sounds like an attempt to create a stuff which does everything => good chances are, it breaks SRP
 
@Epodax Thor was actually a lot more than just a thunder god.
 
@MadaraUchiha Yes, he was also a total badass with goats that could be eaten and then brought back to life!
And he had a awesome pink cart with yellow lightning stickers on the sides!
 
good mornings
 
8:00 AM
@MadaraUchiha While I just realised that my sentence may come off as a tad rude, I think I might add it's in pure jest.
 
Anonymous
Morning o/
 
@AlmaDo It was an attempt to move logic out of the service provider for the package in laravel into classes.
 
@kelunik
@kelunik I did use CURLOPT_RETURNTRANSFER => true as option for my curl call
@kelunik - so what can I do now to remove the problem
 
@DaveRandom Actually, I don't see why (technically) this would be closed by a mod
Not that it would ever take off the ground, mind you, but still
 
Studies suggest that six out of seven dwarves are not Happy.
 
Anonymous
8:12 AM
xD
 
lol
Poor grumpy
 
@Amelia s/arave/o/
 
@WebSuccess don't put this crap up
-1
Q: Need help to solve previous issue

WebSuccessGood Afternoon. I have a problem to be fixed urgently but seems that very few people looked at my post. Hence, I have this post so that more people will look at my previous post :Cannot import google contacts via oauth 2.0 Please help me. Thank you.

 
8:35 AM
are these " $2$, $2a$, $2b$, $2x$ or $2y$" prefixes in hashing called something special?
identifier perhaps
 
moin
 
@RonniSkansing prefix?
 
Morning :) anyone got experience with Wordpress?
 
@DaveRandom morning sir
@JustSteveKing You need help uninstalling it?
But more serious if it is a generic php question just ask. If it is a specific wordpress question just ask, but you might not get an anaswer
 
@JoeWatkins Feel free to add it
 
8:38 AM
@PeeHaa haha!I am trying to add a custom meta box to post types so that I can add a "featured Post"
 
Seems like a good addition to me
 
@PeeHaa I tried that and failed (wordpress noob here)
 
Failed how?
 
8:40 AM
It didn't display on the post lol
 
failed when chosen wordpress, I guess. That's a common mistake
now admit it. forgive yourself and try again. clean run
 
Did you check where it fails in specific?
 
It was more of a case of "Steve, stop trying to bill lients for bespoke work when you can use wordpress"
 
inb4 obligatory uninstall plugin
 
@PeeHaa no idea how to! I managed to create a custom post type for what I needed, but the box just doesn't show up
 
8:41 AM
hello everybody!
 
@JustSteveKing Debug it
Check where it fails
e.g. does the hook gets called?
 
@PeeHaa =p
 
:-)
 
Haa?
 
8:42 AM
@PeeHaa yea it gets called :)
 
@JustSteveKing I am not going to tell you to check the next line every time
Debug it
Get a debugger and step through code
 
@RonniSkansing In the context of crypt(3), it's referred to as an "id" (linux.die.net/man/3/crypt, see glibc notes)
 
I am trying that now :)
 
@DaveRandom thanks =]
 
8:46 AM
I'm not sure where the cost is stored but I assume it is encoded into the returned string somewhere, I'm sure Anthony can tell you exactly what all the bits mean/are called
 
I'm dumb.
Dumb af.
 
using of pure php is better or a framework ? (In terms of speed and efficiency)
 
@Sajad what is less important than how
 
@SergeyTelshevsky you asked a question ?
 
@Sajad no, I've said that if you can use any, but speed and efficiency depends on how you use it
 
@SergeyTelshevsky ah I see
I tested codeigniter, It was responsive for 300 request per sec, but pure php is 3000 request per sec
 
9:19 AM
@Sajad with or without opcache/apc?
 
@MarcelBurkhard nginx, your mean is apache ?
 
@Sajad without cache.
 
@Sajad php is an interpreted language, thus caching mechanisms make a huge difference in performance
 
codeigniter is grandpa's bullshit, use something else
 
@MarcelBurkhard what ? honestly I thought that 'cache' is just for static files. is it not true ?
 
9:22 AM
no
 
@MarcelBurkhard what ? honestly I thought that 'cache' is just for static files. is it not true ?
 
no not true
 
read about caching, at least something like this
 
@SergeyTelshevsky ok I will read it, just using of a framework is good or bad ?
 
depends... on both the definition of framework and your use-case
but codeigniter is shit, nothing unclear about that
 
9:25 AM
the general answer and opinion of the most people in this room is that not using a framework is better. but that depends on your skills
I'd suggest at least trying a couple of them to understand how they work
but not codeigniter
 
or cake
or yii
 
I was going to write that (yii), then didn't
 
<the list may continue to no framework left> :D
 
then should I use of framework, right ?
ok, I want clean codes ! and also clean url, and also security.
 
@Sajad you may try silex
 
9:26 AM
@Sajad try symfony, it's popular and flexible, your requests per second will go downhill like crazy though
 
@MarcelBurkhard I'd say it's too much for a beginner
 
@Sajad code not codes
 
@SergeyTelshevsky ah ok thanks
@MarcelBurkhard sorry, I don't know enlgish very well
 
@Sajad no need to excuse yourself, I just though you might want to know
 
@MarcelBurkhard yea I wanted ! thanks
@SergeyTelshevsky silex is a micro framework, right ?
 
9:30 AM
@Sajad You may want to try github.com/rdlowrey/Arya
 
@kelunik it is just a router ?
 
@Sajad A little bit more than that.
 
@kelunik since when is there routing in arya?
weird.. ^^ I used FastRoute
 
@MarcelBurkhard It's using FastRoute?
 
@kelunik yes
 
9:43 AM
@kelunik I didn't know that ^^
 
this arya sutff looks promising
stuff*
 
@kelunik I see... it was not a dependency before v1: github.com/rdlowrey/auryn/blob/v0.15.2/composer.json
 
@MadaraUchiha Maybe it just got flagged as offensive enough times that it couldn't be ignored
 
@kelunik and I used the no-framework-tutorial, that was prior to v1
 
hiiiiii
 
9:45 AM
@MarcelBurkhard Auryn vs. Arya.
 
hi @HassanAlthaf
 
Auryn = Dependency Injector
Arya = Router
 
@kelunik wow.. interesting that I didn't see that
thx ^^
 
10:00 AM
goood mornings
 
@Sajad yes, it's a 'small version of symphony'
 
-2
Q: What is the main reason why developers check if a file exists in PHP?

user4668401I see it is a common practice in PHP development to manually write a check to see if a file exists, e.g. <?php if (file_exists("snapshot1.png")) { print "Snapshot1.png exists!\n"; } else { print "Snapshot1.png does not exist!\n"; } ?> However PHP gives you this auto...

genius meme
 
same reason a crook checks to see if a millionaire's doors are locked to their mansion ;-) and vice-versaFred -ii- 58 secs ago
 
fuc* >_< 1&1 faved my fake dialup floppy disk with the bitcoin code on it.
 
10:30 AM
I need to check the length of 10 inputst, my code is below, I want to know there is a better way for checking the length ?
if (strln($_POST['one'])>=10 && strln($_POST['two'])>=12 && ....){ do stuff}
In other word, I have 1 `if` statement with 10 condition.
 
https://github.com/rdlowrey/auryn/commit/366d4e3225ef8e953e1ded95b8a4d744df32334b
https://github.com/rdlowrey/auryn/commit/3a3e2a065384f3d5d1ca05604029a6582f51bf02
https://github.com/rdlowrey/auryn/commit/4afab6ab724a44eba8b74d34d1ff30b6d504ae66
https://github.com/rdlowrey/auryn/commit/27ce379f4348e2bf8756305d4e37fa6b2e3ca186
https://github.com/rdlowrey/auryn/commit/50dc8eab8aeb572e7dc9d92c384d64260382e07a
https://github.com/rdlowrey/auryn/commit/89f2c09a6741f4c085f9a81a8968e3ef56676b3f
https://github.com/rdlowrey/auryn/commit/bd63c81ea999ae0b89aadae8a44e86e89160652c
 
user895378
arg
 
user895378
I don't care either way. It doesn't really cost much to keep the 5.3 compatibility that already exists. But I see your point.
 
I know what you mean, but looking back at the success of goPHP5 I do wonder if it might be possible for the community to stop the great and insidious evil that is 5.3, in these days where we will have 7 within the year
 
Had similar problem when I had to deploy to client's server... 5.3 is too far back
 
@DaveRandom Why ... why does software released 14 days ago have support for 5.3?!
 
We should be encouraging users to upgrade.
Not pandering to those who wont.
 
It's basically just shared hosting and archaic Debian installs afaict
 
And if users say "My boss won't let me update the server version" then you can blame your boss for not being able to use the better tools out there. And the more secure ones.
 
10:37 AM
@DaveRandom I have reached the point of php7 or gtfo for new projects
 
@PeeHaa That might be a tad steep for most people ^^
 
@NikiC Yeah, but I also have reached the point where I write stuff for myself in the first place and if people can and want to use it cool
:-)
 
@PeeHaa Some amphp libs are on the same path, I'll only support 5.6+ in my libs.
Most important reason is that use function isn't available prior to PHP 5.6
 
user895378
yeah use function is a huge win there ... and group use is the cherry on top
 
I don't use group use because of E_MISSING_IDE_SUPPORT, but that's just sugar anyway.
 
user895378
10:50 AM
It's pretty nice for the amp functions to have them all in their own little import block
 
Yeah, missing IDE support for PHP 7 is a problem...
What are they thinking, not supporting versions half a year before release!
 
user895378
Yeah WTF IDEs
 
@rdlowrey I actually filed group use under the same folder as the spaceship operator. It's ok, but it doesn't help me that much
 
user895378
yeah it doesn't help in any tangible way -- it's all cotton candy -- but I like it :)
 
@PeeHaa Presumably that's because you are not a 1337 h4xx0r
 
10:51 AM
brb hacking your facebook account
 
@NikiC Even things like function import was only added some days ago, that's 5.6...
 
@PeeHaa Feel free, it's pretty valueless, it's not linked to any email address I actually use and the most embarrassing content within it has already be posted in here, by me.
 
@DaveRandom Waitwaut? You have an actual FB account
lol
wanker :P
Holy shit common name is common
 
@PeeHaa I do but I never go on it
 
You better not! :)
 
11:00 AM
can I mix these :
if (strpose($var,"-") === false) {}
if (strpose($var,"^") === false) {}
?
 
Sure you can, but you will get a fatal error
 
@PeeHaa :)
 
There is no such thing as strpose, perhaps there is a strposer
 
is it possible to I creare a array of my character (-,^) and then apply them in on if?
look, I need to check `$var` for lack of these characters: -,^,_,[,],{,},/,#,@
so should I use of 10 `if` statement ?
 
@Sajad You should probably just use a regex
 
11:05 AM
@Sherif preg_replace() ?
 
I have no idea what purg_replace is, but maybe you're looking for preg_match
 
@Sherif ok. I will ask my question in stackoverflow and tagged it with regex. thanks
 
Does that really warrant asking a question? It's possible you can get your answer by just reading the link to the manual I pointed you to.
Or could just be that I was intentionally giving you that link because I needed to add more clicks to my keyboard odometer.
 
@Sajad It's possible to use strspn/strcspn/strpbrk for this
If you use those, leave a comment. The next person reading it won't know these functions.
 
@NikiC The C Standard Library: Naming is hard, so we didn't bother
I cannot even begin to imagine what name was abbreviated to strpbrk
string_pebble_rock
 
user895378
11:15 AM
strip_club_breaks_the_bank -> strpbrk
 
@NikiC here is my question : stackoverflow.com/questions/31722291/…
 
You already know it's possible. Why not just try to use preg_match and then ask your question about what you tried with preg_match that didn't work for you?
 
@Sherif because I don't know regex !
someone can tell me what is mean of this sentence ? 'Use negative lookahead.'
 
Hmmm... if only there was a place that could provide you with information needed to learn...
 
@Sherif Room 11 is that place! :P (smiley for sarcasm)
 
11:24 AM
@salathe Apparently not.
19 mins ago, by Sherif
I have no idea what purg_replace is, but maybe you're looking for preg_match
 
i searched google for "place that provides information", and the first hit was the wikipedia page for "library"
 
@JoeriSebrechts What's a library?
 
i remember going there as a child, but that's all i know
 
I liked it better when the only way to ask a question online was to wait for a usenet that wasn't busy, dial in, upload your post, and wait 3-6 weeks for a response.
 
my first e-mail address worked that way, someone would save the mails to a floppy, hand it to me, i would respond on my pc, return the floppy, and he would send the e-mails, took a few months for a roundtrip because of the scheduling and overall procrastination involved
longest conversation i had was three e-mails back and forth
and then i got a hotmail account
 
11:29 AM
1981, heh
 
Guys, is github ONLY for storing projects that are unique, haven't be done before and will help others? or can I store newbie projects such as a social network using PHP MySQL?
 
@Sherif nice mail client. Doesn't look shit.
 
@bwoebi Did you know Marissa still uses Pine?
 
@Sherif who's Marissa?
 
Marissa Mayer. Former Googler and current CEO of Yahoo.
 
11:33 AM
never heard of her.
 
That's OK. No one's ever heard of Yahoo after 1999.
 
hehe
 
You know you're hardcore geek if you worked for Google and preferred Pine over Gmail.
 
INNER JOIN CRC crc ON crc.CRC = fh.CRC <-- yeh I'm definitely in your camp on that one @PeeHaa
 
@Sherif my Mail.app is good enough for me… Not need to be too geeky when not coding ^^
 
11:38 AM
@bwoebi I actually have to admit I didn't even know Gmail had shortcuts until very recently. Huge time saver when you're getting hammered with hundreds of work emails every day.
In case anyone else is a big gmail user funkatron.com/content/gmail-shortcuts.pdf
 
@DaveRandom Oh god
 
I use Gmail and am pretty tall, does that count?
 
@DaveRandom you messed that up :p
 
Ugh I dislike building access rights stuff.
 
I quite like it
 
11:44 AM
Sometimes I really wish there was a golf slap button when ever some one answered a question which had 0 effort...
 
Often there's a lot of niche cases for me though.
Top 67% for PHP. Sweet :P
 
@Fabor Yeah same here
Always becomes an utter turd
 

« first day (1748 days earlier)      last day (3190 days later) »