« first day (1078 days earlier)      last day (3855 days later) » 

1:00 PM
Only that they hacked the solution in, with something I don't even wanna know about. I think it was relatively low level though.
 
Ell
Yeah, it had to be done in C
 
I am not very good at fixing circular dependencies.
 
I like to think that when you have circular dependencies you are doing something wrong (so that I don't have to deal with them) :P
 
Probably.
Do they happen as much outside of C++?
I can still see it being an issue sometimes, but not in the traditional "I need to know what this type is" sense.
 
Ell
I think they happen as much in any static language
 
1:07 PM
Ah ok thank you. Also, I tried 'float' and it seems that % doesn't work with 'float' either. So what are the types of variables that % work with? And where can I find this reference? — user2826094 2 hours ago
lol
 
I remember when I used to use modulus, and came across something like this.
 
C++ has no builtin RE lib ? o.O
 
Ell
RE?
 
user1804599
#include <regex>, noob.
 
Ahh, forgot to add c++11 flag
 
1:17 PM
my new avatar is so awesome
 
I don't see any angle there
 
I am trying to figure out the angle from one coordinate to another.
In this case, from the right dot to the left dot.
I feel it has something to do with atan2.
 
co-ordinates don't have an angle.
only lines have angles between them.
 
A single line does not represent an angle.
 
1:20 PM
What's wrong with the new Chrome start page?
 
Google favouritism
 
the cheese
it got moved
 
broke the pre-existing functionality
 
It is redundant.
 
I don't ever see the start page
 
1:21 PM
redundant
 
Google browser favours Google? Well I never
 
@DeadMG What functionality? The most commonly opened pages are still there.
 
@EtiennedeMartel The icons are so small now, I can't tell two pages apart.
 
@DeadMG Upgrade your eyesight.
 
Glasses maybe
 
1:23 PM
@EtiennedeMartel Feel free to design, implement, and pay for me to receive a treatment which corrects it.
 
There's zoom built-in, you know
 
the simple fact is
at the most fundamental level, I do not give a shit about searching.
and if I want to search, I will use the existing omnibox.
the search functionality on the new tab page is an intrusion which I do not want and doesn't belong there.
you can't reclaim the space even if you use a search engine that Google does not favour- it's just blank.
 
Why does the weird shit happen to me? I have ants in my kindle - they got in via the mini-USB port and now scuttle out while I'm trying to read :(
 
it's the same deal as how I hate the fact that YouTube endlessly bothers you about using your real name and linking to your Google+ account.
 
Thanks, ants.
 
1:25 PM
@MartinJames Probably Java.
 
I actually tried to switch to FireFox, but it's still terrible.
maybe I should give IE10 a go
 
All that for a start page?
Did you actually use it?
 
@EtiennedeMartel All the time.
 
Well, you're shit out of luck with Chrome, because Google way is the only way(tm)
 
1:27 PM
While using Caps Lock instead of shift?
 
@EtiennedeMartel What?
 
Also IE is still shit.
 
@Pawnguy7 So, in fact, it has nothing to do with finding an angle between two co-ordinates, and is in fact finding the angle between the line starting at (x1, y1) and ending at (x2, y2), and the line starting at (min(x1, x2), min(y1, y2)).
 
Ell
^ ?
 
@DeadMG you can use Chromium? :3
 
1:31 PM
Sigh. It is just... imagine you have two people. You want to find what direction person A needs to face to look at person B.
 
@Pawnguy7 direction? easy. B-A
 
@Pawnguy7 What direction they need to face, relative to what existing direction?
some arbitrary reference line? north? the way they are facing?
 
Cython is cool.
 
Absolute, I think.
 
there is no such thing.
all spatial computations are relative to something
 
1:34 PM
^
 
Ell
@Pawnguy7 do you know SOH/CAH/TOA ?
 
@Pawnguy7 do you want a direction (i.e. vector?) or a angles to rotate something, or what?
 
More or less. Some things I used more than others.
Says arctan2(x2-x1,y2-y1).
 
Ell
It also says นี้ เป็นเพียงเล็กน้อยที่แตกต่างจากการดำเนินงาน Cartesian มาตรฐาน arctan2 (x2 - x1, y2 - y1) เนื่องจากการวางแนวของระบบการประสานงานของเกม Maker ที่ 0,0 อยู่ที่ด้านซ้ายบน หากคุณเปลี่ยน y1 และ y2 ข้อโต้แย้งและ x1 และ x2 อาร์กิวเมนต์ที่คุณได้รับทิศทางกลับกัน เดียวกันสามารถทำได้โดยเพียงแค่ลบหรือเพิ่ม 180 องศาเพื่อผล
 
I don't know why that is there :D
 
1:37 PM
they likely assumed some arbitrary, irrelevant reference point.
the simple fact is, you have not correctly stated your problem, so it is virtually impossible for anyone to provide a correct solution.
 
@Pawnguy7 why don't you tell us what you want to do :D
 
By reference, do you mean 0 degrees being straight right going counterclockwise?
@melak47 Trying to. I thought it was pretty simple.
 
no, tell us what you want to do that you need this "direction" for
 
You're XYing
 
@Pawnguy7 What I mean is, there are an arbitrary number of angles between any two points.
 
1:40 PM
Here is the actual use case.
Turret wants to shoot person (?).
 
so you want the turrent to look at the person :D
 
@Pawnguy7 Yes, the cartesian unit circle is the one you described.
 
@melak47 Yes.
 
@Pawnguy7 So it's relative to the current face vector, then.
you want the turret to turn from it's current vector to the current person vector.
 
1:41 PM
No. I want it to be there. Instantly. If I want to make it turn slowly, I can do it later.
 
I have written this code for 3D
@Pawnguy7 Well, details, really.
 
@Pawnguy7 you need to know what is angle 0.
 
Straight right?
 
first
 
Probably easier to assume 0 is current direction.
 
1:43 PM
subtract the position of the turret from the position of the person.
 
you want something like acos(dot(normalize(TurretFacing), normalize(PersonPos - TurretPos)))
 
then normalize the resulting vector.
@melak47 Pretty sure that dot is only for 3D.
 
I am willing to bet I have done this before.
 
@DeadMG cross is only for 3D
 
@melak47 Dot is valid for both, huh?
 
1:44 PM
Yeah dot product is not dependent on number of dimensions.
 
@DeadMG for any dimension even
 
It's just a sum over a(i)b(i)
 
well
in that case, melak's newest has the right of it.
 
Cross product also works in 7 dimensions
 
well
yep
 
1:47 PM
@Pawnguy7 that will give you the angle between where the turret is pointing and where it should be pointing
how you apply that (instantly or transition smoothly) is your business
 
std::atan2(position.x - target.x, position.y - target.y);?
 
wtf, man.
5 mins ago, by melak47
you want something like acos(dot(normalize(TurretFacing), normalize(PersonPos - TurretPos)))
no atan.
 
Hello Cats and Dogs.
 
@DeadMG what is TurretFacing?
 
@Pawnguy7 The direction the turret is facing right now.
 
1:52 PM
@melak47 I think what he needs is the angle difference between the direction his model points to without any transformation and the direction to the target?
As someone said, he really needs a direction zero.
 
@DeadMG the direction it is facing at the given time doesn't matter though.
 
@Pawnguy7 Yes, it does.
 
well, the rotation has to be relative to something.
how do you describe the existing facing of the turret?
rotation clockwise, starting at Y axis?
 
@DeadMG he doesn't want the rotation angle he want the absolute angle (considering 0 to be going towards the right / counterclock-wise).
 
@Jefffrey It's absolute (but counterclockwise relative to +x)
 
1:54 PM
@BoniTea in that case just use the "forward" vector of the turret
 
@DeadMG Yeah, what I meant is that it is not relative to any existing angle.
 
@Jefffrey 0° exists :p
 
It's always relative.
 
Ok.
 
@Jefffrey It is relative to zero.
 
1:56 PM
But not the direction it is currently facing.
 
hello
 
And really there's no point in assuming 0 is X axis if you're doing a thing turning around to face something.
 
@Pawnguy7 right, so you use +x ([1,0]) as the "facing" vector
 
@CatPlusPlus As valid a choice as any other, as far as I am aware.
 
or where ever you want 0° to point
 
1:57 PM
@DeadMG Valid, sure, but still.
You'll want to know how many degrees the thing has to turn at some point anyway.
 
I personally prefer clockwise from +Y
 
Yeah, it's more intuitive (at least for me).
 
what :E
but 2*k*pi is at [1,0] :E
 
no it isn't.
 
What on earth is #include_next ? — Alexandre C. 48 mins ago
Didn't even know it existed.
 
2:08 PM
so... proofreading... anyone fancy taking on some?
 
@Jefffrey Probably non standard extension.
 
@DeadMG it is...if you like..swap x and y..:D
 
What was I meant to use?
 
@Pawnguy7 for what?
 
The angle thing.
Mine seems to give me the opposite, sort of.
 
Ell
2:20 PM
add 180?
 
Multiply by 3+i.
 
Ell
wat :3
there is no complex imaginary plane here :o
 
All planes are complex.
I mean, have you seen specs for one
 
@CatPlusPlus They say that a modern assembly line can average 1 part per second, and it takes months to assemble a jumbo jet.
 
2:31 PM
Why is it no matter how many times I try I can't get my head around linking libraries properly :(
 
/**/
/**/
 
Ell
@Eterm what can't you link?
 
@Ell Just a library that's installed in /usr/lib/foo with source in /usr/include/foo but I never can get my head around the right combination of #include and -L -l -I options etc
 
Ell
just do -Lpath/in/which/library/resides -lnameoflibrariwithoutextensionorlibprefix -Ipath/in/which/libray/headers/reside
 
Just got me a wireless extern HD. If I copy files over the 5Ghz channel I get ~13 MB/s. Which is 104Megabit. I guess I need to update my network card to 1G.
 
Ell
2:35 PM
:P
 
Thanks Ell!
I should probably print that statement and stick it on my wall, this is a hurdle I seem to jump through every time I come back to C/C++ (which all I'm doing is writing wrappers to then use in python/etc)
 
user1804599
2:48 PM
I need fun project.
 
Ell
@not-rightfold fractal thing
 
user1804599
What?
 
Ell
A fractal generator/renderer
 
user1804599
What is that.
 
Ell
 
user1804599
2:52 PM
> fun project
 
user1804599
I don't want to kill myself.
 
Ell
I don't know!
Address book.
How about a game
how about you help me write a game
 
The best way to find fun projects is to have interests outside of programming. For instance my next fun project will be writing a battle simulator* for the board game Eclipse to settle arguments about who got luckier in battle
 
user1804599
> I don't want to kill myself.
 
user1804599
@Ell That's the most boring thing imaginable.
 
Ell
2:54 PM
@not-rightfold then there are no fun projects
 
@not-rightfold try some problems on spoj.pl or other problem sites, they can be fun
 
Ell
@not-rightfold write a command line project tools think
 
user1804599
Meh uninteresting hypothetical never-occurring problems.
 
In mysql, i want to delete all occurances of a column data when it exceeds more than 5, except those five.
 
Ell
lobster new my_new_project
lobster target add debug_linux
 
2:56 PM
OK try writing a twitter consuming sentiment analyzer, with the bonus that if you do a good job you can sell the results for good money
 
Ell
lobster target debug_linux add src/*.cpp
 
user1804599
@Eterm We did exactly that for a school project last year. :V
 
user1804599
But yeah I guess that's fun enough for this weekend.
 
Ell
good luck
 
user1804599
Never did much NLP.
 
3:01 PM
@not-rightfold But you did a lot of MLP.
 
user1804599
MLP is fun!
 
user1804599
I love MLP!
 
That Cookie Clicker game sure gets dark.
 
Ell
you're still playing? :P
 
Of course
 
3:04 PM
Hi all. I'm looking for an explained implementation (not use) of unique_ptr and shared_ptr. Do you guys know of any?
 
Ell
boost::shared_ptr I guess
not sure about unique_ptr. I thought it needed compiler support
 
Ell, boost production libs are terrible to read because they have so much macros supporting old compilers
 
@Ell Nope.
@JohanLundberg Nobody would be sufficiently insane to go to the effort of writing a Standard library component purely for exposition.
 
unique_ptr is trivial.
 
Cat, Great.. I would like to understand the motivation for the various overloads, arrays support etc.. Could you teach me? ;)
 
3:10 PM
No.
 
@JohanLundberg That is a completely different thing to what you just asked.
if you want to know why unique_ptr has the specification it does, ask the people who wrote the specification.
 
user1804599
Oh God.
 
user1804599
> Returns all public statuses.
 
user1804599
I wonder how much data would get transferred per second.
 
3:15 PM
@not-rightfold Bandwidth is cheap.
 
@DeadMG, yes true but either would do. There should be a technical report from when it was proposed for standardization...
 
@JohanLundberg Yep. But what you'll also find is that much of the real work takes place in Committee meetings and private Committee mailing lists, the details of which you will never, ever, learn.
 
ahhhh
food is great
especially food you prepare yourself
 
hmph
lucky for some
 
3:30 PM
@EtiennedeMartel It adds up quickly.
 
I like cook for other people, the more the better ... but I don't have the time or the patience to cook a feast everyday
 
i have no clue as how to use mysql workbench :(
 
Ell
@GamesBrainiac what are you stuck on?
 
@Ell how do you even run a query on this thing?
 
Ell
@GamesBrainiac well have you logged into the database?
 
3:32 PM
You type the query and press butan
 
Ell
^
 
@Ell connected to database, now i just need to load a sql file
 
Ell
Or type it in the box?
 
@Ell Got it to work. You got to press the little folder Icon on the query place :P
hey, this aint bad, it can export to json as well :P
 
@GamesBrainiac don't use mysql at all
problem solved
and your camels healthy
and your children many
and ...
 
3:39 PM
@BartekBanachewicz I wanted to use postgres :(
 
@GamesBrainiac I wanted to be a barista in Starbucks
 
But my Boss said "Screw Postgres"
 
@GamesBrainiac a proper response to that is "screw you!"
 
@BartekBanachewicz Don't worry, there's still time :P
 
In other news, I'm reading Fender's '56 Strat reissue review
I have no fucking idea why people are so apeshit about "reissue" models
"vintage" sounds like a buzzword that's overused as much as "webscale"
 
3:41 PM
"Mongodb is webscale"
:P
 
user1804599
Less.
 
user1804599
I couldn’t care it.
 
user1804599
@GamesBrainiac Use it anyway.
 
user1804599
MySQL is piece of shit.
 
Ell
you're a piece of shit
 
3:50 PM
There's literally no good thing about MySQL
 
user1804599
@CatPlusPlus There is one good thing about MySQL.
 
Ell
it can has records
and schemas
you're a fucking liar.
and queries
 
user1804599
That it's possible to uninstall it.
 
user1804599
> Try a new browser with automatic translation. Download Google Chrome.
 
user1804599
3:54 PM
Advertising Chrome’s very worst feature.
 
user1804599
Congrats, Google.
 
That's not the worst thing about Chrome
 
user1804599
It is.
 
user1804599
I care even less about the fact it's proprietary software.
 
That's... not even a thing. There are worse things than stupid translation crap that can be easily turned off.
 
3:55 PM
@Ell If it did not have things things, it would not even be considered a database
 
It's hardly a database with those things.
 
Ell
God you guys are never satisfied.
 
(Also not every database is relational)
 
Ell
lern2appreciate
 
user1804599
lern2quality
 
3:56 PM
Yes, appreciate fucking broken piece of shit tools made by incompetent idiots
 
@Ell saying that bad software is bad is not that
 
Ell
@BartekBanachewicz but every software is bad apparently
I don't care, I'm leaving anyway :P
 
@Ell every software has flaws.
 
user1804599
Why don't you go live in Ethiopia? Living there is cheaper than in UK, and you'll sure be satisfied anyway.
 
Ell
@not-rightfold because I'm satisfied already :3
 
3:57 PM
:thumbsup:
Every software is bad, yes, that's what "MySQL is bad" means
Perfect display of logic
Have a cookie
 
user1804599
You're a cat. You have no thumbs.
3
 
user1804599
Fuck you, YouTube. Why do you require Flash for some videos. Piece of shit.
 
I want a YT channel that makes fun of people defending broken shit
 

« first day (1078 days earlier)      last day (3855 days later) »