« first day (3854 days earlier)      last day (1085 days later) » 

11:00 AM
no its pretty stable for that 8 month gap, the winters can be pretty ferocious though, I'd never heard thunder such as the world makes here, it's genuinely frightening .... and the winds are something else too ...
I'd experienced wind that can make it difficult to walk forward, that's quite common in the uk, but never wind that can actually remove you from the ground and push you backward ...
 
And that's why I justify the existence of churches
Lightning rods xD
Im sure it's the same as in here, all churches have lightning rods
 
surrounded by mountains, so can't see any churches or anything like that ... I'm actually not sure where they put them, I guess they must exist somewhere ...
 
Sounds like homework :D
Here almost every church has a lightning rod
 
everything has flat roofs, and people fit their satellite dishes on driveways or on the side of houses not on the roof ...
 
So you are in a small village ?
for some reason I thought you were n a big city like madrid or barcelona
 
11:07 AM
not even that, it's called an urbanization, it's a group of 100 houses/villas or so, a few miles from anywhere, typically on the side of a mountain ...
 
How did you landed there? If you feel like sharing
did you get into those 1 euro houses program ?
 
no, we don't own it, we rent it ...
 
(AFAIK Italy has that kind of incentive but maybe Spain has it too)
 
I would never buy anywhere like this ... I'm here so my kids have the memories of living in a big house with a swimming pool in the mountains, soon as they are old enough, I'm out ...
 
I gave it a thought ... but even though I don't go out, I enjoy the benefits of urbanization
 
11:10 AM
the space is too much, it's a full time job to keep on top of outside work in summer, I have to rent a guy to do it for me, because it's also exhausting ...
 
In germany I used to live in a very teeny tiny vilage, but ebay and DHL worked
If you would do that here ... you'd be lucky just to get groceries
@JoeWatkins Renting a guy makes sense
I do that too
we also have a sitter to take care of our child, else my wife could not work
 
the first couple of years I done it all myself, but it's super tiring and I missed out on actually spending a lot of the summer with the kids because I was always jet washing, or cutting back overgrown stuff, or fixing something damaged in the winter ... it was crap ... so now I do the minimum, then get someone in to do the rest ...
 
You have to agree with me that using power tools is fun tho right ?
I loved to use the gas lawn mower back in the day (and the chainsaw ... definitely cutting down wood with it was fun)
 
owning them is fun, and using them is fun the first time, or for a while ... but spending 5 whole days jetwashing is not fun ...
 
I jet washed an entire roof with brick tiles
xD
that was insane
a roof with a 45 degree incline
 
11:17 AM
that satisfaction you get when something is perfectly clean wears off, and eventually it becomes painful ...
I'm old and lazy though ...
 
How old are you if I may ask
4...?
 
>35
 
hahaha
 
I'm 37 but I feel like I'm 20
Next month I will be 38
 
11:18 AM
I've been basically 40 since I was 22 ...
 
That sounds rough
 
chainsaw and petrol strimmers we have ,,, the chainsaw I like, but it's not used often ... you're not really allowed to just chop trees down ...
I prefer indoor tools ... table saw, cnc, 3d printer ...
the printer isn't useful for very much, but that's not the reason for owning a 3d printer ... you own a 3d printer so you can spend time fixing the 3d printer ...
 
Used to chop logs more than trees to make discs of wood
 
oh well we tried that, but it's really hard to dry out, and we can't burn it even with a little water ...
it's humid here all the time, there's no break from it, so the wood just doesn't dry out, even if it's mostly indoors, it just takes too long ...
 
There was a time in my life in which I was completely broke, lived in a house with no gas, so I had to use wood for the heating to save money
 
11:25 AM
it's the most expensive fuel to buy here, we just use butane gas heaters ...
 
That was the time when I realized I was living with a money draining parasite which refused to work, which then I proceeded to divorce
and my life was made better
lol
 
