« first day (2679 days earlier)      last day (2284 days later) » 

12:16 AM
Shooting a Tesla into orbit: A slap in the face to real science http://ow.ly/YFTW30inNht
Tru journalism
 
Wes
that's so stupid
 
Musk's success is almost fully largely because of his investors, who invest mostly because of hype regarding his projects.
I think that shooting a Tesla into orbit was in a way an investment
 
Wes
there's no better ad for tesla and spacex than that. absolutely nailed
 
Wes
12:55 AM
ok, i could come up with a design that doesn't need a million classes
it still sucks, but less
 
 
1 hour later…
 
3 hours later…
4:59 AM
morning
 
 
1 hour later…
6:05 AM
@Leigh ok :-) thx
 
7:04 AM
Guys, is this definition right for "Polymorphism"? "as far as I know in the Laravel, when you write some database relations in the model (instead of using JOIN in the query)", it's called Polymorphism"
Based on the google, definition above isn't right. But that's what I understand from Laravel doc
 
@Shafizadeh laravel is wrong
 
morning
 
@Shafizadeh don't read laravel doc to learn.
 
@Gordon ok, which part of this is "Polymorphism" ?
@Linus ok :-)
 
@Shafizadeh the objects implementing the interface
In programming languages and type theory, polymorphism (from Greek πολύς, polys, "many, much" and μορφή, morphē, "form, shape") is the provision of a single interface to entities of different types. A polymorphic type is one whose operations can also be applied to values of some other type, or types. There are several fundamentally different kinds of polymorphism: Ad hoc polymorphism: when a function denotes different and potentially heterogeneous implementations depending on a limited range of individually specified types and combinations. Ad hoc polymorphism is supported in many languages using...
 
7:22 AM
@Gordon got it
Ok, one thing @tereško, Currently git is installed on my server and I pull the new version of my project from bitbacket simply by using git pull origin master command. IIRC, you told me I have to install gitkraken and use gitlab. Can you please tell me why should I use them?
 
@Shafizadeh if you know how to use the git CLI, you dont need git kraken and unless you want to host your own git repos, you dont need git lab either
 
7:38 AM
@Gordon I can obviate my needs using command line interface. So yes, I think I don't need to git kraken. But no, I cannot make my own git repos, that's why I use bitbacket. So don't I need git lab either?
 
@Shafizadeh Actually, it's the calculateArea not caring which Shape it's calling ->getArea() on.
 
@Shafizadeh you dont need git lab
 
It only cares that it's a shape, and all shapes have getArea, it doesn't care about the how, only about the what
 
@MadaraUchiha I see
@Gordon ok thx :-)
 
8:00 AM
SOS any call for help: We sent out an SOS for more typists.
 
8:15 AM
!!dad
 
I have a polish friend who is a roadie for a band I have a Czech one two, Czech one too, one too
 
8:26 AM
mornin
 
Shit so many @s
@Alesana Hey dude, trivago are hiring. Join up on the talent community :) I haven't done this yet so I don't actually know how it works fully with our processes yet, but I know that's your first step
 
@Jimbo "talent community"
last time you pointed someone at that you couldnt answer the most basic questions around it
and then someone tried to use it and it was a pita
shots fired :)
 
Fuck my help then
And that was only because @Leigh is argumentative by default
 
@Gordon does "shots" mean "images" ?
 
!!urban shots fired
 
8:39 AM
Shots Fired
 
[ Shots Fired ] (Interjection) - A reply given directly after a person gives a witty remark or serious [burn].
 
> In English speaking cultures, it's a phrase meaning someone said something confrontational -- that person is picking a fight.
!!urban gordon
 
[ gordon ] A great friend. Always trying to make you laugh. Makes you sad when hes sad. makes you happy when youre happy. He's like a drug you cant get enough of. you will never forget him no matter how much you try. You miss him right after you saw him. He makes the girls go crazy. Easy to fall in love with. A best friend. Someone you dont want out of your life. Really cute and athletic. smart. funny. and a sweetheart.
 
damn right
 
Ah crap, I need to write a script to fix that
 
8:40 AM
and dont urban jimbo
 
:D
 
!!urban Shafizadeh
 
