« first day (687 days earlier)      last day (4262 days later) » 

8:00 PM
ah yeah, mathematical recursion.
 
cab a lawsuit be filed on a program?
 
Only if the judge travels by taxi.
 
if i make a program that (by chance) resembles another persons program, can i get sued for it?
 
Depends on the jurisdiction, the other party and the license of the program, as well as how much your program resembles the other party’s.
 
@daknøk My parents are afraid that i might post a program on the internet because someone else might have done it
 
8:11 PM
@MohamedAhmedNabil The European Court recently ruled that source code cannot be copyrighted.
 
@MohamedAhmedNabil If you or your parents are afraid of that, you could just as well not write any programs at all.
 
@daknøk Im not afraid of that, my parents are. I just need to convince them
 
Tell them that the almighty daknøk told you it’s fine.
 
Even if you did infringe on something, you're not a big enough target to be worth suing.
 
my parents have nothing to do with my future, I decide that. But they can stop me since im still a minor
 
8:13 PM
@EtiennedeMartel Not in the US.
 
@Rapptz He's not American.
 
I wouldn't know since his profile doesn't specify age or location.
 
Well, now you know.
Gangnam style on US corporate radio? Winning.
 
That song is so horrible.
 
Seriously?
 
8:18 PM
@EtiennedeMartel My dad told me that i shouldnt post the project on the internet, because i can get sued the same way Apple sued samsung
 
@MohamedAhmedNabil Hahahahaha. Your dad doesn't understand how patents work, I see.
 
