« first day (622 days earlier)      last day (4552 days later) » 

user784668
11:01
What makes you think it was recorded with 16-bit DACs and sampled at 44100 Hz?
I thought the idea of a lossless compression like flac is that you can still recreate the original wave form?
kind of like how a bit map can be compressed with RLE
meh, either way, lunch time
user784668
@thecoshman You can if the bit depth and sampling rate is the same as the original. You can't if they're smaller.
@RMartinhoFernandes - so I was trying to make the reference itself const which is meaningless since you can't reseat references
@thecoshman You can only reconstitute whatever you are encoding. If you encoding something that already lacks some of the original detail, you can't just pull that detail out of your ass.
@Flexo Right.
@sehe Because tomorrow, I better lossy format might appear, or my ears get worse, or better, or maybe I want to burn a CD or who knows what. And since HD space is cheap, I don't see any reason not to go lossless at home.
11:07
@Fanael True. But it is intended to be used lossless and the default options should get you that (at least for 44.1kHz stereo 16bit input)
hi, i have a question, does chess improve programming skills? i mean algorithmic improvements?
What's depressing is not that PHP is horribly designed. Does anyone even dispute that PHP is the worst designed mainstream "language" to blight our craft in decades? What's truly depressing is that so little has changed.
Hehe.
user784668
6 mins ago, by Fanael
What makes you think it was recorded with 16-bit DACs and sampled at 44100 Hz?
@Fanael CD -> flac is definitely lossless.
@ddacot No. Chess involves chess skills :P
user784668
11:08
@FredOverflow Yes, but CD is often lossy.
@Fanael So? All I care about is that the flac is the same quality as the CD.
thx..
@Fanael Pedant. Care to see the context here? We're not discussing SA, DVDA, studio masters, we're discussing compression.
@ddacot Try it. Perhaps, for you, it works
Why does my computer make a clicking noise every second???
user784668
@sehe This is Lounge and you expect people not to be pedantic?
11:10
'others' - puzzled :)
@FredOverflow It's tired of your abuse and is now rebelling.
It's probably the new hard drive, trying to optimize itself or whatnot. I don't trust new technology.
@FredOverflow Because (a) the harddisk is dying (b) a thermistor or similar is failing. Watch for burn smell
sbi
sbi
@ddacot It does train logical thinking, of course, so if you want to improve that, chess will certainly help. But if you only want to improve your logical thinking in order to become a better programmer, writing programs would certainly be a better exercise. OTOH, playing chess can be a lot more fun than programming, so if you enjoy it, go for it.
Fine, let the hardware fail. I'm gonna go back to my C64 then. That never made any disturbing noise.
11:12
@FredOverflow Oh, new drive. (a) DOA, (b) wrong acoustics tuning (try hdparm) (c) obnoxious resonance in computer case and some dumb app is flushing the log every 1 sec
51 mins ago, by sehe
@FredOverflow You're starting to appear a bit minimalist/spartan to me now
Jun 15 at 17:55, by Domagoj Pandža
Why do developers have to be so spartan?
In other news, this is kind of cool:
@sehe Well, it's 8 weeks old by now. What do you mean by (b)? :)
The second letter of the alphabet.
hdparm is a command line utility for the Linux and Windows operating systems to set and view ATA hard disk drive hardware parameters. It can set parameters such as drive caches, sleep mode, power management, acoustic management, and DMA settings. GParted and Parted Magic both include hdparm. Changing hardware parameters from suboptimal conservative defaults to their optimal settings can improve performance greatly. For example, turning on DMA can in some instances double or triple data throughput. Unfortunately at present there's no reliable method for determining the optimal settin...
@FredOverflow ^ grep for /acoustic management/
This is the funniest thing I've read all day. (Of course, I did spend the day reading about my options for upgrading from SQL Server 2000 to 2008, so my sense of humor might need recalibrated.) — Bill the Lizard Mar 22 '10 at 21:35
hehe.
lol
user784668
11:17
-1
Q: Safely create const char* in C++

