News for hackers. Stuff that matters.

lotw_dot_site

Re:Forms in modals: UX case on Friday August 05, 2022 @04:20PM (#32361514)
So, this is about popups inside of browser windows, is it? And not about popups in Windows/Mac/Linux desktops? Because I couldn't start making up my mind until close to the end of the article.

FWIW, I do make some use of modals in Linux on the Web (source code, admittedly somewhat sloppy: https://github.com/linuxontheweb/LOTW/blob/main/root/code/mo...). In fact, I just tried to make a post about a new app I'm working on (that happens to use them) called "HackerNotify": https://news.ycombinator.com/item?id=32358782

So, I take it that the "decentralized" aspect of all this stuff really comes into play when all of the server hardware is surgically implanted into our limbs!
Very well. Our civilization is absolutely ripping apart at the seams (https://www.theguardian.com/environment/2021/jul/25/gaya-her...) but we can all rest assured that the "safety" features built into FB's chatbot will ensure that nobody ever gets offended by the trickery of us barbarians "in the wild"!
Re:Enough with the notifications on Friday August 05, 2022 @12:57PM (#32358782)
I think I'll take this opportunity to introduce "HackerNotify" (https://lotw.site/net/HackerNotify.app), which is a different kind of interface into the Hacker News backend (via firebase).

You can tell how many total comments a story has by the color of its title. The ranking from low to high is: dark blue -> light blue -> aqua -> green -> yellow -> orange -> red.

It has a keyboard-centric interface. Here is the breakdown:

'Space' toggles an item's open/closed state.

'Tab' is used to move between items in a list. If an item is in the open state, pressing tab will focus the first item in its list. Otherwise, it will focus the next item in the list that the item is a member of. This is really the "go to" key in the app. If ever in doubt, just hit 'tab'.

'Enter' is for opening the link (in a new window) to which a "story" item refers. (You can also click the link to open it.) When a notice (see below) is in focus, hitting 'enter' should bring you directly to the item that it refers to, in an opened and synced state. Doing this might still fail, though, which is why there is a "hard reset" option in the app.

'c' is for popping open a comment window to respond to whichever item is in focus.

'n' is for setting a "notice" to periodically poll the backend for new replies to a given item (story or comment). The current polling period is one minute.

'/' is for cycling between the 3 screens of the app (Top stories, Watched stories and Notifications).

'1' is to jump to the "Top stories" screen. (All story titles that start out as "Launch HN:" are filtered out of the listing.)

'2' is to jump to the "Watched stories" screen. "Watched stories" is the screen that will hold the top level story items that contain notification items that are no longer embedded in the DOM of the "Top stories" screen.

'3' is to jump to the "Notifications" screen.

'x' is to delete a given notice. The app currently allows for 5 notices to be set at any given time.

'r' is used to refresh a given item to sync it with the firebase backend.

'Esc' allows you to "escape out" of embedded items. This key also automatically closes items.

'Ctrl+Esc' allows you to immediately escape out to the top level listing, closing all embedded comments along the way.

Finally, since there may still be a bug or two in the app's logic, 'Alt+l' is the "hard reset" shortcut that forcefully closes and blurs every item on every screen. If you need to invoke this shortcut, just pressing 'Tab' again should get you back on your feet.

The link I provided above allows you to open up a Linux on the Web app in the experimental "app mode". If you want to play around with it in its native environment, though, you will need to need to see the LOTW README: https://github.com/linuxontheweb/LOTW#applications

Re:Against Discipline on Friday August 05, 2022 @07:46AM (#32354748)
Does anybody know what the first popular "Against Something" was?

My guess is it was Feyerabend's Against Method...

Re:Why Is the Web So Monotonous? Google on Thursday August 04, 2022 @06:44PM (#32349257)
Among other things, Linux on the Web can be used to usher in a new paradigm for accessing online resources.

The current document-centric approach has an intensely graphical (attention grabbing) aspect which very much encourages the least common denominator types of results that the author abhors.

Those who want to be more thoughtful about these things need better toolsets to allow them to focus the way that they go about their online lives (including general search).

Google is in indeed more than search. They are also the machine learning framework, Tensorflow. Linux on the Web is in as good a position as anything else to start putting the JavaScript implementation (Tensorflow.js) to very good use.

We don't need new search engines as much as we need new search engine interfaces.

Re:The MGR Window System on Thursday August 04, 2022 @04:22PM (#32347836)
This is true motivation to keep me working out the ideal desktop environment for Linux on the Web. The idea of "a message passing facility enabling client programs to rendezvous and exchange messages" is in particular the kind of thing I want to continue to iterate upon, albeit in a more abstract sense than the kinds of windowing events that are referred to.

https://lotw.site/desk

Nevermind, I see the demo is the Eliza widget on the main page.

So, I can do Eliza with it then...

I'll keep that in mind for the next time that I need to get an Eliza widget working ;)

No demo. I was wondering what kinds of things I could be doing here that I couldn't do before (with websockets, webrtc, etc) but demo.connect.build just redirects to connect.build. I'd only known of "Protocol Buffers" as something that was internal to Google, but never knew exactly to what end.
Re:Black holes finally proven mathematically stable on Thursday August 04, 2022 @02:28PM (#32346547)
>Lighten up on the philosophy of a topic before you understand it

But philosophy is an activity that must necessarily be done in order for there to even be a topic that can at all be understood in the first place! We had to have someone like Descartes before we could get someone like Newton, and Newton before the quantum theorists, etc.

The idea that you can just jump straight to (and always stay within the framework of) "hard science" and do away with the malleable philosophical bits that allow for the kind of connective tissue that binds civlizations is perhaps the biggest reason why we collectively face the existential crises that we currently do.

And the other idea that everyone (or at least everyone who has jumped through the hoops to get the necessary credentials) can simply sit fat and happy in their own arcane specialties as long as they are able to "prove" their worth to the rest of us by patting each other on the back with their circles of academic citations is... well... not very sustainable. All academic disciplines, to the extent that they cannot remain "rooted" within some larger framework of philosophical sensibility will necessarily get weeded in due time.

Re:Black holes finally proven mathematically stable on Thursday August 04, 2022 @01:34PM (#32345850)
>they're space-time shapes with a singularity at the middle

Upon googling "black hole singularity", the first "People also ask" is "Does black hole contain singularity" and the answer is, "No, black holes in our universe, that is to say the real universe, do not contain singularities." While this doesn't in itself invalidate your point, it does seem to raise questions.

>The black hole at the center of our galaxy extends across 16 million miles, or a little over eighteen times the size of our sun.

I think what you are doing here is conflating the physical effects of the thing (the gravitational field of force) with the mathematical description of the thing itself (a precisely defined geometric structure). If you are talking about extremely strong gravity fields, such as those that bind entire galaxies (or galaxy clusters or even larger organizational patterns), then that is one class of things (empirical), but the purely theoretical notion of physical singularities is an entirely different class of things altogether (a class, which, IMO is perfectly self-contradictory).

>That's because solutions to the Laplace equation smooth themselves out as quickly as possible as you move away from the boundary condition.

This seems incorrect. I find that solutions to the Laplace equation typically "smooth themselves out" in a quasi-linear way (ie, the way sines and cosines do). The most vexing question in Quantum Mechanics is in fact why quantum states (i.e. the eigenfunctions that are solutions to PDE's such as Laplace's equation) appear to us as localized packets rather than how their "wave functional" mathematical descriptions would dictate (diffuse). The way this conundrum is resolved in QM is by way of a perfectly ad-hoc procedure called "collapsing the wave function".

Re:Black holes finally proven mathematically stable on Thursday August 04, 2022 @12:43PM (#32345212)
At a certain point of abstraction, theoretical physics almost never has any direct correlation with empirical reality. It is most often used as a way to give the paradigm lenses that color our thoughts nice little workouts. (One can also apply Wittgenstein's notion of language games here.)

If, by the term "black hole", a person is referring to some object that has the shape of a mathematical point, then it just doesn't make much sense to call it a thing that relates to the world of observation. (The postulates of Quantum Mechanics dictate that physical objects must be fundamentally spread out in the form of wave functions.)

Solutions to simplistic kinds of mathematics come in the form of idealizations called "points". But physical reality is fundamentally spatial, and the necessary maths must involve things like topological manifolds, which brings us directly to the doorstep of String Theory, which is not so much a "theory" but rather a broad category that consists of the entire spectrum of all possible Quantum Field Theories. String Theorists, in fact, are always speculating over the possibility of some given theory's existence, such as when Witten spoke of a mysterious "M-theory" in the mid-90's.

Re:Emacs Timeline on Wednesday August 03, 2022 @07:28PM (#32337638)
I've actually managed to make nano look even simpler, by getting rid of all the interface elements except for a vim-like cursor position indicator in the bottom right. The notes to do it are here: https://drive.google.com/file/d/1BJeBc0mynxR8lrL4u20q4oBc8vQ.... It wouldn't take too much effort do make it a .diff to auto patch the source code. My main issue with nano is its liberal usage of eye-blinding reverse video.

But I am just so utterly addicted to vim's undo/redo that I always feel naked without it at my fingertips!

And yes, emacs is definitely a universe unto its own. The point is that as a standard command line utility, the option to use it as a bare bones text editor is always readily available to end users, without need to do very much digging into things like settings/hamburger menus. I'm sure there are many emacs gurus "at the ready" in order to answer any conceivable unanswered question about emacs posted to stackoverflow.

Re:Emacs Timeline on Wednesday August 03, 2022 @04:03PM (#32336132)
Isn't the reason why people gravitate to standard utilities such as emacs and vim largely because they simply can't cope with all of the shiny graphical bloat while they are trying to wrack their brains coming up with some new kind of thing or another? I use vim, and I've spent countless hours of my life trying to write a new kind of vim with it. (See: https://lotw.site/shell, then enter "import fs && vim" at the prompt.)
Re:Things I've learned building a modern TUI framework on Wednesday August 03, 2022 @02:56PM (#32335493)
Funny, that, seeing how M$ themselves are perhaps the biggest contributors to the current browser codebase monoculture issue.

Anytime a software project develops enough complexity, there is no shame in targeting a specific platform. Given enough eyes on a thing, though, those kinds of "supported" issues always take care of themselves.

But I'm just a lone developer trying to do something never before done. I'm still trying to prove a concept...

Re:What ever happened to the neighborhood paperboy? on Wednesday August 03, 2022 @01:58PM (#32334942)
As I child of the 80's, I can still feel the theme for Full House reverberating through my bones:

    Whatever happened to predictability?
    The milkman, the paperboy, the evening tv?
    How did I get delivered here? Somebody tell me please
    Cause this old world is just really confusing me
That kind of sentiment was all the rage in sitcoms before the hip, cynical 90's attitude got into gear with Seinfeld and "Must See TV".
Re:Things I've learned building a modern TUI framework on Wednesday August 03, 2022 @01:22PM (#32334499)
If I would have continued my original approach, I probably would have been able to get something like that working pretty well, but since it is pretty hard to beat Virtual DOM types of approaches, I had no need to try anything else when rendering full screens of text could keep up with key repeat rate.

But of course, the idea of developing a terminal using a standard DOM-centric approach is usually not going to turn out very well... though Google is an exception here with the hterm js library that underlies the terminal output for Chromebooks: https://chromium.googlesource.com/apps/libapps/+/master/hter.... Most Chromebook users will never have the opportunity to put this to use, though people like me who put their Chromebooks in developer mode the first chance they get use it all the time.

Re:Things I've learned building a modern TUI framework on Wednesday August 03, 2022 @12:29PM (#32333818)
Yeah, I don't personally mess with anything but Chrome, and I consider supporting browsers that are not Chromium-based to be a fork of the entire project.

Per the Disclaimer in the Github README (https://github.com/linuxontheweb/LOTW/):

---------------

LOTW is developed in the crouton environment, which involves ChromeOS in developer mode. All development and testing is currently done on a Chromebook, using an up-to-date Chrome browser.

The system should basically work in any modern browser and host OS, but there are likely many tiny glitches that degrade the user experience in other browsers and/or operating systems.

---------------

The crucial fact of LOTW is that it is based around the concept of a full-featured, sandboxed file system in your browser. Only Chromium-based browsers natively support that kind of thing via 'webkitRequestFileSystem'.

That being said, there is a shim/polyfill that is supposed to load and take care of that (https://github.com/linuxontheweb/LOTW/blob/main/www/js/fs-sh..., created by Eric Bidelman when he was at Google). Last I knew, Firefox seemed to work with it.

Re:Things I've learned building a modern TUI framework on Wednesday August 03, 2022 @11:31AM (#32333082)
One of my proudest moments during the development of "Linux on the Web" had to be the creation of a Terminal application (try it at https://lotw.site/shell) that can render its output with near-native efficiency. My initial attempt was based on placing character images, one-by-one, onto a canvas element, but it was horribly sluggish. Then I started playing around with a "Virtual Dom" (React-like) approach, wherein I convert the underlying data structure into an html string, and then set the innerHTML property of a div element, for every time the screen has to be redrawn. (Source code: https://github.com/linuxontheweb/LOTW/blob/main/root/code/ap..., the relevant code is the "render" function starting on line 569, and the innerHTML is set on line 940).

I don't know how many years its been that I started working on the Terminal application, but it was only within the past week or so that I "bit the bullet" and figured out how to do finger pad/mouse wheel scrolling of the output buffer (See the 'main.onwheel' function in the source code for that little tidbit!). Since I required fine-grained control over the rendering process, I could not rely on the "naive" way of doing scrolling on the web (which is to simply let the browser take care of the entire process).

In my own experience developing a new kind of system from the ground up, I can only say that you have to talk to yourself, but as an extended conversation over a good number of years (a decade in my case). It is essential to occasionally stop working on the thing altogether, and clear your mind of all thoughts relating to it (if possible). If your system is truly compelling enough, it will call you back from out of the depths of your subconsciousness. Then you can see it afresh and be able to evaluate it as it truly is.
Re: on Tuesday August 02, 2022 @04:41PM (#32324021)
I've been hacking on this thing, pretty much nonstop, for the last decade of my life. I have no need for more attention that I already have. I am something of a local celebrity (can offer proof). I know this kind of innovation is right up Elon's alley. I'm just kinda sayin'...
Re:Show HN: Celody โ€“ A Music Network State on Tuesday August 02, 2022 @02:52PM (#32322781)
You can obviously do soooo much with it, that my mind boggles. As an example of how much more you can do versus some other things, I can only contribute a very boring example (involving no musical universe at all) via "Linux on the Web":

    1) Goto http://lotw.site/shell
    2) At the prompt, enter : import av && beep
    3) Once your head starts pounding, hit Ctrl+c
Now wasn't that boring! :)
Re:Coding as a greybeard on Tuesday August 02, 2022 @11:09AM (#32319519)
Cast of Characters:

- Ezekiel as the Old Man with the Grey Beard

- Assorted youths off the street, aged 16-25, as the Whippersnappers

[Old Man, bent over and walking with a cane, enters stage right and starts pointing around in a somewhat accusing manner]

Old Man: Why I may not look it, but all of these young Whippersnappers have nothing on me! I declare that I wake up before the crows every morning and eat my oatmeal and more vitamins than you can possibly imagine. Then I sit down in a straight-backed oak chair to do my calisthenics, followed by a vigorous 10-minute walk in the park outside of my condo. All before the crack o' dawn, I tell ya!!

Re:I have 218 browser tabs open on Monday August 01, 2022 @07:00PM (#32313222)
One of the greatest joys of my life is going on gleeful rampages of Ctrl+w tab annihilation! Lots of times, I'll end up with just two open tabs: devdocs.io and the local development version of my own namesake :)
Re:I have 218 browser tabs open on Monday August 01, 2022 @06:31PM (#32312946)
Needing lots of browser tabs is a direct result of the fact that individual web sites are not very good at multitasking (they can usually only do one thing) or at "remembering" (they are almost never locally stateful). I'm actively working on both of those things via Linux on the Web!
Re:The Logical Writings of Karl Popper on Saturday July 30, 2022 @02:50PM (#32289277)
Skimming this, I was interested whether Popper tried to do any work in the logic of Quantum Theory, and yes he did: https://en.wikipedia.org/wiki/Popper%27s_experiment

While I also advocate a more realist/Bohm-like theory above standard statistical "interpretations", I would differ with Popper in that I find the principle of non-locality to be just fine indeed. My own "theory of everything" operates under the assumption that the fundamental objects of reality are universally defined (ie, over the entire mathematical domain that cosmologists call "the universe"). The big question then becomes how such spread out objects can appear to us a tiny things like hydrogen atoms and electrons. I think the geometric paradigm of Conformal Field Theory is the way to think about that question. Things start entering into the domain of String Theory at that point.

One reason I started working on "Linux on the Web" is that I wanted to work within a paradigm (web development) that has strong connections with current practices but that also can allow me to iterate in directions that are more related to the nuts and bolts of our shared physical reality.

One thing that nobody ever talks about are the more hardware-centric possibilities of the web platform such as WebUSB, but I would absolutely love to start playing around with it in order to allow for an interface of real world objects with the LOTW system -> https://github.com/linuxontheweb/LOTW

Re:How to build an open-source business (2021) on Saturday July 30, 2022 @09:42AM (#32286759)
If you are truly developing tools innovative enough to battle against the existential crises of human civilization (as first enumerated by the Club of Rome in the early 70's and currently unfolding today), then all problems of law/licensing and finance/pricing fall by the wayside as your on-the-ground presence starts to ascend above your local competitors in the battle for the hearts and minds of the younger generations in your midst who are beginning to sense how infinitely screwed their future prospects are. What I'm trying to say is that it might make more sense to submit one's innovations through direct community engagement rather than writing up long articles to be posted on the web meant for consumption by perfect strangers.
Re:Creating an Intranet Like the Internet on Saturday July 30, 2022 @09:03AM (#32286464)
Yes, a cooperative, or even a tech-savvy intentional community. That is the kind of thing I'm really going for with "Linux on the Web".

Something like a new hippie age must start arising as the post-peak-oil era continues to take its toll on the global economy*. It's now up to the younger Millenials and older Zoomers to start leading the way with innovative, sustainable, future-forward ways of living.

*https://www.theguardian.com/environment/2021/jul/25/gaya-her...

Re:Creating an Intranet Like the Internet on Saturday July 30, 2022 @08:31AM (#32286276)
If it's truly an intranet then it is physically disconnected from the public internet, and would not be merely a "dark web", but more like a "black hole web". But if they are trying to run public services, then your assumption is correct.

All in all, though, it sounds more like a bunch of college friends who are just trying to find their bearings in the wild, huge, crazy world of tech.

Older ยป