« first day (806 days earlier)      last day (4146 days later) » 

4:00 PM
does anyone know an alternative to setbase(2) (which doesn't actually work)?
 
Create a binary<T> type an implement operator<< so that it prints bits.
 
@StackedCrooked have you used goggles.sneakygcr.net bookmarklet?
 
@irrelephant I've used that.
 
@StackedCrooked On your SO profile?
 
user142019
Good morning.
 
4:05 PM
@irrelephant How do you mean? If I've painted on my profile page?
 
Have you looked at the painting on your profile page?
 
user142019
@sehe dat email address.
 
@irrelephant I feel honored :D
Did you do that?
 
Very sneakily
 
user142019
4:10 PM
LinkedIn is funny.
 
user142019
> What did you do on your job as Software Developer?
 
user142019
> I developed software.
 
hmm
how do I create a hash that includes the order of it's constituents?
I have N strings, and I need to hash each permutation to a separate value (within reason ofc, not perfect)
 
4:14 PM
@LuchianGrigore You should probably add notable references to that question. (Edited link)
 
@irrelephant I don't have any :(
 
4:33 PM
@StackedCrooked you know they made a movie out of that game
 
Isn't the game based on the Dune novel?
 
yea, whole shebang.. IT is old though, considerably.
but alas,so is star wars right
 
I should read more shit.
 
i should try to find a way to make the ctp install on xp
LOL
@LuchianGrigore why don't you try posting your question on some kind of forum dedicated to cars?
 
@LuchianGrigore I expect it to be a maximum at some speed
a) If you go really slow the impact will be small
b) If you go really fast the shock absorbers will prevent the wheel from going down at all + inertia
I disagree with the comment I guess, at least I want to append it depends
 
4:50 PM
personally, knowing a little about physics, i agree with @JohanLarsson , however the exact speeds that it would depend on are particular to the pot hole, and the car.
 
Ell
Okay, checked exceptions are definitely a bad idea.
 
different suspension set up's have a different return rates, and also age on the suspension ect.. all play a factor into the suspension travel.
 
Ell
Wtf am I supposed to do if Thread.sleep() throws? >.<
 
@johnathon Yeah, that is true, the effective diameter of the hole, the mass of the wheel, the stiffness of the spring and the characteristics of the damper
 
user142019
@Ell Switch to Erlang.
 
Ell
4:52 PM
@Zoidberg'-- Is there a jvm erlang? :P
 
user142019
@Ell There is Erjang.
 
@JohanLarsson mass plays little role in it actually, everything accelerates towards the center of the earth at a set acceleration rate of 9.8 meters per second squared. But the rate at which the springs overcome the resistance to movement that the shocks/struts have is a different story.
@JohanLarsson where mass DOES play a role , is resonance, when the suspension is in resonance, it'll produce massive vibration and such, good example of that is an early ford explorer going about 90... it'll vibrate it's self off the dang road
 
@johnathon But I expect some F = m*a going on between the spring and the wheel.
 
@JohanLarsson it's negligible for the purpose of your question
 
@johnathon I'm not sure. Say we strip all but the wheel and the spring. If the wheel weighs a ton it will not move very fast. But if the wheel weighs a couple of grams it will fly like a bullet?
 
4:58 PM
@JohanLarsson what your more concerned with is near instantaneous inertia, the return rate of a spring, and the dampening of a shock absorber, along with the friction on the moving parts of the suspension
@JohanLarsson one big thing your not really taking into consideration is the spinning of the wheel, the faster it spins the more resistance it has to a change in direction.
@JohanLarsson all in all, there are a ton of factors to take into consideration when trying to figure out an exact answer to your question
 
It was not my question :) maybe it is a better match for physics.SE?
 
yea, really would be if the poster expects a decent answer
IMHO though, going slower is the better , safer, option.
 
@johnathon I agree with this but this will be transient, I don't expect any harmonic
@johnathon yeah, that is probably the safest way
You almost have me pulling pencil and paper and starting failing at calculation this. All data should be available, springs, masses, damper. But it would likely be painful since it's been a while since doing differential equations :) And yes I would probably fail
 
