« first day (2448 days earlier)      last day (2726 days later) » 

00:32
@KendallFrey lol!!
00:45
@Steve'saD LOL!
01:28
@KendallFrey bloop
Hi guys. I'm having to work with some ASP.NET code for a project, but I'm getting a weird error when I try to build it. If I post the error, could someone help me out?
@McLemore maybe
01:44
tonight is a late night programming night.
I like these guys' Civ V videos
Alright. Here's the error: hastebin.com/raw/ugepifaqaq It's confusing because that file does exist and I can't find anything that could be wrong with it. I've tried googling this, but the only thing I can find that mentions it is a very poor question on SO whose only reply was to google the error message, so there's your daily example of recursion in real life.
There is no <UsingTask> declaration in the .csproj, so that part is bust. I just honestly don't know what the problem could be.
mr5
mr5
@McLemore "An attempt was made to load a program with an incorrect format"
have you double checked this?
why is this becoming a fb timeline
02:09
@KendallFrey Do you ever sleep? lol
Why do so many people ask that
You could easily determine my sleep schedule by looking at my history
Pfft, I'm not gonna dig that much, I just noticed that I never really see you not online lol
SO chat tabs are never closed
 
1 hour later…
mr5
mr5
03:40
 
2 hours later…
mr5
mr5
05:42
tis awesome
I never knew chrome dev tools has a built-in syntax highlighter and a dark theme
say whaaaat
mr5
mr5
and just knew also that async/await also exist in js
those are the reasons I dont really use it
mr5
mr5
and and... the lambda expression too
y not?
definitely, I knew syntax highlighter exist before, it's just more noticeable in dark theme =P
05:59
Good morning.
06:18
I really dont understand xpaths. Does anyone have a tool I can use to generate the correct xpath to select a specific node. I found one online but the xpath doesnt actually work :\
It's not too hard once you get over the initial epiphany.
Haven't used it, but this looks nice:
thanks Il give that one a try..
hopefully I dont have to change my xpaths all that much...
Morning-o!
oh... Lol
avner thats the one that isnt working for me...
I see.
Works fine here. I put my app.config in it and it seems to work.
I mean, the xpath it generates probably isn't the one I would write myself, but it does accurately describe the path.
06:22
it gives an xpath that I can't actually verify works, on any of the Xpath test sites... and my path isnt working in c#... actually my program is throwing "System.Xml.XPath.XPathException"
when i use the xpath that site generates
"/feed[@xmlns:live=\"http://www.live.com/marketplace\"]"
Thats my xpath (had to use \ to escape the inner quotes)
Namespace definitions might behave different than other attributes.
What are you trying to accomplish, by the way? There may be much easier ways.
err Im trying to extract parts of data from a large xml file
Yeah, namespaces are going to get you. They're not simply attributes, they're metadata that defines how the rest of the attributes and elements are parased.
:\ so how do I deal with namespaces...
I like the classes in System.Xml.Linq.
06:29
@JasonBrown kill 'em 'till they're dead!
lol, yay more things I still can't wrap my head around
XNamespace live = "http://www.live.com/marketplace";
Now you can search using the namespace:
0
Q: How to deal with namespaces in XML in XmlDocument c#

Andrew BullockI have several XML documents, all of which have the same structure (element names, attribute names and hierarchy). However, some of the elements and attribute have custom namespaces in each XML document which are not known at design time. They change, don't ask... How can I deal with this when ...

ah thank you
XNamespace live = "http://www.live.com/marketplace";
XDocument doc = XDocument.Load(blah);
var feeds = doc.Descendants(live + "feed");
06:30
omnom spoon feeding nomnom
This will retrieve all descendents of your document whose element name is feed, in teh live namespace.
oh that looks like a really simple way to do it!
It relies on implicit casting and operator overload wizardry, but you get used to it.
It looks like you're just assigning a string to live and only concatenating live to the element name, but behind the scenes it's actually an XNamespace object that makes sure you're finding the right element.
well hpefully that at least gives me an idea of what i need to do xD... theres ALOT of namespaces inside the initial namespace
Yeah, I have a similar XML that I parse - it has 5-6 different namespaces.
So I have one of these:
 public static class ns
    {
        public static readonly XNamespace stix = "http://stix.mitre.org/stix-1";
        public static readonly XNamespace cybox = "http://cybox.mitre.org/cybox-2";
        public static readonly XNamespace xsi = "http://www.w3.org/2001/XMLSchema-instance";
        public static readonly XNamespace stixCommon = "http://stix.mitre.org/common-1";
        public static readonly XNamespace indicator = "http://stix.mitre.org/Indicator-2";
    }
