« first day (1435 days earlier)      last day (3505 days later) » 

12:00 AM
Don't.
Best way I've found.
 
Ell
Well, I'm interoping with Scala
Which has them built into the language
 
@Ell Even though it's a singleton I think it's best to have two instances. So you have a backup.
 
Ell
Bingleton
Plus a third off site backup
Tringleton
 
The war against Singletons.
It's even harder than the war on drugs.
 
And their friends, multitons
I will kill them with fire.
 
12:06 AM
So I got the Netflix trial today. They seem to provide only 5 anime series: Fairy Tail, Hunter x Hunter, Knights of Sidonia and two crappy ones (one of which is mostly ok). I have to say they do have a knack for making mostly good choices..
Knights of Sidonia is one of my fav 2014 anime.
Hunter x Hunter is best anime ever.
And Fairy Tail is just great.
Good for them.
 
@Rapptz Your Sol binding again: Can I pass instances of an object to Lua?
 
yes
 
@Mysticial They removed the rep counter thing, now the icon is just green instead D:
 
You don't have an exmaple of that can you show me?
 
12:16 AM
is $20k a lot?
 
I use $ as shorthand
 
6
Q: Achievements indicator no longer showing number for rep change

Monica CellioIn the last hour or two I've gotten green notifications for rep changes, but they look like badge notifications because there's no number: I sometimes see this graphic appear for something less than a second and then be replaced (or overlaid?) by the number, but this stayed the same over time ...

 
Ell
For a salary?
No
 
@Rapptz How?
 
Ell
12:17 AM
For an amount to lose? Yes
 
@Cinch it should just work
 
@Mysticial I clicked on the thingie... damnit (I was only at 36 though T_T)
 
Yeah but do I use like new_userdata or ???
 
That... doesn't really answer anything?
I'm looking to pass objects I initialize in C++ to Lua
 
12:23 AM
never tested it myself
so not sure
assuming it has proper get/push then it should work
i.e. you'd have to register said object to lua via new_userdata or set_userdata
 
I did
But I want to pass an instance of the class to Lua
Not create it in Lua directly
 
lua.set("stuff", my_object); should work out of the box I believe though don't quote me on it
like I said, I haven't tested it
 
I'll try it NOW
 
@Rapptz quality code
@Rapptz not tested code is best code
 
Nice assumption
 
12:25 AM
well, if it hasn't been tested no errors have been found
 
@Rapptz my test suite while optimizing sorting: if (v_op != v_std) std::cout << "WTF!\n";
 
@Rapptz it works fine
 
mmk
 
@Rapptz though you should add that to the documentation
 
12:27 AM
I've been way too busy recently
proper docs is on my todo list
 
What else do you do?
 
user3010322
lua.set/get for userdata has worked since the beginning.
 
I can handle a sort of informal documentation if you so desire
 
atm I'm cracking a game
 
Which one?
 
12:28 AM
my little pony adventure online
 
wtf it's out?
 
A Googler I never heard of referred me. Anyone from here?
 
What is "Here?"
 
@R.MartinhoFernandes ?
 
12:29 AM
@R.MartinhoFernandes Nope.
 
OH WTF WTF IT'S OUT?!
 
@Cinch ¬there
 
user3010322
@Rapptz What's funny is that you can set something and it will still work even if you do the new_userdata afterwards. :D
 
I have almost everything working
 
user3010322
You can reference a metadata table that doesn't exist and it will be fine so long as you kick in the metadata table before you use it.
 
12:30 AM
I just am having unicode issues in C++
I'm used to being spoonfed in python
so yeah
 
MY EYES WTF DID THEY DO TO MAPLESTORY!
 
python spoonfeeds you
 
user3010322
Meh. If windows, MultiByteToWideString
 
user3010322
And WideCharToMultiByte
 
C++ feeds a spoon into your anus
 
12:31 AM
I'm receiving bytes
I thought just writing them out would work but apparently it doesn't
:v
 
@ThePhD unicode encoding conversion is not the issue
 
user3010322
What kind of bytes?
UTF8/16/32?
 
UTF-8 bytes
 
user3010322
Oh.
 
user3010322
Convert to UTF16 and pray std::wcout covers most of the BMP for the chinese/japanese/korean characters you see.
 
