« first day (489 days earlier)      last day (4445 days later) » 

7:21 AM
what is it that makes it dubstep?
@BenVoigt static_cast<int**>( ppVoid ) shouldn't work, should it? similar with reference to pointer. but let me check with compiler
right, e.g. static_cast<S*&>( pVoid ) errs with Visual C++ 10.0
so the code is Not The Real Code.
which might explain the baffling introduction of bool* in one of the answers
anyway if it is modern code then it looks like premature optimization, that the author attempted to avoid so called "template bloat" (umpteen machine code versions) by just wrapping one common implementation. That was common in the 90's. Now compilers are smarter and memory is more cheap.
also, the not-a-keyword opeator signals loudly that this is Not The Real Code
 
8:20 AM
@AlfPSteinbach Doesn't really sound like dubstep to me, but apparently it is. I guess it's an evolving genre.
 
sbi
> 1080M km/h. It's not just a good idea, it's the law. (Except for neutrinos, the trouble-makers, of course.)
 
@Xeo Poor Pubby is right! Not sure if I should delete it though.
 
@sbi What are you talking about?
 
sbi
@StackedCrooked 1080M km/h == 300k km/sec. Ring a bell?
 
8:39 AM
1080M?
i don't get it
 
sbi
1MB==1000kB => 1M km/h == 100k km/h => 1080M km/h == 300k km/s
 
I think a zero must have disappeared there
 
@AlfPSteinbach Nope
 
^ It's the 1080M :-)
 
sbi
@AlfPSteinbach According to calc.exe, 300000*60*60=1080000000, and 1080000000/1000/1000=1080.
 
8:47 AM
1MB==1000kB => 1M km/h == 1000k km/h => 1080M km/h == 300k km/s?
 
sbi
@AlfPSteinbach Yep.
 
@kfmfe04 consider using the starboard :) It's on the right
Port and starboard are nautical terms which refer to the left and right sides, respectively, of a ship or aircraft as perceived by a person on board facing the bow (front). At night, the port side of a vessel is indicated with a red navigation light and the starboard side with a green one. The starboard side of most naval vessels the world over is designated the "senior" side. The officers' gangway or sea ladder is shipped on this side and this side of the quarterdeck is reserved for the captain. The flag or pennant of the ship's captain or senior officer in command is generally hoist ...
 
Shit, I just did a search and replace on my entire home dir. lol
 
@Pubby The power of sed
 
sbi
9:02 AM
@Pubby Ctrl+Z
 
If only sed had undo! Good thing is that it only seemed to change some temp files.
 
@sbi zfs rollback -r tank/home@201202171001
@Pubby FWIW it should create backups, IIRC (look for file.txt~ or similar)
 
@sehe Don't see anything like that. I guess I should do an actual backup just to be safe for next time.
 
sbi
@Pubby Everybody thinks about backups after the disaster.
 
Yeah. Funny thing is that I actually backed-up my working dir.
 
9:10 AM
@Pubby No!
 
sbi
Nobody wants backup. It's restore what everybody wants.
 
@Pubby Don't do an actual backup just to be safe.
Do an actual backup all the f_cking time
 
sbi
@sehe Oh, c'mon, you hypocrite! This is the C++ room. We're mostly Europeans here. If we mean "fucking", we spell it FUCKING!
 
@sehe Heh, good point.
 
@sbi I can always restore my disks contents to original in seconds: hdparm --security-erase /dev/sda
 
sbi
9:13 AM
@sehe Yeah, but what if you do that in error? Can you go back to the future, too?
 
@sbi I thought bolding it as well was a bit to much. Something had to give :)
@sbi Using really advanced forensics. By the way, do you ask your backup software if it can undo a backup restore?
 
@sehe: This is the Internet. "Too much" doesn't exist here.
 
@sbi As a general rule, I don't let backup tools touch my disks. I don't restore, I retreive an archive, and then manually recover items/trees. That way, indeed I can undo things since I use snaphotting filesystems
 
sbi
@sehe No. How is "fucking" not a fucking swear word just because you replace one letter by an underline? Everybody knows you mean "fucking", and everybody reads it that way, and everybody knows you just used that fucking swear word. The only reason to misspell it is to mislead automatic filters. Forget about those in this room. If anyone is hindered by word filters, this room will blow them up.
 
@Insilico Oh, the internet just hasn't got enough of 'too much'
@sbi Hobby h_rse? Let me (mis)spell my words in creative words and you do the same :)
 
