HNHacker News
TopNewBestAskShowJobs

laex

1,129 karma · joined June 26, 2014

submissionscomments
laex··on WebR – R in the Browser
github: https://github.com/r-wasm/webr
laex··on X-ray scans reveal Buddhist prayers inside tiny Tibetan scrolls
hard to gauge significance without carbon dating of the scrolls. Why leave that out ?
laex··on I'm Wirecutter's water-quality expert. I don't filter my water
Do you have a brand name or amazon link for the mineral packets ?
laex··on You need much less memory than time
See Kelsey Houston-Edwards's exceptional breakdown of Williams' paper, & Scott Aranson's thoughts on the topic.

[1] https://www.youtube.com/watch?v=8JuWdXrCmWg

[2] https://scottaaronson.blog/?p=8680

laex··on htmx
Can HTMX be used with static site generators, such as Hugo, to create interactive documentation websites?
laex··on Tell HN: The “Y” logo in the top-left corner has been upgraded to SVG
For anyone who wants to see the logo in action, I'd like to recommend checking out the SVG Playground link. It's a great tool for exploring and manipulating SVG code, and it makes it easy to see how the logo looks on different backgrounds and at different sizes.

https://svgplayground.com/#encodedsvg=PHN2ZyB3aWR0aD0iMTAwIi...

laex··on Launch HN: Jitsu (YC S20) – Open-Source Segment Alternative
Can we expect react native integration any time soon ?
laex··on Show HN: I built a VS Code Theme Creator – easily make VS Code themes in browser
Do the themes work with Monaco editor ?
laex··on Monkeytype – A Minimalistic Typing Test
Is there a hosted demo ?
laex··on Emacs is special regarding UIs
Is Doom better than Spacemacs ?
laex··on Show HN: pion/ion, self-hosted conferencing software with single command deploy
Are there any plans to support react native?
laex··on Show HN: Fast database for React Native with multiple data-type support
How does react-native-mmkv-storage store data under-the-hood?

When I was building SwiftStore - a KV store [1] for iOS, I went with LevelDB as the choice for the underlying database.

LevelDB because it's written in c++ and used widely as an embedded database. Integrating it as a static library in Objective-C is also fairly straight forward.

[1] https://github.com/hemantasapkota/SwiftStore

laex··on Show HN: Fast database for React Native with multiple data-type support
Is it possible to use it at the native layer (objective-c / java )? My use case is for storing/reading info before react-native JS is bootstrapped. I've tried using AsyncStorage for that but the bindings for objective-c isn't straightforward at all!
laex··on Show HN: Mindstamp – Make Any Video Interactive in Seconds
Pretty cool. Does it handle multiple resolutions of the same video (Eg: 1080p 720p 480p 360p ) ?
laex··on Go and OpenCV
Looks great!! Can it can load and play mp4 files ?
laex··on Why Discord Is Sticking with React Native
Agreed. Creating bridging modules aren't that complicated. For anyone interested, I've linked a sample of a bridging module from my open-source project, for both IOS and Android. See [0] & [1]

The bridge creates an interface between an embedded webserver to react native.

Things to note:

1. Always dispatch bridging methods to their own threads. On IOS you can do this via. dispatch_async. On Android, you can utilise native threads or some kind of task management library. I like Bolts [2].

2. Always create bridging methods that resolve promises. This makes it easy to utilise async / await paradigm on the JS side.

[0] Android: https://github.com/hemantasapkota/react-native-web-server/tr...

[1] IOS: https://github.com/hemantasapkota/react-native-web-server/tr...

[2] Bolts: https://github.com/BoltsFramework/Bolts-Android

laex··on Ask HN: Any advanced react/redux tips you'd like to share?
Apologies for the generic question. From the links you've posted, I discovered your Practical Redux course. I just bought it!! [1].

Pretty excited to go through the course!!

[1]: https://www.educative.io/collection/5687753853370368/5707702...

