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

1:00 AM
@R.MartinhoFernandes I agree now, I made different assumptions before they were explained (in that there was a statically known key)
 
Ell
@jerry its a very round about way of making that point :p
 
@Borgleader The inbox/rep icons look fine on A51.
 
But yes, of course you could encrypt files even if you were the only person in the universe. There just wouldn't be any point to doing so.
 
It's just broken on the main sites.
 
@JerryCoffin not in any security model I know of, since you require an attacker that does not have knowledge of the key
 
1:01 AM
@Ell It's one of those things people who are into crypto take for granted to the point that for most it's like trying to explain that water is wet.
 
@nightcracker Make software to attack it :P
 
user3010322
"Engineering Excellence"
 
user3010322
Fuck you, Behdad Estabod
 
@nightcracker Encryption doesn't really require an attacker--it just doesn't make any sense without it.
 
user3010322
And your bullshit articles about the software font stack
 
user3010322
1:02 AM
That's apparently so good it works in lots of places
 
Ell
@nightcracker isn't there always a theoretical attacker?
 
user3010322
Your software is shit, the people who maintain it are shit, and I sincerely hope you rot in a special kind of hell.
 
@Ell if there is never a practical entity to fill the role of a theoretical attacker, then what's the point?
 
you guys didn't have to argue for 30 minutes about how much I suck
 
@Rapptz this isn't about how you suck lol
 
1:03 AM
I've already been lamenting it for the past 8 hours
 
@Rapptz this is about semantics of what is encryption or not
 
Ell
@nightcracker there doesn't have to be a point. As soon as you get into points it gets philosophical...
 
I'd argue that if you were the sole entity in the universe you'd never come up with the concept of "encryption" to begin with
since you have no concept of an "attacker"
 
Your imagination is lacking.
 
possibly
 
Ell
1:04 AM
@thephd give up and use pango :P
 
user3010322
Never.
 
@nightcracker There is no real point--and if the universe had only one occupant, chances are cryptography would never have been invented because it would be pointless--but not much more (or less) pointless than an argument based on the notion of a universe with only one occupant.
 
Funnily, lacking imagination is exactly the assumption you made about that sole person.
 
user3010322
I'll write my own damn fontcofig.
2
 
Ell
Use pango until you need more features?
 
user3010322
1:05 AM
I'll query my own damn fonts.
 
@R.MartinhoFernandes Can the person lacking imagination imagine a person with more imagination?
 
@ThePhD famous last words
 
@nightcracker The universe is a figment of its own imagination, so it's already happened.
 
@Ell In short, the point I'm trying to make is that encryption only exists if you introduce the notion of an attacker. Without an attacker that doesn't have knowledge of the key all you have done is transformed information from one format into another, AKA obfuscation.
 
Ell
@nightcracker I understand your argument. I just feel that its not a useful point
 
1:08 AM
@nightcracker Unless you destroy the key and become the attacker :P
 
Ell
When are we ever talking about encryption when there is no attacker?
 
user3010322
@R.MartinhoFernandes Sounds like something you would do. :P
 
@R.MartinhoFernandes that's entirely fair, if it were possible to destroy the key (which depends on mostly philosophical arguments)
 
1:09 AM
@Rapptz Can I join?
 
There are many reasons why Akame ga Kill is a good anime. And, in my opinion, the main reason is Akame.
 
@ThePhD It actually happens pretty regularly (quite a bit of cryptanalysis I've done has been decrypting things for people who encrypted something, then lost the key they used).
 
@StackedCrooked too much boob :P
 
@StackedCrooked I'm like 5 episodes behind because Doki is slow. :(
 
Ell
Just the right amount of boob
 
1:10 AM
@Borgleader :( how can there be too much boob
 
@Borgleader It's just a good angle.
 
Ell
Ive watched one anime before
 
@Borgleader, that made me follow the link ;)
 
Ell
It was Umisho, about the swim school
 
Too much boob doesn't make sense. It's like saying too much happiness.
 
Ell
Nah there is definitely such thing as too much boob
5
 
@Borgleader you forgot exception b3
b3: no boobs.
 
@Borgleader No way.
 
casts from unsigned char* to char* are valid right?
(and vice versa I guess)
 
@Rapptz yeah
 
Ell
1:12 AM
Think so
 
grasping at straws
I got nothing
 
@Ell This one? Haven't seen it myself.
 
Ell
Yeah. I just watched it for the boobs, I was young(ish)
Early highschool for me
 
There's better stuff out there :)
 
Ell
I wish my eyes weren't so prone to infections
I think its lack of sleep. But since I got one last year I've been getting them extremely frequently
 
1:16 AM
Hey, No Game No Life is currently the highest rated ecchi anime on MAL.
Followed by Kill la Kill and Nisemonogatari.
 
Ell
I also have a box full of ecchi badges
 
user3010322
@JerryCoffin You recommended EnumFontFamiliesEx a while ago; I've had it working for some time, but I've found a "problem" with it won't tell me the source file name of the font; rather, it only gives me a LOGFONT. I can GetFontData out of it and then perhaps use FT_New_Memory_Face to work with it, but I was hoping for a more consistent interface.
 
user3010322
Most of my searches have yielded you can't really backtrace the "source" of the LOGFONT to its file. Do you know of anything different?
 
Ell
That I bought off a friend during our schools enterprise week where we start a fake business
 
@Ell dafuq is that
 
Ell
1:20 AM
Is what? :)
I'm mobile
 