12:32 AM
handling unicode sanely with all kinds of functions (equality comparison, toupper/lower, indexing) is nasty
 
why would I convert the bytes to UTF-16 though?
 
user3010322
So std::wcout can print it.
 
I'm not printing it though
I'm writing it to a file
 
user3010322
Oh.
 
user3010322
... Dump them as is, view with not-shitty text edtor...?
 
12:33 AM
I did lol
 
user3010322
You can prefix BOM to help text editor.
 
I'm assuming it's a unicode issue, who knows, it might not be.
^ UTF-8 encoded file
 
user3010322
Encrypted?
 
@ThePhD wcout can only print characters from the wide execution character set, not UTF-16.
 
I'm pretty sure I handle the decompression already
 
user3010322
12:35 AM
That looks like its encrypted.
 
@Rapptz I'm fairly certain you don't
that does not look like an encoding issue
 
@Rapptz Is it supposed to have embedded nulls?
 
user3010322
There's even embedded nulls in there.
 
if your utf-8 code contains ascii and you're not doing anything special it should still show up as ascii
 
@R.MartinhoFernandes Korean text usually does I think.
At least, it did in MapleStory 1.
 
12:36 AM
@Rapptz Er, what.
Nulls are nulls in UTF-8.
 
Not sure then.
I've been triple checking everything and I'm kind of tired of it
i.e. burned out
 
Control characters are control characters too.
 
it's been 18 hours
 
There are a bunch of them in there.
 
it's not encoding
you're just doing something else wrong
 
user3010322
12:37 AM
Encryption and/or decompression.
 
It's either not UTF-8 at all or garbage.
 
user3010322
Is my first guesses.
 
thanks
I'll go ahead and check it out (again)
 
what is the input format?
 
user3010322
Usually though compressed data has like, zlib headers and shit.
 
12:37 AM
where do you get your data from?
 
python equivalent works fine
 
Ell
Maybe you're just reading a load of random memory
 
user3010322
Python equivalent?
 
Ell
Is it the expected length?
 
What exactly does [] do in delete[]?
 
user3010322
12:38 AM
Now you have me confused.
 
link python equivalent?
 
the first version of my unpacker was in Python
 
@Nooble Kills the crab
 
@Nooble it googles the question
 
I tried googling :C
 
12:38 AM
@Ell Everything's fine.
It's just when I write to the file
 
@Nooble well that's too bad then
 
Huh, last episode of Tokyo Ghoul was actually ..really good.
 
user3010322
@Rapptz Wait.
 
user3010322
Are you opening the file in text mode?
 
@nightcracker Too bad for who?
 
12:39 AM
no binary
 
user3010322
I can't think of what's wrong then.
 
@ThePhD Doesn't really matter
 
user3010322
Something's screwy on the C++ side.
 
@Rapptz can you link me the python code?
 
I have quadruple checked my encryption and decryption code
it's working 100% fine
 
user3010322
12:40 AM
Pat pat.
 
user3010322
Just take a break.
 
That garbage is deffo not UTF-8, because majority of it would likely be still readable
 
it's annoying me though
I don't know what I'm doing wrong lol
 
Ell
Sleep on it
 
user3010322
Sleep with it.
 
Ell
12:41 AM
Let your dream self fix it
 
Maybe you're writing the ciphertext instead of the decrypted buffer
 
@Rapptz Did you test it with some well-known inputs?
 
Or you have a wrong key
 
or maybe he should link code instead of us making random guesses
 
@R.MartinhoFernandes Yeah.
@nightcracker I can't. I'm not allowed to release it (sorry).
 
12:42 AM
@Rapptz ?
linking code != releasing
 
user3010322
if (0) { }
 
user3010322
QUALITY PRODUCTION CODE
 
if you don't license it there is nothing we're allowed to do with the code
 
@nightcracker I can't release the algorithm to decrypt it.
 
@nightcracker Pretty sure NDAs would disagree.
 
Ell
12:42 AM
@nightcracker that doesn't matter
 
which is what I would be showing you since it's all in the same file.
 
@Rapptz Im guessing it requires one of them fancy schmancy korean id things?
 
P sure your decryption is shit otherwise it wouldn't produce garbage
 