sbi
9:16 AM
@sehe Which backup software are you talking about? :-/
18
A: Is the language "BrainF_ck" offensive?

sbiAccording to the web site of the German news magazine Der Spiegel, a German schnapps manufacturer just convinced the German federal patent court to allow them to register the trademark "Ficken" ("fuck"), which the patent office had denied them earlier. The court found that, while using the term a...

 
@sbi rsync, rsnapshot and ZFS send/receive. Mainly
@sbi You, that hobby horse
 
sbi
@sehe You were asking about my backup software. :(
 
@sbi FWIW: I do agree. Most of that discussionalist thing is hypocrite. However, I reserve the right to act on my _mpulses when I unde_score some things in the spur of the moment.
@sbi Oh that backup software. Your backup software is probably brain ware, in Buddhist style.
 
sbi
@sehe And I will tolerate that, as long as it isn't used to bow to Merkin Internet Mullahs.
 
9:35 AM
I had a cool idea, but it turned out to be wrong
3
 
@DeadMG that is often the case
 
heh
too true
 
9:58 AM
@DeadMG I bet it would fit in the margin, then
 
lol
 
mawning
 
man
that MathJax stuff they use on Mathematics.Stackexchange has all sorts of crazy shit symbols, but I can't find a simple root symbol?
 
14 hours ago, by Xeo
Anyways, since Boost.MultiArray wouldn't compile with VS and since I had no way to check why or how to solve it, I started to develop on my Debian vbox with Clang, and am now learning about makefiles.
Now that ^ is a splendid example of portability: "You can just take your code and go compile it somewhere else, Ok?" - Portable code in action
@DeadMG This worked for me... ? ` $c^2 = \sqrt (a^2 + b^2)$`
 
yeah
it's not in the list
also, they made the genius idea of making the list of commands an image, so you can't search the page
 
10:06 AM
@DeadMG oh that's brillant
 
looks like tex to me. Is it a different thing?
 
@jalf not really
although I am of the firm opinion that it sucks
having lists like that is fine when you have a compiler to tell you what the options are, and not so fine when you're trying to find what you want amongst two hundred pictures
 
@DeadMG yes, but you say that about virtually everything :)
 
lol
 
but yeah, the image thing sounds lame
 
10:08 AM
@DeadMG It looks to me, that it is in fact not an image; it just get's converted at the DOM level (using javascript) to something not easily greppable.
 
what's the difference?
you push ctrl+f, you enter a search term, and it doesn't work
 
@DeadMG: look at this page, e.g. http://www.mathjax.org/demos/tex-samples/
You won't see the `\sqrt` there, until you view Source (Ctrl-F3 or Ctrl-U in most browsers) and press F3 to 'find again':
<div class="math-header">An Identity of Ramanujan</div>

\[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} =
1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
{1+\frac{e^{-8\pi}} {1+\ldots} } } } \]
 
and also, the browser won't highlight e.g. individual lins
 
@DeadMG but at least knowing it's text means you can just google it rather than relying on that page
 
@DeadMG It's always like that with tools like this. I do like the fact that lilypond e.g. allows pfds to have hyperlinks to the exact source location that corresponds to any grob (graphics object) in the postscript output. Pretty nice.
 
10:11 AM
@jalf Tried Google first, and it wasn't tremendously helpful
 
@DeadMG: just tried google mathjax +"\sqrt" and found relevant hits
 
yeah, so you can find it if you already know it?
awesum
 
@DeadMG that should have read 'tex', not 'text'. :)
 
@DeadMG are you getting paid to play the skeptic? You're doing a great job
 
Googling for "tex square root" gave me this as the first result, which seems to do the trick nicely :)
 
10:16 AM
@sehe I'm merely pointing out that, well, you had no point, as your logic was circular.
@jalf The problem is that it's a Tex command, as opposed to a MathJax command, and there's little indication that the two are in any way related. And indeed, I'm still not entirely sure why the tex command is working fine.
and the MathJax help is really not terrifically helpful if it neglects to mention all the useful commands for, you know, Math
oh, I guess it does say "TeX" on the front
must have skipped that part of the reference page
@sehe Actually, I'd love to get paid to play the skeptic. Know anyone who needs one? :P
 
