« first day (2687 days earlier)      last day (2267 days later) » 

I learned about this today: github.com/yarnpkg/yarn/issues/4147
basically, our CI pipeline is complaining about files being modified that aren't supposed to be modified. It has a point.
 
Wes
1:29 AM
pastebin.com/Jt86f9mb @PaulCrovella @FélixGagnon-Grenier game of thrones season 8 fan fiction (my, fan fiction) forgive the shitty english, do you like it? :B
 
@Wes lol. dat escalated in a sharp angle towards the end ;)
but yeah, cool.
 
Wes
lol which one?
 
such plot twists
 
Wes
lol
 
that Jon leaves without knowing part was cool. that's the kind of things we come to expect of that story.
 
Wes
1:37 AM
yeah
 
2:29 AM
@Wes could use... paragraphs
 
Wes
i've written it in one go
and didn't try to fix it :B
 
I'll not try to read it then
 
Wes
okay
 
2:48 AM
morning room.
 
3:36 AM
well that's fucked up. regexcrossword.com/playerpuzzles/5a8efa83d14d6 can only be completed in IE
 
 
2 hours later…
5:26 AM
hey , help with small modifications with this code : 3v4l.org/BaljB
 
At the very least you should be indenting your code o.o
 
@Alesana Is this fine : 3v4l.org/9XS2S
 
I don't think 3v4l.org will let you load outside websites
 
5:55 AM
this is the data , i am trying to parse : pastebin.com/raw/N6Wpdf3t
what i need to output is the <title> of the rss , if there is no * symbol present , an additional line showing upcoming match should be added
Ok , Solved myself
 
6:32 AM
'nin
 
o/
 
6:50 AM
o/
Friend had a guy do his website, guy says he "delivered" the website. I look at hosting/source code, it's an iframe pointing to the developer's site. Not fully transferred. sigh..
 
\o
@Darius That's some dedicated laziness
 
Worst part, I've seen it as a common thing to do by shady developers.
It's like.. the 8th website I've seen this done to.
 
But why? How hard is it to just transfer it over?
 
New client comes to me, says I want this and that change. I say ok lets take a look, what's your hosting. "What's hosting?" and so on.
It's not, it's just them being evil. Holding website hostage.
 
morning
 
7:01 AM
So they can request more after the client pays? There's got to be something I'm not understanding :P
 
Yes.
 
Ah that's shitty
Do you do freelance web design?
 
yup
 
I'm trying to get into it
 
It's not fun, stressful if your clients talk too much and they want a chat buddy instead of work relationship.
and payment issues from time to time. Even when there's contracts
 
7:03 AM
Ha I imagine that happens with a lot of freelance work
Do you have a suggestion for a simplistic CMS to let users access? Something that just lets them change text blocks, add images to a gallery, change specified images, etc...
 
Everyone here hates it, but wordpress gets the job done just fine.
 
It's just overkill for me
And I have a fear the client will think it's not a real website :P
 
I don't know of any others, haven't looked into it. That's why you educate them, show them pros and cons.
There's pros = cost, cons = functionality, speed, safety
but speed can be fixed with caching, functionality can be programmed if needed, but has to conform to the framework a bit, safety.. what website is 100% safe, just stay up to date and keep backups.
Pros, get an admin dashboard, save money not having to code stuff where plugins exist.
and best of all, they can manage it themselves (gasp) at a minimal level for text stuff.
 
I am thinking to be more botique from-scratch web design where all the functionality and everything is developed specifically to their needs
 
Then, get a higher paying client, design something reusable and a bit more robust, make sure you own the copyrights to the code, and reuse it for future clients at discount price.
I know a neighbor web firm around me that does just that.
 
7:07 AM
morning
 
I don't want to have clients going in installing plugins that break their website :P
 
Why not? Money for you.
They break it, they come back to you, rush job = 2x the pay
 
@Alesana in case you haven't seen it youtube.com/watch?v=jVkLVRt6c1U
 
or returning client = happy client = more referrals
 
Clients will come back to me either way if I do good unbreakable work :P
 
7:08 AM
Haha! I remember that video, loved it.
The con to your method is, they know they have limits, wordpress makes them think they have no limits. They break stuff, and you can say "fu you pay me" like the video Paul showed haha
 
@PaulCrovella I'll watch it now :B
 
and why would them breaking the site be your fault and damage your credibility?
They know damn well what they did, and that it's their fault. You're supposed to be their mesiah, making the world great again.
 