@JohanLarsson if the car was not moving at all, and the engine was not moving, no other forces acting apon it, then looking at it in a transient manner would suffice , the problem is that when your rolling, the suspension is not in a state of transient movement, ALL the parts of the suspension are working together to keep the car stable
 
@johnathon I agree to some extent but I think it is a good approximation to regard it as stationary before hitting the hole.
 
5:07 PM
@JohanLarsson it is a good approximation, i do not disagree
@JohanLarsson wheres ThePhD when you need him LOL
 
Heyyyy :)
Parsing C++ with Python and clang
 
@johnathon I should be able to answer this, it is one of my regrets in life, studying and forgetting too much physics, should have picked AI when I was young
 
@JohanLarsson i never regretted physics, and with anything iv'e learned over the years i always find situations where revisiting those things is always a good idea. Keeps one on his toes so to speak, and gives you tools with which to look at things from different angles.
 
@DeadMG ty for the boost::variant<> sanity check earlier - turned out the bug was in my clone() method - it was inside a CRTP and for some reason (maybe because it was part of a lib?), the compiled without a downcast... ...once the downcast was in, everything worked fine.
 
@JohanLarsson All i can say though , is i wish to god one of the SO folks here worked for nissan :)) , i really need the source to thier AT controllers LOL
 
5:12 PM
@kfmfe04 noprob
fuck, wtb init lists
 
@DeadMG any good references on using d3d for 2d work in like, windows xp?
 
it seems that my program is a bit faster when using itoa rather than using stringstream (and char* instead of string)
:/
 
@johnathon You can still learn and AI in 80is or so was mostly Prolog I think
 
@Tuntuni what are you using to preform those measurements?
 
@johnathon codeblocks has that timer
@johnathon actually, i might be wrong, let me check again
also, is the only way to convert an integer to a binary string in c++ using bitmask? (setbase(2) isn't supported)
 
5:16 PM
@Tuntuni you should be using the windows preformance counters, like, QueryPreformanceCounter, and QueryPreformanceFrequencey
 
@johnathon I used filecrop.com/…
 
@Tuntuni what are you calling a binary string?
 
@johnathon i don't need accurate measurements, just a rough estimate
@johnathon well e.g. 4 would be "100"
there is setbase(10, 8 and 16)
2 isn't there :(
 
there is a way, i belive, it's just been eons sense iv'e done it
 
haha
well if you think of it again, please tell me :D
ah damn .. using bitset the string has leading 0s ..
and i need to check if a number is a palindrome
 
5:21 PM
damn
VS bugging out
 
@Tuntuni bitset.. then stream it to cout
 
damn find_first_not_of really comes useful
@johnathon yes :)
 
@Tuntuni a biniary palindrome?
 
@johnathon yes. the problem is to find the sum of all the numbers that are less than 1 million and are palindrome in both base 10 and base 2.
 
base 2 would be easier than base 10
problem is , are they talking big endian or little endian
scratch that, you dont need to worry about endian just yet
This an PE project?
 
5:28 PM
yeah isn't that how it is represented in memory rather than how it actually looks like?
yes
 
@Tuntuni yes, it is, And it's important when dealing with network traffic, and a few other instances, but for your purposes you dont need to worry about it.
 
@johnathon yeah :) i'm quite familiar with it. reverse engineering really gets you into that stuff ;)
 
@Tuntuni lol, i have a project for you, that tops PE anydaylol
 
@johnathon yes?
 
@Tuntuni reverse engineer a Yahoo Messenger login
 
5:33 PM
@johnathon well i never really did network reverse engineering, mostly reverse code engineering like patching programs, keygenning, etc.
you should check out crackmes.de :)
 
jesus christ ADL
how can you find a function in another namespace over the one right in this namespace here?
 
@Tuntuni other than a lot of network traffic, there's cryptography, and it'll help you learn quite a few other functions
 
oh, because I forgot the default arguments
 
@johnathon mhm. :) did you reverse it?
 
@Tuntuni yup, every new version they come out with i reverse it
 
5:36 PM
@johnathon wow nice :) is it a tedious process or what? also, what tools do you use to get the packets (i tried a few but they were sort of limited, idk ..)?
 