@DeadMG as far as I can figure out, mathjax is just a browser/javascript implementation of tex
but yeah, looks like math.se doesn't do a terribly good job of explaining that
Anyway, my point was just that once you know it's TeX, it's fairly easy to google for the commands. Not that it's something I'd expect everyone to know
 
fair enough
so
do I A) get up and walk to mcdonalds or B) stick something in the microwave?
 
10:31 AM
yes
 
lol
damn
and the answer I got on mathematics.stackexchange was the ever helpful "Solve the equations"
maybe if I could do that, I wouldn't be asking the question :(
 
10:53 AM
Morning
@DeadMG Neither - make an omelette
 
@DeadMG McDonalds sounds nice.
I guess it's just me wanting to eat something right now.
 
too late, i put something in the microwave
 
Lately I've started to appreciate canned food. It's always ready to eat and it never expires.
 
the strange thing I have is that canned food isn't supposed to be as nice as regular cooked food
but in my experience, that's often not true
 
sbi
> Grammar is the difference between knowing your shit and knowing you're shit. Get it right. — The Dark Lord
12
 
11:04 AM
@DeadMG So is my experience.
 
sbi
@DeadMG It's a question of what you are used to. Canned food is often overly sweetened and salted, commonly both. That's something you can get used to. That doesn't, however, mean it's good for you, or that this tastes good if you're used to more "normal" levels of sweetening and salting. And don't get me started on artificial colors, aromas, and preservatives...
 
I also discovered a way of opening them without an opener. With a steel knife make two long cuts so that you have a cross-shape. Then fold open the corners with the knife.
 
@sbi True true.
damn
I actually need like, a pen and paper, to solve the problem I am currently working on
this is a new experience and I don't think I have a single scrap of writing paper in this place
 
He, I have the same problem. I usually write on old envelopes.
 
well I do have a crock of spam mail
that could work
 
11:10 AM
This reminds me that I should buy some supplies next time.
 
the problem for me is that I usually do something like
1. Realize I need X from shop.
2. Go to shop and purchase cookies.
3. Walk home from shop eating cookies feeling satisfied.
4. Realize I forgot to purchase X. Goto 1.
 
Yep. Same here.
 
11:25 AM
@DeadMG Haha great self control
@DeadMG How come I get this all the time? I have about 3 notebooks on my desk and 20 new ballpoint pens
 
lol
 
I'm thinking about building my own alarm clock
I think it's a good idea
 
ok
I solved my problem and came up with a thoroughly impossible result
now I'm minorly irritated
or maybe it's not at all impossible and I just proved something slightly different to what I had in mind
 
Normally, those problems are mathematical things, like how do I derive a perfect graph interval from an upper and lower bound and a number of squares
Awwhhh yeah that was a good algortithm
 
lol
 
11:34 AM
What's your problem then?
 
well, I may have told you that I got a book on quantum mechanics for Christmas
and in the process of reading it, I discovered the Planck distance, which thoroughly interested me
 
You did
Whipping out my one now
 
and I decided to show mathematically what the shape of the universe would be like if every distance had to be an integer, i.e., an integral multiple of the Planck distance
 
for a one-particle universe, you have no problem, because there's no distances to anywhere, effectively
and for a (number of dimensions + 1) universe, you have no problem, because you can form a uniform shape where all particles are exactly n units apart from each other
 
sbi
11:37 AM
@DeadMG A one-particle universe would be rather boring, though, don't you think? For the particle, I mean.
 
e.g. equilateral triangle, tetrahedron, etc
the problem is about having a number of particles which exceeds the number of dimensions + 1
because you'd have to prove, effectively, that there are positions in space which are integer distances away from all existing particles
which means solving the intersection of that number of circles, whose radii are integers of varying bounds, with origins which form a uniform shape
and if it's impossible, then that would be interesting, and if it's possible, then that would also be interesting
 
Somewhere I lost you.
 
How were you going to test it?
 
I think there's a stack exchange for science stuff if you want to get feedback.
 
@KianMayne Well, you know that if your equations call for 5/0 or something like that, then what you're proposing is impossible
 
11:42 AM
@DeadMG I meant where you going for the equation
 
well
you can substitute the equations for the three circles in to prove that all potential occurrences must be on a straight line
the problem is proving that that straight line intersects them at any point where all three radii are integers
something which I am currently working on
so now I have some quadratic equations, the results of all of which, for some y, must be an integral value
 
