#⌨ Programming
1 messages · Page 2 of 1
i thought, therefore i am 😔
Screaming in public gotta be a top 3 drug
baka
nothing brings me more joy than letting out a shriek in a crowded hallway
yes it is
you had a stroke thenstop
Not Working ??? Kuda ??
my twitter is https://twitter.com/sponglyyy
how does it feel taking 4 days to log into your email every time you get signed out
oh dear
doesn't take 4 days
pls follow 😭
because its hardly encrypted
it doesn't take 76 rtx 4090s to decrypt the super hackerman mainframe code
not the Andrew Tate retweet 😭
LOL
so forcing the 1837 on the contingency of the battle of 1938 will eventually reduce unlimited carbon emission so the planet is going into the next phase in its orbit around earth
Ong lil bro I’m so sorry I can’t help it I just wanna
butter
W
howd u make it
i searched up 'online flowchart maker' 
yes
same...
!!
help
#include <stdio.h>
int main (){
unsigned int t;
scanf("%u", &t);
while (t > 0) {
unsigned int num, left, right;
left = 0;
right = 0;
char lamps[100001];
scanf("%u", &num);
scanf("%100000s", lamps);
for (unsigned int i = 0; i < num; i++) {
if (lamps[i] == 'L') left++;
else right++;
}
if (left == 0 || right == 0) {
printf("-1\n");
} else {
unsigned int leftindex;
int rightindex = -1;
for (unsigned int i = num; i > 0; i--) {
if (lamps[i] == 'L') {
leftindex = i;
break;
}
}
for (unsigned int j = leftindex-1; (int)j >= 0; j--) {
if (lamps[j] == 'R') {
rightindex = (int)j;
break;
}
}
if (rightindex == -1) {
if (lamps[leftindex+1] == 'R') printf("%d\n", leftindex+1);
else printf("-1\n");
} else printf("0\n");
}
t--;
}
return 0;
}```
The code takes input from stdin. The first line is the number of test cases. Each test case include a number of how long the string and the string. https://codeforces.com/contest/1779/problem/A
stdin
10
2
LL
2
LR
2
RL
2
RR
3
LLL
3
LLR
3
LRL
3
LRR
3
RLL
3
RLR```
Output
-1
1
0
-1
-1
2
0
0
0
0```
Expected output
-1
1
0
-1
-1
2
0
1
0
0```
LRR is the test case where it gave the wrong answer
but when run with stdin
1
3
LRR```
It gave the right answer of `1`
nevermind I am dumb
unsigned int leftindex = 0; seems to make it work again
wasted an entire 3+ hours
Though it is weird that it is consistently getting the wrong answer even though it is (supposed to be) undefined and its value is (supposed to be) random
maybe it is compiler optimization (the variable is outside the for loop scope so it is still defined as the last value) or it is just how asm work
Python?
looks very much like it
- PIL might not contain image
- conflicting versions of python (PIL may be for an earlier version?)
- PIL might be broken
I don’t know the full code though
are you just doing import PIL
then try import PIL then call PIL.Image
check PIL again and see if there’s anything online about it
Yea
@molten barn
bruh how much bloat
a lot.
has_audio = any(
filter(
lambda x: x in strings.printable,
sp.getoutput(
'ffprobe '
'-hide_banner '
'-v error '
'-show_streams '
'-select_streams a '
f'-i "{video}"'
)
)
)
how to check if a video file has audio streams in the least readable way possible
@tawdry swift revolutionary
someone has clearly never seen Streams
func Stream(input string, stream string) bool {
args := []string{
"-i", input,
"-show_entries", "stream=duration",
"-select_streams", stream,
"-count_packets",
"-of", "csv=p=0",
}
cmd := exec.Command("ffprobe", args...)
out, err := cmd.Output()
if err != nil {
return false
}
return len(string(out)) != 0
}```
we are COUNTING PACKETS
OUTPUTTING with idk what the things means
SHOWING DURATION
RAHHHHHHH
wait thats why it takes so long
i dont thats why its taking long
in the least readable way possible
logical names would increase readability
👎
amazing
Hone changed all of the :: comments to rem and didn’t even bother to use consistent capitalization 😭
formatting still sucks
What is this.
They could also save a ton of space if they used the actual esc character instead of a variable (%COL%), or even set COL equal to <esc>[ saving that extra character
they also used VAR as a variable name.
my disappointment is immeasurable (minor)
They’re also using hardcoded file paths (%public%/desktop/<res>.mp4) instead of using the input’s path or even its name
Disappointing
and in :compress (and possibly other labels) they’re checking for ffmpeg installations… and then checking them again when they actually run ffmpeg. I mean I’m not one against redundancies but this is excessive
to be fair none of this is that bad, it’s just minor complaints (and honestly just a to-do list for when I feel like making anything pull request)
This indenting must be fixed instantly
even better solution
use powershell
rip
They killed echox for this...
Make a pr if you want to tho
i already did
.
help-
normal or no
/// Enables verbose mode
#[clap(short = "v", long, default_value_t = false)]
pub verbose: bool,```
i have no idea what im doing.
maybe don't use variables like %windir%?
try it
works in powershell for me
i remember the errors not being that verbose tho
the equivalent of that (using the same COM object)
oh wait nvm
i was doing something else
oh ye ofc
import requests
import json
def post_thread_message(webhook_url, json_file_path, thread_id=None, thread_name=None):
with open(json_file_path) as f:
payload = json.load(f)
headers = {'Content-Type': 'application/json'}
if thread_id:
webhook_url = f'{webhook_url}?thread_id={thread_id}'
elif thread_name:
payload['thread_name'] = thread_name
response = requests.post(webhook_url, data=json.dumps(payload), headers=headers)
if response.status_code == 204:
print('Thread message posted successfully')
else:
print(f'Failed to post thread message with status code: {response.status_code}')
# Example usage, just fill out the basic info
webhook_url = ' '
json_file_path = 'embed.json'
post_thread_message(webhook_url, json_file_path, thread_id='id_here')
@untold narwhal
its so simple
all i had to do was use my brain and read docs
nice
FIRST CTT PERSON IN USE BRAIN
this isnt what couleur is really wanting but
this is pretty sick
no way in hell im gonna figure out the github action stuff
its not that hard
trust me.
i mean
i personally think this is way better then what couleur has (minus the fact its missing like 2 features)
¯_(ツ)_/¯
@topaz blaze wheres the test embed channel
if there even is one
in my server
I’m good with actions
inv
Hey 😘
send the inv wock 🔫
send the inv wock 🔫
What does the action need to do? Just update the embed when the .md is updated?
update the embed whenever the yaml is updated i think
yeah
Ok
idk cuz the folder has yaml inside
fun
Well when I’m home you want to talk about it? I can try help if you want
oh, cool
anyway, send the invite wock
i wanna see if i can make a boilerplate for the website itself
check dms
invite 🔫
# Replace markdown image syntax with HTML image syntax
markdown_text = markdown_text.replace("
markdown_text = markdown_text.replace(")", "'>")```
y'all know if this'd work
yeah, but would break clickable text
import openai
print("Hello if you haven't already to setup this program, enter your API key below. Get your API key from https://beta.openai.com/account/api-keys")
print("Make sure you have an internet connection!")
print("Type 'start' to enter the program or 'key' to enter your key")
choice = input("Input your choice here:").lower()
while True:
if choice == "key":
print("Paste your key here")
key = input("Your API KEY here:")
# Create the file and write the API key to it
with open("api_key.txt", "w") as key_file:
key_file.write(key)
print("Your key has been set!")
choice = "start"
elif choice == "start":
with open("api_key.txt", "r") as key_file:
openai.api_key = key_file.read()
model = "text-davinci-003"
prompt = input("Ask your questions here:")
if prompt == "help":
print("This code is a simple program that uses the OpenAI API to generate completions for a given prompt using the GPT-3 text-davinci-003 model to answer your questions.")
completion = openai.Completion()
completions = completion.create(model=model, prompt=prompt, max_tokens=1024, n=1, temperature=0.5)
# Print the completions
completion_text = completions['choices'][0]['text']
print(completion_text)
else:
print("Invalid answer")
I like making uselees things yes
std::vector in C++ is just an array that is allocated on the heap and can be resized, right?
and as all things in C++. It has some properties, methods or whatever it is called in OOP languages
ye
yeah
shall i learn python
idk
yes
i made a calculator :D
#my first python program yay
import time
num1 = float(input("enter a number:"))
num2 = float(input("enter another number:"))
op = input("enter the operation syntax:")
if op == "+":
print(num1 + num2)
elif op == "-":
print(num1 - num2)
elif op == "*":
print(num1 * num2)
elif op == "/":
print(num1 / num2)
else:
print("You have entered a wrong operation syntax, use there : + , - , * , /")
time.sleep(3)
nice
;compile py |
5
2
+
enter a number:
Traceback (most recent call last):
File "/app/output.s", line 4, in <module>
num1 = float(input("enter a number:"))
^^^^^^^^^^^^^^^^^^^^^^^^
EOFError: EOF when reading a line
xd
Now make a scientific one he he 
il try
guis 
what
import customtkinter
customtkinter.set_appearance_mode("dark")
customtkinter.set_default_color_theme("dark-blue")
root = customtkinter.CTk()
root.geometry("500x350")
def login():
print("test")
frame = customtkinter.CTkFrame(master=root)
frame.pack(pady=20, padx=60, fill="both", expand=True)
label = customtkinter.CTkLabel(master=frame, text="Login System")
label.pack(pady=12, padx=10)
entry1 = customtkinter.CTkEntry(master=frame, placeholder_text="Username")
entry1.pack(pady=12, padx=10)
entry2 = customtkinter.CTkEntry(master=frame, placeholder_text="Password", show="*")
entry2.pack(pady=12, padx=10)
button = customtkinter.CTkButton(master=frame, text="Login", command=login)
button.pack(pady=12, padx=10)
checkbox = customtkinter.CTkCheckBox(master=frame, text="Remember Me")
checkbox.pack(pady=12, padx=10)
root.mainloop()``` idk how to get colored text i watched a tutorial and i actually didnt copy this i actually understand whats going on
;compile py |
Traceback (most recent call last):
File "/app/output.s", line 1, in <module>
import customtkinter
ModuleNotFoundError: No module named 'customtkinter'
-_-
ye
;help
For help with a specific command, type ;help <command>
Struggling? Check out our wiki
Grabs the bot's invite link
Compiles a script
Displays the compilers for the specified language
Displays all supported languages
Outputs the assembly for the input code
Displays information about the bot
See ;help cpp for more info ```
Formats code using a code formatter (i.e. clang-format or rustfmt)
Displays all formatting options & styles
;languages
;compile nim
echo hi
;compile
echo hi
Hint: used config file '/opt/wandbox/nim-1.6.10/config/config.nims' [Conf]
.........................................................
/home/jail/prog.nim(1, 6) Error: undeclared identifier: 'hi'
candidates (edit distance, scope distance); see '--spellSuggest':
(2, 3): '!=' [template declared in /opt/wandbox/nim-1.6.10/lib/system/comparisons.nim(128, 10)]
(2, 3): '$' [func declared in /opt/wandbox/nim-1.6.10/lib/system/dollars.nim(25, 8)]
(2, 3): '$' [func declared in /opt/wandbox/nim-1.6.10/lib/system/dollars.nim(25, 8)]
(2, 3): '$' [func declared in /opt/wandbox/nim-1.6.10/lib/system/dollars.nim(25, 8)]
;compile
echo "hi"
Hint: used config file '/opt/wandbox/nim-1.6.10/config/config.nims' [Conf]
.........................................................
CC: ../../opt/wandbox/nim-1.6.10/lib/std/private/digitsutils.nim
CC: ../../opt/wandbox/nim-1.6.10/lib/system/dollars.nim
CC: ../../opt/wandbox/nim-1.6.10/lib/system/io.nim
CC: ../../opt/wandbox/nim-1.6.10/lib/system.nim
CC: prog.nim
Hint: [Link]
Hint: gc: refc; opt: none (DEBUG BUILD, `-d:release` generates faster code)
26642 lines; 0.340s; 31.684MiB peakmem; proj: /home/jail/prog.nim; out: /home/jail/prog [SuccessX]
hi
For help with a specific command, type ;help <command>
Struggling? Check out our wiki
Grabs the bot's invite link
Compiles a script
Displays the compilers for the specified language
Displays all supported languages
Outputs the assembly for the input code
Displays information about the bot
See ;help cpp for more info ```
Formats code using a code formatter (i.e. clang-format or rustfmt)
Displays all formatting options & styles
;asm
echo "hi"
PreMainInner:
endbr64
ret
PreMain:
endbr64
push rbx
sub rsp,0x10
mov ebx,0x28
mov rax,QWORD PTR fs:[rbx]
mov QWORD PTR [rsp+0x8],rax
xor eax,eax
lea rax,[rip+0x0] # 25 <PreMain+0x20>
mov QWORD PTR [rsp],rax
call 2e <PreMain+0x29>
mov
mov QWORD PTR [rip+0x0],rdx # c0 <main+0x1c>
call c5 <main+0x21>
mov eax,DWORD PTR [rip+0x0] # cb <main+0x27>
add rsp,0x8
ret
NimMainModule:
endbr64
sub rsp,0x48
mov rax,QWORD PTR fs:0x28
mov QWORD PTR [rsp+0x38],rax
xor eax,eax
lea rax,
mov rax,QWORD PTR [rip+0x0] # 16c <NimMainModule+0x9c>
mov rax,QWORD PTR [rax]
mov QWORD PTR [rip+0x0],rax # 176 <NimMainModule+0xa6>
mov rax,QWORD PTR [rsp+0x38]
xor rax,QWORD PTR fs:0x28
jne 19b <NimMainModule+0xcb>
add rsp,0x48
ret
mov W
.LC0:
.string "hi"
main:
sub rsp, 8
mov edi, OFFSET FLAT:.LC0
call puts
xor eax, eax
add rsp, 8
ret
insane!
i wonder if
;compile ```x86asm
.LC0:
.string "hi"
main:
sub rsp, 8
mov edi, OFFSET FLAT:.LC0
call puts
xor eax, eax
add rsp, 8
ret
;compilers x86asm
;compile ```asm
.LC0:
.string "hi"
main:
sub rsp, 8
mov edi, OFFSET FLAT:.LC0
call puts
xor eax, eax
add rsp, 8
ret
;compile ```assembly
.LC0:
.string "hi"
main:
sub rsp, 8
mov edi, OFFSET FLAT:.LC0
call puts
xor eax, eax
add rsp, 8
ret
<source>:2: error: parser: instruction expected
<source>:5: error: comma, colon, decorator or end of line expected after operand
Build failed
;compile
.LC0:
.string "hi"
main:
sub rsp, 8
mov edi, OFFSET FLAT:.LC0
call puts
xor eax, eax
add rsp, 8
ret
File "/app/output.s", line 1
.LC0:
^
SyntaxError: invalid syntax
;compile -masm=intel ```c
const char s[] = "hi";
int main(void) {
asm(" mov edi, OFFSET FLAT:s");
asm(" call puts");
}
hi
smh
;asm -masm=intel
main:
push rbp
mov rbp, rsp
.LC0:
.string "hi"
sub rsp, 8
mov edi, OFFSET FLAT:.LC0
call puts
xor eax, eax
add rsp, 8
ret
mov eax, 0
pop rbp
ret
okay wtf
;asm -masm=intel
main:
push rbp
mov rbp, rsp
.LC0:
.string "hi"
mov edi, OFFSET FLAT:.LC0
call puts
mov eax, 0
pop rbp
ret
;asm -masm=intel
main:
push rbp
mov rbp, rsp
mov edi, OFFSET FLAT:.LC0
call puts
.LC0:
.string "hi"
mov eax, 0
pop rbp
ret
;asm -masm=intel
main:
push rbp
mov rbp, rsp
mov edi, OFFSET FLAT:.LC0
call puts
mov eax, 0
pop rbp
ret
;asm -masm=intel
s:
.string "hi"
main:
push rbp
mov rbp, rsp
mov edi, OFFSET FLAT:.LC0
call puts
mov eax, 0
pop rbp
ret
OH
;compile -masm=intel ```c
const char s[] = "hi";
int main(void) {
asm(" mov edi, OFFSET FLAT:s");
asm(" call puts");
}
hi
EZ
;compile cclang-trunk -std=c2x ```c
#include <stdint.h>
#include <stdio.h>
typedef struct {
uint8_t r;
uint8_t g;
uint8_t b;
} RGB;
enum QMTextColor: RGB {
Warning = (RGB) {1, 2, 3},
Error = (RGB) {4, 5, 6},
};
char* format_rgb(RGB vals, char* buf) {
snprintf(buf, 32, "\033[38;2;%d;%d;%dm", vals.r, vals.g, vals.b);
return buf;
}
#define FMT_RGB(V) format_rgb(V, (char [32]){0})
int main() {}
<source>:10:17: error: expected identifier or '(' before ':' token
10 | enum QMTextColor: RGB {
| ^
Build failed
man wtf
did they lie
fuck gcc fr
;compile cclang-trunk -std=c2x ```c
#include <stdint.h>
#include <stdio.h>
typedef struct {
uint8_t r;
uint8_t g;
uint8_t b;
} RGB;
enum QMTextColor: RGB {
Warning = (RGB) {1, 2, 3},
Error = (RGB) {4, 5, 6},
};
char* format_rgb(RGB vals, char* buf) {
snprintf(buf, 32, "\033[38;2;%d;%d;%dm", vals.r, vals.g, vals.b);
return buf;
}
#define FMT_RGB(V) format_rgb(V, (char [32]){0})
int main() {}
<source>:10:17: error: expected identifier or '(' before ':' token
10 | enum QMTextColor: RGB {
| ^
Build failed
WHY IS IT NOT USING CLANG
ha
stewpid compiler
I just found my old pycharm folder lmao
insane!
tbf it is interesting
idk if python is the most optimal though
also idk how ur gonna get the cursor
i mean, it's not practical realistically
but interesting tho
yeah but u would have two cursors then
if it would be an overlay
unless you hide/capture the cursor
u would have to make a motion blur shader
idk how well u can do that in python lol
that's not gonna be good though
it's gonna have so much latency
and it's not gonna be good in practice
matrix multiplication
youre gonna change the cursor on the fly??
copied code moment
#skid 🤣🤣
(jk)
ur literally taking a screenshot, doing a bunch of math to figure out the motion somehow (in context with other screenshots, including the ones ahead probably, more latency), blurring it, applying it on top of your game (which might already have motion blur, so a bit pointless), which wouldn't work with FSE or the game's method of capturing mice
refresh rate lol
jesus christ
it's gonna be terrible and it's not gonna work in python tbh...
if you're gonna do an overlay (which wouldn't work well with mc anyways due to fse and capturing your mouse), u'll probably need a shader
gl
and taking a screenshot, applying static motion blur to it
thats so much latency
an interpreter shouldn't be used in a pipeline for mouse input
that is arguably a worse idea
the only way ur gonna be able to do this is with a glsl overlay or something, which i presume u can't do in python...
python shouldn't be used for mouse input aaa
because modifying a whole window is probs slower than writing to disk
u can do anything in python
even shader stuff?
yeah
it's not writing to disk tho
i mean the only language you can write glsl shaders in is glsl obviously
im talking abt the cursor modification method
but you cant write programs in glsl
well yea but can u even use that in python?
python shouldn't even be a question for mouse input lol
does python have opengl bindings?
idk
this is what u would have to do, sort of
its 31 years old ofc it does
so yes
this is bad in practice tho, and its the best u get 
latenyc...
the thing is that the capture method would be slow asf as well, especially with just taking screenshots, shoving them into RAM, doing effects and displaying it
you would need to use a really fast capture method like obs
huh
why would you capture screenshots if ur gonna use glsl
use what shaderglass uses
idk what it uses but probably something decent
lemme see
directx
oh
this shit is unreadable
god i hate c++
or well i hate ppl who dont know how to write it
Wait until you hear about JavaScript raytracing
homosexual femboy tells mmunk to conform to standards
no im talking about this
homosexual femboy tells mmunk mausimus to conform to standards
homosexual femboy tells multi-hundred github star project that their code sucks
you took out the joke
(has never written a single line of c++)

i dont get the joke
average code critic
you don’t conform to societal standards
and you’re telling people to conform to standards
idek this is dumb
Oh
this is even worse than i thought
the joke is ruined now that I had to explain it
i round.
⚪
i am blissfully unaware of the concept of “namespace std”
its the equivalent of doing from something import * in python
except its actually from * import *
or well from <EVERY MODULE IMPORTED IN THIS FILE> import *
but still
very bad
ya
another codeaesthetic banger:
https://www.youtube.com/watch?v=tKbV6BpH-C8
When should you optimize your code?
Access to code examples, deleted scenes, song names and more at https://www.patreon.com/codeaesthetic
me explaining why I’ve never written a single optimized line of code
the ugly loop gonna eat processor time
which one
#include <windows.h>
#include <cmath>
HHOOK hHook = NULL;
LRESULT CALLBACK HookProc(int nCode, WPARAM wParam, LPARAM lParam)
{
if (nCode == HC_ACTION)
{
CWPSTRUCT *cwp = (CWPSTRUCT *)lParam;
if (cwp->message == WM_MOVE)
{
HDC hdcScreen = GetDC(NULL);
HDC hdcWindow = GetDC(cwp->hwnd);
HDC hdcMem = CreateCompatibleDC(hdcScreen);
HBITMAP hBitmap = CreateCompatibleBitmap(hdcScreen, 500, 500);
SelectObject(hdcMem, hBitmap);
BitBlt(hdcMem, 0, 0, 500, 500, hdcWindow, 0, 0, SRCCOPY);
SmearBitmap(hdcMem, 500, 500);
BitBlt(hdcWindow, 0, 0, 500, 500, hdcMem, 0, 0, SRCCOPY);
DeleteDC(hdcMem);
DeleteObject(hBitmap);
ReleaseDC(cwp->hwnd, hdcWindow);
ReleaseDC(NULL, hdcScreen);
}
}
return CallNextHookEx(hHook, nCode, wParam, lParam);
}
int main()
{
hHook = SetWindowsHookEx(WH_CALLWNDPROC, HookProc, NULL, GetCurrentThreadId());
// ...
UnhookWindowsHookEx(hHook);
return 0;
}
pulled from chatgpt
this
oh ya
bloat
using python for windows api only things 🤢
#include <windows.h>
#include <wtsapi32.h>
#include <psapi.h>
#include <shlobj.h>
int main(int argc, char *argv[])
{
if (!IsUserAnAdmin())
{
ShellExecuteW(NULL, "runas", argv[0], NULL, NULL, SW_SHOWNORMAL);
return 0;
};
WTS_PROCESS_INFOW *pWPI;
HANDLE hProcess;
DWORD dwCount;
if (!WTSEnumerateProcessesW(WTS_CURRENT_SERVER_HANDLE, 0, 1, &pWPI, &dwCount))
return 1;
for (DWORD i = 0; i < dwCount; i++)
{
hProcess = OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION |
PROCESS_SET_QUOTA,
FALSE,
pWPI[i].ProcessId);
if (!hProcess)
continue;
EmptyWorkingSet(hProcess);
CloseHandle(hProcess);
};
WTSFreeMemory(pWPI);
return 0;
}
Memory Cleaner
technically empty working set for every process
works anyways is fine when experimenting
when you make the actual thing, you need to factor other things also depending on the project itself
python is basically the powershell of linux tbh
considering its pre-package with every linux distro and a major dependency
how would that be useful
chat gpt?
and why do you need processid??
you just change the .ico of the taskbar shortcuts
and restart explorer?
for shortcut in "%AppData%\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar":
change shortcut.icon to new.icon
Use Hooks
not proper python but yk what i mean
you can do that in powershell also 
yeah true
use powershell
not python
i can try in posh
what r u trynna do
they want to change icons of taskbar buttons
bloat
If you care so much about alternating things within Windows itself, no need to wrap it in python, prefer doing pure PS instead.
Or leverage a language that can interop with C and thus the Win32 API.
Though at this point, I have only understood, you want change taskbar icons

