#programming

1 messages · Page 91 of 1

olive sable
#

i get -1 now, still not the intended 1 but better

#

-1 maybe means not found?

opaque sigil
#

idk you tell me

olive sable
#

ill ask google

opaque sigil
#

it'd make sense at least

#

given that it's a c api

#

This function returns -1 if name does not correspond to an active uniform variable in program, if name starts with the reserved prefix "gl_", or if name is associated with an atomic counter or a named uniform block

#

^ from glGetUniformLocation

olive sable
olive sable
#

C++ to opengl padding is so shit aaaa EvilAAAAAA

#

this is padded ont he c++ side, but for an array opengl doesnt want padding?

#

im so confused

tender river
#

well, you can always just use an array of 6 floats

olive sable
#

true

#

this is probably also the cause of my boundinboxes not working properly

green iron
#

AINTNEURWAY 1.1.1.1 is down

olive sable
#

The connection has timed out

The server at 1.1.1.1 is taking too long to respond.

rigid snow
#

dns has fallen, millions must manually add websites to hosts

tender river
#

pros of just using unbound

rigid snow
#

pros of actually using the backup dns server setting everything has had forever

tender river
#

backup dns: 1.0.0.1 NeuroClueless

olive sable
#

down with dns

#

down with dns

dusty niche
olive sable
raw trout
#

woah so much cool art

#

hope I can do something cool one day catdespair

olive sable
rare bridge
#

@real sierra screeps has forever ruined my sense of optimisation

#

i caught myself thinking "i need to make sure this all executes within 20ms" while writing a program destined to operate on a prod server

dusty niche
#

The 2016 one

olive sable
#

we love 0.245ms NeuroHeart

warped narwhal
tender river
sage crag
tender river
#

just remove them because the spec allows it cupsama

warped narwhal
#

it's not actually that bad, and I only have it cause it is a deeply nested structure for layout reasons

sage crag
#

excuse me

#

orbs????

warped narwhal
#

Oh, it also scales correctly on mobile

sage crag
#

seriously?

olive sable
warped narwhal
#

praise be the orber

rare bridge
tender river
#

oh my god its one of those rewards things when they make you watch an ad or play a game

opaque sigil
tender river
#

i use compact mode so i dont even see avatar decorations neuroPogHD

sage crag
#

bwa

#

same

amber fractal
#

One of these days I should just completely overhaul the discord UI for the lols.

olive sable
stray dragon
amber fractal
#

oh, this client does not have a decent scale set up

#

I need this ui at half size

sage crag
amber fractal
olive sable
amber fractal
stray dragon
#

avatar decorations? those don't exist, what are you talking about

amber fractal
amber fractal
#

client was not giving me a zoom slider, but the binds work

olive sable
stray dragon
#

i do wish they had a real option to not show them though, they're annoying visual clutter

hoary lion
#

Konii one's fire tho

#

Old brown tv

tacit plover
#

Tried adding a version control system to godot but I might have fucked up the installation

desert plaza
stray dragon
#

looks bad

desert plaza
#

ok despair

sage crag
tacit plover
#

How do I use git though

sage crag
#
git add -A
git commit -m "small changes"
git push --force
olive sable
#

NeuroBounce new update to hbalng stuff you're doing?

sage crag
#

i have been highly inactive

tacit plover
sage crag
#

i plan to get programming again tmr tho

sage crag
tacit plover
#

I didn't know better

sage crag
#

this would work though if you had a repository already

#

do you have a repository?

tacit plover
#

That was your one and only chance to tell me to run sudo rm-rf

tacit plover
sage crag
#

its the place where your git project lives

#

(codeberg is better than github enub)

#

will host your repository for you

#

and then you can modify the code in that repository

tacit plover
#

Oh so I'd have to store the whole repository on my own PC if I didn't use stuff like github?

sage crag
#

well, you will have a local copy if you want to make changes

#

but if you dont want to make changes then yes

#

you dont need to use a website to make a repository though. you can also make one locally.

tacit plover
#

I have 50GB left of storage so probably not

sage crag
tacit plover
#

Is it possible to use git through VCS?

#

I think I set something up like that during installation

sage crag
#

git is a vcs

tacit plover
#

Sorry, visual code studio

sage crag
#

yes, git is integrated into visual studio code

tacit plover
#

I'll check that out

#

Then I assume I should link git with a github account or something like that

sage crag
#

note that microsoft owns github. it may not be an issue for you though.

tacit plover
#

Don't think microsoft is interested on reading code for a game

tacit plover
sage crag
tacit plover
#

Is it open source exclusive

opaque sigil
#

wasn't codeberg really strict about only allowing repos with foss licenses or sth

opaque sigil
#

i'm so active neuroPogHD

sage crag
opaque wharf
olive sable
#

hi

sage crag
#

good 2am

olive sable
tacit plover
#

Well, guess I'll stick with github

olive sable
#

good 3am

#

you're wrong konii

opaque sigil
#

gotta be prepared for github spontaneously imploding

opaque wharf
olive sable
#

half my forks are just brackets AquaCry

sage crag
#

i can make one

olive sable
#

hblang port

opaque wharf
olive sable
#

uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu

opaque sigil
#

you're the one that just yoinked the makefile smh

opaque wharf
#

Dang, toast is adding meson lol

sage crag
olive sable
opaque sigil
#

i started and then hit tinygltf and stopped

olive sable
#

konii im getting my gun

