holdengreen

joined 2 years ago
MODERATOR OF
1
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 

I ordered maybe like $300 at end of stuff from aliexpress and I think saved like $60. Almost bought this great deal on a battery system.

got some solar cells, Oneodio headset, netac ssd, tried buying some metals like titanium rods as a store of value, 1515 aluminum set, some LoRa/4G antennas for experimenting with mesh.

a few other bits

I made two orders and the second one finished like 30 seconds before midnight, it was crazy waiting for Honey to go through all the codes to get a really good discount.

I was preoccupied with shopping for like a week, that was pretty stressful and with other factors in my life.

[–] [email protected] 7 points 2 years ago

hope I don't get in trouble for this

 

I look endlessly for parts on alibaba, rn for solar batteries. And I have tried to ship for parts like cooling fans but then I am bitten by shipping at the end....

Now I find myself having to inquire about each part because the prices listed aren't accurate.

How to get what I need?

[–] [email protected] 0 points 2 years ago (1 children)

1, 2, 5, 6, 7

I see pro Russia people promoting these points but in those cases it's a lot more likely to be based in reality.

 

Cat climbed up on the counter and tried to mess em up.

I want to start an indoor and outdoor garden. Planting season is coming up.

I'm also having decent success germinating some rice.

I'm somewhat regretting my choice to buy pinto and black bean 'seeds'.

Also I've been making trips up into the hills to dig up naturally occurring clay and that sort of thing and carry it down in my big backpack.

Maybe I can try and make some dirt out of that.... I already went to home depot to get some garden fertilizer, but I prob need to get some high nitrogen stuff in bulk.

 

from my twitter:

I started mocking up my DIY workstation enclosure case. I will make it with cheap aluminum extrusions from aliexpress and some plywood sheets, maybe acrylic if I can find that cheap.

expect it to def change once I'm done designing, it's late

this is in openscad

red = 450mm extrusion

white = 500mm extrusion

brown 'sienna' = 150mm extrusion

green = a 3.5" hard drive

purple = ATX power supply

black = my motherboard

beige = plywood sheet

blue = large radiator

light blue = 12cm fan

I can change the extrusion sizes programmatically if I need more space or can cut down on space.

issue is this radiator I bought is 15.5" long so that doesn't leave much vertical room for other stuff like the hard drive rack.

unfortunately might need a couple smaller radiators.

Workstation Thread 2022

I think this will be the final design:

room for 3 hard drives and a liquid cooling reservoir + extra space between mobo and fans and above and below that. and there should be space on the exterior for vents, PCIe io, and whatever else.

the code: https://github.com/greenempower/workstation/blob/main/casing/mockup.scad

I count 4 red, 7 white, 9 brown extrusions. I'll get extra of each especially the 150mm brown extrusions.

updates -

Ok I ordered $80 worth of aluminum extrusions - $5 discount - $10 extra I prob won't use for this.

Instead of ordering the 150mm precut I ordered 8x 300mm because they are tangibly cheaper per mm so I will cut them in half as needed and have a few left over.

I will prob get plywood from home depot and plastic sheets (cheap PETG or acrylic) from mcmastercarr.

 

I thought to do this when I started reading the pinned post titled 'Listening-Reading Method and Spanish'.

https://farkastranslations.com/bilingual_books.php