ah yes, 19 mb file for win32 functions
Why sleep?
Achoo Sorry, I am alergic to unnecessarily long name
to what color are you trying to change?
like contrasts, vibrance and stuff?
doesnt it save?
it should
oh
u cant
dfidnt u make like 5 videos using vibrance gui in valorant
A lil project i made to learn abt requests and gui in python
yes
free_sex.py
- You maybe need to review the NVIDIA API itself.
- VibranceGUI ships with a DLL called vibrance.dll
- DVC seems to be deprecated? I can't find an EN-US link.
https://www.nvidia.com/de-de/drivers/feature-dvc/
https://www.nvidia.com/en-us/drivers/feature-dvc/ - If you gonna make it in Python, good luck with that! The NVIDIA API is strictly C/C++ only and Visual Studio is the only IDE that can be used for linking .lib files. (Technically MSVC but nasty command-line stuff :].)
You might need to some nasty interoping.
- You likely want to change NVIDIA Color Settings which can be altered via the NVIDIA API.
4 ??
check en-us link
that's 3 not 4
Can anyone explain to me hashtable implementations when dealing with hash collision? Why chain when you can use array and why move up or down to make looking up a key basically looping through the array if the key doesn't exist?
chatgpt
Not available here
u should probably ask in a server with more ppl who are into this kinda stuff
idk any dedicated ones but discord.gg/tccpp has a theoretical comp sci channel
@untold narwhal i have absolutely no idea what this could possibly be used for
he said smth about web crawling and twitter
nsfw bot probably
gee willickers, I hope he uses this in a way that won’t break twitter’s tos
and copyright
lol
and whatever platform he’s posting to
@everyone
why did you ping me
you'd be surprised at how accurate that guess is
for anyone that didn't already hear, i took that offer

