« first day (353 days earlier)      last day (4600 days later) » 

2:06 PM
The range of a thrown projectile (ugh, an engine block projectile, scary) is v^2 * sin2θ/g. Let's assume an angle of 45º, which gives us maximum range for a certain initial velocity. So, we have 30m ~= 14 * v^2, thus v^2 ~= 2.14 m^2/s^2. So, such a beast would have initial kinetic energy ~= 107 J. I don't know how to work how the loudness from this...
I'm bored, in case no one can tell.
 
@RMartinhoFernandes What the hell is that?
 
Loudness calculations will probably involve some kind of loudness coefficient of the materials involved.
 
@RMartinhoFernandes Gonna need a fudge factor to convert part of the energy to noise I'm afraid, then figure out the level of energy in dB or something like that no?
@RMartinhoFernandes I think geometry is much more important than material. But what do I know.
 
Hmm, yeah, that's probably important too.
 
Case in point, bells :)
 
2:10 PM
I think we can ignore reverbs and such effects here. It's a factory floor.
 
sbi
I think @Xeo has a point in that an FAQ entry on the most vexing parse would be good to have. However, he seems reluctant to create one. Anyone in the mood for doing it?
 
ha ha lol cool
 
Looking at some stuff about acoustics I don't think there's a straightforward way to go from energy to sound level :/
 
@sbi Ain't there an existing good one?
 
sbi
@RMartinhoFernandes You of all users here asking me that?
 
2:12 PM
Well, I'm busy trying to figure out a rough measure of the loudness of an engine block falling after being thrown across 30 meters.
Injured robots may be involved.
> Cave Johnson here. I see no problem with this solution. Science isn't about why, it's about why not. You ask: why is so much of our science dangerous? I say: why not marry safe science if you love it so much.
Oh, and I'm ignoring air resistance. That bitch is always hard to get right.
It would require higher initial speed, but would also add some energy loss to the picture...
Well, I think I'm going with "It was very loud dB."
 
sbi
@RMartinhoFernandes stackoverflow.com/…. @Fred made this an FAQ a while ago. The chosen answer is not very good, though.
 
@RMartinhoFernandes This checks out with the story, must be correct then.
 
@RMartinhoFernandes To compute this, you'd need to know a lot about what it was hitting. Hitting (for example) a sheet of metal, that can turn a little energy into a loud noise. A lot more energy hitting the ground won't produce nearly as much noise.
 
@JerryCoffin It was hitting a robot.
9 mins ago, by R. Martinho Fernandes
Injured robots may be involved.
 
@RMartinhoFernandes Which tells us next to nothing -- what matters are things like material, thickness, surface area, etc. The skin of a robot is probably a thin sheet of metal, but who knows what's behind it to damp vibration?
 
2:25 PM
You're trying to trick me into giving away our weaknesses. It won't work.
2
 
your weakness is that you suck!
ahem
 
2:39 PM
what is the difference between a construct function? I guess that a construct doesn't return a value is it
 
> Prior to C++11, and as a standard programming idiom, temporaries are often assigned to variables to make the code cleaner.
This is bollocks, right?
2
Q: Proper named temporaries and rvalue-reference/move

edA-qa mort-ora-yPrior to C++11, and as a standard programming idiom, temporaries are often assigned to variables to make the code cleaner. For small types a copy is typically made, and for larger types perhaps a reference, such as: int a = int_func(); T const & obj = obj_func(); some_func( a, obj ); Now, ...

 
anyone?
oh..wait
 
@RMartinhoFernandes Just see the comments on that :)
 
@RMartinhoFernandes Donkey.
 
Oh someone pulled the "easier to debug card". When, oh when will we have debuggers that don't force you to change your precious code to make the damn debugger useful?
 
2:47 PM
When the debugger is intimately tied to the compiler in this case I suppose.
 
I don't see how it's easier to debug, actually
you could just break on the call and step in
if you wanted to know what was in the temporary
 
