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

9:01 AM
Well, the lab gave me back my laptop, saying that although it was one of the models recalled, there wasn't actually anything wrong with it. And I still have the temp going up and the fans blasting whenever I do the littlest thing, like open Chrome or VS.
 
mr5
Was your laptop got replaced?
 
So much for the 1.7 minutes repair
 
According to Google Translate: love of the lindens (Verified translation)
 
I suppose you first checked if anything was being... pumped? (that it is really busy a lot of the time)
 
Nope.
The recall check took 1.7 minutes.
Everything else was general stress testing.
 
9:05 AM
@AvnerShahar-Kashtan Sounds like an OS update broke something... Doesn't it?
 
@HéctorÁlvarez I don't know. I worked fine for 6 months, then started acting up recently. It could be all sorts of things - the latest OS update. Enterprise security policy update. General wear and tear.
@Wietlol There wasn't anything out of the ordinary, but it did seem that any app took more CPU than it should. VS would regularly take up 10-15% when idle. Chrome and Firefox both kept taking up 8-9% with very few tabs.
 
@AvnerShahar-Kashtan you dont see CPU usage 100%, RAM usage 100%, Disk writing/reading at full cap, etc?
 
@Wietlol RAM and disk are both low. CPU is constantly up, but not from one single app - everything just adds up.
 
10-15% when idle... and when not idle?
 
> VS would regularly take up 10-15% when idle.
Sounds normal to me
 
9:07 AM
@LeeButler Didn't use to do it.
 
I dont use vs, so i dont know :D
 
When I have 2-3 instances open, it's a pain.
 
@LeeButler I suppose your computer is a hamster :D
 
Intel's utility keeps showing that it has Thermal Throttling on, or Power Limit Throttling, or Current Limit Throttling.
Or all three, in various combinations.
 
@AvnerShahar-Kashtan you also dont have some os settings that lower the caps on the hardware?
like power saving mode, etc
 
9:08 AM
@Wietlol I disagree
 
hmm...
i want a ram upgrade
 
>1.7GB
Looool
 
how many visual studios can you open?
also, I dont suppose you have projects of this size...
 
Plenty. Although I current have one open with 34 projects in it taking up 1.3GB
 
i need to run that tool again that counts your code base
 
9:11 AM
Oooh good plan
 
one solution with 34 projects?
 
Yes
 
ew
 
This is unlikely, but maybe a core died?
 
@AvnerShahar-Kashtan isnt there a nice tool that allows you to check any hardware failures?
like speccy?
 
9:12 AM
Try stressing a single core by doing a single thread stress test and switching it's affinity
 
(I used it for my disk status, but i suppose it can do more)
@LeeButler how can you do a stress test on a single thread?
 
@Wietlol None that I can find. Battery optimization set to Performance. Maybe there's a Lenovo tool that overrides it.
 
By hammering a single thread?
 
how can you hammer a single thread?
 
@HéctorÁlvarez I think I would have noticed earlier. Also, I would see it reach 50% CPU only.
 
9:13 AM
(without an actual hammer)
 
@Wietlol Most CPU stress/benchmark tests have a single-thread test mode.
 
im still not convinced of how it would work, but okay
@AvnerShahar-Kashtan try speccy, see if it finds any irregularities
 
You don't know how threading works?
 
@LeeButler I dont know how hammering works if you use a single thread
 
Might be just the Spectre class 1 fix.
So now everything takes effectively 3x the previous amount of time if it wants to access the sealed kernel memory address
 
9:15 AM
Seems Lenovo's settings app has an "Intelligent Cooling" mode which tries to sense if the laptop's on your, well, lap, and optimizes for cooling, and optimizes for hotness and performance when on a desk.
Don't know how it works, but don't care. Disabling it.
 
What if I want a hot lap?
 
Go pay someone.
 
mr5
@LeeButler 32GB
can you share some
 
Nah
 
@AvnerShahar-Kashtan did it solve your issues?
after disabling the not-so-intelligent-but-still-attempting-to-be-cooling mode?
 
