#programming
1 messages · Page 91 of 1
idk you tell me
ill ask google
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

C++ to opengl padding is so shit aaaa 
this is padded ont he c++ side, but for an array opengl doesnt want padding?
im so confused
well, you can always just use an array of 6 floats
1.1.1.1 is down
dns has fallen, millions must manually add websites to hosts
pros of just using unbound
pros of actually using the backup dns server setting everything has had forever
backup dns: 1.0.0.1 

down with dns
down with dns

this thing?
@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
im worse, i have a viceral need to make everything run in less than a ms to get that 1000+fps
we love 0.245ms 

use 2 spaces 
just remove them because the spec allows it 
it's not actually that bad, and I only have it cause it is a deeply nested structure for layout reasons
Oh, it also scales correctly on mobile
seriously?

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

i use compact mode so i dont even see avatar decorations 
One of these days I should just completely overhaul the discord UI for the lols.
so you cant see the tv decoration on you?
the ads are seeping in
noe


No, I don't think that is right. That is a tiny bit large
avatar decorations? those don't exist, what are you talking about
very real, if I don't care they don't exist
client was not giving me a zoom slider, but the binds work
i like how 3/4 people in the screenshot dont even have those
i can't tell so i included 4 people to make sure
i do wish they had a real option to not show them though, they're annoying visual clutter
Tried adding a version control system to godot but I might have fucked up the installation
just use compact chat display lol 
don't wanna
looks bad
ok 
Fixed 
How do I use git though
new update to hbalng stuff you're doing?
i have been highly inactive
Don't think that works
i plan to get programming again tmr tho
why did you trust me 
I didn't know better
That was your one and only chance to tell me to run sudo rm-rf
This might be late but what's that
its the place where your git project lives
i.e. codeberg.org, github.com
(codeberg is better than github
)
will host your repository for you
and then you can modify the code in that repository
Oh so I'd have to store the whole repository on my own PC if I didn't use stuff like github?
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.
I have 50GB left of storage so probably not
git repositories arent typically huge
e.g
Is it possible to use git through VCS?
I think I set something up like that during installation
git is a vcs
Sorry, visual code studio
yes, git is integrated into visual studio code

I'll check that out
Then I assume I should link git with a github account or something like that
only if you want to store code on github
note that microsoft owns github. it may not be an issue for you though.
Don't think microsoft is interested on reading code for a game
Which is this other one you've mentioned though?
Is it open source exclusive
wasn't codeberg really strict about only allowing repos with foss licenses or sth
unsure
i'm so active 

Good morning #programming
hi
good 2am