@LucDanton And aren't debuggers already somewhat tied to compilers?
 
introducing more potentially buggy code in order to make the debugger work for some potentially trivial code... smart!
 
@RMartinhoFernandes Don't think so, gdb should work with any executable format + any debugging format it supports. ELF + dwarf or whatever is in use right now isn't just the realm of GCC.
Well for some definition of 'somewhat' what you said is still accurate.
So I should have said 'When the debugger is intimatelierly tied to the compiler' I guess.
 
Hehe, it's easy to be right all the time when you use weasel words.
Which makes no sense, since I never heard a weasel talk.
 
2:55 PM
Speaking of debugging, I'm still stumped by a rebellious comma operator.
 
Operating commas is union work. He's likely on strike because you let the shovel operator work the comma, and you pay by hour.
 
talking about debuggers, I was just reading how to create your own simple debugger in Python
kinda interesting
 
Lemme guess: import debugger?
 
import pdb
 
@RMartinhoFernandes bit more then just that
 
3:05 PM
You can play with sys.set_trace, but why bother if the debugger is already there.
 
Oh, I thought modern Python was all just import statements.
(Mis)using floats for money:
 
hello
is there some kind of guideline of when i should choose recursion over loops and vice versa?
 
When recursion is a natural fit, pick recursion.
 
what makes it a natural fir though? im writing a generalized linked list, and traverse it with loops, but looking back on it i think it would be more readable and understandable with recursion, is that a natural fit?
 
That's why it's a guideline :)
 
at what point does performance outweigh readability
sorry if this is redundant, my professor scared us about overuse of recursion :/
 
3:33 PM
Hah, I do recursion in an exception handling function. If the stack will blow up then it's not worth making sure it doesn't blow up!
 
Well, some people find recursion less readable. IME, those who find recursion more readable are a minority.
And to be honest, even in Haskell I hide recursion away when I can.
 
okay, thank you
 
I don't get it, 3d acceleration is horrendous on my desktop but works fine on the laptop. Both with Catalyst under Linux (yeah...).
 
ATI and Linux...
Hmm. I wonder where the problem lies.
 
@RMartinhoFernandes While I don't have an excuse for my laptop, I don't regret Eyefinity on my desktop one bit.
See, I don't have an excuse for the laptop but that's where it works best.
On the other hand, maybe Eyefinity is too blame. Too lazy to unplug stuff to check.
 
3:47 PM
Hey everybody
 
@StephenGranet Avoiding recursion for performance reasons is mostly obsolete. "call" and "return" instructions were slow on many older processors, but between branch prediction, cache and (in many cases) a small on-chip stack of return addresses, many methods for avoiding recursion end up slower than the simple, obvious recursive solution.
The primary reason to avoid recursion is if you might recurse too deeply and blow the stack.
 
@JerryCoffin Let's not forget the cases where the compiler can optimize the recursion away.
 
@EtiennedeMartel Good point, although the most obvious of those is tail recursion, which is usually just as easy (and often just as clear) to represent as iteration.
 
Any clue why std::stringstream stream; int i = 42; stream << i; int j; stream >> j; would fail? The stream is good before insertion, good after, but bad after extraction (and j remains to the actual sentinel value I have in my test).
 
How widely deployed is TCO among C++ compilers?
 
3:52 PM
Also stream.str() is "42".
 
@JerryCoffin Except when doing TMP, where iteration is... impossible?
 
37
Q: Which, if any, C++ compilers do tail-recursion optimization?

Magnus HoffIt seems to me that it would work perfectly well to do tail-recursion optimization in both C and C++, yet while debugging I never seem to see a frame stack that indicates this optimization. That is kind of good, because the stack tells me how deep the recursion is. However, the optimization would...

 
@LucDanton Maybe it's trying to start reading from the end of the stream instead of the beginning? Just for fun, I'd try adding a seekg(0) to see if that fixes the problem.
 
@JerryCoffin Good point!
 