opaque sigil
#

it should be fairly straightforward to port to meson though

opaque wharf
opaque sigil
#

make an option for including emscripten

sage crag
opaque sigil
#

i'm just lazy

#

and should be doing other things

olive sable
opaque sigil
#

why does btop --version suddenly give me a bold version number wtf is this neuroCry

#

so you can like idk

sage crag
#
user@linux ~> btop --version
fish: Unknown command: btop

interesting version

opaque sigil
#

meson -Demscripten build or sth and it also builds emscripten

olive sable
#

btop : The term 'btop' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
NODDERS

opaque wharf
#

So apparently someone managed to register the TLD .gay

sage crag
#

.gay has existed for ages

opaque sigil
#

it's been a thing for years no?

opaque wharf
#

I just know it today

#

So I can buy SamVanMaele.gay neurOMEGALUL

sage crag
#

also it's not some guy, it's ICANN enub

opaque sigil
#

iirc you technically need some affiliation with an lgbtq org to get one of the domains though or sth

#

at least that was the idea

#

could be wrong

#

probably stopped caring about that

opaque wharf
olive sable
#

im one of the least gay people here

#

konii is literlay into woman

opaque wharf
sage crag
#

it appears so

amber fractal
#

konii.gay

olive sable
#

konii.gay should redirect to ableos

sage crag
#

konii.gay should redirect to localhost

opaque sigil
#

i guess the idea initially was to limit it but then they gave up on that

#

close enough

olive sable
opaque wharf
opaque sigil
#

why not

amber fractal
opaque wharf
opaque sigil
#

i did that with a bunch of subdomains and nginx, was pretty nice neuroPogHD

sage crag
olive sable
#

my budget is 5 bucks

opaque wharf
#

Minimum is 15 usually

olive sable
#

fuck

opaque wharf
#

If less than 5 char its skyrocket

sage crag
#

$28

olive sable
#

thats a scam

#

fuck .gay

sage crag
#

obviously

opaque wharf
opaque wharf
sage crag
#

its a shame yuri.gay appears to be a parked domain

opaque sigil
#

$28 a year damn

#

that's a lot lower than i expected

#

for konii.gay

amber fractal
opaque wharf
olive sable
sage crag
opaque wharf
#

Was expecting at least 70

amber fractal
sage crag
opaque wharf
olive sable
olive sable
sage crag
opaque wharf
sage crag
#

well the actual site is 404

amber fractal
#

o7

sage crag
#

its registered, but whoever registered it has a dead server

amber fractal
opaque wharf
olive sable
#

my government apparenly has their own domain website

amber fractal
olive sable
#

500???????

sage crag
#

money

sage crag
#

i imagine they have algorithms that detect high valued domains

#

dunno how one would manage it

opaque wharf
amber fractal
sage crag
#

no one likes bwaa

opaque sigil
#

anything with a somewhat short and/or common name gets insta sniped

opaque wharf
olive sable
sage crag
#

osu.gay is also cheap

opaque wharf
amber fractal
sage crag
#

why are we neuroHypersing at this

sage crag
opaque wharf
sage crag
#

no

#

i can spend money on things that are important, like caffeine

olive sable
#

konii.dev is 6 bucks

sage crag
#

rude

olive sable
#

wdym rude?

opaque wharf
#

So...

sage crag
#

browsers strip these by default bwaaa

opaque sigil
#

keep in mind if you try to do anything funky with your domain any browser will just refuse to go there neuroPogHD

opaque wharf
amber fractal
#

godaddy I'm pretty sure prices based off of how popular it is, so don't use that one for searching so we can keep 0.01 rates if they exist

olive sable
sage crag
#

bot link

opaque sigil
amber fractal
#

that's correct yeah, it does just look like random chars

opaque sigil
#

how tf do you strip boldness from terminal output

sage crag
opaque wharf
#

But wouldn't it be nice if you can just say visit us at blazingfast🔥🔥🔥.xyz

opaque sigil
#

just boldness

olive sable
amber fractal
#

source is that I used it in a subdomain

sage crag
olive sable
sage crag
#

ermplode

opaque wharf
#

🔥🪨🌊🌀 is a good domain name for avatar TLA

sage crag
opaque sigil
#

it works (i think) neuroPogHD

amber fractal
#

insert incorrect buzzer noise

hoary lion
#

ah that time of year

opaque sigil
#

okay yeah it works neuroPogHD

hoary lion
sage crag
#

i need to download more vram

#

i have zero vram

olive sable
#

you have shared ram iirc

opaque wharf
#

My VRAM is also my RAM

olive sable
#

fi you share your ram you can have 128GB vram

#

kinda

amber fractal
hoary lion
#

terrible scam like website name neuroDeadge

desert plaza
#

idk seems pretty trustworthy NeuroClueless

amber fractal
#

For anyone's refernce I'm checking via porkbun

#

#programming in a nutshell
-# This is the last one I'll clog the channel with

olive sable
#

bot?

amber fractal
#

check gen

olive sable
#

ah wtf

#

they even have nitro supposedly

sage crag
#

u smell, get outta here

amber fractal
#

@rare bridge once your done with gen

olive sable
#

thanks cloud

sage crag
#

awa

#

thankies

olive sable
#

awa

amber fractal
#

awa

olive sable
sage crag
#

orber

opaque wharf
hoary lion
#

what is this creature

sage crag
#

jorb (small)