[ jimbo ] 1) Regurgitated cum bubble that is generally blown through a male's nasal passages. 2) Refers to an unintelligent, moronic neanderthal that finds humor in himself when others do not. 3) A male or female who receives great levels of gratification from touching "tra-la-las"
[ shafizadeh ] A sweet, innocent, and good-natured middle-aged woman who is married with two or more children.
 
now google all the words you dont know and realize you should have listened to me
 
Wes
8:42 AM
adsl is not working today
 
@Wes you're talking about the Internet Connection Service?
You know, that's what "ADSL" means in our country ^
 
sigh
morning
 
Wes
no i am talking about the sexually transmissible disease, ADSL
you'll need to survive without me today, i know i'll be missed
... :B
 
8:58 AM
o/
\o
 
Wes
some people are like naturally unpleasant... i'm trying to break through a person for months. i'm not sure if he's putting up a defense mechanism or he is fundamentally bad at relating with other people, but i've reached the point where i don't give a damn anymore. i spent like days talking with one of his managers so that i could write an analysis on what is to be done for a possible work, i sent it to him, he replied "i'm not interested in documents, i want results". go fuck yourself -__-
 
morning
 
Wes
seems an ok guy... but maybe that's just the facebook version of him
 
@Shafizadeh I told you to use gitkraken for the GUI and I recommended GitLab for self-hosted repositories or as an alternative for 3rd party hosting of private repositories
 
Wes
ping - adsl surprisingly still working
 
9:09 AM
@tereško yes I remember it now. I was trying to have my own hosting system and I don't want it anymore :-)
 
where is @Wes? I miss him.
 
@tereško noted that I installed gitkraken and I'm playing with it right now .. seems good. You can merge commits simply by drag-and-drop them into each other
 
@Jimbo No I'm not!
 
@Gordon :D
 
@Jimbo Awesome that's good to hear! Yeah I signed up for the talent community, I stopped at the part where it asked how I heard about Trivago. I'll finish filling it out tomorrow though!
 
Wes
9:11 AM
or maybe i'm just terrible with people. which could easily be
 
@Ekin Sighing so early, and nobody asked you what's up. What's up?
@Alesana Tell them Jimbo has been grooming you
 
:B
 
Wes
@Leigh she probably was facepalming because adsl
 
@tereško do you use gitkrakebn or command line?
 
Wes
:B i facepalmed too
 
9:15 AM
@Wes I have a similar person here right now... I have a meeting about him tomorrow with some higher ups. QA that after 4 months still can't do better than "It's not working". I actually have a copy paste response for him now where I ask for server, branch, reproduction steps, etc.
 
both, each for a different task
 
@Wes He's a manager, and he says all he cares about is results?
 
@tereško what task is hard for you to write its command and you should use gitkraken for that?
 
@Leigh just a terribad day at this terribad work. Also yeah adsl there made me facepalm
 
gitkraken is where I get my gitcoins right?
 
9:16 AM
actually s/day/month
 
@Ekin aw, I hear ya, I had a crappy day yesterday, today will be better. Chin up :)
 
and well, s/work/world/
 
@Leigh you mean "bitcoins" ?
 
mooooooooooooooooooooooooin
 
@Shafizadeh No
It was a play on words
 
9:17 AM
@Leigh then I don't know what's "gitcoins". google translate says it's a wrong word
@Leigh ah I see
 
I actually stole it from a security CTF from a few years back, the idea was to brute force a git commit hash lower than the previous one
 
@DaveRandom moin, what about your accident? is everything ok now? could you take your money back from insurance office?
 
@Shafizadeh I use gitkraken for making commits, managing branches and solving merge-conflicts. I use command line, when diagnosing problems and doing repository manipulations ... or if I am working remotely
 
@Leigh interesting
 
Wes
he's the owner of this company that makes/imports CNC and 3d printers, the manager is a guy i know and that is helping me
 
9:19 AM
@Leigh fingers crossed. On the bright side, lead didn't come to work today and so I can use his razer blackwidow (yay)
 
@tereško ah I see
 
@Shafizadeh I am currently driving one of these as a courtesy car until the insurance gets sorted out
 
