« first day (943 days earlier)      last day (3988 days later) » 

10:00 PM
It was ok.
After that I created (yet another) Tetris game in Clojure. Just to get some experience with a bigger program.
 
user142019
I consider using Clojure for Android development.
 
Xeo
I'm off to sleep, g'night o/
 
user142019
Später.
 
user142019
I think I will for fun make a small Clojure application that downloads tweets, performs sentiment analysis on them and renders graphs.
 
@rightfold Cool.
sentiment analysis
 
10:02 PM
don't bother
 
with regex?
 
just randomly group them into one of two groups: "I want to fuck you" and "fuck you".
100% accuracy rate
 
user142019
That's not interesting and way too easy.
 
and tweet about it
 
user1182183
ok you guys will be saying that I'm an total idiot but here it goes:
 
10:03 PM
wait but all I want to fuck you are also fuck you
 
user1182183
I want to start learning opengl...
 
Ell
Woo
 
user1182183
bbut there is no C++ or C sdk?
 
user1182183
opengl.org no download links to ANYTHING
 
user142019
 
10:04 PM
Considering all of the C++ OpenGL questions I see...
 
opengl is done with <gl.h> and <glew.h>
 
user142019
@ThePet OpenGL is a specification.
 
It is in the Windows SDK
 
Ell
There is unnoficial opebgl
 
user142019
You can't just download any random implementation and expect it to work.
 
10:04 PM
@rightfold yes you can
 
Ell
Your driver supplies the implementation
 
user1182183
@rightfold ok so which opengl tutorial for visualstudio (if that matters) + windows do you guys recommend?
 
@ThePet use Qt
 
user142019
1 min ago, by rightfold
@ThePet http://www.arcsynthesis.org/gltut/
 
user1182183
@rightfold oki
 
user1182183
10:05 PM
@Mikhail no... just no..
 
user1182183
i'm not going to include 99999 MB's of shared DLL's just to launch a 50kb app
 
I should really start doing OpenGL instead of Direct3D.
 
Idk, I am using Qt for a high throughput OpenGL program and everything is working fine... If you have file size restrictions you are in a sad place. Also for Linux you would load the hosts shared qt libs, so you don't include them...
 
user1182183
@Mikhail I like to share stuff and it's a fucking pain in the ass if I want to show something to friends and have to send them tons of DLLs of whose I use only 0.01% of the functions :/
 
how fascinating
 
user142019
10:11 PM
(defn sq [x]
  (* x x))

(println (sq (read-string (read-line))))
 
user1182183
hmm
 
user142019
My first Clojure program! :D
 
user1182183
does anyone know how to do this? :
 
user1182183
		std::vector<std::pair<??,boost::any>> vec;
		slider<float> test();
		slider<int> test2();
		vec.push_back(std::pair<??,boost::any>(float,test));
		vec.push_back(std::pair<??,boost::any>(int,test2));
 
user142019
std::vector<std::pair<boost::any, boost::any>> :v
 
user142019
10:12 PM
But seriously why are you using boost::any.
 
user1182183
and how would I determine the type afterwards? :F
 
user142019
Also y u no emplace_back.
 
I'm testing my shiny CSS in IE
Suicide in 5, 4, 3...
Oh god it works
 
