« first day (724 days earlier)      last day (4446 days later) » 

06:07
can you be more specific?
well I got a Makefile with my assignment.c code and apparently I have to use makefile to run the c code
yeah it tells the compiler how to build your code
whats the problem/question?
so how do I run my code using the makefile?
what do i type in the command prompt
No, the make file tells the compiler how to turn .c/.cpp into an executable .exe/.so
how you run the executable in the command prompt is a whole other story
OH!
sweet sweet
sorry my first time programming in c
without getting taught anything haha
anyone has C code for a transpose of a matrix
06:21
no offense but transposing a matrix is rather simple
if its square anyway
yeap
did it just now
cbf mode right now
Transposing a square matrix is basically just flipping the x and y indices of an element
i know, did it
non square matrices aren't much harder except the dimensions need changing as well
@BicB about the makefile...depends on the makefile. if there is a "run" rule defined, which our C instructors liked to do, you can call "make run" from the console to run it
it includes this
 OPT = -O4

default: assignment

assignment: assignment.o
	gcc $(OPT) -o assignment assignment.o

assignment.o: assignment.c
	gcc $(OPT) -c assignment.c


clean:
	rm -f *.o
	rm -f assignment
so basically compiling and producing an .exe?
06:27
producing `assignment`, runnable as `./assignment` :)
(.exe is a windows artefact...)
sweet
fair enough
no run rule. gonna have to do plain old ./assignment
just make will do, since it will pick the first target (default) which depends on assignment to be built :)
@BicB Next time, consider searching/posting on Stack Overflow or at least share snippets on ideone.org or pastebin.com
@sehe ideone.org lol. It's ideone.com
I was wondering, is there a way to build a makefile programmatically just by following the #include statements?
06:29
Qt seems to have compiled, finally :)
@Borgleader ??
@melak47 Wow. Congratulations, man. That appears to be an achievement, from what I've heard
thanks :p
lots and lots of warnings but I don't care
@melak47: It's simple, let's say I'm working on some code and I don't want to edit the makefile everytime I add a file to my project. I'm thinking maybe I could build a dependance tree of the code files and generate a make file from them.
oh. I see
@Borgleader Not a complete one, but most compilers can generate dependencies for a make file based on what includes what headers. If you're using gcc/g++, try gcc -M whatever.cpp.
06:34
@JerryCoffin: whatever.cpp being the entry point?
whatever :p
@Borgleader More or less, yes. Doesn't really have to be the entry point, as long as it (directly or indirectly) includes headers for everything you care about.
Qt finished compiling and it's breakfast time! that took no time at all...
I think we can stop having halftimes now. Its only a letdown at this point. http://youtu.be/sAzzbrFgcUw via @youtube
^ Wow. Just wow
Since when does registering for gmail force a google+ account on you?
06:47
Since google+ went public?
No. I registered a couple accounts after Google+ went public and I never was forced to set up a Google+ account, it was entirely optional.
user1182183
@Rapptz do you really care if you can close it? :s
user1182183
It's free, what'd you expect?
Yes, I do care. I don't want another account associated with the email.
user1182183
@Rapptz then go for paid mail ;)
06:53
Weird... my VM wont download updates because of internet connection but firefox can load google
@Borgleader try ctrl+F5 and see if google still loads
@Borgleader Proxy?
@melak47: yeah still does
@sehe: nope
user1182183
Nice, my friend just made it to AXE with his 'AXE Industrial' idea :D
user1182183
06:56
the rugged odor of motor oil...or what :)
user1182183
@melak47 well that we don't know yet but the important thing is that they like his idea and designed image : P
user1182183
For the lazy who don't want to click on the link:
user1182183
user1182183
Hmm, facebook uses the akamai.com hdnetwork to store the photos ; o kinda wondering how much they're paying
07:17
my bad!
got it
a) Don't post long snippets of code
b) what does your compiler tell you
Sep 24 at 11:08, by Cat Plus Plus
Rules are for bad posters, so you should read them.
it was 10 lines of code farout
morning all
Apparently Ubuntu changed something to their DNS system or whatever, I changed my network connection's settings to "Automatic DHCP Addresses only" with 8.8.8.8 as the IP (from Automatic DHCP) and the update manager works now
07:31
how are the too related?
Automatic DHCP is for your machine getting it's IP on your home network, DNS is for your machine to be able to connect 'ubuntu.com'
idk
but i read they made a change and it affects machines with static ips (like mine)
and tweaked the settings and now it works
that makes no sense, as far as the ubuntu servers are concerned, they only see your public IP that your router has
11
Q: resolv.conf doesn't get set on reboot when networking is configured for static ip