that's a bit sad, my wife doesn't work, she has in the past ... it doesn't bother me one bit, actually I prefer her being here ... I suppose the difference is I like my wife ...
:D
 
Used to travel 400km for an entire week to buenos aires, stayed in shitty hostels, got bitten by several critters (bed bugs and the likes of it)
got back home mostly carpooling, had to walk 12km
I did that for 3 years
Expecting to see some help from the other end
help never arrived
I did ask for it
proceeded to use my child as an excuse
even tho she had support from my family to take care of the child
if she would have worked
and sure, she still uses my child as an excuse to drain money out of my pocket, even tho I would like my girl to live with me, law always benefits the mother
Even if my child told me that a friend of mom used to sleep in the same bed with them and even if I called social services for help
they just dissed me saying they "couldn't do anything"
talked to my lawyer, he also said nothing could be done
several lawyers told me the same
So it was hardcore confrontation or just forgetting about it completely, as I don't want to have any problems I chose the second
Guess I was just venting, sorry
Power tools are fun ;)
 
11:47 AM
sorry was afk :)
 
12:14 PM
what do other langs use as their issue tracker? I thiiiink Ruby uses Redmine
Rust... GH issues, a ton of tags I can't make sense there
 
morning :-)
hey @ln-s, do you live in Argentina?
 
morning
 
@FlávioHeleno yes
 
@ln-s cool! I'm from BR :-)
 
Kind of figured out
:)
 
12:20 PM
@ln-s BA or elsewhere?
 
BA
 
I loved BA... the only city I miss, lucky you :)
 
I think @scorgn lived in Argentina for a bit also
@FlávioHeleno friend of Gabriel?
 
@Tiffany yes! I got to virtually meet him last year, a great guy!
 
:)
 
12:30 PM
@Ekin I will admit that people are fun to hang out here, but not to the economic and social issues the country has been facing since the 40's
 
oh that's for sure
 
BUT if you are a foreigner and you earn in USD
yeah this is your place
 
I was there when blue dollar was worth 18p
 
Would recommend it to anyone
 
I had just moved to uruguay when they killed it I believe, it was instantly hiiiigher prices in both countries
 
12:31 PM
so 2010 / 11
1 USD = 178 ARS now
or so ....
Uruguay is definitely more expensive but also more stable
 
jesus
 
in all regards
 
being paid in USD/GBP/EURO is amazing when living in South America
most of the currencies are worth nothing compared to them
1 USD = ~6 BRL
1 GBP = ~7 BRL
 
Don't know were you are from but if you feel like hanging out some day it'll be certainly an advantage
 
I've never lived in the city in Uruguay, but the canelones... amazing place to live in quiet
 
12:33 PM
Why does every foreigner goes to canelones is a mistery to me
 
it was a breeze after 2 years of BA city life
 
I suppose it's awesome ?
 
@FlávioHeleno that's crazy, 1 GBP is worth like 1.25 USD
probably more now...
 
well I wanted to get a woof and live next to a forest and the rio :-P I don't think it applies to most others
 
oh, it's 1 GBP to 1.39 USD
@Ekin a woof :D
 
12:34 PM
@Tiffany I used to work in a UK company and live half the month here and half the month in the UK, it was a very good deal back then (1 GBP was ~5 BRL)
@Ekin that's a plan. I confess I want to move somewhere like that as well
 
I want to live within a day's driving distance from a beach
somewhere warm
 
if only I wasn't stuck wherever I am now, I had plans to do the same again anywhere else ¯\_(ツ)_/¯
 
@Tiffany Brasil is your place then
 
there's a great place in northeast BR called "Praia do Francês" (aka. French's Beach), it's a warm and amazing place to be
 
I'm a bit iffy with Brazil, as a woman, IIRC it's not a great place for women
but, I could be wrong
 
