












c++
class C {
C* m_pOther;
};
// initialize
C* c1 = new C();
C* c2 = new C();
c1->m_pOther = c2;
c2->m_pOther = c1;









Elem* pE = CreateElement("SomeElem", size, flags);
pE->RegisterCallback(somecallback);
(*pE)("Daughter")->RegisterCallback(somecallback2);
(*(*pE)("Daughter"))("Daughter")->RegisterCallback(somecallback3);
but I have to initialize the mandatory size fields and flags when doing this. What pattern for initializing and using these child objects might be more correct. I mean the usage itself (which pattern would be more correct). I'll implement it myself.




addChild(<name>, <obj>)

addChild(<name>, <obj>) Elem* pE = CreateElement("name", size);
Elem* pE2 = CreateElement("some2", size);
pE->addchild("some2", pE2); (edited)


pE->getchild("some2")->RegisterCallback(somecallback);

getchildren() more clearly (edited)

/dev/sda1 4.6T 4.5T 58G 99% /mnt/backup2
Grows ~50 GB per week, so will be out of space next week. I don't like 3.5" disks, they are so loud and power hungry









xz -0, but xz -9 recompressing everything would probably take a few weeks, I'll check how much it saves








xz -0, but xz -9 recompressing everything would probably take a few weeks, I'll check how much it saves 














mom I need some stuff for a test
sure if it's a test
: troll






































cl_show_votes_after_voting 1
I found where it is implemented (edited)


ClShowVotesAfterVoting

ClShowVotesAfterVoting 

ClShowVotesAfterVoting about voting














find . -type f | grep '\.map' > listofmaps (edited)find . is to list files in the working directory.
-type f is so it will only list files not directories
| pipes it to another programm (in this case grep)
grep '\.map' only prints the files which have the .map extension
> redirects the standard output to a file (in this case)
listofmaps the name of the file to save the list of the maps
find . -type f -name '*.map'


fd -e map (edited)fd -e zip -x unzipFind all *.h and *.cpp files and auto-format them inplace with clang-format -i:
fd -e h -e cpp -x clang-format -i

find . -type f -name '*.map' 





















































https://master1.ddnet.org/ddnet/15/servers.json was 513K, today it is 285K. My server is not visible in DDNet client but in the server logs I see [register]: server registered.



https://master1.ddnet.org/ddnet/15/servers.json was 513K, today it is 285K. My server is not visible in DDNet client but in the server logs I see [register]: server registered. 




































































