June 2024

Doctor Who : Dot and Bubble #

Saturday, June 1, 2024 at 10:09 AM

I just put online the latest episode.

http://www.doctorwho2023.net/en/

I am about to watch it.

Comment

phil2bf : arrays #

Saturday, June 1, 2024 at 3:14 PM

I just added array support in my language.

It works great with the "left" and "right" commands I added yesterday.

http://www.philippe97.ca/phil2bf/

Here is a program that reads a string and prints it back when you press Enter.


array str 10 # read until lf right 1 get str decby str '\n while str incby str '\n right 1 get str decby str '\n end incby str '\n # rewind while str left 1 end # print right 1 while str put str right 1 end

Comment

Doctor Who : Space Babies #

Sunday, June 2, 2024 at 11:59 AM

It's wrong to make babies talk like adults.

Comment

phil2bf : read and write #

Sunday, June 2, 2024 at 5:00 PM

http://www.philippe97.ca/phil2bf/

I just made it easier to read and write strings contained in arrays.

This reads a string and prints it :


array str 10 read str '\n write str
This is my version of Hello, World. It asks for your name and writes it back with "Hello". If you do not give a name, it prints World.
print Your\ name\ :\ array str 10 read str '\n print Hello,\ ifnot str+1 print World end write str print !\n
Internally, strings start and end with a null byte. So, array size 10 means you can only store 8 bytes of text.

Comment

New Router #

Wednesday, June 5, 2024 at 2:03 PM

I just installed the router I configured yesterday (and bought over a week ago).

It takes a very long time to boot.

I screwed it to the wall.

I am now able to connect my work PC to the internet without having to give my employer access to my local network.

I used to use the guest network option on our old Wi-Fi router. Now I am using a cable :)

Comment

Wile E. Coyote and the Road Runner #

Wednesday, June 5, 2024 at 4:33 PM

I just finished watching the 50 episodes I downloaded a couple of months ago.

http://tv.philippe97.ca/Wile%20E.%20Coyote%20and%20the%20Road%20Runner/

Comment

Air Crash Investigation #

Friday, June 7, 2024 at 1:59 PM

I torrented the episodes a few months ago.

I just finished converting and putting online the episodes. That took two days.

http://tv.philippe97.ca/Air%20Crash%20Investigation/

Some episodes do not have sound.

Comment

Ethernet and Telephone #

Friday, June 7, 2024 at 4:50 PM

We're selling my mom's office.

She will thus be working from our home for a few months while we build the new house starting in September or October.

I want her to have her own telephone and internet. That way, when I make changes to my network, she will still have internet access.

She will be working from her bedroom upstairs or the table outside on our patio.

The only cable that goes from the basement to the common area upstairs is an old Category 3 cable with three pairs (blue, orange and green).

Yesterday, I terminated the cable in the basement. I also tested both telephone and ethernet on that Cat3 cable with my cable tester. I put the telephone on the blue pair and the ethernet on the orange and green pairs.

That way, when the Vidéotron technician moves the modem from the office to our basement, he will be able to connect telephone and internet through that cable and install the Wi-Fi router on the desk upstairs where the cable terminates.

I will then be able to connect her printer/fax to the Wi-Fi router and the telephone line. She will be able to both send and receive faxes.

In the basement, I screwed the telephone plug to the wall and used plumbing strapping to secure the Keystone RJ45 plug.

Although that Cat3 cable is really meant for 10 Mbit/s, I have used it at 100 Mbit/s and it works fine.

Comment

Doctor Who : Rogue #

Saturday, June 8, 2024 at 11:20 AM

I just finished putting online and watching the latest Doctor Who episode.

http://www.doctorwho2023.net/en/

This afternoon, I will be recording the french version on Disney+.

Comment

Doctor Who : Rogue en français #

Saturday, June 8, 2024 at 1:21 PM

Je viens de finir d'enregistrer le dernier épisode sur Disney+ et de le mettre en ligne.

http://www.doctorwho2023.net/fr/

Comment

No more aluminium #

Saturday, June 8, 2024 at 4:20 PM