hoary lion
#

awa

olive sable
#

my collsion is phasing through shit if i do more than 45degree angle to the normal bwaa

opaque sigil
#

then just don't

olive sable
#

it seems to be related to

if
(
    aabb.max.x >= pathMin.x &&
    aabb.min.x <= pathMax.x &&
    aabb.max.z >= pathMin.z &&
    aabb.min.z <= pathMax.z
)
#

but i dont get why

#

im trying to check if the aabb overlaps with the path before doing any expensive math

#
glm::vec3 pathMin = glm::min(position, endpos);
glm::vec3 pathMax = glm::max(position, endpos);

so like these are the path square

opaque sigil
#

what about the y dimension

olive sable
#

i decided i dont care about y

hoary lion
#

i dont know alot but this is probably why circle hitbox is always superior

olive sable
#

the movement vector doenst use y anyways

olive sable
opaque wharf
opaque sigil
#

i'd love to help but i don't do graphics neuroPogHD

hoary lion
#

i mean the only reasonable problem is because the square has longer diagonal

opaque sigil
#

funny enough i use gpus for everything but the one reason they exist in the first place

olive sable
#

neuroPogHD this isnt even graphics lmao

hoary lion
#

which makes it weirdly clipped through other edges

opaque sigil
#

collision is close enough

hoary lion
#

and maybe phase

olive sable
#

endpos is just position + movement

#

and movement is normailzed

hoary lion
#

awa

#

idk c++ game engine

#

from scratch moemnt

opaque sigil
#

could it have something to do with the use of >= and <= ?

olive sable
#

hmmm

opaque wharf
olive sable
#

i might have figured out the issue

#

the recursion usses an offset

hoary lion
olive sable
#

that didnt completely fix it

#

but adding a paddign of 1 fixed it

#

i wont question why cuz i dont know

#
glm::vec3 pathMin = glm::min(startpos, endpos) - glm::vec3(1);
glm::vec3 pathMax = glm::max(startpos, endpos) + glm::vec3(1);

padding

#

If i want a real answer on why this happens id probably have to draw it out but i really cant be bothered

nocturne olive
#

Sillied

#

If it works it works

opaque wharf
#

Finally TeamGroup is making my life easier. The P250Q SSD will now help paired with keys that is already deployed neuroPogHD

tacit plover
#

Oh

#

It's called visual studio code

amber fractal
#

vs and vsc are different mhm

opaque sigil
#

java vs javascript moment

tacit plover
#

Finally set up git

#

Not sure if I did it right though

#

Let's say I have a folder with all the files and inside it is the .git folder

#

Is the repository the whole file or just the .git

opaque sigil
#

The whole folder, .git contains all the data to manage the different versions of the repository

tacit plover
#

I see

#

And I suppose the repository should be a different folder from the Godot Project folder

opaque sigil
#

No

#