kenneth koontzI'm experiencing, what appears to be a hostname resolution issue in ubuntu 12.04 server edition when configuring my computer to use a static ip. In /etc/network/interfaces: # The primary network interface auto eth0 iface eth0 inet static address 192.168.1.28 netmask 255.255.255.0 gateway 192.16...

I see...
07:45
morning
The edit removed all the tabs from the code?
@Griwes he wants to REMOVE the white space that makes the code readable?
Seems so.
And it got approved!
@Griwes badge whores
07:47
omg... stupidity level over 9000
if I had the rep, that would so get regected
O rolled it back, but anyway, WTF
And the comment:
> proper arrangement must need
What does that even mean?
In my experience, Indians have a very confused understanding of English.
It's only +2 rep too lol
What badge do you get for editing? Or is it only that bronze one?
and Copy Editor (gold) for 500
07:51
Ah.. I wonder how many edits I have. I never really counted.
33 according to my revisions tab.
@Rapptz you get one for editing, and one for reviews
I have the bronze review badge, I think.
Those are 80 and 500 body edits, to be clear. Retagging etc doesn't count.
I think I've only retagged once.
@Rapptz, get into any review task, there is progress bar there. Move mouse over it and it will show you few things like edit count.
07:54
stackoverflow.com/questions/12795143/… yoooo guys is my implementation of matrix multi using transpose correct?
Apparently only 16 of my edits counted towards the badge.
I have more, I used to like going through new post and adding code formatting to it ;)
I wanted to do that but then I figured I was probably spamming the review queue.
you bunch of badge whores :P
lol
08:03
Oh, there is a badge for first rollback?
@Griwes is that a question!
No, I got one and I was a bit surprised.
08:55
3
A: Initializing a member variable STL vector through a class constructor