@Tuntuni tedious? depends on your viewpoint. Wireshark, and apimonitor (rhontab.com i think is the site)
 
@johnathon i used wireshark once but since i wasn't that interested anyway i gave up
 
@Tuntuni the login is 2 part, 1 part ssl, another part TCP
 
@johnathon hmm pretty cool i must say :) so what do you do once you reverse it
 
@Tuntuni use it for my own purposes.. .. Yahoo messenger does a lot more than just instant messaging LOL
 
5:39 PM
@johnathon oh? like? :D
872187
Process returned 0 (0x0) execution time : 5.934 s
Press any key to continue.
 
SMS, file sharing, ect ect
 
6 secs
hmm cool, i might try it
@johnathon and what about the MSN protocol?
 
@Tuntuni up untill recently yahoo could talk to msn , so there was no need
 
@johnathon ah
@johnathon so how advanced is the encryption, etc.? was it hard for you to figure it out the first time?
 
@Tuntuni it wasn't that hard. And still isen't that hard. I can tell you that the actual encryption is only 16 bytes in width (if you know anything bout encryption that'll give the algorithm away) and the rest is just a conversion back to a fairly standard binary portability for the net ie base64
 
5:44 PM
@johnathon 16 bytes.. hmm md5?
 
@Tuntuni you nailed it.
 
aw yeah :D
 
user142019
boo 3:
 
@Zoidberg'-- scared me there
 
user142019
No I didn't.
 
user142019
5:45 PM
You fool. Stop lying.
 
@Zoidberg'-- fine. hmph. :'(
 
user142019
:D
 
hmm PE no. 17
seems like an easy one
how many letters do numbers from 1 do 1000 (inclusive) have when written out as words
(not including spaces and hyphens)
 
heh, find a dictionary list of numbers from one to 1000 LOL
 
haha
i'll just hardcode it
a big switch
or something
or actually, that dictionary seems like a better idea
 
5:52 PM
fucking hell, man
Clang's error reporting is just so bad
 
Mmm, delicious clang.
this type_index stuff is Ballertude.
 
@DeadMG I vaguely remember you mentioning this before.
 
Gotta figure out how to unmangle VC++ names in code.
 
@ThePhD as im sure you know theres undname.exe, you could shell execute it from code
 
5:55 PM
@johnathon That's a little... slow.
 
ARGH
 
@ThePhD indeed, it's been a minute sense i've looked at VC's mangling, if i remember correctly its like @ and some number in front of the actual name , probably representing the number of parameters it takes.
 
LLVM Y U RANDOMLY DELETE SHIT
 
@ThePhD though i could be wrong.
 
@DeadMG Pat pat There, there. You'll straighten it out soon, don't worry.
Hooooly shit
I looked at Wine's __unDName function
Jesus christ, these file is gigaaantiiiic.
 
5:59 PM
@ThePhD might be why i suggested shell executing undname.exe lol
 
If the VC team built undname.exe,
why didn't they just include the function in the runtime or in a header file?
Doesn't make much sense not to include it.
 
i honestly cant say something like that is not there. I'd have to look at the vc sdk
intel's compiler is able to do windows binaries fine, so it's got to be shared somehow
@ThePhD might be of use
 
WHOA there's a whooole Debug tree fo functions!
Never even knew these existed, yo. :O
 
@ThePhD yw
 
@johnathon Taaank j0000.
 
6:10 PM
hmm
Clang decided that it no longer needs to have the appropriate preprocessor defines for MinGW suddenly.
 
@DeadMG your having the same troubles out of clang that im having out of a transmission computer
@DeadMG it'll decide it wants to read the revolution sensor on minute, and not the next.
@DeadMG really annoying let me tell ya.
 
00710 /// InitializePreprocessor - Initialize the preprocessor getting it and the
00711 /// environment ready to process a single file. This returns true on error.
00712 ///
00713 void
2
FUUUUU
 
Lol
 
tosses some catnip @ the cat
 
user142019
@DeadMG file a bug.
 
6:18 PM
I'm doing Euler problem #4, I could not figure out a better way than to convert the number to a string and check if it is a palindrome. What would be the right way?
 
user142019
@JohanLarsson I find the original revision offensive. User should be banned forever.
 
@Zoidberg'-- But he will if he does not adjust? I think it's ok to give new users some slack.
But he should probably not come to this room :)
 
user142019
> I'm just going to copy paste.
 
I call troll on that
 
user142019
6:22 PM
No, he should get the fuck out and not act like a lazy fuck.
 
@Zoidberg'-- which question
 
user142019
What an idiot.
 
6:27 PM
@Zoidberg'-- sounds like a guy i ran into on odesk.
 
@JohanLarsson The max size of a palindrome made from a pair of 3-digit numbers is 6 digits- that's just 10^3 of them. Then simply attempt to factor.
 
@DeadMG he was wanting to convert it to words... why .. is beyond me
 
@DeadMG ok, that is probably much nicer. Gonna code it up, ty.
 
ok, fuck this
if you want to include multiple headers from Wide, you'll have to write a C++ header that includes them
 
6:31 PM
Wide can include C++ headers?
 
why do you think I'm dealing with Clang?
ain't for mah healht
 
@StackedCrooked kinda lookes like youtube.com/watch?v=m3cI6Eqj_d0
 
@johnathon the most obvious explanation is that I suk. Could not think of a nicer way but at leat realized it was ugly
 
@johnathon Yeah :)
 
