Lugsole.net long logo

Author - Lugsole

Bio

Just learning

Social

Lets first start with yes there are wierd things that are syntacticaly correct, but are ard to read. For example in c++ and javascript you can use inline functions and the && and || operator to performs if else statements. In python there are these list generators where it is possible to have a for loop inside of an array. Another wierd bit of syntax that is syntactially correct would be using the star opperator in a functions arguments. ...

Read more

When trying to learn AI I realized that loading the model on a smaller and less capable device would be necessary. Considering I would like t o hypothetically load the model up on my phone or a cheep laptop. I first started googling around, but that got me no where considering i did not have the structure set up to save the file. First you need a model in a nn. ...

Read more

This is a demo of what can be done with a little AI in the web browser. This is an implementation of an AI that plays the "tye 21" that was played on the "Survivor" TV show. The game rules are quite simple. There are 21 flags and 2 teams/players. The players alternate turns every round. Every turn a team closes either one, two or three flags. The objective it to get the last flag. ...

Read more

This is a demo of what can be done with a little AI in the web browser. This is an implementation of an AI that plays the "tye 21" that was played on the "Survivor" TV show. The game rules are quite simple. There are 21 flags and 2 teams/players. The players alternate turns every round. Every turn a team closes either one, two or three flags. The objective it to get the last flag. ...

Read more

This is a test $ \begin{bmatrix} s & 0 & 0 & 0\\ 0 & s & 0 & 0\\ 0 & 0 & s & 0\\ 0 & 0 & 0 & 1\\ \end{bmatrix} $ $ \begin{bmatrix} cos(ay) & 0 & sin(ay) & 0\\ 0 & s & 0 & 0\\ -sin(ay) & 0 & cos(ay) & 0\\ 0 & 0 & 0 & 1\\ \end{bmatrix} $ $ \begin{bmatrix} cos(i) + cos(☊) \times cos(☊) \times (1 - cos(i)) & - sin(☊) \times sin(i) & cos(☊) \times sin(☊) \times (1 - cos(i)) & 0 \\ sin(☊) \times sin(i) & 0 & - cos(☊) \times sin(i) & 0 \\ sin(☊) \times cos(☊) \times (1 - cos(i)) & cos(☊) \times sin(i) & cos(i) + sin(☊) \times sin(☊) \times (1 - cos(i)) & 0 \\ 0 & 0 & 0 & 1 \\ \end{bmatrix} $ $ \begin{bmatrix} cos(\theta) & 0 & sin(\theta) & 0\\ 0 & s & 0 & 0\\ -sin(\theta) & 0 & cos(\theta) & 0\\ 0 & 0 & 0 & 1\\ \end{bmatrix} $ $ \begin{bmatrix} x & y & z & 0\\ \end{bmatrix} $ ...

Read more

When trying the Gnome health app on the pinephone there are a few noticeable problems as of release 0.93.3. The first one is the add data button. The problem with this is that the dialog box takes 600 units wide. This is more than can fit on the pinephone’s screen at the default 200% scaling factor. This means that the save and cancel buttons are hidden. The first component that was needed to fix was the resizable property. ...

Read more

Set up your Environment Learn your new Environment (likely will skip over) Wondows Debuging Linux/BSD Debugong Basic IO Output stream Input stream Error stream Data types Integers Strings Pointers Arrays Operators over all Addition/Subtraction Multiplication Bitwise Or and Bit shifts conditional operators Control flow ...

Read more

Windows The best solution on windoes would be to install “Visual Studios”. Linux On linux you’ll want binutils, gcc, g++, and eventually make. Arch sudo pacman -Sy base-devel Debian/Ubuntu sudo apt instal build-essential Fedora/RHEL sudo dnf groupinstall @development-tools BSD FreeBSD You should be set up reasonably well out of the gate. ...

Read more

Debugging in Linux One way to debug in Linux would be to use gdb. This program can run and debug most programs you can write. setting up to debug a program First, you need to build the binary in such a way that allows the program to be debugged. This can be done by passing gcc or g++ the -g flag. attach attach [PID] This command allows gdb to attach itself to another process. ...

Read more