KnilAdlez

joined 4 years ago
[–] KnilAdlez@hexbear.net 4 points 14 hours ago* (last edited 14 hours ago) (3 children)

Eh, a lot of American models are open too. Meta's llama and Microsofts phi for example. But if a chinese company can make a better model and release it for free, then why use anything else?

[–] KnilAdlez@hexbear.net 8 points 16 hours ago (6 children)

The soft power of making the best LLMs

[–] KnilAdlez@hexbear.net 4 points 1 day ago

I just saw the title and thought to myself 'Surely this fucking song can't follow me to hexbear'

[–] KnilAdlez@hexbear.net 1 points 1 day ago* (last edited 1 day ago)

I'm imagining if our galaxy collided with another, but on the far side so scientists announce that the earth will definitely be destroyed in 100 million years when we get to that side.

[–] KnilAdlez@hexbear.net 14 points 2 days ago* (last edited 2 days ago) (2 children)

My favorite phrase in the world is 'lingua franca'. It is a medieval Italian phrase that refers to a common language used to bridge between two others, such as for trade. Because of British then American economic and cultural dominance over the past 200 years, English is the bridge language for trade all over the world. The phase itself translates to 'language of the franks' referring to a Germanic language that eventually mixed with Latin to form French.

All of this is very simplified of course but to simplify it even further, this is an Italian phrase that translates to French that means English.

[–] KnilAdlez@hexbear.net 9 points 2 days ago

Carapacie? Chitinie?

[–] KnilAdlez@hexbear.net 25 points 3 days ago* (last edited 2 days ago)

The thing about benzodiazepines is that they make it easier to deal with chaos. But the chaos people, remember when I told you women are chaos people, piers? The chaos people don't want that, so they make you stop using them.

[–] KnilAdlez@hexbear.net 3 points 3 days ago* (last edited 3 days ago)

Listen folks, the gods are bad people. Everyone's saying it. They say Trump you have to do something about the pantheon and I say I don't know it didn't go so well Caligula but they insist. They say you're the only one who can do it only you and some very smart people; very smart people said 'oh attack mars, oh attack Jupiter' I said look, let's just go after Fortuna. No army, just keep Her from giving us bad luck. Stop Her from bestowing misfortune and there won't be any more trouble from any diety. We'll have good luck and not just on the battle field, good luck for the American people. Good luck for every sing- imagine it, everything will go well, you'll find money in your pockets really it's almost like welfare but the Gods are paying for it, and not the taxes.

[–] KnilAdlez@hexbear.net 6 points 4 days ago

Jack offer? I barely know 'er!

[–] KnilAdlez@hexbear.net 55 points 5 days ago* (last edited 5 days ago) (3 children)

"What are you going to say about [Mario Cuomo], that he spawned me and Andrew?"

Actually yeah, he raised two morally bankrupt sexual abusers.

[–] KnilAdlez@hexbear.net 8 points 6 days ago* (last edited 6 days ago)

Honestly, save up the money for an expensive laptop. It is a night and day difference. I have had my dell XPS for almost 10 years now, and it simply won't die. It sucks, because hate spending money, but a good laptop starts at $900. When I worked at Best buy, let me tell you, if I sold a laptop <=$500 I knew that thing was coming back (especially Dells. Only buy enterprise Dells). Asus were better quality at a bit lower price ($700), but other than that I would personally not buy anything that is not made for business.

 

I've been thinking of ordering from one of those what I like to call bachelor chow services such as Huel or JimmyJoy. I'm disabled and often don't have the energy to cook for myself but I really want to order out less. Would this be a good investment? They are around 2-3 dollars a meal, but shipping kills that.

 

This was not a film about a bunch of marxists fixing the world by understanding material conditions, but instead about Dakota Johnson having to choose between Pedro Pascal pretending he's 6' tall and Chris Evans pretending he isn't.

Yet somehow, this film actually is about capitalism. And how it has reduced the concept of relationships to checkboxes and transactions. It effortlessly jumps from silly romcom to handling very serious matters to making me wonder if the director, Celine Song, is on this site (hearing the phrase 'voluntary celibate' in this film shocked me).

The writing was phenomenal, giving a realistic look at the rich and the poor alike. I could actually gush about the dialog all day, but honestly, I don't want to spoil it. Cinematography was also amazing. Nearly every shot was blocked with beautiful intent or used framing to just make great looking shots. The of anamorphic lenses to form frames and tell the story was gorgeous as well.

To criticize the film, I wish we had a bit more from Pascal's character, I never felt like I was in his head, and Dakota Johnson did not give as good of a performance as the rest of the cast.

So is it about marxist materialism? No, but also in a way, yes. If had to give it a rating, I would say 4.5/5 stars. I might go see it again, because I'm sure there were things I missed.

 

I remember some time before the internet, and there was so much less knowledge available freely. I assume Shakespeare came from a well to do family, but how did the knowledge of this historical event stay available up for him to hear about it?

 

spoilerXanthan gum (/ˈzænθən/) is a polysaccharide with many industrial uses, including as a common food additive. It is an effective thickening agent and stabilizer that prevents ingredients from separating. It can be produced from simple sugars by fermentation and derives its name from the species of bacteria used, Xanthomonas campestris.

