HN user

c6401

19 karma
Posts0
Comments41
View on HN
No posts found.

I mean the pandemic was not too long ago, a lot of us actually remember the accessible treatments back then.

First they discovered steroids like prednisolone which were useful only for heavily sick patients, then they started to distribute antibody plasma from other patients, then monoclonal antibodies and some cytokine inhibitors and when everybody who wanted already got vaccinated, we got antivirals such as Paxlovid, and it was scarce.

There were a lot of misunderstanding around hydroxychloroquine and ivermectin, similarly how we have a lot of misunderstanding around vaccines and autism. And they were tested and tested and tested, similarly how we still check if vaccines cause autism. And all the proper research showed that hydroxychloroquine and ivermectin were absolutely ineffective, times and times again, but people just couldn't let them go, similarly to how people can't let go the fake autism-vaccine connection.

In the first part of the pandemic, vaccines were the best we had.

Thank you for the answers. Even I'm not new to TTS usage, overall, this feels a bit like cyberpunk for me, like a neural interface that can provide you information as fast as you can consume it, not just how fast your "ears" can recognize it. Like a human modem.

Really liked the article.

The interesting part for me was that you can recognize synthetic voice much faster than human speech. Is there a specific voice you are using for 800wpm or it can be any TTS? Also, I think older voices sound more robotic that the newer ones (I mean pre AI, like the default on android is newer for me). Is there a difference for how fast you can listen to the newer more nicely sounding ones or the older more robotic ones?

I won't buy anything made in US and sold here anymore.

Not to counter the argument, but just if I would consider doing the same. What to do with laptops - Apple (silicon), Intel, AMD and Qualcomm are all US companies.

It has a webui, but this is how I use it from python (sorry I like python, but similar connection method should work from the other langs too).

    ai = openai.AsyncOpenAI(base_url="http://localhost:8080/v1", api_key="sk-no-key-required")
    response = await ai.chat.completions.create(
        messages=[
            {"role": "system", "content": "..."}, {"role": "user", "content": "..."},
        ],
        max_tokens=100,
        model="Llama-3.2-1B-Instruct.Q6_K.gguf",
    )

    content = response.choices[0].message.content

IMO the simplest option is llamafile (it is multiplatform using "cosmopolitan" lib so should run on Windows too, but I haven't tried)

    wget https://huggingface.co/Mozilla/Llama-3.2-1B-Instruct-llamafile/resolve/main/Llama-3.2-1B-Instruct.Q6_K.llamafile
    chmod +x Llama-3.2-1B-Instruct.Q6_K.llamafile
    ./Llama-3.2-1B-Instruct.Q6_K.llamafile --server

I hanen't touched Django in some time, but something like this should work:

    from django.db import models
    from django.db import connection

    class MyModel(models.Model):
        name = models.CharField(max_length=255)

        class Meta:
            app_label = 'myapp'


    with connection.schema_editor() as schema_editor:
        schema_editor.create_model(MyModel)

    # from django.core.management import call_command
    # call_command('makemigrations', 'myapp')
    # call_command('migrate', 'myapp')

For my personal needs, when it's not used as a build system but for collecting some shell functions in a file, I've completely switched to a combination of xonsh/python-fire and never looked back. Xonsh looks a bit weird, but it's superfast to write, and I always can read it perfectly. A messy example - one of my local scripts:

../bin/ok:

    #!/usr/bin/env xonsh
    """
    $> ok android shell
    $> ok android ssh
    $> ok android sshd
    $> ok android sms
    """
    import fire as _fire

    class android:
        ip = '...;

        def shell(self):
            adb connect f'{self.ip}:5555'
            adb shell

        def sshd(self):
            adb connect f'{self.ip}:5555'
            adb shell input keyevent 26
            adb shell input swipe 500 800 500 300 200
            sleep 1
            adb shell am start -n com.termux/.app.TermuxActivity
            adb shell input text "sshd"
            adb shell input keyevent 66
            adb shell input text "exit"
            adb shell input keyevent 66

        def ssh(self):
            ssh -p 8022 f'user@{self.ip}'

        def sms(self):
            result = $(ssh -p 8022 f'user@{self.ip}' termux-sms-list -l 20 | jq ".[].body")
            print(result)
            def long_echo(): print(result)
            @(long_echo) | llm -m llama3 -s 'please translate messages to English, quote the original messages too'

    if __name__ == '__main__':
        _fire.Fire()

You might want to try to send ctrl+c (using something like xdotool or ydotool) to the app to copy the current selection to the clipboard and then to extract clipboard contents to use it in a script.

So one of the ways how it can be done is: In linux (at least in gnome) it's possible to bind any app or script to a custom global hotkey, plus xclip has access to the currently selected text and zenity can be used to display the result. So it's possible to do it just using bash script bound to a global hotkey.

It's not a 100% match for the requirements but I use miniflux for that. It does have a very basic interface that I never use. But it supports a number of API protocols, so probably most of the clients that supports some backend will work with it. Also it seem to be implemented in Golang.

In fact, just looking at ProtonDB...6 out of the top 10 games are 'borked' on Linux.

You have a point but also if you switch the type of games there from "All Games" to "Single Player", situation changes a lot. So I'd say for the group of people who don't play multiplayer games much (like myself) gaming on Linux is pretty viable. The problem nowadays is more with anti-cheat than comparability.

It's super awesome. Just wondering if it can simultaneously use play-command to play sample and in the same time render the next to eliminate pauses? Also wondering if it can work through spd-say (speech dispatcher). I will probably be able to figure out both just checking in case if there are ready solutions.

I kind of think that the difference between electric bike and motorcycle is that electric bike ideally should be used on bike lanes within speed limit. So if the intention behind making an e-bike is to use it like a motorcycle then yes, motorcycle will be safer. But if the intention is to use it as a bicycle, using bicycle infrastructure (which arguably is very limited in America unlike how things are in Europe) at bicycle speeds but just without coming to your job covered with sweat then bicycles are safe.

Mitmproxy 7.0 5 years ago

I know that's not the purpose of mitmproxy, but wondering if it's possible to create automation scripts, like for puppeteer or export requests to curl/httpie/vscode rest client. I tried through web-interface but couldn't find anything like.

Given it was in the US at least in December 2019 if not earlier according to the NIH retrospective serology study it doesn't seem to be completely impossible. https://www.nih.gov/news-events/news-releases/nih-study-offe... Also similar Italian serology study by National Cancer Institute showed that sars-cov-2 was circulating in Italy as early as September 2019. https://www.reuters.com/article/us-health-coronavirus-italy-...