Rejected Question Categories
⌘ Read more
@novaburst@twt.nfld.uk I doubt there will ever be a 2.0 … It may end up like java and they strip off the 1.
#!/bin/sh
# Validate environment
if ! command -v msgbus > /dev/null; then
printf "missing msgbus command. Use: go install git.mills.io/prologic/msgbus/cmd/msgbus@latest"
exit 1
fi
if ! command -v salty > /dev/null; then
printf "missing salty command. Use: go install go.mills.io/salty/cmd/salty@latest"
exit 1
fi
if ! command -v salty-keygen > /dev/null; then
printf "missing salty-keygen command. Use: go install go.mills.io/salty/cmd/salty-keygen@latest"
exit 1
fi
if [ -z "$SALTY_IDENTITY" ]; then
export SALTY_IDENTITY="$HOME/.config/salty/$USER.key"
fi
get_user () {
user=$(grep user: "$SALTY_IDENTITY" | awk '{print $3}')
if [ -z "$user" ]; then
user="$USER"
fi
echo "$user"
}
stream () {
if [ -z "$SALTY_IDENTITY" ]; then
echo "SALTY_IDENTITY not set"
exit 2
fi
jq -r '.payload' | base64 -d | salty -i "$SALTY_IDENTITY" -d
}
lookup () {
if [ $# -lt 1 ]; then
printf "Usage: %s nick@domain\n" "$(basename "$0")"
exit 1
fi
user="$1"
nick="$(echo "$user" | awk -F@ '{ print $1 }')"
domain="$(echo "$user" | awk -F@ '{ print $2 }')"
curl -qsSL "https://$domain/.well-known/salty/${nick}.json"
}
readmsgs () {
topic="$1"
if [ -z "$topic" ]; then
topic=$(get_user)
fi
export SALTY_IDENTITY="$HOME/.config/salty/$topic.key"
if [ ! -f "$SALTY_IDENTITY" ]; then
echo "identity file missing for user $topic" >&2
exit 1
fi
msgbus sub "$topic" "$0"
}
sendmsg () {
if [ $# -lt 2 ]; then
printf "Usage: %s nick@domain.tld <message>\n" "$(basename "$0")"
exit 0
fi
if [ -z "$SALTY_IDENTITY" ]; then
echo "SALTY_IDENTITY not set"
exit 2
fi
user="$1"
message="$2"
salty_json="$(mktemp /tmp/salty.XXXXXX)"
lookup "$user" > "$salty_json"
endpoint="$(jq -r '.endpoint' < "$salty_json")"
topic="$(jq -r '.topic' < "$salty_json")"
key="$(jq -r '.key' < "$salty_json")"
rm "$salty_json"
message="[$(date +%FT%TZ)] <$(get_user)> $message"
echo "$message" \
| salty -i "$SALTY_IDENTITY" -r "$key" \
| msgbus -u "$endpoint" pub "$topic"
}
make_user () {
mkdir -p "$HOME/.config/salty"
if [ $# -lt 1 ]; then
user=$USER
else
user=$1
fi
identity_file="$HOME/.config/salty/$user.key"
if [ -f "$identity_file" ]; then
printf "user key exists!"
exit 1
fi
# Check for msgbus env.. probably can make it fallback to looking for a config file?
if [ -z "$MSGBUS_URI" ]; then
printf "missing MSGBUS_URI in environment"
exit 1
fi
salty-keygen -o "$identity_file"
echo "# user: $user" >> "$identity_file"
pubkey=$(grep key: "$identity_file" | awk '{print $4}')
cat <<- EOF
Create this file in your webserver well-known folder. https://hostname.tld/.well-known/salty/$user.json
{
"endpoint": "$MSGBUS_URI",
"topic": "$user",
"key": "$pubkey"
}
EOF
}
# check if streaming
if [ ! -t 1 ]; then
stream
exit 0
fi
# Show Help
if [ $# -lt 1 ]; then
printf "Commands: send read lookup"
exit 0
fi
CMD=$1
shift
case $CMD in
send)
sendmsg "$@"
;;
read)
readmsgs "$@"
;;
lookup)
lookup "$@"
;;
make-user)
make_user "$@"
;;
esac
Off to my first health check-up in 3 ½ years. I’m almost 40 pounds lighter than I was back then, so I hope this goes well.
I Shouldn’t Complain
⌘ Read more
Had my 2nd interview yesterday. Here’s hoping it went well 🤞 should hear back within 2 weeks, which is only a short agonising wait 😅
What If? 2
⌘ Read more
Netflix Raises Monthly Subscription Prices in US, Canada
Netflix has raised its monthly subscription price by $1 to $2 per month in the United States depending on the plan, the company said on Friday, to help pay for new programming to compete in the crowded streaming TV market. From a report: The standard plan, which allows for two simultaneous streams, now costs $15.49 per month, up from $13.99, in the Unite … ⌘ Read more
Decorative Constants
⌘ Read more
Running untrusted apps more flexibly and simply: https://archive.org/details/akkartik-teliva-2021-12-25 (video; 2 minutes)
Review Jam, day 2: try a short task in Teliva. https://buttondown.email/reviewjam/archive/advent-of-foc-day-2-brutalist-convivial-computing
2-minute video: https://archive.org/details/akkartik-2021-11-14
@darch@twtxt.net
Getting this when trying to use it:
error executing template timeline: template: timeline:131:43: executing "twt" at <formatForDateTime>: wrong number of args for formatForDateTime: want 2 got 1
My nutritional supplements aim should be:
- 1 or 1.5 cups of lentils (or any beans you might like better).
- 2 or 2.5 cups of bitter greens.
- 1 cup of your favourite protein (or an egg), grilled, or fried with a little of olive oil.
- 1 or 2 tomatoes, or a handful if of the cherry type.
- No added sugars. If it is sweet, make it have fibre.
- No added salt (or very little and ionised), as salt is everywhere.
Related, I tried wild rice for the first time yesterday. It was different, in a good way.
We all strive to be like the others - more exactly, like the others, but better. (Chapter 2) Book Review: The End of Average - LessWrong
Finally! 😂
So, first multi-line test, because I coudn’t wait. 😄
- One line - Two lines - Three lines
And:
- One line 2. Two lines 3. Three lines
@movq@www.uninformativ.de 12,342 twts, totalling 6.2 MB. Would deleting help, or will they come back? I guess there is one way to find out! 😄
How would jenny handle multiline twts? Let’s find out! - One - Two - Three And: 1. One 2. Two 3. Three
published uxn tutorial day 2 | https://compudanzas.net/uxn_tutorial_day_2.html
@prologic@twtxt.net @jlj@twt.nfld.uk @movq@www.uninformativ.de
/p/tmp > git clone https://www.uninformativ.de/git/lariza.git Mon May 24 23:48:18 2021
Cloning into 'lariza'...
/p/tmp > tree lariza/ 12.5s Mon May 24 23:48:32 2021
lariza/
├── BUGS
├── CHANGES
├── LICENSE
├── Makefile
├── PATCHES
├── README
├── browser.c
├── man1
│ ├── lariza.1
│ └── lariza.usage.1
├── user-scripts
│ └── hints.js
└── we_adblock.c
2 directories, 11 files
Plan 9 Foundation is making the historical 1st through 4th editions of Plan 9 available under the terms of the MIT license. https://marc.info/?l=9fans&m=161650489113326&w=2
Done with the workout of today, 2 more to go and I have finished the 21 days program
@xuu@txt.sour.is @adi@twtxt.net Private Messaging is finally done in the messages_poc_2 branch. If you have time to have a look and play with it locally and test it out that would be great. The plan is to release this as the first version which only supports “on-pod messaging” right now (cross-pod to come later).
I applaud this, but I also advise against this for your career. Unless the change you’re making has immediate and significant business benefits, from a PM/EM perspective you’re 1) wasting time 2) potentially introducing bugs. The correct move is to wait until the org is so bogged down with tech debt that meaningful progress cannot be made, then switch companies/teams. Always leave the code better than you found it | Hacker News
7 helpful tips on how to be miserable: 1. Stay still. 2. Screw with your sleep. 3. Maximize your screentime. 4. Use your screen to stoke your negative emotions. 5. Set vapid goals. 6. Pursue happiness directly. 7. Follow your instincts. this isn’t happiness™ (7 helpful tips on how to be miserable, Brandon…), Peteski
tilde.club twtxt users: $ find /home -type d -name ‘public_html’ -exec find {} -type f \; 2>/dev/null | grep twtxt
If powerful forces consistently push us toward premature exploitation, we should almost always be biased towards exploring more. The Embarrassing Problem of Premature Exploitation - LessWrong 2.0
The world is an incredibly complex place and everything is changing all the time… trying to plan your career is an exercise in futility that will only serve to frustrate you, and to blind you to the really significant opportunities that life will throw your way. The Embarrassing Problem of Premature Exploitation - LessWrong 2.0
Hence venture capitalist Marc Andreesen’s first rule of career planning: don’t. The Embarrassing Problem of Premature Exploitation - LessWrong 2.0
Babies love putting things in their mouths: dirt, insects, bits of grass, their own poo. They have no sense of fear or self-preservation, and come up with endlessly creative ways to place themselves in mortal peril. Once they learn to talk, their constant experimentation with the world transcends the physical to the philosophical. They want to know everything. They are bottomless pits of curiosity, with very little in the way of attention span or self-discipline. Your typical two-year-old can only concentrate on a task for six minutes at a time. Young children are not self-aware enough to feel much in the way of shame, or embarrassment. Nothing is off-limits. The Embarrassing Problem of Premature Exploitation - LessWrong 2.0
When the emotion becomes too strong for speech, you sing; when it becomes too strong for song, you dance.” PBS: Think Tank: Transcript for “The American Musical, Part 2”
Today, workers change jobs on average every 4.2 years, according to a recent report on employee tenure from the Bureau of Labor Statistics. Why You Should Change Jobs Every Four Years | Monster.com
📚 Finished reading For We Are Many (Bobiverse, #2) by Dennis E. Taylor
📚 Finished reading For We Are Many (Bobiverse, #2) by Dennis E. Taylor
📚 Finished reading Foundation and Empire (Foundation, #2) by Isaac Asimov
📚 Finished reading Foundation and Empire (Foundation, #2) by Isaac Asimov
I just earned the ‘Land of the Free (Level 2)’ badge on @untappd! https://t.co/bUOyifCPmS
@BORIME4KA @if__fi Sпр/2 - Sкр - (Sпр/2 - Sкр)/4 ?
I just earned the ‘Wheel of Styles (Level 2)’ badge on @untappd! https://t.co/oiEV16cMGn
I just earned the ‘Bar Explorer (Level 2)’ badge on @untappd! https://t.co/T3ibITozfX
I just earned the ‘I Believe in IPA! (Level 2)’ badge on @untappd! https://t.co/48fbdXeGXp #ibelieveinIPA
I just earned the ‘Crisp as Day (Level 2)’ badge on @untappd! https://t.co/ST7GHtl0tD
I just earned the ‘Beer Connoisseur (Level 2)’ badge on @untappd! http://t.co/jxLOIMTwjN
Looks like the second big wave of site optimizations will come with HTTP/2 https://t.co/2oHl11Lio4
📚 Finished reading Crux (Nexus, #2) by Ramez Naam
@yurukov дали е PHP 5.3.2+ ?
@cloudfront is really not great at caching large pages. My miss ratio is ~75% for 1-yo static site with 2 yrs expire for pages.
inv25519(zi,p[2]);M(tx,p[0],zi);M(ty,p[1],zi);pack25519(r,ty);r[31]^=par25519(tx)<;}sv scalarmult(gf p[4],gf q[4],const u8*s){int i;