This is a drink I discovered on accident in 2019, before the meme of thick gatorade existed. I unfortunately forgot to dissolve the xanthan gum in an oil before putting it in the drink this time, so I have to wait 24-48 hours for it to dissolve into the water. I was attempting to emulate how I remember the lizard milk from Sobe tasted and felt, which was kinda thick and fruity. Idk if that was even correct, but it was covid and I was hankering for early thousands to forget my worries. Also the first tony hawk pro skater controls like shit but the soundtrack is still bomb.

Anyway, I decided to do it again for a lark. I was feeling thirsty and I thought if I trapped the water and electrolytes in some kind of non water soluble matrix, the slower release would keep me from being thirsty for longer.

Anyway, this has been KnilAdlez's science corner. Tune in next week when try the same thing with mtn dew game fuel and make The Worst Drink Imaginable.

 

Fuck. Fuck. Fucking shit. God damn fucking ass shit is fucked fucked fuckfuckfuck shit fuck fucking ass mierda shit ass fuck dookie ass piss piss piss piss

AAAAAAAAAAAAAAGH

40
submitted 5 months ago* (last edited 5 months ago) by KnilAdlez@hexbear.net to c/technology@hexbear.net
 

Hello! With the recent discussions of LLMs and DeepSeek, I thought I would share how to set up a personal assistant with Home Assistant. I have been using Home Assistant for years now because I have an auto-immune disease and I need to conserve all of the energy I can. I have found it invaluable and with the recent addition of ollama integration, it has become even easier to use.

Preparation: ~~voice assistant please~~ Hardware

First thing we need is something to run Home Assistant on. Any computer will do for right now, but we'll talk about about LLM hardware a little later. Any computer is fine, including raspberry pis. If you don't have any spare computers,you can purchase a Home Assistant Green which will come pre-loaded with Home Assistant. If you are using your own hardware, there are a couple of options:

  • Install HAOS, their own distribution of Debian with Home Assistant pre-installed
  • Install the Home Assistant container, which is limited in functionality, but if you do not need add-ons, it is an option.
  • Install Home Assistant Supervised. This option is only for Debian devices, and they are strict about it on the forums, but I have it running on Ubuntu and it works fine, it just gives me an unsupported OS error sometimes. It will install in a couple of docker containers.

All of the installation instructions can be found Here

Finally, you need some IoT devices. Home Assistant has thousands of Integrations, so just search for the device you want to connect. There are even more custom integrations, but these are the supported options. As an aside, if you have very cheap wifi devices such as light bulbs or switches, see if you can control them with an app called Tuya Smart. If so, they are manufactured by a company called Tuya. Go to Walmart and pick up a few of These, these and one of these and you will be set to control your nearly everything in your home. While there is an official integration for the tuya devices, using a custom one allows for local control that does not call back to their servers. I will go into this later.

Step 1: Installation

I already touched on this, but if you are installing supervised on a non-supported OS, this thread is now for troubleshooting. Once installed, just follow the on screen prompts and it will tell you what devices available for home assistant on your network already.

Step 2: ~~Okay, now I get voice assistant right?~~ Advanced set up

Now, what I would suggest is installing the Home Assistant app on your phone and setting up areas in your house. With areas, you can assign your devices to a location in your house and control everything in that location at once. This can be found in Settings->Areas, Labels, and Zones.

I would then suggest finding a local weather service in the integrations and installing it, so that you can have that information available to you at all times.

For custom integrations, such as LocalTuya, you will need HACS, this is not officially supported, but it gives you more privacy, so I suggest it.

Finally we need to talk about a sticking point: bluetooth. Home Assistant tends to not play so nice with bluetooth, so it is suggested that you purchase an ESP32 and set up a bluetooth proxy if you need BLE. Which leads to my next step.

~~Please, I just want voice assist. Why are you doing this?~~ Custom devices

Home Assistant has another project called ESPHome. With this, you can make custom devices that connect with bluetooth or wifi to control whatever you want with a simple yaml scripting interface. I would suggest installing the ESPHome add-on as well. This new device will integrate seamlessly with home assistant.

~~That last section shouldn't be before VA, that was just cruel.~~ Automation

Under settings-> Automations and scenes, you can automate your house if a simple wizard. Simply select what you want to be your trigger. it can be time, a voice assistant sentence, scanning a qr code, and more! Sometimes, to get some thing done, you need to store a state in a dummy device, and those can be made in the Devices and Services menu, under helpers. These open your options tremendously. You can use them to change the device type of a switch, group similar devices, have a counter, or more. I use them to track my medication, and to control a heater like a thermostat.

~~Actually, I'm interested in more than VA now, can you tell me about controlling~~ Music

Another great project is Music Assistant. It's very new, so it is still not super feature rich, but it lets you control multiple music sources and multiple speakers from home assistant.

You can also just get the Spotify integration as well.

Alright, let's talk about setting up Voice Assistant ~~Fucking finally~~