clicky clicky. I have an older razor at home
 
it's an automatic gearbox and I hate it, which is probably the most epicly 1st world problem I have ever had
 
Wes
@Leigh i did a lot of work i did for free, it's 20 pages, plus the hours spent on phone and reading email
 
9:20 AM
@DaveRandom good car :) .. also is there any alternative for "sorted out" ?
 
@Wes Oh that makes more sense
 
Wes
since the beginning i'm getting shit by this guy
 
@Shafizadeh "the process is completed" I guess
 
I see, ok
 
basically there is a ton of paperwork to do
 
9:21 AM
Yea you need to discuss it with someone who can actually make a difference, sounds like you've gone to unreasonable lengths to try and make it work
 
thankfully almost none of it is for me to do
 
@DaveRandom Did anyone get hurt? I missed the whole accident thing :P
 
I got two scuffed knuckles from the airbag, that's it
 
Oh fuck
 
that merc is not nice to look at ...
 
9:23 AM
I'm going to try and get a VW or something
I look very out of place in Merc/BMW
 
what's your job? @DaveRandom (not sure this question is polite enough in your culture, so please excuse me if it is rude)
 
I look like a stereotypical drug dealer
 
bmw was nice, I liked that ... I don't like big mercs, they all look strange ...
 
Hopefully it wasn't your fault and the insurance pays for it. Well, I don't know how insurances work in the UK but I assume it's similar to the states :P
 
@Shafizadeh hard to define tbh. Official job title is "Developer" but in reality I am more like CTO, but for a company who don't really need a CTO
 
9:25 AM
scirocco is very pretty, not drug dealery at all ...
 
!!urban tbh
 
[ tbh ] to be honest
 
ah @DaveRandom .. good
 
@Alesana yeh the other guy admitted fault immediately, he just didn't stop at a junction and I went straight into the side of him, nothing I could do to avoid it really. Luckily it was only about 25mph
 
morns o/
 
9:26 AM
@JoeWatkins I would like a phaeton but that's probably unrealistic
 
dunno, I could do with something a bit more practical than the BM was
 
Looks a lot faster than that. I'm glad nobody got hurt too bad. Side note looks like you're about to shoot some hoops from your shadow :P
 
they have a certain presence about them too ...
 
It's a car designed for transporting people, but as soon as you need to move a thing that is bigger than a person you are screwed
 
9:28 AM
I think you might have to be old to drive one of those though...
 
@Alesana yeh, modern cars are basically designed to disintegrate in a collision, but that's the exact reason that there were no serious injuries
 
one question @DaveRandom, how much is the price of a shoes (on average) and how much is the salary of a senior developer in your country?
 
I guess shoes are more expensive in Iran because you throw them at people more often
 
@Leigh throwing shoes at people? Why the hell should we do that?
 
There are some incidents where throwing a shoe at someone might be necessary.
 
9:33 AM
> 23 October 2009: Supporters of Iranian president Mahmoud Ahmadinejad threw their shoes at opposition leader Mehdi Karroubi as he visited Tehran during the 2009 Iranian election protests. A fight broke out between supporters of Ahmadinejad and Karroubi and one of the Ahmadinejad supporters threw a shoe at Karroubi, which hit him in the face and resulted in his turban falling off.
 
wasn't that guy who threw a shoe at Bush Iranian as well?
 
He was from Iraq I think
 
@Shafizadeh I have no idea about shoes, I buy shoes as cheap as I possibly can.
 
@Shafizadeh Salary depends on location, and "Senior" is not well defined.
 
also note that my car is a company car, I cannot afford to buy cars like that :-P
 
9:35 AM
@DaveRandom nope, they were not the same guys
 
If I could afford to spend ~£30k on a car, I probably would not spend it on car
 
@Leigh all I want to know, is a developer has a better life in Iran or a European country...
 
Poorer part of the country where "senior" means you've been there a few years regardless of talent, maybe £30k. London where you're actually good at your job, £70-80k
But they're two completely different ends of the spectrum
 
@Leigh eh, in Manchester "senior" means something as well
 
£ is dollar or euro?
 
9:37 AM
Neither..
 
what's that then?
 
£ = GBP = Great British Pounds
 
