« first day (543 days earlier)      last day (4388 days later) » 

2:00 AM
@Jordan: Post your code in here: sync.in/j0c8xBGtws
@Jordan: Line 21 (among others) doesn't make sense. That just declares a function, like you did above main.
(Ask yourself: where did I assign a value to h?)
 
user1174868
isnt that calling the function?
 
@Jordan: No.
 
The first error I get is that seconds is uninitialized.
It does not make sense to have an uninitialized const.
It would be forever stuck with no valid value.
 
user1174868
I did initialize it?
 
You declared it.
 
user1174868
2:02 AM
int const seconds;
 
Initializing is like this:
 
user1174868
int seconds, h, m, s;
 
int const seconds = 123; // seconds will always have a value of 123.
Initialization is giving something a value.
 
user1174868
oh well the value is user input
 
user1174868
2:05 AM
but it will always = 123?
 
instead of 123 you can use an expression. like time/3600
 
user1174868
so I need 3 const
 
that's one way to do things, yes
 
user1174868
I dont understand why I need that
 
user1174868
why doesnt my code work? What is wrong with the idea of it
 
2:07 AM
it doesn't yet compile
making it work is a matter of (1) getting it to compile, and (2) getting the logic right
you need to first of all make it compile
 
And a good way to go about doing that is to add on to the program incrementally. Don't try to do the entire thing at once.
Get some input, then print it out. Get the working first.
 
First off, what do you want the seconds constant to hold? What does its value represent?
 
user1174868
a user input
 
@Jordan Then it cannot be a constant. Its value changes when you give it a value from cin.
 
user1174868
but I can only use a constant in functions?
 
2:10 AM
@Jordan Constants may be used anywhere.
 
user1174868
this seems insanely hard to link functions to the main
 
user1174868
why cant I have a user input just in my function?
 
user1174868
that is all I want
 
In your time calculation functions?
 
user1174868
yes
 
user1174868
2:11 AM
or so I have to assign that to another location?
 
user1174868
so seconds = x
 
Well, you shouldn't be using cin in your calculation functions because that would be doing too much in one place.
 
What do your function calls look like now?
 
What if, later on, you want to read input from a file instead of a terminal?
 
user1174868
I dont
 
2:12 AM
You're missing the point.
 
user1174868
this is just an assignment for class
 
user1174868
 
@CheersandhthAlf: (Also posted here: sync.in/j0c8xBGtws)
 
@jordan start with the first error
 
2:13 AM
@Jordan Let's work through this together in the sync.in room. It has built-in chat.
 
anyone know how to read XML into a object ?
 
@Maxpm hey, that looks really useful
 
@TaylorBioniks: That's a pretty broad question. Are you looking for a library to do it?
 
2:35 AM
@GManNickG that would work
what do you reccommend
 
An XML library.
 
my App uses libGCC libBOOST
yes XML library
 
@TaylorBioniks: Couldn't make a recommendation. :) Try: stackoverflow.com/questions/170686/best-open-xml-parser-for-c
 
OK thanks
 
hey, I tried the other rooms for android, buuuut no actives. Would anyone be inclined to field a general android phone use question?
 
2:39 AM
There's a good breakdown of features and reasons to pick one or another here:
22
A: What XML parser should I use in C++?

Nicol BolasJust like with standard library containers, what library you should use depends on your needs. So the first question is this: What do you need? I Need Full XML Compliance OK, so you need to process XML. Not toy XML, real XML. You need to be able to read and write all of the XML specification, n...

 
@RubyKnightWindicator what about android?
 
Woah, that's surprising. There are like six Android rooms.
In any case, there's also .
RT @xavlur Twitter account ✔ Facebook ✔ Tumblr ✔ Youtube ✔ Messenger✔ Skype✔. "Dude do you have a life?" "No, send me the link!"
 
I was wondering if, when you encrypt the phone via pin/password, if you wanted to encrypt it with a new password, everything would be saved, or is a backup needed?
 
@RubyKnightWindicator judging bye what I have seen it would be fine
but backups are always worth doing
 
gotcha, thanks
 
2:42 AM
I added two more pages to the tips and tricks list.
 
Xeo
I just read a bit of the log and wtf was going on in here? Live basic C++ classes?
 
Sorta.
 
@Xeo Yep! We're here.
 
Imma star this, if you don't you're a loser:
 
Xeo
Oh my
 
2:51 AM
Use http://sync.in/ to collaboratively edit text.
3
 
Xeo
Oh, hey @GMan, long time no see in here. Or atleast I didn't
 
@Xeo: Naw, you didn't miss me. I've indeed not been here for half a year or a year or however long.
And now I look dumb because you can't star your own posts. I forgot about that tiny detail.
 