@RMartinhoFernandes True -- for TMP, recursion is basically the only option.
 
3:55 PM
Still fails. Ah well.
 
@JerryCoffin What's TMP?
 
I'm upgrading gdb and if it still fails at reading my debug symbols then that's it for today.
 
@EtiennedeMartel Template Meta Programming.
 
@JerryCoffin Ah. Oh.
I should have known that, dammit.
 
constexpr too now.
And TCO is specially important for that since constexpr functions can also run at runtime.
 
3:57 PM
@LucDanton Sounds like a library bug to me. I just did a quick test:
#include <sstream>
#include <iostream>


int main() {
std::stringstream stream;
int i = 42;
stream << i;
int j;
stream >> j;
std::cout << j;
return 0;
}
and it printed out 42, exactly as expected.
 
Yeah it worked before, but I changed my GCC configuration a bit and now that.
 
@EtiennedeMartel Perhaps. Then again, perhaps not. When I'm actually looking at (real) TMP code, I frequently wish I'd never even heard of it.
 
Let the cool kids play.
 
Sometimes I can't help but think that TMP is little more than a neat proof of concept.
 
@EtiennedeMartel I have a hard time applying "neat" to TMP. Honestly, it can really be useful, but it sure gets ugly in a hurry.
 
4:03 PM
@EtiennedeMartel How do you think std::get for std::tuple works :) ?
Also std::tuple_cat and various others.
 
@LucDanton Haven't got the time to try the new C++11 features yet.
 
boost::get for boost::tuple then.
:P
 
@RMartinhoFernandes Ha, I knew somebody would mention Boost.
 
Welp, looking at the stream it appears to be completely fubar'd.
_M_in_beg = 0x8948f8458b48108b <Address 0x8948f8458b48108b out of bounds>,
_M_in_cur = 0x89485590c3c90850 <Address 0x89485590c3c90850 out of bounds>,
_M_in_end = 0x894818ec834853e5 <Address 0x894818ec834853e5 out of bounds>,
_M_out_beg = 0x8b48e0758948e87d <Address 0x8b48e0758948e87d out of bounds>,
_M_out_cur = 0xbb49e8c78948e045 <Address 0xbb49e8c78948e045 out of bounds>,
_M_out_end = 0x8948e8558b48fffd <Address 0x8948e8558b48fffd out of bounds>,
 
That doesn't look good
 
4:06 PM
@EtiennedeMartel Boost Phoenix: the strongest available argument about TMP -- but nobody's quite figured out whether it's an argument for or against!
 
@JerryCoffin Ah, the life story of TMP.
 
@LucDanton Hmm...that does look pretty ugly. Did you, perhaps, update the compiler and not the library (or vice versa)?
 
@JerryCoffin Boost is TMP. And as such, it causes your code to suddenly take ages to build.
 
How can it ever be an argument against? Since when does C++ care if some feature falls into the wrong hands?
 
@RMartinhoFernandes Good point.
 
4:08 PM
@EtiennedeMartel Not all of Boost. Some parts of Boost are just straightforward chunks of pre-written code. Other parts, however, are a whole different story.
 
Since when does C++ care at all?
 
hey thanks jerry, really clear explanation
 
@StephenGranet Hmm...what explanation? At least for the last few minutes I don't recall explaining much of anything.
 
If I got a buck for every time I saw someone get bitten in the ass by the C++ compilation model, I would be rich right now.
 
@JerryCoffin When to pick recursion.
19 mins ago, by Jerry Coffin
@StephenGranet Avoiding recursion for performance reasons is mostly obsolete. "call" and "return" instructions were slow on many older processors, but between branch prediction, cache and (in many cases) a small on-chip stack of return addresses, many methods for avoiding recursion end up slower than the simple, obvious recursive solution.
 
4:09 PM
the recursion one, it was a while ago, but i just looked a the chat again
 
Yeah, the chat here can get busy at times.
 