I encoded it in 112kbps opus to an ogg file using ffmpeg (it's mono, ~731MB, 15:12:58 long): https://github.com/holdengreen/lingtool/blob/main/streams/center-earth-journey-es-en-original-botched.ogg

I wrote the script to process the text file at: https://farkastranslations.com/books/Verne_Jules-Voyage_au_Centre_de_la_Terre-fr-en-es-hu-nl.zip

Here is the script (https://github.com/holdengreen/lingtool/blob/main/src/center-earth-parallel.py):

import re
import sys
import torch

import numpy as np
MAX_WAV_VALUE = 32768.0

sample_rate = 48000

accelerator = 'cpu'
device = torch.device(accelerator)

class SpanishTTS:
    language = 'es'
    model_id = 'v3_es'
    speaker = 'es_1'

    def __init__(self):
        self.model, example_text = torch.hub.load(repo_or_dir='snakers4/silero-models',
                                                model='silero_tts',
                                                language=self.language,
                                                speaker=self.model_id)

        self.model.to(device)  # gpu or cpu

    def apply(self, text):
        return self.model.apply_tts(text=text,
                        speaker=self.speaker,
                        sample_rate=sample_rate) * MAX_WAV_VALUE


class EnglishTTS:
    language = 'en'
    model_id = 'v3_en'
    speaker = 'en_117'

    def __init__(self):
        self.model, example_text = torch.hub.load(repo_or_dir='snakers4/silero-models',
                                                model='silero_tts',
                                                language=self.language,
                                                speaker=self.model_id)

        self.model.to(device)  # gpu or cpu

    def apply(self, text):
        return self.model.apply_tts(text=text,
                        speaker=self.speaker,
                        sample_rate=sample_rate) * MAX_WAV_VALUE


spanishtts = SpanishTTS()
englishtts = EnglishTTS()


FFMPEG_BIN = "ffmpeg"

import subprocess as sp
from fcntl import fcntl, F_GETFL, F_SETFL
from os import O_NONBLOCK, read



fl = open("res/foreign/parallel-translations/Verne_Jules-Voyage_au_Centre_de_la_Terre-fr-en-es-hu-nl.farkastranslations.com/Verne_Jules-Voyage_au_Centre_de_la_Terre-fr-en-es-hu-nl.txt", 'r')
t = fl.read()
fl.close()


errfl = open("log/err.txt", 'a+')

proc = sp.Popen([ FFMPEG_BIN,
       '-y', # (optional) means overwrite the output file if it already exists.
       "-f", 's16le', # means 16bit input
       "-acodec", "pcm_s16le", # means raw 16bit input
       '-ar', str(sample_rate), # the input will have 48000 Hz
       '-ac','1', # the input will have 2 channels (stereo)
       '-i', 'pipe:0', # means that the input will arrive from the pipe
       '-vn', # means "don't expect any video input"
       '-acodec', "libopus", # output audio codec
       '-b:a', "112k", # output bitrate (=quality).
       'streams/center-earth-journey-es-en-1.ogg',
       '-loglevel', 'debug'
       ],
        stdin=sp.PIPE,stdout=errfl, stderr=errfl, shell=False)


#flags = fcntl(proc.stdout, F_GETFL) # get current p.stdout flags
#fcntl(proc.stdout, F_SETFL, flags | O_NONBLOCK)


def readlines():
    #print(proc.stdout.readlines())

    #while True:
    while False:
        try:
            print(read(proc.stdout.fileno(), 1024))
        except OSError:
            # the os throws an exception if there is no data
            print('[No more data]')
            break

#print(ascii(t))

t = t.split('\n')

max_ln = len(t)
ln_cnt = 1
for e in t:
    print("processing {0}/{1}".format(str(ln_cnt), str(max_ln)))

    g = re.split(r'\t+', e)

    try:

        #spanish
        proc.stdin.write(np.asarray(spanishtts.apply(g[2]), dtype=np.int16).tobytes())

        #1 second pause
        proc.stdin.write(np.asarray([0] * sample_rate, dtype=np.int16).tobytes())


        # english
        proc.stdin.write(np.asarray(englishtts.apply(g[1]), dtype=np.int16).tobytes())

        #2 second pause
        proc.stdin.write(np.asarray([0] * (sample_rate*2), dtype=np.int16).tobytes())

    except Exception as e:
        print(repr(e))
        
        print("occured for lines: ")
        print(g[2])
        print(g[1])


    ln_cnt += 1

Run it with python3.9 and use python3.9 -m pip install to install the dependencies such as PyTorch.

This took maybe five hours to generate on my i7 6700HQ laptop. And btw I counted 13 exceptions either Exception("Model couldn't generate your text, probably it's too long") or one was UserWarning: Text string is longer than 1000 symbols.. This means I think the text is too big or there were some symbols or something it can't handle. I will investigate. ValueError(s) don't seem to be much of an issue tho.

There were 2155 translation pairs in total (most being large paragraphs) so missing 13 isn't a huge deal. The format of the file is separated by \t and \n. It comes in chunks where the paragraphs in different languages are seperated by the tabs and those chunks where the parallel translation moves on to the next set of equivalent paragraphs are separated by new lines. English is at index 1 and spanish at index 2.

Can't wait to use this tomorrow on my walks.

 

from my twitter:

"So I'd like two radios that I can put on a portable module. One that's high range low rate. Other is low range high rate.

For a commodity mesh/peer to peer internet networking module.

I'm no RF expert myself but I'm trying to find these to order and put on a PCB in a 3D printed enclosure with battery that could maybe be carried around in the size of a pocket.

I think free internet is a right not something those sick lizards can gate keep.

And if this is not something I can find easily available then I would like to know how to skillfully manufacture them."

 

This has some pretty interesting computational chemistry material in it.

 

It's faster now, great.

 

The politics are actually mostly pretty good in this.

 

koko.org

[–] [email protected] 1 points 2 years ago

Lot of experience with westoids is many of them can't be expected to self regulate.

[–] [email protected] 1 points 2 years ago* (last edited 2 years ago)

Federated Ebay. Anything riscv. Middleware, tools for games and contribution to existing FOSS games and engines.

And there are probably a ton of little things out there... (specifically to make Linux and FOSS more competitive with proprietary brands in every day usage and specific niches.)

I think it's good to ask comrades these questions who may not have time or expertise on their own.

[–] [email protected] 1 points 2 years ago

I'm on California but there would likely be competition.

[–] [email protected] 0 points 2 years ago (2 children)

Yes there is some food, weapons, bibles, that sort of thing. But so much of what makes my life enjoyable like stuff from aliexpress will be completely inaccessible.

Atleast I can get a pretty good selection of used computer parts on ebay (but the corps are trying to take that away).

[–] [email protected] 0 points 2 years ago (6 children)

Lol these *ss holes think I'm actually gonna buy made in amerika products?

[–] [email protected] 0 points 2 years ago* (last edited 2 years ago) (1 children)

I gave some good money to Bernie then when I was 17 didn't know better.

I see what you say but I want to argue it's not worth much of our individual activism time/energy.

Voting is somewhat useless if it's not organized strategically in a group which is what I suggest.

And our 'democracy' is very secure from what it means to actually be democratic. The maximum payout from voting as a form of activism is small because of this. That is why it not worthy of a large consideration.

[–] [email protected] 1 points 2 years ago (3 children)

The national clown show should take up a very small fraction of your legitimate consideration imo.

But feel free to gum up the local scene. And if your orgs allies have a certain way to vote then do that.

[–] [email protected] 0 points 2 years ago (2 children)

No. China is not a "capitalist" country by Marxist standards. That's my take as someone who has never been to China. I think the people who want to argue that China is capitalist are sus. If China went along with western capitalism then they wouldn't accomplish so much and it would be a great shame. What has the CPC been doing this whole time?

[–] [email protected] 2 points 2 years ago (2 children)

Whichever one doesn't end in nuclear exchange.

[–] [email protected] 0 points 2 years ago (1 children)

This is so bad it's good. Funny it's in open air.

view more: next ›