user142019
:(
 
I'm done with this
 
user1182183
10:13 PM
@rightfold because I do not want to make something like this (ugly wrappers with functions...)?
 
This never happened before
Actually paddings are off but fuck if I care
 
user1182183
@CatPlusPlus tested on IE10?
 
user142019
@ThePet Do you know what types you can possibly store?
 
user1182183
ah okay :P
 
user1182183
10:14 PM
@rightfold I only would store integers and floats
 
user142019
boost::variant<int, float>.
 
user142019
Don't use boost::any for that oh God.
 
user1182183
template<class T = int> class slider;
boost::variant<slider<int>, slider<float>>;
 
user1182183
you mean?
 
user1182183
(for second parameter)
 
user1182183
10:15 PM
of std pair
 
user1182183
ah nvm.
 
user1182183
Your guess was 1640.737 km from the correct location and gave 2018 points.
 
user1182183
lol
 
user1182183
I'm good.
 
user1182183
10:22 PM
first time in my life at something? xD
 
Ell
Fuck how the fuck does one girl have so much control over me
 
user1182183
@Ell because we need sex?
 
user1182183
and we get sex by being nice.
 
:cripes:
 
not sure nice maximizes sex
 
Ell
10:23 PM
Not even that though. Other girls have me that
This girl has also been a twat to me xD
 
Famous from tv maximizes it
 
You don't get sex by being nice
 
@Ell Fucking hell.
 
user1182183
Your guess was 1004.951 km from the correct location and gave 2178 points.
 
user1182183
yay
 
user1182183
10:25 PM
Game finished!
You got 7947 points in total.
 
user1182183
who beats me?
 
You got 8727 points in total. only played it once
 
user1182183
;>
 
user1182183
yeah me too
 
./meh >/dev/null 2>&1 & disown
 
user142019
10:27 PM
Yay rainbow parentheses.
 
user142019
What is fun to write in Clojure?
 
user1182183
Your guess was 451.249 km from the correct location and gave 2479 points.
 
user1182183
woo new record
 
Is it just me or does moving the view horribly lag everything?
 
user1182183
not just you (well not lagging my pc or browser but the image does lag yes)
 
10:31 PM
@rightfold Maybe some STM based concurrency.
 
user142019
> Let's learn a new language! The first thing I'll implement is STM-based concurrency!
 
user142019
The only language in which you start with concurrency is Erlang. :)
 
user1182183
ah damn it I'll just std::vector<slider<float>> float_sliders; and std::vector<slider<int>> int_sliders;
 
user1182183
too much complexity in boost variant
 
user1182183
also compilation errors..
 
Ell
10:37 PM
Woah I just saw the fucking hell
 
@Rapptz I've seen that.
 
huh
I think that eating that curry might have actually done me some good
 
@Rapptz He's ..good.
 
The 3 minute mark is when I began getting way impressed
 
10:41 PM
Wow, it's invisible from 5:20
 
Yeah I thought it was really cool
 
Your guess was 18265.835 km from the correct location and gave 23 points.
Wow, I suck balls.
 
greetings. So I have a bounty on a question of mine that has expired. Nobody really answered the question. Do I have to award the bounty or can I just let it sit?
3
Q: How to connect to a UDP video broadcast with GStreamer in C

ChimeraI have a small program that uses the GStreamer library to play videos from local files and videos on webservers using HTTP. How does one go about connecting to a UDP video broadcast in C using GStreamer? For example, what is required to play the streaming video at this hypothetical URI? 10.0.11....

 
forced to give iirc
If you don't, it does it automatically
 
@Chimera If not awarded, it goes to the highest voted answer posted after you bountied it, or the accepted answer, or no one if neither of those exist.
It's part of the FAQ, actually.
 
10:44 PM
@chris oh ok... great. thanks for the info....
 
user142019
Apart from the Unicode shit I already like Clojure.
 
@DeadMG :)
 
user142019
@DeadMG If you like curry a lot, try Haskell.
 
No fair, I was about to answer a question and my phone rang :p
 
@JohanLarsson Wow, this is a terrible game.
I don't know about anyone else, but I got completely generic landscapes that could have occurred anywhere in Europe, Australia, North America, etc.
 
10:48 PM
I got the side of a building.
Like right in my face, and I didn't want to endure rotating the view.
 
also, my second round I got 11291 points, so owned you all
 
> A ListView typically specifies the content for its ListViewItem controls by setting the ItemsSource property or the Items property. For an example, see .
See what, MSDN? What were you trying to say?!?
 