@StephenGranet Oh, okay. You can't ask me to remember something I did like, 20 whole minutes ago. Only my wife can make such insane demands as that.
 
The most common topics seems to be "why Java sucks", "why C++ sucks", and "sex" (whenever Tony's around).
 
@JerryCoffin Apparently it goes into that state after the extraction attempt, nothing suspicious before that. Silly debugger didn't break at the right spot. I guess that's why they call it the failbit?
 
4:10 PM
@jerr
@jerryCoffin is there a way to determine if im going to blow the stack? just test it out?
wont it change on each machine how big my stack is
 
C++ is a lot about crossing your fingers.
 
Make it really big. Stacks are not insanely big (a few megs, perhaps?). You can allocate a huge array on the stack to speed things up.
 
Welp, better redo that install then.
 
@StephenGranet Mostly you need to know the algorithm -- logarithmic depth is pretty safe. Most others (e.g., linear) are asking for trouble.
 
ah okay, will probably learn that in later classes i suppose
 
4:14 PM
@JerryCoffin Thank God that binary trees have a logarithmic depth.
 
@EtiennedeMartel Not quite accurate.
Balanced binary trees do have logarithmic depth.
 
It's been a while since my data structures course.
 
so since linked listed are linear, i shouldn't use recursive with them?
recursion *
 
@StephenGranet I know of one (and only one) book that ever covered this subject well. Algorithms + Data Structures = Programs (by Niklaus Wirth) had a section specifically devoted to: "When Not to Use Recursion" (§3.2, page 127). Most others have a bit of vague hand-waving at best. Many just show their background: the CS-oriented ones treat recursion as the be-all and end-all of control structures. The SE-oriented ones treat it as a tool of the devil to be avoided whenever possible.
 
@StephenGranet If you're trying to traverse a sequence, use a loop.
 
4:16 PM
Hmm, seems like this whole "named r-value references are lvalues" business will be a future source of confusion.
 
@StephenGranet Generally, no.
 
well it works both ways, and this project is small enough where it wont matter, but im just trying to get a feeling for the general guidelines for recursion
 
Anyway, gotta go, see y'all!
 
@RMartinhoFernandes "future"? I think "ongoing" is probably more accurate, since it seems to cause confusion already.
 
thanks so much jerry
 
4:17 PM
@JerryCoffin Or that.
 
@EtiennedeMartel Later.
@StephenGranet Surely.
 
Linked lists are indeed recursive data structures, but somehow it feels unnatural to recurse over them in a non-functional language.
(For a certain extreme definition of "functional", before someone comes claiming C++ is functional)
 
Wouldn't a Nobel prize of cooking help make the world a better place? A lot of people would devote much more energy to advancing cooking science, wouldn't they?
 
@JerryCoffin It's a pity the i/I m/M notation isn't used more. It's perfectly clear that a named m-value reference is a im-value :) Not confusing at all, I think.
 
A random thought that occurred to me while I was considering what it would take for someone to invent edible bread that doesn't go stale.
 
4:22 PM
Er...
 
@RMartinhoFernandes I agree. I find the i/I m/M notation perfectly clear, but can never quite keep lvalue/rvalue/xvalue/glvalue straight.
 
@RMartinhoFernandes Bread is serious business.
I live in an uncivilized part of the world where I have to walk more than 5 minutes to find a bakery.
 
@RMartinhoFernandes i think the programmers have probably done their best to comply with management's wishes. thus, it's a management issue. i think the quality of code tells you about management.
 
@LucDanton Walking is nice!
 
@LucDanton I dunno. I can't remember who said it, but somebody once said something to the effect that it was easy for forgive Nobel for inventing dynamite, but not for the harm done by the Nobel prizes. :-)
 
4:25 PM
It burns off any excess calories you get from bread intake.
@JerryCoffin Oh, those things do harm?
 
@RMartinhoFernandes I don't know, I usually go grocery shopping with a friend. Gets too boring otherwise. But I can't find anybody to regularly buy bread with.
 
While I find walking alone quite enjoyable, I can understand that point of view.
 
@LucDanton you can re-heat bread once. either in oven or simply by toasting slices.
 
@RMartinhoFernandes The person who said that seemed to think so. I'm not sure how much harm it's caused, but I have to agree that at times their choices strike me as questionable (at best).
 
what have they done now?
 
4:28 PM
Sadly I don't have an oven (but I do like toast!).
 
is it thorbjørn jagland again?
@JerryCoffin that little book by Niklaus Wirth was a favorite of mine. i don't think it is available anymore. thatnks for reminding me
 
@AlfPSteinbach Oh, nothing in particular recently (that I know of). I spent a few hours looking over its history once, though, and came away rather unimpressed. OTOH, I'll admit it's not nearly as bad as, say, The Academy Awards for movies, which consistently rewards the eminently forgettable while ignoring classics entirely.
@AlfPSteinbach Yeah, I think it's been out of print for a while. Maybe we should work on a mildly disguised rewrite of it using C++ instead of Pascal? Wirth would undoubtedly have a conniption if he realized, but such is life.
 
i found that niklaus himself has made available a free pdf version
 
"conniption". Nice word. I'm keeping it.
 
@AlfPSteinbach Hey, very cool. Now I can feel better about recommending that people read it. Link definitely saved. Thank you.
 
4:42 PM
> A week later, two young and aggressively female assets joined the team.
I wonder what "aggressively female" means.
 
Wait a minute. Looking at that link, I'm not finding that book, though Algorithms and Data Structures is pretty similar. Looking again, I guess it's basically a later edition of the same.
 
Hmm, why give up a pretty neat title?
 
By the way, back on Windows XP here. Graphics and sound work again, and C: only holds 1,5 GB of data :)
 