@Alesana everything is breakable
 
Like the moment they try to learn html and use a float and wonder why their stuff is all over the place hahaha
@Alesana would you take the blame that their float isn't behaving? lol
 
I can offer wordpress to the client and explain what it allows them to do, add pages, add plugins, add widgets, etc... but at the end of the day I think if a client goes to a web designer they don't want to have to do all that, they want to be able to tell me where things go and etc... I think they would prefer a simple interface where they could change the text of pages, change the contact information, add images to a gallery, simple things like that. Not things like changing the layout.
@Darius I would take the blame that I allowed them to add CSS rules such as float to their website without a proper assessment of their knowledge.
It really depends on what they want, whether they want a website or a theme
 
7:21 AM
Never had a client say they didn't want wordpress when pros and cons were explained, and cost differences explained.
Plus, the pro of knowing that it's somewhat standardized/documented, to the point that if you get hit by a bus, they could just replace you.
 
I think I'm going for a different niche then
 
It'll be tough. Good luck with that, not shaming your idea.
 
Of course I'll be able to reassess my strategy based off of how clients react
Thanks for the luck though I think I'll need it :B
 
Why would you want to deal with clients directly :P
 
7:48 AM
:P I imagine those are problems with all freelance work, I assume I wouldn't be so bad with the business side of things though. I am actually having a partner find clients and deal with clients, I do the web development work, he gets a cut.
 
8:00 AM
Rasputin any person who exercises great but insidious influence.
 
!!dad
 
What did the buffalo say to his son when he left for college? Bison
Use functions inside complex (curly) syntax – #75999
 
!!horoscope pisces
 
morin
 
8:10 AM
\o
 
@Gordon youtube.com/watch?v=PP9I6WRD4VI some aecht german music
 
@DejanMarjanovic ah, germany, the land of poets and thinkers.
 
mornin
 
How many Germans are there in this room btw?
usually
 
8:28 AM
depends on the scope, if you include Gastarbeiters or not
 
is there a website that'll generate a single german word for any phrase?
 
@PaulCrovella NEIN. SCHMETTERLING! DAS IST VERBOTEN!
 
I almost went to prison for a parking ticket yesterday
 
<?php
$b = new stdClass;

final class B {
	public function one() {
		return false;
	}

	public function two() {
		return true;
	}
}

compose("B", [
	"one" => $f = function() {
		return $this->two();
	},
	"two" => function() use($b) {
		return $b;
	}
], B::class);

$a = new B();

var_dump($a);

var_dump($a->one());
?>
feels like I've been here before ...
 
@DejanMarjanovic and that's when you are happy living in Germany. In the US you would be dead now.
 
8:35 AM
> Hello Herr Marjanovic, letzte frist 23.2.18, danach folgt Haftantrag. MfG.
@Gordon True, true
 
I'll be moving to Germany by the end of the year.
 
@mega6382 where to?
 
@JoeWatkins wat
 
I am going to start learning German from goethe institut in a couple of weeks.
@Gordon Frankfurt
My fiance is there.
 
@PaulCrovella someone on twitter asked about monkey patching for an AOP implementation using uopz, uopz is not the kind of thing you want to run in a production environment it does bad (slow, terrible) things ...
that code recomposes (if that is a word) B::class at runtime ... can also be used for composition ...
and in production ...
 
8:38 AM
@Gordon But you live in Essen right?
 
and is much more elegant than uopz_compose, which I removed from uopz because of the badness
 
@mega6382 I recently moved out of Essen, but basically live directly next to it.
 
@Gordon That part is basically one big city
 
@Gordon Cool, maybe I'll meet you, once I am there.
 
@mega6382 frankfurt main or frankfurt oder?
frankfurt am main is a good two and a half hours drive from essen… frankfurt an der oder is even farther away
 
8:44 AM
@Gordon Actually, it is a small city right next to Frankfurt, its name is quite long(and german) and I don't really remember it.
 
yes, but which of the two frankfurts?
 
Wait 1 sec, let me confirm.
 
nutella one
 
@JoeWatkins I see. Never been too keen on monkey patching.
 
me neither, I do like to make zend do things it shouldn't though ...
aop is also one of those things that seems to just complicate matters, but whatever, I'm just the mechanic ...
it was a feature of uopz because it's handy for testing legacy (tightly coupled) code ...
 
