« first day (1129 days earlier)      last day (3825 days later) » 

3:00 PM
Hello all, can any body help me on getting youtube video tags with google api 2
 
@ircmaxell Those quirky nihonjins =)
@Fabien I hope they give you a decent notice period too
 
1 month. Standard amount contracted.
 
I was 1 year and 11 months into my job and they started the redundancy
Was offered £0 package as they didn't legally needed too, but they let me reapply, but still =[
 
@Danack I'm not saying the code doesn't work, it's PhpStorm that is coming up with the notice.
 
@Fabien November, a month of redundancy :D
 
3:09 PM
@webarto I can't hire you any more :( We're in the same boat.
heh
 
We're poor again.
AGAIN.
 
Merry Christmas! You're redundant.
6
 
D;
 
I still have my PHP.
 
That's a pretty awesome way of looking at it Webarto =)
 
3:11 PM
< Price for this bitch code monkey just went up.
 
@ircmaxell "The uploader has not made this video available in your country." racist!
 
Look, it's @ircmaxell's current former company logo :D
 
> De gebruiker die de video heeft geüpload, heeft deze video niet beschikbaar gemaakt in jouw land.
 
@MackieeE Kinda sucky of them
 
3:13 PM
Not available here
 
Do you even proxy, bro?
 
@Fabien How many others in the company are leaving? A rather large culling or?
 
I'm not interested enough to go through the effort of googling "online proxy"
 
Nope. I'll just add it to the list of never visit again
 
You shall always have a proxy.
 
3:14 PM
@MackieeE Company was only 6 people big. it's just me.
 
Ahh..
I see.. :/
 
I was the only person who worked solely on 3rd party stuff.
 
@webarto current :-P for now
 
That's less of a surprise I guess then :(
 
@ircmaxell Enjoy it, man :P
The feeling when you've downloaded wrong season of Breaking Bad through neighbors connection.
 
3:16 PM
@Fabien Good luck in finding something new bra, Surely getting out of Southampton is the first idea .. :P
@Fabien Oxford is full of silly Oxford Start ups ;)!
 
@Fabien Similar here, my job position was redundant from the start. In 2011 I worked as facebook hax0r and when they slowed down with that (changed objectives) I saw what's coming.
 
@MackieeE Tied to southampton, wife, cat and a basketball team.
 
Ah the Cat.
 
But I got another job in like 3 days (Site5 one). I'm 7 days deep now, and I'm worried a bit.
 
@webarto Yeah, kinda sucks :(
 
3:18 PM
0
A: Closures with PHP

scastielA colleague found the answer to the problem: the responsible is eAccelerator! Apparently it's not compatible with PHP 5.3 closures... (source) Disabling it solved the problem. Thanks for your help!

there's the answer :)
 
@webarto Worked at Facebook previously? :o
 
Nah, nah, worked on everything facebook related.
Thousands of websites, all needed pages, scheduled posts, etc.
Got job offer from Facebook tho.
 
So we're starting Room 11 inc?
 
:D Would be cool, although it would be like: C (Required) PHP (Desirable, Actually - No.)
 
That wouldn't work well, just look at internals list :D
You need opposite of yourself.
Re: facebook, I think they mostly hire on strong recommendation and college rating.
Or if you're 1337 m0f0.
 
3:23 PM
 
College Rating.. err.. :|
Well, let's move away from that part
 
@ircmaxell err wud?
 
@MackieeE You think everyone at fb knows shit?
 
BOT
From and sig don't match for starters.
But I guess fb can haz spam on careers.
 
3:25 PM
@webarto Oh no, I was reflecting on myself ;) I don't have a jaw-dropping educational background
 
For me, a degree means that I won't necessarily come to your country and steal for living.
It's not MIT (or other fancy college), I can hardly learn anything job specific.
+ everyone has a college these days :P
 
True, but it's the select few that turns heads before experience ;]
 
Re: careers, 0 replies in 7 days...
 
@webarto Daniel Doody xD
 
@Jack oooh.. nice to know. ^_^
 
3:33 PM
which is the best approach to logout from social networks from my app. I mean, in my website I provide the option to login with Google/Facebook. Which is the best approach to logout, I mean, should I revoke the access to facebook, and delete the user register from my DB?
 
