JapanesePod101.com

Blog / April 2024

  • 30 April 2024Fix (again) for the account related emails

    Some days ago I received a message from Google that the Kanji Koohii email account was suspended. Thankfully as I signed in today and provided authentication, the account is back up.

    Emails should be working again so if you tried "Forgot Password" you should be receiving those emails again.

    I am not 100% sure but I believe the account may have been flagged because I naïvely used GMail SMTP to send the contact form messages. I noticed a spammy message one day, let's just say the person's email pointed to a very unsavoury domain. One way spammers get around filters is they put a relatively meaningless message but use the sender email to advertise a domain name.

    Perhaps naïvely so, I figured I could just send the user's messages to myself with the free GMail SMTP. However on the relatively few occasions a spammer/spambot sends a bad message, it looks like I'm the one sending those messages to Google servers.

    In order to make sure the account doesn't get flagged again I disabled the contact form. You can always reach me of course, the email address for feedback and account related questions is shown on the Contact page when you're signed in.

    As an aside I used to look up suspicious IPs with a site called "countryipblocks" and it would give me the CIDR for the "range" of IPs this IP belongs to, and I used that to tweak the Apache access file. Lately this site doesn't respond to IP searches. Would anyone know an alternative?

  • 5 April 2024Minor fix to Vocab Shuffle page

    The kanji on the flashcards of the Vocab Shuffle modes now correctly opens the Study page instead of flipping the card. Thanks to Vinickw for issue 320 on Github.

  • 4 April 2024Fixed the Contact form and account related emails

    Issues with sending account related emails as well as the contact form are hopefully fixed now.

    I have now finally implemented the free GMail SMTP to replace the unreliable shared hosting's builtin mail. The limit of 500 emails per day with Google is plenty enough for Koohii - whereas a limit of 100 emails per day as part of the free tier on some services like SendGrid was just a tad under what we need. On a really good day I've seen peaks of 80 registrations. Throughout the year when traffic increases it's not rare to see 40-60 registrations per 24h period, with an average around 30. Add to that password update and forgot password emails and we would definitely hit a 100 emails/day limit sometimes during the year.

    The main downside I found out using the free GMail SMTP - is all the emails must be sent "From" the Kanji Koohii email. For the contact form it prevents me from setting the user's email as the sender. It means 2-3 extra clicks/copy-paste when I reply to a Contact form message but it's a small price to pay for the free service.

    Hopefully this provides a better experience for new users as well as returning users - turns out Forgot Password is a feature that's pretty frequently used!

    Old laptops, new tricks

    Since I recently moved to a new co-loc arrangement and I don't have my desk yet I did this update on a late 2009 Macbook Pro! I needed something to keep me busy and to be able handle Koohii emails etc. I normally never work on a laptop but I had this one lying around so I figured, why not, let's see what we can do with it. I had a 240 GB SSD lying around, so I grabbed 8 GB RAM fairly cheap on Amazon and loaded it up with Ubuntu 22.04 and Windows 10!

    You can run some decent looking games like Tomb Raider Anniversary or Guild Wars, and of course emulators like DuckStation but I thought modern web tools like docker, npm Vite etc would be an issue... turns out I had low expectations! Running php/apache/mariadb in docker is pretty lightweight and building the frontend with Vite doesn't take long. It does take a good second when switching between pages in development mode however. Obviously the CPU usage goes up and down wildly when I fire up VSCode, or open Google Chrome or when I play YouTube videos. But otherwise the CPU tends to sit around 20%. No doubt it could be even lower with a lightweight Linux distro but I like the bells and whistles of Ubuntu + GNOME.

    Turns out the biggest downside to using this late 2009 Macbook Pro laptop is the screen! The colours on this LCD panel are washed out and it's really not usable for serious front end since you can't do any sort of subtle shading when designing a web page. This old laptop would be insane with a good screen.

By Month