8:54 AM
that's fine, you're already holding your nose when dealing with that anyway
 
@Gordon Dietzenbach
Which is near main Frankfurt, I believe.
 
it's not main, it's on river Main :)
 
@mega6382 yes, that's FFM (how you abbreviate Frankfurt am Main)
 
OK
@Gordon Btw, how hard is it to find a good job in Germany?
 
@mega6382 I' say about the same as anywhere else. It depends on your qualification and what you consider a good job and in which parts of the country you live.
FFM should have plenty of jobs for software developers since it's a financial hub. All the banks are there. But that also means, the jobs will mainly be Java or C#. Or Cobol I guess.
 
9:10 AM
hahaha, so, not much with PHP and such.
 
PHP is not serious enough for Germany.
 
Most PHP postings I've seen were in Berlin IIRC
Also in Munich
 
yes, php is more sought at in Berlin, Munich and Cologne
is it my internet or is stackoverflow laggy?
 
Thnx guys, and well there is still some time before I'll move, so, will surely be able to find something by then.
 
9:21 AM
yupp
hmm, you would think finding the longest non-wildcarded path in a glob pattern would be a solved problem, but I only find a js lib for that.
 
solved problem in php you mean
www.php.net/manual/en/datetime.formats.relative.php I am thinking of creating a microservice just for this :)))
 
@DejanMarjanovic Yeah. I just got that.
 
9:40 AM
@DejanMarjanovic in java
 
9:51 AM
@Gordon well it doesn't have this relative time thingy also
```
LocalDate now = LocalDate.now(ZoneId.of("Europe/Berlin"));
LocalDateTime midnight = LocalDateTime.of(now, LocalTime.MAX);
Long seconds = midnight.until(LocalDateTime.now(), ChronoUnit.SECONDS);

return Math.abs(toIntExact(seconds));
```
too much code for seconds until midnight :D
 
@JoeWatkins ping
 
@NikolaSvitlica pong :)
give me 5 minutes ...
 
monin o/
 
Wes
le morning
 
10:06 AM
@NikolaSvitlica okay so, can you do an AOP impl with monkey patching of classes only ?
 
Here is idea: pastebin.com/JrW5xMDv
That is general experiment, that is kinda how Spring AOP works...
Idea is inspired with GoAOP and Alexander Lisachenko, I have just started to experiment with it. His engine weaves proxy classes differently, and that causes issues with, per example, value objects.
So, I am pursuing different approaches - these two functions, uopz_set_mock and uopz_unset_mock allows me to proxy class instance in runtime.
Major issue with AOP in runtime, especially with GoAOP is that if class is loaded and not weaved, game is over. With UOPZ -> it is not, I have missed some instances, but I can continue to weave with others...
(sorry - I am presuming that you know how GoAOP works, I can explain briefly if you want)
 
The few times I looked at AOP I always felt it confuses me more than it helps me to write readable code
 
<?php
class Original {

}

compose(OriginalProxy::class, [
	"__construct" => function() {
		$this->original = new parent();
	}
], Original::class);

compose(Original::class, [
	/* add members here */
], OriginalProxy::class);

$original = new Original();

var_dump($original);
understand ?
krakjoe@fiji:/opt/src/componere$ /opt/bin/php -dextension=componere.so componere.php
object(Original)#2 (1) {
  ["original"]=>
  object(Original)#1 (0) {
  }
}
 
"compose" ? where that function comes from?
 
10:15 AM
I wrote it this morning
 
:D
What will happen if Original is final class?
 
ignored during composition, remains final after ...
OriginalProxy is also final
 
So, even though Original is final, OriginalProxy will extend it, it will be final?
and $original instance of is Original?
 
please name the extension "composer" so as to confuse the max # of people
 
What kinda sorcery is that?
:D
Amazing!
 
10:18 AM
uzele ga droge druze
 
darkness is dark ...
 
no magic just joe
 
Ok, property interception in proxy can be done with __set and __get magic methods in proxy...
That is covered...
One more thing - and it is not crucial for now, I would be very happy if you can provide me with just an answer is that possible, and difficulty level
 
yes, other magic will work, can be defined during OriginalProxy composition, or recomposition of Original
 