"Write once, infect everywhere"?
 
4:54 PM
@FredOverflow Why is it that with time windows uses more hard disk memory?
 
@vivek Because it stores intermediate stuff and forgets to delete it later? Dunno...
 
Windows Update trash I think.
System Restore stuff too.
 
I have to increase my C: drive size every now and then, or just format and re-install the whole thing
 
Vista+ also stores gigantic crash reports sometimes.
2
 
@vivek I have an image of C: that can be restored within 70 seconds :)
 
4:58 PM
operating system = Dinosaur
@FredOverflow ?
 
Well, plus 1-2 minutes of booting Knoppix.
 
@FredOverflow I would like to try it
 
Do you have any experience with live linuxes?
Because if you don't, you can really blow your computer's leg off with Linux.
 
@FredOverflow yes
I use Ubuntu for programming
 
Anyway, I always run my only Windows partition almost full and never need to resize.
 
5:00 PM
windows for gaming ;)
 
@vivek Well, then simply google for "dd" and "gzip", that should give you some interesting results.
 
@FredOverflow i hv used them seperately
 
Guess what, you can combine them ;)
 
Preferably by piping :)
 
dd if=/dev/sda1 | gzip > yourimagefile.gz
gunzip -c yourimagefile.gz | dd of=/dev/sda1
The first line creates a compressed image, the second line restores it.
 
5:03 PM
@FredOverflow Ahh.. Thanx for reminding this... I read this sometime back but forgot :)
 
There are various tricks to show progress and stuff, but those are the basics.
 
Ah, progress...
 
so after I do a fresh windows install ( along with all the softwares), I'll make a backup with this and use this everytime to restore
 
I also recommend nLite / vLite / 7Lite to slipstream service packs and the latest security fixes into the setup CD.
@vivek exactly
 
5:06 PM
but.. what about my partition table ?
 
I usually make an image of fresh install without additional software. That is, just install and fix some basic options, activate Windows, and then mage an image.
 
won't it get overridden ?
 
@vivek Only if you image /dev/sda or something.
 
