« first day (3189 days earlier)      last day (1984 days later) » 

13:00
I mean the excel sheet
and I dont mean Http status code 500
I mean new Exception[500]
500 frigging exceptions
Oh it throws exactly 500 exceptions
to be exact, 498
Software is very much about being exact :)
I have an immediate dispute to that
to be more exact, a fuck ton of exceptions
13:01
"Object not set to instance of Object"
How is anything about that error EVER exact
wut?
Spoiler: its not
@Wietlol i'm responding to @BlackSquirrel's comment
Reference is not set to an instance of an object
not Object
whateverthefuckingexceptionmessageis
that error is the bane of my existence
"Something is wrong, but i'm not going to tell you what"
#longlivekotlin
13:03
#getout
#whereyouneverhavenullpointerexceptions
@CaptainSquirrel Its very precise, it tells you your program dereferenced a pointer to exactly nowhere :)
@BlackSquirrel quiet you
LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA LA
I swer
i'll kik u
in2 the sun
13:10
captain squirrel = comrade kim
morning guys
Good afternoon
How's Amazon2 coming along?
Harry = a 12 yr old wizard boi
@BlackSquirrel you didn't hear? I got a new job I'm leaving him a shitty github
with some documentation
13:14
hope he doesn't have your home address
That says "You are on your own now mic drop"
hey guys im probably dumb af but i keep drawing this error
Maybe don't draw your errors?
mr5
mr5
then don't draw it
use MS Paint for that
are you an artist or a developer, man??
13:15
>:(.....
InvalidOperationException: Collection was modified; enumeration operation may not execute.
Ooooh so not functional
!!is Samuel an artist
@Harry Of course not
!!is harry a wizard
@CaptainSquirrel No
13:16
HA
List<Category> categories= await _context.Categories.ToListAsync();
        if (Name != null)
        {
            foreach (Category item in categories)
            {
                if (item.ParentCategory != Name)
                {
                    categories.Remove(item);
                }
            }
        }
        return View(categories);
FUCK YOU
Sorry cap, you seem to have spelt yes wrong
@Sam don't modify a collection while enuemrating it
!!is harry a wizard
13:16
You are adding/removing to a list whilst also iterating over it
@CaptainSquirrel Of course not
:)
Again, cap you are getting your words mixed up
!!is harry a wizard
@Squirrelkiller can you explain what you mean
?
@CaptainSquirrel Indubitably
13:16
!!Are you lying?
@Squirrelkiller But of course
HA
@SamuelWakeman As people say - you're removing an item from categories while enumerating. That doesn't work.
HAHAHA
CAP IS LYING @Harry
What you want to do is return a new list without the offending items.
13:17
YOU ARE A WIZARD
@CaptainSquirrel shes lying about it being INDUBITABLE
SHE WAS LYING IN GENERAL @HARRy
!!googleme indubitable
WHO IS HARR
13:18
!!is Kieran a clot
@Harry Of course!
oh an adjective for doubt
:)
wtf is a clot
13:18
!!googleme clot
Its one of those shitty fucking made up words isn't it
List<Category> categories= (await _context.Categories.ToListAsync())
                            Where(cat => Name == null || cat.ParentCategory == Name);
mr5
mr5
@Squirrelkiller I thought it would be undoubtable
UR CALLIN ME A BLOOD CLOT?! @Harry
13:18
!!googleme clot urbandictionary
@mr5 I would have constructed the same, yeah
!!is harry a child
@CaptainSquirrel Probably
13:19
I never doubted that
!!is Harry's last name potter
@CaptainSquirrel Yes, absolutely
OH MY GOOOOOOOOD
Harry is a wizard confirmed
13:20
-_-
OWNED
Oh come on cap
wait is caprica six a bot or not
?
@SamuelWakeman Not a bot. A Cylon.
13:22
whats a cylon
Guys. Leave Cap alone. The room is unreadable.
!!c#
@SamuelWakeman:

var categories = categories.Where(c => (null == Name) || c.ParentCategory == Name).ToListAsync();

        return View(categories);
