« first day (3380 days earlier)      last day (1550 days later) » 

12:08 AM
A bit unrelated. I've installed vsftpd on my server when I try to connect to my server using Filezilla it returns an error, with some ports/remotes, says authentication failed... any idea why it happens?
Some times it logs in with 23 port number, but some it doesn't!
Status: Connecting to IP:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Command: USER root
Response: 331 Please specify the password.
Command: PASS ***********
Response: 530 Login incorrect.
Error: Critical error: Could not connect to server
 
@X4748-IR does it not allow root login?
 
@Tiffany I uncommented chroot in my config file
lol It worked! I don't know why some times it works suddenly. I reinstalled OS on my vps
@Tiffany I added sftp:// before the IP address.
 
was that what fixed it?
 
@Tiffany Yeap! But some times it doesn't work as I said! :I
 
:/
 
12:22 AM
@Tiffany Yesterday I tried it so many times. It didn't work
Maybe I was adding 23 port number... Hmmm... Most of the time after rebooting I can't log in again. Maybe something is being disabled or something
My server is crazy, yesterday I installed Redis with no problem, but today it returns an error, make test:

!!! WARNING The following tests failed:

*** [err]: Slave should be able to synchronize with the master in tests/integration/replication-psync.tcl
Replication not started.
*** [err]: Slave should be able to synchronize with the master in tests/integration/replication-psync.tcl
Replication not started.
*** [err]: Active defrag big keys in tests/unit/memefficiency.tcl

I added a swap file and sudo sysctl vm.overcommit_memory=1. Didn't work I:
 
 
8 hours later…
8:52 AM
morfriningday
 
cmb
\o
 
🐈
 
10:10 AM
morns
 
Well [played](https://www.youtube.com/watch?v=kfVsfOSbJY0) PHP.net, well played.
Morning.
Darn.
 
10:29 AM
https://3v4l.org/SXUii
Is this expected according to the BC changes described in https://www.php.net/manual/en/migration74.incompatible.php#migration74.incompatible.spl?
 
o/
 
@FrankLiepert that specific issue doesn't seem to be covered by that description, no
it's certainly not what I would expect
that said, I'm kind of surprised current() worked like that at all, I always thought it was specific to arrays
> Username auto complete is tab, not enter.
:-P
 
@DaveRandom It's some old ZF1 code, FYI :)
 
(easily done)
@FrankLiepert which makes it even more surprising, in a way, since the expansion to work with iterable seems to have come about with 7.0
 
10:42 AM
> 8 years ago
weird
oh wait
No I misread it
it's worked since 5.3
docs need fixing
/cc @Tiffany :-P
Oh no it's worked since forever 3v4l.org/ldu04
I assume the breakage is down to the same change reference by the BC note
but the note doesn't make that clear, it's either a bug or the note needs expanding
Ask Nikita
tbf though, the note does specifically say
> Use Iterator methods instead.
 
10:59 AM
@cmb @NikiC Succesfully got AppVeyor down from 10 minutes per configuration to about 3 minutes
moran taing for poking me about it
@cmb I don't understand this "warning" though: ci.appveyor.com/project/derickr/xdebug/builds/30181597/job/…
 
cmb
@Derick cool!
 
I know what the warning is telling me, that windows doesn't allow writing files when they're open, but I can't figure out which one, and why it's still open?
 
it might be antivirus on-access scanning (or similar external process) locking the file, does Start-Sleep -s 5 "fix" it?
 
cmb
11:15 AM
^
 
@DaveRandom I don't know, it doesn't run on my machine
 
cmb
@Derick just insert above this line: Start-Sleep -s 5 (that might fix it for AppVeyor)
 
OK, I"ll try
btw, I find this "cannot move while open" thing in windows probably one of the most annoying things it does.
 
11:36 AM
Do you usually move files about on linux while they're actively being written to..?
 
It's irrelevant. The OS handles it. But in this case it's not being written too, but being read (if it's indeed anti-virus). Linux/Unices handle that case fine too.
 
It can sometimes be if there's a file handle open on the directory itself
 
Yes, again, that's something that a professional OS handles fine too. You're making excuses for Windows here ;-)
 
11:53 AM
From what I can tell http headers are case insensitive. I'm trying to troubleshoot a situation where lowercase headers are ignored ( authorization:Bearer for example) and "Authorization:Bearer" is accepted
I've enabled Apache log_forensic and Apache is receiving the headers as sent but I am not sure whether the error lies in Apache2 / PHP or the app / code itself. The same code works on Kubernetes with nginx as ingress controller so I'd be a little surprised if it was my app
 
@Derick a) yes that's arguably true but b) the actual problem is that Windows filesystem locking is often misused by programmers who don't understand it :-P
The "default" lock mode for NTFS is a kind of LOCK_EX-on-steroids arrangement, but it doesn't actually need to be like that - a lot of software will lock stuff to the point where you can't even open the file for reading, but if you use the win32 APIs correctly it's perfectly possible to allow files to be scheduled for deletion by the kernel when all active handles are closed and stuff like that
even MS do it, Excel is particularly guilty of aggressively locking things for no reason
 
