{ "version": "https://jsonfeed.org/version/1", "title": "ScottW/rites", "icon": "https://micro.blog/scottwater/avatar.jpg", "home_page_url": "https://scottw.com/", "feed_url": "https://scottw.com/feed.json", "items": [ { "id": "http://scottwater.micro.blog/2024/03/18/ruby-sub-vs.html", "title": "Ruby Sub vs. Gsub", "content_html": "
A little Ruby distinction I had not seen (or remembered seeing) before.
\nIn Ruby, both String#sub
and String#gsub
are methods used for string substitution, but they have a subtle difference:
String#sub
: This method performs a substitution based on a regular expression pattern, replacing only the first occurrence that matches the pattern.
\n
| \n\n
|
Output: hella world
\nString#gsub
: This method also performs a substitution based on a regular expression pattern, but it replaces all occurrences that match the pattern within the string.
\n
| \n\n
|
Output: hella warld
\nHat tip to ChatGPT, who answered this question for me.
\n", "date_published": "2024-03-18T11:54:18-04:00", "url": "https://scottw.com/2024/03/18/ruby-sub-vs.html", "tags": ["Code"] }, { "id": "http://scottwater.micro.blog/2024/03/15/heroku-cloudflare-ssl.html", "title": "Heroku + CloudFlare + SSL", "content_html": "Heroku has had pretty good free’ish SSL support for a couple of years. You add your domain, enable auto certs, and enter a DNS record.
\n\n
| \n\n
|
Heroku makes it super easy, but it does come with one big drawback: Heroku does not support root (apex) level domains. Whether you should use your root domain or subdomain and if it matters is a debate for another day. I only care about the user experience around setting up a root-level SSL cert and whether it is easy to set up and maintain.
\nLack of Heroku certs on root-level domains is usually not a big deal. Most of your traffic likely comes from something other than a person typing a URL directly into a browser (and even then, autocomplete based on browsing history helps guide visitors back). But if we could do it and it was easy to do, then why not?
\nIn practice, you would not want to CNAME your apex domain since it likely hides their records in the same node1.
\nHowever, a couple of DNS providers support “aliasing” apex-level domains without the side effect of making other records in that node unavailable. As far as I know, this is not an actual spec/standard yet, but its support is pretty solid and has been growing over the years.
\nThe three I know who support it today are:
\nBoth DNS Made Easy, and DNSimple requires you to choose to use this type of alias record explicitly. CloudFlare automatically does this if you add a CNAME for your root domain (regardless of whether it is on accident or purpose). I am not sure which is better, but every six months, I spend 30 minutes trying to remember how to do this in CloudFlare2.
\nAnyway, back to CloudFlare, I have been using them more and more for my projects. In addition to great DNS and pretty good support, they have a growing list of exciting features, such as workers.
\nSo how do we get going? To use CloudFlare for SSL for Heroku:
\nheroku domains add mkrank.com
)SSL will work, but it comes with a minor caveat. The traffic from your clients' browsers to CloudFlare will be secure. However, from CloudFlare to your Heroku app, it will not be. Chances are this is not an issue but a weak link. I did not even notice the weak link until I published a new app, MKRank4.
\nI built this app as a fun side project, and I want nothing to do with managing emails/passwords/etc., so I opted to use OmniAuth and enabled signing in with various existing sites.
\nEverything worked locally, but when I first deployed MKRank, I could not sign in with any third-party site. After a bit of debugging, I realized the callback URL from my app did not match what I had configured in each third-party app (all are hard-coded to use SSL).
\nSo what was going on?
\nWell, if you remember from above, communications between the client and CloudFlare were happening over SSL. However, CloudFlare was communicating back to my app over HTTP. Since my app received non-SSL traffic, the URLs it generated for OmniAuth did not use HTTPS.
\nOne fix would be to force OmniAuth somehow always to use SSL in production (this might be a good idea either way).
\nHowever, a better fix would be to enable SSL communication between CloudFlare and my app.
\nIt turns out this is very simple. All we must do is add the Heroku auto certs feature (heroku certs:auto:enable
). Once in place, Heroku will accept SSL traffic for our app.
The final step is to go back into CloudFlare and enable full SSL.
\n\nNow, all communication from the client (browser) → CloudFlare → Heroku is secure. Logins with OmniAuth will now generate the proper callback urls, and no additional configuration or monkey-patching was necessary.
\nEveryone sometimes finds this out the hard way when their email is no longer available because MX records are no longer available. ↩︎
\nActually, who am I kidding? I prefer being explicit, but as someone who does product support, I 100% get why they just made it so. ↩︎
\nyou should create a second CNAME on the www domain. Once in place, you can use CloudFlare’s page rules to redirect all www. traffic to the non-www URL. ↩︎
\nMKRank is an app for the mechanical keyboard community. It allows you to build lists of your favorite mechanical keyboard products. ↩︎
\nGetting the SQLite BackUp Script running on Hatbox took a little extra work.
\nFirst, to get access to the ENV variables (assuming you are not hardcoding), you need to add the following:
\n\n
| \n\n
|
Second, where to put the script? I had hoped to put it in the Rails bin directory. This works for getting it up to the server. However, anytime you deploy the execute permission on the script is lost.
\nMy next attempt was to add a folder called bin
to the shared directory. I set up a symlink to the file ln -sf ../../current/bin/backup backup
and then set the execute permission chmod +x backup
. This worked, but the execute permission was again lost after a deployment.
Ultimately, I copied the script to the shared/bin directory and reset the execute permission. If I change it, I must remember to update the copy, but now it works.
\nFinally, I went to the HatchBox cron page for my app, and configured the following to execute several times a day:
\n\n
| \n\n
|
HatchBox cron jobs start in your current
directory. To get to the bin folder, we need to navigate there before we can finally execute the backup.
I recently moved HowIVSCode to HatchBox. As part of their setup, they provide a shared folder for each application persisted across deployments.
\nHowever, at this time, there is no option to back up that data.
\nSide Note: Digital Ocean provides server backups, which would likely work, but I would rather my backups exist outside the network managing my servers.
\nWhat I ended up doing was writing a script that does the following:
\n.backup
command to perform a backup safelycurl
(so no aws cli dependency)On S3, I have the bucket configured to delete any files older than 31 days. This should keep costs in check, and you should configure this to your needs.
\nBefore the script, I want to give a big shout-out to Paweł Urbanek and his guide for doing this with PostgreSQL + Heroku. I have been running a similar setup for a couple of years now, and knowing my data is safe outside of Heroku is excellent. I also want to shout out this Chris Parson’s gist, which paved the way for sending the data to S3 without needing to install the ASW CLI.
\nThe script uses five ENV variables (although you can hard code your values at the top)
\nThe one BACKUP_S3_DB_PASSPHRASE
must be saved somewhere you will remember. This is the passphrase used by GPG. The only thing worse than losing your database is having a backup you cannot decrypt. 😁
Here is a gist of the script.
\n\n
| \n\n
|
Quick Summary of the script
\nbackuToS3
we will use at the end to iterate over each database in the directoryaws s3 cp "/tmp/${gpg_backup_file_name}" "s3://$bucket/$gpg_backup_file_name"
For reasons I will share in another post, I was forced to move two personal projects off of Heroku and onto HatchBox. The first, ThocStock, went very smoothly. I deployed the code, set a couple of ENVs, verified everything worked as expected, and finally updated the DNS.
\nThe second app, HowIVSCode, proved to be a bit more of a challenge. The first commits were about 4.5 years ago. Like many side projects with no revenue, apart from some gem security updates, it has not seen many changes over the last four years.
\nThe app was primarily built on Rails 5, TailwindCSS, webpacker, Administrate, and Delayed Job. Deploying to HatchBox yielded errors related to Python via Webpacker and led me down the trail of ripping out Webpacker, CSS building, and JS bundling. After a while, it felt like I was running in circles, putting out new small fires. All solvable problems, but then it hit me. This app has a total of 3 models and a couple of controllers. There is little value in maintaining the source history (and I still have it if needed).
\nI wanted to try out LiteStack, so I told myself I could do this in an hour or two if I started from scratch and copied over the models, controllers, and views.
\nIn typical developer fashion, 2 hours was not a realistic estimate (probably closer to 6 to 8), but I learned quite a bit along the way.
\nSo here is what I learned upgrading a mostly kludgy Rails 5/webpacker app to a fresh Rails 7.1 app using LiteStack + ImportMaps + Avo.
\nNOTE: I call this a migration instead of an upgrade because I am starting mostly fresh and pulling in the relevant pre-existing parts.
\nI had initially mentioned on X that using import maps required I execute the following on my own.
\n\n
| \n\n
|
This is something I would have expected Rails to just do based on the flags I had set when running new (and primarily based upon what was in my .railsrc)
\n\n
| \n\n
|
While writing this, I conducted several tests and discovered a few issues that may be bugs or inadequacies in the documentation. When using the –skip-bundle flag, the proper installation of Importmap, Tailwind, Stimulus, and Turbo is not facilitated. This might seem logical since installing them without bundling is challenging. However, I would have expected running the bundle manually later (or perhaps bin/setup) would resolve this issue.
\nIt also appears that with the --skip-bundle
flag, the Tailwind-Rails gem is not included when specified with the –css=tailwind flag.
Again, there is some chicken and egg here. It is on my list to dig into the source more to figure this out. But you will likely be up and running quicker if you do not use the skip-bundle flag.
\nThe short answer here is that everything you typically bundle with JavaScript is always an option (today) with importmaps. This is something to consider beforehand, especially if you have a list of JavaScript libraries you need to use. In the case of HowIVSCode, I could not experiment with DaisyUI. However, the long-term benefit of an app that will not get many updates is too good to ignore.
\nThe only way to log in or create an account with HowIVSCode is via GitHub + OAuth. OmniAuth now recommends adding the gem omniauth-rails_csrf_protection
. I didn’t think much about it and just added it.
However, once in place, you can no longer use a href as part of your sign-up flow. The reasoning for this makes sense, but in quickly trying to move to the most recent gem updates, I spun my tires here for far longer than I care to admit.
\nWhen relational data is small and often just a word or two, I use an array in PostgreSQL.
\nFor example, a migration for a small blog post table might look like this:
\n\n
| \n\n
|
I no longer need a separate tags
table or a tags_in_posts
related table. PostgreSQL provides the necessary functions to query this as needed.
Unfortunately, there are no Arrays in SQLite. However, all is not lost. SQLite does support JSON, so for now, I added a json column called data and the necessary arrays. This is just data I am recording, so we will have to see in the future if this holds up when querying by specific tags becomes necessary.
\nFor better or worse, I occasionally use @apply with my Tailwind CSS. VSCode kept complaining about (although it still worked) an Unknown Rule
. The fix is to set the *.css file association to tailwindcss
. Full details here.
My markdown content views previously used the markdown-views gem. This time around, I decided to go with SitePress. Overall, SitePress has been great to work with. However, one thing I struggled with was how to use a different layout for my content pages.
\nWith my SitePress pages, everything that is not the markdown body is set in a different Layout file. This way, I did not have to try and overly mix Markdown and ERB in my content (and as far as I can tell, you cannot even access SitePress’s page variables
\nI tried various ways to make this work, but I settled on creating a new controller derived from Sitepress::SiteController. Then, in my routes file, I specified that this controller would be used sitepress_pages(controller: "content")
for my pages.
Similar to the above concern, I wanted to be still able to set various meta tags via the meta-tags gem.
\nAgain, trying to avoid any ERB in my Markdown as much as possible, I added a meta section to my frontmatter and wired it up like this in the SitePress layout.
\n\n
| \n\n
|
I have a Stimulus controller that adds your API key to the clipboard when you click on it. Previously, I rendered a partial which wired up the controller <%= render partial: "auth_token" %>
The partial approach still worked (I know, ERB in MD), but the #
in data-action="click->copy-auth-key#copy
is causing RedCarpret (SitePress’s markdown processer) to start escaping everything after. The markdown-views gem uses Commonmarker for processing markdown and doesn’t appear to have this issue (I have tests to compare if someone is interested).
If I were using more stimulus in the project, I would probably need to dig deeper and/or swap Markdown libraries. My usage was simple enough; I just dropped the data-action attribute and wired up an event listener in my controller.
\n\n
| \n\n
|
Sometimes, being lazy is the correct answer.
\nSadly, there does not appear to be an easy off-the-self option to go in this direction. Most articles recommended doing a pg_dump to SQL and then massaging the file to work with Sqlite. Depending on the data complexity, this might be your best option. I was going from the old to the new app with roughly the same ActiveRecord models (minus the arrays).
\nI found generating a couple of JSON files from the original app and then looping over each of them with my new models to be the simplest repeatable option.
\nHatchbox provides each app with a persistent storage location. Using the database.yml, it is simple to set this as the folder for your data.sqlite3 file. However, I wanted to be sure that the other Sqlite databases, such as queue.sqlite3, are also correctly persisted. For the litequeue.yml, there is a db path option, but this is relative to the main app configuration.
\nLooking at the LiteStack docs, there was no obvious answer. However, digging through the source, there is an ENV variable you can set: LITESTACK_DATA_PATH
The benefit of the ENV is it also handles the data.sqlite3 file as well, so I could remove the hardcoded production path from my database.yml.
\nSide note: It still sticks the files in a production sub-directory. It is not the end of the world, but I hope it becomes optional.
\nI believe this is related to the non-bundle issue I had previously. Essentially, my bundle was only valid as is for M1 Macs.
\nThe fix was as easy as bundle lock --add-platform x86_64_linux
If you watch the output from a rails new
without the --skip-bundle
flag, you can see the --add-platform
flag is set.
I have been migrating a small app to Rails 7.x. The app has not been touched in a couple of years (Rails 5-ish with webpacker). I decided it would be simpler to start anew and just copy over the parts I needed.
\nOne thing I noticed on a new app without RJS installed was that setting the HTTP method on links was not working.
\nThere are two ways to fix this. One is to just use button_to
instead. This is arguably better since it actually does a POST (and submit). However, if you need/want to continue using link_to
, you can instead swap the method
for a turbo_method
.
\n
| \n\n
|
Ruby’s debugging story has improved dramatically in 3.x (and Rails).
\nI figured the best way to understand what’s happening in Campfire would be to attach the debugger and step through some of the more interesting parts.
\nUnfortunately, I was greeted with a recurring error that often looked something like this:
\n\n
| \n\n
|
At first, I was convinced that debugging was busted on my computer. But I spun up a new project, and everything worked as expected.
\nThen, I thought about the error above showing up multiple times and the problems with threads I had previously mentioned.
\nI restarted the process without cluster mode enabled for Puma (WEB_CONCURRENCY=0) and could connect the debugger as expected.
\nFrom here, I decided to compare the puma.rb file in Campfire to the one in the empty Rails 7.1 project I just spun up, and I found the problem.
\nIn the Puma configuration file, cluster mode is enabled if workers
is greater than 0.
In a fresh Rails 7.1 puma.rb file, the worker configuration looks like this:
\n\n
| \n\n
|
However, in Campfire, the RAILS_ENV check is removed
\n\n
| \n\n
|
My guess is that with Campfire being a chat app with lots of connectivity, they opted for Puma’s cluster mode by default.
\nThe good news is you can disable cluster mode in Campfire without changing any source. Just set the WEB_CONCURRENCY ENV to 0.
\nSomething like this should do the trick:
\nWEB_CONCURRENCY=0 rdbg -n --open=vscode -c -- bin/rails server -p 3000
David Kimura at Drifting Ruby has some good videos on setting Campfire up outside the Once installer. Outside of the 3.3 RC1 and stringio issues, I was running into another issue: I could not generate thumbnails when running on localhost. The thumbnails generated as expected when using Puma Dev. Still, on localhost, they were failing, and worse, I would typically end up with one broken thumbnail variant per thread pool worker.
\nFirst, here are my setup steps:
\nWebPush.generate_key
and copy the keys into ENV variables VAPID_PUBLIC_KEY
and VAPID_PRIVATE_KEY
msgpack
gem to my GemFileWith all of this in place, https://campfire.test worked as expected.
\nHowever, when starting the server via bundle exec rails server
(on an M1 MBP with Sonoma 14.3), the thumbnails of images were missing. I could click on the thumbnails and see them in the lightbox but not in the chat window.
Digging into the database, I could see they were not being analyzed, but I had no idea why.
\nThen I saw the following in the logs:
\n\n
| \n\n
|
The thread running ActiveJob running the ActiveStorage Analyze job was crashing.
\nA little searching led me to this bug thread and a suggestion to set OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
. A quick server reboot, and everything works as expected.
Before I got here, I also tried disabling cluster mode in Puma, WEB_CONCURRENCY=0 bundle exec rails s
, which solved the problem.
I submitted this as a bug to 37Signals. I am not sure if this is just something on my computer or not, so I would try it without these changes first.
\nUpdate: 37Signals confirmed this is a known issue. The env variable is actually set in the .pumadev
file which is why I did. not see the issue when using Puma Dev.
Typefully - a few options exist for posting to social media without logging in first. I am trying to get back into writing/sharing, and this seems like the best option.
\nIf Threads adds an API, all will be right.
\nCronometer - A replacement for MyFitnessPal. Short review: It is better in every way. It is easier to use, quicker and costs less.
\nI don’t track calories as much these days; with a change in my diet recently, I wanted to be a little more diligent.
\nCraft is a notes app similar to Notion, but I find it more responsive and easier to use. Craft syncs across all my devices and has been a joy for the last few weeks.
\nVia X: twitter.com/scottw/st…
\n", "date_published": "2024-01-18T10:20:09-04:00", "url": "https://scottw.com/2024/01/18/a-few-new.html" }, { "id": "http://scottwater.micro.blog/2024/01/18/the-hidden-month.html", "title": "The Hidden Month", "content_html": "New Year, new ambitions: start your own business and take control of your time and finances.
\nBut here’s the harsh reality: the adrenaline fades, and most give up within weeks.
\nHere’s a suggestion…
\nDedicate your weekends this year. Spend four hours each on Saturday and Sunday building your business.
\nThat’s a solid month (26 days) of focused work without sacrificing sleep or your regular schedule.
\nSpeed to market is overrated. Success comes from execution and continuous improvement, week after week, month after month.
\nPosted initially to X: twitter.com/scottw/st…
\n", "date_published": "2024-01-18T10:14:41-04:00", "url": "https://scottw.com/2024/01/18/the-hidden-month.html", "tags": ["Life","Business"] }, { "id": "http://scottwater.micro.blog/2024/01/08/troubleshooting-broken-software.html", "title": "Troubleshooting Broken Software Tools Still Sucks", "content_html": "20+ years of professionally building software, and here is how my last hour or so went.
\nheroku login
-> zsh: killed heroku login
hmmm…why did ZSH kill Heroku? It turns out it is just reporting what happened.
\nOpen the crash reports and get a bunch of text I barely understand.
\nI remember that I have a second brain that knows what this crap means. ChatGPT, can you help me?
\nIt does a decent job of educating me on what the reports (segfault on the main thread implies not even the hand of God can save this process).
\nWhen in doubt, just re-install.
\nNo dice.
\nGoogle shows me others with similar problems, but none related to Heroku, and nothing that looks promising.
\nI wonder what the (brew) Doctor thinks about this (Heroku was installed this way).
\nThe doctor takes her good old time getting back to me on this older Mac. But when she does respond, she says, “Dawg, your shit is F’ed Up!”
\nI am paraphrasing, but there are unlinked things, kegs with no formula,, dry taps, an unbrewed dylibs, and likely most importantly, this:
\n\nThis is weird because I had previously checked for an update after an OS update, and I had tried to re-install the tools just to be safe.
\nIn both cases, it said, “there are no updates, go away”.
\nAnywho, I run the following:
\nsudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
Eventually, notice the popup window (because why install them from the terminal), click OK to continue, and 10 minutes or so later, we are back in business.
\nThe key takeaways:
\nLast week’s early morning gym commutes were far from ideal. One morning, I attempted to leave and discovered I had a dead battery (actually, two dead batteries). Two days later, I had a close encounter with a deer while driving. Temperatures were in the low 30s at best.
\nHowever, at approximately 4:35 am on a Monday (today), I found myself not only commuting to the gym again but also feeling quite excited to get to work.\nIt struck me then that it all comes down to finding the type of training you genuinely enjoy. While there may be exercises considered “the best” or “better,” even engaging in the most mediocre exercise is far better for you than doing nothing.
\nThis wasn’t always the case for me. It took some trial and error, along with the willingness to start something, fully commit to it, and then be open to finding something that I both enjoyed and that yielded better results.
\nUltimately, what truly matters is taking that initial step and sticking with it. It is crucial to listen to your body and determine what it will take to enjoy the work.
\n", "date_published": "2024-01-08T10:40:30-04:00", "url": "https://scottw.com/2024/01/08/finding-joy-in.html", "tags": ["Life","ODF"] }, { "id": "http://scottwater.micro.blog/2023/12/12/sqlite-on-rails.html", "content_html": "SQLite on Rails: Introducing litestream-ruby
\n", "date_published": "2023-12-12T10:38:49-04:00", "url": "https://scottw.com/2023/12/12/sqlite-on-rails.html" }, { "id": "http://scottwater.micro.blog/2023/12/08/the-world-isnt.html", "content_html": "Charlie Munge:
\n\n\n", "date_published": "2023-12-08T11:36:05-04:00", "url": "https://scottw.com/2023/12/08/the-world-isnt.html" }, { "id": "http://scottwater.micro.blog/2023/10/13/ruby-enumerableany-at.html", "content_html": "The world isn’t driven by greed. It’s driven by envy.
\n
Ruby Enumerable#any?
\nAt first glance, this is not what I was expecting:
\n[false, false, false].any? => false\r\n
\nBut a quick glance at the docs:
\n\n\nThe method returns true if the block ever returns a value other than false or nil
\n
This can be handy for doing a bunch of small tests and detecting if anything passed.
\n", "date_published": "2023-10-13T09:48:26-04:00", "url": "https://scottw.com/2023/10/13/ruby-enumerableany-at.html" }, { "id": "http://scottwater.micro.blog/2023/10/06/ai-code-review.html", "content_html": "\nLooks interesting. I will definitely try it out once they support Ruby.
\n", "date_published": "2023-10-06T10:03:23-04:00", "url": "https://scottw.com/2023/10/06/ai-code-review.html" }, { "id": "http://scottwater.micro.blog/2023/10/06/whos-harry-potter.html", "content_html": "Who’s Harry Potter? Making LLMs forget
\n\n\n", "date_published": "2023-10-06T10:01:24-04:00", "url": "https://scottw.com/2023/10/06/whos-harry-potter.html" }, { "id": "http://scottwater.micro.blog/2023/09/18/in-a-similar.html", "content_html": "What do we do if we realize that some of our training data needs to be removed after the LLM has already been trained?
\n
In a similar vein to the Bill Gurley’s video, Malcom Gladwell had a recent podcast highlighting the misinformation in bills that would ban AR-15’s.
\n", "date_published": "2023-09-18T15:31:53-04:00", "url": "https://scottw.com/2023/09/18/in-a-similar.html" }, { "id": "http://scottwater.micro.blog/2023/09/18/a-truly-fantastic.html", "content_html": "A truly fantastic talk by Bill Gurley on the regulatory landscape and the influence of special interests - 2,851 Miles
\n", "date_published": "2023-09-18T15:27:20-04:00", "url": "https://scottw.com/2023/09/18/a-truly-fantastic.html" }, { "id": "http://scottwater.micro.blog/2023/09/12/suggestions-for-not.html", "title": "Suggestions For Not Forgetting To Remove Unused Code", "content_html": "I am working on a significant update/rewrite of part of KickoffLabs. I had a task to work through what we do in a Sidekiq worker. It was late on Friday when I got to this part of the code, and I decided to punt on it until Monday.
\nMonday morning, I grab a cup of coffee and sit down to finish this section off and see a comment I missed (and had missed for a long time).
\n\nOutside the screenshot, there is an if statement, ensuring this code was not executed in the last four years. Still, it was frustrating that we had missed removing it for so long.
\nI figured ChatGPT would have a good solution to stay on top of this, but it mostly just tried to explain to me how to use comments. :)
\nNext up, I asked on Twitter (and Ruby.Social):
\n\n\nAny suggestions (other than search) to ensure code like this gets cleaned up?
\n
From there, I got a lot of good suggestions.
\nTwo Ruby gems looked interesting:
\nIf I had to choose, I would go with todo_or_die since it would cause a failure/notification locally. I would rather not wait until there was a pull request/etc.
\nThe rest of the suggestions included if statements and date checks. My favorite, and the one I will likely adopt going forward, is to wrap it in a test that fails after a specific date.
\n", "date_published": "2023-09-12T09:38:36-04:00", "url": "https://scottw.com/2023/09/12/suggestions-for-not.html", "tags": ["Code"] }, { "id": "http://scottwater.micro.blog/2023/09/11/a-nice-demo.html", "content_html": "A nice demo of making an Alpine.js component.
\n", "date_published": "2023-09-11T09:46:27-04:00", "url": "https://scottw.com/2023/09/11/a-nice-demo.html" }, { "id": "http://scottwater.micro.blog/2023/09/01/interesting-break-down.html", "content_html": "Interesting break down of what people actually use ChatGPT for.
\nThe last couple of days I have been working with TSRanges in PostgreSQL and it ChatGPT has made it extremely productive.
\n", "date_published": "2023-09-01T09:08:10-04:00", "url": "https://scottw.com/2023/09/01/interesting-break-down.html" }, { "id": "http://scottwater.micro.blog/2023/08/25/nice-walk-through.html", "content_html": "Nice walk through going from a Turbo Frame to Turbo Stream
\n", "date_published": "2023-08-25T14:40:32-04:00", "url": "https://scottw.com/2023/08/25/nice-walk-through.html" }, { "id": "http://scottwater.micro.blog/2023/07/20/fear-is-our.html", "content_html": "Fear is our true enemy
\n\n\nAt the root of most fear is what other people will think of us. It’s paralyzing. It’s skewing. It distorts the very fabric of our reality – makes us behave in such utterly insane and cowardly ways that it’s hard to even describe.
\n
- via Ryan Holiday in Courage is Calling
\nThe older I get, the more I see this every day. Science says we only use about 10% of brains. But that is not what holds us back. We hold ourselves back because we are afraid of looking like a failure.
\n", "date_published": "2023-07-20T16:10:51-04:00", "url": "https://scottw.com/2023/07/20/fear-is-our.html", "tags": ["Life","Books"] }, { "id": "http://scottwater.micro.blog/2023/07/19/from-minutes-to.html", "title": "From Minutes to Seconds", "content_html": "I am tired of guessing the future of AI. What I am sure of, something routine like this used to take significantly longer than it does today.
\nIn the past:
\nNow, we are back to a quick search, which is kind of like Google in the old days.
\n\n", "date_published": "2023-07-19T14:34:41-04:00", "url": "https://scottw.com/2023/07/19/from-minutes-to.html", "tags": ["Code"] } ] }