Uncategorized

Ollama remote connection

20. septembris, 2025
How to allow remote connections to ollama Create directory Create file override.conf and put this content Restart ollama
Read more ›
Uncategorized

Bus error on Composer install

9. novembris, 2024
I installed php 7.4 on Alpine Linux versions 3.20 and 3.19. Php works fine but there is problem with Composer. When I tried to install Composer itself it gave me error “Bus error”. Tried to debug Composer installer file and found that Bus error message is thrown by this function call openssl_x509_parse($contents) If you disable …
Read more ›
Uncategorized

Arch linux on AMD laptop suspend immediately wakes up

26. jūnijs, 2024
So now I have laptop with AMD Ryzen 7 5800H with Radeon Graphics. Everything works greate except when I try to suspend it suspends but immediately wakes up I found one solution which kind-or works for me. It was found here https://www.reddit.com/r/archlinux/comments/y7b97e/my_computer_wakes_up_immediately_after_i_suspend There is linux system file. Which is not regular file. So you cant …
Read more ›
Uncategorized

Asus ROG Falchion shutting down linux computer

25. jūnijs, 2024
On my Arch linux laptop I have problem when computer after some time turns off. No errors just regular shut down procedure. After inspecting journalctl I found out that someone is sending power off signal. And that someone is Asus ROG Flachion keyboard which when entering standby mode sends “Power key pressed short” signal to …
Read more ›
Uncategorized

CORS error insecure private network

11. janvāris, 2023
You are developing localy on localhost and make xhr request from javascript to your locahost and get this CORS error: insecure private network This is chrome security feature. You can make xhr requests only from https To disable this change this config in Chrome chrome://flags/#block-insecure-private-network-requests
Read more ›
Uncategorized

ssh send_pubkey_test: no mutual signature algorithm

4. oktobris, 2022
Create or edit your ssh config file. This file is located at /home/{user}/.ssh/config Now add ssh config for host you cant connect It tells ssh client to use rsa algorithm when connecting to remote server. This happens when connecting to older ssh servers For realy old ssh servers try adding this line
Read more ›
Uncategorized

PHP max_input_vars

2. oktobris, 2022
PHPs configuration value max_input_vars When you are posting array to php with lots of elements in it, This config will determin how many of variables from array will be extracted. By default it is 1000. So if you have 1001 item in array, then only 1000 will be extracted It is also used by function …
Read more ›
Uncategorized

Linux how to find large directories

20. septembris, 2022
When you get message “no space left on device” you need to find where all free space gone. To do this I use command du – which stands for disk usage This command will tell size of directory it is run in I start investigating from root directory “/”. Add flag -d1 which tells du …
Read more ›
Uncategorized

Google maps very slow on chrome

11. septembris, 2022
Google maps on chrome is very slow on my windows 10 computer. In same time on Firefox google maps runs very smoothly. Tried to disable all plugins, no success Tried in incognito mode, no success Tried updating, waited few months maybe fix will come But nothing changes, google maps is very slow. Despite the fact …
Read more ›
Creations

PVN kalkulators

15. aprīlis, 2020
Kas ir PVN? PVN atšifrējas kā pievienotās vērtības nodoklis Pievienotās vērtības nodoklis (PVN) ir nodoklis, kas tiek pieskaitīts pie preces vai pakalpojuma tirgus vērtības naudas izteiksmē. Tas tiek piemērots visās Eiropas Savienības dalībvalstīs. Kas maksā PVN? PVN maksā preces vai pakalpojuma gala patērētājs. Privātpersonas maksā PVN preču iegādes vietā, piemēram, veikalā, kur PVN jau ir …
Read more ›
Creations

JavaScript color transition

6. augusts, 2019
Demo is here http://pad.darbs.xyz:8044/color-transition/examples/basic.html GitHub repositiory https://github.com/kasparsb/color-transition This library uses canvas element to generate gradient from provided color stops. You pass in transition progress value from 0 to 1 and library returns color This method is very accurate because of generated gradient. All kind of mathematical solutions works differently Here comes inline demo. If you …
Read more ›