Logseq supports some of org mode syntax.
HN user
c6401
I'm mostly using this nowadays >>> subprocess.getoutput('ls')
Emacs on my phone sounds lovely!
Meanwhile, you can use it in termux if you are on android right now.
Logseq actually supports orgmode files on android (and desktop) in some extent, for me it works better than orgzly.
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?
JS used to have those, now they are deprecated though:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
so it settled on having this syntax for similar cases using "Symbol":
class Foo { *[Symbol.iterator]() { yield 1; yield 2; yield 3; } }
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
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.
I use orgzly
A couple of alternative options, none of which are perfect, are using Termux with installed Emacs or Logseq, which supports org-mode syntax for files.
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.contentIMO 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 --serverI 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')Additionally to the provided answers:
if sanity_check(): variable = something()
variable = sanity_check() and something
(but the standard python two line way is more readable unless it's a throwaway single use code, then whatever)
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.
Thank you for your work, awesome software.
I'm wondering if there's a way to use python-fire instead of argpraser with gooey?
Interesting. Have you tried using sshd in termux to connect to android through ssh instead of some of your steps? I think am works in termux but I haven't tried it there.
I know and like this application for a long time, but I wish it worked just in python instead of jython.
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.
Thank you! Streaming output to aplay works pretty well for me.
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 like "ek", but I'm not a native speaker, so my preference for British English voice might not be the same as for anglophones.
Memory B-cells, not antibodies.
There's https://github.com/richardpenman/browsercookie. Also at least for firefox it's quite easy to implement in like 5 strings or so.
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.
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-...