For some reason I have to deal with the opposite problem and have to click twice on a new window to get keyboard focus. Many times I'll switch windows (eg. from Messages to the browser), start typing and accidentally end up sending someone a message instead- even though the messages tab is completely out of view.
OP is definitely not alone in this. It feels like I'm constantly trying to avoid "attention capture" when trying to do a task that involves browsing the internet - even going on LinkedIn or StackExchange for a specific purpose can get sidetracked by my eyes wandering to the sidebar or being drawn by updates in the feed. It's scary to realize how little in control I am of my own stream of thought.
I don't know if anyone has a solution that's not straight up quitting the internet cold turkey. My attempt so far has been meditating 50 minutes a day following "The Mind Illuminated" by Culadasa as a progress guide for increasing my mindfulness.
The most recent lesson I've learned is that allowing mind wandering and daydreaming can be a good thing. As a kid I read The Power of Now by Eckhart Tolle, and took away a misconstrued toolkit for dealing with an active mind. The whole book was about emphasizing the importance of being present in the moment, and I tried to carry that out by trying to silence my internal monologue and being frustrated whenever I found my mind thinking about something random and not processing direct conscious experience. That felt horrible and was completely counterproductive to being able to live normally, and now I'm trying to re-establish a relationship with my mind where I can welcome random thoughts while still being able to get things done.
That's neat! I only asked because I haven't seen API keys used in the context of profile environment variables in shell before - there might be other common cases I'm unaware of
Next, set your OpenAI API key as an environment variable:
export OPENAI_API_KEY="your-api-key-here"
Note: This command sets the key only for your current terminal session. To make it permanent, add the export line to your shell's configuration file (e.g., ~/.zshrc).
Can't any 3rd party utility running in the same shell session phone home with the API key? I'd ideally want only codex to be able to access this var
I was going to ask about how pure types would fill the gap for other validations in Zod like number min/max ranges, but seeing the tags feature use intersection types for that is really neat. I tried assigning a `string & tags.MinLength<4>` to a `string & tags.MinLength<2>` and it's interesting that it threw an error saying they were incompatible.
> At the time this article was written, the album consisted of 13,650 songs and had already surpassed the record held by Asha Bhosle, an Indian singer who recorded over 11,000 songs since 1947.
The latter is a prolific and renowned 91 year old Indian singer who has been singing for movies since the 40s in different genres and languages. This line in the article is good for putting the volume of the album in perspective, but I don't think generative music can be compared to her body of work.
I used this standard a long time ago to make a simple server -> client reactive state for a card game by combining it with Vue's reactive objects to get something like a poor man's CRDTs. This is a rough diagram of what it looked like: [1]. Although there was a reducer step on the server to hide private state for the other player, it's still probably wildly impractical for actual games.
> If we accept the fact that the web is inherently imperative, then I believe we can resolve most if not all of the above problems. We don't need to throw the baby out with the bathwater though, because JSX is fantastic.
Also look into SolidJS for dropping the "functional" component model while still retaining JSX - it looks similar to React but works more like Vue, running components as setup functions only on initial render and doing state updates with mutations via signals.
This is my first time reading about Gleam and it looks really cool! How's the experience of writing Vue components in it? Web frameworks like it and Svelte tend to liberally meddle with the syntax & semantics of JS through transpilation to have a specialized dev experience, so it can be difficult to use a different language and feel like a first class citizen since it's not like using a simple API anymore (unless there is special consideration given to it like ReScript and React).
Also, what's the concurrency story like? Gleam does not seem to support async/await but apparently it has colored functions when compiling to JS, though I'm not sure how those interop with the JS ecosystem.
Learning about the auto-memoization feature when it was called React Forget made it seem like a pretty natural extension of the functional component paradigm - separating out and memo’ing parts within components based on info that’s trivially available at compile time (maybe not trivial, I’m not sure how much work is being done by the compiler here).
Is this something that could be implemented as a language-level feature for some “dedicated” language for writing functional reactive UIs? Languages like ReasonML are meant to map more nicely to React’s model because of their expressiveness, but I wonder if it could be taken further.
This looks like an important milestone for cross platform dev! I've seen a lot of people wishing Flutter supported Kotlin, so I wonder if it will become as prominent in mobile development. Does anyone know of significant downsides with the platform (apart from not being mature enough) that could prevent it from joining the ranks with Flutter and React Native?
This is not exclusive to web apps though (especially open source ones)? I don't see how what you said doesn't apply to the Adobe suite which is native.
The first hurdle in trying to make simple multipage apps with handwritten HTML/CSS is, as the author mentioned, getting to the step where you have reused components across pages and have to jump into a server-side templating setup like PHP, or use something that introduces a build step if you want to stay static. I don't know why there isn't a simple method for including HTML partials incrementally in handwritten sites without doing either of these. WebComponents and slots seemed perfect for this but they force you to define them with JS.
I wonder if application frameworks like Flutter will move to WebGPU? I imagine it shouldn't be that hard to get Skia running on a wgpu backend. The current web target generates a lot of markup that isn't really semantic or representative of a web app's structure with lots of canvases anyway, so I imagine moving to a uniform render target will make things smoother. They're already experimenting with Dart in WASM instead of transpiling to JS as well.
This seems like a big leap forward for web apps! Proper view transitions are one of the biggest gaps in usability and perceived smoothness between web and native/Flutter apps at the moment.
Not a recruiter but a current CS undergrad and your skill areas really resonated with me - GPU programming, HPC and scientific programming, and Audio/DSP are all things I wanna explore. Do you have any advice on where I should focus my efforts to get better in these areas? I've been looking into books and resources, and I'm not sure if I can pursue something like DSP on my own time without enrolling in formal college courses because ironically enough I'm a bit scared of math.
I've been seeing a lot of references to this across youtube, reddit etc for a new experimental language. Is google putting their full weight behind this like Go or is the virality just incidental?