sehe1. Simple, explicit code class MyClass { public: vector<vector<vector<MapCell>>> m; MyClass(int size_x, int size_y, int size_z) : m(size_x, vector<vector<MapCell> >( size_y, vector<MapCell>(size_z) ...

^ Variadic are funadic! Also quite... tricky to make elegant.
-5
Q: programe in c and C++

sara2013please Write a program that sanitises a string in order to be suitable as command line input to a shell script on Linux machines. The program should accept an arbitrary string as input and check whether this string satises all of the following conditions: - it represents a file which is either a ...

lol
win
@R.MartinhoFernandes I've just seen the light; why return { ... } uniform initialization style is so awesome in generic programming! This was a bitch to write with all the type repetitions, mixed with the decltype() invocations
big wall of impenetrable text. TL;DNESR (Too long; Did not even start reading) — sehe 9 secs ago
@sehe One of us! One of us!
@LucDanton Yay. I'm proud :) I've meddled with variadics more often, but hadn't ever seen 60% of the type plumbing evaporate as in this example with uniform initialization style. Sweet. That one is a keeper
@sehe I did, and it's actually quite an interesting exercise. OP still sucks thou
09:00
@kbok Well, I thought it was quite a reasonable request. The only problem was that the poster forgot to add the invoicing details - how am I supposed to bill it?
@MartinJames One thing to keep in mind, though, is that on some forums people would actually go and do the exercise. :(
@sehe Do you have Clang? I don't think your variadic version is correct, in particular I'm concerned about the return type of vec_matrix.
I'd love to see schools teach a logarithmical number line instead of the linear system kids are taught today
guys I need help badly =( I been stuck on square matrix multiplication for about a hour now and cant figure it out in C
@BicB What's your question ?
09:10
@kbok I was trying to implement matrix multiplication using a transpose but the answer is not coming right, below is a link to my code

http://stackoverflow.com/questions/12795143/matrix-multiplication-using-transpose-in-c
man
I thought that with cloud, the whole point was that you did not have to muck about with upgrading your hardware
@kbok will really appreciate it if you could help me out with this if you have time
@BicB The question is still not clear, is it not working or too slow ?
its not working, I mean its printing numbers out but they are way too large like over millions. (btw I have made the code more compact so its faster ) @kbok
@DeadMG you don't have access to the physical hardware, so how does that even have to concern you?
09:15
@kbok I am not worried about the code being slow because if the implementation of the matrix multiplication is not correct then time measured wouldnt matter. So was wondering if you could spot any problems with my code
@TonyTheLion Apparently, I have to deal with a lot of the data that was residing on that hardware myself.
@BicB Yes, the "result" array is not initialized
@BicB try with int result[3][3] ={ { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } };
apart from that is the implementation correct @kbok ???
alright, now you're starting to piss me off
int result[3][3] = { 0 }; for short.
09:17
if you're going to come into the Lounge and start help vampiring for C, the least you could do is not use multiple question marks.
@BicB It looks OK to me
@kbok its working =)
@kbok thank you heaps!
@DeadMG I dont see how I made you angry...I was asking for help nicely
@DeadMG eek
I fly out to Linz tomorrow
and arranged another interview for when I get back
I start my new job on december 10
09:29
@DeadMG Best wishes for the interview and a hassle-free trip. Never been to Linz, should be fun:)
sbi
sbi
I have just made the IT guy a mortal enemy of mine. Good. Now something will change — either way.
where you all from =D
Xeo
Xeo
@sehe Wait until the uniform initialization does not work as you'd expect. :/ For example, when you have types that need explicit construction...
sbi
sbi
I yelled at him that it's just a waste of time for me to sit and twiddle thumbs until he has the time to come and pamper me, as I am already potty-trained. That got him all up and in arms.
You know, in my workplace, they have some specific terminology like "push" which means what the std::map does with the indexing operator. This means that to retrieve an element of a vector at a given index you can push like that: some_vector.push(5).doSomething
How does that even remotely makes sense ?
09:32
@BicB I am in UK. Most of the others seem to live in a zoo or some sort of puppy farm.
Xeo
Xeo
Wait, you have your own containers?
@MartinJames a lot of people from UK in these chat rooms, I am from NZ
@sbi hope you get what you want in the end.
@Xeo of course they have their own container. It's common knowledge that the c++ containers suck.
@MartinJames We all live in either a zoo or an anime TV show.
09:33
@kbok it doesn't.
sbi
sbi
@TonyTheLion Well, some of the other boys in the office gave me a thumbs up behind his back. I went to my superior, told him about it, and asked whether I should go upstairs to the PHBs and tell them what I think of this. He said he'll take it into his own hands.
Xeo
Xeo
@LucDanton You mean the problem that his second overload is not found in the decltype?
@Xeo We also have our own language, which looks like objective-C
@sbi oh good. That means you aren't the only one being annoyed with silly IT dept.
@kbok eek
@TonyTheLion Believe me, objective-C is a breeze compared to that shit
09:34
oh gawd
@sbi PHB???
Typical line of code: *(void **) ppvData = ISTREAMS_LEG_POSITION_PROPERTIES_NATIVE->GetCommodityStream((mxFormalClassesRiskSTREAMS_LEG_POSITION_PROPERTIES_NATIVE *) pxStreamsLegPositionProperties);
@BicB Never been to NZ either. After ~5 hrs on a plane, I start to get stir-crazy and bang on the doors to be let out of hell-hole <g>
sbi
sbi
@TonyTheLion No, of course I am not. The thing is that I will, after one week, not sit on my hands any longer and suffer this. So either they are all a lot better at suffering (unlikely), or that everyone who was like me did "not fit in with the company".
The pointy-haired boss (often abbreviated to just PHB or "The Boss") is Dilbert's boss in the Dilbert comic strip. He is notable for his micromanagement, gross incompetence and unawareness of his surroundings, yet somehow retains power in the workplace. In the Dilbert TV series, in which he is voiced by comedian Larry Miller, the character is notably smarter (although still quite stupid and inept) and more openly corrupt. He is also parodied in Bee Movie as Dean Buzzwell, also voiced by Larry Miller. In Dilbert The PHB's real name is unknown in the comic, although in one episode of the ...
@sbi oh hahah
@sbi you seem to have a talent for winding up IT admins :D
sbi
sbi
09:36
@thecoshman Um. What?
@sbi so you're basically just waiting for IT to do something so you can do your job?
sbi
sbi
Well, I have to admit that I do have a talent for making a splash when things get on my nerves.
and you've been doing that for the last week?
@sbi I seem to recall you telling stories around the camp fire about many an IT admin you updset
sbi
sbi
@TonyTheLion I asked them this morning to install VC Express on my machine, and some GCC, preferably in a Linux VM, as this is easiest. He told me to log a ticket against IT, which he will work on in due time. That's when I exploded.
09:38
@sbi oh I know that response.
Problem is, that if you're stuck, and they give you the "log a ticket bs" you can't do any fucking work
it's all about priorities
@sbi standard response for it, "oh you want me to do something that simple? just let me add that to my list of tasks to ignore whilst I watch the hamster run in it's wheel"
sbi
sbi
@thecoshman I dunno. There were those guys in a former job of mine, who, when I asked for some old MSDN CD, told me they'd get it out ASAP. I asked them to just point me at the damn CDs, I'd find it myself, and they denied. Yeah, I made a splash about that, too, and ended up with the MSDN CDs in the shelfs behind my desk. Is there any other story I have forgotten about?
and it's not like you couldn't easily install VS Express yourself
or GCC
@TonyTheLion That's what's so good about contract work. Log ticket, send email to manager copying ticket, start browsing for vacation offers.
sbi
sbi
09:41
@TonyTheLion Yeah, the department is called IT service, you know. They should be serving us. Instead they are bullies.
hmmm
yes, I don't know why IT want to everything, we are perfectly capable as devs to do some of our own IT stuff, so that we can get on with our jobs
sbi
sbi
@MartinJames The thing is that I like this job. I love to do C++ again, and I want to chew on the problems it throws at me. But those guys are pulling me teeth out!
we probably understand computers better than your average guy in IT anyways
The IT guys have to cater for the plebs as well, so they are used to baby sitting people. Problem is, few admins can let go of the power and trust people
yes. Trust can be a legitimate problem though.
You can't deny that trust is a problem.
Trust has to be gained over time, normally by proven record. It's not something you see in a person when you first meet them.
sbi
sbi
09:46
@TonyTheLion I don't think that way. When it comes to setting up a server, installing an OS on five identical laptops in the shortest time possible, and getting this RAM into my machine, I'd gladly refer to IT, because they are much better at this than I am.
But creating a ticket for installing a damn compiler?! What does the guy think I have done the last 20 years? I feel like They are mad!!! across the whole floor at the top of my lungs.
@sbi your not very good at accepting standard procedure are you? If they just quickly jump your task through the queue (which may be a legitimate bulk of work) where does it stop?
Xeo
Xeo
@sbi I think you accidentally a word.
Yea. That word.
@LucDanton Mmm. Interesting, I have clang, but not at work (we don't actually use c++ here )
@sbi The question being if that will actually gain you anything?! (or has it from experience?)
09:52
Hmm I have a problem
I have many problems. What's your point?
@Xeo well, that'd be just one more moment to curse C++ right. It's not like that would be anything new. A blip on the radar, maybe.
on the plus side cats
@kbok We have so much in common
When editing someone else's source code, you are expected to keep the coding style consistent
sbi
sbi
09:53
@TonyTheLion No, that's not entirely true. Most of the time you will have to grant trust in advance, and hope time will prove you right for suspecting this to be the right thing to do.
For example, when you start a new job, nobody really knows anything important about you, all they have is what you gave away. Yet they will have to hand you their most valuable asset: their code, and trust you with it. And when you look closely at your life, you will find that this is how it is in real life all the time. New partner? What do you really know about that girl? But you will have to trust her, or you could stop right there.
Which requires understanding the coding style.
Xeo
Xeo
@sehe Btw, did you try your variadic code?
@sbi Probably why I don't have a partner then. I don't trust very easily.
@Xeo What do you think? It's even linked from the answer...
But yea, from a companies perspective, you're right. I hadn't looked at it that way
09:54
My problem is that the code I am expected to edit does not make any fucking sense.
@kbok Well, that's nothing new in C++ world, is it now? :P
@Xeo You seem to be implying there is something amiss. Should I be concerned? You could just tell me :)
@TonyTheLion I don't know, you see, when I see crappy noob code on stackoverflow at least it makes some kind of sense
The code I'm trying to edit looks like something you would do while dreaming, drunk
Xeo
Xeo
09:57
24 mins ago, by Xeo
@LucDanton You mean the problem that his second overload is not found in the decltype?
I'm not even mad. I'm just... puzzled
appropriate ^
@TonyTheLion Totally, lol

« first day (724 days earlier)      last day (4446 days later) »