There is no best approach, I know that much.
 
which one is most used?
 
Ask a question on main site, even tho it doesn't belong here (on SO).
 
should I just remove the user's cookie and keep the data in DB?
 
Sorry, I'm out-of-date on that.
 
3:36 PM
logout usually involves deleting a cookie, unless removal is required.
i.e. removal of the user data.
this typically means the user starts a fresh session with your site.
 
@Jack when you say removal of user data, you say.. the session/cookie stuff, not the user register data.
 
dunno, what did you mean by "delete the user register from my db"?
 
name, email, stuff.
 
well, should that be removed? do you want the user to come back at one point and resume with whatever they left behind?
 
@rogcg Why do you store that data when people are signing in using a 3rd party service?
 
3:39 PM
Maybe he's storing session data in a DB...
 
no.. session isnt in db
I save that data, just to keep records of my users, like email, in case I need it.
 
well then, if you don't want to remove the email ... don't remove the email :)
 
so I keep this data on DB, and next time I login on facebook/google, I retrieve the FB user id and check for the one that exists with that ID, and update the needed tokens.
 
that seems legit.
 
3:42 PM
great! thanks for clarifying it for me! =)
 
Photo on CV, yay or nay?
 
@PeeHaa Companies are people too :P
 
In my case nay @Fabien ;-)
 
@Fabien Very Nay in the UK.
 
@Fabien Are you a hot chick? Yes => yay, No => nay.
 
3:43 PM
@Fabien Nay, lots of place you can be found.
It's superfluous like your skills :P
 
it tears out my hair when I find out in countries like Asia it's defacto that they put pictures on CVs
 
My f* life can't fit on one page... so just write basics, if that doesn't work, you're better off them...
 
so.. open to discrimination
 
@PeeHaa That facebook support is included is the most scaring…
 
@bwoebi heheheheheh @lusitanian did the initial FB implementation ;)
 
3:45 PM
@MackieeE I use that to double check I have the right person in front of me =D
 
@PeeHaa it's unlikely it'll ever change, but why hardcode this: github.com/Lusitanian/PHPoAuthLib/blob/master/src/OAuth/OAuth2/…
 
@webarto Ease of use. And every (stable) API version will keep the same URI
 
@Jack Haha, that's weak :P
 
If the URI changes the version will most likely change of the service. Hence we will need a new service class either way
 
Yeah, it's legit, just asking.
 
3:48 PM
@webarto If you implement something sanely when dealing with facebook, you must be insane.
 
@PeeHaa k
 
hehehehhe oh noes. The kid entered the room :)
Soooo how college life?
 
@MackieeE I should say that seeing a pretty girl's picture on their CV influenced the picking process in such a way that I was always disappointed at their skill set :)
 
lol i'm not in college yet
just applying
and yeah the Facebook API is beyond frighitening
 
Ow ok. So I don't have to ask whether you banged some college chicks yet?
:P
 
3:50 PM
(comment withheld because public room)
 
:D
 
@Lusitanian Nods in approval ;)
 
But.... how's life dawg?
 
pretty good, pretty good
ready to be less busy
how's work treating you
 
@SweetieBelle The perfect question for you :)
 
3:52 PM
@Jack Haha, well I'm a bit of a brick wall on the subject so
 
@bwoebi I just can't figure their philosophy on these things :)
 
3 hours ago, by PeeHaa
I now am enjoying my first day off in 1 1/2 year
 
@PeeHaa presumably you plan to celebrate by getting drunk?
 
nice!
 
:D
 
3:53 PM
@Jack But I do believe a gentleman such as yourself is good at making those decisions; although a salesman in a logistics company going through a mid-life crisis probably won't think the same way ;)
 
@PeeHaa do weekends count as days off?
 
Watch out not to become redundant on your little PTO :P
 
also we're above 20k downloads now :O
 
Pic removed.
CV 5% uglier for it.
 
@salathe As my boss likes to call them. holidays... :P
@Lusitanian Yes we are totally awesome!
 
3:53 PM
@Fabien Post here so we can laugh review.
 
@MackieeE Aren't you a little young to be having a mid-life crisis?
 