leon22What's the safest way to create const char* in C++? const char *tmp = "SOME STRING"; or another way?

user784668
Anybody understands?
@Fanael const char * tmp = "ABC"; has a 100% success rate.
The PHP Singularity - fresh by Jeff Atwood
@StackedCrooked For some definition of success.
11:21
As in not failing.
Perhaps if teh string is too long.
@StackedCrooked unless you were hoping it'd end up being NULL in which case it's 0% success rate :)
Guess what? It was just as horrible in 2008. And 2005. And 2002. There's a pattern here, but it's subtle. You have to look very closely to see it. On second thought, never mind. You're probably not smart enough to figure it out.
@StackedCrooked Yes, for some definition of failure.
If the code is supposed to print "foo", that fails.
@sbi Oh gawd.
sbi
sbi
@RMartinhoFernandes Better?
11:23
What does oneunboxing change about it?
Also just posted into the PHP room: i.sstatic.net/YbYJo.png
@RMartinhoFernandes It imgur's the url
Oh gawd it's aliased.
Lol.
user784668
@sehe Could you stop making up screenshots?
@Fanael ? see here - welcome to the vast world outside Lounge<C++>
Jun 4 at 11:52, by sehe
@RadekdaknokSlupik Blame mspaint on work pc. Sux0rs. Also:
11:25
@sehe Wut? Mspaint doesn't automatically antiantialias text from screenshots.
user784668
@sehe Still, the screenshot is fake.
user784668
@sehe And you know what I'm talking about.
@Fanael Of course. My whole work is fake. But don't tell my employer, because he still pays the salary. Morons!
sbi
sbi
@Aaron: "What exactly about my proposal do you think is throwing away the baby with the bathwater?" You see votes as reward for those who answer. I see votes as indication which answer is better/worse. Seen from my POV, there is no need to change anything. — sbi 13 hours ago
Any input to that, anyone here?
0
Q: How can I use the old iostream.h in gcc

richardI am about to do a C++ test. But their example uses iostream.h #include <iostream.h> int main() { int i; for(i=1;i<=100;i++) { if(i%15==0) cout<<"FizzBuzz"; else if(i%5==0) cout<<"Buzz"; else if(i%3==0) ...