You want git to see all the relevant changes (unless you mean it's a subfolder in which case I guess why not)

tacit plover
opaque sigil
#

git tracks anything that is at the same level as the .git folder or below

#

Well, unless you tell it to ignore certain files

tacit plover
#

Alright I'll change that

#

So how does git work

#

It just registers the changes that happen?

sage crag
tacit plover
#

And how does git and github work together

sage crag
#

github is a service that hosts git repositories

tacit plover
#

Alright thanks

#

And what does committing do

#

It creates a new version with all the accumulated changes done so far?

opaque sigil
#

Pretty much yeah, it's not a complete version but more like a new point in time that contains the changes since the previous commit

#

So you end up with a sort of chain of changes aka what people like to call the "commit history"

tacit plover
#

And what would be considered a new version

opaque sigil
#

There's none technically, it's all incremental changes down to the very first commit

#

I mean if you want to you can treat each commit as a new version

#

Git allows you to attach tags to them for example

#

You can pick any point in time via a certain commit and call that your new version neuroPogHD

amber fractal
#

git acts like a timeline pretty much, including diverging and merging separate paths together.

#

commits are just the steps you take across each

opaque sigil
#

That's a good way of describing it mhm

#

I should sleep

gritty dust
#

does anyone know what I should code next btw? because I'm lost man

#

I finally got my GitHub account back and idk what to do lol

amber fractal
#

I got a random idea that isn't useful at all

opaque sigil
#

Write a linker neuroPogHD

amber fractal
opaque sigil
#

Anyways, gn chat

amber fractal
amber fractal
olive sable
#

Imma also hit the hay viscoelastic polyurethane foam

#

Goodnight

tacit plover
#

I clicked the commit button and it's been committing changes for like half an hour

olive sable
#

Thats not supposed to happen

#

It ussualy take 2 seconds

tacit plover
#

Ah nvm I closed something and it stopped

#

I clicked it again and it's doing the same thing

#

I don't get how this works

amber fractal
#

Can't help you there, I usually just use the CLI

#

VSC users I summon thee

opaque sigil
#

It just calls the cli internally

olive sable
#

susge werent you asleep

opaque sigil
#

Probably committing a bunch of build files

#

You see

olive sable
#

susge Wasnt i asleep?

opaque sigil
#

I unfortunately am what they call an idiot

olive sable
#

Same

ruby timber
olive sable
#

Cant sleep, imma watch some anime ig

olive sable
ruby timber
#

"Can't sleep" -> it's morning
Hmm I wonder why glueless

#

Hi Sam :aijri

#

aijri

#

I like that

olive sable
#

Its only 7.40am

#

I went to bed at 8.30 yesterday

ruby timber
#

Yeah

olive sable
#

It being morning doesnt latter cuz my blinds keep all the light out

amber fractal
#

Morning Sam .sh

#

totally morning

olive sable
#

Not for you lol

opaque sigil
#

I have the bad habit of nerdsniping myself at night and then it's suddenly 7am

amber fractal
#

Yeah no, I should be eeping frfr

olive sable
#

Do americans have rolling shutters on their houses?

amber fractal
#

I've seen a bunch, depends on the place

olive sable
amber fractal
#

Some have shutters, some have none and some just have curtians

olive sable
#

I dont mean shutters as in those paper thingies. I mean the ones thatroll up into your roof

amber fractal
#

An option not listed is non rolling shutters, I've seen some of those as well in larger houses

amber fractal
#

I dumb

#

I think I'd need a photo tbh

olive sable
#

Like this

#

But in all houses here its built into the wall/roof

amber fractal
#

None as a window cover

olive sable
#

So yall just perish in the sunlight when its morning?

amber fractal
#

I personally employ blackout curtians

olive sable
#

Better than nothing

#

But thise have cracks iirc

amber fractal
#

Best comparison I got are these bois (Plastic before you ask), they can overlap for close to no light leak.

#

Man I love opening these like a door

olive sable
#

I have this

hoary lion
#

spam pog

olive sable
#

Pog

amber fractal
#

At least in this photo

#

I've seen ones that do

olive sable
#

They dont? It has a hinge in the left

amber fractal
#

I was thinking that as well

#

I guess then we get to play the game of how to open the center one

olive sable
#

The ginge is on the left side

#

I dont like it tho

#

This is why we only have 2 windows here

amber fractal
#

It is a large wall and glass is more expensive the larger it is

#

so I get it

olive sable
#

Thats just being cheap. For houses made of paper you gotta justify the 6 figure price somewhere

amber fractal
#

When I try and redo it with 2 I question if the standard sizing even exists

#

I'm not convinced it does so you'd just be removing a window entirly

olive sable
#

Hmmm

#

Idk

amber fractal
#

or uneven which is a fate worse than death

olive sable
#

Just put 2 big windows in like in my room

#

I got about 1.3m x 3m

amber fractal
#

If I were designing this, it would be single pane

#

rolling shutter because no other option would work

#

anyways

olive sable
#

Single panes of that size dont open well tho, unless you dont wantto open the windows

amber fractal
#

those don't open as is

olive sable
#

But why?

#

Oh ye yall dont have "german windows"

amber fractal
olive sable
#

Tilt

amber fractal
#

Faucet

olive sable
amber fractal
#

True, but looks like this opens to the left

olive sable
#

Which is stupid

#

Bad design

#

Ha´f of all architects should get fired fr fr

#

We need to embrace german engineering

amber fractal
#

fr fr

#

I love derailing

olive sable
#

yep

olive sable
#

im collecting the adresses of people in #programming like infinity stones Minawan4Evil

olive sable
#

you're already included mr. cheese

gritty dust
#

Sam do you have programming ideas for meh

olive sable
#

uhhh

gritty dust
#

why did it auto do same lol

olive sable
#

idk

#

hmmm

#

ask chatgpt im not very creative

#

im good at doing creative stuff with an idea, but not with getting the idea itself

gritty dust
opaque wharf
gritty dust
amber fractal
#

smh

#

leaks all over

gritty dust
opaque wharf
#

Shiro will come and get you

amber fractal
#

A birthday cake a day keeps the shiro away

amber fractal
#

wha?

opaque wharf
#

Good ol GC

olive sable
#

thats been in transport for like 50 days by now

#

oh i also have superboxes

#

the 3090 from belgium to finland took a fraction of the time than the pen from switzerland to belgium

#

iirc someting with duane

dry charm
#

I'm vibe-coding making a PC app for my indoor bike cause I'm lazy to manually do it. ||holy shit where have I gone Aware ||
I told them to update the flake.nix cause of python dep.
So far so good.

glass flower
#

SCHIZO flake.nix

dry charm
#

AND IT UPDATES THE ONE IN THE DIRENV

glass flower
#

uhhh what agent are you using anyway?

dry charm
#

This is using Claude 3.5 rn

glass flower
#

uhhh isn't 4.5 the same price and just better?

dry charm
#

I don't have to pay anything

#

I have all products pack

#

I can just change

#

we have these

glass flower
#

annytfOwo wdym.. you don't have to pay anything...

#

it costs like 3$ per million tokens in

dry charm
#

I don't have to pay for these

glass flower
dry charm
#

welcome to Jetbrains

glass flower
#

oh.. you bought a jetbrains license and it just comes with AI credits?

#

annytfSittu i never got into the jetbrains stuff.. i just use vscode

dry charm
glass flower
#

deadass 300€ a year

dry charm
#

it has a continuous discount

#

so more years, more discount

#

third year is just 173€

glass flower
#

yeah still a lot

dry charm
#

Also student product pack has grandfathering

#

The thing is, it is very worth it for me, cause I can use ANY jetbrains IDE for profressional

#

like does not matter what project, where, I can just legally use it cause it is mine

glass flower
#

tink not sure it works like that if you work for a business.. they might still need to pay for seats even if you have your own license

olive sable
#

video stops loading...
I SUMMON THEE, task manager

epic games store: 96 mbps download

half crescent
#

GUYS IM UPGRADE MY PC FINALY

#

Huge upgrade 💀

olive sable
#

what was that first picture? catdespair

half crescent
#

Its pc

#

Hahaha

olive sable
#

gotta be from 1994 or something

half crescent
#

1999

#

Lock in

olive sable
#

close enough

#

its prehsitoric

#

new pc is clean tho okp

half crescent
#

Yea ty bro

#

❤️

old totem
#

question chat: is there a way to make vscode run command prompts

#

so i downloaded tesseract which is a good ocr

#

but its only ran from the command prompt

#

i wanna make it so i can run a few code, and then tesseract commands, and then back to code

glass flower
old totem
#

how

glass flower
#

make a file called .vscode/task.json

olive sable
old totem
#

alright

glass flower
#
{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "build",
            "group": "build",
            "type": "shell",
            "command": "scons",
            "args": [
                // enable for debugging with breakpoints
                "target=template_debug",
                "dev_build=yes",
                "compiledb=yes",
                "use_hot_reload=yes",
                "debug_symbols=yes"
            ],
            "problemMatcher": "$msCompile"
        },
        {
            "label": "build-release",
            "group": "build",
            "type": "shell",
            "command": "scons",
            "args": [
                // enable for debugging with breakpoints
                "production=yes",
                "target=template_release"
            ],
            "problemMatcher": "$msCompile"
        }
    ]
}
``` then you can make different elements in them. here is a example where i build a project using it and scons
#

type: shell command: whatever
are the important bits

old totem
#

is that a function

glass flower
#

then you can just press F1 and task

glass flower
old totem
glass flower
#

uhhh it depends on what you want to do. this is my build task. it builds my project using the args and scons

old totem
#

no like

glass flower
#

what command prompt do you want to run?

old totem
#

can u make an example code inside a cpp file

#

that will run a command prompt

old totem
glass flower
#

uhhh you can't invoke vscode tasks using cpp files. there also wouldn't really be a need since you can just call cmd's using cpp itself

old totem
#

i meant like doing the prompt automatically

opaque wharf
opaque wharf
olive sable
#

nope

glass flower
# old totem "tesseract test.png tesseract-result"

scrajj not really sure about the second part. but you could do:

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "tesseract",
            "group": "build",
            "type": "shell",
            "command": "tesseract",
            "args": [
                "test.png",
                "tesseract-result"
            ]
        }
    ]
}

this would be the equivalent of your command prompt command

olive sable
#

im from 2007

old totem
glass flower
#

F1 and then run tasks

#

or you make a shortcut for it

old totem
#

ohhh

olive sable
#

hi shadow neuroWaveA

stark needle
#

Grok ai waifu😭😭

olive sable
#

did you sleep?

old totem
#

thanks i think

stark needle
old totem
#

but i think im just onna have to find a tessract library

glass flower
olive sable
#

fair

olive sable
#

my bad, dont execute me mods

old totem
#

theres not a lot of tutorials for it

glass flower
old totem
olive sable
#

my headphones died bwaa

old totem
glass flower
olive sable
#

uhhh

old totem
#

uhhh

glass flower
olive sable
#

so #include only looks in folders you included

opaque wharf
glass flower
#

mhm how about you show us how your folders for your project look like and what build system you are using

olive sable
#

for exampl i do -I./src/includein my build command

glass flower
#

uhhh where is the tesseract folder

opaque wharf
old totem
#

baseapi.h doesnt even exist

#

idk where the download is

olive sable
#

ah

glass flower
#

you have glew,glm,sdl2,tinygltf

olive sable
#

i do

olive sable
#

it works the same way

#

you just need the file

glass flower
#

and the source

olive sable
glass flower
#

in the repository there are 2 folders you want. include/tesseract and src

olive sable
#

its 12am so im debating if its worth going to bed now or in the evening. considering im awake from 6pm ARGendoHmm

opaque wharf
#

Just don't look at screeps

olive sable
#

i havent looked at screeps in days

#

im in a game-jam now

glass flower
olive sable
#

tbh they might all have died by now

opaque wharf
#

Sam finally locked in

olive sable
#

they seem alive

glass flower
#

a little crowded... but they seem.. fine

olive sable
#

ish

opaque wharf
glass flower
#

mhm that also works

opaque wharf
#

Because you may need to checkout the working tag/branch

olive sable
#

oh ye i forgot, they've been broken for liek 3 days

glass flower
#

sanecat i can't get my external miners to properly respawn... they just keep assigning themself to the same room... maybe i fixed it this time. but i always need to wait for the top external miner to die to test

olive sable
#

idk what broke but opening the script to look at it made the error stop appearing

#

javascript is such bullshit

opaque wharf
olive sable
#

these errors are even more mysterious than C++

glass flower
#

uhhh it tells you the exact line it breaks on

#

wdym

olive sable
#

in C++ errors would get fixed by adding randon prints. in js you just need to look at and it dissapears like santa

opaque wharf
glass flower
#

in role.builder at line 21 character 24

opaque wharf
#

There, you are trying to access .length for null

olive sable
#

if its fixed thats fine ig

opaque wharf
#

120 is

glass flower
#

can you show a bit more above and below it?

glass flower
olive sable
olive sable
#

there are only 74 lines

#

i used to have a .lenth before there but i removed it. ig the server wasnt up to date?

#

for fucks sake

#

@rare bridge @real sierra

#

@cobalt vessel @open copper

glass flower
#

NOOO another one

opaque wharf
#

why no @ moderator ?

olive sable
#

that exists?

opaque wharf
#

Ye

olive sable
#

huh

amber fractal
#

not recomnended

opaque wharf
#

Which is why I'm asking

#

Why?

olive sable
#

wh else do we have?

#

@fair cipher ?

#

just anyone

fair cipher
#

im here

amber fractal
#

I guess we wait

glass flower
#

PauseCat are you gonna shoot soup

tender river
#

thanks temmie

glass flower
opaque wharf
glass flower
# olive sable

uhhh i'll be honest... the only issue i could imagine is that maybe your creep died but you still have a stale reference to it?

amber fractal
#

Generally moderator ping isn't recommended due to pinging all mods. Much better to ping active mods, last person that did that got flamed.

#

I should not be awake

tender river
#

good night vedalEvilWave

amber fractal
#

gn chat neuroWave

olive sable
#

gn iggly

glass flower
#
var next_assignmend = new RoomCoord();
            foreach (var item in rooms_list)
            {
                var room_sources = all_miner_sources.GetOrCreateObject(item);
                if (!room_sources.Keys.Any())
                {
                    next_assignmend = new RoomCoord(item);
                    found_room = true;
                    break;
                }
                var count_in_room = 0;
                foreach (var sources in room_sources.Keys)
                {
                    foreach (var creep in externalCreeps)
                    {
                        if (creep != null && creep.Exists && creep.Memory.TryGetString("assigned_source", out var source_str) && source_str == sources)
                        {
                            count_in_room++;
                        }
                    }
                }
                if (count_in_room < room_sources.Keys.Count())
                {
                    next_assignmend = new RoomCoord(item);
                    found_room = true;
                    break;
                }
                if (found_room) break;
            }

            if (!found_room)
            {
                Console.WriteLine("No free rooms found, should not spawn external miner.. pls fix. Exiting...");
                return;
            }

cyring why doesn't this work...

stark needle
#

NeuroBounce mods when mods pinged

olive sable
#

what exaclty i s broken?

glass flower
#

cyring its a logic issue

#

its assigning new external miners to the same room

#

even tho there is already a miner there

olive sable
#

keep the creeps assigned in memory i geuss?

glass flower
#

but they die

#

then they need to be reassigned

#

thats the issue

#

i am already doing it through memory

opaque wharf
#

If creeps can access each other memory, then make the list of all assigned room

#

Then when you want to assign a creep to a room, check if the room already has someone assigned or no

#

So the check should be just [room1, room2, room3].includes(room1) or [room1, room2, room3].includes(room4)

glass flower
#

i did that.. and it didn't work for somereason

opaque wharf
#

Well, good luck solving the mysteries

olive sable
#

oh my room controller is at level 3 apparently

old totem
#

okay there are legit zero tutorials on even beginning to donwload the libararies for these

olive sable
#

time to build weaponry

glass flower
#

mine is at 5... i can also claim another room now PainPeko but i don't want to deal with how that will break my whole codebase yet

old totem
#

but what i meant earlier was like, i click the exe and then it runs command prompts by itself

#

is that possible?

glass flower
#

include tesseract how you included SDL or glew

opaque wharf
glass flower
#

its the same process basically

glass flower
olive sable
#

2 of my walls got destroyed, i wonder why

glass flower
#

invader YES

#

probably

old totem
#

i really am following it tho

#

but it just does this

glass flower
#

you need to include it in your build system

#

not just in your scripts

old totem
#

yeah here

glass flower
#

thats not your build system

#

thats just vscode

old totem
#

opencv worked yesterday with this

scarlet arch
#

I see this is still #screeps :D

old totem
glass flower
olive sable
glass flower
#

i feel like you skipped a few tutorials when you started using c++ including libraries is like one of the first things you are tasked to do LULE

#

(its always a pain... but its something you need to learn)

#

NoFuckingWay i think i fixed it

olive sable
#

you need to include the path the the headerile in your buidl command

#

-I is for include

#

capital i

#

then the path

glass flower
olive sable
#

nahhh

#

imagine not doing it yourslef

#

lazy ahh

glass flower
#

he also needs to build tesseract as a seperate project..

#

and then link it

olive sable
glass flower
olive sable
#

iirc cloud's server is up now so ill join sometime

#

im just busy now

#

im always busy for some reason, and its always mny own fault bwaadow

glass flower
olive sable
#

huh, new season of dan da dan and new cour of dr. stone

#

dont mind if i do

old totem
glass flower
#

its not like glm or sdl2 or glew. it has a bit more to it from what i saw

#

i mean.. i guess you could just include the dll itself in your project. but you still need to link it somehow

old totem
#

i'll try both

glass flower
#

how2read you should really try to learn how your build system works and include the project properly

#

its a valuable experience YES

opaque wharf
opaque wharf
olive sable
opaque wharf
opaque wharf
olive sable
#

bruh

opaque wharf
#

Reading is fun neuroHypers

olive sable
#

i have read the solo leveling manga, but its too much effort to replace casual watching

#

ill read a manga every now and then, but watching anime is just easier

opaque wharf
#

Fair point. I get impatient so that's why I prefer reading neurOMEGALUL

tender river
#

i feel the opposite anime is long but you can read a manga very quickly

opaque wharf
tender river
#

apparently glsl supports logical xor

#

(i would normally just use !=)

olive sable
#

is it even worth using xor over !=?

#

shoudlnt it compile to about the same thing?

tender river
#

it should

#

probably done for consistency

olive sable
#

its just for when you're feeling fancy

tender river
#

its for when you're feeling happy

#

a != b neuroSadge

#

a ^^ b neuroAYAYA

olive sable
#

but we're programmers tho

#

we're basicly shadowbanned from that

midnight sigil
#

taiwan company made an ssd that can explode(hard reset) itself neurOMEGALUL

tender river
#

just microwave it duh

#

make a microwave your pc case

opaque wharf
#

Because it is quite useful

inner pike
midnight sigil
#

should set it to one day of inactivity

#

my browser history can't be seen by anyone else

tender river
#

mine can

midnight sigil
olive sable
#

My browser history is supposed to be private, but we all know it isnt

#

My isp probably knows everything

rigid snow
tender river
#

isp only gets the domain names

olive sable
#

The most emberasing part is probably how much i go to chatgpt.com

rigid snow
midnight sigil
#

for maximum privacy

tender river
#

who doesnt use tls lol

opaque wharf
tender river
#

also cloudflare now supports esni or whatever its called now

tender river
midnight sigil
opaque wharf
tender river
rigid snow
opaque wharf
#

Which is on top of HTTPs

tender river
#

recently tls got an extension that allows encrypting it but it's very new, cloudflare recently enabled it though

midnight sigil
#

genius

opaque wharf
#

Oh wait I just realized what you mean

tender river
#

oh right its called ech

opaque sigil
undone bramble
uneven pulsar
#

it was pretty tame

midnight sigil
#

perfect for some special uses

midnight sigil
gritty dust
#

morning

old totem
#

this is tiring neuroSob

#

does anyone have a fix for this

#

linking errors for gdi+ library

#

apparently its a common issue

opaque sigil
#

-lgdiplus -lgdi32 at the end of the gcc/g++ command

old totem
#

didnt work

opaque sigil
#

what about -L C:/Windows/System32 -lgdiplus -lgdi32

old totem
#

-L apparently not a command

opaque sigil
#

meant to say to put that at the end of the gcc command mb FOCUS

old totem
#

oh mb

#

still no work

opaque sigil
#

wait no it should be -L C:/msys64/mingw64/lib

old totem
#

im starting to give up on my project i think

#

undefined reference to `WinMain'