06:33
hmm I should probably make one of those... last time i did that though I went a bit crazy xD
And when I parse I can get doc.Element(ns.stix + "Observable").Element(ns.cybox + "Properties");
ya im definitely doing that, Smart. Thank you :)
Consider yourself lucky you're not working with STIX schemas. It's an amazing mess.
lol
err crap should I have been using xDocument instead of xmldocument...
The four namespaces I have there are just the tip of the iceberg, and various vendors that are part of the STIX group have their own custom extensions.
06:39
urgh that sounds hellish...
@JasonBrown Yeah, the System.Xml.Linq classes, XDocument and that ilk, are newer and friendlier than XmlDocument.
@JasonBrown Yes, well. That's what you get when you use a format that was developed by a large committee headed by the Department of Homeland Security.
well at least they made it confusing enough to keep noobs away xD
err is xDocument interchangeable with xmlDocument?
(can I just replace all references to xmldocument, with xdocument)
@JasonBrown Well, the API is different, so all the method names and the way to approach the API is a bit different.
They both represent the base document you're operating on, so they're equivalent, but not interchangeable.
ok, well I haven't actually started doing much more then loading the xml file, so I can probably swap them.
07:01
anyone here a calendar fan? im trying to get into using a calendar
Room just keeps getting weirder and weirder.
it's a great place to talk about c# and make new friends :3
By "calendar", do you mean a calendar app, or, you know, one of those paper things on your desk with Far Side cartoons?
calendar app, i dont use my calendar app in my phone and im wondering why, like, it's used by professionals, how? how useful is a calendar? how can it change my life? but most imporantly, why use a calendar?
Do you... do things?
07:05
a lot of things!
too many things, so that's where the curiosity came from
Have meetings at work? Have shifts at work? Have classes. Need to pick up the kids at school. Meet up with friends?
if i start using a calendar, i can keep the future organized
I have all of these in my calendar. So I can remember them. Otherwise I won't remember them. And then I'll double book things on top of them.
yea, stuff like that
So yeah. Calendars. They work.
07:06
>not using your mind palace to keep track of things
>2017
Also, a very important technological advancement early on in Civilization 5, allowing build plantations, making use of Sugar and Wine.
my calendar app is windows though T_T sigh
i bet android/iphone has a better calendar app
@AvnerShahar-Kashtan a prerequisite for building Stonehenge, right?
@Squiggle Of course.
Computer games can be both entertaining and educational.
07:08
In retrospect wine is far more ancient than calendars I believe
First step is to detach your calendar app from your calendar data. I use Google Calendar as my calendar service. But I use various apps on my phone or at work to view it.
@Squiggle I felt that Civ 5, specifically, lost a bit of that educational magic. In earlier games, the technologies were more logically tied to the advances they enabled. In Civ5 it felt a bit "Ok, you've researched Refrigeration? Now you can build Marines".
Gotta keep those troops chilled, man.
the hamster keeps scratching and jumping at the glass walls but it's futile, it's never going to get out
im geting annoyed by my sisters hamster trying to get out of her cage
pet the hamster
yea i did
hamster's stupidity is annoying me
07:10
Hm. Well the only other solution is to eat it, then.
sorry. All out of other options.
you would like that wouldnt you
</cat>
to be honest if I was the hamster stuck in a 1 meter cage fed only dry food and water and had a rolling wheel for entertainment I would also attempt a great escape
haha same
@Halie give it a toilet paper tube to play with?
07:12
@misha130 to be even more honest, though, the hamster is dumber than you are.
she is so cute though
<3
@AvnerShahar-Kashtan well I had a hamster once when I was 13, I saw him train his muscles for months until he managed to hang from the top of his cage daily for some reason
one day I came back from school and he was gone
never to be seen again
the madman did it
morning :)
aww he escaped
07:14
exactly
hamsters are so fkn dumb and weak, like, they wouldnt last 1 day in the real world
he probably got eaten by a cat T_T
I can only imagine the adventures he had
ohayou
and like, the only reason they still exist is because they have like 20 children, atleast enough survive to mate again
hopefully
yeah hamsters are weird
07:16
like 18 get killed by every single predator
my friend had two in the same cage, but the one got killed by the other
yeah they dont like partnerships >< wtf
i dont understand why they cant get along
the first one was running in the wheel but for some reason the second one put his head between it and the metal bar
so his neck broke
@misha130 Hamtaro - brutal reality edition
07:19
@RoelvanUden Hello darkness my old friend...
dankness*
did somebody say darkness? i love darkness :3
That... was terrible.
@Proxy this is hurting my 脳
07:20
Oh
i didnt say hello yet
HeLlLlLlLlLlLlLlLlLo
@SebastianL gehirn
@Nerdintraining are you alright should i call the nice men in the white dresses?
@SebastianL i like those men
Proxy, why did you use the Gemran word for brain?
ich bin ein kleiner deutscher elf
Warum glaube ich dir nicht?
07:23
@Proxy ja sicher ;)
a small german elf?
so.. i take i tyou guys are german?
sicher :)
Aber natürlich
@RoelvanUden take my ü
07:24
Danke
cool
i know english-spanish-french-dutch-satanic
and portugese
@Proxy outsh
@Halie i'd love to here some satanic soulstealing words :D
Satanic huh.
lol
i love this chat room
07:26
Java is the best programming language in the world!
- This is the first thing they thought me in satanic sonday school.
-____- "java", what makes all that is crooked
that is somekind of progressive satanic school?
Didn't your satanic school teach that JavaScript and Java are the same?
Nah, they emphesized that they are not the same even
quite confusing
@Halie Srs question: How come you know so many languages?
07:28
@RoelvanUden no, they only teach the almighty Jscript.
@RoelvanUden They're not the same. Everyone know Java is a subset of Javascript. It's right there in the name!
i started with my native, english, and had to learn spanish from my moms side of family, then got curious about german and south american language
Halie's profile pic has fake eyeborws. This confuses me to much ..
i'd like to travel someday and communicate with different people
you can communicate here too
07:29
@Halie Right.. sounds logical, but you said Dutch, not German :P
dam dam dam
like this @RoelvanUden ~~ogenki desuka?~~
Detective Sensai strikes again!
oops :3
@Nerdintraining what?
@Proxy ~~hai, genki desu, arigatou gozaimasu~~
I feel like a weeb.
Wait, I am a weeb. Nevermind.
07:30
we embrace all cultures
@RoelvanUden :37874871 reported for not speaking english
embrace my satanism :3
too mainstream
Nerd in training was kicked from the room.
07:31
I hate namespaces... screw it xD ima come back to this later. Thanks again @AvnerShahar-Kashtan
@RoelvanUden this is so cringe I can't handle it
lol
cant handle life
here's a hug, *hugs
@Halie if you want to travel to France, I can offer you a bed and food. (Fuck it, I don't know how to phrase it without it sounding weird)
07:32
couch surfing
you mean
@satibel Like that. "Fuck it".
@JasonBrown Look at the bright side - you'll eat crap, curse every step, then get it to work, and become an XML Namespace guru online. Profit!
@satibel you just creeped me out, atleast that's how i feel.
@RoelvanUden that has a weird vibe swinging :D
07:33
Come over to the Netherlands. It's fun. We've got rain and chocolate at breakfast.
i gotta know you first
Also, black candy.
lols... Or il find a really crappy work around like using /*/*/* xpaths :D
@satibel "bed and food"
Just bought plane tickets, actually. Not to France or the Netherlands, though.
07:33
I'm terrible at promoting my country for foreign visitors.
does the netherlands embrace satanists? @RoelvanUden
@RoelvanUden ah do you mean those big black candy?
@AvnerShahar-Kashtan Where are you going? :-)
@Halie Pretty sure nobody cares.
okies
@SebastianL Yeah. It's called "Drop" in our language.
07:34
@AvnerShahar-Kashtan Jamaika!
@SebastianL eh, I promise I won't try to sacrifice you to santa.
just come to croatia. we have coffee shops in every corner
LICORICE?!?!
WHO EATS LICORICE????
sweet
07:35
have you people never been to the middle east???
Hello, we do.
@misha130 me.
like literally we have the better versions of licorice
@AvnerShahar-Kashtan is there an alternative to having to deal with namespaces... (seriously wish i could just ignore the namespace)
Funny thing is, I've actually got a box of 'drop' candy at my nightstand.
I'm so dutch.
07:36
i like how you wrote santa^^