urgh
@Derick as an experiment can you try deleting $dname0 and $dname1 to see which one (or both) path is actually causing the problem?
 
12:09 PM
@DaveRandom I got to run - feel free to make a PR to try it yourself ;-)
 
oh right ofc
will do in a bit
oh hang on a minute
if $ts_part is empty (i.e. in ZTS mode), that's going to produce a command which tries to move a path to itself
$ts_part = ''
if ('0' -eq $env:TS) { $ts_part = '-nts' }
[...]
if (-not (Test-Path c:\build-cache\$dname1)) {
    7z x c:\build-cache\$bname -oc:\build-cache
    move c:\build-cache\$dname0 c:\build-cache\$dname1
}
it looks to me like the intention of that is to change a path that doesn't contain the -nts so it does, or am I misreading it?
in which case, that code path shouldn't even be hit in ZTS mode
 
you know it's friday
the only one around here doing what they are supposed to be doing is me, as usual ... you all should be smoking a joint and doing nothing ... or not much at the most, because friday ...
 
in my defence, I am using this as a way to avoid doing actual work
 
12:25 PM
no defense allowed, because it sounds too active for a friday also
 
OK, what if I sit at my desk and stare at the wall, how does that work for you?
 
perfect
it should be a plain wall
 
12:40 PM
 
Is that... colour!?
 
Am not sure if this is the default behavior in firefox, but when i make a post, then reload the page, the post params are gone. (this only happens when there is a file upload)?
 
Did it ask you to resubmit the contents?
 
@MarkR is that for me?
 
12:49 PM
Yes
 
@MarkR yes, and a sloping bit
far too exciting
I will go to the toilet and stare at the back of a cubicle door instead
 
@MarkR (not really) 1st submit, $_POST array is not empty. but on reload it is.
 
If Firefox isn't asking you to re-send the contents then it wont be doing a POST. Can happen if redirected
 
12:58 PM
in general, you shouldn't ever be reloading a page that you POSTed
POST is for non-idempotent actions, i.e. things you rarely want to perform multiple times without changing anything
 
Unless you're debugging a form, then hammer away
 
true
 
@DaveRandom am still developing.
 
> name="files[]"
> $_FILES['files']['tmp_name']
I think you want $_FILES['files'][0]['tmp_name']?
I can't actually remember how $_FILES works any more
 
cmb
@DaveRandom ah, indeed! But since apparently that code may be executed for ZTS builds, I'd execute the move only if ($dname1 -ne $dbname0)
 
1:02 PM
that [] in the field name is definitely going to add a layer of [0] somewhere
@cmb tbh the more I read it the more I think that script generally doesn't make sense, it feels like that 7z command belongs to the block above as well
script needz moar comments in general
 
@DaveRandom this is the dump of $_FILES ibb.co/WgGRyc6
 
ah right yeh it indexes it at the "wrong" level, I remember now
I dunno if maybe firefox doesn't resubmit POST request that include file uploads? not a think I've come across before but I don't use FF
does Chrome behave the same way?
 
don't have chrome (work PC), but it works fine on edge.
 
cmb
@DaveRandom um, that LGTM: if devel-pack doesn't exist, download it; if devel-pack not unzipped, unzip it.
 
@cmb yeh but surely it wouldn't be the case that the zip file exists but hasn't been unzipped? Shouldn't it just be "if devel-pack doesn't exist, download and unzip it"?
The problem is that I've forgotten how the windows build process works, really
oh right it just clicked
 
cmb
1:14 PM
@DaveRandom ACK, that could be improved. This is, however, not the typical Windows build process, but uses phpize
 
yes I think if ($dname1 -ne $dbname0) { move ... } is all that's required
@cmb yeh I just clocked what it's actually doing
12 mins ago, by DaveRandom
script needz moar comments in general
^ that's the main takeaway from this, IMO :-P
 
cmb
nope, powershell is self-explaining ;)
 
@cmb the code is as clear as it can be, the process the code is performing is less so :-P
It's obvious what the code does, it's the why that needs a couple of comments
(imho)
@Ghostff out of interest, if you resubmit the form with no files uploaded do you still get empty $_POST?
 
