Back
Similar todos
Only got ~5hrs of sleep after two double espressos yesterday, so I took a Lycopene capsule...signed up for a LinkedIn Premium free trial so I could send a message to a Kasikorn backend engineer to ask why users can't export their transaction history in CSV format...removed the 'Blog' link on nw.com b/c I don't have the WordPress blog up and I never really used the blog that much, added a link to my email address instead so people can contact me...started going through the Kasikorn API "Slip Verification" challenges...got the first one done...the second one requires I have SSL set up on my domain and not through Cloudflare...discovered while doing that that my whatdo site is returning a 404 if I try to sign in...got GoLand's db tool connecting to the digital ocean postgres db b/c I noticed that wasn't set up yet...install postgres on my macbook b/c something got messed up and somehow it seemed to not be installed...got all the db problems fixed, don't know how that happened...now having a CORS issue when running locally, all this stuff was working, IDK how it all broke...ok I remember now, I YOLO'd the backend code and disabled the existing router to get the Line echo bot working...sent an email to another local YouTuber to ask if I can be in a video with him...installed cursor and tried using it for a simple refactor task to get a sense of how it works...figured out a way (thanks to ChatGPT) to get the Line callback handler working while also not breaking the existing routes...went for a massage to give my brain cells some time to recover...used cursor some more and I get the hype, this is really cool, I'm surprised Jetbrains hasn't copied it yet...after a long while I finally got my whatdo backend working properly again (auth + user middleware working), it was a good learning experience with cursor and Go...got a GitHub Action set up so my DO dokku VPS will update when I push to main, so now both frontend and backend will update automatically when I push to GitHub...ending the day on this banger set: www.youtube.com/watch?v=d2340… Tomorrow: I need to bill hours to my client to make $, I want to try to finish the KBank API challenge to see if I can do the Slip Verification, I want to email another YouTuber, if I have any time left over I want to keep going with that Line/ChatGPT bot and try to make a frontend interface for it.
Only got ~6hrs of sleep, so try taking 120mg of lycopene...emailed back the WorkTime rep b/c their software isn't tracking any activity, it's crazy for it to be so broken in such a basic way...ask on Upwork forums if identity verification ever needs to happen again...created a Jira board for managing studying system design...started a pastebin system for rehearsing basic system design patterns daily b/c that's been working well for studying DSAs...feeling anxiety today, presumably from all the caffeine yesterday, so I'm going to take some Caffeine+ capsules to see if the extra vitamins in it makes the anxiety go away...run the Algolia HN API request that I found in the hnjobs repo in Postman as a first step towards grabbing those jobs myself...spent 30 minutes feeling anxious about what the next step should be, thinking I should set up the backend pulling jobs, before changing my mind and deciding I want to be able to use a frontend UI to connect my email address and then press a button to have the backend send an Gmail email for me...
Got my personal website (nathanwailes.com) being served by Netlify after destroying the Digital Ocean droplet that was hosting it (just an index.html file)...got the welcome YouTube video working again, I guess YouTube requires some new iframe attrs now before it'll allow it to be played...bought a new domain (wailesgroup.com) for $10 and set it up on Netlify with a copy of my nw.com domain, I'm thinking of trying to start doing cold-emailing to get work as an agency / remote-worker management consultancy b/c I think the current agency I'm working for is billing my time at a way higher rate than I'm getting paid...spent a few minutes thinking about and adding Jira tickets for what I should work on next for that project (not today)...spent some time studying the [hnjobs GitHub repo][1] to see how it worked, to use it as a stepping stone towards automating applying to HN jobs...spent some more time thinking about trying to do interviews with YouTubers, I'm now thinking it may not be so useful, as I don't have a product I'm trying to sell right now, it's unlikely to have any lasting impact, and it would probably be a one-time thing... [1]: github.com/nchelluri/hnjobs/
Got back into working on my HN-jobs-auto-applier: Built the UI to allow a user to click a button to connect their gmail account to my app and have it save access / refresh tokens to the backend...fixed misc things that broke for unknown reasons...got the backend deploying to digital ocean without erroring, not sure why it stopped working...currently trying to figure out why, when I ssh into my server, it seems to show me at an older commit, when my github action seems to be working without errors and having me at the newest commit...figured out that I was running the wrong command to check the current commit, IDK why an older commit was still present in some of the files...FINALLY got prod working where I can sign into gmail, upload my resume, and send an email to myself. FUCK that was so much harder than it should've been...added a netlify.toml redirect so that I can go to whatdo.com/jobs and have it load the SPA instead of 404ing...fixed a bug where a refresh token wasn't being saved to the db in prod...
Worked on getting ChatGPT working with the Line echo bot example...created a separate file to test the OpenAI API call...hit an error, turned out I needed to pay separately for API credits...hit another error from my request not being formatted properly...finally got it working, now I need to try to integrate it with the Line echo bot...updated the code to use the ChatGPT code and deployed it, but the bot isn't responding anymore, I need to examine the logs...checked the logs with `dokku logs api` (`api` being the name of my app) and saw the error: "You didn't provide an API key."...need to add my API key as an env var...got that added with `dokku config:set`...tested the echo bot again and IT WORKED. It is insane insane insane how fast I can get stuff working when I can ask ChatGPT for help at every step to cut through all the usual Googling to figure out how to do something...next up, hmm, I'm not sure, either work on an accompanying Vue frontend or try fleshing out the bot to handle the particular use-case I have in mind...sent an email to another YouTuber to see if I can do a video with him.
Successfully changed the Gmail quickstart.go example to send an email instead of just print the user's labels...emailed WorkTime support my two local WorkTime directories so they can look into why I'm not seeing any data in the web UI...order more post-its and bic pens...added a button that, when pressed, sends an email with Gmail...definitely noticing myself becoming way more productive now that the sun has set and it's gotten significantly cooler outside...after literally HOURS of fighting with Go (and Vue to a lesser extent) with Cursor's sometimes-unhelpful suggestions, I FINALLY got PDF uploading working...next up is to send the email with that resume...
today was my first day actually doing Go development instead of just tutorials: took a magnesium tablet b/c I felt anxious last night, I think from the caffeine in the cocoa I had been drinking; copied my frontend code from my flask/vuetify template repo to my go/vuetify template repo; confirmed I can serve the frontend code locally; installed Go; drank an iced cocoa; successfully started my 'Hello World' main.go backend file as a web app server; asked ChatGPT for help converting my "POST /users/" request to use Go; created a Go module; installed Postman macOS; took a 15min break after an hour; got my frontend app "talking to" my Go backend (successfully returned "Hello World" and had it on-screen in my frontend app); added Go middleware to log every request to the console so I can see what is happening; renamed my (default) branch from 'master' to 'main'; got live reloading for my Go backend (it automatically reloads the backend when I make changes to the code); confirmed my "POST /users/" returns 201 when I use the frontend registration form; came up with a task for tomorrow: get "POST /api/session" working; set up PyCharm to be able to explore my SQLite db from within the DB toolbar; confirmed that my user registration created a new user record in the db
Spent an hour going over my app ideas to try to decide on what to work on next, settled on trying to build a Line+ChatGPT bot that will run on my Dokku droplet.