@PeeHaa @Lusitanian is awesome, don't know about you. :P
 
@webarto maybe... maybe not :p
 
hahah :D
.. Help me :(
 
@salathe Well you somewhat know me so you do know I am not :D
 
3:54 PM
@PeeHaa I've been letting you do most of the work for the past month or so and I'm taking credit for it am I american yet
 
@Lusitanian lol
 
also we should write documentation
at some point
within the next 100 years
 
You forgot to invade my country to finish it off :D
 
Ahhh I'll get on that!
 
code == documentation
 
3:55 PM
@Lusitanian Yeah ow joy. docs....
 
In fact, documentation should be an anti-pattern =p
 
55 more days
> 1285 days, 1282 consecutive
 
BTW @Lusitanian I'm currently trying to write an oauth provider lib. I now have a pretty good understanding why every implementation is fucked up :|
 
@ircmaxell :D
 
@Jack at least enumerating what type which arg is etc. is an antipattern. (that phpdoc block with the @'s)
 
3:57 PM
@PeeHaa I saw that on my github feed. It looks rough. I can provide pull requests moral support laughter.
 
:P
 
@ircmaxell We're going to have to get you drunk enough to miss an entire day of SO.
 
@PeeHaa There's, IIRC, a really horrible implementation written for Symfony somewhere
 
Yes. Please fill the guy up so he stops posting that stuff
:P
 
@bwoebi It helps my editor, though :)
 
3:58 PM
@salathe been there, done that
 
@Jack use a dumber editor (lol.)
 
not in the last 1,282 days!
 
@bwoebi NEVER
 
@salathe maybe, maybe not
 
3:59 PM
I'm going to go with "maybe" :)
 
@Jack In what way does that help your editor?
 
@bwoebi Oh, it would warn me about passing wrong types to a function / method.
 
@Lusitanian Interesting, but only oauth2?
 
@Jack well, if you have a better function API than e.g. PHP's string lib, then you won't do that error: ergo you don't need that feature.
 
Also mongo and god might now what else is in there
 
4:02 PM
@PeeHaa there's an oauth1 one too, hold on
 
@webarto Where's your CV again? :)
 
@bwoebi ehm, not sure what you mean by that.
I'd like you to think that I never make mistakes, of course :)
 
@Jack I really hardly ever need that for functions I defined myself. I mostly need it for in_array, strpos and such…
 
@Lusitanian That one looks rather messy. Can't really blame them though
 
4:05 PM
@bwoebi parameter order is one thing ... types is another.
 
@PeeHaa I do. OAuth is a very well thought out, well documented, unambiguous, simple, powerful and flexible protocol.
 
e.g. I could be passing a string whereas I should have passed an object.
 
@Lusitanian Ah you have oauth stocks :P
 
@Jack Types… well, you notice it instantly by the error message…
 
@PeeHaa duh
 
4:06 PM
Is it possible with php to create youtube to mp3 script?
 
@Jack a good editor should see the typehints in the args…? no need for the phpdoc
 
@bwoebi it would.
not saying all my functions have it, but some do because I want to type hint the return value.
 
the editor also sees what you return…
 
it's not always obvious.
 
4:08 PM
@Jack if you write return new $arg; then okay…
 
sure ... interfaces fail in that respect.
 
@Fabien Not by any standard, but I'll go with it :) webarto.com/dm@php.net.pdf
 
Need to steal the good bits ;)
You should put phpdbg on here btw.
 
love those icons <3
 
@Fabien I'm putting that on zee website, will add when phpdbg.com is v1, also I have lots of other "projects" that need to be done so I can put them there.
IMHO, don't put too much in CV, keep one-two page.
I added "recommendations" because I feel they're strong, left out of few as well as few jobs.
I can borrow you the fonts :P
 
4:20 PM
yeah two pages is enough for me.
 
This would be my first CV.
 
@webarto website needs more purple!
 
@salathe when I add more purple to website I suddenly have urge to do this.
"Improving" phpdbg.com with more purple soon.
 
strange ... why is CURLOPT_PRIVATE not defined in the manual for curl_setopt()?
 
Because it's private? :P
 