ah
lemme to do some converts ...
 
they aren't that Great, ftr
 
Better than Deutschmarks
 
9:40 AM
@Leigh ok, I got the salary of a developer in there. Now I need to know the price of daily things in there. how much is a cup of coffee?
 
Where I work, free :D
 
:-)
 
From starbucks, it's roughly the same as the GDP of a small African nation
 
at the store?
 
There you go, pick some cities
 
9:41 AM
@Leigh good website, thx
 
@Shafizadeh Brexit Dollars. in two years time, they will be as meaningless as deutschmarks nowadays
 
oh guys, you use really hard English words .. I give up really. Even google doesn't know the meaning of Brexit in Persian
 
wow
Brexit means British exit as in British exiting European Union(EU)
@Shafizadeh ^
 
Ah I see, thank you
 
aka the collective suicide of an entire nation's economy
 
9:44 AM
!!urban aka
 
@Shafizadeh The UK is leaving the EU (I recommend not attempting to understand this, it's not really possible).
 
[ aka ] It's a short hand way and abreviation to say "Also Known As"
 
@DaveRandom :-)
 
@Gordon But blue passports!!!11one#
 
@DaveRandom and sovereignity. dont forget sovereignity!!
 
9:47 AM
one question @tereško, do you remember what's "single point of entry" ? (you already suggested me to do that)
 
yes
 
ok I remember it too
my question is
currently the document root of my server is /var/www/html
and everything into html directory is accessible through the browser
and I should not put important things in html directory
I have to make a bootstrap.php file which requires index.php file of my project (my project should be out of html directory)
that's right?
 
almost
the index.php file should be what's requiring the bootstrap, since your webserver will already use index.php as "default"
 
yes,
 
@Shafizadeh you can try looking at this example: github.com/teresko/blank
but for now it lacks README.md file, so ... no documentation for now
 
9:52 AM
document root is the "public" directory?
 
in that repo - yes
 
ok, got it
 
to run it with php built in server, you can do it by calling:
php -S localhost:8000 ./public/built-in.php
(that's also why there are two php files in the /public)
 
my problem is I don't know the concept of "built in"
 
since version 5.4, PHP comes with a in built server, which lets you run some of the code in the development environment
 
9:58 AM
nice .. but still I don't understand what's the benefit? When is it useful?
 
when you do not have apache installed, but you need to test out your PHP code in a browser
 
@tereško also I guess this is wrong. because a server needs to have resources (hadrware)
@tereško ah I see
@tereško is the port of php server 8000?
 
You can specify the port
Regardless, try running it. It says "running on port XXX"
 
you can choose any port (above 1024, as non-root) to run it on
 
@Jimbo yes generally, but I think the default is 8000
 
10:00 AM
8000 is just a tradition (since real webserver runs on 80)
 
ah, got it
 
Also, some are 8080 ;)
 
does the php server use something like VMware for its server?
 
user image
4
 
Depends on the way you installed the stack, in a normal modern stack (Nginx and php-fpm), PHP binds a unix socket, and Nginx binds port 80, and forwards to the unix socket.
A unix socket is a file on the computer that can for most intents and purposes be considered a normal port, although they are not normally accessible outside of the machine. Useful if you have several services on the same machine, and don't want to worry about port 8000 or 8080 or 8081 or whatever being taken/having to remember them.
 
10:10 AM
@Shafizadeh no
 
ok, lemme ask it this way: is the PHP server installed in which layer? on the physical layer or my OS?
 
the "php built-in server" is just an application that is listening on the assigned port
 
@Shafizadeh Ah, you mean the PHP built-in server.
 
ah, and that application has whatever a php script needs to be execute ?
 
@Shafizadeh Think about what a PHP server does
You give it a directory, and it listens to a port, and when given a request to /some/path/to/file.php, it searches the directory for that exact file, and executes it, returning the result.
 
10:16 AM
@DaveRandom wat
 
If it's not a PHP file, the file is returned as is.
Writing a server like that is relatively simple, and that's what the PHP built-in server is.
 
sorry, apparently I'm not in a helpful mood atm
 
ok, I got it all .. thank you.
 