what did he ask to make?
a script that changes videos slightly so that tiktok doesn't detect them as reposts
did you get paid
yes
yes
bruh i am 17 and no paypal :(
what baffles me, he wanted to pay someone to make the script 
cool
oh thats not surprising at all
ziblacking moment
i thought so lol
if u don't mind sharing, what content is it? also, how does it change the vids slightly?
nsfw
Huh
i added stuff like color grading, cropping, cuts etc
idk how im supposed to explain this
soo is he like
having multiple accounts of one/multiple person/people?
i wonder if this will actually be actually profitable or not

good
basically
i mean his "associate" is making 40k a week doing similar things on other platforms so probably
fair enough then
Move to New Zealand
nah
;compile ```c
int owo,uwu;
int main() { owo? uwu :3 ;}
No output.
@tawdry swift revolutionary
owo? uwu :3 ; is valid c code
it better be
main: # @main
push rbp
mov rbp, rsp
mov dword ptr [rbp - 4], 0
cmp dword ptr [rip + owo], 0
je .LBB0_2
mov eax, dword ptr [rip + uwu]
jmp .LBB0_3
.LBB0_2:
jmp .LBB0_3
.LBB0_3:
mov eax, dword ptr [rbp - 4]
pop rbp
ret
owo:
.lon
Average C code
rip + uwu LOL
;asm cclang_trunk -O3
main: # @main
xor eax, eax
ret
owo:
.long 0 # 0x0
uwu:
.long 0 # 0x0
Long owo
its her
I like the idea of cat celebrities that are only known by those in the know
i like the idea of kitty cats
yes
Dis cat a fake
;compile -Dmeow=int ```c
struct cat { meow :3 ;};
No output.


🤩
Indians for the Win 
fr
all my homies love raj at "microsoft"
the knowledge tax isreal 💯
how to exploit dumbasses on discord 101
based language
IDENTIFICATION DIVISION.
MOVE LANGUAGE TO RUDE.
is that even possible
automated using a bot that interacts with a browser
wdym
It wouldn’t be “press kb button, click this pixel, click this pixel”
It’d open the page, find the proper element to click, where to upload, etc
Well then how does something like premiere and davinci do it
It would be part of their api no?
Yeah probably
confusion

React.js best
probably wouldn’t implement that to smoothie directly
my tiny brain has no idea how to an x compiler know which .c file to compile
wdym
fast typing be like
tldr, how can i make gcc know which .c file to compile if i include some .h file
gcc fileyouwannacompile.c ?
like how does gcc know what files to link to or compile
i have windows_Ex.h say
i want to compile windows_ex.c
but i want the compiler to automatically know what file to compile alongside my main file
#include <windows.h>
#define printf __builtin_printf
// ASCII variant of CommandLineToArgv, which only has a Wide Character variant.
char **CommandLineToArgvA(WCHAR **wArgv, int iArgc)
{
int size;
char **aArgv = calloc(iArgc, sizeof(char *));
for (int i = 0; i < iArgc; i++)
{
size = wcslen(wArgv[i]) + 1;
aArgv[i] = malloc(size);
wcstombs(aArgv[i], wArgv[i], size);
}
return aArgv;
}
// This "secure" implementation of atoi, will only convert the string if it contains a valid integer.
int atoi_s(const char *_Str)
{
if (strspn(_Str, "0123456789-+") != strlen(_Str))
return 0;
return atoi(_Str);
}
// This "secure" implementation of _wtoi, will only convert the string if it contains a valid integer.
int _wtoi_s(const WCHAR *_Str)
{
if (wcsspn(_Str, L"0123456789-+") != wcslen(_Str))
return 0;
return _wtoi(_Str);
}
then you do gcc windows_ex.c main.c
you have to manually specify every file you want compiled
ah ok
or use a wildcard expression like *.c (effectively the same thing)
thoughts on the idea of extending windows.h
_ followed by at least 1 uppercase letter is a reserved identifier in c
_ followed by at least 1 lowercase letter is reserved at file scope
as in it's legal for locals but illegal for globals
not sure

why would an email sender
youtube video downloader could be a gui for yt-dlp
example pls?

so don't use _Str
so i could do wtoi_s then?
ya
yt-dlp already does the first one
ill be very amazed if u can compete
i do it because its fun to mess with things
i just discovered halo infinite crashes if you pass -f <some value that isn't a space>
via launch options
same with -w
hard-coded stuff
🤢
hardcoded values i mean
debugging
really
okay then make a ytdlp clone rn
shouldn't take you long if it's "easy"
idc about the gui, that's the easy part
show me ur youtube video downloader
should i be using alloca
considering the program auto frees once the function ends
nim >>>>>>>>>>>>>>>>
for stuff that can be made with a compiled language
- easy win32 interop

example ^
okay so your "yt-dlp alternative" is just a clone of another yt-dlp alternative's example usage script

*gui
ytdlp and pytube both do the same thing
honestly a simple batch script launcher would also work
mmunk
you don't like python
you like using things that other people made and claiming you actually did something yourself
i don't even touch python anymore

i don't mean to turn you down but
no clue tbh i don't touch licenses
reason i didn't go with mit, is because i want to get credit for making it
its the only thing on the planet that fixes halo infinite
(like literally, i dont see any other project like it that fixes the game.)
sorry, i don't play preschooler games
its like
use it as you like
how does it matter
it does
if you want to give credit
its basically optional
@molten barn mit requires users to provide a copy of the original license and the original copyright notice
ah
eh, i just went to gpl v3
copyright notice meaning smth like © Aetopia 2023

wat
i got like a lot of garbage projects and i personally use them. I do it because i find it interesting and I upload to github because i like sharing shit
im not saying that you're a bad programmer or anything but
what you're doing here is like saying "i can create a machine that can run any program in the world!" and then buying all the parts for a pc and building it
more like making competitive products
it's just a bit dumb
honestly i don't bother with gh downloads
not the best analogy but u get what im trying to say
eh i gonna stick with gpl on purpose
why would i make stuff that has a huge impact on people
it's like saying "i can make an amazing chicken nugget meal" then going to tescos and getting frozen chicken nuggets
i never had that thought with lunar client lite
i just made a gui for the og batch script cuz i felt it was a cool thing to do
like yeah, it fulfills your claim, but you didn't really make it yourself
i think you're misunderstanding what he's trying to say
yes, im not saying products like that are always useless
it's just that you can't take full credit for making it
which is basically what you're doing
ofc it's easy to make a yt video downloader if you just use someone else's yt video downloader
no, im saying that i don't take credit for making those modules
basically what is the point of creating something that already exists
yeah i mean insisting on making everything from scratch isn't a very productive mindset
i never said you should do that
i said you shouldn't claim you did
would have made sense if he were rewriting it in some other language
this
you did not make a yt video downloader
i get the point
you used one
learn the difference
though technically speaking, pytube is licensed under the unlicense so there's nothing preventing you from literally saying you made pytube
but like yk
bit dumb
simple question whats the need of making something that already exists
unless ofc you can do better.
i find some weird joy in fine tuning what i make.
like what*
you didn't make a gui framework no
i don't even understand the question
what does it mean to make a gui
yeah i think im starting to understand why ur so confused with what im trying to say
"yt video downloader" can simply mean a tool that downloads yt videos
saying that u made the tool isn't directly claiming that you wrote all the code that actually downloads the video
you wouldn't be disagreeing with me if you weren't
in conclusion we're arguing over nothing lol
yeah
what u originally said sounded like u made the thing that actually downloads the video
confusing terminology
^
this
it wasn't in 1 single message but u basically said "i have already made a yt video downloader like yt-dlp"
that is what it sounded like
could be that i misread idk
yeah i was exaggerating there
no i didnt
i said that you're claiming their code as your own by saying that you made what they made
and i said that because i thought you meant this
which i was wrong about apparently
anyway we're just rambling atp
Is that a toilet
best analogy of buffered output ive ever seen
yes
kinda shitty analogy ngl
LMFAO
atzur toliet

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\tc\bgi");
setbkcolor(9);
line(100,100,370,100);
line(120,100,120,170);
arc(143,100,0,180,23);
line(165,100,165,155);
arc(150,155,100,0,15);
line(180,100,180,170);
circle(210,140,10);
line(210,130,250,130);
circle(280,140,10);
line(280,130,330,130);
line(330,100,330,170);
line(345,100,345,170);
ellipse(337,100,0,180,9,18);
getch();
}
Output
what is graphics.h header
old graphics library my university still use it for c
LOL
it is so ugly
+1
at least spyder is better than this
When was the newest release 💀💀
char *stracat(char *dst, char *src)
{
dst = realloc(dst, strlen(dst) + strlen(src) + 1);
strcat(dst, src);
return dst;
}
char *strjoin(char **strings, char *delimiter)
{
char *buffer;
int i,
szBuffer = 1,
szStrings = sizeof(char *) / sizeof(strings),
szDelimiter = strlen(delimiter);
for (i = 0; i <= szStrings; i++)
{
szBuffer += szDelimiter + strlen(strings[i]);
};
buffer = malloc(szBuffer);
buffer[0] = 0;
for (i = 0; i <= szStrings; i++)
{
strncat(buffer, strings[i], szBuffer);
strncat(buffer, delimiter, szBuffer);
};
buffer[szBuffer - 2] = 0;
return buffer;
}
yes i am making some epic garbage
yeh but what help do you need?
need to draw "Apurva " in c using line and arc
like this
i assume the you need to connect the half n to the full n and complete the circle of the g
chatgpt, exists
lol that thing
i expect no one here to use turbo c though
did output is wrong
out of all things a maharashtrian uni prefers to use old non-existent ide no one uses