12:37 PM
@Tiffany depending where you are, you are right, unfortunately :-(
 
I'd say all latin american culture has a macho like culture
 
but the funny thing is that BR ppl are crazy about foreigners
 
I am not feminine by any means, and I won't live up to social expectations of "how a woman should act or dress"
 
@FlávioHeleno same here, I wonder why is that even a thing, perhaps it's a latin american thing
 
don't wear dresses, don't wear makeup, can't wear heels
 
12:39 PM
@Tiffany Buenos Aires is more friendly in that aspect
I've never met any woman that uses heels daily here
dead honest
 
@ln-s I guess so.. :/
 
I have lymphedema in my right leg, causes it to swell twice its normal size, heels would be the death of me
 
@Tiffany you'd probably feel very welcome in Sao Paulo (state capital city)
 
@Tiffany Is that thing the thing were you walk with a foot kind of leaned outside of the path and then your leg swells ?
 
it's way more diverse than the smaller cities
 
12:40 PM
@FlávioHeleno Right capitals are a different deal
 
@ln-s not sure... I was either born without enough lymph vessels in my leg, or they didn't grow correctly when I hit puberty. The swelling is from improperly circulated lymph fluid.
 
You could probably walk butt naked with a piercing in your ass cheek and no one would care
Now smaller cities on the other hand ...
 
I do live in a conservative town in the US, but I generally ignore people, and there are fewer people, so they're easier to ignore. I'll have to do some research on both places.
 
I like it where I live, it's a small-ish city (~250k inhabitants), fairly safe with a weird weather
@ln-s exactly this hahaha
 
I know right ?
Im sure its probably a world pattern
applicable to all humand kind
the lesser the population the more opinionated they are
 
12:44 PM
when I lived in Denmark, the whole country was pretty much like that, ppl would get naked during summer and no one would bother..
 
I supose people talk shit about others when they get bored ?
 
I guess they do..I rather watch a movie instead hahaha
 
The swimming naked thing it's a socially established rule I'm sure
 
apparently it is
 
@FlávioHeleno have you read Scandinavia and the World?
 
12:45 PM
@FlávioHeleno I suppose you have social class discrimination too ?
 
@Tiffany not really, no
 
instead of racial discrimination
 
@ln-s yeah.. :/
 
what I know about Denmark is from that comic, lol.... which is likely heavily skewed
 
yeah haha
 
12:46 PM
@ln-s we have both of them :/
 
really!
 
yeah..and it sucks.
 
I could say that 95% of the people do not care about race here, social class, it's a different deal
 
@Tiffany oh dear lord. I love those comics! I've seen it before, never actually knew the name though
 
12:49 PM
But I also have to say that most of the population here is white and that colored people emigrated to friendlier countries such as Brasil so there is that too
There was a modern (2000 something) imigration wave from Senegal but there's no fuzz about it
 
So my opinion on that subject is not concrete
 
if only my spanish wasn't that bad, I'd love to visit Argentina, Chile and Uruguay
@Tiffany hahahahaha
 
I need to brush up on my Spanish again.
 
Portuniol
 
12:52 PM
@ln-s well, that's as far as my spanish goes hahahaha
 
Bah spanish and portuguese are ALMOST the same
I laugh at argentines that say they "speak portuguese"
dude ... come on
it's not Japanese
 
I have a hard time trying to get what native spanish speaking people say..it's a lot faster than my brain can process hahaha
 
they are really close indeed, the accent change though is something :)
 
You can't say you "speak portuguese" they are literally almost THE SAME
@Ekin If your ear is not used to it, yes
 
similar to Norwegian and Danish? I think?
 
12:53 PM
I love that I can understand a lot of portuguese and even french after learning spanish
 
maybe Norwegian/Swedish
 
@Tiffany yep
 
@Ekin yeah :)
 
Hi everyone (sorry to interrupt!) is this a good place to ask a question about PHP basic behaviour?
 
@Ekin Yeah I had that yesterday when I was watching Vincent's video (creator of the elephpant)
@Rounin this is the place
 
12:54 PM
> Don't ask to ask, just ask.
 