Well, guess I'll stick with github
gotta be prepared for github spontaneously imploding
Mhm, my 7AM is your 00.00
half my forks are just brackets 
i can make one
hblang port
Oh, time to rebase and reopen the PR
you're the one that just yoinked the makefile smh
Dang, toast is adding meson lol
}```
**

i started and then hit tinygltf and stopped
it should be fairly straightforward to port to meson though
Wise choice
make an option for including emscripten
you cant kill me in a way that matters
wdym?
why does btop --version suddenly give me a bold version number wtf is this 
so you can like idk
user@linux ~> btop --version
fish: Unknown command: btop
interesting version
meson -Demscripten build or sth and it also builds emscripten
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.

So apparently someone managed to register the TLD .gay
.gay has existed for ages
it's been a thing for years no?
also it's not some guy, it's ICANN 
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
why me?
I doubt ICANN got the idea themselves. Must've been from some proposal
Nothing in particular lol. Out of all the people here I just know you the most I guess
In a guest column published by the LGBTQ publication PQ Monthly in October 2013, Top Level Design's CEO Ray King said he was inspired to apply for .gay by his late gay brother-in-law Clyde and other family members.
it appears so
I just jumped in here and thought of the exact same thing
konii.gay
konii.gay should redirect to ableos
i guess the idea initially was to limit it but then they gave up on that
close enough
why localhost?
But why localhost tho?
why not
Good news, it still exists
Yeah, fair enough tbh
i did that with a bunch of subdomains and nginx, was pretty nice 
wikipedia says that it was never only for lgbtq people, but such a restriction was considered in its creation
Minimum is 15 usually
fuck
If less than 5 char its skyrocket
obviously
Premium name baby
So, you're also gay Sam?
its a shame yuri.gay appears to be a parked domain

Same
no?
wdym?
check the small text
Was expecting at least 70
I'm fully aware as I use this site for my own stuff
like its not even https 
I didn't see the dot 

GoDaddy?

they're gonna steal my credit card 
The companies that are notorious for keeping the domain hostage
well the actual site is 404
o7
its registered, but whoever registered it has a dead server
Lemme guess, around 50$?
my government apparenly has their own domain website
500???????
money
4 letter domain
i imagine they have algorithms that detect high valued domains
dunno how one would manage it
Not bad, off by 1 order of magnitude. Astronomers calls that basically the same thing
no one likes bwaa
anything with a somewhat short and/or common name gets insta sniped
Or sold at higher price

osu.gay is also cheap
Wow, really? Not touching 50?
bwaa.moe already exists, a certian chatter has that one
why are we
ing at this
$28
You're not buying it? 
konii.dev is 6 bucks
rude
wdym rude?
keep in mind if you try to do anything funky with your domain any browser will just refuse to go there 
I was thinking emoji
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
hmmm
bot link

that's correct yeah, it does just look like random chars
how tf do you strip boldness from terminal output
all ansi or just boldness?
But wouldn't it be nice if you can just say visit us at blazingfast🔥🔥🔥.xyz
just boldness
that took a couple rereads to understand
It does work, it just converts to that text under the hood
source is that I used it in a subdomain
awa_bwaa_erm | sed -r 's/\x1B\[[0-9;]*[mK]//g' or something

ermplode
🔥🪨🌊🌀 is a good domain name for avatar TLA
it works (i think) 
insert incorrect buzzer noise
ah that time of year
okay yeah it works 
pls cloudflare release https://downloadmorevram.com
you have shared ram iirc
My VRAM is also my RAM
do it yourself 
terrible scam like website name 
idk seems pretty trustworthy 
For anyone's refernce I'm checking via porkbun
#programming in a nutshell
-# This is the last one I'll clog the channel with

check gen
u smell, get outta here
@rare bridge once your done with gen
thanks cloud
awa
awa

orber

what is this creature
jorb (small)
awa
my collsion is phasing through shit if i do more than 45degree angle to the normal bwaa
then just don't
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
what about the y dimension
i decided i dont care about y
i dont know alot but this is probably why circle hitbox is always superior
the movement vector doenst use y anyways
cirlcles are easier sometimes ye, but not useable here
Congrats, you made 3d screeps
i'd love to help but i don't do graphics 
i mean the only reasonable problem is because the square has longer diagonal
funny enough i use gpus for everything but the one reason they exist in the first place
this isnt even graphics lmao
which makes it weirdly clipped through other edges
collision is close enough
and maybe phase
could it have something to do with the use of >= and <= ?
hmmm
For collision, I think it should be inclusive yeah

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
Finally TeamGroup is making my life easier. The P250Q SSD will now help paired with keys that is already deployed 
vs and vsc are different mhm
java vs javascript moment
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
The whole folder, .git contains all the data to manage the different versions of the repository
I see
And I suppose the repository should be a different folder from the Godot Project folder
No
You want git to see all the relevant changes (unless you mean it's a subfolder in which case I guess why not)

git tracks anything that is at the same level as the .git folder or below
Well, unless you tell it to ignore certain files
Alright I'll change that
So how does git work
It just registers the changes that happen?
filesystem magic
And how does git and github work together
github is a service that hosts git repositories

Alright thanks
And what does committing do
It creates a new version with all the accumulated changes done so far?
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"
And what would be considered a new version
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 
git acts like a timeline pretty much, including diverging and merging separate paths together.
commits are just the steps you take across each
You should
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
I got a random idea that isn't useful at all
Write a linker 
Thinking about hardcoded LLMs that include the entire dataset. Would it be larger or smaller than the dataset itself?
Anyways, gn chat
It's that one meme of sending over an AI prompt to generate the current video frame taken to its limit.
gn Toast 
I clicked the commit button and it's been committing changes for like half an hour
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
It just calls the cli internally
werent you asleep
Wasnt i asleep?
I unfortunately am what they call an idiot
Same

Cant sleep, imma watch some anime ig

It being morning doesnt latter cuz my blinds keep all the light out
Not for you lol
I have the bad habit of nerdsniping myself at night and then it's suddenly 7am
Yeah no, I should be eeping frfr
Do americans have rolling shutters on their houses?
I've seen a bunch, depends on the place
I just spen 7 hiurs in things i thought would take 2
Some have shutters, some have none and some just have curtians
I dont mean shutters as in those paper thingies. I mean the ones thatroll up into your roof
An option not listed is non rolling shutters, I've seen some of those as well in larger houses
ah
I dumb
I think I'd need a photo tbh
None as a window cover
So yall just perish in the sunlight when its morning?
I personally employ blackout curtians
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
These do not open nvm
At least in this photo
I've seen ones that do
They dont? It has a hinge in the left
I was thinking that as well
I guess then we get to play the game of how to open the center one
The ginge is on the left side
I dont like it tho
This is why we only have 2 windows here
Thats just being cheap. For houses made of paper you gotta justify the 6 figure price somewhere
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
or uneven which is a fate worse than death
If I were designing this, it would be single pane
rolling shutter because no other option would work
anyways
Single panes of that size dont open well tho, unless you dont wantto open the windows
those don't open as is
Tilt
Faucet
True, but looks like this opens to the left
Which is stupid
Bad design
Ha´f of all architects should get fired fr fr
We need to embrace german engineering
yep
im collecting the adresses of people in #programming like infinity stones 
Uhh
welp gg guys

you're already included mr. cheese
lol
Sam do you have programming ideas for meh
uhhh
why did it auto do same lol
idk
hmmm
ask chatgpt im not very creative
im good at doing creative stuff with an idea, but not with getting the idea itself
lol chatgpt isn't creative either, it just gives crappy ideas lol
sameee

Whose address did you plan to get now?
I accidentally leaked mine here once lol 
Haha frrr
Shiro will come and get you
A birthday cake a day keeps the shiro away
wha?
Good ol GC
i have mine, igglies, cheese's, and shadow's once the package he sent arrives
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
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
||
I told them to update the flake.nix cause of python dep.
So far so good.
flake.nix
what agent are you using anyway?
This is using Claude 3.5 rn
isn't 4.5 the same price and just better?
I don't have to pay anything
I have all products pack
I can just change
we have these
I don't have to pay for these

welcome to Jetbrains
oh.. you bought a jetbrains license and it just comes with AI credits?
i never got into the jetbrains stuff.. i just use vscode
300€ a year
still a lot
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
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
video stops loading...
I SUMMON THEE, task manager
epic games store: 96 mbps download
Huh? But why?
what was that first picture? 
gotta be from 1994 or something
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
you can setup tasks that can run any kind of command prompt command
make a file called .vscode/task.json

alright
{
// 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
is that a function
then you can just press F1 and task
wdym function?
do i copy this in there?
the commands
it depends on what you want to do. this is my build task. it builds my project using the args and scons
no like
what command prompt do you want to run?
"tesseract test.png tesseract-result"
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
i meant like doing the prompt automatically
Fitting username
Are you not old enough to have used that kind of PC Sam?
nope
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
im from 2007
alright i understand, how then can i call that
God no
https://www.reddit.com/r/singularity/comments/1lzkqri/xai_rolls_out_grok_companions_feature_with_3d/
ohhh
hi shadow 
Grok ai waifu😭😭
did you sleep?
thanks i think
neuro is better
kind of
nice png of a video player?
but i think im just onna have to find a tessract library
oh wait.. tesseract is a OCR tool? you do know there is already a library for it 
fair
thats the thing but idk how to
my bad, dont execute me mods
theres not a lot of tutorials for it
well you include "include/tesseract" in your project and build it with your project (also the src directory i guess)
you don't need the CLI version of it
this is 100% incel bait
yeah thats the issue 😭 the include is not including correctly
my headphones died bwaa
well.. then fix your build system
Sam can tell you a handful about including libraries 
uhhh
uhhh

so #include only looks in folders you included
If you're from 2027 I'd be more shocked
how about you show us how your folders for your project look like and what build system you are using
for exampl i do -I./src/includein my build command
where is the tesseract folder
Shocking
ah
you have glew,glm,sdl2,tinygltf
i do
and the source

in the repository there are 2 folders you want. include/tesseract and src
its 12am so im debating if its worth going to bed now or in the evening. considering im awake from 6pm 
Sleep
Just don't look at screeps
they are all dead
tbh they might all have died by now
Sam finally locked in
they seem alive
a little crowded... but they seem.. fine
ish
Also, rather than pointing the repo, it's best to just use the release
https://github.com/tesseract-ocr/tesseract/releases
that also works
Because you may need to checkout the working tag/branch
oh ye i forgot, they've been broken for liek 3 days

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
idk what broke but opening the script to look at it made the error stop appearing
javascript is such bullshit
You just come back from C++ insanity that they are afraid of you now
these errors are even more mysterious than C++
in C++ errors would get fixed by adding randon prints. in js you just need to look at and it dissapears like santa
Technically it's easy to point out. It is at main.loop:120:26
in role.builder at line 21 character 24
There, you are trying to access .length for null
but its compaining about a .lenght. that isnt there
if its fixed thats fine ig
can you show a bit more above and below it?
line 24 is correct you are looking at the wrong error
Oh yeah, sorry
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
another one
why no @ moderator ?
that exists?
Ye
huh
not recomnended
im here
I guess we wait
are you gonna shoot soup
thanks temmie

WHY? 
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?
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
good night 
gn chat 
i should have cleanup code for that
gn iggly
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;
}
why doesn't this work...
mods when mods pinged
idk, i dont do much js
what exaclty i s broken?
its a logic issue
its assigning new external miners to the same room
even tho there is already a miner there
but they die
then they need to be reassigned
thats the issue
i am already doing it through memory
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)
i did that.. and it didn't work for somereason
Well, good luck solving the mysteries
oh my room controller is at level 3 apparently
okay there are legit zero tutorials on even beginning to donwload the libararies for these
time to build weaponry
mine is at 5... i can also claim another room now
but i don't want to deal with how that will break my whole codebase yet
but what i meant earlier was like, i click the exe and then it runs command prompts by itself
is that possible?
you don't want to use exe's in your own program
include tesseract how you included SDL or glew
Linux pipe would like to have a word
its the same process basically
linux pipe
2 of my walls got destroyed, i wonder why
yeah here
opencv worked yesterday with this
I see this is still #screeps :D
where i find that
it depends on what you are using to build the project... cmake,meson or whatever
if it was an invader id be dead cuz i have no defense
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 
(its always a pain... but its something you need to learn)
i think i fixed it
you need to include the path the the headerile in your buidl command
-I is for include
capital i
then the path
or you use a sane build system that does it for you 

it never changed
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 
it is.. but my code isn't ready to start a new. and would just explode and i don't have time
i just need the library
well but the library needs to be build and linked to your project
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
i'll try both
you should really try to learn how your build system works and include the project properly
its a valuable experience 
Oh, really? Is it not pinned?
Read the manga instead 
I'd still recommend meson
of which one?
Or watch Gintama. Peak anime
Both
bruh
Reading is fun 
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
Fair point. I get impatient so that's why I prefer reading 
i feel the opposite anime is long but you can read a manga very quickly
Yeah, which is the point that Sam made. You can watch it casually
its just for when you're feeling fancy
taiwan company made an ssd that can explode(hard reset) itself 
Is that the TeamGroup one?
Because it is quite useful
reminds me of the opera gx feature where they delete your browsing history after your death ( Multiple weeks of inactivity )
should set it to one day of inactivity

my browser history can't be seen by anyone else
mine can

My browser history is supposed to be private, but we all know it isnt
My isp probably knows everything
put your browser history on your website, updated real time 
isp only gets the domain names
too much effort
The most emberasing part is probably how much i go to chatgpt.com
only when using tls
it's about time to build our own underwater/underground fibres system
for maximum privacy
who doesnt use tls lol
Not with DoH
also cloudflare now supports esni or whatever its called now
The Neuro network?
yes even with doh

...how?
you have to tell the server the domain name you're connecting to in the tls handshake
i don’t. i access sensitive info and services through plain http
Which is on top of HTTPs
recently tls got an extension that allows encrypting it but it's very new, cloudflare recently enabled it though
and we establish network connections by a decentralized P2P system, which will be called Neurolink
genius
Oh wait I just realized what you mean
oh right its called ech
Server Name Indication (SNI) is an extension to the Transport Layer Security (TLS) computer networking protocol by which a client indicates which hostname it is attempting to connect to at the start of the handshaking process. The extension allows a server to present one of multiple possible certificates on the same IP address and TCP port numbe...
i decided to revisit the meson branch and noticed there's a clangd file instead of the expected .clangd in there, no wonder clangd was freaking out constantly 
most disks do that already with OPAL/HW enc.
another with layer can also be luKS
but i've seen it 
it was pretty tame

they're only encryptions, it still holds the data and have chances to be read, this disk simply fry the chips upon user input 
perfect for some special uses
yep
morning
this is tiring 
does anyone have a fix for this
linking errors for gdi+ library
apparently its a common issue
-lgdiplus -lgdi32 at the end of the gcc/g++ command
didnt work
what about -L C:/Windows/System32 -lgdiplus -lgdi32
-L apparently not a command
meant to say to put that at the end of the gcc command mb 
wait no it should be -L C:/msys64/mingw64/lib
how are you defining your main function
wdym
can i see the file contents? 
would that be okay
#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
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
-W"l,-subsystem,console"
this is more windows being super pedantic about you doing things the windows way
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
i unfortunately do not
its alright
well, not programmatically at least
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

start another program to do the screenshot and read the image 
i'd love to help with getting gcc working but apparently my gcc from mingw refuses to do anything at all 
i wonder how this happened, i never use it
yeah

awa
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)
---------------
help
how do i make it so this code makes a NEW png everytime
and not edit the already made one
Make a copy and edit that instead.
how does one make a copy
system("cp original copy");


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;
}
}
...
}
do i need to include a library for this?
nope, you just need #include <windows.h> and #include <sstream>
where is the main screenshot code in between of?
just before bmp->save and filename.c_str() replaces the string you have as the filename
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()));

you use the variable filename.c_str(), not the string L"filename.c_str()"
bmp->Save(filename.c_str(), &encoderID, NULL);
aw man it still made only one png
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

is the program exiting? I have a feeling the sleep function is in seconds not milliseconds
milliseconds
so you would be telling it to sleep for 16 minutes
the while loop runs until it finds a filename that doesn't exist yet.
ohhh
probably that then
ohh
it stops at the screenshot func
because it didnt make a new file
how does that work exactly?
ive tested it a bunch now and yeah it gets stuck in that condition

dude... atleast just use the global_count directly 
i hate that these commands are all const
true
but im too far gone now
you are not a coder if you dont hard code anything
straight into #programming hall of fame
i don’t think we have that so you’re the first
@programminghalloffamebot
it’s such an awful execution it’s beautiful
i don’t get it
i would need visual aid
its 4am and ive only odne constant coding
it might be time for me to move away from chrome
my brain is not cut out for this
can vouch for firefox
if you're ok with stuff breaking a lot
a lot???
ok that was badly worded
mfw i need hls
Occasionally
specific things will repeatedly cause issues
safari 
that statement is so linux user coded
mpv is fine on windows
not what i mean
wouldn't work in my use case
also firefox can play hls it just wont open m3u8 as a video but will download it instead i think
iirc there are some extensions to get hls working on firefox?