@DeadMG 5/0 is OK. 0/0 is more troublesome. very indeterminate.
 
lol
ok
so a fourth particle can exist in such a two-dimensional universe if, and only if, there exists some y where y * root(3), y*y, and y * 3 * root(3)... is integral
well, logically, y = root(3), I guess
root(3) * root(3) = 3 = y * y = y * root(3)
and y * 3 * root(3) = 9
 
11:58 AM
@DeadMG Yeah that makes sense
 
@DeadMG any root(x) or -root(x) where x*3 is a perfect square number would fit that equation, so for example root(27) fits those restrictions also
 
yeah
just realized I made a slight mistake
those equations yield the square of the thing that has to be integral
which explains why my results weren't going to pair up the instant I drew them, because the circle which was going to have 9 radius was obviously going to be so massive as to completely contain the two with 3 radius
also, those conditions merely ensured a correct result, they weren't the actual values of the radius (squared)
 
I'm thinking of buying the TI-Nspire
 
holy shiggamagic, that's expensive
just get a second-hand iPhone or Android and program it yourself
 
But it's cool
and you can use it in exams
(With the memory cleared)
 
12:06 PM
You gotta love people getting grammar right but jargon wrong:
0
Q: How to mount swap partition on /mnt in ec2 instance

Medone of our ec2 instances is running out of RAM and there no way to upgrade the RAM without changing the instance type... So I need to upgrade the size of the swap for the moment. My question is: is it possible to mount a swap partition on the "ephemeral storage" /mnt ? Thank you!

 
My school is lending my a TI-84 Plus SE basically till I leave and I've really enjoyed having it
 
TI is ancient tech
 
fuck
 
@Pubby Check my link, they've updated
 
I think my proof was totally wrong from the start, and I only didn't notice because I made a stupid mistake which made it produce an OK-looking result
 
12:09 PM
 
@DeadMG Ok. Do you have a suggested recipient for that action?
 
@sehe Unfortunately, no.
 
@DeadMG Ok, I'll ask my colleagues, but allow me to pass if they resist :)
 
lol
 
afk
 
12:12 PM
ok, fuck this
it's time for the 1GB array of memory to come out
 
12:28 PM
hi guys!:)
 
hi
damn, I should have just taken a maths degree
 
@DeadMG but then you'd think fortran and matlab are awesome
 
lol
ok
note to self: do not attempt to solve the problem with positions which are impossible according to your own hypothesis
thank God my ISP sends me a ton of spam
 
12:58 PM
2
Q: How to check a double's bit pattern is 0x0 in a C++11 constexpr?

Marc Mutz - mmutzI want to check that a given double/float variable has the actual bit pattern 0x0. Don't ask why, it's used in a function in Qt (qIsNull()) that I'd like to be constexpr. The original code used a union: union { double d; int64_t i; } u; u.d = d; return u.i == 0; This doesn't work as a constex...

isn't the 0 bit representation of a type implementation defined, and relying on it seems a bit silly?
 
dunno
I think that the FP representation is not explicitly defined
 
Can't remember if C++11 changes it, but in 03 it's implementation-defined
 
how can I access my network card, try to work with x.25 protocol in my native x86 ?
 
@user1131997 without an OS?
 
sbi
The folks over at scifi.stackexchange.com work on really interesting problems:
23
Q: Where does human waste go when going to the toilet in the Star Trek universe?

Eight Days of MalaiseEven if the society in Star Trek has evolved into a cashless state, that still leaves the matter of stools and other bodily excretions (not sweat or blood) to deal with. Where does that all faecal matter and urine go? Having not seen any depiction of toilets or water closets in any of the film...

I guess it's important to know what happens to Spock's poop. :)
 
1:13 PM
lol
 
I guess chucking it out the window isn't very forward thinking
 
considering the vastness of space, it doesn't actually seem that bad of an idea
 
@awoodland yeah
 
just shove it into the nearest sun every once in a while
 
@awoodland OS is able to obtain network card, so in theory a man could get data from network card like OS does
 
1:17 PM
@user1131997 any modern OS worth using won't let you sneak around it like that
you either need to have a bare bones machine, or use the interfaces provided by the OS for it
 
@awoodland if there is no OS on PC, what will you worth?
@awoodland pc is able to run code without OS, I think if OS in some way could get info from network card, you can do it too :)
@awoodland I know about security rings/mdoes, but I have asked question about programming without OS
 