No, the partition tables lies outside of sda1. If you want to save that:
dd if=/dev/sda bs=512 count=2048 of=foobar.bin
You might have to tweak the count according to your OS, on XP it is 2048, at least on my system.
 
what does count represent ?
 
5:08 PM
/dev/sda is your entire first hard drive, whereas /dev/sda1 is just C:
@vivek how many blocks you want to copy
 
windows is in sda1
 
Oh wait, I think the partition table is just 1 block (count=1), but after that, windows places boot loaders and stuff.
Better read more on that topic on the Internet, I'm not an expert.
 
@FredOverflow What do you mean "according to the OS"? Isn't the partition table ignorant of that?
@FredOverflow Right, that.
You're probably talking about the Master Boot Record, or something.
 
@RMartinhoFernandes Yeah, I mixed up partition table with mbr and stuff.
@RMartinhoFernandes oh yeah
 
Probably more flexible to just keep GRUB there.
 
5:10 PM
@vivek How large is your C: drive?
@RMartinhoFernandes I only have one OS on my harddrive, no need for GRUB.
 
@FredOverflow it was 100 GB then I had to resize it to 200
 
@FredOverflow Yes, but @vivek mentioned using Ubuntu and Windows.
 
@vivek Oh, in that case it will take considerably longer than 1 minute to restore it :)
approx. 1 hour for 200 GB depending on your system performance
 
@FredOverflow not a problem.. To resize the partition, it took a whole night
 
Stupid NTFS.
 
5:12 PM
I didn't think people would make C: larger than 20 gig or something.
 
@FredOverflow but windows 7 would take something aroung 10 GB I guess
 
@RMartinhoFernandes why stupid ntfs?
 
@FredOverflow Takes forever to resize up.
 
and then software like adobe collection / Vis. Studio
 
@RMartinhoFernandes Hmmm... I seem to remember it was an instant operation with parted. How did you resize?
 
5:13 PM
I didn't, @vivek did.
I would expect it to be little more than adding more entries for the newly available space or even less.
 
@FredOverflow parted is only usefull when the memory blocks are continuous
I guess
I used some free tool
 
Why does fragmentation matter when resizing up?
 
Als
Hello Gents, Ladies and Bots
 
Wait, unless you're resizing into what was some other partition.
 
@RMartinhoFernandes NTFS simply doesn't support resizing volumes. Blaming it for this is like saying a Ferrari is stupid for not having a payload of 30 tons (or blaming a large truck for not being able to keep up with the Ferrari on a race course).
 
5:16 PM
@JerryCoffin Oh that explains it. Stupid NTFS then. :)
 
I have a 4 GB C: partition, followed by 16 GB of unused space reserved for future use, followed by my D: partition. So I expect resizing C: will be as easy as pie :)
 
@FredOverflow yes, in your case
 
@JerryCoffin Really? I'm pretty sure I have resized NTFS partitions before...
 
I didn't have that unused space
I had to take memory from another NTFS partition
 
@vivek So you were actually moving and shrinking another partition too. Obviously that would require lots of copying around.
 
5:18 PM
> Parted has some limitations. For example, it cannot resize NTFS partitions without external tools, such as the ntfsprogs package. That means that one has to use a combination of a program to repair hard disk errors before parted if one wants to repartition a damaged hard disk. To overcome this limitation, many rescue discs include all the required utilities in one bootable CD, enabling resizing of most file systems.
 
Makes sense.
 
sounds like it should work in practice
 
@RMartinhoFernandes exactly
 
Resizing is dangerous.
 
www.sysresccd.org/
 
5:19 PM
@CatPlusPlus because it might call the default constructor? ;)
 
@FredOverflow Creating partitions is reserving space, keeping unpartitioned areas are wasting it. :P
 
and everytime you install windows, you have to restore the bootloader
GRUB in my case
 
By the way, if you really plan to freshly install windows and make an image, I strongly recommend to overwrite the entire partition with zeros before installing windows, so gzip has an easier time compressing the partition.
 