4:29 PM
Evening folks
 
s/Evening/morning/
 
morning bot Madara
 
שָׁלוֹם
 
@Lusitanian אהלן :)
With Nikkud too :P
 
@Jack small changes like this often get missed, thanks for volunteering to document it. :)
 
4:29 PM
@Jack s/UGT/local timezone/
 
@bwoebi E_NOOP :)
@salathe hehe .. after I'm done with a few other things.
 
@salathe BOOM
:D
 
@MadaraUchiha :P yep
trying to remember all that hebrew instruction I received between the ages of like 8 and 12
 
א
 
@Lusitanian Committing to HLU?
 
4:33 PM
@MadaraUchiha Not sure if I know enough :P
 
@Lusitanian א ב ג ד ה ו ז ח ט י כ ל מ נ ס ע פ צ ק ר ש ת
 
I could ask questions I suppose
 
@webarto ^
:P
 
@MadaraUchiha A B C D E F G...
 
More like A B G D H O Z...
 
Good Lawd!
 
@DarkAshelin That's unlikely to produce any results :)
 
Hey again, I watched that video but didn't really understand lol
 
4:37 PM
So that DI injection is not really an injection like sql injection XSS etc
it's way of programming ?
 
is it?
 
DI (Dependency Injection) is a good thing
 
when u said DI, i thought it was like XSS etc lol
 
Well, the permise is that you don't create stuff in your constructors, you ask for them.
 
4:38 PM
Oh
 
I guess this guy localhost.re got a pretty big check, no updates :)
Kudos.
 
ask stuff in constructors meaning something like.. __construct($registery) { $this->bla = $registery->getsomething(); } ?
 
@DarkAshelin so you've implemented web-frontend for mysql client history? :p
 
Added the code as an answer just below. — Nquilty1801 29 mins ago
E_I_GIVE_UP
 
4:46 PM
@JonyKale No
 
@Lusitanian @PeeHaa ^
:D
 
@webarto no. call github.
 
It means you ask for that "something" directly, and not via a registry
 
@vascowhite Why? It's the way Stackoverflow blog forum works :P
 
@webarto It can't be that hard to understand can it? His code is beyond saving anyway.
 
4:51 PM
Lemme give you an example
 
j/k
 
You obviously don't understand what you are doing and you need to learn how to program. I can't teach you, so I'm sorry, but I can't help anymore. — vascowhite 15 secs ago
 
class User {
    public function __construct() {
        try {
            $this->pdo = new PDO("...", "user", "pass");
            $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        }
        catch (PDOException $e) {
            //Do nothing
        }
    }

    public function fetch() {
        $id = $_POST["id"];
        //Use PDO to fetch user details.
    }
}
There are inherent problems with that.
What if I don't want to do "nothing" when a PDO connection fails?
What if I want to do different things under different circumstances?
What if I don't have a $_POST["id"]?
A better solution would be
class User {
    public function __construct(PDO $pdo) {
        $this->pdo = $pdo;
    }

    public function fetch($id) {
        //Use PDO to fetch user details.
    }
}
Now, the User doesn't care where the PDO object came from. It just stated that it needs it in order to work.
You won't be able to use a User without first having a PDO instance initiated and ready to be passed in
Same with the fetch method.
Now, the User doesn't care where the user's ID came from. It could be from a file, from the user, from console input, it just needs the user ID.
See the difference @JonyKale?
 
I am back
Going to read, second.
Do I really need to declare the object name before the variable
PDO $pdo
Cause in namespacing, when I do Registery $registery
i get an error, idk why
i forgot the error though
 
4:58 PM
So yeah you brought up this yesterday
 
Well, when using a namespace, you need to either use the use keyword, or specify a fully qualified class name.
 
	class Route {

		private $registery;

		public function __construct($registery) {
			$this->registery = $registery;
		}

		public function load() {
			$controller = null;
			if (!isset($registery->get['s'])) {
				$controller = new indexController($this->registery);
			}
			else {
				switch ($registery->get['s']) {
					case 'web':
						$controller = new webController($this->registery);
						break;
				}
			}
			$controller->draw();
		}

	}
Whats wrong with it?
 
Your Route doesn't need a registry.
 