Me and my dad just finished replacing old aluminium cables with new copper in the basement of my mom's office.

The old 14/3 aluminium cable fed two outlets.

Before :
Panel > 14/3 aluminium cable > outlet > 14/3 aluminium cable > second outlet > 14/2 copper cable > unknown

The black wire fed the two outlets and the red wire fed something else (we don't know what as we can't follow the cable).

We replaced the two aluminium cables.

Now :
Panel > 14/2 copper cable > outlet > 14/2 copper cable > second outlet > 14/2 copper cable > unknown

We replaced the two circuits with a single one that powers everything.

We also put new Decora outlets to make it look nice.

We also added two concrete screws to secure the wood piece under the right outlet to the wall. It was barely attached from the top.

Comment

Faulty Cat5 #

Sunday, June 9, 2024 at 7:33 PM

We have a Cat5 (not Cat5e) cable which runs from one end of the house to the other.

It goes from the electrical panel in the basement, up to the second floor, through the attic, the whole length of the house, down the wall, across the floor behind the molding and to an outlet behind a desk in my dad's bedroom.

Then another cable plugs into that outlet and goes to my computer room on the other side of the wall.

We have already replaced a faulty section of that cable with spare Cat5 we had.

When I test the whole cable with my cable tester, the 6th wire is intermittent. Sometimes it works and sometimes it does not.

So I made a pair of adapters (pictured below) that plug the orange and green pairs of the female plug to the blue and brown pairs of the male plug.

When I test the cable with my cable tester, wires 1, 2, 3 and 6 light up. Good.

But when I plug it into a switch, the link light keeps going on and off.

When I plugged it into my iMac, the connection kept coming and going.

After many tests with various switches and routers, I am beginning to suspect the quality of the cable.

We plan to replace it with new Cat6 cable.

I am sick of trying to make this old cable work.

Pictured below is the adapter in my room.

Comment

New cable #

Monday, June 10, 2024 at 6:41 PM

My dad just bought a 1000 feet box of Cat6e.

We're looking at replacing the faulty existing Cat5 cable.

We will need the rest for the new house we're building.

Comment

Damaged Cat5e #

Wednesday, June 12, 2024 at 12:04 PM

Yesterday, me and my dad planned to replace the faulty Cat5e cable with new Cat6e cable.

We tried pulling the new cable with the old cable, but were unsuccessful. The old cable would not slide through its hole.

But then my dad noticed that the cable was damaged (pictured below).

So I just added two keystone female RJ45 plugs and connected them together with a spare cable we had.

Now everything works great !

I'm glad we did not have to replace the entire cable.

Comment

New little box #

Wednesday, June 12, 2024 at 5:36 PM

I just installed a little box to attach the Keystone RJ45 plug to the wall under the electric panel.

The Cat5e goes in the bottom and a cable connects the outlet to the Wi-Fi router.

Comment

A/C supporting stand : built #

Thursday, June 13, 2024 at 3:45 PM

Me and my dad spent two hours building a stand for the A/C in my bedroom.

It used to be supported by a workbench.

The new stand is on wheels, making it easier to move.

I keep my A/C high so the water can run downhill through the window.

Comment

Second little box #

Friday, June 14, 2024 at 3:08 PM

I did not like my original setup with the plumbing strap.

So I installed the double Keystone box we bought.

The colors on the RJ11 plug were not accurate. I had to use a tester to make sure I was connecting the right wires to the right pins.

I tested Ethernet and telephone with my cable tester and they are both fine. I am also able to ping over it.

Before and after :

Comment

Doctor Who : The Legend of Ruby Sunday #

Saturday, June 15, 2024 at 11:03 AM

I just finished putting online and watching the latest episode.

http://www.doctorwho2023.net/en/

Comment

Doctor Who : La Légende de Ruby Sunday #

Saturday, June 15, 2024 at 1:41 PM

Je viens d'enregistrer et de mettre en ligne le dernier épisode.

http://www.doctorwho2023.net/fr/

Comment

Inside Out 2 #

Saturday, June 15, 2024 at 3:05 PM

Even though I do not like those movies, I uploaded the HDCAM version of Inside Out 2.