@EtiennedeMartel You cant feel how depressed i am :( How do they work?
 
Patent system is really really bad.
 
@MohamedAhmedNabil Well, someone has to have a patent that somewhat covers what you did.
The main problem is that they can get pretty vague.
 
Like in the case of Apple's "Slide to Unlock"
 
8:21 PM
If i made a program to lets say "Database management " And i posted it on he internet for bidders. Can i get sued
 
Still, tell your dad that there exists several project hosting services, like SourceForge, GitHub, Bitbucket or Codeplex.
@MohamedAhmedNabil No, but I doubt you'll be able to sell that.
 
@EtiennedeMartel Just an example
@EtiennedeMartel What can i get sued for?
 
Copying something with no shame.
 
Yeah, that's about it.
 
In some parts of the world, you can get sued for anything. Someone can sue you if they don't like your face.
 
8:27 PM
I got really depressed cause my dad straight forward banned me from posting my projects on the internet.
 
@Mysticial Gotta love the US.
@MohamedAhmedNabil Erm.
 
@EtiennedeMartel yep...
 
His words were "If one person on the entire world, already made a program that somehow resembles yours, We will get sued for all we got
Parents :/
 
lmao
 
@MohamedAhmedNabil That's like saying, "I will die is a meteorite hits me."
 
8:29 PM
I dont have to listen to them right :D ?
 
@MohamedAhmedNabil What makes you think I listen to my parents? :-P
Or rather, my mom anyway.
I usually listen to my dad.
 
@Mysticial Cause im only 15 XD
 
@MohamedAhmedNabil Same, when I was 15.
 
@MohamedAhmedNabil That is downright false. Did you tell him that if it worked that way, there would be no software industry?
 
@EtiennedeMartel yep, he told me there isnt anyone that does programs like other people
@EtiennedeMartel Accept my fathers ignorace
 
8:31 PM
@MohamedAhmedNabil What the fuuuck. He's simply talking out of his ass.
 
@EtiennedeMartel hey thats my dad! , but yea he is
 
You could try telling him that he's talking out of his ass.
Is there a "reverse-parenting" site on SE?
 
Hit him with a stick.
 
@EtiennedeMartel I told him that i would do it anyway, He told me if i did, i would have my computer taken away
 
lmao.
 
8:34 PM
You could, you know, do it without telling him?
 
That'd be a good idea.
 
If you have your own computer it's very easy to hide things from your parents.
Like seriously, how can your parents possibly know something on the internet is yours?
Create a username, don't your real name... and viola - welcome to the internet.
 
Considering how ignorant they seem to be, I doubt they have the necessary skills to check it out.
 
@Mysticial They wouldnt, but if i somehow manage to sell a program for money, Then im doomed
 
@MohamedAhmedNabil Hey, if made money from my programs, my parents would be damn happy.
 
8:38 PM
My parents stopped caring what I did when I was 14. I'm glad.
 
@Mysticial For me it will be something like this "OMG You will get us sued AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
 
Are your parents forgetful? My parents used to forget shit all the time.
 
There's a lot of interesting ways to deal with parents when they get unreasonable... but it's highly dependent on the family.
 
-3
Q: Cant delete an array/vector in C++?

fclopezI have problems deleting an array int calc_mode (vector<int> array, int arrSize) { int ipRepetition = new int[arrSize]; int j; bool bFound; for(int i =0; i<arrSize; i++) { ipRepetition [i] = 0; j=0; bFound = false; while ( j<i && array[i] != array[j]...

0% accept rate?
 
looks like another help vamipire
 
8:42 PM
don’t insult the noble blood suckers
 
oops
 
This guy HelpNeeder has posted about 4 different questions about his program.
with the.. Book class.
 
9:05 PM
So i should do programs and not care if someone else did it before?
 
3
 
@Rapptz That's awesome...
 
@Rapptz Nice finale.
 
@EtiennedeMartel I didn't expect it haha
 
I used to have a bull frog.
My parents were in Chinatown and saw some really big tadpoles.
The store owner said that when be become frogs, they'll be as big as the head.
(The head was about 1 inch, head-to-tail was about 4-5 inches).
The store owner was kinda wrong...
It grew to about 5 inches in body length and was pretty damn heavy.
 
9:20 PM
I've never had a frog.
 
I got my mother on my side, since she is an engineer herself, She understands who different companies make similar products
My dad on the other hand , is a doctor so he understands none of that
 
Whoa what.
 
sbi
9:36 PM
Gottfrid "Anakata" Svartholm, Swede, one of the Pirate Bay founders, has been captured in Phnom Penh by Cambodian police. He's facing extradition to Sweden, where he had been sentenced to 12 months + fine.
 
user1182183
does anyone know a PC Game which is just like the movie "Death Race" ? :x
 
user1182183
except Twisted metal one and 2...
 
@GamErix There's Interstate '76, but it's quite old, and I don't know if it's any good.
 
user1182183
@EtiennedeMartel if it has multiplayer it's acceptable for my lan parties : p
 
user1182183
ah it haz ^.^
 
9:49 PM
@sbi remoned me of this:
 
sbi
You mean "remoaned", right?
 
When we say to decouple your code, we mean from other code and not from reality. Sorry that was confusing.
@sbi Kinda sorta
 
sbi
@sehe Oh yeah, I saw that, too. Good one.
 
Anyways. Finishing my wine. Hope it somehow beats down my upcoming flu/cold. Good night all :)
 
sbi
@sehe Fighting a cold with wine? Hot red wine, I suppose?
 
9:53 PM
+1 for a damn well asked question. You could have reduced even more but let’s not be picky. — Konrad Rudolph 14 secs ago
it’s rare to see beginners ask questions in such a concise, comprehensive way
 
@sbi Good idea. No, just wine. You know, I don't normally drink. So it has the axe effect. I sleep deeply, though feverishly, hopefully that'll get it out of my system quick.
Think I should try rum or cognac instead? I must have some around
 
sbi
@sehe You don't normally drink? I don't believe that for a second. You'd be dead after three days.
2
 
@KonradRudolph It's not everday that Pete Becker answers a beginner's question within 3 minutes
0
A: Compiler error when moving C++ main method to its own file

Pete BeckerJust like any other global, declare it wherever you need to use it and define it in one place only. So in foo.h, mark it as extern. Then define it in foo.cpp.

 
sbi
@KonradRudolph It's not rare, though, to see people assume include guards would solve their multiple definition problems. We might need a good "C++ compilation model" FAQ.
 
Good question on SO? gasp
 
9:56 PM
You know, Pete Becker. The Pete:
> C++ expert, standard library implementor. Project Editor for the C++11 International Standard. Author of The C++ Standard Library Extensions, which covers TR1; now obsolete.
 
Don't know the guy.
 
sbi
@sehe I got twenty times his rep. And even the grumpy old man has a better temper than Pete Becker. Well, sometimes, anyway.
 
@CatPlusPlus That's a good joke
 
sbi
@CatPlusPlus You'd be too young.
 
@sbi Yeah, I know because I made the same error, and because I taught C++ and everybody made the same error.
off to bed
g’night pirates
 
sbi
9:58 PM
@sehe He used to hang a lot out in the VC newsgroups on the MS news server. (He still might, but I haven't been there in a long time.)
 
@sbi Hmm seems you play that one rather predictably :)
 
sbi
@sehe Yeah, I'm a sucker for Pavlov. (Everybody thinks Pavlov used dogs for his experiments, but it was actually me.)
 
when i was introduced to tool i thought it sounded depressive, but now i like it
does that mean i'm depressed
 
sbi
WTF are you even talking stammering about, Alf?
 
@sbi i think pete is most often reasonable. but i had two or three run-ins with him (one time he called me things and another time i called him things). i think basically any person who does as much for community as pete have must be sound at heart.
 
sbi
10:09 PM
@Cheersandhth.-Alf I did "qualify" my statement!
 
tool is an american rock group, i dunno, "desert rock"? most well known for "Lateralus", which is based on the Fibonacci sequence
 
sbi
@Cheersandhth.-Alf Oh. Damn. You know, Alf, Capitalization matters!
 
yeah, like in "Lateralus"
:-)
 
I'm making a "value_ptr" class. I've determined that using the default deleter/copier I can make it 1 pointer in size, or I can make a type-erased (for cloner/deleter) version that's two pointers in size and hits the heap, or I can make a "hybrid" that is type erased and three pointers in size but doesn't hit the heap. Opinions?
 
"Lateralus" is about thinking laterally, and not analyzing to deeply when there is some total experience to be had
@MooingDuck in order to support upcasts and downcasts two pointers are generally required, namely one original and one possibly changed. but for cloning smart pointer you should be able to get away with just one raw pointer. perhaps.
 
10:15 PM
@Cheersandhth.-Alf I can't imagine why upcasting or downcasting would take two pointers.
@Cheersandhth.-Alf I can't think of why I'd need the origional.
 
@MooingDuck well only if you want to support it. e.g. unique_ptr does not. but if you want to support upcasts, then note that the upcast may be to non-polymorphic class, with change of pointer value. then you need the original in order to release.
 
@Cheersandhth.-Alf oh, right, dynamic_cast doesn't handle that in all cases.
 
e.g. shared_ptr does this. which is why it also supports incomplete pointee type, as long as it's complete at construction time.
 
I was thinking I could just make a functionoid with the cloner/deleter to do the cast so I don't need to maintain it, but now that I think on it, that would require more space too.
I thought unique_ptr also supported incomplete pointee types?
 
well the nice thing with cloning pointer is that the real pointee type can change along with the pointer type
hence my intuition that maybe probably you can get away with just one raw pointer
if you're willing to discard information in a pointer cast, or if you simply don't support troublesome casts ;-)
i can't say i understand the PHP chat flagging. the weirdest things get fagged.
:-) he he
0
A: C++ equivalent of this Python code for dictionaries/lists?

