« first day (2844 days earlier)      last day (2108 days later) » 

12:27 AM
var longMP =
                        DataList.StockDataList.Where(
                            x => x.STOCKNAME == stockName && x.OPENLOW - x.DIPLOW < x.PEAKHIGH - x.OPENHIGH)
                            .Select(x => Math.Abs(x.OPENHIGH / x.PEAKHIGH - 1))
                            .OrderByDescending(x => x)
                            .ToList();
how do i get the dates along with this?
this list is an ordered list of decimals, but i want to add dates along those ordered values
 
12:45 AM
  var longMP2 =
                    DataList.StockDataList.Where(
                        x => x.STOCKNAME == stockName && x.OPENLOW - x.DIPLOW < x.PEAKHIGH - x.OPENHIGH)
                        .Select(
                            x =>
                                {
                                    Day:
                                    x.DAY;

                                    functionX:
                                    Math.Abs(x.OPENHIGH / x.PEAKHIGH - 1);
                                })
im trying to do something like this
 
based on what do you want to match them?
 
i want to filter
and resulting list only has 'x.day' and functionx
so if i console.writeline([i].Day, [i].functionX)
 
> and resulting list only has 'x.day' and functionx
what more do you want?
 
organize by descending 'functionx'
var longMP =
                    DataList.StockDataList.Where(
                        x => x.STOCKNAME == stockName && x.OPENLOW - x.DIPLOW < x.PEAKHIGH - x.OPENHIGH)
                        .Select(x => Math.Abs(x.OPENHIGH / x.PEAKHIGH - 1))
                        .OrderByDescending(x => x)
                        .ToList();
this only grabs functionX
but i dont know how to include 'day'
each value is assigned a day
 
> but i dont know how to include 'day'
> and resulting list only has 'x.day' and functionx
 
12:49 AM
yes
 
you can use OrderBy and get the functionX value
 
for each value i need it's reference day
 
you already have that, according to what you just said
 
i dont have 'day'
 
> and resulting list only has 'x.day' and functionx
 
12:52 AM
it doesent work
it has errors
 
ok
try that
the syntax in your Select is slightly off
 
ah
so this is called creating anonymous types?
 
kinda
 
1:15 AM
nah i still cant get it
  var newList = from item in longMP2 select new { item.DAY, item.OPENHIGH , item.PEAKHIGH};
i cant do a function on this
 
you can still use your old code
 
nope
it wont let me do Day && functionX
 
also, you should provide names to those values in the anonymous object generation
 
var newList = from item in longMP2 select new { Day = item.DAY, Price = item.OPENHIGH + item.PEAKHIGH};
oh shit ur right :D
 
.Select(x => { day = x.DAY, functionX = Math.Abs(x.OPENHIGH / x.PEAKHIGH - 1) })
 
1:18 AM
thx
 
on a side note, what is with the naming convention?
 
i dont know
il fix it later
 var newList = from item in longMP2 select new { Day = item.DAY, MP = Math.Abs(item.OPENHIGH / item.PEAKHIGH - 1) };
            newList.OrderByDescending(x => x.MP).ToList();
why cant i keep 'day'
i need to orderby 'MP' and have 'day' updated
how do i do this?
like, why cant i orderby but keep all the other objects as well?
why does it have to return just MP
 
1:41 AM
OrderBy doesnt change the data, it simply changes the order
 
but it only returns what i ordered
 
(last time I checked)
 
i want it to return day aswell
 
#define "returns"
 
this object list has day and functionX values
i use orderby and all i get returned is functionx values
where is 'day' values ?
 
1:42 AM
can you make an MCVE?
 
javascript does this automatically
 
there are many things that JavaScript does, that is what makes it so horrible
;)
 
i want all objects returned
not just what got ordered
 
you get all objects
 
nope
i only get functionX values
Console.WriteLine(newList[ii].);
 
1:44 AM
show me in an MCVE
 