9:19 AM
I don't think so. Still early to tell.
 
its 11:20 (utc+2), its not early
now tell :p
 
G'day!
 
Loading a small 2-project solution is taking about 2 minutes with CPU at around 50-60% all the time.
 
still havent tried speccy (or other tools)?
 
@AvnerShahar-Kashtan In my experience, this tends to happen to older laptops
 
9:26 AM
@Neil It's 8 months old, and high-end.
@Wietlol Speccy just gives me the specs. Nothing new there.
 
Check for malware then
Things like this don't tend to happen without a reason
 
for me it also gave temperatures, statusses, etc
 
using (var p = new ExcelPackage())
                {
                    //A workbook must have at least on cell, so lets add one...
                    var ws = p.Workbook.Worksheets.Add("MySheet");
                    //To set values in the spreadsheet use the Cells indexer.
                    ws.Cells["A1"].Value = "This is cell A1";


                    //var xx = p.GetAsByteArray();




                    using (var memoryStream = new MemoryStream())
                    {
                        Response.Clear();
why I don't get exported excel file as a download
 
Yeah it worked for your hard drive because they're designed to give diagnostic info, and speccy is designed to read it
 
then any other tool :D
 
mr5
9:29 AM
Is an SSD prone to a SMART error as well?
 
@Wietlol Yeah, temperature I already have tools for that. Statuses is just what's reported by the hardware. Again, already checked that. Nothing suspicious.
 
mr5
The SMART I have encountered on my very first laptop was the most chaotic thing happened to my files. I have lost all my 2D games because of that
 
then iDunno
 
All the SMART attributes are in the Good range. Temperature is a bit too hot, just like the CPU.
 
Maybe a safe mode low level scanner to check for errors and malwarez?
 
9:31 AM
im not even sure what the CPU relates to
 
Hiren's probably has a tool for you
 
so, if CPU is always high (and not some weird shit going on), what do you upgrade?
 
Heh, but an EK custom LC loop.
In your laptop
 
So... uh guys
 
Let's try the newest SSD firmware released... checks... 4 days ago.
 
9:32 AM
I just figured why my query took so long
 
@Breathing Have you checked the actual response from the server?
 
No, oh, sorry. My mistake. A month and 4 days ago.
 
Are you getting any data?
 
if ram is high, you increase your ram, if disk usage is high, you get a faster disk, if network usage is high, get a better network, or network card, or attach via cable instead of wifi, but if it is just cpu that is high, im clueless really
 
@Xariez You accidentally created a cartesian sum that returned your data multiplied by all your other data?
 
9:32 AM
I don't..
I don't think thats correct
 
You accidentally pulled all the rows to RAM before filtering, rather than after?
 
You thought IQueryable = IEnumerable?
 
Heyho Avni o/
 
dbContext.Payments.ToList().Where(payment => payment.Id == 52962410).SingleOrDefault()
 
Well i tried removing all filters that had anything with dates to do
 
9:34 AM
@Wietlol Hah, that's a bad query. Good example.
 
And I think those tables are quite populated
 
@HéctorÁlvarez you would think so?
 
@Neil OH FORGIVE ME
 
@Xariez Do you have any JOINs there? They can easily cause you to multiply the size of the dataset.
 
join m on n relations... but then m on n on o on p on q on r
that is not the n + 1 problem, that is the n * m problem :D
 
9:36 AM
@Breathing I will.. this time.
 
There's 10 joins in this query, Yes
 
@Wietlol Yes, if you call ToList() later on it should be so much faster.
 
no shit :D
 
Are you being sarcastic?
 
what? me?
nooooo
... ok, maybe
 
9:37 AM
I think he's stating that it isn't excrement
Just an observation, am I right?
 
ow neil -_-
on a side note, where the hell did you pull that word (excrement) from?
 
I pulled that from my ass...essment of the situation
 
It's a perfectly cromulent word.
 
That said, sorry for my incompetence, but is there any difference between this and this?
If so, what? Because I feel like there should be a difference, but i cant construct it in my head
 
@Xariez the second one is nullable?
this vs this? ?
 
9:41 AM
well I get this weird looking thing
 
@Xariez i suppose the where variation is quite a bit faster
 
@Xariez Are you using EF6? Hook into Database.Log and see the resulting SQL query.
 
but i am not sure how that gets translated to SQL (or whatever you are doing)
 
@AvnerShahar-Kashtan That I could do, I guess
 
mr5
@Xariez can we have the whole query?
the whole actual query
 
@Xariez I've discovered before that some queries I thought were straightforward were anything but. EF isn't perfect, and sometimes it screws up and creates horrific queries.
@Breathing That's a ZIP file.
 
@mr5 Would prefer to keep to examples for right now, but if nothing esle I'll do what Avner suggested earlier
 
huh!
but how can it create that I have used the above code
 
mr5
@Breathing dude. I have taught you months ago how to properly paste an image here
 
That's because an XLSX file is basically a ZIP File with data inside it.
 
9:46 AM
Wait, you can run a application AND attach to a completely different process at the same time in VS?
This changes everything
I've always had two instances running
 
@Xariez Sure. Good ol' Ctrl-Alt-P.
 
Alright, we're down to about 600k results from several million
 
What sort of result range are you expecting?
 
@mr5 sorry
 
Also you should 100% put as much of the filtering as possible into the database query, it's faster than you are at filtering
 
9:56 AM
Not sure yet, but i'm missing a lot of filters so it's kind of expected. It's just that i'm scared that once all filters are in, the test data will be "too" limited/limiting @LeeButler
 
yeah never give up! @mr5
@AvnerShahar-Kashtan so why am I not getting it in downloadable file?
 
mr5
@Breathing gratz! you have learned new today
@Breathing what are you expecting it to be then?
 
I suppose he expects getting served a download
When you figured it out, show me the code line, I wanna learn that too.
 
yes
 
mr5
does it need a user interaction?
or auto-dl on link visit?
if it's going to be on server side, I think you're looking for header: Content-Disposition: attachment; filename=file.zip
 
10:09 AM
So I'd go context.Headers["Content-Disposition"] = "attachment; filename=file.zip" ?
 
Sandcastle is awesome
 
trying
 
mr5
@Squirrelkiller yes. It should
according to mozarella firefox
 
Just set the mime type for the extension to whatever it should be
ez download
 
mr5
but it wouldn't download a plaintext or an html
or a pdf
or an image
 
10:14 AM
I just want .xlsx
 
mr5
You can try Lee's suggestion first
It's faster
 
And super easy if you have control of IIS
 
mr5
Uhm, I think it's the same if you're going to touch your server
 
Using Excel to test calculations :P
 
10:15 AM
oh
 
@WilliamMariager Wtf is that
 
mr5
@WilliamMariager looks like sepuku sudoki seduku sudoku
 
@LeeButler Conversion from 2d coordinate to surround sound values. My google skills didn't find anything to do it, so I had to make up something.
 
mr5
or a representation of a Gaussian blur effect
 
Each number in a 2x2 cell is each of the four speakers front left, front right, rear left and rear right.
 
mr5
10:17 AM
except the values doesn't look it's Gaussian
 
The outer numbers are the 2d coordinate.
 
How are the values worked out
last time I checked, 1-1=0 4 out of 4 times, not 3
(see top right)
 
They're not just added :P
It depends on the channel
So either add or subtract the x/y value, along with some min/max
 
But all of the channels are the same value on each axis, so why are the resulting ones not?
I don't even understand the 2 different axis tbh
 
What does that grid represent?
I mean it's a grid of speakers
 
10:20 AM
It's a grid of outputs
4 speakers per 2x2 cell
 
But what is it, volume?
 
The outer non-colored values are the x/y input
Yeah, from 0 .. 1
 
Like if you sit in the middle and want surround sound?
 
mr5
@WilliamMariager you mean, each of those holes I see in speakers have different frequency output?
 
I'm probably talking shit
 
10:21 AM
@HéctorÁlvarez Yeah, the center value, 0,0 would result in all speakers being at 100% volume.
 
so what is -1
left max volume?
 
mr5
we're all prolly talking shit. (I definitely am cuz I have no idea how sound system works)
 
Haha
It's basically for a user control :P
 
What is the x axis and what is the y axis
 
For configuring sound
The x and y are the user input on a 2d control
 
10:22 AM
Because they look like the same thing to me whichj makes the whole thing pointless
 
They click -1, -1 and it'll configure the front left to have full volume and all others to be turned down.
 
OOOOH I got the pattern.
 
mr5
plz tell plz tell
 
it's OOP, not OOH
 
So the more you move to the left, you keep hearing the left at full volume but dampens the right side
 
10:22 AM
x and y would surely be a single value, not 4
 
They are, that's just excel being annoying
Can't merge it into a single cell and still have references work.
 
But I still don't know what the grid represents.
Is it an audio source, or the listener?
 
Riiight that makes more sense
 
mr5
@HéctorÁlvarez so why it needs to be a grid and not just a two values e.g percentage representation
 
Because you have front, back, left and right. Speakers are at 4 corners
 
10:25 AM
 
mr5
@HéctorÁlvarez then y not 4
 
There are 4?
 
Orange = front left, green = front right, blue = rear left, yellow = rear right
 
Exactly 4 values per group
 
mr5
10:26 AM
(front: 25%, back: 25%, left: 25%, right: 25%)
 
he basically wants to convert the input space from the UI which likely looks like this optimaforums.com/forum/attachments/… to the output space which is speaker volume (4 speakers, one in each corner)
 
And each step shows each speaker volume
 
Oh you ass I just did that
 
I did it faster :P
 
@mr5 It's exactly that.
25% = .25
1 = 100%
 
mr5
10:27 AM
yeah, I mean, why put into grid
 
That's for me to visualize the calculations
 
Because it's more visual I guess?
 
mr5
if 4 values can accommodate all the settings
 
Like I said, I couldn't find any topics on it, so I had to make my own.
 
mr5
ooh
 
10:27 AM
it worked
arigato
:D
 
mr5
oh I'm sorry :D
 
From this I can visually confirm that the calculations hit the values I need :P
 
It's an absolutely disgusting way of visualising it, but probably the only logical way of visualising loads at once
 
@WilliamMariager But is this for a sound source or a receiver?
 
@AvnerShahar-Kashtan, @Neil, @mr5, @Squirrelkiller @LeeButler thank you!
 
10:28 AM
I mean, what do you do with that chart, you position something relative to you and listen ?
 
mr5
@WilliamMariager have you considered earth rotation and other intergalactic interference?
 
Sound source
 
So it's the configuration for a sound file.
 
Makes sense
 
10:29 AM
@WilliamMariager I did it in paint, and labelled the speakers in one of them
 
@LeeButler It's a balance between visualizing and not spending too much time visualizing it :P
 
anyone is familiar with pattern matching (like regex and stuff) as in familiar with a pattern matching engine?
 
It looks pretty to me.
 
@Wietlol REGEX
 
Your face is a pattern matching engine.
 
10:30 AM
I'm starting to think if it's even worth trying to make this SQL query into LINQ anymore or if i should just copy and paste it into some SqlCommand in C#
 
im clueless on how to approach certain patterns structurally
 
I feel like I got exactly what I want, but in SSMS i'm getting 50 rows, in my app i'm getting 9.
 
take for example this code
it includes very simple logic of handling with certain pattern rules
but the optional rule (in regex "a?b?c?") is annoying
 
What the hell is that
 
mr5
I wonder if RegEx can be used as another SQL
 
10:33 AM
what I tried is to give the optional rule a continuation rule, which is basically making it
if "a" matches, try to match the remaining rule ("b?c?")
if not, then move the iterator back and try to match the remaining rule ("b?c?")
but this will fail to do some more... advanced things very quickly
@LeeButler it is a paste.ofcode.org link
I C-sharpenized the code where I could
dont try to compile that shit
but i need some other approach than simply asking the rule if it matches
 
> return ?!^!?%!#$%?^>@&?#&>#^$>%^@#^!&!#$%@#%?
 
it works for literal token rules, token type rules (instanceof kind of stuff), a sequence of rules, etc, but will fail on rules like an optional rule (a?), a repeating rule (a+) or other stuff
 
Who the fuck thought this was something worth creating?
 
I dont know what to put there
 
@HéctorÁlvarez Now imagine a whole programming language designed to look as much as possible like regex.
That's perl.
 
10:37 AM
(@HéctorÁlvarez now make !!wietlol3)
 
!!wietlol2
 
Sep 13 '17 at 15:07, by Wietlol
i will most probably write my own
 
-_-
you did the wrong one
 
That was made previously
 
how do you not know them by heart by now?
 
10:38 AM
 
try !!wietlol
 
lol
 
I don't know where to put that.
 
no
 
I use both of those a lot.
!!wietlol
 
10:38 AM
Oct 6 '17 at 14:56, by Wietlol
i have no idea where to put it
 
lmao
 
close enough
 
First time is it
 
but now, you have another one
 
@Xariez l33t time
 
10:39 AM
> I dont know what to put there
 
!!sandbox
 
@HéctorÁlvarez Please go and play in the Sandbox
 
HEY I GOT A DECENT AMOUNT OF RESULTS
 
but then again, I try to know what to put there
 
Now, next step ... can I convert from a speaker configuration back to a 2d coordinate? :P
 
10:39 AM
It already exists
!!wietlol3
 
Jul 11 at 10:13, by Wietlol
I am an idiot.
 
wait... what?
 
!!wietlol3
 
who made that?
 
I feel like that should apply to everyone
 
10:40 AM
@Xariez Found the multiplying join?
 
!!info wietlol3
 
Jul 11 at 10:13, by Wietlol
I am an idiot.
 
!!info wietlol3
 
@LeeButler Command wietlol3, created by Squirrelkiller on Wed, 11 Jul 2018 10:15:07 GMT
 
@Squirrelkiller damn you!!!
 
10:40 AM
!!wietlol4
Hahaha
 
3 mins ago, by Wietlol
I dont know what to put there
 
var query = (from a in _context.table1.Where(x => x.Id == id)
                     select a).ToList();
 
This dude is gold
 
The wietlexicon
 
10:41 AM
Stop saying stupid shit and people will stop quoting you
 
@AvnerShahar-Kashtan I basically tried doing that instead of having the where statements on their own lines
 
We should have declared all those with array format
 
@LeeButler i mean... that comment is not nearly important enough to quote
 
Beg your pardon? That comment is generally starred on sight
 
i mean.... it is rare that I behave like an idiot, the moment should go into the history books, but still
 
10:42 AM
cough
 
:D
still, back to my issue, anyone has any guidance on it?
 
@Xariez We too have priorities.
 
I for example am meant to be working
 
@Wietlol Have you tried koilan?
 
10:44 AM
i use kiolain
but that doesnt change how you approach stuff
 
@Xariez (from a in stuffselect a).ToList() ? Why not just .Where(s => stuff) ? Also, can you delay the .ToList() ?
 
I could do that, but since i got to do it for multiple tables that I join into the query i feel like it's easier doing the way i do it
As for the .ToList() ..
I can, slightly
 
Do you have to ToList it?
 
At some point I do
 
It's usually more efficient if you don't. Although there are cases where you have to. Like some comparisons or to handle the loadtime at a controlled point.
 
10:47 AM
"One customer can have multiple entries", if we put it like that
Besides, this query is meant to be merged with another one, so there's that
It's just.. I don't know how yet
 
@KendallFrey do you have any ideas?
 
Have you guys ever had someone accidentally write a password or such into this chat, thinking another window is in focus?
 
once...
i think
 
@LeeButler, @HéctorÁlvarez
Better visualization :P
I just realized I could probably use wolfram alpha to do it.
 

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