opaque sigil
#

how are you defining your main function

old totem
#

wdym

opaque sigil
#

or rather, what is it called

#

main?

old totem
#

just main

#

main.cpp

opaque sigil
#

can i see the file contents? neuroPogHD
would that be okay

old totem
#
#include <iostream>
#include <conio.h>
#include <windows.h>
#include <gdiplus.h>

using namespace Gdiplus;

void scroll_down();

int scroll_count = 1;
int global_count = 1;
int x = 0;

int GetEncoderClsid(const WCHAR* format, CLSID* pClsid){
    UINT num = 0;
    UINT size = 0;
    
    ImageCodecInfo* pImage = NULL;
    
    if (size == 0) return -1;
    
    pImage = (ImageCodecInfo*)(malloc(size));
    if (pImage == NULL) return -1;
    
    for(UINT j = 0; j < num; ++j){
        if(wcscmp(pImage[j].MimeType, format) == 0){
            *pClsid = pImage[j].Clsid;
            free(pImage);
            return j;
        }
    }
    free(pImage);
    return -1;
}


int main(int, char**){
    HDC hdcScreen = GetDC(NULL);
    HDC hdcMemDC = CreateCompatibleDC(hdcScreen);
    HBITMAP hbmScreen = NULL;

    Gdiplus::GdiplusStartupInput gdip;
    ULONG_PTR gdipToken;
    GdiplusStartup(&gdipToken, &gdip, NULL);
    hbmScreen = CreateCompatibleBitmap(hdcScreen, 200, 400);
    SelectObject(hdcMemDC, hbmScreen);

    while(global_count < 29) {
        scroll_down();
        global_count++;
    }
}