for (var ii = 0; ii < newList.Count(); ii++)
            {

                Console.WriteLine(newList);

            }
i cant do newList[ii].Day
 
reproduce the issue with some test data and create it in (preferably) dotnetfiddle.net
 
ok gime 1 sec
 
mr5
2:01 AM
o/
 
\O
 
mr5
your 1 sec times up
 
System.TimeoutException
 
okay
re-looking at my code im seeing where the problem is
 
mr5
what is E in MCVE?
I guess they add 'e' to distinguish from MCV(Mean corpuscular volume)
I don't know what MCV is, it's just the first result in Google
 
2:09 AM
I know what MVC is
it is something that people think only exists in ASP.NET
 
2:50 AM
@mr5 You may found this at some terrible question?
MCVE is Minimal Complete Verifiable Example
Every question should match MCVE by according the guidelines.
 
mr5
@nyconing oh I didn't notice the word "example"
 
3:37 AM
1.Minimal
2.Complete
3.Verifiable example
The rules wrote by programmer for programmer.
 
 
3 hours later…
6:10 AM
good morning sharperinos!
 
morning!
 
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' pleberinos!
Ima back and refreshed from ma holidays
 
lucky you :P
actually not so lucky, since the holidays are done, but you get my drift
 
I hope to be starting my own holidays in about a week
 
6:21 AM
And lucky me!
We got back 1 day before my ex-raid (pokemon go) invitation so i managed to snatch a mewto
:D
 
I imagine that's super rare
I never saw one pop up when I played pokemon go
 
Welp depends
 
ohayou
 
The way it works is:
You Raid in Arenas (fight stronger version of nomral/legendary pokemon).
One Arena in a certain area has a chance to spawn mewto.
One can only raid that mewto if one gets an exraid invitation for that arena at that specific time.
You have a chance to get invited by raiding at that arena at least once.
Hope that's enough info @Neil :D
 
Yeah, I never really got the arenas
 
6:26 AM
Did you stop playing before the great arena update?
 
No idea
 
Gooood morniiing CeeeShaarp!
 
Then probebly yes.
It used to be you could have 10 pkm in 1 arena, now it's 6 and they loose motivation (health) over time.
 
Squirrels are back in town!
 
making arenas way more dynamic
Heyho @Squirrelkiller howdoyoudo?
 
6:30 AM
Not bad for standing up this early again! How's your first day at work?
Oh shit guys. IT was jsut here. My 2nd screen jsut got upgraded from 4:3 to widescreen. C# chat is huge now.
 
Good use of widescreen
 
for those extra-long lines of chat text
 
Ima all allone and there is nobody here besids me.
+ somebody stole my dan
 
also, when did everyone just up and decide 4:3 proportions were not good enough?
It seems that all modern monitors have widescreen display
 
6:43 AM
the killerino:
earns 500€ more a month than me but has a rubbish hardware :D
@Neil widescreen gives you the option of 4:3
 
Thinking about using it 9:16 though
Also what's a dan?
also brb rebooting
 
!!urban dan
 
@Squirrelintraining Dan the actual [ray of sunshine]. also [a cute] [egg].
 
mr5
Vrei sa pleci dar nu ma numa iei
 
numa numa iei, numa numa numa ei
@Cap wut
 
mr5
6:54 AM
@Squirrelkiller hey do you understand that language?
 
Morning
@mr5 mia mintest des ochi taii (or something like that)
 
@Squirrelintraining ok, but you're paying for 16:9
Not like if you promise to only use 4:3, they'll give you a discount
 
Who's paying for their workplaces monitors?
 
mr5
7:12 AM
@HéctorÁlvarez I have delicate eyes?
 
shrug Don't look at me, that's what the song says.
 
Wasn't me?
 
What did the fox says
 
mr5
 
ding ding ding ding ding dingering...
 
7:14 AM
Miau?
 
mr5
numa numa iei, numa numa numa iei
chipul tau si dragostea din tei
mi-amintesc de ochii tai
 