@StackedCrooked gotcha, i have not pulled a translation on it yet
 
6:33 PM
It's a plane crash.
 
right
now all I have to do is actually create the small Wide lexer/parser/analyzer, write a tad of glue code to Clang and IR generation, then I should be done.
 
user142019
Why do people spend 2000 euros on fireworks.
 
user142019
They're crazy.
 
@johnathon Look, demangled names!: class Furrovine::Collections::Dictionary<int,int,struct Furrovine::FurrovineHasher<int>,struct std::less_equal<int> >
 
@ThePhD congrats!
 
6:44 PM
uh
struct Furrovine::FurrovineHasher?
 
And I can get it with my special typeof operator: Type t = typeof( test );
@DeadMG Yes, because "Hasher" is too plain. :P
 
well, more like
why would you reimplement std::hash?
I know that the unordered containers do leave something to be desired
but there's nothing wrong with std::hash
 
user142019
I'm writing a video game in JavaScript.
 
I was doing something wrong and std::hash wasn't exporting in my DLL right. So I made my own templated class I could export.
@Zoidberg'-- 'Grats.
 
user142019
Thanks.
 
6:47 PM
9gag.com/gag/6204598 I somehow thought about @sbi
 
I do use std::hash for my string types and the FurrovineHasher defaults to using std::hash in the case of internal types, but I also needed it for a few other types that didn't have a std::hash implementation, like Furrovine::Type, Furrovine::Table, std::array, etc.
 
you can specialize std::hash for those
 
If I can spank std::hash into shape, I'll definitely blow up the thing I've got.
 
@BartekBanachewicz lmfao
 
6:49 PM
Gurlz?
 
Where?
 
Bros!
 
Before Ho's !
 
user142019
Hello litb.
 
Oh wait, I also remember why I got rid of std::hash. For some of the unsigned internal types, I implemented my own hash algo (FowlerNoVoll1a)
 
6:51 PM
@ThePhD you can use your own hashing algorithms with std::hash
 
I don't remember why at the moment, though...
@johnathon I don't think I'm allowed to if std::hash already has its own specialization though, right?
 
@ThePhD Right, you'd have to swap out the hasher on every container you use.
 
Yeah... that's a pain. Furrovine::FurrovineHasher it is. :D
 
@ThePhD no, you can give it your own hash if you so desire, just do a lil TMP and pass in your own hash for said type
which is probably what youv'e done
 
Could you please stop letting Zoidberg'-- out? Every time there is a flag, he comes to channel and bitches about it.
5
Thanks.
 
6:53 PM
You act like we can control Zoidberg.
At all.
Oh wait he's gone.
 
for real.
no he's not.
err... nvmnd
@Zoidberg'-- been poking at the natives i see?
 
user142019
@tereško Or just stop flagging. :^)
 

« first day (806 days earlier)      last day (4146 days later) »