Nginx is a more robust and complete version of that, capable of doing more things, in addition to executing PHP files.
 
!!urban atm
 
10:17 AM
[ ATM ] At the moment.
 
!!urban MVC
 
[ MVC ] The widely used acronym for 'Marvel vs. Capcom' which is a 2d arcade fighting game. Numerics can also be added to designate the series of Marvel vs. Capcom games such as MVC1 and MVC2.
 
about right
 
@Gordon I remember from our discussion that you don't really care about it
No passion left
Dead inside Gordon, dead socks.
 
@Jimbo I prefer "jaded"
 
10:20 AM
what database does Jeeves use?
 
@Shafizadeh the internet
 
the whole internet or wikipedia?
 
@Shafizadeh depends on the command
it has an internal db for some things as well iirc
 
but for urban it will just query urban dictionary
 
10:22 AM
who has written that bot? is it developable?
 
all of us did to some degree
 
@Gordon is it written with PHP?
 
short question:
will this send iteself or a new itself?
return self::$instance = new self();
return self::$instance = (new self());
 
@DejanMarjanovic I can arrange for someone to do a walkthrough if you want
 
10:24 AM
That will always create a new instance
 
@Gordon oh ..! I thought it is a pre-made bot. anyway, apparently you guys have lots of free time to spend for this things .. good for you
 
but stop using singletons
it's 2018 ffs
 
!!urban ffs
 
[ FFS ] Acronym for, for fuck's sake.
 
305
A: Is there a use-case for singletons with database access in PHP?

GordonSingletons have very little - if not to say no - use in PHP. In languages where objects live in shared memory, Singletons can be used to keep memory usage low. Instead of creating two objects, you reference an existing instance from the globally shared application memory. In PHP there is no such...

 
10:25 AM
you meant "for fuck's sake" ?
 
yes
 
@DaveRandom ok
 
yeah it will create a mew self but will the return be 2 different objects one inside self::$instance and one the return or will they be the same?
 
@NoelSchenk stop using singletons
 
what he said ^
but from a theoretical PoV...
it will always return the new instance
any expression evaluates to the right-hand side of that expression
something like that is equivalent to:
self::$instance = new self();
return self::$instance;
The extra parens make no difference
 
10:28 AM
when you use an object instance twice, it's called singleton?
 
no
 
@Shafizadeh No, it's an anti-pattern where you store a single global instance of an object
They might make sense in certain very specific use cases, all of them related to legacy code, none of which exist in a typical PHP application. They are avoidable 100% of the time.
 
ah okay thank you ... was not shure cause it also could look like
self::$instance = new self();
return new self();
will now take a look at dependency injection
 
I go away for five minutes and upon my return you are selfing everywhere ... I'm leaving ...
 
I've found the perfect game for @tereško: pcbuildingsim.com
 
10:42 AM
\lol
 
@JoeWatkins can I ask you to check something for me? could you please try to compile the current master with clang? I was playing with it yesterday and it always failed. not sure if it is about my config but I don think so. In fact, I suspect I found a bug in PHP and another in clang.. hence, I'm looking for a confirmation :P
 
@pmmaga "failed"
did you get an asm goto error?
 
I can try, but it will take one year to download clang ...
 
@NikiC nop, it complained about __builtin_cpu_supports not knowing what ssse3 is
 
heh
 
10:48 AM
I know it used to work, and know that the patch containing ssse3 was merged the other day only ...
maybe try the latest version of clang ?
 
@pmmaga weird
 
Am I wrong when I say
(null !== $theme) ? $condtion = $theme : null;
(null !== $theme) ?: $condtion = $theme;
Is similar ?
 
yeah, I've no idea about clang really, but a quick search shows it should recognize them ...
and it not knowing what a flag is shouldn't stop a build whatever ...
seems like the point of the builtin ...
 
well, that's where the PHP bug comes in, if the check for ssse3 fails, it still tries to use php_base64_encode_ssse3 which will not be defined
 
don't seem to be able to reproduce with v4 of clang
are you using a v3 build ?
 
10:59 AM
i'm not on that machine at the moment. I'll try to check it in a bit
 

« first day (2679 days earlier)      last day (2284 days later) »