AOP defines "initialisation" interception, that is, you can intercept "NEW" keyword. Issue is with "around" advice -> you should be able to return different result of instantiation
$someobject = new A(); // example
AOP should be able to provide you with result
$someobject instanceof B::class // true
A !== B
In uopz for PHP 5.x -> it was possible to intercept NEW and to return any result. New uopz does not have that. I guess there is a reason for that.
@DejanMarjanovic Ne verujem sta covek uradi, nemam reci.
 
@JoeWatkins OMG!
If you drink a beer, I am going to buy you your body weight of beer.
 
Send him some rakija :)
 
@NikolaSvitlica He is a terrible drinker. Better send it to me
 
Anonymous
I've never heard of a more counter-productive company goal
 
Morngs
 
Anonymous
10:29 AM
"Our aim is to get rid of all constructors"
 
Anonymous
fuck. off.
 
Anonymous
also morns
 
moin
I'm terrible at drinking I'm afraid ...
 
o/ ,o/
 
Anonymous
@JoeWatkins you pissed?
 
Anonymous
10:30 AM
oh, didn't read up
 
Well, you gotta have some poison that you like... at least sugar or something...
 
@JayIsTooCommon o/ what is that supposed to accomplish?
 
video of joe drinking youtu.be/firBlh0OeT4?t=8s
3
 
Anonymous
@pmmaga These are the 'valid' reasons. "So that we can use @inject everywhere" "So that our tests don't break when we change the signature" "So that we don't have to maintain parent ctors when extending"
 
lol
 
10:33 AM
@JoeWatkins Many thanks! Will start to play along with this and tell you how it goes. Thanks again! I am amazed!
 
Anonymous
Yep.
 
@PeeHaa I promise to bring you some Vinjak :)
 
if you feel like it, you could start pull requesting tests ... I better do some actual work now ;)
 
gimme gimme gimme
 
@JoeWatkins porn sites don't count as work :P
 
10:34 AM
also, you don't need to override new, you can change the behaviour of the object at runtime, there's no difference to the caller ...
 
That sounds pretty voodoo... I will try it, why not.
 
@JoeWatkins So, the hell with immutability?
 
@JayIsTooCommon that's... a weird choice.. lol
 
Anonymous
@pmmaga So now we have to rebuild our DI / container in every unit test lol.... Looking forward to moving on :P
 
Wes
@JayIsTooCommon isn't that the reason you all use auto wiring containers :B /me runs
also mornen \o
 
Anonymous
10:39 AM
o/
 
Anonymous
Have I missed any drama here? Or is everyone still a prick?
 
Anonymous
has that guy discovered google yet?
 
@JayIsTooCommon You mean @Shafizadeh?
 
Anonymous
that's the one C:
 
Yeah, don't think so.
 
10:41 AM
well you're still a prick at least
 
Anonymous
Nice to see you too babe @PaulCrovella
 
Wes
@JayIsTooCommon no
@JayIsTooCommon i am serious, isn't that the main reason you use auto wiring containers? :B
 
Anonymous
not so much for the inheritance thing I guess, if you're extending something with a bunch of dependencies, 9 x 10 you smelly.
 
Wes
i was referring to these two in particular
So that we can use @inject everywhere
So that our tests don't break when we change the signature
 
What is the best php IDE?
 
Wes
10:46 AM
there is only one that deserves to be called so. phpstorm
 
@Slasher emacs :D
 
Already using phpstorm, have to try emacs :)
 
phpstorm
 
seriously though, PHPStorm is quite good, other good options are ZendStudio, NetBeans and others I can't remember.
@Slasher That was a joke.
 
Anonymous
@Wes dunno, never used em. Your tests should break when you change the signature... a work around for that is silly.
 
10:47 AM
I'm dumb, and didn't get it. @mega6382 :D
 
Wes
@JayIsTooCommon is that different? if you use auto wiring in real code, you might as well use it for testing, except that you'd inject mocks, fakes and stubs. no? genuinely asking, never used one
 
@Slasher And also, there is PHP VSC and devsense, which are both very good too.
 
I just tried GNU Emacs, its really good for andvanced users like me.
 
Anonymous
@Wes I guess, i'd rather get rid of the auto wiring. The 'benefits' that it gives are usually to get around lazy developers and/or smelly code. I'm new to it as well, and hate it :)
 
Wes
10:53 AM
i knew what was it before i clicked ^
@JayIsTooCommon you know what would be great, if the auto wiring was done only for development purposes. on deployment, the "magic" would be replaced with static, fast code automatically
 