http://www.pixarmovies.net/

I will not be watching it. I just want my collection to be complete.

Comment

Proving people from the future can travel back in time #

Saturday, June 15, 2024 at 7:30 PM

In cégep, my electricity professor posed a simple test to know if we will be able to travel through time :

We just have to remember to come back in time to that particular date. Since no one appeared, it would mean that people from the future cannot travel back in time.

The test was invalid.

I guarantee you that two days later, everyone forgot about that. For the test to be valid, we would have to remember that date and time for many, many years.

Comment

Dust bunnies : gone #

Sunday, June 16, 2024 at 3:06 PM

I just vacuumed the floor of my bedroom.

I had three massive dust bunnies under my bed.

They are now gone :)

The last time I vacuumed my bedroom was three years ago (June 2021).

Comment

The past #

Sunday, June 16, 2024 at 3:26 PM

My mom at last christmas : I wish we could see how the past was like.

Me : It's called a picture.

Comment

phil2bf : no more functions #

Monday, June 17, 2024 at 4:47 PM

I was getting segmentation faults with some programs I was making and got scared.

So, to make my compiler safer for my server, I removed function support.

I did not really like functions in the first place anyway.

I made the rest my compiler as secure as I knew how.

I hope nobody finds a flaw in my compiler and gets access to the "www-data" user.

If you do find a flaw, please email me about it instead of messing up my server :)

http://www.philippe97.ca/phil2bf/

Comment

We have to get rid of that house #

Monday, June 17, 2024 at 5:07 PM

I'm talking about my mom's office.

We have a potential buyer : our neighbour. He owns the big garage next to the house. He wants the house for its garage. He plans on renting the main floor.

But now, we discovered that the soil under the house may have been contaminated by the garage many years ago.

If they do find that the ground is contaminated, the house looses all of its value. It would take an awful lot of money to decontaminate the ground.

The potential buyer agreed to sign a document with his bank that if the ground is contaminated, he's responsible for it.

He seems to really want the house. Hopefully he buys it.

When my parents bought the house in 2011, they were not made aware that the ground could be contaminated. If they were, they would have bought another house.

We just have to get rid of that house quick before it becomes our trouble.

Comment

A/C : installed #

Tuesday, June 18, 2024 at 1:53 PM

Yesterday, I installed my A/C in preparation for this 30°C+ night.

I plugged it into the same circuit as the kitchen lights downstairs. The outlet is on the second floor and the pink extension cord runs under my door and into that outlet (pictured below).

My mom's A/C is on the one circuit that feeds the whole upstairs.

My dad's is on the bathroom circuit. He has a long red extension cord that runs across the hallway in front of my room and the bathroom (pictured below).

Comment

Damned little light #

Tuesday, June 18, 2024 at 2:46 PM

A few days ago, we fixed the long Cat5e cable that runs from one end of the house to the other.

We replaced a broken section with two female plugs and connected a cable between them.

When I plug it into my switch, the little light is green. This means that the connection is gigabit. A speed test over the connection gives us our 200 Mbit/s.

What is weird is that the light turns orange after a few minutes and the connection drops to 100 Mbit/s.

I don't get it.

There are 9 female keystone outlets and 11 RJ45 male plugs between my switch and the basement Wi-Fi router (including the end connections).

I wonder if it is too much.

We are not able to fish a new cable (which would be the perfect solution).

Ideally, I would replace the whole cable with brand new Cat6e cable [SIC].

Comment

Safari URL bar #

Wednesday, June 19, 2024 at 2:59 PM

jwz just shared an awesome Safari trick.

I love it. I just removed the buttons I did not use.

Before and after :

Comment

Brainfuck pyramid #

Wednesday, June 19, 2024 at 3:29 PM

I just made a small program that prints a pyramid.

Try it here :

http://www.philippe97.ca/phil2bf/


char count set count 20 print + char dashes copy dashes count while dashes dec dashes print -- end print +\n char stars zero stars char spaces copy spaces count char loop copy loop count while loop dec loop inc stars dec spaces print | char newspaces copy newspaces spaces while newspaces dec newspaces print \ # end char newstars copy newstars stars while newstars dec newstars print ** end char newspaces copy newspaces spaces while newspaces dec newspaces print \ # end print |\n end print + char dashes copy dashes count while dashes dec dashes print -- end print +\n