laex··on 2018 MacBook Pro Review
My config:

Caps -> Control

Control -> Command

Perfect config for TMUX + VIM.

laex··on Man Spends 23 Years Carving Sprawling Underground Temple Under His House
I thought Levon Arakelyan was a true hacker. I can relate this to my own side-projects. Most of them start with a simple "what-if" question in my head. Once I've started writing code, I won't stop until I have some kind of prototype ready. That aside, agreed that for digging tunnels it could be dangerous.
laex··on Ask HN: What do you believe that most people don't?
Yes - strength training will take a few months to get used to. Depending on your workout's intensity and volume, you'll want to adjust your calories. Note: intensity = how heavy you lift, volume = reps * sets
laex··on Ask HN: What do you believe that most people don't?
> What made you adopt this habit?

For losing weight. If you're obese to begin with, this regime will give very good results at the beginning which also helps with the motivation. Note: Fasting + Strength training is superior to justing fasting. Why ? Because fasting decreases your metabolism. Strength training does the opposite.

> It does seem counterintuitive to everything I have read and heard throughout my entire life.

Yes, I'd say so.

> What sort of improvements, if any, have you noticed from adopting this style of eating versus the standard 3-4 meals per day?

1 ) Increased mental alertness - I've noticed how quickly the alertness disappears once food enters my body & digestion begins. Not sure If I should attribute this to increased insulin sensitivity or something else.

2 ) Increased productivity - It's amazing how much you can get done when you're not thinking of what & when to eat. I spend most of time writing code, learning new guitar riffs, & planning my workouts.

3 ) Prolonged workday: Related to (2). You can effectively prolong your daily work hours easily from the standard 8, up to 12 - 16 hours. This is because of (1) and (2). Heck you can also go 24 hours+.

4 ) Better quality sleep: On multi-day fasts (24+ hours), I get good quality sleep. I do believe they're of "good quality", because of an interesting effect I've noticed - you don't get the usual grogginess when you wake up. It's non-existent.

> A tactical question: Do you load up all of your daily calories in that one meal e.g. if your usual intake is 2500 per day, do you have all of that at once or do you eat less?

Yes - All calories in one meal. However, this is not optimal for muscle growth. For athletes, it'd be ideal to spread out protein intake across two meals, at the least.

laex··on Ask HN: What do you believe that most people don't?
That you don't need to eat three or four meals a day. You can compress all the meals into one and still stay productive, energetic & healthy. ( Speaking from 2+ years experience of daily fasting and strength training )
laex··on Productivity
> The world just feels unbelievably quiet.

This is what I sense when my fast crosses 18+ hours.

laex··on Show HN: Auditus – Ebook to Audiobook Conversion
I built something similar to listen to Paul Graham's essays It's a console app & uses OSX's "say" command for the TTS. Contributions are welcome. https://github.com/hemantasapkota/awesome-essays
laex··on Long-Term Coffee Consumption and Risk of Cardiovascular Disease (2013)
Do you cycle the modafinil ? and How ?
laex··on Is the Japanese concept of Ikagi the secret to a long life
Typo in the title ? I believe it's "Ikigai", not "Ikagi"
laex··on Ask HN: Does anyone else feel overpaid?
The way I see it, you're getting paid not for what you do at work. You're getting paid for your presence.
laex··on Bringing back the Somali shilling
Why "proof-of-work"? Also, does it have any relation to blockchain's proof-of-work concept?
laex··on The slow demise of Wikipedia Zero on the subcontinent
> They exited Tibet last year and sold the subsidiary to a Malaysian company.

I believe they exited Nepal, not Tibet.

laex··on Realm is a mobile database: an alternative to SQLite and key-value stores
Shameless plug: If you're looking for a simple key-value store for Swift, please checkout https://github.com/hemantasapkota/SwiftStore

Underneath it's LevelDB.

Page 1 of 4Next →