October 2022

Death countdown #

Saturday, October 1, 2022 at 7:35 PM

I'm watching Doctor Who episode named 42.

Who put a countdown in the system ?

Why ?

Comment

Front Controller 0.10 #

Tuesday, October 4, 2022 at 3:02 PM

Over the last couple of days, I've been making Front Controller bilingual.

It supports french and english by default, but you can add more languages by editing the app/util/STR.json file.

Version 0.6 (english only) is still available.

http://fc.philippe97.ca/

Comment

SMTP on my iMac #

Thursday, October 6, 2022 at 4:48 PM

I just installed my PHP SMTP server on my iMac.

I've tested it with telnet and it works :)

Every email ends up in a folder on my iMac.

To make it accessible to the internet, I would have to make my PHP script able to forward emails from my Ubuntu server to my iMac, as port 25 is already pointing to that server.

I'll try to do that this weekend :)

Comment

SMTP on my iMac, part 2 #

Friday, October 7, 2022 at 3:36 PM

I have successfully made my iMac able to receive email.

I modified my PHP SMTP server so it can transfer email from the internet, through my Ubuntu server, to my iMac.

Now, all emails sent to p@imac.p97.ca end up in a folder on my iMac.

That was fun :)

Comment

I can now reply ! #

Saturday, October 8, 2022 at 2:56 PM

I am now able to reply to email sent to p@p97.ca :)

I made a PHP webpage that allows me to send email.

It was easier than I thought.

My previous attempts did not work because I was not connected to the right server.

To send to *@gmail.com, I was connecting to smtp.gmail.com using telnet.

I was supposed to connect to the server listed in the MX DNS record of gmail.com.

I did not need authentification or encryption as I previously thought.

Simply connecting to port 25 is working.

Comment

I messed up #

Saturday, October 8, 2022 at 4:46 PM

I tried to add an SPF record for p97.ca but it didn't work.

Gmail is no longer receiving my emails even though I deleted the SPF record.

Sending to Videotron works.

I hope it will work again when the DNS cache expires in an hour.

Comment

It works again #

Saturday, October 8, 2022 at 5:43 PM

I waited an hour and I can now send email from @p97.ca to @gmail.com.

Comment

Email size #

Sunday, October 9, 2022 at 11:45 AM

I just upped the maximum email size on my server from 1MB to 5MB.

I also tested scanning something on our networked printer/scanner and it successfully ended up in my inbox (p@p97.ca).

Comment

Email worries #

Sunday, October 9, 2022 at 4:34 PM

I wonder if there is something someone can send to Gmail that would result in me being blocked sending emails to Gmail.

I'm afraid someone can send a lot of spam with my email address in the From header and get me blocked.

This is why I tried to setup SPF (which did not work).

Comment

I can now send attachments ! #

Monday, October 10, 2022 at 2:39 PM

I just modified my email-sending PHP script so that I can send attachments.

It was fun :)

Comment

I am vaccinated, again #

Thursday, October 13, 2022 at 3:53 PM

I just got my fourth dose today.

It was about an hour from when we entered the building to when we came out.

Comment

Paper, but no printer #

Thursday, October 13, 2022 at 3:59 PM

For my work, I am now working on (testing) an online order website my supervisor made for an italian restaurant.

I am going to need a thermal printer to test it. (The printer will be installed in the restaurant's kitchen)

(My employer is in Montréal and I am in Québec working remotely, he thus needs to send me a printer through the mail)

I just got the paper but the printer is not yet there.

Comment

I got the printer #

Friday, October 14, 2022 at 3:53 PM

It is probably used, judging by the light scratches on it.

The Feed button works, but I will have to wait until Monday for it to be configured by my supervisor.

(I have ShowMyPC installed, so he can take control of my PC at any time)

Comment

Used printer #

Saturday, October 15, 2022 at 10:20 AM

Turns out the printer was definitely used.

According to the self-test, it printed 92 kilometers of paper and did 533 692 cuts.

Comment

Second spam email #

Sunday, October 16, 2022 at 10:07 AM

I just got my second spam email since September 10.

It was for the same website as the first one.

Comment

I got a raise :) #

Saturday, October 22, 2022 at 9:13 AM

Yesterday, my boss told me that they would raise my salary from $19/h to $22/h.

I also got a $500 bonus :)

Comment

Damned fly #

Sunday, October 23, 2022 at 10:31 AM

For the past couple of days, there has been a fly in my room.

No matter how often I try, I can't squish it with my hands.

As soon as my hands get close to it, it flies away.

Comment

Flypaper #

Sunday, October 23, 2022 at 11:30 AM

I just hanged flypaper to catch the fly.

Comment

The fly is dead #

Monday, October 24, 2022 at 12:17 PM

My dad successfully smooshed the fly with his hand.

Yay!

Comment

South Park en français #

Monday, October 24, 2022 at 5:20 PM

I just uploaded my collection of french South Park episodes, seasons 1 to 16.

http://tv.philippe97.ca/South%20Park%20en%20français/

Comment

The Power of the Doctor #

Tuesday, October 25, 2022 at 2:26 PM

I just uploaded the latest Doctor Who episode on my website.

http://www.doctorwho2005.net/.video/en/mp4/Season%2013-14/Episode%203%20-%20The%20Power%20of%20the%20Doctor.mp4

Comment

The eternal session #

Tuesday, October 25, 2022 at 4:43 PM

I am always annoyed at websites that constantly log me out.

I just modified Front Controller to use a session cookie instead of server-side sessions.

The cookie is stored in my user table, so it will never expire or change on its own.

This means that you can stay logged in forever.

If you ever forget to log yourself out on another device, I added a "Reset cookie" button that resets (changes) the cookie.

FC is also now much faster when changing pages.

(I was previously using a custom server-side session handler that saved the session data in the database, which slowed things down)

I was inspired by jwz :

https://www.jwz.org/blog/2008/05/take-my-cookie-choke-on-it-choke-on-my-cookie/

Version 0.13 is available :

http://fc.philippe97.ca/

Comment