Comment

YouTubeDownloader : I give up #

Wednesday, June 19, 2024 at 6:17 PM

I'm not going to be able to fix it this time.

https://github.com/ytdl-org/youtube-dl/issues/32815#issuecomment-2174312866

It's getting too complicated and I give up.

http://ytd.philippe97.ca/

Comment

My mom's A/C #

Thursday, June 20, 2024 at 12:35 PM

I took a picture with my infrared camera.

Comment

ATV : leak fixed #

Thursday, June 20, 2024 at 4:23 PM

For the past few times we used our ATV, we noticed that it was leaking fuel.

Today, we looked for the source of the problem.

After removing a few covers, we noticed that the fuel line was broken at its connection to the carburetor.

The fix was simple : Disconnect the fuel line. Cut out the broken part. Connect it back in.

I forgot to take a "before" picture.

I know, the fuel line is not in focus. My dad took the picture. (The leak was where the green corrosion is)

Comment

Rebooting. Rebooting. Rebooting. #

Thursday, June 20, 2024 at 4:30 PM

My work PC keeps rebooting. Multiple times a day.

It might be doing updates. I don't know.


The other day, it asked me if I wanted to save all of my files on OneDrive. I had two choices : "Take the risk" "Continue" I had no idea what I needed to click to opt-out. So I clicked Continue and hoped there would be a way to opt-out of OneDrive later. Fortunately, there was. "Keep files only on this computer". Now I know I should have clicked on "Take the risk". This crap should be illegal.

Comment

Grey trailer : floor replaced #

Friday, June 21, 2024 at 5:30 PM

Me and my dad spent four hours removing and replacing the floor of our grey trailer.

We will do the sides another day.

Comment

Pointy Brainfuck pyramid #

Friday, June 21, 2024 at 5:44 PM

I just made a pointy version of my pyramid.

http://www.philippe97.ca/phil2bf/


char count set count 20 print + char dashes copy dashes count dec dashes while dashes dec dashes print -- end print -+\n char stars zero stars char spaces copy spaces count char loop copy loop count while loop dec loop dec spaces print | char newspaces copy newspaces spaces while newspaces dec newspaces print \ # end print * char newstars copy newstars stars while newstars dec newstars print ** end char newspaces copy newspaces spaces while newspaces dec newspaces print \ # end inc stars print |\n end print + char dashes copy dashes count dec dashes while dashes dec dashes print -- end print -+\n

Comment

phil2bf : now case-insensitive #

Friday, June 21, 2024 at 6:10 PM

I just used strcasecmp() instead of strcmp().

This affects both commands and variables.

http://www.philippe97.ca/phil2bf/compile.c

Comment

Mom's office : Sold #

Friday, June 21, 2024 at 8:03 PM

Our neighbour just officially bought the house.

Comment

Doctor Who : Empire of Death #

Saturday, June 22, 2024 at 10:01 AM

I just finished putting online the last episode.

http://www.doctorwho2023.net/en/

I am about to watch it.

Comment

Grey trailer : done #

Saturday, June 22, 2024 at 3:21 PM

Me and my dad just finished the sides of our grey trailer.

We installed the license plate. The job is now complete.

Comment

Doctor Who : L'Empire de Mort #

Saturday, June 22, 2024 at 4:28 PM

Je viens d'enregistrer et de mettre en ligne le dernier épisode.

http://www.doctorwho2023.net/fr/

Comment

Doctor Who : Yards #

Sunday, June 23, 2024 at 10:37 AM

They did not translate "yard" in the french version.

In french, "yard" is "verge". They still said "yard".

Comment

If it could've, it would've #

Sunday, June 23, 2024 at 1:28 PM

I believe things can only happen one way.

In Canada's Worst Handyman, the kitchen was not finished. Andrew asked the team if the kitchen could have been done in less time and they said yes.

To me, if the kitchen was not done, it means it cannot be done.