I never install Windows more than once on a given HDD.
I don't know where that practice came from.
 
How many HDDs do you buy per year? :)
 
5:20 PM
Hell, I never install any OS more than once.
 
@FredOverflow There are certainly utilities that can resize NTFS volumes -- I'm just saying it's not part of NTFS itself. That would be a contrast to, for example, Sun/Oracle ZFS, which can resize volumes virtually instantly, on the fly, remaining online and in use the entire time.
 
HDD structure is immutable once OS is installed, period.
@FredOverflow 0.(3).
 
@JerryCoffin Resize up, I assume.
 
I once installed Windows 95 a dozen times on a single day, because something network related didn't work, and I thought re-installing might fix the issue, being Windows and all :)
 
Resizing down is super-dangerous.
 
5:22 PM
Turns out it was my fault, I didn't know at the time that you had to terminate LAN connections with special hardware, was my first home network :)
 
9x line was crappy like hell.
ME was just crap overload.
 
@RMartinhoFernandes Mostly up, of course. In some cases (all the files involved are replicated, and you don't mind losing the replication) it can resize down pretty quickly as well. Obviously doesn't violate the laws of physics though -- if you need to copy 100 gig of data, that's going to take a while.
 
@CatPlusPlus Yeah, but we didn't have the Internet back then (well, at least I didn't...), so at least Windows 95's crappyness wasn't dangerous.
 
@JerryCoffin Damn physics. It would be a lot faster if we used superstition.
 
98 had braindead Registry implementation, which led to all that "you need to clean up your registry" advice, which of course has been irrelevant on NT since forever.
Not that it stops people from repeating it.
 
5:25 PM
@RMartinhoFernandes Maybe. Superstition seems a lot less predictable though.
 
I don't really know what we were talking about any more, so I'll just ramble somewhat.
 
@CatPlusPlus Neither does anybody else so it's probably all right.
@CatPlusPlus Well, not entirely. NT's implementation just makes it a lot less relevant. A lot is replacing linear searches with logarithmic. That means lots of extra entries don't make much difference, but they still do make some.
 
@MrAnubis lol
 
@JerryCoffin Every piece of data makes some difference, but the advice is still irrelevant and won't make any noticeable impact. :P
 
5:30 PM
Can I defrag NTFS partitions outside of Windows?
 
I wouldn't try. But why would you want to? There's safe defrag API available from within Windows.
 
Can I defrag C: in Windows?
 
Sure, why not?
 
I always thought it was impossible, dunno :)
It probably was impossible in Windows 95 or so :)
 
@FredOverflow must be linux user :)
 
5:32 PM
Some files will probably need to be defragged on the boot (like swap), but everything else makes no problem.
 
I have swap on another partition.
 
@FredOverflow I believe the "system" partition (wherever Windows itself lives) has to be done during boot as well. That'll usually be called C:, though it's open to change if you want to.
 
-1
Q: Fast set union of integer