"ecchi badges"
I also don't know what it means.
 
Ell
Oh I mean physical badges
Little circular ones
With ecchi pictures on them
Just random ecchi style pictures
 
Where did you get them?
 
Ell
My friend made them
 
user3010322
Mmm....
 
Ell
1:22 AM
By googling for ecchi and printing them and using a badge press :P
 
user3010322
C:/Windows/Fonts is the place where all installed Windows fonts go.
 
user3010322
So, I just need to enumerate that directory to pull fonts.
 
@ThePhD Such insight.
 
user3010322
Then, I can also let the user specify any local fonts they like.
 
user3010322
I don't know of a Windows dist that lets you keep fonts in any other directory.
 
Ell
1:23 AM
Anyhow its early/late
I'm gonna get some kip
Night all
 
user3010322
I can then do Ranking.
 
user3010322
My ranking will be based on: Font Name, Font Weight, Font Style, Character Set, Desired Size
 
user3010322
That's 5 categories... can anyone think of any other necessary categories?
 
user3010322
What would you query a font for?
 
user3010322
Font Stretch...
 
user3010322
1:26 AM
That's the other one.
 
user3010322
But that's not a file trait
 
user3010322
or an actual font designed trait
 
user3010322
that's a GDI+ specific thing.
 
user3010322
... Wait, no, it is an actual font thing
 
user3010322
Condensed vs. Extended vs. all that bullshit
 
user3010322
1:26 AM
Okay, that 6 categories
 
user3010322
If I return a 64-bit integer,
 
meh
 
user3010322
I can encode the values from low bits to high bits
 
I give up
it's been a long day
 
on love?
 
user3010322
1:27 AM
The more important pieces of the "Desire" ranking will be put higher up
 
on everything
 
Don't give up rapptz.
 
user3010322
The lesser pieces will be placed on the bottom end
 
I'm just going to play video games or something
 
user3010322
I can assign 10 bits per category.
 
1:27 AM
@ThePhD you got some innuendo there
@ThePhD seems like you are trying to space-optimize something which isn't performance-critical.
 
user image
4
 
user3010322
File Name Match (4) <--- High Bits
Font Name Similarity (10)
Character Set (10)
Desired Size (10)
Font Style (10)
Font Weight (10)
Font Stretch (10) <--- Low Bits
=========================
int64_t -> allows for quick sorting, "better" matches (name) match can be ascending-sorted higher up on the scale.
 
just dropping this one here before going to bed
 
user3010322
@StackedCrooked It's going to be critical. For each font, I need to crack it open with freetype, then I need to read: character set information, natively supported weights/stretches/styles/sizes, then I need to compute distance from the desired values to the NUMEROUS actual values per each font.
 
user3010322
There can be a hundred fonts on a system, and constantly opening and closing a bunch is not going to be pretty at load time.
 
1:33 AM
Maybe you are right.
However,...
computers are fast you know.
 
user3010322
Plus, I need the ability to sort those and then return quickly.
 
user3010322
10 bits, however, may be too much.
 
@ThePhD file open/close times reading one 64 bit integer each vs reading 1024 bytes each is neglegible
 
am not gonna debate your choice.
 
user3010322
1:35 AM
Perhaps 5, and leaving some extra space for later if there's some other configuration parameters I haven't glimpsed at yet.
 
user3010322
@nightcracker The whole font file gets parsed by Freetype. I don't control that.
 
user3010322
And I'm not reading 1 64-bit integer.
 
user3010322
I'm constructing that from the crapload of font data.
 
whatever I don't know what you're trying to do
 
user3010322
5 bits gives me [0,31] as values, which should be enough space for discriminating.
 