Anonymous
:+1:
 
@asgrim Okay! composer require laravel/laravel
5
 
\o
 
Anonymous
@Jimbo :B
 
yooooo
 
11:05 AM
o/
 
and a happy frydai!
 
\o
 
moin
 
@JoeWatkins true story
 
Wes
11:15 AM
i've just used the word "implementation" in the name of an interface
 
class Definition extends Base implements Implementation { use ClassBody; }
4
 
Wes
nailed it.
D:
 
That's how you do the oops programming, right?
 
Wes
:B
 
ffs
 
11:17 AM
@Jimbo Btw, what does it mean "Advocate of PHP 6"?
 
@mega6382 It means I advocate PHP 6
> a person who publicly supports or recommends a particular cause or policy.
 
No, I mean PHP 6 doesn't exist.
 
Yeah, that's the joke :D
 
Wes
it exists in our hearts
 
A load of us have PHP 6 t-shirts
 
11:28 AM
@Jimbo Yeah, thought so. Just wanted to make sure. :D
Can anybody please help with this https://stackoverflow.com/questions/48334662...
 
Anonymous
fucksss
 
middle finger
 
11:44 AM
@mega6382 duplicate of stackoverflow.com/questions/…
 
Image chunk upload logic, receive chunk, name/save chunk via fopen etc, store filename of started file in database(?), return unique file name with chunk progress, next chunk send unique file name or how?
Users are authenticated when uploading, if that helps.
 
@PaulCrovella This 1 has similar answers too https://stackoverflow.com/questions/48946...
 
php.net/manual/en/function.fopen.php in tutorials I'm reading fopen($file,'wb'); documentation doesn't say what "b" stands for.
 
@Darius it does, keep reading
 
11:54 AM
> In contrast, you can also use 'b' to force binary mode
 
Found it, thanks. Dead tired and missed it.
For the longest time I read Pual's last name as Corvella instead of Crovella too.. I'm going to sleep.
Later guys.
 
@Darius not only did you read his last name wrong, you also wrote his first name wrong.
Now I insist for @PaulCrovella to change his name PualCorvella.
 
people fuck up my last name that way on the regular
 
Lets just say its Cruella and call it a day.
 
Wes
12:11 PM
paul cruello
rough guess, crovella is a surname of fishermen, crovella is a kind of fish :B
i could be badly wrong tho
did you learn something about yourself, paul? :B are you a sea lover? :B
 
I am in fact a very small seahorse, mr. panda.
 
user image
11
 
lol
 
Wes
@PaulCrovella lol
 
@tereško fake. The lion is actually getting an MRT. The MGM was photoshopped into it.
@Wes I checked three different genealogy/names sites and they say Crovella doesn't have a meaning
 
12:19 PM
again the internet confirms my existential crisis
 
Wes
en.wikipedia.org/wiki/Umbrina_cirrosa <- sea crow... crow...ello... alternative name is crovello/a
happens to be a kind of fish that lives where the surname is most popular. i doubt it's a coincidence, but could be :B
corvello/crovello means "little crow"
 
@Wes now I am curious how you got from Elephant to Manatee and Squid.
 
Wes
same process
i checked the taxonomy
 
@Wes You are probably thinking way to hard about this.
 
Wes
12:25 PM
apparently they were the same animal a couple of billion years ago
@mega6382 didn't think at all, it's a common use word
the crovello is a fish you can buy at the market :B
 
@JoeWatkins that … well … uh … okay … nice :-D
 
3 messages moved to Trash
 
12:40 PM
@JayIsTooCommon I did years ago.. But still I ask too much, since I believe in some cases asking is much better than googling (better == faster, cleaner, more summary, contains people experiences and etc). Anyway I think googling doesn't have any conflict with asking. You can do both at the same time
 
@bwoebi not bad for friday morning fun ...
 
@JoeWatkins github.com/krakjoe/apcu/issues/214 => Is apcu 4.x still maintained? Or can this be just closed?
 
yeah close it, it's not maintained ... maintaining one branch is enough ...
 
> We're also running into the problems of #19 in our production RHEL7 system, which uses RHEL's PHP 5.4.16
Shitty packaging is hitty
 
12:56 PM
I don't think I could debug php5 anymore anyway ... when I look at extension code for 5, I get confused ... I can do one thing at a time, just a fancy monkey ...
 

« first day (2687 days earlier)      last day (2267 days later) »