void scroll_down() {
    int marker_for_2x[] = {3, 9, 14, 20, 25};
    scroll_count = (scroll_count > 6)? 1: scroll_count;
    std::cout << "Count = " << scroll_count;
    for (int i = 1; i < 4; i++){
        if (global_count == marker_for_2x[x] && i == 3){
            std::cout << " << 2x only here";
            x++;
            continue;
        }
        SetCursorPos(600, 500);
        mouse_event(MOUSEEVENTF_WHEEL, 0, 0 , -10*120, 0);
    }
    std::cout << '\n';
    Sleep(3000);
    scroll_count++;
}
#

i thought it would make it into a txt file mb

opaque sigil
#

all good dw

#

you might be able to get away with just adding -Wl,-subsystem,console to the g++ command

#

windows expects GUI apps to declare their main function as WinMain

#

but idk how telling it to build a console app works with gdi, feel like it'd break it

old totem
#

yeah..

#

honestly the hard part isnt even the coding anymore

opaque sigil
#

-W"l,-subsystem,console"

old totem
#

its whatever bullshit linking and include is

opaque sigil
#

this is more windows being super pedantic about you doing things the windows way

old totem
#

man

#

i had a super fun project idea too

#

anyways instead of this do you know another way c++ can screenshot my screen

#