Morgnings room
 
@JoeWatkins you know, I am tempted to run by the dispensary today ...
 
1:28 PM
My phpunit integration tests do not output anything besides the headline with the version, any ideas how-to debug this? gist.github.com/alfredbez/536fbdcf69eec63b6000ec3c808dc6e1
 
@JoeWatkins Can I get a drink instead and do nothing?
@AlfredBez Do you have a die/exit in your code?
 
@DaveRandom no, without a file selected, it works fine.
 
\o/
Cheers <3
 
@PeeHaa nope
 
1:36 PM
What happens if you tirned verbosity all up?
 
oh wait I see @AlfredBez
Add this to your config stopOnFailure="false"
As an attribute of the root phpunit node
 
nah, didn't work, but it works if I filter for some test-methods
I'm checking my test atm
 
@DaveRandom So yeah, that code makes no sense :-)
 
@PeeHaa I think I found the problem, looks like the framework I'm testing has an error. I will wrap my db query in a try-catch block and add $this->fail($exception->getMessage()); to my test
 
1:43 PM
An exception should never stop your unit tests
Are you using some weird config?
 
@Derick I think @cmb's suggestion of just wrapping the move in a check so it only does that in NTS mode is a good enough solution for now
probably
 
That's what I'm doing
 
assuming that's what the cause of the problem is, ofc
I'd expect a different error message from that but it does sort of make sense
it also explains why the build still works despite the failed command
 
yeah, it does fix the problem. Yay
 
winrar
 
cmb
1:49 PM
@DaveRandom I get exactly this error message, if I try to move a folder to itself locally.
 
I'll make a patch for niki too :-)
 
huh, you'd have thought you'd get more of an idiot-check error message rather than trying to do the op and failing
but yeh cool
 
I'm making a decision about my job. I'm a developer for about 3 years, my major (university field) is computer (software).
Recently, I got a job offer which is PO (product manager). I really like managing a team/product and I did it few times implicitly so far. But I don't have any college education about it
So, I really doubt about making a decision on this. Any comment?
My concern is, being a PO means I will not get updated about the programming things anymore and I guess I cannot back to being a programmer if being a PO didn't work.
 
The question is, do you want a career in software development or management?
 
I like both
 
1:54 PM
And secondly, after having done this for 3 years, do you have enough information to make that decision?
 
never experienced a management field yet. So, not sure how much good I'm at it. (however, been a po in a small product)
@Derick I actually really like coding .. I enjoy it. But, business/team issues are challengeable for me too and I like to consider them
 
They are two very different careers, and I don't think you can be (as) good at each of them. If you could take the product manager job for just a while, and make sure you stay (in off time) up to date with tech, could that work?
You might find out that although you like management, you actually suck at it :-)
 
@PeeHaa I forgot to set a constant in my bootstrap file which prevents the application to exit on an exception, see github.com/OXID-eSales/oxideshop_ce/blob/…
 
@Derick how can I stay up to date with tech while I don't have any touch with it for the whole day?
 
1:57 PM
spare time
 
@Gordon will take a look at it, thanks
 
my bad :-)
thanks a lot
 
Also it would not have been a problem if your cli check would have been correct @AlfredBez
 
@Derick probably I need to plan for it .. I can sign a contract to be a PO for 1 year just to test it.
 
1:59 PM
Although I am guessing here
Are you using phpdbg by any chance?
 
@Shafizadeh The article that @Gordon pointed too seems worthwile to read
 
sure, I will take a look at it certainly
 
@Shafizadeh there is no reason why you cannot go back to a dev role when you find out mgmt isnt for you. Losing touch with engineering is definitely an issue but it's nothing you cannot recover
 
@Gordon sounds promising
 
mgmt is great. you don't do anything for the whole day. but you will be busy all the time. and you get more salary.
 
2:02 PM
hahaha .. you get money just for responsibility ... that's not easy
 
@Derick can you give me an estimate how much time producing an episode of your podcast takes on average inkl. all pre and post work?
 
@Gordon you need to care about the member of the team, about the product, meeting deadlines, conveying the business vision to the team, making a roadmap etc ..
 
@PeeHaa yep, the cli check was fixed in a newer version, I'm still on 6.3.6 github.com/OXID-eSales/oxideshop_ce/blob/v6.3.6/source/Core/…
@PeeHaa nope
 
Well that was my good deed for the day. I earned another drink \o/
 