1:36 AM
I was just following up on what stacked crooked said
 
user3010322
At 7 categories and 5 bits, I can use 35 bits and leave 29 untouched
 
@ThePhD should be enough for everyone
 
How much speed are you gaining? Do you know the numbers?
 
user3010322
I don't know what speed I'm gaining. This is iteration 0.
 
And does it matter.
don't start bit fiddling at iteration 0.
 
1:38 AM
unless the entire point of iteration 0 is to be more space efficient than iteration -1, which is a project you're forking
 
user3010322
The point of iteration 0 is to compile and work.
 
user3010322
On VC++.
 
user3010322
And not break my back with unistd.h
 
user3010322
Or poorly written port code.
 
user3010322
1:39 AM
However, the integer stuff I'm talking about is an implementation detail.
 
user3010322
It's how I would rank one FontDescription from another.
 
user3010322
Nobody would see it.
 
You know tuple has operator<, right?
This makes ranking really easy.
 
user3010322
My only goals were to ensure doing a std::sort( matches.begin(), matches.end() ); would be as quick as possible.
 
Find a solution that is "as quick as possible" often means a lifetime project.
:P
 
user3010322
1:42 AM
True.
 
user3010322
However, I think boiling the comparisons down to a single int64_t rather than 7 int32_t's can be universally seen as an improvement, and implemented the first go-around.
 
First make it right. Then make it fast. Or something like that.
 
@StackedCrooked Make it work, make it pretty, then make it fast.
 
Is this about females.
Erm, never mind.
 
Wow...
We have children here.
 
1:45 AM
No we dont
 
Yes we do.
 
Its been bugging me all day
 
We have child-like subjects.
 
Was I right to downvote this ?
 
I am living proof.
 
1:46 AM
Even if we did, nothing that was said in the last 20 min or so was >PG-13
 
@Borgleader I wouldn't have downvoted it because I rarely downvote and because technically what she's saying is correct.
 
True
 
@Borgleader Sexist! :P It's not necessarily wrong though.
 
@StackedCrooked But its not an answer.
 
Oops, I didn't read the question.
 
1:47 AM
Good morning.
 
@MarkGarcia Good afternoon.
 
@MarkGarcia You are up really early?
3:47 am here
 
@Borgleader Hm. That's true.
 
Stacked
where do you live?
It's 6:48 P.M. here
 
@Borgleader Treat your downvote as a half-downvote, the half mine. I don't usually downvote borderline wrong stuff, but this warrants a half-downvote for me.
 
1:50 AM
It's about 8:52 MTC
 
@Borgleader Actually that is a pretty good question considering the asker is a noob.
 
03:50
 
@StackedCrooked And you are up really late. 9:50 AM here.
 
I'll probably go to sleep around 13:00.
Or 6 AM.
It varies.
 
@StackedCrooked Yeah, I upvoted the question. Its one of the better ones I've seen today.
 
1:52 AM
I'm pretty sure there's a dupe for it. But too lazy.
 
Laziness is good. See Haskell for proof.
 
I got to the chapter on the DLR in C# in Depth, total mindfuck
 
DLR?
 
Dynamic Language Runtime
 
Haven't used C# since 2004.
Back then people talked about C# as "It's like Java, but better."
Pretty certain that still holds true.
 
1:55 AM
If anything its truer
 
Generally speaking, if it's not Java, it's probably better.
#languagerage
bool flag = verytrue;
 
@Borgleader But the "it's like Java" part got less true. So did we achieve a net gain in trueness or not?
 
#define verytrue 2
 
Is it possible to make a simple function that checks if a number is a floating point number and acts based on it?
 
yes
 
1:58 AM
@Chantola are you familiar with the notion of "function overloading"?
 
or
 
@OMGtechy Ugh no.
 
did anyone here ever contribute something to libstdc++ and went through the entire copyright assignment thing?
 
I was dealing with templates a moment ago...leave me be :P
 
@StackedCrooked I'm familiar with loops. Lol. That's about as far as I got so far.
 
1:59 AM
2 functions, same name, different arguments -> overloading
 
void foo(float bar);
void foo(int bar);
 
@Chantola Well, come back after you mastered overload resolution.
Hehehe.
 
@StackedCrooked you evil sob
 
