Cries in abandoned Web SQL[0]
3,419 karma · joined January 3, 2013
Backend Scala developer since 2012. Enjoy relational databases combined with FQLs in the vein of Slick, Quill, Esqueleto, LINQ to SQL, etc.
Also work with Scala.js, and Angular + TypeScript on the frontend.
Cries in abandoned Web SQL[0]
On resume from suspend the monitor always dims down to some ridiculously low setting, and without `ddcutil` I'd have to manually adjust the brightness via hardware toggle. As a workaround for the limitation of the monitor I just have a bash script that invokes `ddcutil` on resume from suspend - wonderful :)
Got any eamples of ADTs, pattern matching, immutable collections, data classes, named parameters, etc.?
Coming from Scala and TypeScript the Dart language is pretty unappealing wrt syntax and functionality, kind of archaic actually. Flutter looks amazing and have been hoping that Dart would evolve more quickly than it has.
When I arrived at the end of January (during the Chinese New Year) there were thousands of Chinese tourists mobbing the convenience stores buying up all the masks they could find. At the time I wasn't really aware of what was happening, but clearly they were a step ahead of the game, likely based on past history with SARS and news coming from friends and family back home.
It's pretty amazing how low the case count has been in Vietnam; some locals say, "don't believe the government", but you'd expect any outbreaks/deaths related to COVID-19 to have gotten out by now if the government were in fact trying to hide something.
Since coffee is pretty much universally accepted in the world (even more so than alcohol), one can easily view a strong coffee habit as normal, or at worst a benign vice. And it's fine as far as addictions go; you can ride the caffeine wave to increased productivity, and when the effects wear off another cup of liquid inspiration is there waiting. I did this for close to 15 years.
What bothered me was this feeling of being ruled by the habit. I simply had to have my two jam packed triple espresso lattes (or equivalent when not at home), one in the morning, and one in the afternoon; there was never serious consideration given to the thought, "I know, let's not have coffee this weekend", just a steamroller habit with me along for the ride.
Ironically what got me to quit coffee (and I had no intention of doing so) was a "retreat" in Mexico where one of the requirements was following a strict diet 2 days before and 4 days after the experience. One of the restrictions was no coffee, which part of me was strongly resisting, to the point of considering withdrawing (hah) from something I'd already spent several hundred dollars for.
In the end I went ahead with it. On the 4th day after the retreat I was free, and commenced preparing a strong pot of rocket fuel, but then something within me realized, "wait, I don't need this anymore".
And I don't, at all. Coffee is the devil made liquid -- proceed with caution :)
[0] i.e. even when sick, on off days from work, during vacation, etc.
i3 is solidly in the "pry it from cold, dead hands" category.
Barring that, as a sibling comment asks, what specific framework and/or libraries did you use to achieve the holy grail of sharing-all-the-things? (thought ReactNative required implementing separate UI for iOS and Android).
Sub second hot reload sounds amazing, btw.
I know, semantics before syntax, but if you can have both, why not?
Looks promising, love the ML-style pattern matching in particular, so clean and terse (wish Scala 3 would ditch the `case` keyword in match statements, but alas not happening)
Not sure what compromises were made, but it was a sore point for users of the library for years to throw around untyped messages when the host language (Scala) provided such a powerful type system.
Otherwise Linux is pretty damn rock solid. These days "it just works" applies to Linux more than any other OS.
And with the new Nvidia-less Dell Precision 5400 the system runs cool and quiet to boot.
Linux isn't what it used to be...
In Scala the idiomatic approach would be to favor the immutable/recursive version.
def min(foos: List[Int]): Option[Int] = foos match {
case Nil => None
case x :: Nil => Some(x)
case x :: xs =>
min(xs).filter(_ < x) orElse Some(x)
}Why? TypeScript, for example, is used pretty much everywhere these days; all the other languages are completely niche. I dislike the language (mutability everywhere, no standard lib), but it's dominating the frontend world ATM.
I've been using Scala.js in production apps for around 3 years now. Curious in your experience what advantages Clojurescript has over Scala.js. I ask because you often hear things like "best in class" when Clojure devs talk about the frontend development experience.
The abstract states that high temperature and high humidity reduce transmission rates relative to colder climates, which corresponds with the high transmission rates during the northern hemisphere winter and early spring.
And yes, lack of testing has resulted in some eyebrow raising numbers.
Up in Da Nang now, both locals and foreigners are aware and taking it seriously -- scary times.
happily, please, yes.
The browser caches pretty much everything but the HTML, so the payload is minimal. A fast SSR site is a dream compared to the myriad poorly implemented SPAs out there.
It's ridiculous going to, for example, an airline site; trying to book a flight and discovering that the damn reservation process is borked due to an uncaught exception in the latest update to the SPA (in which case the house of cards collapses, fun).
With an SSR the JS footprint is much smaller, which can lead to more stable/reliable apps.
I find the modern web to be a complete mess, but the loading spinners are nice, provided that the loading actually finishes (if it doesn't, look in the console and you'll likely find your answer in red).
cat ~/bin/brightness
#!/bin/bash
#
echo "increasing brightness/contrast of external monitor"
/usr/local/bin/ddcutil --display 1 setvcp 10 40
/usr/local/bin/ddcutil --display 1 setvcp 12 10
Tie the above in with your init/resume scripts and you're good to go (assumes that your issue isn't limited by the hardware itself).For 15 years I traveled with some flavor of 23"/24" monitor, putting it into my checked bag, and paying that checked bag fee over and over and over (probably $5K USD over the years).
This year I scrapped the big monitor setup and got an ultra lightweight 16" USB-C powered monitor along with a Dell Precision 5540.
Now I just stuff everything into an REI Trail pack (40L) and walk on the plane, it's beautiful. Pack weight is around 7KG, which works for most airlines in the world.
No longer muling around tons of gear is wonderful. Not sure what I was thinking, the extra screen real estate isn't that important to my work, two screens about 16" is enough.
Here's the 16" external monitor [1], out of stock presently, but can vouch for it, great addition to the toolbox.
[1] https://www.amazon.com/gp/product/B07WJJMV48/ref=ppx_yo_dt_b...
There will be new syntax, but otherwise the underlying semantics will remain the same; it's just the implicit keyword itself and the kitchen sink of functionality that it provides in Scala 2 will be split up into new (soft) keywords like "given foo(using: Bar) = ..." rather than "implicit def foo(implicit bar: Bar) = ...", along with "extension listOps of" replacing "implicit class ListOps ...".
The community isn't united over the proposed changes (mostly due to migration concerns it seems), but overall it looks like a nice improvement over the status quo, particularly around typeclass definitions.
As far as integration goes, I mean, who really knows the territory of the infinite such that they can help another through some difficulty in their own unique path? Most facilitators that I've seen just collect the rather large cash based consulting fee and move on to the next group, with a hug or pat on the back if a participant had a difficult journey.
I'm certainly skeptical when there's an undeniable profit motive involved, so the whole facilitator role is a bit overblown; there's no shamanic tradition behind Bufo (discovered in the 80s), it's just people that have had experience with the substance serving it to others, hopefully with good intentions.
Behaviorally most just go back to the same patterns and aren't particularly changed. Ayahuasca, due to the before/after dietary constraints, is more effective (IMO) in inducing lifestyle changes.
That said, 5MeO is the death experience (i.e. it very likely mirrors the experience at the moment of physical death) and is, if nothing else, great practice for the real thing :)
In terms of adverse effects, some wounded warriors take days, weeks, or even months to heal, but that's the same for any psychedelic, a segment of the population will be adversely affected.
Also, 5MeO can be abused; I've encountered at least one facilitator who takes it daily (over 3K journeys), which seems somewhat excessive, and can be seen in their flat affect (i.e. you'd expect such a being to radiate joy if number of journeys === depth of experience).
Don't recall downtown, or even other areas of the plateau as having such popular bagel shops.
Sounds a lot like Scala case classes. More accurate to say that both Java records and Kotlin data classes are inspired by Scala case classes -- not that it matters, programming languages authors are constantly stealing ideas (sorry, drawing inspiration) from other languages; thereby moving the state of the art into the mainstream.
Not aware of any mainstream language that provides similar functionality.
[1] https://trends.google.com/trends/explore?q=%2Fg%2F11f03_rzbg...
Not necessarily. While rare I've seen 2 psychotics breaks (requiring hospitalization) occur on meditation retreats -- 1 a ten-day Vipasana retreat; the other a 7-day Zen retreat.
Obviously meditation and intensive retreats can be effective , much like deep substance induced psychedilc experiences, but there are no guarantees, so blanket statements like, "do X, it worked for me" may unintentionally send one down the road to hell despite your good intentions :)
p.s. meditation, particularly of the <= 1 hour variety, is almost certainly safe for everyone; it's the intensive retreats and large dose induced psychedelic psychosis that impose a much greater risk.
Neither RN nor Flutter fulfill the promise of, "write once, run everywhere", whereas Ionic, warts and all, does today.
Maybe Flutter web will work out though, we'll see. If Dart evolves then Flutter becomes a pretty compelling stack.
Well, yeah, Scala obviously, the primary language from which Kotlin drew inspiration for its syntax and features.
PWA is easy enough with Scala/Scala.js but I assumed that Android + iOS was a sufficiently painful process to warrant avoiding the attempt. Thought about mixing in Cordova or perhaps Ionic via the excellent ScalablyTyped typings library, but the path of least resistance is to just use TS on the frontend.
How apropos wrt Buddha's non-teaching. Given more time (decay) the teaching would be fully revealed :)