-
by
-
π Newsstand
byGoogle News RSS reader for Mac OS 9 More than 200 curated topics Top news available for 24 countries Designed with an Apple Platinum interface Natively written in Mac OS 9
The world needs more software like this. So clean and with minimal system requirements. Lovely. -
Checkin to SOTETSU GOODS STORE δΊδΏ£ε·
γγγγ£γ³β€οΈ -
Checkin to ε «εΉ‘ε±±ε ¬ε
Park time. π₯΅Double wide slide -
byFound a clinic in Ikebukuro (Tokyo) thatβll vaccinate people without their voucher and managed to get a slot before it filled up. 7-days until V-day! My voucher should be coming in 3 weeks, so just in time for the second jab. Excited doesnβt begin to describe how I feel.
-
The Week #50
by- It was Father's Day this week. I made chicken fajitas for the family and they were a hit. I was also able to talk with both of my dads (father/step-father) for about 2 hours total. It feels like it's been ages since I've been able to focus and talk with them. I always say I should do it more often, but for some reason, I don't.
- I got the physical copy of Web+DB Press that includes my article on getting started with GraphQL and Django. It took a lot of work to edit the piece down to 8 pages, but in the end I believe we were able to whittle away the weaker parts of the article and I could say everything I wanted. Seeing your name in print never gets old.
- Pete opened the first issue on Tanzawa not opened by me asking some questions. It made me realize that I should add screenshots and talk about Tanzawa supporting Micropub/Indieauth/Webmentions so you can post with whatever client you'd like.
- I find myself wanting to use Email more. I don't really use it β in fact I can count the number of emails I've sent at work in the 4+ years I've been there: 0. Everything happens via Slack or some web interface. I wonder if there isn't a way for me to handle more of async tasks via email to standardize my workflows better?
- Jacob (who seems to make a weekly appearance on this column) told me about this podcast where they asked the question "What if the newscycle was 100 years β what would the story be?".Β Think, you get to ignore the politics of the day, what's the big story? Their answer was that it would likely be the doubling of the average human lifespan.
This got me thinking β so much of our life seems to get lost in the daily battles. Often enough that we lose sight of the bigger trends over the weeks, years, decades. Does focusing on too small of a timescale make it difficult to achieve your goals? Would focusing purely on getting things right for the week/year/decade make each day more successful, on average?
I think it might. We tell ourselves we need to do X everyday (run, eat better, whatever). But we slip up one day and beat ourselves up. Rather than focusing on the 5 days we were successful that week, we dwell on that time we messed up. It all gets you demotivated. I'll have to experiment with reframing things to longer timescapes over the coming weeks and see how it turns out.
-
How to Pipe Python stdout with xargs
byWhen writing instructions for getting started with Tanzawa, users needed a way to set a unique SECRET_KEY in their environment variable configuration file. Initially I had a secret key entry in the sample file with some instructions to "just modify it". But that felt like I was just passing the buck.
What I wanted to do was to generate a unique secret_key and output it to the .env file. Outputting just the secret key is simple, you can just use >> and append output to an existing file. But I wanted to use my Python secret key output as an argument to another command.
I did it as follows:python3 -c "import secrets; print(secrets.token_urlsafe())" | xargs -I{} -n1 echo SECRET_KEY={} >> .env
1. Use the Python secrets module to generate a secure token.
2. Pipe the output to xargs.
3. -I is "replace string" and "{}" is the string we want xargs to replace. -n1 limits us to a single argument.
4. xargs executes and takes our Python output as an argument and replaces the {} with it, giving us our desired string.
Writing this now, I probably could have just used Python to include the SECRET_KEY= bit and forgone using xargs, but it was good practice anyways. -
Response to
byA few days ago, I decided to purchase the Adafruit Thermal Printer, which was compatible with the Raspberry Pi. This thermal printer has been on my mind for a while but this week a reason for buying one came to mind (aside from the fun of experimenting with a thermal printer which was obvious to me).
Really enjoyed this series from James about hooking a thermal printer to a cronjob that'll print his weather, webmentions, and news off in the mornings. Brilliant! I've got some Pi's laying around collecting dust, I should use them for something fun like this. -
byExpanded Tanzawa README instructions for running a local development version of Tanzawa using Docker. If you give them a whirl and they don't work or are confusing, let me know with a webmention, tweet, or opening an issue. ππ»
-
by