September 2022

Introducing mythbusters2003.net #

Friday, September 2, 2022 at 5:23 PM

I just bought the domain name minutes ago.

I put my entire collection of MythBusters episodes on it.

http://www.mythbusters2003.net/

Comment

New door #

Monday, September 5, 2022 at 4:12 PM

Me and my dad just built a door to deny access to the alley between my mom's office and the garage.

All that is left is to paint it white after the wood has dried.

Comment

New email address #

Saturday, September 10, 2022 at 8:40 AM

I just wrote my own SMTP server from scratch in PHP (80 lines).

It works well.

For now, I only have one address : p@p97.ca

Pretty short eh ?

I don't have anti-spam on it yet.

I also can only receive, not send.

I also put a 1MB limit on incoming emails.

Comment

DB fun #

Saturday, September 10, 2022 at 11:27 AM

Yesterday, when I was working, I noticed that new rows wouldn't appear in MySQL Workbench.

Turns out the number of rows had just exceeded 1000, the default limit.

I changed it to 2000 and everything was fine.

Comment

Painted white #

Saturday, September 10, 2022 at 2:13 PM

Me and my dad just painted white the door we built last weekend.

Comment

Why the door ? #

Sunday, September 11, 2022 at 1:46 PM

We built a door for the alley at my mom's office last monday and painted it white yesterday.

We build it so that my mom can feel safer.

We've had instances of people urinating and defecating in the alley (we have an IP camera with motion detection).

Some people have also hidden themselves under the gallery and surprised my mom as she was walking from the house, across the alley and into the garage.

I was happy to do this with my dad for my mom.

Comment

Reading email #

Sunday, September 11, 2022 at 2:32 PM

For the last couple of days, I've been making a webpage to read email sent to p@p97.ca

It was easier than implementing a POP3 server.

I made it so that it would say performant with a very long list of emails.

All email is saved in one big mbox file.

I made a csv summary file so that my PHP script does not have to read the entire mbox file every time I want to read email.

Comment

Pictures in email #

Monday, September 12, 2022 at 9:46 AM

I just modified the webpage I use to read email sent to p@p97.ca so that I can see pictures sent to me.

I recursively parse the various multipart/mixed, multipart/alternative, image/* and text/plain parts of an email.

(My reader supports plain text only, not HTML).

The PHP reader script is now 204 lines long.

Comment

The Amazing World of Gumball #

Friday, September 16, 2022 at 3:56 PM

I just uploaded Seasons 1 to 4.

http://tv.philippe97.ca/The%20Amazing%20World%20of%20Gumball/

Comment

New work :) #

Saturday, September 17, 2022 at 12:54 PM

Monday, my supervisor will be giving me something new to work on.

I don't know what it is yet but I am excited.

I've been fixing bugs for weeks and I'm at a point where the application works very well.

I hope it will be on the same project, since I have it in mind right now.

Comment

Square brackets in PHP #

Saturday, September 17, 2022 at 2:16 PM

I never use square brackets to create arrays and assign variables.

I feel like array() and list() are much more PHP-like.

Comment

Tangled #

Sunday, September 18, 2022 at 10:55 AM

I just uploaded Tangled Ever After.

http://tv.philippe97.ca/Rapunzel%27s%20Tangled%20Adventure/

Comment

FC update #

Sunday, September 18, 2022 at 1:25 PM

I just translated Front Controller from french to english.

I zipped it as version 0.5.

http://fc.philippe97.ca/

Comment

FC update #2 #

Sunday, September 18, 2022 at 3:09 PM

I just added an Edit link in the Users page.

(You have to be logged in as admin to see it.)

It is now version 0.6.

http://fc.philippe97.ca/app.php/Users/

Comment

New work : what happened ? #

Monday, September 19, 2022 at 3:15 PM

I have been working on the same project since I started working in January.
It is a custom web application for a construction company.

I have added three new pages and fixed hundreds (if not a couple thousand :P) of bugs.

I had hoped the new work my supervisor would be giving me would be on the same project since I have it in mind right now.

But no, I will be instead be searching bugs in a restaurant's custom online order application.

He told me that they have not yet designed the new pages for the construction company project.

I don't get why they have not foreseen this.
I'm pretty sure they new I would be running out of bugs someday.

Anyway, I will be starting this new work at 10am tomorrow.
My supervisor will be installing something on my work PC.

From what I understand, there is a web application for people to order online and a Windows program to see those orders.

I will have more details tomorrow.

Comment

New work ? Nope. #

Tuesday, September 20, 2022 at 3:20 PM

Turns out, I will be working on making the construction company application work on mobile phones and tablets.

I was a little disappointed. I really wanted to work on the new project.

Comment

My first spam email #

Tuesday, September 20, 2022 at 4:49 PM

This morning, I received a spam email sent to p@p97.ca

Its body was base64-encoded HTML.

I assume they encoded it to evade dumb spam filters.

They did not have a text/plain version of the email.

I had to add HTML support in my reader PHP script.
(I just show the original HTML as plaintext since I have not yet made a HTML-sanitizer to prevent people from running <script>s in my webpage.)

Comment

PHP email reader script #

Tuesday, September 20, 2022 at 4:57 PM

The script I have made allows me to read email sent to p@p97.ca

By default, it displays plain text and images (text/plain and image/*).

It also supports multipart/mixed and multipart/alternative to see both text and images in the same page.

This morning, I added rudimentary HTML support :

First, as my script is parsing the email, it sets a global variable to true if any HTML is found.
This adds a link to the webpage.

This link adds a &html parameter to the URL.

My code then parses the HTML if that parameter is set.

It is then displayed undecoded (I do not yet do HTML-sanitization to prevent <script>s).

When parsing multipart/related, it only displays the first part (which is usually HTML).

Comment

Titanic #

Tuesday, September 20, 2022 at 6:08 PM

I wonder if it would have been better if the Titanic went straight into the iceberg instead of trying to go around it.

The way I see it, turning around means a giant scratch on the side.

While a "front attack" would mean just smooshing-in the front, possibly breaking less compartments.

Comment

Wisdom teeth #

Thursday, September 22, 2022 at 4:55 PM

I'm having five teeth removed tomorrow.

(Four wisdom teeth and a molar)

Comment

Wisdom teeth : Gone! #

Friday, September 23, 2022 at 4:46 PM

I just had my wisdom teeth (and a molar) removed.

Between the time me and my dad entered the building to when we came out, it was about two hours.

With the stuff they gave me it felt more like 30 seconds.

My mouth is still numb and they told me I couldn't spit.

Although I spit all the time, this is gonna be easy to do because my mouth is so numb I can't spit anyway.

Comment

Wisdom teeth : No pain #

Saturday, September 24, 2022 at 9:03 AM

My teeth do not hurt at all.

That's a good sign.

I still have to take a lot of pills.

Comment

MythBusters and water heaters #

Saturday, September 24, 2022 at 4:43 PM

Why is it always the bottom that fails and never the top ?

Comment