« first day (600 days earlier)      last day (4344 days later) » 

3:00 AM
You know.
> I have never met anyone who can do Scheme, Haskell, and C pointers who can't pick up Java in two days, and create better Java code than people with five years of experience in Java, but try explaining that to the average HR drone. — Joel Spolsky
3
He is fucking right.
0
Q: Iostream is a class

keerthii read in Turbo c++ in help tab that iostream is a class but till I knw my lecturer taught us that it is an header file so which one is true iostream is an header file or a class??

Sometimes I just think that people are trolling.
 
hey guys do you know if i can access to a member of a union in another way than myUnion.member?
 
Guess what. You can't. Also: use boost::variant instead of unions.
 
in C
:S
 
You still can't.
You might be able to do *(typeOfMember*)myUnion but I'm not sure what the rules are in C.
See the starred messages list. The top one is a link to an image describing how much C sucks.
 
^^
 
3:11 AM
*(typeOfMember*)&myUnion is what I meant, of course.
 
let me try it
 
Why don't you want to access the member using dot syntax?
Oh you can also dI (&myUnion)->member.
 
i want to simulate a kind of polymorphism
 
thats is the problem ^^ i can´t
 
3:13 AM
Doing OOP in C is like doing functional programming in machine code.
 
is not a homework, but kind of
 
Do you want simula or smalltalk like polymorphism?
You don't need unions for polymorphism, really.
Use either vtables or message passing.
 
pointer to functions right?
 
Well yeah.
You define a vtable for each class, and each instance has a pointer to it. That way you have polymorphism.
Pretty simple.
 
maybe i started the wrong way
i've readed something about it
but i've decided for unions
i ll try the vTable
 
3:19 AM
struct foo_vtable {
  void (*somefunc)(int arg1, double arg2);
} foo_vtable_inst; // populate in some function you call at the beginning of makn()

struct foo {
  void* vtable;
  // members here
};
 
@RadekdaknokSlupik BS. you can't learn whole standard library in two days.
 
@Abyx it's about the language.
 
libraries are sort of part of language, like unique_ptr is
 
The library, well. That would take a week at most. You don't need to know the entire library.
 
@RadekdaknokSlupik and how would you know which part of library you need to learn first?
 
3:23 AM
You don't.
You start writing a program, and if you're stuck you look up in Javadoc.
Or google some keywords.
 
it's like "uhm... unique_ptr<T> - what a weird thing, I don't need it, I already learned T* p; delete p;"
 
You don't learn the library before you start programming. You learn it while programming.
 
@RadekdaknokSlupik while writing a crappy code.
 
@Abyx "I don't need it" is just laziness.
You are not going to tell me that you learned the entire C++ standard library before you wrote a single line of C++.
 
@RadekdaknokSlupik it's not laziness, you can't just realize why you should use unique_ptr instead of operator delete
 
3:26 AM
Because it does that for you and your code will be cleaner and safer.
 
@RadekdaknokSlupik I'm not, but I didn't said that you can write good code after 2 days of learning new language
 
I didn't say that either.
 
@RadekdaknokSlupik but you agreed with that quote
27 mins ago, by Radek 'daknok' Slupik
He is fucking right.
 
Jup.
That quote doesn't say either that the code is good.
"Better" != "Good"
 
ah...
 
3:28 AM
You cannot write good code in Java anyway. :P
 
O:
 
I cannot?
 
Nobody can.
It's impossible.
 
(never tried though)
 
do you know guys a hardcore Java book, i mean technically about memory, and things like that? kind of explicit way...
 
3:30 AM
I'm bored. It's 5:30 am and there is nothing to do.
 
@RadekdaknokSlupik sleep?
 
@nEAnnam memory management in Java?
 
yeah
 
its not 5:30 am its 11:31 pm
 
all books not include how java really works
 
3:31 AM
@cytinus not everybody is in the same region as you.
 
@cytinus no, it's 11:31 am
 
@Abyx sleeping is boring, unproductive and a waste of time.
 
what region am i in
 
ow, merkin ^
 
@RadekdaknokSlupik thanks for the polimorphism advice cya guys
 
3:33 AM
If you ain't Dutch, you ain't much.
 
Are you much or Dutch?
 
Both.
TIL: I didn't understand APIs in 2009.
14
Q: Lua, what is Lua?

