|
bmoyles posted:
|
# ¿ Apr 12, 2008 20:30 |
|
|
# ¿ Apr 25, 2024 07:20 |
|
Volte posted:I can't see the code but it's definitely a coding horror. I'm not evil but that's just loving stupid. Punish them for it!
|
# ¿ Jul 2, 2009 07:50 |
|
Lexical Unit posted:This code is now my favorite code:
|
# ¿ Jul 7, 2009 20:42 |
|
Painless posted:- random, pointless printing to cerr Dijkstracula posted:To say nothing of that ridiculous switch statement could be removed (edit: or at least simplified) if the author had known about fls() It seemed mostly OK to me, although I wouldn't make it a template.
|
# ¿ Jul 8, 2009 01:17 |
|
floWenoL posted:What is fls()?
|
# ¿ Jul 8, 2009 01:44 |
|
sex offendin Link posted:There is no generalized way to byte-swap IEEE 754 numbers anywhere, they are for all intents and purposes non-portable.
|
# ¿ Jul 8, 2009 03:32 |
|
Mustach posted:!(There's not an operator that does this).
|
# ¿ Oct 10, 2009 12:30 |
|
king_kilr posted:Does $ret implicitly get set to "" when something is concatinated to it (and it doesn't already exist).
|
# ¿ Dec 22, 2009 04:56 |
|
Well there's your problem, you're looking at a reimplementation, probably made from disassembling the original to begin with.
|
# ¿ Jul 29, 2010 00:00 |
|
dwazegek posted:
I'm assuming you mean something besides the argument names.
|
# ¿ Oct 7, 2010 14:03 |
|
Ugg boots posted:Hah, that's awesome. Here's a preview of the code from that page
|
# ¿ Feb 21, 2011 19:14 |
|
BonzoESC posted:That's how AES-CTR and AES-OFB work, except the table is so fantastically large it's impractical to store.
|
# ¿ Feb 23, 2011 12:29 |
|
Broken Knees Club posted:What are the chances that Reflector is choking on obfuscated code? I have no idea how anyone could ever wrangle such a codebase.
|
# ¿ May 26, 2011 05:30 |
|
That wouldn't influence the obscene classes Terraria has though.
gibbed fucked around with this message at 09:26 on May 26, 2011 |
# ¿ May 26, 2011 09:17 |
|
ahmini posted:I saw something like this the other day:
|
# ¿ Jun 17, 2011 11:25 |
|
Suspicious Dish posted:I don't understand how register_globals is a security bug at all. It's a terrible idea, sure, but not a security risk. The biggest argument that I've heard is that apparently arguments from $_GET get filled in before arguments from $_POST, so the user can add &admin=1 to the query string to get admin privileges or something. Do people really expect valid and correct information in $_POST or $_COOKIE or any of the other globals? Of course $_POST['admin'] is much more secure! php:<?php if (user_authenticated()) { $admin = 1; } if ($admin) { ... } ?>
|
# ¿ Mar 5, 2012 07:07 |
|
Jonnty posted:When I was watching, you couldn't actually make out the code. Probably for the best.
|
# ¿ Apr 8, 2012 01:56 |
|
trex eaterofcadrs posted:Jesus Christ I just assumed there was one cause win32 C API has GetPrivateProfileString/Int. .ini format is terrible anyway.
|
# ¿ May 1, 2012 04:22 |
|
Suspicious Dish posted:Fun fact: did you know Steam invented their own binary format that emulates the Windows registry for some reason, including the STRING/DWORD/BINARY mess? Also I don't see how it emulates the Windows registry.
|
# ¿ May 1, 2012 04:51 |
|
Suspicious Dish posted:No, I'm talking about the format that ClientRegistry.blob is in. It's a custom binary format, magics 0x5001 (uncompressed) and 0x4301 (zlib compressed). I don't think the format has been written up before. I, along with a few other people, reverse engineered it, so let me write a bit about it. I deal with it in a passive way (I wrote code for it ages ago, but no longer use that). Thermopyle posted:I would love to hear the story from Valve about why the hell they did this.
|
# ¿ May 1, 2012 17:40 |
|
Janin posted:The comments indicate that it takes a long time, potentially over an hour.
|
# ¿ Jul 15, 2012 07:37 |
|
HappyHippo posted:Writing a chess program I really wanted to use the unicode chess symbols as enum values, sadly* C# wouldn't allow it (although it will allow them in the comments). You may not be able to directly interact with the unicode symbols, but ToString() doesn't give a poo poo about it. var piece = Chess.Piece.BlackPawn; var piece = Enum.Parse(typeof(Chess.Piece), "♟"); gibbed fucked around with this message at 13:32 on May 11, 2013 |
# ¿ May 11, 2013 13:28 |
|
|
# ¿ Apr 25, 2024 07:20 |
|
poopgiggle posted:I don't think I can post the code but I recently reverse-engineered an encrypted file format where each byte is encrypted by switching the nibbles and XORing with a constant value.
|
# ¿ Sep 7, 2013 20:15 |