Xeo
Since you're here now, I can finally tell you my idea for a blogpost - the duck typing comparision between python and C++ that you had.
I remember it being an interesting read, but alas I forgot 95% of what was written. :(
 
Ah yes. I think I may have forgotten 95% of what was written too, heh.
Maybe once I'm out of school I'll write a more general type theory definitions series.
Also: if you aren't repeatedly voting for Community, I don't know what you're doing with your life. hulu.com/bestinshow
 
I got bored of it.
But I haven't watched The Walking Dead.
 
3:00 AM
Wut Fringe lost to that what
This voting is fail.
 
Xeo
@GManNickG What is Community? :P
 
And GoT, too, wut.
Speaking of which, I completely forgot season 2 has already started.
Stupid uni.
 
user1174868
that voting is horrible
 
No, really, a zombie show?
To Fringe?
Gosh.
 
What's so great about Fringe?
 
3:04 AM
There are no zombies.
 
user1174868
Walking Dead is really good
 
_____ Dead is really really good
 
TV is boring.
 
TV shows aren't.
 
3:06 AM
Left4Dead... :)
 
Where might I find a list of all the locations that Linux programs might install files to?
 
@Maxpm I did without TV for 8 years or so. Then I rented a TV just because my parents would be visiting, and they loved watching TV. Then for years I was without a TV again, and when my mother visited I just put on the news on the PC.
 
Left4Dead, Living Dead, Dawn of the Dead, Walking Dead, Evil Dead
 
/bin and all that, excluding stuff like /tmp.
 
@Maxpm Your package manager.
 
3:08 AM
Filesystem Hierarchy Standard.
 
@RMartinhoFernandes I'm doing this to avoid package managers.
 
Xeo
Anyways, 5 am here, off to sleep o/
 
@Xeo o7
 
But I have discovered that there are some really nice TV programs about nature, here in Norway. And that in rural area you can't watch them on the PC, due to low bandwidth network. It's actually "broadband" over the original NMT 450 mobile phone network.
 
Xeo
@Maxpm What?
 
3:09 AM
Doing what?
 
Oh, right, package managers suck.
I forgot.
 
> Package managers are pants.
 
Xeo
@RMartinhoFernandes Anything with "manager" in the name sucks. ;)
2
 
Pants are good.
 
Abstract singleton package manager factory.
 
3:10 AM
Not if they're as bloated as package managers.
 
Oh, "bloat".
Did I mention I love that word?
 
Yes.
You did.
 
They keep saying that word. I don't think they know what it means.
 
@Maxpm I probably didn't, because I don't.
@CatPlusPlus Should've gone in the same message. That'd earn a star.
 
There you go.
 
Xeo
3:12 AM
Damn it, stop interesting conversations when I actually want to go to sleep!
 
Sleeping is for people without deadlines.
 
@Xeo What are you talking about?
 
Xeo
@RMartinhoFernandes For various definitions of "interesting" :)
 
We say "for some values of".
 
Xeo
But I thought you'd actually flesh out your arguments against the word "bloat"
 
3:14 AM
It's used as a synonym to "I've heard someone say it".
That sentence made more sense in my head.
 
Xeo
I'm glad I was wrong, g'night. *tabs out before anything interesting comes up"
 
@Xeo It's used as a synonym to "I don't want to like it."
 
"— It's bloated! — Why? — Because it's bloated!"
 
Wow... I stumbled in at a weird moment.
 
Xeo
@OralB Why, does the "B" stand for "Bloated"? :P
 
3:16 AM
I like that wikipedia has a section for Alternatives to software bloat.
 
> The B in Oral-B stands for "Brush".
 
Xeo
@Pubby Thanks Captain.
 
@Xeo I knew it!
 
@Xeo Don't forget to floss regularly!
 
You didn't tab out.
You just can't.
It's impossible.
 
3:18 AM
Hurry up and leave so we can begin the circus
 
Package manager that tries to play TF2 for you, launch a rocket into space, invent a cure for cancer, travel through time, and be a pony would be bloated.
 
Xeo
!You pinged me!
 
@CatPlusPlus Don't forget reading e-mail
 
Xeo
Now why do I have an excess ! in that ...
 
Reading email is passe.
 
3:18 AM
@Xeo Plinks don't work if you actually close the tab.
 
@Xeo Because it's on !!fire!!.
 
Fire on fire?
 
Double fire!
SCIENCEEEE!
 
Xeo
@RMartinhoFernandes Tab out != close tab
It's ctrl-tab
 
3:19 AM
That doesn't help you sleep.
Neither does this.
 
Xeo
It does, the next tab is still one about Monads
Yes, from that one time I asked about them
 
Xeo
And so are the next 5
@CatPlusPlus TVTrope links only work when the article has an interesting or relevant name and I didn't read it already.
 
I'm lazy.
 
Probably by anyone really been far even as decided to use even go want to do look more like
 
3:22 AM
@Xeo I doubt haven't read it counts that much.
You know, it might have changed :P
 
Xeo
@RMartinhoFernandes It does for clicking links outside of TVTropes
Inside, I can't seem to resist. You know, maybe new additions to the Anime/Manga examples.
 
> A man with frying pan versus a horse with shortsword. Perfectly normal.
Shit, that came from TVTropes. I hate you Cat.
 
Xeo
lol
 
So much for evil-free Wednesday. You've started it, though!
 