@Gordon Sure: prep: 15-30 minutes, organisation: 15 minutes, recording: 30-45 minutes, editing: 2 hours, and soon also: audio transcriptions: 45 minutes ­— so about 4 hours. Less if I record two at the same time.
It's faster with @NikiC because we do it often enough :-)
And it helps a lot too if people don't uhm and ah, and repeat a while sentence if they stumble.
 
2:12 PM
Waiting for me to realise you actually want me to start talking: 5 minutes
 
@Shafizadeh you have been a dev for just 3 years? I feel you should be careful because once you have been manager for longer it might be almost impossible to get back, and you might not have enough experience yet in decelopment. Entirely speculating here though
 
@Derick this is why I'm bad at interviews
 
Remember you probably would like a mgmt similar salary when going back to dev
 
@beberlei thanks for sharing your idea
 
I need to force myself to rehearse today
 
2:21 PM
@Tiffany Interview? I am talking about a podcast :-)
 
@beberlei a product-owner earns more money than a developer in your country?
 
@Derick I do that in interviews, I mean
 
@Tiffany The ums and ahs? :-)
Normal speech is a lot more forgiving about it
 
@Derick thanks
 
@Gordon What are you planning? :-)
 
2:24 PM
@Derick I am toying with the idea of an engineering mgmt podcast for entirely selfish reasons
 
:-)
 
PHP salaries kinda suck in the UK D:
 
*PHP $alaries
 
Do they?
 
Senior level is about £50k
 
2:39 PM
depends where in the UK, tbf
or more accurately, whether you are in London or not
 
Yup
 
@DaveRandom salaries in third world countries are usually low
 
meanie
 
Yup
 
not totally unjustified though
 
2:41 PM
so strange to see on the news the other day a guy asking his grandma if he can move to another country
 
...is that newsworthy?
 
it was apparently :P
 
@Gordon also you want to be careful with that particular comment, was sorely tempted to pick the low hanging fruit response "what about third reich countries?" :-P
 
2:53 PM
@DaveRandom I did nazi that coming
 
epic
well done
you win the internet for the day
 
not sure I wanna :D
 
it's friday, it comes with a free rebecca
 
3:23 PM
Hey, be sensitive about the war. My grandfather died in it.
(He fell from a guard's tower)
 
Please what is the class for creating fixed size array. something like $list = new ClassName(6500); google is not helping me?
 
@PeeHaa thanks.
@PeeHaa wont i get a perf advantage over regular $list = [];?
 
Probably. Is that really the issue you are facing?
 
@Ghostff it uses less memory but is slower
 
3:30 PM
@NikiC Is it?
On all operations?
 
presumably
 
So I can just kill this?
> The advantage is that it allows a faster array implementation.
 
Yes
 
\o/
 
Or change it to less memory usage
 
3:32 PM
it still allows it, we just don't have it :D
 
@pmmaga Can I hire you to be my salesperson? :D
 
sure! :P
 
I can pay you a lot of money!
:P
 
and all the comments said "its faster"
 
@PeeHaa such a fast learner
 
3:33 PM
not for long
@pmmaga ;_)
 
@PeeHaa @NikiC wasnt it faster because it only allows integer keys and doesn't need to do hashing on them? And not using a Hashmap underneath?
 
Too late. Changed the docs
Just change the implementation to make it slower
 
I like that approach. Can you add some other features we dont have yet so we are forced to align the impl with the docs?
That will make RFCs so much easier. "Why?" "The docs says so"
 
:D
 
3:49 PM
Wait can I use that to revive the short tag removal? /s
 
@PeeHaa can you pay me a lot of money? I will do many things for it, including (but not limited to) dancing naked on the roof of your house
 
Why pay for something I can get for free?
 
right? we've seen the pictures.
they are burned into our retinas
lngering there like faint ghosts… always disturbing
there is no peace of mind anymore
 
this Friday got weird
 
try being me
 
4:03 PM
no, I like having dual citizenship
 
4:28 PM
so close to beer o'clock…
 
4:40 PM
\o/
 
5:10 PM
It's always beer o'clock when you work for yourself, (and @Gordon isn't paying attention ;-) )
 
 
3 hours later…
8:11 PM
morning
 
8:23 PM
o/
 
8:41 PM
\o
 
 
3 hours later…
11:36 PM
Hello
 
Hallo
 
11:58 PM
I picked up munchies from the store, then tablets from the dispensary, came home, took a couple tablets, three hours later I have a huge craving for the one thing I didn't buy: French fries.
And it's too late to get some now
Tomorrow I'm going to have to buy some frozen French fries
 

« first day (3380 days earlier)      last day (1550 days later) »