Voice Assistant is build into Home Assistant and can be controlled from the top right hamburger menu. It uses sentence matching to control your devices, and it has a lot built in already, but you can write more with automations. With it, you can set times, change device states, and trigger automations.

But you probably want more help than that, so lets talk about integrating a complete solution. We want to be able to shout at a box and have it talk back. First, we need a box to shout at. I just use my phone, but there are several options, from a (low cost option)[https://www.home-assistant.io/voice_control/thirteen-usd-voice-remote/] to a Whole smart speaker. You can also just connect a microphone and speaker to your server directly.

Next, we need add-ons, which can be found under settings. You will want Piper for text to speech, Whisper for Speech to Text, and openWakeWord if you are using the server to process wake words.

Now we need integrations. You need Wyoming Protocol and if you want to use an LLM, ollama. Search for them under the integrations menu.

You can now set all these up in the Assist menu, but I'm going to diverge into LLMs for a moment.

LLMs

if you want to use ollama, you need to install ollama from here. Now to run an LLM you will need some better hardware, but we have some options. I have no doubt that a 7 billion parameter model will work fine for Assist, but they require at least an RTX 3060 to run. If you do not have a spare graphics card and do not want to pay for one, You can try running a smaller model on your CPU. Keep in mind the smaller the model the more likely it will make a mistake. Search the ollama website for models that use tools. Llama 3.1 and 3.2 are good models for this.

You'll notice I did not suggest DeepSeek, this is for a reason. two actually. 1) It is slow and 2) It cannot use tools.

The olama integration provides a good system prompt but you can change the model file directly to integrate it into your model and speed up the model a little.

Home assistant does allow you to have the LLM as a fallback if it cannot match what you say to an existing sentence. This way you get the speed of sentence matching and only need to use the LLM if you say something complex. My personal setup uses this and a small LLM (llama3.2 3b) with a six core 12 thread ryzen CPU.

Then you need to expose your devices to the voice assistant. Keep in mind the more devices you expose, The longer it will take the LLM to process. When you expose a device, You have the option to set an alias which is useful when you want to refer to something with a brand name or a custom name by a generic term. I use the android tv remote integration, and I alias it to 'the TV' so I do not have to call it 'remote'.

From here you should have everything you need to have your own smarthome. Have fun and enjoy the automation without giving up your privacy!

14
submitted 6 months ago* (last edited 6 months ago) by KnilAdlez@hexbear.net to c/programming@hexbear.net
 

I recently had to deal with debugging chatgpt code, and though it was written clearly, it just seemed so ugly and hard to read to me. So I started to think about what I like and what I don't like when reading code. My personal guidelines for beautiful code are:

  • space out code into functionally similar chunks. That way it's easy for my eyes to separate the steps of the code. (Often this is code that is only used once, so there is no need to put it in it's own function)
  • comments are for clarity, and too many make clarity worse.
  • similarly, doc comments in 2024 need to be completely rethought. I already have the actual documentation open on my screen most likely, no need to put the same information in your code. (yes, I know that java and others generate documentation from doc comments, and I don't like it)
  • functions should be ordered by order of execution. Reading down the code should be like reading a book, telling the story of the code's execution. For an OOP language this should pretty well line up with layers of abstraction as well.
  • python should be wiped from the face of the earth.
  • self-documenting code (which is to say code with very long variable names) is bad practice. Once again, the code should be able to be read like a book, you wouldn't name the protagonist of Lord of the Rings 'Ring_barer_to_mordor_hobbit' just name variables something memorable and useful and move on.
  • of course, the opposite, variables just named something meaningless like 'a' should only be used in the most limited of scopes. Loops, lambda functions, etc.
  • There should be consideration for how the code flows on the screen
  • curly brackets in C-like languages should always have their own line, with the exception of the start of functions and short if/else statements.

I don't know, these are just things that I have noticed I like to see in code. This could be the ravings of a lunatic as well.

spoilera tab is 2 spaces

 

I always liked ska, but I never got into Streetlight Manifesto for some reason. But this song came on while I was listening to music and I haven't stopped listening to it for 3 days.

If you're not a fan of Ska Toh Kay did release an acoustic version

 

A few days ago, my partner told one of their coworkers about me making cookies at night, and the coworker immediately asked if I was manic. I decided to look into it and while I don't get highly manic or depressed, my behavior does match the symptoms pretty well. On top of that, about half of people with MS have a mood disorder.

I guess I don't want my partner to think of me as a normal person with a layer of personality on top due to BPD. And I really don't want them to be scared of my hurting them due to stereotypes about it. But there is a really good chance I have it (I will seek a diagnosis) and they have a right to know.

Edit: I sort of soft launched it by asking if they would think of me different or be scared of me if I had bipolar disorder, and they just straight up said yes, at least for a while. I'm hoping that at worst it's Cyclothymia.

 

"So yeah the son of God was on earth, but you just missed him. He was crucified about 50 years ago. Your dad might've met him."

And then Mount Vesuvius fucking explodes

Edit: I meant Roman, I wrote this late at night.

 
 

The joke I was trying to make is that this was the first interview since he dropped out and was now going through an emo phase

view more: next ›