Again, 150 pigs died in a stable fire. Belgian stables really suck.
 
In cryptography, Kerckhoffs's principle (also called Kerckhoffs's desiderata, Kerckhoffs's assumption, axiom, or law) was stated by Auguste Kerckhoffs in the 19th century: A cryptosystem should be secure even if everything about the system, except the key, is public knowledge. Kerckhoffs's principle was reformulated (or perhaps independently formulated) by Claude Shannon as "the enemy knows the system", i.e., "one ought to design systems under the assumption that the enemy will immediately gain full familiarity with them". In that form, it is called Shannon's maxim. In contrast to "security through...
 
Ell
12:43 AM
I didn't know pigs even lived in stables
 
Anyway should get to sleep before I wreck my schedule again
 
@R.MartinhoFernandes fair enough
 
user3010322
Wanna shoot the people who wrote this code, I do.
 
the files are to decrypt game data lol
 
@Rapptz that's not encryption, that's obfuscation
 
user3010322
12:44 AM
I mean, they don't even believe in nesting.
 
user3010322
if (something) {
if (somethingelse) {
if (watindentation) {
 
user3010322
WHO NEEDS TO INDENT
 
user3010322
NOT THESE GUYS
 
Ell
@night what's the difference?
 
@ThePhD I thought at first you means if(!x) return; etc
but not indenting is just terrible
 
12:45 AM
@nightcracker No, it's decryption. I have the key to decrypt it.
 
@Ell encryption is withholding information to protect other information
 
@Ell This is what it looks like. (In case you are interested.)
 
@Ell obfuscation is giving all information hoping the other person is dumb enough to not be able to deobfuscate it
 
Seeing the picture triggers memories of the smell :)
 
@Rapptz then, if your en/decryption is strong enough giving us all the code except the key should not matter by kerckhoff's principle
 
Ell
12:46 AM
@stackedcrooked aww poor piggies :(
Their life must be terrible
 
@Rapptz if you're doing what I think you're doing (doing some obfuscation by encrypting using a statically shipped key) then it's obfuscation, not encryption
 
Ell
Free range is the only moral way
 
user3010322
/* The size of `void *', as computed by sizeof. */
#define SIZEOF_VOID_P 8
 
No, their life is pretty much ok. Mostly due to the fact that they lack the inability to realize that they are food.
 
user3010322
Oh, maybe you should just use, I dunno, SIZEOF?!
 
12:47 AM
They get much food everyday and that keeps them happy.
 
Ell
@nightcracker he has a key. How can it be obfuscation?
 
They must think humans are benevolent creatures that provide everyone with plenty of food.
 
I don't know, I stopped caring already
 
@Ell as soon as you ship the key it's pure obfuscation because you have given all information
 
It's been a long day.
 
Ell
12:48 AM
@stackedcrooked I'm not sure I believe that. Pigs are quite intelligent aren't they? More so than dogs
 
I'm not shipping the key
 
Ell
Being locked up unable to move is cruel
 
@Rapptz then how does the end user decrypt the game data?
 
they don't
because I'm not supposed to release it
there is no end user but myself
 
so you're sending blobs of encrypted data for no reason at all?
 
user3010322
12:49 AM
<_>
 
might as well send random data
 
people ask me for the decrypted data
 
Ell
I don't think the killing of them is immorral but I think the keeping of them like that is
 
and I give it to them
are you new to the concept?
 
user3010322
Wait.
 
user3010322
12:50 AM
#if sizeof(void*) == 4
 
I didn't think it was too far-fetched or anything.
 
user3010322
^^ THIS IS NOT ALLOWED IN THE PREPROCESSOR?!
 
@ThePhD Doesn't work.
 
I thought you were creating a drm system
you're reverse engineering one?
 
user3010322
Whyyyyyyyyyyyyyyyyyyyyy.
 
12:50 AM
yes
 
user3010322
Why Whyhwyhwyhwyhwyhwyhyhyyyyyyyyyyy
 
so you have the key?
 
@Ell If they realized their fate they would have stress symptoms. (And I'm not an expert on this, but it seems they are pretty chill during their daily life.)
 
yup
 
then you're trying to deobfuscate
 
12:50 AM
why the fuck does it matter
 
user3010322
Wow.
 
sigh
 
user3010322
How much of a fucking pedant do you have to be, nightcracker?
 
I don't care anymore
whatever
 
@ThePhD 4
 
Ell
12:51 AM
@nightcracker if what you're saying is correct, encryption doesn't exist
 
@ThePhD pi
 
But I go for 10.
 
Ell
When I encrypt my own files I actually obfuscate them because I know the key
When I want to see them I just deobfuscate them
 
@Ell no, encryption is with an unknown key to some attacker
in this case Rapptz is the attacker
but he knows the key
 
Ell
But let's say I have a file I want to encrypt with a password of my choosing
By your definition this is impossible
 
12:52 AM
@Ell How fascinating.
 
@Ell then the password is the key, which the attacker doesn't know
 
@nightcracker Yes, and he's failing to write the code that uses the key to decrypt the cipher.
 
@R.MartinhoFernandes he said that code worked fine
 
in theory
 
His motives are not relevant.
 
12:53 AM
in practice it's obviously not working for some unknown reason in C++
 
I use base64 for encryption.
 
@nightcracker Only in Python and in his head in C++.
 
It's convenient and you don't need password.
 
> In cryptography, encryption is the process of encoding messages or information in such a way that only authorized parties can read it.
 
Ell
@nightcracker my point is its impossible for me to voluntarily encrypt something according to your definition
 
12:54 AM
yes
the files are encrypted
 
@nightcracker Youve been on SO long enough, how often have you seen someone say "my code is correct but the output is wrong"?
 
I discovered the key
 
if you send the key with your data there are no "authorized parties"
@Borgleader 33.1
 
lmao
 
@StackedCrooked I use dual-ROT13.
 
12:54 AM
they didn't give the key
you can't just download it
 
Even applied it here.
 
@nightcracker unauthorized parties are great until the police shows up
 
@nightcracker He stole the key. He owns the key.
It's irrelevant.
He's writing the code that decrypts.
The code that decrypts is buggy.
That's all.
 
user3010322
(In C++)
 
user3010322
Python does some magic that apparently makes it all work out.
 
12:55 AM
It's buggy regardless of his motives. It's code to decrypt regardless of his motives.
 
his motives, yes
I didn't realize the key was closed
 
Wtf happened to DeadMG? he wasnt there the last 2-3 times i tried to ping him oh he got a job
 
@nightcracker THE KEY DOES NOT MATTER.
 
and that he escrowed it
 
The code is buggy, key or not.
 
12:56 AM
@R.MartinhoFernandes if the system is designed to have no key it's no encryption
 
@JerryCoffin If I'm lazy I just use lcase.
 
Ell
Here's a thing. If your definition is correct the only way to get encrypted data is for someone else to obfuscate it :P
 
@R.MartinhoFernandes in this case this was not the case, but I didn't know that from the start
 
However, that's really bad since it's lossy.
 
@Ell that is correct
 
12:56 AM
@Borgleader Did you remember to ping him as @Puppy instead of @DeadMG?
 
@JerryCoffin Yes
 
@Ell from the attacker's perspective
 
Ell
Meh I still think your definition is wrong
Im 100% sure that I can encrypt my own files
 
@nightcracker 1) it has a key; 2) it does not matter who possesses it; 3) there is an algorithm to decrypt it; 4) he failed to implement it; 5) his failure to implement it does not change the nature of the algorithm; 6) his possession or not of the key does not matter either: he can be testing the algorithm with well-known data with his own key.
 
@Ell of course you can, because from the perspective of an attacker you have created data he can not access
 
user3010322
12:58 AM
....
 
user3010322
A million new errors...
 
user3010322
After fixing all the old ones, new ones came...
 
Ell
@nightcracker how can I if I know the key?
 
user3010322
I can't conquer fontconfig.... :(
 
user3010322
I was so close...
 
Ell
12:59 AM
If I know the key its obfuscation right?
 
@Ell for you yes, not for a 3rd party attacker
@Ell if you were the sole person in the universe then no it would not be possible to create encrypted files
 
@Ell The point he's trying to make is that with encryption, the only part you need to keep secret is the key, not the algorithm.
 

« first day (1435 days earlier)      last day (3505 days later) »