Tristram GräbenerI need to make lots of unions of ordered set of integers (I would like to avoid duplicates, but it is okay if there are). This is the code with the best performance so far : std::vector<unsigned int> match(const std::string & token){ auto lower = std::lower_bound(vec_map.begin(), ...

^ please tell me i'm wrong
 
I only ever have only one partition, and never had any trouble defragging it online.
 
however, anyway, i'm afk for a while now
 
5:38 PM
There's that hidden 100MB space Win7 reserves, but dunno what's that for, and doubt it would need defragging anyway.
 
@CatPlusPlus @FredOverflow My C: drive is always 0 % fragmented
in Win 7
 
@AlfPSteinbach Could be wrong. He hasn't said what his vec_map is, but if it's a std::map<something, vector> what he has could be meaningful.
 
Why is Dropbox sometimes so slow? I just re-installed it, and according to the software, it takes 4 days to sync :) And my Dropbox folder is much smaller than a gigabyte...
 
@JerryCoffin If I want to have just one letter for phone number, should I use T or P in my CV ?
T +46 00 000
P +46 00 000

Also, email, should it be M or E?

E hello@a.com
M hello@a.com
 
Why are you doing this in the first place? Why only one letter?
 
5:46 PM
You're writing CV for robots?
 
I just noticed Tomalak Geret'kals edit to the question linked by Alf P. Tomalak needs to either get to meta to an automatic -2 for anyone using the stl tag, or to change the tag stl (and remove synonyms) standard-template-library-the-really-old-stuff-that-got-included-in-c++-many-moons-ago. It's not that I disagree, I'm just impressed by his diligence :-)
 
"phone" and "email" make more sense to humans. :P
 
Shouldn't both formats be quite self-explanatory? There an xkcd for that.
 
email, eMail, e-mail, e-Mail, Email, EMail, E-mail or E-Mail?
 
Name
Adress
Post Number and City
Country
Phone number
Email
 
5:47 PM
Without the prefix that is
 
Email.
 
I thought like:

Niclas
Studentv. 26
1245 Uppsala
SWEDEN
T +46 2323
M hello@a.com
 
E-mail is outdated.
 
besides, for phone numbers, if i were to have a letter, it'd be for the type of number. like H for home, W for work, C for cell phone
 
Drop the T and the M
 
5:48 PM
@JerryCoffin yep.
 
I think they'll be able to decipher that's a phone number and an email.
So, yeah, drop the silly letters.
 
Well, if you must include this instead xkcd.com/208
 
I'll drop the letters then =)
 
@cHao Yes but not in a CV, maybe on an android device for a 32x3 lines text display.
 
yeah...only if saving space took precedence over readability
 
5:52 PM
Calculators nowadays have bigger displays than this.
 
TI-89 for the win
 
Besides, icons, people, icons.
 
@ManofOneWay i had a TI-57
 
I have a brain. Kidding.
Now you'll never know if I really have one. Mwahahahah.
 
@ManofOneWay I don't think I'd use just one letter.
 
5:54 PM
well i was stupid about that sorting question
ok
 
Texas Instrument?? RPN FTW!
 
HP?? TI FTW!
or casio... ;-) he he
 
@FredOverflow email.
 
I have a Casio. I don't remember the last time I've used it, though.
 
5:55 PM
Yeah, my non-rpn was a casio, I was fond of that one too =) I can't remember when it ran out of batteries.
 
On exams they're usually banned anyway, for some idiotic reason.
And on non-exams, I have a laptop, why bother.
 
probably cause the new ones can solve just about anything for you...lol
 
I just checked, my beautiful Casio with rubber keys & black LCD, from 1985 I think, STILL WORKS with original battery!
 
@CaptainGiraffe "non-rpn" Why would you subject yourself to such a thing?
 
And if I don't have a laptop, then I'm not somewhere I want to use a calculator, either.
Meh, RPN.
 
5:56 PM
Exams? :) Would that be math exams? @Alf, congratulations, collect your bonus check at the customer service desk.
 
@CatPlusPlus Now I'm trying to think of contrived scenarios where your life depends on having a calculator handy.
 
I have "Computer Systems Organisation" this semester, which involves e.g. binary arithmetic on paper.
 
@JerryCoffin You need to learn both heaven and hell to appreciate which way you want to go!
 
5:57 PM
@RMartinhoFernandes Then again, I nearly always have a phone with a basic calculator.
This course is of course different than "Computer Systems Architecture" which I had last semester (I actually am doing them in the wrong order, but still), but nobody really knows in what way.
 
it's really good calculator, it Just Works
 
One of my very delayed phone projects is to do a proper rpn calculator. @Cat what do you think about doing binary on paper?
 
It calculates.
 
But argh, binary arithmetic on paper.
It's utterly stupid.
That's what I think.
 
Yeah, waste of perfectly good paper.
 
5:59 PM
That's what I think about any calculation on paper.
 

« first day (353 days earlier)      last day (4600 days later) »