Comment

ATV : starter working #

Sunday, June 23, 2024 at 2:51 PM

For the past few times we started our ATV, the started decided it would work again.

Now we can't fix the problem because the problem is (maybe temporarily) gone.

Previously, when we pushed the start button, the relay would click but the starter would not turn.

Comment

Tangled #

Monday, June 24, 2024 at 12:45 PM

I just finished watching Holmes on Homes.

http://www.holmesonhomes.net/

I am about to start watching Tangled.

http://www.disneytangled.net/

Comment

Doctor Who french : files now smaller #

Tuesday, June 25, 2024 at 1:03 PM

Yesterday, I used ffmpeg to lower the bitrate of my recorded french episodes of Doctor Who.

The 480p files I recorded with QuickTime were over a gigabyte each. The bitrate was over 3 Mbit/s.

I lowered the bitrate to 300 kbit/s and reduced the fps from 60 to 24.

The files are now between 100 and 200 MB.

The quality is OK to me. It's just a little choppy between frames.

ffmpeg -i big.mp4 -b:v 300k -r 24 small.mp4

http://www.doctorwho2023.net/fr/

Comment

CDN changes #

Tuesday, June 25, 2024 at 3:24 PM

I just modified when videos are going through my CDN.

Previously, every video under 512 MB would go through Cloudflare and the others would be served directly from my server.

Now, by default, videos are served from my server, but if they have been recently accessed, they go through Cloudflare.

When a video is accessed through Cloudflare, the entire video is downloaded from my server even if only part of it is downloaded from the browser.

Now, only the part that the browser asks for is downloaded.

The video will go through the CDN if you reload the page.

Comment

More info #

Wednesday, June 26, 2024 at 3:55 PM

I just added some information to every video on my websites.

Size, duration, bitrate and ratio.

Comment

Light sabres make no sense #

Thursday, June 27, 2024 at 12:45 PM

To be able to see the laser, the light would have to go sideways at various angles. Lasers only go straight unless a mirror/object is in their path.

Plus, you've got the absurdity of having the laser stop at a certain distance from the handle.

Comment

Doctor Who 2023 : files now smaller #

Thursday, June 27, 2024 at 5:08 PM

I lowered the bitrate and frame rate.

The videos used to be over a gigabyte each.

They now average 150 MB.

Quality is acceptable to me.

http://www.doctorwho2023.net/en/

Comment

Lowering the bitrate #

Saturday, June 29, 2024 at 7:44 PM

I spent the last few hours lowering the bitrate of various series.

- Backyard Gold
- Doctor Who 2023 french and english
- Gold Rush Seasons 12, 13 and 14
- Parker's Trail Seasons 5, 6 and 7

http://www.goldrush2010.net/

http://www.doctorwho2023.net/

Comment

YouTubeDownloader is back ! #

Sunday, June 30, 2024 at 8:34 AM

I solved the "n" challenge.

Instead of working server-side and be written in PHP, it is now a client-side bookmarklet that works on the YouTube website.

Drag the "YTD" link to your favourites bar and click it while watching a YouTube video.

http://ytd.philippe97.ca/

You can see the code I wrote :

http://ytd.philippe97.ca/bookmark.js

The error messages are in french. Sorry not sorry.


The problem with the "n" challenge is that it requires running a very complicated JavaScript function and passing the "n" parameter through it. There is no easy way to run JavaScript in PHP without having to install a separate interpreter. By running client-side, I can simply use eval().

Comment

Lowering the bitrate #

Sunday, June 30, 2024 at 10:41 AM

Here is the part of my bash script that resizes the video.

$src is original big file
$dst is the new small file

It makes them 640 pixels wide.


IFS=x read width height rate < <(ffprobe -v error -select_streams v -show_entries stream=width,height,r_frame_rate -of csv=p=0:s=x "$src") width2=640 ((height2 = height * width2 / width)) ((height2 += height2 % 2)) if [ "$rate" = "60/1" ] then rate="30" fi ffmpeg -i "$src" -b:v 300k -b:a 80k -r "$rate" -filter:v scale="$width2:$height2" "$dst"

Comment