WTP'--I read something about Lua this day, and I was wondering what it was. I did a Google and Wikipedia (I understood it until they begun talking about a C API) search bit I still don't understand it. What is Lua? Are there any tutorials for beginners?

 
lua is crap. at least its source code
 
Lua is the Hawaiian word for "toilet", according to one of the answers.
 
@RadekdaknokSlupik downvoted, btw. "What is Lua? Are there any tutorials for beginners? " - it's silly, there is lua.org
 
3:40 AM
:P
I was 15 then and I was a complete noob.
 
now I know why you changed name
 
@RadekdaknokSlupik oh, and now you're 16 and ...?
 
I'm 15 and I'm a complete noob.
 
I did get an invitation for an interview on WTP's careers account though. xD
I'm 17.
 
3:41 AM
ah
noob+2, I got it
 
You're assuming that newbness is linear
In fact its logrithmic
 
I learned a lot the last two years.
 
logarithmic
 
Much more than in the five years of programming I did before.
 
I learned how to cook
I made a blueberry omelete today
 
3:43 AM
With bacon? No? GTFO.
:P
 
user406009
17 here too. I wish I learned something in the last two years.
 
haha not bacon but with cheese and peppers and tomatoes
 
user406009
Too much wasted time.
 
it was mad good
computer learning is exponential
 
I started programming in C++ from cplusplus.com! xD
 
3:44 AM
i learn more in a day now than i learned in months when i was a teenager
 
That was my first experience with programming.
 
you just keep expanding your knowledge base
 
user406009
I instead had a horrible teacher.
 
user406009
I remember trying to sneak in a C++03 compiler.
 
I'm currently writing a bug tracker. Fucking much fun.
 
3:45 AM
youre your own teacher man
dont rely on anyone else
 
I hope I'll be home alone today. I don't want my parents to know I didn't sleep.
They'll kill me.
 
Chat should let you star your own messages.
haha sleep deprivation is kinda like being on drugs
 
Not really, no.
 
But I want to star my own messages. And who is stackoverflow to restrict my desires.
 
It's the rules.
 
3:47 AM
unless you were talking about sleep deprivation
because it definitely is
 
Sleeping is a waste of time.
You are unproductive when you sleep.
Do you nothing useful.
Three hours of sleep is enough, so I might sleep a bit today.
 
user406009
How long have you been awake so far?
 
its true but not necessarily true. Sleeping and dreaming strengthens neural connections in your brain that help you be more efficient in the future.
I used to have a friend who slept like once every three to four days. Hes in jail now.
 
@Ethan seventeen hours. It's now 5:49.
@cytinus I usually do sleep, but this time I don't feel like it
I'm not tired at all.
 
yea it happens
 
3:51 AM
But you know
 
you should probably just masturbate incessantly. Thats what I'd do.
 
If you are awake for more than thirty hours straight and then you go to sleep, you have the best sleep ever.
 
thats also true
 
Masturbating incessantly? Are you crazy?
 
user406009
I should try that(the 30 hours awake). I never seem to sleep well. Should probably wait till after finals though.
 
3:53 AM
Masturbation is good, but not the whole damn time.
 
Sometimes you just have to constantly.
@Ethan i thought you meant what i reccomended
 
aaargh
 
user406009
Well the young people take over this channel, and we get to that topic in 13 minutes. Not exactly a good show.
 
in one sequence in Max Payne 3 where you have to kill like, 6 guys in 2 seconds
 
Hey puppy also insomniac?
 
3:55 AM
and then in the cutscene if you don't, this guy is standing right out in the open, even though there's clearly nobody fucking there
 
You don't have to be young to masturbate.
 
I wanna live on my own with a cat.
Fuck this shit.
 
Cephalopods > Cats
 
Hexapoda > BugZilla
GitHub shows your amount of commits per hour per day. It allows me to see when I sleep.
 
user406009
GitHub is a wonderful site. Don't know what I would do without it.
 
4:06 AM
Without it you'd probably use BitBucket or Google Code.
 
damn
 
I have a thousand projects on GitHub, of which I only work on one. The other ones are abandoned.
 
the enemy appears to literally spawn right next to the guy I'm supposed to protect, behind an obstacle, and I have virtually no time to shoot them
 
@DeadMG from your statements I can conclude that Max Payne sucks.
Earwax is fucking bitter.
 
sbi
May 6 '11 at 1:44, by Jerry Coffin
@sbi Normally, I'd call it a yellowjacket. "bug" is sufficiently broad it covers everything from coffee beans to insects...
 