Danish and Swedish are very similar and closer than Danish/Norwegian IIRC
@Ekin happy to help you keep up with your portuguese skills :)
 
thanks! I'm currently trying to get better at speaking Dutch (blame @PeeHaa) for that, but I do really want to learn Portuguese
gotta queue that :)
 
Thanks. I have a function which is running twice. The function is in an include file. I have gone everything with a toothcomb and the include file is definitely only being included one time only via require_once. After require_once I run the function. I have checked for loops or forEach - I can't find anything. But the function is definitely running twice. So... is it possible the function is running one time when I require_once the include file and then a second time when I invoke...
the function.
For instance, if I add echo '<p>Test</p>'; as the first line of the function.
 
do you have any calls to the function in the included file? 'cause that could be the source of it
 
How are you determining that it's being ran twice?
 
12:58 PM
The output is that paragraph twice.
What first drew my attention to the fact that it was running twice was that I got an error stating that a function could not be redeclared.
And the function contains function declarations.
So then I added the echo '<p>Test</p>'; line and, sure enough, it was echoed twice.
 
Granted PHP doesn't have a function autoloader, but could there be a side effect from an autoloader, or a side effect elsewhere in the code?
 
So I am confident that the function is being run exactly twice.
 
@Rounin Modify the function, add two parameters:

function myFunction($yourParameters, $line, $file){
var_dump($line, $file);
}

Search for the function call in your project and call the function in the following manner:

myfunction($yourparameters, __LINE__, __FILE__);
 
Great. Thanks very much. I'll go and do that.
 
@Rounin This will tell you exactly where is it being called
 
1:02 PM
@ln-s TIL
 
Without having to deal with complex debugging techniques such as profiling and checking with kcachegrind or other software
@Tiffany You should check kcachegrind, will blow your socks off
Basically you enable profiling in xdebug
and then process the generated profiling files through kcachegrind
It's indeed impressive
Aanother nice to have to debug wtf is going on with queries is enabling the query log in your dev machine
and then tailing the file
this will show you exactly every query that is being executed when performing a request
PRO TIP: you can tail and grep
tail -f /var/log/mysql/query.log | grep -i 'table_name'
 
Yeah, I've done that before
 
Yeah it's great
I also made a script to check for time differences between queries
 
My current job has required me to have a greater understanding of the Linux shell, which is a good thing. I've gotten quite a bit better with grep, and piping commands together.
 
Here is the script
./dev-tools/bin/tail_mysql_log it's literally just that with some docker magic
 
1:09 PM
grep -i 'word' log.log | wc -l to see how far along a command in a screen is
Also screens...
 
you use screen ?
I use tmux
Used to be a screen user, tmux is just ... better
 
I use several git bash windows but screens are helpful too
 
(plus the alacritty terminal which has graphics acceleration so everything is way faster)
Ah you are in windows
 
Coworkers use putty
I swore off putty a few years before starting here
 
You could use putty and tmux
:P
 
1:12 PM
tmux is all the way better indeed
 
One coworker is a Linux user, everyone else uses Windows and connects to a Linux server
 
for sure
 
Oh. My. Word. I am SO fantastically stupid.
 
(Ekin)
@Rounin well glad that you figured out what was going on
 
I have spent half a day on this. Thank you SO much @ln-s.
 
1:13 PM
@Ekin Which WM ?
 
even with Linux Subsystem thing on Windows you gotta use putty?
 
@Rounin Anytime I can help I will help you
 
It's embarassingly bad, @ln-s
 
we've all been there @Rounin :-)
 
@FlávioHeleno might be able to switch to WSL, but it's iffy. We don't have local dev environments though
 
1:13 PM
I ran the code you suggested and got this:

`Fatal error: Uncaught ArgumentCountError: Too few arguments to function`
which was really odd because I definitely added the extra parameters
 
But then it made you realize exactly where it was being called ?
due to the fatal error
 
i looked at the line for another 20 seconds and then I saw what had been my blind spot all alond (nothing to do with includes, loops, foreach etc.)
 
