Showing posts with label xml. Show all posts
Showing posts with label xml. Show all posts

Tuesday, 17 January 2017

Development : Microsoft Tools Troll the Office

Today, I've been working on a brand new project, which literally I thought was parked just yesterday... My mistake it seems this project was expected to be being worked on.. A coworker is currently slogging through the same API but for a different (embedded platform) and it's taken him quite a while.

So the product owner for this new piece of software from me (which is to call XML Web Services through SOAP up stream and a hardware device over USB or serial down stream) was quite upset when they arrived at my desk and asked how their product was coming, and my reply was "Doesn't exists, waiting for the hardware".

After a short, and shirty, moment with them I assured them I would do all I could with the interface, implement ALL the XML Web Service calls through the published ASMX tomorrow... Which is today... They looked sceptical, gave me that long stare saying "no, no you won't"....

And of course I have!... Microsoft Visual Studio Troll tool award of the day, it is so simple to work with a published ASMX, just add a service reference to the URL and it generated everything for you, then tell C# you're using that name space and voila there it all is laid out for you on a platter.

I just finished this project, less than 5 hours after starting it, so have dished it back to the product owner to find the hardware, I know they're not going to believe how quickly I've completed this cycle on the development, not least because the other chap has been on it weeks and has only done about 60% of the calls so far... Yeah, I say... But he's not using troll Tools.

Sometimes, times like this in fact, I quite like C#... Don't let on, it's my dirty secret.

Thursday, 30 April 2015

Week Without a Post?

Could I leave you, my darlings, without a post for a whole week?... No, of course I couldn't.

So what is going on?... Well, I'm trying to arrange a Friday night D&D game with a group of mates - but two of them are being quiet on the availability, one doesn't have a webcam or mic to join in with, one is eager and I'm getting blue balls about the whole affair.

I've been playing some games, notably Cities Skylines, and I've been made to play a lot of H1Z1 Battle Royale for the wife, our best result has been #2 so far, so near, and yet so far from a win!

Today see's the release of WarThunder patch 1.70, their 1945 release, and it's biggest item for me is the new British Naval Aviation line, which I'll look forward to unlocking and getting to ace status.

Beyond all that, I think we're going to be busy Saturday, the father-in-law is having his boat launched (seriously, a whole boat) so we've got to go to that.  Then Sunday we're meant to be going to see some friends, but I don't know what that'll entail.  If I can throw together a D&D game and their kids are in the mood I'll drag that with me and make them play.

Development wise for the Dungeon Crawler, I've been tidying up some of the C++ code under the hood, and I've formally sorted out the XML loaders, so that's the format for everything, settings and screen layout will be the next feature I look at.  Doors are still a work in progress, and I'm still mulling the whole steps thing...

Monday, 12 January 2015

My XML Library is Kapput

I've been using an XML library of my own devices, based around RapidXML for ages, it has been totally brilliant, utterly useful and completely thread & memory safe for about three years.

Yet today, the trusty dog that it is, has turned around and bit my hand, as I've found a bug, and I'm not sure where the bug comes in, whether in my code or from the underlying RapidXML.

My problem, I load a structure:

<Root>
    <a>0</a>
    <b>1</b>
</Root>

This is fine, however, these turn into my classed "XMLConstruct" and I have three of these:

XMLConstruct
   m_Name = "Root"
   m_Value = null
   m_Children[2]
       [0] = XMLConstruct
          m_Name = "a"
          m_Value = "0"
          m_Children = null
       [1] = XMLConstruct
          m_Name = "b"
          m_Value = "1"
          m_Children = null
          
This is fine, it works, I have my data... But every use previously I created a class "Root" from this, and used that classes "ToXML" function.

However, today I want to just open the XML and "for each node if m_name == 'a' set m_value = '999'".

Sounds simple... Nope, when I do this the XML output I get from the underlying Rapid XML is:

<Root>
   <a>
      <>999</>
   </a>
   <b>
      <>1</>
   </b>
</Root>

This is a mystery to me, I'm going to have to bottom it out, but it's that kind of problem on a Monday morning which annoys me.

More annoyingly, the C# implementation of the same library I'm using, does not do this... The difference between the C++ version and the C# version is the underlying XML library, so I'm suspecting something about the node allocation, or the node use inside Rapid XML being off...

Saturday, 15 March 2014

MMORPG Multiboxer (Multiple WoW Clients) #4

Welcome to my dev diary number 4, for the Multiboxer project, I've had a lot of people viewing the posts, far more than the videos (there's like 190 of you viewing the posts, but only like 6 views on the videos; which tells me my tagging either sucks or the videos are so crap you're not watching them).

Well, today's video is interesting in that you will see the code base (its files) and you'll see me using it from Visual Studio, and showing you some of the ease-of use features I'm adding in.  The fact I'm adding ease of use items, and showcasing them is really just a demonstration that I'm thinking about how I, and hopefully you would want to use this software, it really is going to be driven by your guys... So donate now to spur me on!

The demonstration today will focus on the window positions settings, how they're automatically saved for you and how they're used when you start up.  We're handling 4 clients at the same time, but if we opened more the known positions for these 4 would be used and then the rest would default, all being handled seamlessly for you, as you'll see in the video.

You will also see some of the included features of the software, how we switch into "monitor mode" easily to map key codes for the "Key Mappings" configuration, which you'll also see for the first time!


You can donate directly to this project and help fund development today, any donators will receive goodies!