thats the main function i need anyway

opaque sigil
#

i unfortunately do not

old totem
#

its alright

opaque sigil
#

well, not programmatically at least

old totem
#

i think sometimes we just have to give up

#

i bet you

#

stinkin python has an easy way to do all the shit i wanna do

rough bloom
opaque sigil
#

i'd love to help with getting gcc working but apparently my gcc from mingw refuses to do anything at all neuroPogHD

#

i wonder how this happened, i never use it

sharp mantle
old totem
#

yeah

raw trout
#

helmo!

opaque sigil
sage crag
#

awa

old totem
#

not again

#
atlimage.h: No such file or directory```
wide bluff
#

Heyo I have a question. I am working on this certificate but i have never coded and it is telling me to use get_llm_response but that is not working and the only thing I can get to work is print_llm_response. Am I missing something or did i do this right?

Update the description for the

Rocky Road flavor using get_llm_response()

flavor = "Rocky Road"
prompt = f"Provide a brief description for the {flavor} ice cream flavor"

EDIT THE FOLLOWING CODE

ice_cream_flavors["Rocky Road"] = print_llm_response (prompt)

---------------

old totem
#

how do i make it so this code makes a NEW png everytime

#

and not edit the already made one

worldly plank
#

Make a copy and edit that instead.

old totem
#

how does one make a copy

worldly plank
#

system("cp original copy");

olive sable
#

goodmorning neuroWaveA

#

i got rudely awoken for dinner so now its 8pm

olive sable
raw trout
warped narwhal
# old totem help

try this:


BOOL FileExists(LPCTSTR szPath)
{
  DWORD dwAttrib = GetFileAttributes(szPath);

  return (dwAttrib != INVALID_FILE_ATTRIBUTES && 
         !(dwAttrib & FILE_ATTRIBUTE_DIRECTORY));
}

void screenshot() {
  ...

  unsigned int file_num = 0;
  std::wstring filename = L"";
  do {
    std::basic_ostringstream<TCHAR> oss;
    oss << L"C:\\Users\\...\\fobbits\\fobbitInfo";
    if (file_num) oss << L'_' << file_num;
    oss << L".png";
    filename = oss.str();
    if (!FileExists(filename.c_str()))
    {
        break;
    }
  }

  ... 
}
old totem
warped narwhal
#

nope, you just need #include <windows.h> and #include <sstream>

old totem
#

where is the main screenshot code in between of?

warped narwhal
#

just before bmp->save and filename.c_str() replaces the string you have as the filename

old totem
#

its expecting a while

#

what condition do i put

warped narwhal
#

I forgot a c++ thing as it's been a while since I've used it, here is the thing you actually need:

  unsigned int file_num = 0;
  std::basic_string<TCHAR> filename;
  do {
    std::basic_stringstream<TCHAR> oss;
    oss << L"C:\\Users\\...\\fobbits\\fobbitInfo";
    if (file_num) oss << L'_' << file_num;
    oss << L".png";
    filename = oss.str();
  } while (FileExists(filename.c_str()));
old totem
#

is the syntax right?

#

it didnt seem to make anything

warped narwhal
#

you use the variable filename.c_str(), not the string L"filename.c_str()"

#

bmp->Save(filename.c_str(), &encoderID, NULL);

old totem
#

aw man it still made only one png

warped narwhal
#

are you sure that you are running the function more than once?

#

add std::cout << "I am running the screenshot function" << std::endl; to the start of the function

old totem
#

here is the main func

#

global_count starts at 0

#

oh shit it only ran once

warped narwhal
old totem
#

does it break out of the while loop

#
while (FileExists(filename.c_str()));```
warped narwhal
#