will it turn into a happy little elf? :P
@JasonBrown you wanna ignore assembly too?
lol im refering to xml namespaces...
oh lol
xml namespaces are super!
they seem painful to me...
still cant really seean upside to having them over plain old xml :\
07:38
WPF & XAML
DTD's
<x:namespace xmlns:x="fuck-namespaces">
I just learnt about all that 2 days ago and i lake!
@JasonBrown the thing I had linked has a solution to ignore namespaces.
oh lol and, Up I scroll xD
@Nerdintraining uhh, there you dropped the boat
07:40
@SebastianL meaning?^^
@Nerdintraining just refering to lake
@JasonBrown Namespaces are part of the data. There's a difference between <live:feed> and <atom:feed>. That's just like wanting to ignroe namespaces in C#. It just loses information.
I don't get it :_:
Ignoring them will work as long as you're using simple XML documents with no namespace conflicts
Just like you can ignore namespaces in C# - until you have two classes with the same name.
07:43
Still don't get it Sebastian Sir
I don't think there's any namespace conflicts. so im going to proceed in bypassing the namespaces for now.
and figure out how to deal with them at a later date :P, Yay Procrastination!
mr5
mr5
xpath, dtd, xsd are all messed up formats
Not messed up, but very... enterprisey. Over-architected.
@AvnerShahar-Kashtan let's say they've grown hair over time.
@mr5 you'r a messued up format
You just don't get the beauti of DTD
07:58
good morning
@RoelvanUden Venice.
@AvnerShahar-Kashtan Cool. :-) When?
@KamilSolecki 500: UNRECOGNIZED COMMAND.
September 7th.
08:05
I've been to venice once.
So have I, back in 2003. But it was about two weeks before me and my girlfriend at the time broke up, so I'm due for a corrective experience. :)
Ahoy o/
Also, Idk if @RoelvanUden will second this, but my experience with netherlands was much better in smaller by-canal cities then in big ones
@AvnerShahar-Kashtan ^^
But it may be just me
08:08
I can see that
@AvnerShahar-Kashtan Very nice place! We spent the honeymoon there, and in Rome.
@ntohl We never had a proper honeymoon when we got married, but we counted every trip abroad for a year or two afterwards as part of our honeymoon. At least that's what we told people wherever we went. Everyone was very accomodating. :)
Six years later, it might be stretching it.
Hahaha :D
:D:D
@AvnerShahar-Kashtan btw I love the birra moretti beer there. 0.66 liter in local shops and very tasty.
@ntohl Isn't that a rather light lager? Not usually my favorite style.
mr5
mr5
08:22
Can anyone give me a hint why Visual Studio silently adds this uncompilable line of code every time I make solution rebuild?
[global::Xamarin.Forms.Xaml.XamlFilePathAttribute("path-to-file." + "xaml")]
@AvnerShahar-Kashtan which ones are your favorite? I'm a huge fan of Indian Pale Ales
@KamilSolecki Yeah, IPAs are my favorites, and stouts as well.
hah, same. Although I am really picky when it comes to stouts
Even extra-hoppy, small-batch, craft-brewed, did-we-mention-it's-REALLY-hoppy IPAs.
@AvnerShahar-Kashtan yes
mr5
mr5
08:26
@Nerdintraining eww
@KamilSolecki Absolutely. IMO, the big cities, especially up north, are terrible. Like Amsterdam and Rotterdam, I don't like those places at all. Give me Nijmegen or Eindhoven any day.
@AvnerShahar-Kashtan we have an awesome wholesale craft beer company here in Polando, one of their IPAs is an absolute monster when it comes to hoppiness: browarpinta.pl/en/beers/pinta-quatro-24-7,88.html
110 IBU
@AvnerShahar-Kashtan tho birra moretti tastes like a wheat beer.
@RoelvanUden I find it funny how you call Amsterdamm big :')
@ntohl Hmpf. Really don't like wheat beers.
08:32
@Nerdintraining In Chinese terms, the entire Dutch population doesn't make a big city.
@KamilSolecki There's been a lot of activity in craft breweries in Israel these last couple of years. Some really good stuff.
@RoelvanUden i disagreee, 16 mil people is allot.
I'm not a fan of beer in general.
@RoelvanUden I haven't been to Eindhoven, but I enjoyed Muiden and Utrecht a lot.
@Nerdintraining it's one of the 25 biggest european cities.
08:40
@satibel still puny
Even cologn is bigger
COLOGN
Morning!
@Nerdintraining so it's a SEMI-COLOGN
rimshot
08:55
@Nerdintraining Eh. My sister-in-law is from Kaifeng, which she calls a "minor city". It has a population of 5 million. I guess my definition of small and large gets a little warped due to that :P
What how does it have a population of 5 mil when berlin has 6

« first day (2448 days earlier)      last day (2726 days later) »