Hah, close enough
That's romanian isn't it?
 
mr5
yeah
I just copied it from Google.
You thought I am good at Romanian? Haa!!
 
IIRC it talks about some tree where the leaves are used to make team
 
mr5
Well, I thought they were referring to airplanes (cuz in the official video, they were riding in top of an airplane)
But reading the lyrics, it seems the it's about "take me away" or something like that
 
7:18 AM
what loads first boostrap or javascript?
 
mr5
never heard of trapping a boos
or a rap of a boost
 
*boot
:x
 
Sitting on a sofa at the Lenovo service center. Waiting for my laptop.
 
7:31 AM
@AvnerShahar-Kashtan you're in chat using your phone?
 
Why not send it there by mail and work on another pc while waiting?
 
So if I spam high-rez images in chat right now, I'll consume all your monthly bandwidth? >:)
 
@Neil Porqué no gifs?
 
also gifs
 
That will also drain his battery
 
7:33 AM
good mourning
 
Good morning
 
Morning o/
 
@Squirrelkiller Good thinking
 
@Neil I am and it sucks.
 
listen up. I tried to go to the service with my car. I had an appointment, because all the powa lost. Tried to start the engine 10 times, didn't budge. Than called them, that I can't start the car. They gave me a phone number of the car-tow company. When I hang up the call, I gave a last try, and the car started.
 
7:36 AM
@AvnerShahar-Kashtan Tú
 
@Squirrelkiller because getting another PC and getting everythibg working on it is a pain, and will probably take a couple of days to grt my laptop back instead of a couple of hours.
 
@ntohl ouch.. not too late to cancel the tow you know
 
I just read, that we are in a little bit similar position with Avner
 
@Neil I have a 20GB plan. Do your worst.
 
@ntohl Maybe you flooded the engine
 
7:37 AM
@Neil I haven't called them yet. Somehow I managed to get to the service. My car broke hard
 
which would explain why it started after a little bit of time
 
@ntohl You'd never heard about preliminaries
 
@AvnerShahar-Kashtan You clearly underestimate my porn collection size
 
If you want her to get started you can't go straight into the hole and twist, you have to give her some time
 
11 hours ago, by mshwf
Why C# interactive window prints: 0.20000000000000018 for 4.2%1,
while console window prints just 0.2
?
is it a subtle difference to ignore?
 
7:39 AM
@mshwf Probably a formatting thing.. (probably)
 
Lol, sounds like a math problem...
the extra 18 at the end, where does that come from?
The answer is .2 clearly, maybe a problem in C# interactive?
 
@Neil most likely it got a bad petrol.
 
just subtract 0.00000000000000018 from every calculation. Problem solved!
 
@mshwf Because floating point numbers are an eldritch mystery dreamt up by the Elder Gods. Like reality itself, they present a clear and understandable facade, but beneath lies madness which occasionally bubbles to the surface.
3
 
@ntohl if you put in diesel instead of gasoline, you can fix it by adding gasoline
 
7:41 AM
Maybe there's no power to represent an exact 0.2?
 
though you're sort of in the shit if it were the other way around
 
@Neil I think the tank have to be removed and cleaned out.
 
Read up on floating points and why 0.1+0.2 != 0.3
 
@ntohl sounds expensive :(
 
@Neil yeah.
 
7:43 AM
@AvnerShahar-Kashtan Dreamt up by Lovecraft himself
 
Turns out he was a computer hobbyist
 
@Neil other way around. Early computer pioneers were Cthulhoid cultists.
 
Reminds me of the laundry files by Charles Stross
it's like lovecraft meets programming humor
The idea was that there was this weird loophole in the universe which presented itself only to people who manage to figure out how p=np
 
@ntohl it drive OK after it started?
 
7:46 AM
and figuring this out let you use magic, in the form of algorithms (aka spells)
 
@ABuckau nooo. Not at all. I have ~1800 rpm maximum with full throttle.
60 kph with full throttle on 4th gear
 
@Neil I started The Atrocity Archive some time ago got sidetracked and had to give it back before finishing. It's the first in the series, I think
 
@ntohl standard transmission? Will it rev up in neutral?
 
@AvnerShahar-Kashtan yeah it is. How'd you like it?
 
in the console, was there an approximation?
aren't they both based on the same compiler ?
 
7:49 AM
@ABuckau manual transmission yes
it will not rev up
 
Go under hood and manually move throttle, check if will .
 
I left it at the service. They will manage it
 
Meh. Probably just take to shop.
: ) ..bad tps ; )
 