May 5 '16 at 15:17, by BoltClock
THIS ROOM IS OUT OF CONTROL
13:23
Also, since this is a public room and not your own living-room, kindly dial down the style.
lawd its warm
@CaptainObvious is it warm over the river?
Warm af in town
Roasting in the office
mr5
mr5
can't believe this is only $40
@CaptainObvious glad its not just me
I'm so glad i drove in today
@KendallFrey you about?
Regexish question for you
so how can something be regex ish
Am typing to explain now :D
I have a string & in that string i can have none, one or many hyperlinks in it
Along with other html elements
which may or may not be there depending on what is being rendered at that given time
mr5
mr5
@AvnerShahar-Kashtan what about a code base for 3 developers? Should we still practice the use of PRs? I'm the one who's going to review since the 2 are kinda new to the following concepts: creating abstractions, making their code reusable, boiler plate free, strict coding conventions (including but not limited to 1 line break separator for each method, indentation in XAML, switching of case conventions [Pascal, snake_style, camelCasing, etc], brackets), not writing code in code-behind files, ...
oh good, so you're basically looking for a means to parse html?
13:36
._.
But specifically hyperlinks
now you have two problems :P
cuz i need to add a tracking code to them
I took this ticket thinking it would be simple
boi was i wrong
is there not some way you can distinguish the hyperlinks so they're easy to extract?
if there isn't, don't go that route
not really
13:37
it leads to bad things
only possible way would be via <a & /a>
well if you're guaranteed they'll always start and end like that, that's a good start
would there be a tags which you don't want to extract?
any that aren't a hyperlink
tell you what, before we get down this road (specifically because i don't think extracting would be the best idea)
13:38
@mr5 Ask yourself this - what does it mean to commit a changeset to master/develop? If the answer is "any code pushed to that branch will be part of the next revision/version", then ask yourself this - do you want any of three devs to be able to push code into that version, without anyone else knowing what they did?
I need to take the contents of a rich text field (which may or may not contain any link/links) & add a tracking code to the links in said field
you could have a pseudoalgorithm which searches for http:// and https://
but don't expect that to work 100% of the time
The link will only have those if they are external links
which they won't be 100% of the time
ouch
13:40
So basically I could write in plaintext that I'll have the soup/salad, and suddenly soup/salad is a valid link?
@CaptainSquirrel Do you have any guarantees about the structure of the text? Say, it will always be a valid HTML snippet, and you only need to modify the links in <A> and <IMG> tags?
@AvnerShahar-Kashtan not really
Because its a html enabled field, it could literally contain anything
btw @BlackSquirrel ty that worked but one question why did this work earlier if its the wrong way to go about about it?
    public async Task OnGetAsync(string id)
        {
            title = id;

            Subcategory = await _context.Subcategory.ToListAsync();

            foreach (Subcategory item in Subcategory.ToList())
            {
                if (item.CategoryName != id)
                {
                   Subcategory.Remove(item);
                }
            }
?
@SamuelWakeman Ctrl-K! Ctrl-K!
NONE EDITED CODE IN THE CHAT ROOM, RED ALERT!
13:41
@SamuelWakeman Because of your ToList call in the foreach. ToList creates a copy of the list - so you're iterating over one list, but removing from another.
oh what a hack
i c
but i think that where method that works like this
is probably faster isnt it
var categories = await _context.Categories.
                Where(c => (c.ParentCategory == Name)).ToListAsync();
@BlackSquirrel's is almost certainly quicker, because (assuming _context is an EF DbContext) it means that the filtering is sent to the DB.
mr5
mr5
@AvnerShahar-Kashtan right now, I'm letting them push to develop branch (we just started to practice Git Flow from this new project), and I'm doing the review in develop branch. Adding bunch of TODOs and informing them as well in chat. It's kind of hassle but that's the only thing available right now. Well, I am still unsure how do I distinguish Master from tags since if we merged dev into master, I consider that as RC already.
I think I kinda need PRs though
Whereas in the loop scenario, you're retrieving all records from DB to memory, then removing the ones you don't want.
@mr5 We don't use proper gitflow, but it's pretty similar in concept - devs create feature branches, work on a (small) feature, and create a PR to master. Then a different dev (in our case it was any other dev, but it can be the senior dev if you prefer) go over it, adding comments, and approve it when satisifed, and then it's merged to master. This makes sure that there's always a second pair of eyes.
on aside note which one is correct: This
for(whaterver)
{
}
or this
for (whatever){
}?
13:45
The advantage here is that the review is done before the code is merged, not after.
@SamuelWakeman Ha! This is one of the longest running holy wars in the development world.
i like the top because i like the brackets lining up
It doesn't matter. It's a matter of style and convention. In C#-land, the first is much more common, so if you're looking for a style for yourself, it's best to stick to the common convention. But in a team, use the shared team style.
so it only matter once im in a team
got it
otherwise do it how I want to do it and what makes sense to me
Go for the first because 90% of C# code you'll encounter - documentation, open source, tools - will use that style.
@SamuelWakeman And most importantly, be consistent.
mr5
mr5
13:48
@SamuelWakeman I use the latter in Java, JS, C++, and PHP whereas C#, VB.NET for the former. The only thing in common is I always add space after the keyword for then followed by the enclosing parenthesis (whatver)
how do I diagnose target framework issues?
I built a dll, and referenced it in another project
the IDE says "all fine"
but when I build, "The type or namespace name xxx could not be found (are you missing a using directive or an assembly reference?)"
the reference is there
but this issue happens when it cannot be used because of target framework
(both are dotnetcore 2.1 tho)
!!htmlwithregex
For you, Captain
@mr5 you mean like...
if( b )
{
    doStuff(); }
14:02
lmao
I forgot about that post
I've changed my angle of approach now anyway
Ideally i still want to use regex, but only to get me the links from the string
> This post is locked to prevent inappropriate edits to its content. The post looks exactly as it is supposed to look - there are no problems with its content. Please do not flag it for our attention.
THEN, i can loop through them and replace it with an altered version of itself
However like usual, regex is boiling my brain
Why is there not a regex generator online ANYWHERE that allows me to enter my string and then select exactly what i want it to trigger on
Oh he's already got it
14:05
knowing when not to use a regex is as important as when to use one imho
I can't see any other way to match the tags
everything looks like a nail when you're holding a hammer, so they say
@CaptainSquirrel just reference beautiful soup and be done with it already.
without writing a shit load of logic to determine when the hyperlink has actually ended
@BlackSquirrel does this look like the python room to you? >:(
I can't just import a package to do what i want
import "braincells"
its times like this when dislike programming
and my brain
and the world
@CaptainSquirrel sorry I meant Html Agility PAck
14:08
When i've looked at that, its wanted an actual page to parse
i only have a string
html fragment? not entire document?
Hi guys
The last character in my stream is lost!
@BlackSquirrel just a string
might not even contain any html
This is my code that I send to a printer:

var bytes = System.Text.Encoding.ASCII.GetBytes("I love how things are!!!");
NetworkStream stream = socket.GetStream();

stream.Write(bytes, 0, bytes.Length );
but only 2 exclamation marks are printed! So the last character is always lost
Fuck me
I've FINALLY found a regex that will do what i want
<\s*a[^>]*>(.*?)<\s*/\s*a>
14:12
oh god
wot
what the fuck is happening
what
I'm suspocious that it'll work that's all
uh
did no one else see that?
You can't just parse html with regex that short
SERIOUSLY DID NO ONE ELSE SEE THE WIERD TEXT ON THEIR SCREEN JUST THEN
14:13
you also can't parse html with regex period
What the fuck are you on about
@CaptainSquirrel maybe ? im not sure?
That's what happens when you try to parse regex
14:14
Your PC shits the bed
sec
Lemme try this again
I think i just found an easteregg
[citation needed]
They can't make the fuckign markdown work properly, I don't thinkg they're capable of easter eggs
<\sa[^>]*>(.?)<\s*/\s*a>
IT IS
ITS AN EASTEREGG
14:15
!!sandbox
@CaptainObvious Please go and play in the Sandbox
i have a video
That's pretty trippy
I feel like its a reference to that post
You saw it too?
14:17
Ya when I posted it myself in the sanbox
It's exactly a ref to the post, if you click anywhere it takes you there
Where would you even ask about that
Meta?
Anyway HtmlAgilityPack will parse html fragments, it doesn't have to be whole page and it doesn't have to be valid.
hm
i'll try this and see what occurs
14:22
send us a message form your phone if you can when your computer goes nuclear
that's mad
Check out AngleSharp instead of HtmlAgilityPack. It's far more convenient.
mr5
mr5
@Wietlol no
if (wietlol is harry)
{
    DoTheDishes();
}
@mr5 thats violating naming conventions
if (wietlolIsHarry)
{
    DoTheDishes();
}
its building bois
mr5
mr5
14:26
i"M an conventioN breakeR
last modified 25th June 2019
god bless cap'n o7
Is my heat sink supposed to be glowing like that?
It's rather warm in here
Hey, who turned out the lights?
w h o t u r n e d o u t t h e l I g h t s
tell you what you need rn kieran
!!hmm
14:32
feast your eyes
mr5
mr5
@Harry how did you know kieran?
wot
mr5
mr5
kieran was from an old C# chat generation
you're pretty new here so...
ive been here for nearly 2 years
mr5
mr5
wat
why did I only notice you here just few months ago?
14:36
Harry
chat user since
2018-02-02
ok about a year and a half
i was away for a while
chat user since 2016-10-31
rekt nerd
wait
that's not right..
when i came back mike asked me where tf id been
id been away for 5 months
I've been here almost every workday since I started
Get rekt noobs
s a d
Since you started??
Being a duck?
Quack Quack
14:40
whaaa, i'm confused
I could have sworn i joined in here when i was at my first job
but i just checked the dates on my cv and it was my second one
chat user since 2010
Did you change your login, maybe used a gmail/fb instead and didn't know it one day.. Being a noob-noob
I think i did
Infact yes i did
i've changed it a few times
Anyone have a free or open source(MIT) ZPL renderer that can take raw ZPL commands and draw PNGs or PDFs without connecting to a webservice like labelry?
14:44
IIRC my first SO account was with my first company email
Then i changed the email
i did the same
sooooooooooo
Regex.Split doesn't work the way i thought it would
It is just giving me the full string instead of the actual hyperlink
you're not doing it right
You need capture groups
14:47
Do you want the whole anchor element? Or just the href?
the entire anchor

« first day (3189 days earlier)      last day (1984 days later) »