is the program exiting? I have a feeling the sleep function is in seconds not milliseconds

old totem
#

milliseconds

warped narwhal
#

so you would be telling it to sleep for 16 minutes

old totem
#

no i tested it before the change

#

it runs it often

warped narwhal
old totem
#

ohhh

#

probably that then

#

ohh

#

it stops at the screenshot func

#

because it didnt make a new file

old totem
#

ive tested it a bunch now and yeah it gets stuck in that condition

old totem
#

i found a fix....

#

but you are gonna hate me

glass flower
old totem
#

i was desperate

#

look man

glass flower
#

dude... atleast just use the global_count directly deadass

old totem
#

i hate that these commands are all const

old totem
#

but im too far gone now

#

you are not a coder if you dont hard code anything

rigid snow
#

i don’t think we have that so you’re the first

amber fractal
#

@programminghalloffamebot

rigid snow
#

it’s such an awful execution it’s beautiful

rigid snow
tender river
#

(and c_str)

old totem
#

its 4am and ive only odne constant coding

rare bridge
#

Hmm it might be time for me to move away from chrome

old totem
#

my brain is not cut out for this

trim valve
#

if you're ok with stuff breaking a lot

tender river
#

a lot???

trim valve
#

ok that was badly worded

rare bridge
opaque sigil
#

Occasionally

trim valve
#

specific things will repeatedly cause issues

rigid snow
#

i am severely addicted to chromium

rigid snow
tender river
#

just use mpv for hls

#

(or vlc or whatever your player of choice is)

rigid snow
#

that statement is so linux user coded

trim valve
#

mpv is fine on windows

rigid snow
#

not what i mean

rare bridge
tender river
#

also firefox can play hls it just wont open m3u8 as a video but will download it instead i think

opaque sigil
#

iirc there are some extensions to get hls working on firefox?