Lurker News
Maybe you've created your own AR program for wearables that shows the definition of a word when you highlight it IRL, or you've built a personal calendar app for your family to display on a monitor in the kitchen. Whatever it is, I'd love to hear it.

Comments (1,792) 625 threads

Earlier comments
hohg2 replies#
@dang regarding pagination

    // Get the anchor tag element
    const anchorTag = document.querySelector('.morelink');

    // Add a scroll event listener to the window object
    window.addEventListener('scroll', () => {
      // Check if the user has scrolled to the bottom of the page
      if (window.innerHeight + window.scrollY >= document.body.offsetHeight) {
        // Fetch the content from the URL stored in the anchor tag's href attribute
        const xhr = new XMLHttpRequest();
        xhr.open('GET', anchorTag.href, true);
        xhr.onload = () => {
          // Append the fetched content to the page
          const div = document.createElement('div');
          div.innerHTML = xhr.responseText;
          document.body.appendChild(div);
        };
        xhr.send();
      }
    });
davesque1 reply#
Some people appreciate being able to choose whether or not to continue browsing. Infinite scroll is not objectively better.
squintychino#
Lots of websites have the option to toggle pagination on/off for those that do find it objectively better.
mdaniel#
> div.innerHTML = xhr.responseText;

Did you test this? Because CORS aside, that sure does look like it will append the whole of page 2 to the body of page 1 and get progressively worse as one reaches the pagination of page 2. It would be more code (and memory pressure) but I believe the correct impl of any such trickery would be to reach into the actual table of page 2 and jam that into the body of page 1

akhayam3 replies#
About 8 years back, I was leading an engineering team which was the escalation path for customer support. We were sitting on a large corpus of support tickets but didn't have any insights. I was amazed when word2vec came out and blew my mind. So I built a language model that trained on support ticket data. I modeled system logs attached to support tickets as an NLP model to predict what was going to fail next and for which customer.

Never made it to prod but was a great tool for me to see where I want to budget my team's time.
This is way before all the LLM and Generator models, but it was such a fun project.

UweSchmidt1 reply#
>This is way before all the LLM and Generator models, but it was such a fun project.

That means something more sophisticated has to exist today and should be commercially available. Can anyone explain to what extent companies use this stuff in their interaction with customers, and how successful is it? (Somehow I still see AI still as one-off things people do for fun or AI being used to hype up rather mundane software.)

akhayam1 reply#
It should exist and would be super powerful considering all the recent advancements in language ML. Here was the mental model of my model: the canonical representation (i.e. a representation after taking out run-time populated fields) of a log line represents the smallest meaningful unit of this "log language": _a word_. Taking this analogy further, an event is a collection of logs that occur together (mostly in order)—just like words spoken together form _a sentence_. Finally, collections of events that occur in close proximity (in time) represent _paragraphs_, while paragraphs occurring in a certain order constitute _chapters_. Using this mental model opens the door to apply all the new AI techniques for text extraction, summarization and generation to extract the semantic structure of any "log language" and then learn and classify behaviors observed at run-time. The eventual objective function is not generation though--it's reasoning with the optimal FP-TP tradeoff on a ROC curve.

I haven't seen anyone do it yet. Maybe companies like Splunk and Elastic will take a lead here. I am happy to engage, advise and contribute if there is an open source project around this. Has anyone else seen something remotely close to this?

UweSchmidt#
Very interesting, thanks!
onesphere1 reply#
We have a corpus or database of programs that follow logic but with no simulation, so it represents knowledge to solve a problem yet all we have control over is the parameters (inputs). In this case, input is functional logical content (a program), describing the resolution of corpus details. The model solves its integrated, corporate logic, and our output is an interpretation of that individual program.

Now our task is to swap out this entire database for something like it, but not exactly the same. The output becomes the input to this new matrix. The individual program persists, but everything is the next generation. With a little book-keeping, the programs do our will...

akhayam1 reply#
Don't think I quite follow. Is the new program (operating on the output of the earlier program) supposed to reason about why you are seeing the result that you are seeing? Or is it doing more post processing to make the earlier output directly consumable by your corporate systems.
onesphere3 replies#
The new program’s purpose could be to do more post processing to make the interpretation of that earlier program directly consumable (inter-generationally), or it could simply start producing more problems to solve.

Continue this thread — 3 replies

mgsouth1 reply#
There's a YC startup that's doing something along these lines. They recently posted something, don't remember if it was on front page or an "YC startup jobs" email.
fakedang1 reply#
Mendable.ai?
akhayam#
Nah... Mendable seems to be searching in documentation. This idea is to extract an execution model of every component in your system from the logs of that component. We can think of the prediction step as a complete separate machine model for now.

Anything else comes to mind?

parentheses4 replies#
I'm slightly embarrassed that in terms of building personally relevant things, my proudest (digital) work is always shell scripts I use daily. Most of my personal projects are non-technical meat-space things like building with wood and the like. Here's some that I've open-sourced:

- A git interface using fzf that works pretty nicely and is very composable. https://github.com/bigH/git-fuzzy
- An interactive evaluator, perfect for interactive `sed`, `grep`, `jq`, etc. If properly configured, it'll keep history per command or using whatever key you give it. I find myself using it often with `jq`. https://github.com/bigH/interactively
There are many other shell functions/scripts that are interesting from my `dotfiles`. Particularly interesting snippets for anyone who wants them:
- A recursize `which` that follows symlinks and stops at a real file. https://github.com/bigH/dotfiles/blob/3d48792b4e910d2fc82504...
- A `watch` alternative that runs in the current shell. https://github.com/bigH/dotfiles/blob/3d48792b4e910d2fc82504...

seanw4441 reply#
You accomplish things in real non-computer life? Nerd.

For the downvoters, that's what we call a "joke". I appreciate when I hear from not-terminally-online people on here.

parentheses#
Upvoted ;)
alin23#
I’m a long time user of git-fuzzy, thank you for that!

I am also grateful to hear about “interactively”, I always had to write some kind of half baked implementation, it’s great to finally have a defacto solution.

mjbamford#
I've just discovered git-fuzzy - it's fantastic! I missed its announcement on Hacker News some 3 years ago. Thanks for highlighting it in this thread!
toddyamakawa#
What kind of work do you do? Does your day job involve writing shell scripts? Or is that something you do on the side?
susam#
https://mathb.in/

I wrote this 11 years ago for my friends and myself who were going through a phase in our lives when we used to challenge each other with mathematical puzzles.
The use of this tool spread from my friends to their friends and colleagues, then schools and universities, and then to IRC channels. Now it is the oldest mathematics pastebin that is still online and serving its community of users. Visit https://github.com/susam/mathb for the source code of this tool.

Load more comments