user1182183
@chris well the max distance between two points is 20000km :P
 
@ThePet Is there an award for being the worst?
 
user1182183
@chris yeah, 23 points
 
user1182183
10:54 PM
but worst.. 1 or 0 points xD
 
@chris It was from there (see "Remarks").
 
lol I got stranded in the middle of the fucking road
 
user1182183
if someone manages to beat the game with 5 points however, I think it will be an uber player
 
how will I get that
 
@Rapptz Guess either in Europe or NA.
also, if you can see the language of road signs, which side of the road they drive on, etc
 
10:56 PM
Deployed to production and of course it breaks
:qq:
 
Last round points: 2066Total points: 7036Round: 5/5
 
I once got the middle of a road
 
cool game I guess
 
but then I moved a bit forward and I saw a bus which was clearly labelled as "Santiago"
guess there, easy 3k points
 
@EtiennedeMartel Oh, yeah, I think I've seen that happen on a couple of other pages.
 
10:58 PM
also, IME the locations all tend to be Eastern Europe or North America in general
 
Ell
What are you guys talking about?
 
you don't want to know because it's a terrible game
 
37 mins ago, by Johan Larsson
http://www.geoguessr.com/
 
middle of the road again
 
I just learned Herb Sutter is Canadian. Didn't know that
 
10:59 PM
at least this guy's driving in the left lane instead of the middle
so I know the general location
 
user142019
Clojure is really interesting.
 