4:09 AM
Irrelevant, random quote by sbi.
 
now someone will quote @sbi's message
 
And the @Cat will bin it.
 
yep
same stuff every day
 
user406009
Isn't Cat asleep? Time to create a 10 quote deep post!
 
gtfo
 
4:14 AM
@Ethan no.
We have that already. Go to room info -> conversations -> Quote!!1
This room features all the things!
We have 42 conversations, btw.

Quote!!!1

May 21 at 13:40, 1 minute total – 22 messages, 5 users, 3 stars

Bookmarked May 21 at 13:42 by Radek 'daknok' Slupik

Cool.
Now you can handle web scale! xD
What issue?
Oh ehm I'd add that source then.
Also add source 'http://gems.github.com/'
Leuk.
lol
It's used for sanitizing HTML input from the user.
Doesn't Cygwin ship with those packages?
 
 
posted on June 07, 2012 by Scott Meyers

I recently received this message: Hi Scott, I was looking through the books at InformIT.com and was checking to see if the promotion for buying all of your Effective C++ books together was still active and found this instead: Effective C++ Digital Collection: 140 Ways to Improve Your Programming Are those updated versions of your books, or is that one SKU for all three existing books in

 
11
Q: Nokogiri installation fails -libxml2 is missing

Rohit A.I always worked my way around Nokogiri by following this link for nokogiri tutorial. http://nokogiri.org/tutorials/installing_nokogiri.html but this time even after installing all the dependencies, nokogiri gem doesnt get installed. I get the following error. libxml2 is missing. please visit...

You need libxml2-dev.
Windows y u no ship with mandatory tools and libraries.
Really, what's with Microsoft not shipping their OS with Python, Ruby, libxml and all that stuff?
It ships with PHP. Now think again.
xD I don't even use XSLT.
Yup, but nokogiri doesn't use XSLT either, afaik. I guess it's for libxml.
You know what.
In the Gemfile, remove the maruku and sanitize gems.
Go to helpers/universal_helpers.rb and change the body of "markdown" to just text
def markdown text
  text
end
Oh if they're installing that's also fine.
Nice.
Just run thin start
Make sure MongoDB is running.
Can you open another console window
And run mongo
You need to add at least one ticket kind, but I haven't added an admin interface to add those yet.
In the mongo console, run this:
Ah ok. :p
Does it work?
Can you post a screenshot?
Chrome and the window thin is running in.
Go to /tickets.
The home page only works if you have a wiki page named "Hexapoda" XD
 
4:47 AM
Hahahaha
 
Huh??
Try 0.0.0.0:3000
 
Beautiful
127.0.0.1? lol
How about ::1
 
Stop thin.
run this:
 
Btw, happy IPv6 day
 
$ gem install shotgun
$ shotgun
@Drise that was yesterday, silly.
 
4:49 AM
I still have 12 minutes on my clock
 
Shotgun is a thousand times slower than thin, because it reloads the ruby code on each request. It's for development.
Now go to localhost:9393/tickets :p
0.0.0.0 means all addresses.
 
I don't think I've ever conversed with people on my level like this.
 
thin is for production, shotgun for development
 
I really am enjoying my time here. Thank you all who are here to hear this.
 
No problemo.
Maybe 0.0.0.0 behaves differently on Windows.
 
4:52 AM
See I don't get to talk with people that when I make a "Happy IPv6 day" refernece, that I get in reply "That was yesterday, silly."
I usually get blank stares.
No, it's really authentic.
I also enjoyu being able to say tomato != tomato
No on else but people here would get the != either
 
In Lua it's ~=
 
I'm really enjoying it here, and am just being thankful to an awesome bunch of intelligent people who I can speak in a different language with.
In a different language and a different way of thinking.
 
We are better.
 
I mean, as programmers, we tend to think differently than most people
 
Hey @Scott Hexapoda sucks heh? :p
 
4:57 AM
It's funny. I don't see most programs as "Notepad" or "iTunes" anymore. I just see a large codebase with a bunch of functions and classes all working together in harmony to do soemthing great.
 
Well, Notepad isn't doing anything great.
 
I just realized what I said
Wait, Radek... parents?
 
Yeah? I'm 17.
 
You have.... parents? What are those?
 

« first day (600 days earlier)      last day (4344 days later) »