@Tiffany got it. but I mean, the terminal/console should be much better than putty I guess?
 
actually it was the CONDITION
 
@Rounin what IDE do you use by chance, and does it have a "search entire project for <text string/regex>"?
 
1:15 PM
find ./ -name "*.php" -type f | xargs fgrep -i function_name_or_whatever
If you want search and replace you could use sed too
xD
But an IDE is way better because it will allow you to UNDO the changes
 
Look at this ternary:

`$myResult = (myFunction($myParameters) === NULL) ? [] : myFunction($myParameters);`
I never, ever saw that the function was being run in the condition.
 
oh well :)
 
Hmm that's a code smell
 
ah, is it?
 
$result = myFunction($myParameters);

$result = $result ?? [];
Yeah you are calling a function twice, no need for that
$result = $result ?? [];

Equals to:

$result = null === $result ? [] : $result;
 
1:18 PM
I'll refactor it, now that I see what's going on.
 
Cool glad I helped
 
You really did. Saved me another couple of hours. Thanks. ;)
(I'll make a note of your LINE and FILE constants suggestion).
Usefully quick way to find out where functions are being called form.
[from].
 
To be fair, when you have calls to the same function in different files that is useful, in this case, it helped you only by accident
Because you forgot to setup a parameter
 
$result = function($params) ?? []
for the one-liner inclined :P
 
I would suggest what @Tiffany stated before, you should be using a nice IDE such as PHPStorm or anything that has find, how do you search for the function, you usually right click on the project and you enter in the search string the following:

myFunction\s?\(

Make sure to find by regex
so this will match with func ( and func(
 
1:25 PM
\s*
 
VS Code has something similar, I've found, but it requires having the entire project opened in the editor
 
Don't know if asterisk would be helpful in this case but it does not hurt
 
SublimeText has it too :-)
 
Phpstorm allows searching by directory as well <3
 
ah, phpstorm is so great
 
1:26 PM
I tried a bunch of editors, and to be honest, there's nothing like jetbrains
 
dead honest
 
Sorry, @Tiffany - I didn't see your question. I use Sublime Text 3. Yes, it has "Find in Files" with regex.
 
@ln-s \t, \n and \x20\x20 are definitely conceivable in the real world
 
I should give it another try
 
1:27 PM
also though if you are parsing code you should probably be using a parser (nb I have not read the scrollback)
 
@DaveRandom you are right
 
@FlávioHeleno it is, without any competition, the greatest investment I've ever made in my programming carreer.
 
I tried atom, sublime, vscode, .... etc etc etc
phpstorm did it for me
 
@FlávioHeleno phpstorm was kinda iffy like four years ago. It was okay enough, but wasn't the clear winner like it is now.
 
phpstorm is The Best™
 
1:28 PM
phpstorm love brigade report in!
\o/
 
check
 
@FlávioHeleno within the past 2-3 years, it has improved significantly that it is definitely worth the money
 
I tried it a few years ago (around 2013 IIRC), was a bit bad
 
yeah, it wasn't great back then, I remember trying it out, then going back to notepad++, lol
I eventually forced myself to switch to it around 2014-2015ish, and it was still only slightly better than other editors
 
I was a notepad++ user back in ~07 when I used Windows
 
1:29 PM
I've only ever used four editors: I mainly use Sublime Text (and I'm getting used to working with Visual Studio Code when working with TypeScript). Before Sublime Text, I used NoteTab. Before NoteTab I used Windows Notepad.
 
then switched to gedit and then to sublime
 
webstorm is also cool
 
I think one of the biggest things about PhpStorm is it really feels like a PHP IDE, not a Java IDE with PHP plugins pre-installed
 
but eh ... kind of rough in the edges
 
1:30 PM
even though it's written in, and originally for, Java, as all IDEs seem to be
 
it is the only PHP IDE I have ever used that actually feels like an IDE rather than a glorified text editor
 
@IMSoP Eclipse for PHP feels like a PHP IDE, but it's inferior to phpstorm
 
@IMSoP this is a great point
 
not there there's anything wrong with text editors, but they are not the same thing
 
1:30 PM
@IMSoP right? I wonder what makes java a goto language for ides
 
@DaveRandom precisely
 
@Tiffany I haven't tried it for years, but it absolutely didn't when I tried it
 
dat Spring UI though....
 
Simplicity I guess
 
well, ~1k BRL for PHPStorm for the first year..that's a bit salty..
 
1:31 PM
you don't need to use Spring if you don't want to, there are a lot of graphical api's out there, but spring is native and ready to use
I suppose that is the difference
 
@IMSoP yeah, I tried it out in my new job within the past year, it did feel like a PHP IDE, but I couldn't get used to it, after being a phpstorm user for so long
 
as to why they haven't gone the GTK way or QT way
also if I remember correctly QT is not 100% open source ?
 
@ln-s I think I had i3? been so long I wasn't on my kde I can't remember
 
@FlávioHeleno as I said, it is an investment. If you don't gain money with PHP, it's possible it's not worth it unless you really want to and can spare the money, but if PHP is anywhere near how you fill your payroll, it's worth it I think
 
Check enlightenment
@Ekin ^
 
1:33 PM
just about to post my laptop to service... will do once I get it back
 
@FélixGagnon-Grenier 100% agreed!
I bought SublimeText license exactly because of that
 
@FlávioHeleno Did you also buy a winrar license ?
xD
I kid
 
the thing is that I'm working on PHP projects on my spare time now..will try to contribute to the core as well at some point (still studying though)
@ln-s hahahaha that I did not :X
 
phpstorm license comes from ze employer for me. If you can, ask for them to cover that for you
 
1:34 PM
Who did ?
that's the real question
 
it's become a meme
 
for sure
 
@Ekin I have very nice employers who have allowed me to work in PHP during my work hours, so I don't want to be pushy and ask for that too hahaha
 
:)
 
@ln-s I only recently learnt that GTK was originally the GIMP Tool Kit, and the first version of GNOME basically came about because someone thought it would be cool to build other apps out of it
 
^Lol
 
now, GNOME is developing it so rapidly, the GIMP devs are struggling to keep up
 
@IMSoP Interesting fact that I did not know, thanks
GTK does not feels ... tight I don't know how to describe it
 
@IMSoP TIL
 
it still feels to me like an attempt
Will definitely say that the CSS addendums for styling are definitely a good thing
Still I feel QT interfaces are way cleaner, and by cleaner I don't mean "Redmond like"
 
1:37 PM
oh wow
I just found out I clicked in the wrong option for PHPStorm License
hahaha
from US$200 to US$89
that is def fine!
 
They give free licenses to some institutions and companies if I remember correctly
 
they have a Dev Recognition Program as well (for MS' MVP and other programs)
we should have something like that for PHP I think
 
I think you get a license with a php.net account already
 
Hmmm that's cool..once I start contributing for real, I guess I may be entitled to have a php.net account :-)
btw, I'm not sure if anyone here plays/works with Raspberry Pi and/or other single board computers, but I'm slowly doing some work to have sensor and display libraries using PHP available to the community :-)
(code available here: github.com/embedded-php)
 
1:54 PM
@Ekin Wait, what?
 
@FlávioHeleno That's dope
 
@ln-s I've also built a GPIO and a SPI extension to do the heavy lifting
will do an I2C soon too
and have about 6 other sensors here to write code for and include in the library
 
I'd call it rasphpberry
for puns sake
 
maaan, that's a great name
should have asked here before
 
Rename it ? :D YES
 
1:58 PM
I started it as php-iot and renamed to embedded-php once the name was taken in github
 
I can imagine the logo
An elephpant eating a raspberry
 
dear lord that's awesome
 

« first day (3854 days earlier)      last day (1085 days later) »