What is registery's job?
 
It needs whatever $registry->get['s'] is, and it needs an $indexController, etc
Registry hides dependencies
 
4:59 PM
get[] holds all GET methods
post[] holds all POST methods on my script
 
It makes it so that the method tells it only needs a registry to work
But unless your registry has ->get['s'], your method will fail.
 
@webarto That should have been protected, not deleted. It is soooo useful.
 
Silently too
 
question; do you need a registery with a factory pattern?
 
Registry is considered an anti pattern.
i.e. not a good pattern.
 
5:01 PM
I can't wait until I've got 10k rep, there must be thousands of hilarious deleted questions.
 
I wouldn't recommend you using a registry at all.
Can you make me a room owner?
 
Ah
So I've made my bootstrap 50% so far, and im not sure how to build the 'body' of the script
 
(Click on my image, and "Add as room owner")
 
what will be the main class? for my script, currently the main class is the Registery
should Factory be the main class?
 
Mainly the reason I "upgraded" to 10, oh, the joy :)
 
5:03 PM
56 messages moved from Room for Jony Kale and Madara Uchiha
 
@vascowhite The difficulty is finding them :)
 
@MadaraUchiha can you teach me something too?
 
@webarto I can teach you jQuery
Or Go, Go works too
 
golang ftw
 
No, not golang :P
Go ( , , , , common meaning: "encircling game") is a board game for two players that originated in China more than 2,500 years ago. The game is noted for being rich in strategy despite its relatively simple rules. The two players alternately place black and white playing pieces, called "stones", on the vacant intersections (called "points") of a grid of 19×19 lines (beginners often play on smaller 9×9 and 13×13 boards). The object of the game is to use one's stones to surround a larger total area of the board than the opponent. Once placed on the board, stones may not be moved, bu...
Speaking of which
@Fabien @AlmaDo would you like a match?
@Qǝuoɯᴉs I'd expect your profile picture to be reversed as well
 
5:14 PM
@MadaraUchiha Remember the request class you showed?
 
@JonyKale Yes
 
You have a property url, but you're never using it
why?
 
@JonyKale It's used in the route
But yes, I did forget to add the method to get it
 
ah
but what is it used for? to check if the request was XMLHttpRequest?
the request_method, etc
 
@JonyKale No, it hold the URL of the request
i.e. http://chat.stackoverflow.com/rooms/11/php
 
5:17 PM
how about request_method?
 
@MadaraUchiha Sorry can't ATM updating CV / applying for jobs :(
 
@Fabien Sure thing
@JonyKale GET or POST
could be PUT or DELETE as well
 
Ah okay
could be XMLHttpRequest?
 
@MadaraUchiha In factories as u showed, $user = $factory->create('user'); how am I supposed to use the user's constructor?
Like pass data
 
5:29 PM
I have a php page displaying various, dynamically loaded content. What content that is shown is depending on what parameters is parsed through the URL.
How do I make it so that the url, for when I.e. someone shares the link on facebook, shows the correct title corresponding to the content?

When you paste a link anywhere on sites like facebook, a quick preview is shown with the pages' titles. Since the site is dynamic I want the title to be corresponding to that. How do I do so?

If you want an example, check out http://9gag.com/gag/aKz6Ndg
 
@Fabien GOOD LAWD I'm against 1k with 9 handi D:
 
@MadaraUchiha Best of luck but connect your stones! :p
Also look out for 3x3
 
I'll save the SGF for you later :P
 
5:49 PM
@Fabien I don't understand what he's trying to do :|
His play is so heavy
 
@MadaraUchiha Do you believe the thick group is dead?
 
@Fabien I do, can he make two eyes there?
 
@MadaraUchiha Aji = weakness. You have too much aji on the groups surrounding it.
 
Hello, any thoughs why am I getting this error when trying to hash my password.
Call to undefined function password_hash()
$password_rdy = password_hash("$passwordfix", PASSWORD_DEFAULT);
 
@Arto PHP version needs to be 5.5 or higher
 
5:59 PM
@MadaraUchiha oh, didn't even notice that I was using old revision. Thanks!
 

« first day (1129 days earlier)      last day (3825 days later) »