TIL Africans drive on the left side of the road
:(
> Your guess was 381.268 km from the correct location and gave 2545 points.
 
Wow, I got put right in front of a flag.
Now if only I could remember which country has that flag.
 
user1182183
eh damn I think I'll just define #define TYPE_INT 0 and #define TYPE_FLOAT 1 so I can use boost it with std::pair<short/*type*/,boost::any> because boost variadic seriously sux and I need a generic way.
 
11:02 PM
amagad, srsly? you suck
boost::variant is far better than what you'll write
 
user1182183
boost variadic is just giving me compile errors
 
then learn to not suck at using the reference
 
@ScottW I did. I thought it was Italy, but it was folded and I didn't see the centre part that made it Mexico instead.
 
user1182183
I mean variant XD typo
 
You know you were meant to be the world's loser when...
 
user1182183
11:06 PM
I almost never got anything in europe except england
 
I never had England
always had Eastern Europe
 
user1182183
	typedef boost::variant<slider<int>,slider<float>> test_type;
	std::vector<test_type> vec;
	slider<float> test();
	slider<int> test2();
	vec.push_back(test);
	vec.push_back(test2);
 
user1182183
USe boost variant instead of any.. sure..
 
Dang it I should be doing homework, but I'm playing this game.
 
user1182183
tons of errors -.-'
 
11:08 PM
slider<float> test(); <-- not a variable.
 
> Your guess was 0.125 km from the correct location and gave 6469 points.
:smugdog:
 
@CatPlusPlus Are you Google Earth's top employee or something?
 
user1182183
@chris he just knows where his house is..
 
No, it landed in some Polish village
 
It's kind of funny, there's a game this reminds me of. Hold on.
This: http://www.kongregate.com/games/crafics/globetrotter-xl
I always got Madrid, Spain right on back when I was trying to get the badge.
But barely ever any other city.
 
11:15 PM
Does anybody know of a Windows C++ performance profiling or analysis tool.
 
Hey, I got the same street view image as before.
 
@Mikhail VS comes with one, and I have also used AMD CodeAnalyst
 
Ahahaha that score sharing link is too long for chat and bit.ly
 
user1182183
@CatPlusPlus goo.gl
 
user1182183
I always use that
 
11:16 PM
@DeadMG I am still trying to figure out why the hell multi-threading my code did nothing. Anyways I need something that gives more info and I am on an intel system.
 
eh
 
user1182183
@Mikhail "multi threading my code did nothing"
 
Because your concurrency model sucks?
 
user1182183
with locks it's even worse if you don't have concurrent stuff(aka using locks)
 
I'm very good at this game
 
user1182183
11:17 PM
@CatPlusPlus You hit Poland : D
 
user1182183
We love you brotha XD
 
That's majority of my points
 
This is an interesting one.
 
Now onto deciphering systemd and how the fuck it works
 
@chris Check the road for cars, buses, etc. They can carry adverts which are obviously in a language, and you can see which side of the road is being driven on
 
11:21 PM
@DeadMG I would, but I can't stand to move around for each. That was in the middle of North America.
 
> Your guess was 3.127 km from the correct location and gave 6223 points.
I think this is my best one
 
@chris I failed to explain clearly to my wife why I thought googling company names and such as cheating, but that clicking the buttons to move around wasn't cheating.
 
@MooingDuck I'm oriented along those lines. It's more fun for yourself to figure it out by actually figuring it out.
 
Got 19553 points
whee
 
user1182183
boost::get<std::shared_ptr<slider<int>>>(i->second)->Process(); any suggestion how to solve the compilation error problem here? when I remove shared_ptr everywhere it works.
 
user1182183
11:29 PM
or.. isn't it just possible to call Process regardless of the type?
 
user1182183
with boost variant
 
I have no idea what the fuck your question even is
what is i->second?
what is slider<int>?
 
user1182183
typedef boost::variant<slider<int>,slider<float>,slider<double>,slider<char>> slider_type;
std::map<std::string,std::shared_ptr<slider_type>> Sliders;
 
user1182183
template<class T = int> class slider;
 
user1182183
i->second is the iterator of the map
 
11:30 PM
you have a shared_ptr to the variant, why would that implicitly become a shared_ptr to it's current contents?
 
wut
why do you have all those specialised sliders
 
user1182183
so I have to change it in boost variant and remove from map definition?
 
wat, no.
 
user1182183
@Rapptz different values of a slider for controlling NXT devices
 
user1182183
(motor power (char), rotation(float) etc..)
 
11:32 PM
are you trying to have a variant where each element is a shared, or are you trying to share a variant?
 
user1182183
@DeadMG where I allocate sliders with new yes..
 
then of course you have to declare the variant as shared_ptr<slider<...>>
 
user1182183
ah okay
 
how the fuck else could it possibly know that you intend to share them?
 
user1182183
@DeadMG sry :4
 
11:35 PM
the most basic tenet of using every programming language, ever, is that you have to tell the machine what you want, and if you tell it something else, it is not going to psychically divine what you meant
 
user1182183
// NOTE TO USER :
// Compile error here indicates that the given type is not
// unambiguously convertible to one of the variant's types
// (or that no conversion exists).
 
user1182183
damn, shared_ptr is unconvertible?
 
unconvertible to what?
 
user1182183
I think I made a mistake,
 
user1182183
ah now it compiles fine.. heh one comma too much
 
user1182183
11:40 PM
trol compiler
 
@DeadMG en.wikipedia.org/wiki/Garbage_in,_garbage_out and "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?"
huh, never heard of "Garbage in, gospel out" before, but it makes sense
 
I hate you alL, unfortunately. I don't know why..
maybeee goto bed..
Ratted or what?
 
user1182183
oh well, my brain already hurts and I need to reverse some looong code now... ;f
 
user1182183
data.current.X = data.minimum.X + (T)((float)(data.maximum.X-data.minimum.X) * (((sliding.pos.X+(sliding.size.X/2.0f))-(box.pos.X+(sliding.size.X/2.0f)))/(((box.pos.X+box.size.X)-(sliding.size.X/2.0f))-(box.pos.X+(sliding.size.X/2.0f))))); Well, now I need to get sliding.pos.X from data.current.X xD
 
user1182183
wish me good luck ;f
 

« first day (943 days earlier)      last day (3988 days later) »