This is so confusing :(
 
Just to check... the solutions being tossed up here really have to do with a type, not a value.... is that what you mean by "check to see if a number is a floating point number"?
For example, the number "12" can be assigned to a double exactly... these solutions would count it as a floating point number
 
2:02 AM
ohh ffs this is the 2nd lagspike just before the mob does his move that one shots
 
> In order to compile a function call, the compiler must first perform name lookup, which, for functions, may involve argument-dependent lookup, and for function templates may be followed by template argument deduction. If these steps produce more than one candidate function, then overload resolution is performed to select the function that will actually be called.
 
The answer's still yes regardless :)
 
@HWalters Basically I'm working on a solution to Project Euler Problem 3 and the only solution I have come up with is making a loop dividing for the prime factor and ignoring the answer if it has .(something) after it,
I'm starting to wonder If it might be a better idea to continue learning coding and go back to Project Euler at a later date..
 
Then you're thinking of the wrong tool for the problem
This is number theory... number theorists don't deal with decimals, or even fractions... they deal with remainders
 
@Chantola both are important
 
2:03 AM
You want to look into the modulus operator
 
Modulo...
I totally forgot.
No wonder my Project Euler Program 2 took me forever...
I was hand coding formulas
 
You need to level-up man.
 
when I could of just used modulo.
Regardless, how would you check in C++ if the inputed double variable is an int or a floating-point number?
I would be fascinated to know.
 
modulo sounds cool. kinda like dynamo.
 
Oh my,
I already have come up with a good solution using modulo
 
user3010322
2:06 AM
There's std::floor
 
user3010322
And std::truncate
 
as simple as just checking if y (the modulo of x) is greater than 0.
 
user3010322
Wat.
 
user3010322
... Nevermind. You have fun with that.
 
you mean !=
 
2:07 AM
"The modulo of x"
that doesn't sound right.
 
Let's say I have double x,y,z; and I set them to 0. i want to find the prime factors for
600851475143, so what I can do is divide by prime numbers.
 
why doubles, factors will give integral results
 
^
 
cause when I divided it, it will have a double value.
 
int / int gives int result
try it
 
2:10 AM
I don't need one though..
I want to check if it is a double
 
static_cast<double>
 
and if it is a double, I can ignore it.
 
huh
 
you're essentially exposing your implementation in the interface
 
@Chantola what do you mean "if it is a double"
 
2:11 AM
I think I might have to go back to the 2nd grade and relearn prime factorization
I feel like I'm doing something wrong now.
@Borgleader I mean if it has a value like 6.9947473, instead of 6
 
:18996612     // Algorithm for Euler 3
    primes = find_primes from 0 to sqrt(X)
    for each prime
        while X divisible by prime then
            X /= prime
            result = max(result, prime)
        end if
        if X < 2 then return prime
    end for
 
Using doubles is a bad tool for this. You can't tell the difference between a whole number and an almost whole number.
 
God damn it.
 
@Chantola float/double comparisons are tricky.
 
I don't want the formula.
I want to find it myself.
 
2:12 AM
Well then don't use it.
 
I won't.
I'm thinking of a solution to use.
 
It's only fucking problem 3 man.
It's supposed to be a breeze.
 
I'm brand new to C++...
and im like <14 and >12
 
See, this is why we need Vic 20's
 
#excuse
 
2:14 AM
@Chantola The moment you manage to phrase what you want properly, you will have the solution.
 
@R.MartinhoFernandes Im just going to get a pen-and-paper and develop some psuedocode.
 
why on earth
was stackedcrooked's message flagged
 
Just think about what you mean with "check if it is a double".
 
I flagged it
 
why?
 
2:15 AM
cause i thought it would be deleted
 
@Chantola Please keep flags for serious stuff, like decapitation videos.
 
I didn't want to see the answer.
 
@ThePhD Not really. Why do you want to know?
 
Today SO told me I can't counterflag my own message.
 
@Chantola or just don't look at it?
 
2:17 AM
I totally spoiled Project Euler.
 
I agree.
 
you don't call the police because someone in the bus is reading a newspaper containing soccer results do you?
 
@nightcracker no because I'm usually at the soccer match live myself.
 
you're avoiding the issue :P
 
No im just finding a creative solution to the problem.
which
is the same thing
:P
 
2:19 AM
@Chantola that insinuates my question is the problem rather than your behaviour
 
I get your point.
Won't happen again.;
 
I recommend you to leave this room. It would solve most of your distractions.
 
True.
Goodbye guys.
 
why is this room still called lounge<c++> by the way
 
O
I'll be back when I finish Problem 3
 
2:20 AM
@ThePhD So basically you're trying to re-create the Windows font mapper? Why?
 
@nightcracker @righfold's vagina was rejected
 
we should rename it to lounge<here_be_dragons>
 
I think we did that a long time ago.
Or that was just the room topic.
 
honestly, loungec++ makes people think this room is related to C++
 
Aug 20 '13 at 0:28, by sehe
room topic changed to Lounge<Dragon>: Here be dragons! [c++] [c++11] [c++-faq] [no-doubt] [no-questions]
Aug 19 '13 at 21:41, by Tony The Lion
room topic changed to Lounge<Dragon>: Here be dragons! [c++] [c++11] [c++-faq] [no-questions]
 
2:21 AM
while the only relationship with C++ is that everyone here is an asshole talking to other assholes who may or may not program C++ :P
guess I'm not original :(
 
@nightcracker ...which it is, to the degree that we discourage discussion of most other languages even more than discussion of C++.
 
I'm a better asshole than you guys.
 
@StackedCrooked you're asshole is significant
(intentional misspelling)
when was the last time the lounge got a new "member" so to speak
as in someone who came here and actually sticks around not help vampiring
 
No idea... sure it was before my time
 
@nightcracker Had a newbie who hung out for at least a couple of days around the end of last week or beginning of this week, IIRC.
 
2:25 AM
@JerryCoffin couple of days doesn't really count? I mean a regular
 
@nightcracker I guess Alex M is one of the more recent guys
 
Palsgraf v. Long Island Railroad Co., 248 N.Y. 339, 162 N.E. 99 (N.Y. 1928), was a decision by the New York Court of Appeals (the highest state court in New York) written by Chief Judge Benjamin Cardozo, a leading figure in the development of American common law and later a Supreme Court justice. Palsgraf is a landmark in tort law that helped establish the concept of proximate cause, a limitation of negligence with respect to scope of liability. == Facts == The events in this case took place at the East New York Long Island Rail Road station on Atlantic Avenue. A passenger carrying a package, while...
Interesting.
 
is this the rat thing linked on reddit?
 
@nightcracker Hard to say he won't be back again. You've also been known to disappear for a while too, but show back up later...
 
@JerryCoffin this is true
 
2:26 AM
@nightcracker Yep.
 
@JerryCoffin but this has been true for a long time :P (I'm an "oldish" active member with periods of inactiveness?)
I don't really recall when I joined the lounge
(I'm terrible with time)
 
@nightcracker chat.SO is terrible with time. Can't even find my first message.
 
@nightcracker Right--we all tend to go through them. We'll have to see whether he comes back or not. Any way you go at it, it takes a while to become a "regular".
@StackedCrooked Back then, he wasn't. Obviously (at least sort of) the same actual person, but he didn't work for Microsoft yet at the time.
 
you know what SO needs? a better "subscription filter"
I don't mind answering questions with some of my time
I just don't wanna fucking wade through the crap
 
2:33 AM
they need a learning agent that will learn what shit questions are and block them from being posted
 
@nightcracker People have been asking for such for a long time, but management seems actively opposed.
 
if you wanna be truly evil
you "shadowban" users that create such questions
and put them together with other such users in a 2nd site
shitoverflow
 
"Your questions is likely to be bad..."
"Oh my... this is awful"
"Oh just stop for the love of all that is holy"
xD
 
@nightcracker welcome to every high-scored meta question from the last 4 months
 
@nightcracker yeah, oversubscription can be a major performance bottleneck
 
2:34 AM
just to get an example
-1
Q: for loop string comparator will only iterate once

josh.karlii'm new to python. this code snippet is taking the SMART info from a hard drive and sorting it into a object.property structure that describes the hard drive. i'm storing all the lines of the SMART into in dev_info_lines and then using a for loop to go through each line to pick out the relevant i...

was on page 1
I just don't even wanna fucking see this question on my screen
 
@nightcracker well there is fartoverflow
 
Maybe his belly problems we caused by too much farting.
 
Or not enough!
 
He was excreting his innards.
It would explain the pain.
 
2:38 AM
are his eyes steel?
 
Yes that would also explain the pain, but not in his belly.
 
@Mikhail Not his eyes no
 
Oh, tha's Naruto.
That's one anime I don't feel motivated to start watching.
 
If you skip all the fillers its probably a lot better
 
I don't mind fillers that much.
Bad original content is much worse :P
I'm not judging though.
 
2:40 AM
lol, some of the fillers are just awful though
 
Since I haven't seen the series.
Btw, next week will be the final HxH episode.
Probably gonna take at least 3 years before anime can be resumed.
 
@StackedCrooked Good thing im 1 year late :P
 
I just wrote an incremental backup script that uses expect scripts to back up 1tb of data through git . I hope somebody is proud of me
 

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