[ om / jp / 2d ] [ home ]

/jp/ - 2D/Random

Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1733738249792.jpg (137.68 KB, 905x1183, 1733710681551.jpg)

No. 637339

Who ordered the drippy cheese? I like my cheese drippy bruh

No.637340

File: 1733738383336.jpg (303.93 KB, 1746x1245, 1733355852730.jpg)

When she offers spam to go with my drippy cheese.

I am bulking, it's called a winter arc little bro.

No.637341

women need emotional and physical support after their partner disappears i'll swoop in when her boyfriend dies and sort of plant the seed

No.637342

spam

No.637343

File: 1733747087669.png (12.55 KB, 711x338, 2024-12-09-071729_711x338_….png)

I figured out how to get the base filename of a path with no file extension using C++17 features and then convert back into C style strings

I can't figure out how to get these variables into another .cpp file somewhere else in the source code though

As Terry Davis once said, is this nigg3rlicious or is this divine intellect, and right now I'm feeling nigg3rlicious

No.637363

ugh non-functional mid to low level programming is cringe

No.637366

>>637343
look up extern keyword

No.637370

File: 1733826926617.jpg (110.34 KB, 956x897, 1686453992784.jpg)

>>637366
Yeah I did figure it out.

Declare as extern in a .h file

Define variable in one file, can be used in another.

I now understand how variables are shared between files in C(++), but I now understand the problem of "global state" too. Where I was defining the variable (and basically have to) was too late, the function in the other file was being ran first, so it was being read as null.

I have no way of re-ordering the functions, there is no main(). This would've worked perfectly and solved a real-world issue, but I am simply just fucked because the computer is deciding to run the function before the variable is defined.

No.637371

spam

No.637372

>>637370
busy wait then:
while (!g_string)
std::this_thread::yield();
or call your function from whatever function you get this path in

No.637374

Hackers (1995)

No.637482

spam

No.637483

File: 1734027421669.jpg (77.46 KB, 1080x1103, sanic 1733928265715.jpg)

traceroute -I ota-ch.com

This tells me all the hops between my computer and ota. How does traceroute work though you ask?

Packets have a "Time to Live", or TTL.

Linux sends out packets with a 64 TTL by default. Each time the packet goes through a router, it decrements it by 1.

So it hits my home router, the time to live is now 63. Hits my first ISP router, now 62, and so on…

If the TTL hits 0, the router is supposed to drop the packet and send back an ICMP type 11 ping to the source IP address, "time to live exceeded".

What traceroute does, is it sends a packet to the destination IP address with 1 TTL, 2 TTL, 3 TTL, and so on…

So it tricks each router on the path to send you back an ICMP type 11 packet.

>what if they don't send one back


Some faggots don't, then you just get * * * in traceroute instead of their IP address.

No.637484

File: 1734027525356.png (120.53 KB, 665x683, 2024-12-12-124434_665x683_….png)

Here in Wireshark you can see me sending strawberry themed ICMP type 8 pings with an incrementing time-to-live, and getting choco-mint themed ICMP type 11 packets back from the routers in the path telling me time-to-live exceeded

No.637485

>>637483
you already posted that look
>>637481

No.637490

>>637484
mortality I am an incomparable homooooo

No.637491

shut the fuck up sagespace

No.637523

File: 1734064139933.jpg (46.59 KB, 526x526, 1733586134130.jpg)

can somebody post that look again

No.637525

post one of your fits whatmin

No.637532

File: 1734093312949.jpg (122.62 KB, 750x1000, sample-6592d992fd20af6a087….jpg)

>>637523
Looking for the image with these shorts of someone posting

"my sister wears these in real its so hot"

No.637533

spam

No.637652

b



Delete Post [ ]
[Return]
[ om / jp / 2d ] [ home ]