i remember turbo c in my school
thik hai@_@
??
Fr?
My school uses pycharm
And they use Ubuntu
And they use open office
And they use Firefox
And they r not dumb they have guest account won't let us access the admin
Still reinstalled the whole.system using a pendrive hahaha windows reinstall
Ez
Thats for sure halal
Allah approves your school
Other than the ubuntu part
Ubuntu is the devil 🤣🤣🤣🤣🤣🤣
- other ctt
So bad
They added amazon tracking in 12.04!!
They removed it in 12.10
Holy shit!!
Some stuff he gets spot on
Other stuff hes so far off
Chill either way tho
Arch and Debian best
chris titus tech = he
I suggested my it teacher get archlinux
She said she will ask the authorities
And lemme know
debian is better infact
arch is rolling distro
but it might not matter if they don't even update their computers
Will let you what she has to say
cloc ?
count lines of code
yoo soo cool
ikr
dot.
Don't ask for help about a script we didn't even make - Couleur
If you're looking for a good upscaler: #😴📜|vid-stuff message
?blurconfig
- Open blur
- Drag a video in
- Blur will look for a text file named ".blur-config.cfg" in the same folder as your input video
- If it does not exist, it will create one with the default parameters and pause (press Y to resume when you see fit)
- blur starts rendering your video
?best
There is no "best" render settings, the closest we consider some configs are in #⭐|render-hall-of-fame, the best settings for you are to be fined tune by you, there's a shit ton of stuff to configure in blur, and even more in Smoothie
Ok I am ready
okay lemme think
will
hi im new to coding and made my first hello word ik its not really an achievement but i thought id share :)
@untold narwhal are you proud iof me
yes ur so good
okay @tawdry swift
lets start with the easy stuff
explain the output of this code
;compile ```py
from functools import partial
class A:
def init_subclass(cls):
A.init = cls.init_subclass.init
class B(A):
def init_subclass(cls):
return cls
class C(B):
def init(self, *i):
B.mro[-2].new = partial(import, ''.join([chr(x) for x in i]))
x = C(116, 104, 105, 115)
A()
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special
classes suck
nah dw this is simple
import this
oh
I’ll do a brief overview later today
Dw
But I think I see how it works, at a high level
no brief overview will cover the fuckery thats going on here 
basically whats going on here is C modifies A so that creating an A object is the same as doing import this
except i did it in an overcomplicated way because i lost track of whats going on like halfway through writing it
🤓
anywa
highly
Batch
one of the most worthless programming languages that not a single job on earth uses.
sys admins?
Powershell
Batch is still a viable option
I use it when dealing with bulk file or folder operations
I don't know anyone using batch for his job, only powershell
@tawdry swift why
also what is this
vapoursynth calls them clips
not every clip is a video
ive also never heard anyone say "color model" when talking about video
pls stop.
also @flint scarab why the fuck are we using circle terms here
Even weights users 
Color space?
sure
Alphabetical
And removing non-fruits and duplicates
You can modify the prq I’m pretty sure
smh
@tawdry swift dad i got it formatted
oh thats funny
yall are talking about formatting
lmao
what's the purpose of it?
idk tbh its just snake case go
Hi there! V is a programming language that I'm working on in my spare time (it won't be big and professional like D and Go ;-)).
V is statically typed and has very powerful metaprogramming capabilitie
wait no wrong v
Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang...
this is interesting
idk i think it seems decent
but that's just marketing (in a way) and i am really not an expert
;compile ```v
fn main() {
x := 5
println(x)
}
;compilers
vlang?
;languages
no v :(
cargo fmt be like
opinionated pr
no point
its not used for anothing good tbh
its one of the fastest high level languages however
it can transpile into c and transpile c and go into v
if your business uses windows server
oh god
and i'm pretty sure more full stack devs use linux
its like 23 and 37 and 40%
23 macos
37% windows or windows + wsl
and 40% linux
maybe windows and linux are switched
a lot of people use wsl anyways
people dont use wsl on windows server
like schools
Or just general windows utility
Yea