@Neil Didn't get far enough in to form an opinion.
 
I think you guys will appreciate that one
 
8:02 AM
@AvnerShahar-Kashtan I'd recommend it. It doesn't take itself too seriously
 
@Neil I'll add it to my unreasonably long to-read list.
My Kindle backlog is basically a stockpile for my retirement.
Same as my Humble Bundle collection.
 
Hahaha
I can relate
Why don't they make games like in the 00's any more?
(Sounds weird to say the 2000 decade as 00's)
 
I still have my caesar III save. And I continued to play it not long ago
 
mr5
what does await Task.Delay(1, cts.Token) throws?
OperationCanceledException?
 
I mostly play older games nowadays, the newer ones are too crowded with bullshit. Loot boxes, DLCs, microtransactions...
 
8:09 AM
Well, because they make 10's games now.
The past decade is a golden age for gaming. A massive amount of games, a huge indie market, fantastic games all around.
 
I want to get Battlefield V because apparently they removed the microtransactions, save the cosmetics, and give us a full game from day 1.
Indies are a double-edged blade.
I'm tired of pixel art abusers as much as I love certain devs. Bastion and Transistor are easily 2 of my most beloved games.
 
No, indies are a net positive. Not al are good, but not all pro games arw good. Not all AAA games are good.
 
mr5
Took me 2 minutes to search for it. If C# specs just allows the checked exceptions this wouldn't be a problem.
 
I have way too many games from humble bundle that I haven't even tried yet
 
8:13 AM
we all have
 
@AvnerShahar-Kashtan Indeed. What I mean is that indie devs have grown so much you get a shit ton shovelware nowadays and it's hard to find a good title. Not because everything is bad.
 
I made a category for games I haven't played..
 
For me, all the uncategorized games are yet to be played.
 
I find that today's games (at least the ones made by major gaming companies) invest way too heavily on the artistic aspect, and not enough on decent gameplay
They all look great graphically, but the gameplay tends to have major issues imho
This in general of course. There are plenty of exceptions like Rockstar
Valve (what games they do make these days at least)
 
Oh you reminded me of CNC Generals 2. Probably the best CnC they could have EVER released... cancelled after the major failure that CnC4 was
I really want Warcraft 4 to happen
Address the concerns of any long term fan.
 
8:20 AM
@nyconing who cares about examples?
 
This was legit the best RTS ever made.
 
as long as you are minimal, complete and verifyable, we are happy
i never saw generals 2
 
SC2 was also the king of macro RTS, but they decided to butcher it in favor of koreans
 
also, what would you want in WC4?
 
So many things
first and foremost, races.
 
8:22 AM
wc3 had races
 
If there was a reason to love Dawn of War it was the amount of playable races.
I don't expect to see 10 races
But at least add naga and rebalance the other 4
It doesn't make much sense to have a demon hunter working for the night elf race.
Some heroes are totally gimped and nobody plays them save for cheese strats at low level.
 
warcraft 2 was a great game
by today's standards, not great graphically, but it had a decent plot as I recall
so did warcraft 3
 
Stuff like the blood mage could be redesigned, but not in the current game.
Aye WC2 had some very different lore than WC3 or WoW
I'm more of a WC3 fan because... well it's aged so well
 
red alert 2 was a great game
age of empires 2 was a great game
stronghold 2 was a great game
supreme commander 2 was a great game (not as great as supcom 1 though)
warcraft 2 was a great game
generals 2 would have been a great game I hear
i see a pattern
can we write a regex that finds out if games will be successful based on their name?
 
Normally the 2nd game of a franchise is the first, plus all the stuff everyone wanted, and polished because the team now has a base to work from, and probably a better budget.
 
8:26 AM
i loved the plot for Arthas
It was so dark
 
Sure it's something like ^(\w 2)$
 
The golden age of gaming
 
Arthas is so underrated. The story for that man was so perfectly defined, you could tell the whole time that what happened next made sense.
 
Yeah, you sympathized with his actions every step of the way
That's what made it so great.. if he just decided to go crazy and become dark, it wouldn't have made sense
 
It's not so easy to portray how a paladin which is the son of an important person, but not the most powerful paladin by far (that falls to Uther) became corrupted while trying to help his people.
 
8:29 AM
Millennials will never understand
 
Another thing I'd love to see in WC4 is the newer heroes we've met in WoW. A worgen for example, or a draenei warlord.
 
Blizzard has done a great job at creating their own lore
 
you see, I also like WC3, but I would not care about any of the things you wanted in WC4
 
And please make the tavern have only actually neutral heroes. It makes sense to hire Rexxar to some extent, but doesn't make any sense at all to hire Azshara.
@Wietlol How's that?
 
what I liked about WC3 is the possibilities in the modding of the game
people made amazing modded maps where they turn around the entire mechanics of the game
introducing other genres into the game
 
8:31 AM
Yeah, that was a new concept, but it worked
 
And you think this wouldn't be enhanced so much on a new engine?
 
and ofcourse DotA, which started the MOBA genre (together with AoS iirc)
 
SC2 has so much better modding potential right now for this very reason.
 
@HéctorÁlvarez ow sure, a new engine is nice, but adding more races, rebalancing heroes and adding more lore literally doesnt do shit there
 
It does. Just not for you.
 
8:32 AM
Morning kids
 
@HéctorÁlvarez nah, it doesnt
 
But I'd definitely play the campaign from TFT to Legion or even Battle for Azeroth if they release a year or so after the WoW exp has.
 
I'd just want a great story
 
modders can add more races, rebalance heroes and add their own lore
 
If it connects to WoW or not, is somewhat irrelevant for me
 
8:33 AM
(adding more races was not natively supported in WC3 though)
 
Floating points are both awesome and an absolute nightmare
 
I'd want more variety and actual ranked seasons with a lot of people.
 
@LeeButler no, they are just awesome
... and an absolute nightmare
ok
 
Doing comparisons is a pain in the arse because you have to fuck about with tolerances
 
Races had to be added on a per-map basis, I don't want to play modded maps with additional races, I want the actual playable race.
 
8:35 AM
@LeeButler Useless trivia: Von Neumann never wanted floating points. He thought you should have integers, with other integers to indicate where the decimal place should be.
 
I just want 0.4-0.1==0.3 to be correct
@Neil That's literally what floating points are
 
@LeeButler I mean in-program support.. no official "floating point" values
 
If you play HotS and have tried the Alterac map, you've seen some new assets for footmen, grunts, etc.
 
Imagine if everything implemented floats in different ways
 
They don't look bad at all.
 
8:36 AM
It would be a mess to be sure
 
Its bad enough that you can run the same calculation twice and get different results as is
 
@mr5 I just got Dragostea din tei in my Spotify playlist.
Next in line: Going under by Evanescence
 
Yuma yuma yey, yuma yuma yuma yey
I have no idea what that song is about, but it's so catchy
 
It's something about some dude wants to mate under a tree that produces tea leaves.
 
mr5
The title clearly says that the dragon wanted to have a tea
 
8:49 AM
Oh yeah, right, how silly of me
 

« first day (2844 days earlier)      last day (2108 days later) »