Oh dammit.
11:28
lol
user784668
@sbi Oh no, you "not" caring about meta again.
gcc is for C not C++, may be you want g++ — Maziar Bouali 33 secs ago
Is there an order of initialization for base classes?
Order of declaration.
11:31
foo : bar, qux does bar first then qux?
Even if I do foo() : qux(), bar() {}?
user784668
Is there an order of memory location for base classes?
user784668
@Pubby Yes.
@Fanael I think that's irrelevant as far as C++ is concerned (right?)
Wow this reaction in the PHP room surprises me. Quite a bit:
in PHP, 4 mins ago, by NikiC
Everyone with a HN account, please down-flag: http://news.ycombinator.com/item?id=4176075
@Fanael There's some rule about the address of the first base being the same for standard layout or something like that.
Otherwise, it's up to the compiler.
sbi
sbi
11:33
@Fanael Actually, that's about the 5min edit grace period, not about meta.
I don't even remember how I ran into that one, but I consider it child ==> bathtub.
@sehe lol
They're pissed.
@sehe Why does it surprise you?
What is better image(width, height, data) or image(data, width, height)?
image(dimensions, data)
user784668
@RMartinhoFernandes +1
11:36
I actually am using a dimension struct except it sucks
user784668
@Pubby Then make one that doesn't.
How can it suck?
@Pubby you don't want to pass in unstructured blob of data without fully specifying the format. that most often includes more than width and height. e.g. bits per pixel, bytes per scanline, and maybe more.
Well I'm inheriting from it and then implicitly casting *this to get the dimension value
@NikiC (a) because you were so quick (whoa - rushes of to HN, finds link, propagates downvote recommendation?) (b) because it is yet another internet rant. I think most user groups tend to let it slide
11:37
struct dimensions { your_favourite_numerical_type width, height; };
user784668
@CheersandhthAlf That may be implicit.
Is it possible to inherit from something except not allow casting to it?
sbi
sbi
@sehe Ha! Caught you with your hand in the cookie jar! What were you doing in the PHP room again? We told you not to mingle with them dirty kids!
@Pubby yes, for the C++ casts
Lol. I just thought they'd appreciate a link to Jeffs blog post.
Which they did
11:39
@sehe It's the kind of post that typically gets on HN, so I knew where to look ^^
@Pubby Private inheritance.
@CheersandhthAlf What do you mean? (And I mean not allowing derived to convert to base&)
sbi
sbi
@sehe Trying to wiggle out of that, are we?! Nonono, you were caught while being right at it! No cookies for you for the rest of the week!
@RMartinhoFernandes I want to inherit public stuff too though
@Pubby Then using it.
11:40
@RMartinhoFernandes It is in a template and I can't really do that
struct foo : private bar { using bar::f; using bar::g; };
Unless the using can use sfinae or something
@sbi Sounds like the parent you'd love to hate
@Pubby I'm confused now.
@sbi Oooh, cookies. Can I have one?
sbi
sbi
11:41
@sehe I am the parent you will all love to hate.
@RMartinhoFernandes First you go and wash your dirty hands!
@RMartinhoFernandes I want a class to be templated over the dimension value N and include a width/height/depth member function depending on the value of N. The only way I know how to do this without specialization is by inheriting from my dimension struct.
@Pubby C style casts have special permission to allow cast to inaccessible base. It's the only cast that can do it. It's not a reinterpret_cast, it's an honest fuck-the-accessibility cast.
Hey guys can you take a look at this design?
http://ideone.com/zzwvA
sbi
sbi
@CheersandhthAlf fuck_accessibility_cast<PrivateBase>(derived)
11:43
Needs more /////////////////////////////////////////////////////////////////////////
sbi
sbi
@Olumide Yep. I can.
It sucks.
user784668
Oh, the cat.
sbi
sbi
@Cicada Who needs more slashing?
Look at his "design"
11:44
@Olumide I don't like it. Has Manager. Which I suppose is something that manages.
I'm trying to work around the inability to instantiate templates with local arguments>