Started what?
I'm not evil.
1 hour ago, by R. Martinho Fernandes
I'm so evil.
Ok, maybe.
I should be asleep. I have some sort of meeting tomorrow.
 
3:29 AM
I have a test in 2 hours.
 
What do you think?
Specifically about the second section.
I'm not sure where /usr/share should point to.
 
Why renaming bin to Executables et cetera? This reeks of Mac and serves no purpose, other than making paths longer.
 
And wreaking havoc somewhere in the process, I'm sure.
 
Besides, what with dependencies?
 
As long as I'm putting everything in one place, I might as well make it conform to my tastes.
 
3:33 AM
@CatPlusPlus That would bloat it!
 
Or versioning.
Subdirectories in Headers don't really make sense.
 
@Maxpm great Idea
 
Also there's only one /etc.
 
@CatPlusPlus I forgot to put in a bit about different folders for each version, with a Current symlink. Just like GoboLinux.
 
And who maintains that?
 
3:35 AM
@CatPlusPlus I do.
 
I'd love to see that PATH variable.
 
I am the developer of a OS and I use appdirs
 
Large PATHs don't work.
Believe me, I know.
@Maxpm The symlink, silly.
 
@RMartinhoFernandes An alternative to updating PATH is to point PATH to one location, and put symlinks to all the files in every /Executables directory there.
 
Don't tell me 'you have to update it manually', because I'll laugh.
 
3:36 AM
with a daemon called the reourcemanager which makes the system seam as if everything is one
 
@Maxpm Oh, like say, /bin?
 
And who'll remove the symlinks when you remove the package 'just by removing the directory'?
 
@RMartinhoFernandes It could be anything. /bin and friends in the root hierarchy will still be supported if I'm too lazy to set up a package.
 
I thought that was supposed to remove all traces.
 
@CatPlusPlus A script.
 
3:38 AM
Congratulations, you just wrote package manager.
Only poor.
 
Dammit.
 
Really, what difference does it make where files go? How often does that really matter to you?
 
@RMartinhoFernandes It bothers me quite a bit, actually.
 
FHS works better.
 
But just OCD bother?
Because you really shouldn't need to care at all except for /etc perhaps.
 
3:40 AM
/Programs/Firefox.app
 
You could do without the scripts, if you really wanted to. I could rm -Rf /Packages/Python, and trying to run python in a terminal wouldn't work because the symlink is invalid. That's the point.
 
terminal -> firefox
 
I don't need to know where it is. It still works.
 
Sure, it still works, but it's messy.
 
3:41 AM
the resourcemanager knows where every single fire is
 
I see no mess.
 
file is
 
@RMartinhoFernandes Then I guess it's subjective.
 
You only see mess if you go actively look for it. There's a simple solution for that.
 
@RMartinhoFernandes don't look?
 
3:42 AM
Ta-da!
 
want to see a real mess look here C:\\\
 
Ew.
 
Also, I'd really rather have pacman -R then rm -Rf.
 
here / not so bad
 
The FHS is okay, and I could live with it if I had to. But I don't have to.
 
3:44 AM
rm -Rf --one-file-system would probably be safer.
Still not something I'd want to run.
I hope you're also aware that you will have to manually configure every package.
 
That's what the whole mirror thing is for.
 
What mirror thing?
 
Straddling the first and second page.
The mirror of the FHS.
 
Inventing new hierarchy doesn't cover package configuration.
 
$ cd /Packages/Python/Current/Unmanaged/Source
$ ./configure --prefix=/Packages/Python/Current/Unmanaged && make && make install
 
3:50 AM
Yuck.
 
It will install to the correct locations, and hard-coded paths will still work.
 
Also building, not configuring.
 
Like the stuff in /etc?
 
@Maxpm How come hard-coded paths will still work? Will your filesystem have the stuff at the hardcoded /usr/share/foo/cat-picture.png?
 
Hmm.
Well, yes.
 
3:55 AM
So, symlinks all the way down?
 
Yep.
 
No mess at all.
 
Isn't that... well... messy?
 
They can be hidden with GoboHide.
And I still get to browse the filesystem normally to see all my programs.
 
@Maxpm Why don't you just fix the whole thing at the root with GoboHide?
 
3:56 AM
@RMartinhoFernandes Because then I'm dependent on a heavy package manager again.
 
(And I'm playing along with this desire to "see all my programs". That's not what I usually do with them.)
Explain "heavy".
 
apt-get seems clunky.
 
Explain "clunky".
I'm staying awake until morning, so I can go on.
 
I'm desperately trying to avoid saying bloated.
 
Changing the word doesn't help.
Describe a problem.
 
3:58 AM
No problem.
 
But I would strongly prefer not relying on software that exists specifically to keep track of other software.
Not because I don't trust it.
 
apt-get does what it's built to do.
 
Yes, it does.
I would just prefer not to have to deal with it.
 
So you want to keep track of the software yourself?
 
3:59 AM
Yes.
 
Or write software to keep track of it?
 
Keep track of it myself.
 
You're a poor programmer, if you prefer to do something that can be perfectly well automated manually.
 
Maybe.
 

« first day (543 days earlier)      last day (4388 days later) »