typically you write a program in the context of an OS, so it is controlled by the OS and that decides what you can and cannot do.
You can access a network card in the same way as an OS if your program runs in the same context (i.e. is natively booted) but then you have to do everything yourself, including writing drivers for that network card, managing memory, managing initialization of static variables, ...
Long story short: use the interface the OS provides you, often it gives you more than enough freedom
 
@user1131997 the OS runs at ring0 on x86 - your code runs at ring3. The OS has the power to veto your actions
 
@awoodland if you have no OS?
 
so if you want to avoid the OS and talk to the NIC directly then you'll need to write code and arange for the BIOS, via the MBR to start executing your code
 
1:26 PM
@awoodland that's what I'm asking about
 
@user1131997 why would you want to do that?
 
it's ugly and tedious and so nobody but Virtualisers, operating systems, bootloaders and viruses does it
 
@KillianDS just because I want :)
 
the answer then is it depends on the NIC :)
you probably map some of its registers into memory
and then write to that
but how you do that depends on what the device expects you to do and what bus it connects over
(if it happened to be USB you could write an entirely userspace, unprivileged driver using something like libusb)
 
@user1131997 okay then, also (just wondering): what do you want with x.25, as far as I know it's as good as dead?
 
1:30 PM
@KillianDS somewhere dead, somewhere not, where it continue support
 
if you really want to do it for fun I'd pick something like GNU HURD and write a driver for that - more useful and you don't have to do a whole load of the tedious low-level stuff
 
1:50 PM
What's the best way to shrink a parameter pack's right side? ie 1,2,3 -> 1,2
 
2:01 PM
Nvm, found a relevant question: stackoverflow.com/questions/6632533/…
 
Ell
hey does anyone currently have mingw installed?
if so, can you check if libgcc_s_dw2-1.dll is somewhere?
 
2:17 PM
mingw is evil
 
Ell
why? o.O
 
@daknøk huh
 
cygwin is evil
 
Ell
anyway, does anyone know where I can get libgcc_s_dw2-1.dll? its not in my fresh tdm installation :S
 
A Dutch ISP snail-mailed email addresses and passwords to their customers. -_-
PLAIN TEXT NOO!!! D:
 
2:36 PM
hehe my current ISP mailed them to me encrypted with the PGP key I gave them at signup IIRC
 
But this means that they store them as plain text in their database.
They should not do that.
 
@daknøk true. Sadly, they're not alone in this
 
Think I'm gonna switch to another ISP.
One that is decent.
 
submit them to plaintextoffenders.com
 
Good idea, but I haven't got a mail. I don't use email from my ISP anyway, they are evil.
And if you do that you're screwed to death when you switch ISP.
 
2:42 PM
that's why most people use gmail or something. Or host their own
are you seriously telling me you don't have an email address at all?
 
I mean that they didn't send me a letter with my password. :P
 
Yay I finally finished my checkers game!
 
Of course I have an email address. I've got about four email addresses.
@LearningC pics or it didn't happen
 
Anyone wana test it for me?
@daknøk Sure where do you want me to post it?
 
@LearningC imgur
 
2:45 PM
@daknøk no it doesn't mean they have it in plain text - they can print the letter and then hash the password, not storing it long term unhashed
 
I'm convinced that they store them in plain text. I don't trust that company.
@LearningC nice
 
@awoodland how is that any better?
 
@daknøk do they support CHAP? If they do then they're provably using plain text (or just ignoring the password entirely!)
 
@daknøk thank you. Took 2 weeks but I did it =)
 
2:47 PM
if they put a password in plain text on a physical piece of paper, then it is stored in plain text, whether or not it also exists in plain text in their databases
paper is a storage medium too
 
@jalf true, but it's much harder to leak out an HTTP port :)
 
@awoodland It's sent with snail-mail
And not everyone knows how to access a database, but everyone working at that ISP knows how to read a piece of paper
which makes it pretty easy to leak
 
Hey cool if you Google "rainbow table" the third result shows Jeff Atwood's avatar.
 
it's fourth for me
google's personalised results are so confusing sometimes - I can never tell if something is seen as generally awesome or just relevant for me
 
Oh it's because he has got Google+, I guess.
Are GPUs good at real-time ray tracing?
 
2:59 PM
define "good"
they're designed for rasterization rather than raytracing, so that's what they do best.
 

« first day (489 days earlier)      last day (4445 days later) »