.. and its not going well at all :(
Which is quite meaningless.
user784668
@RMartinhoFernandes SingletonManagerFactory
AbstractProxyJellyBeanPotato
2
@RMartinhoFernandes I wanted to avoid creating a new object. Thus the static member function.
Unfortunately we cant migrate to CV 2010 cos of legacy code.
@sbi Will you?? ;)
Ell
Ell
11:45
cegui xml make me cry :(
sbi
sbi
@Olumide CV?
@Olumide I already did.
Cisual Vtudio
sbi
sbi
My first thought was, "that's a convoluted dictionary." Why don't you use a map?
@sbi Huh?
Oops I meant VS.
@sbi Ok, I have now washed the blood off my hands. Wants mah cookie.
11:48
Among other issues, I am not comfortable with having to explicitly clean up the memory allocated by the Manager
Well, then stop doing silly things. What is this all for?
Its for a problem that I'm working on for my company. Sorry I cant go into much detail. Our managerment is paranoid and is often looking over its shoulder for competitors.
@CatPlusPlus I'd do better if I knew how to. That's why I'm asking y'all
Ell
Ell
oh shit. I should be at school. bye all!
We don't know what you're trying to do.
All I see right now is a lot of silly code that has no purpose.
I'm trying to call getFoo() and getBar() depending on the combination of SYSTEM and DIMENSION ..
11:51
Fact: with templates, you get the compile time decision on what getFoo and getBar return.
user784668
@Olumide if?
Fact: with virtual you turn that into a run time decision.
Unfortunately I'm constrained to VS 2008 cos of legacy code.
Conclusion: there's no gain in putting templates + workarounds.
@RMartinhoFernandes The problem is that the number of combinations of SYSTEM and DIMENSION means I'll have lots of ifs
11:53
@Olumide And as is you'll have lots of specializations.
If you think the ifs are ugly, make a static map.
@RMartinhoFernandes That takes care of having to come up with names for functions ;-)
@Olumide Wut?
You're seriously missing my point.
I meant instead of having a class DerivedImpl_B _TWO I decided to write class DerivedImpl<B , TWO>
Too hot. Can't work.
11:56
Same thing, so much less hassle.
What is getFoo, what is getBar and what SYSTEM/DIMENSION combination is supposed to represent, because this smells like silly reinvention of Boost.Units.
Make it a switch, or a table if you want. The point is, the templates brings zero benefit there.
@CatPlusPlus I don't know about Boost.Units but I don't think so. I'm implementing some stuff for hardware
And this is coming from someone that templatifies everything, btw.
@RMartinhoFernandes Thanks. I initially considered having storing pointers to functions getFoo() and getBar() in a map ...
12:00
@Olumide That's reinventing vtables.
@RMartinhoFernandes Are you saying that there is no good reason to do so?
Unless you want that map to be mutable, no.
And I'm not sure if making that map mutable counts as a good reason :)
@RMartinhoFernandes Actually, I want an immutable map for reasons of safetly.
Ell
Ell
phew, false alarm
Man, copying thousands of small files is soooooo slow.
user784668
12:04
@RMartinhoFernandes Don't copy, then.
@RMartinhoFernandes Make a zip out of it. Copy 1 file.
sbi
sbi
@RMartinhoFernandes I got one here, found it in IE's temporary folder. It's named --BuiEXT7nrAVij6aCrHwIQE5tKun-QN61MNDR1L2s8[1] and it's all binary. (That's Ok for a robot, isn't it?) Do you still want it?
user784668
@Neil Unpack all the small files. No profit.
@Fanael Addressed his problem though didn't I? No more slowness due to copying many small files
sbi
sbi
@Cicada You're too hot to work? I wonder what your employer thinks about that.
@Neil Are you working for a support hotline, per chance?
12:09
@RMartinhoFernandes Single PC, network? If network use tar -czp | mbuffer -m 180M | netcat <host> <port> (drop z if fast network, use | pbzip2 if slow network and fast PC)
@Cicada 30 degrees outside, about 20 inside, thanks to MASSIVE window blinds that stop all sunlight and heat.
If single PC, assuming Windows <- yer fucked
It's wonderful.
@sbi Why yes. I provide direction to thousands of Indian hotline contacts, why?
sbi
sbi
@Neil I knew it!
12:10
@CatPlusPlus No windows blinds here. If I leave them closed this room turns into an oven.
I'm forced to open them.
Mine are on the outside of the window.
user784668
@sehe pbzip2 :(
Also the server rooms have cooling so I might as well pretend I'm a server and ask my employer to put me there.
Server rooms are usually freezing, so that might not be that much of an improvement.
@Cicada Servers don't talk. You going to put a sticky note on your forehead?
12:12
Also, noise.
Every time you guys complain about it being hot, it's raining here.
@Fanael what's wrong
user784668
@sehe bzip2 makes your computer sad.
It can be hot and raining.
@Fanael parallel bzip2 surely doesn't. Also, why? Are you working on a C64?
12:14
Problem is my productivity decreases exponentially with heat
@CatPlusPlus It's cold.
user784668
@sehe Because it's slower (at decompression, at least) and weaker than LZMA.
@Fanael oh nice. I didn't know people still did that. Compression engine flame wars/pissing contests
I used to like 7z when it was still a hipster thing
But then you took an arrow to the knee
user784668
12:16
@sehe Sure they do. mattmahoney.net/dc/text.html
It's in the knee, btw.
dis meme so annoying
oh wow, just noticed that eclipse refactored attributes of classes I was not refactoring
In other words, Eclipse refactor = text replace
user784668
tl;dr use vim
bob
bob
use emacs
I'd rather kill myself
12:22
use notepad
bob
bob
use a piece of paper
use wood
bob
bob
I can provide
If you want to produce free-as-in-whatever code that runs on virtually every server in the world with zero friction or configuration hassles, PHP is damn near your only option.
Ahahahaha zero configuration hassles with PHP.
user784668
@CatPlusPlus lol
12:27
@RMartinhoFernandes We had that discussion
user784668
Mother of font rendering, I managed to make the fonts look almost as shitty as they do on sehe's machine!
@Fanael It's not my machine. It's sadly the machine I have to work on :)
user784668
user784668
That's what you get when you apply way too much sharpening.
user784668
Then again, it's still better than yours, because it's antialiased.
12:40
@RMartinhoFernandes obviously
crap damn it, took a later lunch, forgetting about concert I wanted to listen to ¬_¬ missed 20 odd minutes :(
@Cicada ok, this is just getting silly now
Oh the wondrous decision model of a pirate mind. I can't help but wonder what random generator is involved in deciding when things get silly for a pirate
@thecoshman Live?
@sehe indeed, Mastodon
I nearly got to see them but they pulled out of the gig :(
Was Dublin gig. They where doing it off back of some other concert that got cancelled, so figured it wasn't worth coming Europe, the feckers
@sehe My mind is a clear as the seas
12:56
@thecoshman With a lot of seaweed
@sehe makes for good seasoning, dry out in the riggings, grind up a little bit over your fish, not bad at all
Everything goes well with plundered treasure, especially plundered treasure!
and rum, don't be forgetting the rum
and for those who care, yes I do like rum ¬_¬ but non of this shitty spiced gold shit
Ireland is not a friendly land for those who like proper dark rum
@ScottW But what for
My links are better :) — sehe 9 secs ago
Ow. A foreigner cracking bad dutch jokes
user784668
13:21
@sehe Dutch?
user784668
Listening to music with speakers off is a bad idea.
I thought we where going to Dutch all the bad puns?
@Fanael It is a great idea. (a) don't annoy others (b) conserve energy
sbi
sbi
13:51
@RMartinhoFernandes I got some questions. You here?
Seems a bit quiet for this time of the day...
Usually when I wake up, this place is crowded.
WHAT? I COULDN'T HERE YOU!
I THERE YOU TO HERE ME!
2
user784668
@sbi Now I am.
@sehe I don't care. Yesterday, for the first time ever, some guard in the game uttered that sentence to my character. And it was in the knee.
sbi
sbi
14:06
@RMartinhoFernandes Ok, thanks. Should we take this to some other room? I'd rather not soil this one with PS stuff.
14:18
@RMartinhoFernandes I am sad I can't templatify(?) my code :(
I've become a template junkie
@RMartinhoFernandes The game isn't the meme, apparently. I don't do the game. I get my knowledge from too many top youtube comments ... :(
@sehe The meme is wrong!
All memes are wrong
I don't usually correct my memes, but when I do I make sure it takes an arrow into the knee
bob
bob
I have a network application on a gateway. It receives and sends packets. For most of them, my gateway acts as a router, but in some cases, it can receive packets too. Should I have as many threads as there are flows, or only one main thread, or only the main thread + one dispatch thread in charge of giving it to the correct flow handler, or maybe something else ?
@sehe Oh gawd, you made it worse.
user784668
14:26
@sehe You should take an arrow in the knee.
@RMartinhoFernandes My mother told me to always do what you do best
@sehe :(
@RMartinhoFernandes Ew
hmm I've managed to get gcc to give me an empty list of reasons why I can't use something in a constexpr function
which I think means it's run out of reasons but doesn't want to play
14:38
I think I've seen that one before.
@Flexo Nice
(trying to do: this at compile time, not with a function pointer though)
Good morning.
@JimNorton Is that Bjarne? Why does he have a screw in his head?
@JimNorton Nailed it.
3
14:49
C++ screws with you head
CHAT Y U SO BORING
Chat is not distracting me from work today
So, I don't know what to do with myself.
OMG, we need to fix that.
Ell
Ell
hi all
losome
Ell
Ell
I'm tired of coding so ima do some graphic design :D know how to draw a camel in inkscape? :S
14:59
How can you be tired of coding? Are you sick?

« first day (622 days earlier)      last day (4552 days later) »