Cheers and hth. - AlfWell, C++ isn't well suited for small throw-off programs, because it doesn't provide much infra-structure. You're meant to create your own infra-structure (such as, well, even just plain sets!) on top of the standard library. Or use some 3rd-party libraries, i.e. your choice. So while Python com...

 
user406009
10:24 PM
@MooingDuck IIRC in order to have incomplete types for unique_ptr you need to switch the deleter in the template to something like std::function.
 
^ An answer from earlier today that in spite of some contro-versial statements has received 0 attention. Weird.
 
@Cheersandhth.-Alf weekend
@EthanSteinberg I've never heard such a thing
 
I'm truly touched by all the Chinese, Russians, Koreans, Chileans and that dude in New Jersey who all want to get to know me better by trying to ssh as root into my server
10
 
@Cheersandhth.-Alf the answer is odd. What's with the temp function?
@Cheersandhth.-Alf at first I was disapproving, but upon third read, using << to insert elements is intriguing.
oh! temp is so you can use members on that same line! clever
does a deep copy in C++03 though. Meh, still neat.
I can totally see the use for that temp when using stringstream.
How does an upcasted unique_ptr pass the right pointer type to the deleter? Or just it make a new deleter that handles the cast when you do the upcasting?
to the spec!
or does it?
 
10:44 PM
it stores original pointer in the shared control block that all the shared_ptrs for a given pointee, point to internally
and it also stores deleter there
it's the original "type erasure", I believe
 
@Collin ow, you're so popular
 
0
A: using an if statement to choose type to declare a variable C++

Cheers and hth. - AlfDon't use a union. Make that variable a double in all cases. A typical 64-bit double can represent all 32-bit int values exactly. Remember Donald Knuth’s adage, “premature optimization is the root of all evil” Also, remember Alexandrescu & Sutter, “don’t swea...

 
@Cheersandhth.-Alf unique_ptr, not shared_ptr
 
oh, unique_ptr doesn't support casting. it's that simple.
you can get away with it in most cases, but not in all
in particular, if your unique_ptr has a void (void*) deleter function, and you upcast to pointer to non-polyrmorphic, you're in for nasty surprise.
 
@Cheersandhth.-Alf unique_ptr doesn't support any casting?
 
10:46 PM
it supports safe casting in the sense that you can just do it.
 
@Abyx I really should do some flood control
 
wait, a unique_ptr<base,?>'s deleter is required to have a deleter that takes a base*, so it's a non-issue. Duh. The deleter must also be able to convert.
which means... that my problem is imaginary. awesome!
or at least, so long as I don't support downcasting.
I guess if unique_ptr doesn't need downcasting, then neither should my value_ptr.
Though at this rate, I may also make the type erased version, which could handle that.
Thanks Alf
 
how is everybody today?
 
11:02 PM
@Cheersandhth.-Alf: Know what? I think I will keep both pointers, and support casting both ways, because it also makes the cloner much simpler.
eh bag it, I'll type erase everything too.
 
@Chimera I'm okay.
 
Ell
Is type erasure ever goof?
 
11:22 PM
@Ell sometimes, yes
 
11:38 PM
@MooingDuck Hey :D Didnt see you here for a while
 
Ell
when is it?
 
Xeo
11:59 PM
hehe
 

« first day (687 days earlier)      last day (4262 days later) »