Sidebar Menu

Projects

  • Dashboard
  • Research Project
  • Milestones
  • Repository
  • Tasks
  • Time Tracking
  • Designs
  • Forum
  • Users
  • Activities

Login

  • Login
  • Webmail
  • Admin
  • Downloads
  • Research

Twitter

Posts by stumathews
Stuart Mathews
  • Home
  • Blog
  • Code
  • Running
  • Gaming
  • Research
  • About
    • Portfolio
    • Info

Rules then Since then

Details
Category: Blog
By Stuart Mathews
Stuart Mathews
08.Jul
08 July 2019
Last Updated: 08 July 2019
Hits: 5320
  • Math

Since Tuesdays, scribbling and haphazard interaction I've been a little in between things - take what you want your meaning from that as you like. I'm not sure if I've been productive or not but perhaps as I have to say that, its likely that I've not been as productive as I could. Let me work backwards then...

I started reading a a few new books yesterday, one called How to think like a mathematician and the other two are about the history of math which I find quite interesting generally. I also generated a C# Sdk for my investment tracker so that I can start building a nice looking GUI for it in WPF which was the last GUI framework I worked on since working for Citrix while working on Desktop Studio. That work kind of stalled as I fell into the spell of the previous math book, which keep me up until 11pm last night and why my run was so tough this morning. 

One of the interesting concepts about maths is how it came about - is it inherent in the nature of the world or did we invent it to fit our understanding of the nature of the world? I had the opportunity to revisit of fundamental concepts that bad math teachers never teach (because they don't know it themselves or don't see how essential it is for people learning maths to understand how its works, not merely that it does and be done with it) such my favourite concept which I brought up a while back as why a negative take a way a negative is a positive... Remember this:

no, not because that's the rule but because taking away less "lessness" gives your more positiveness. This was nicely explained by representing +number and -numbers are two different types of 'things' that have some sort of inverse relationship ie more +things means less -things and viceversa. You can describe a scenario in terms of these negative and positive numbers by representing the numbers as something else that also have a inverse relationship - Hot Air Balloons. Let me explain:

If you represent Heat as positive number and Ballast as negative numbers, then as these things are inversely proportional concepts to each other (in terms of altitude reached by a hot air balloon - more heat higher the balloon's altitude, less heat lower balloon's altitude and more ballast(weight) less altitude etc ) in the same way that negative and positive numbers share a similar inversely proportional relationship. The way to explain why (-6) - (-5) = -1 is that you start at a ballast of 6 and take away 5 ballasts so you have less ballasts left, so you only have 1 ballast left and a ballast is a negative number and thus -1. To explain (-6) + (-5) is saying you started with 6 ballasts and you're adding more ballasts, you're going to end up will a lot more ballasts, that is a negative number: -11.  The dumb rule that doesn't explain to who how a negative number subtracted from another negative number is that a "negative" and a "negative" is a positive but makes you dumber in the process : (-6) - (-5) as -6 (- and - = +) +5 = -11. But its important that -6 - -5 = -11 not because two negatives makes a positive and you just add the sum - who in their right mind would make rules up like this without the result actually being representative of the actual mechanical process of taking away "lessness" (ballast or negative). Its a tricky concept to grasp always but that doesn't mean that teachers should avoid explaining it. I think my pet hate is rules because they are so deceptive and don't provide you with any substance.

My explanation might stink but its damn well better than a "negative and a negative is a positive". That's a rule and I don't like rules. 

With the missing space in my schedule now that my C programming course is finished, I've found myself a little at a loose end though maybe I've coped just fine...

I also finished by Digital Forensics assignment which was quite interesting and thankfully I'd finished the majority of it last weekend and so this weekend was just filling in the blanks, referencing and making sure my spelling as OK (actually did I do that!?). That also marked the end of the study of English Law with respects to Computing. I've learned so much about it and I'm so much more informed about cyber crimes and how the law approaches them. For this alone, this study was beneficial. Can't much be said for the course I took on CPD which I've decided after a bit thought to abandon as I'm not interested in sweating blood in order to pass assignments - which is what is required. At this level, you can't really pass without being entirely "in it" and so I think I'll stick to what I know and what I'm "in" to: Simply put that Computing and programming. I'll leave the psychological stuff to their respective fields. This also means that I'll have a bit more time to study the more practical aspects of digital forensics which include static file analysis, dead machine analysis and network forensics which is shaping up to be an incredibly interesting 2nd half of the course(and I found the 1st part about law interesting). 

I also finished by Digital Forensics assignment which was quite interesting and thankfully I'd finished the majority of it last weekend and so this weekend was just filling in the blanks, referencing and making sure my spelling as OK (actually did I do that!?). That also marked the end of the study of English Law with respects to Computing. I've learned so much about it and I'm so much more informed about cyber crimes and how the law approaches them. For this alone, this study was beneficial. Can't much be said for the course I took on CPD which I've decided after a bit thought to abandon as I'm not interested in sweating blood in order to pass assignments - which is what is required. At this level, you can't really pass without being entirely "in it" and so I think I'll stick to what I know and what I'm "in" to: Simply put that Computing and programming. I'll leave the psychological stuff to their respective fields.

This also means that I'll have a bit more time to study the more practical aspects of digital forensics which include static file analysis, dead machine analysis and network forensics which is shaping up to be an incredibly interesting 2nd half of the course(and I found the 1st part about law interesting). I got sick of my glasses sliding down my nose when I'm looking down at my keyboard while typing so I found these which are super cool at fixing my specs to my face all snug. Apparently, as the guy at the optometrists said, they use them for sports like bagmington so that's a great vote of confidence from my perspective. I spend most of my day on Saturday not going to the gym. The reason for this was twofold. First I'd gotten pretty sick on the Wednesday (I think it was a bad cherry or I eat my food to quick) which saw me in a bad way for that evening(I won't go into details) and very tender on the Thursday and even on Friday I was a bit quite at work! My headache was I think the worst one I've had before and when I sneezed my head reverberated and hurt. So that kinda made me not want to go running or picking up heavy things that day. So instead I just planned, I planned feeverishly. I like planning.

I planned my upcoming Autumn term which starts in September and which I've really excited to start. Looking at the previous year's timetable, I think we start with Object orientated programming in C++ and Information Systems and then I think I'll only get to Computer graphics and Artificial Intelligence in the subsequent term (the Spring term). I need to brush up on my reading about 3D math around vectors and matrices and well as the coordinate systems soon. I think a lot of these concepts will be talked about but I always find reading upfront makes the teaching easier.

I also planned out how my I'd need to plan my other courses following that i.e making sure I've got enough run way to finish it all in time. That was fun. I'm currently thinking weather I should move houses but this is a priority that's loosing favour - I quite like living in Uxbridge actually. 

I've not really progressed my 2D game project with animation and I feel that this is somewhat dragging and I think a little has to do with the want I have install visual studio 2019 and see how it supercharges my syntax capabilities in the IDE but at the same time I don't want to break my running TeapotWars source code that I got up and running under Visual Studio 2017 and which was not that easy. Game Coding Complete 4 is on the list of recommended reading so I should problem not mess with Visual Studio 2017 (but I can run 2019 at the same time? but I don't have loads of ram) - Welcome to my world of comprimeses?

I also fixed my TouchId on my phone which I'd broken since I'd replaced by iPhone 5S battery. Its actually pretty useful when I'm using my banking apps or lastpass and my password is long so anytime I don't need to type it, the saner I am. So that was nice - I enrolled in my 2 little fingerprints last night. It took a bit of fiddeling to dismantle the device but I'd done it before.

 

Tuesdays, scribbling and haphazard interaction

Details
Category: Blog
By Stuart Mathews
Stuart Mathews
27.Jun
27 June 2019
Last Updated: 28 June 2019
Hits: 3009
  • Programming
  • Running
  • C++
  • Digital Forensics
  • Continuous Professional Development

Since Noughts and crosses and All Bran Flakes, things have been progressing at a much higher run-rate, mostly to do with my computer studies.I finished my C programming course last week and now I have a little more time to sleep on Tuesdays. I got an email from the university asking welcoming me to my next course which is starting in September so I've got about 2 months to complete my current 2 modules. If they could invent more time that'd be great.

Its been a welcome relief because I've been trying to focus on the journey home on my computer to either do some reading around Computer law (tort) and game programming however the latter is still taking a bit of a backseat. The concepts currently being investigated(irony) are :

  • Computer Misuse Act 1990  - Hacking (Criminal)
  • RIPA - Spying (Criminal)
  • Fraud et al (Civil)
  • Intellectual property laws (Civil)
  • Contract Law (Civil)

The contract law is quite interesting because its opened my eyes to a lot of considerations that are routinely taken for granted in forming contacts such as the constituents and requirements that make up a contract such as the qualifying what must be met for it to be legal and correct. Facinating really. It does feel however that there is a bit too much material to cover at times.

That said, I have managed to replace my primitive geometric representations of a Pong ball with pretty images of Aliens ie .png resources loaded into memory instead of drawing rectangles.

I've been somewhat concerned with the entangled nature of the approach being used and which is based on my learning material and I found some time on the train last night to try and untangle what it was that was bothering me about it. 

I have a few problems currently around me representing the game objects as strong, shared pointers in various places and when I unload the objects (in response to unloading the resources from memory due to a level/scene change) the event system is still considering its list of object subscribers to be there/active/alive/current, which obviously would be OK were they weak pointers to the now non-existent objects.

I'm not quite sure I like the architecture that I've been studying with respects to the casual regard it has for seemingly haphazard interaction of the various subsystems ie the graphics rendering system, the scene/level management system and resource management system all implemented as Singletons.

Part of my discomfort is in the seeming difficulty in trying to reason about when effect will occur but I'm wondering if this is a consequence of the concurrent and real-time nature of this type of development and I guess this is really what I enjoy about it: the application of programming in varying perspectives and circumstances. Its also great for practicing. This seemingly uncontrolled and uncoordinated aspect is especially true if you've got a disparate collection of singletons all managing their own subscriptions to the event manager.

What I think is required is a more centralized management of event subscription. Another good idea, perhaps at the expense of future flexibility is the coupling of related concepts which in effect would be OK as that would be increasing the utility and cohesiveness of strongly related components. Decoupling is not always the answer all the time though many people have mantras like this.

I certainly have a lot of regard for how the event management system works under GUI development frameworks such as Winforms, Gtk and Qt for instance. They do quite a good job at managing events. Indeed one of the reasons why C++ is so great is the low overhead in dispatching events however like most things, done incorrectly would diminish any potential benefit.

Was a good day for a run this morning, though although it says my relative effort was 8, it felt a lot higher. 

I ran my fastest 1km and 5km apparently this morning at 3 minutes 8 secs and 20.5 minutes respectively.

 

Noughts and crosses and All Bran Flakes

Details
Category: Blog
By Stuart Mathews
Stuart Mathews
15.Jun
15 June 2019
Last Updated: 17 June 2019
Hits: 2955
  • Gym
  • Software Engineering
  • Digital Forensics

Since The Law, Being mental and Data Science, the last two weeks have been fairly muted in some respects and quite substantial in others. I've been wanting to complete an assignment for my Continuous Professional Development (CPD) module and it's been weighing heavily on me, though I've been avoiding it. The subject matter is concerning Reflective thinking, The nature of understanding (knowing) and Concept maps among other things.  I think I was a bit ambitious with this one.

Last weekend I didn't do anything related to it whatsoever, I hardly even made eye contact with my computer. Instead, I magically found inspiration to go to the gym. So much so that I went on Saturday morning, Saturday evening and Sunday morning. Funny that. The best way to procrastinate, in my opinion, is to go for a run and do some exercise. At least it's healthy.

In prior weeks, I'd been heavily focused on another assignment for my Digital forensics module which is currently going through English law right now, which might appear boring is quite interesting and I'm enjoying it.

In Tuesday's C programming class, we covered pointers and while I knew what was going on, other peoples heads blew up(Except for this one guy who seemed to get it).

I also submitted my end project which I cobbled together to create very simple noughts and crosses application that two people can play. It uses multidimensional arrays to represent the board and I've tested the puzzle solving algorithm in a 3x3 board and a 4x4 board although we only needed to code up a 3x3 board. It's not pretty but it works (a bit like me really...) Also, I didn't need to use multidimensional arrays but this has always been one my weaker subjects so I wanted some practice and its related to pointers so that's OK. The brief for the project is here 

The class is drawing to a close now and I've only got 1, perhaps 2 classes left and I'm going to miss it. One of the student that I'm in contact sent me and email saying that she is eyeing out the Python course but I'm not really interested in re-learning python or maybe it is that it cost me another £500.

An interesting tidbit that I came across in my digital forensics material was a mention on how the C programming was not designed with the current mindset in the security engineering, which is of usability i.e making it easier to be safer. As master Yoda would say, "that it does not".

But then again, if you're programming in C, it likely that you're alone in a dark place and the effects of your C program will only kill you and your immediate fellow underlings down there. I miss the dark days...

Anyway, during the week, on the train every other day(basically my non-run days) I've been slowly piecing together my CPD assignment and today I completed the majority of it. That said it's not complete, it still needs proofreading, referencing and condensing - word limits are really restricting these days. I'm trying to manage my commitment and sanity.

Today, I switched back to the next sections in Law discussing the Computer Misuse Act of 1990 (CMA) and that that was how the day transpired really. Although I didn't go out except to buy some snacks or go to the gym, as I mentioned, I'm rather enjoying the law subject we're on. We've got another few weeks left so perhaps by the end of that, I'll be less enthusiastic? 

One of the most revealing aspects of digital forensics has been focusing on the law and while doing my Software Engineering module, which I finished a few months back, I also found the sections around intellectual property and copyright and reproduction law quite fascinating. One of the great things about understanding more about the law is understanding how not to break it, and how it generally works. Seemingly small things like modifying an application's binary contents, circumventing a security mechanism or obtaining access to machines just because you can now hold some really intense penalties and in some cases like breaching section 3, you can be imprisoned for up to 10 years. Btw, section 3 under the CMA is about manufacturing viruses and impairing computer operation in general.  An interesting read is cases where people have been convicted of related computer crimes such as this interesting website: http://www.computerevidence.co.uk/Cases/CMA.htm. 

All this has rather muted my recent efforts to get an animated sprite up and running through my game development project and even my reading on the matter has somewhat taken a backseat. But that's Ok, everything has its priority and place and I'll get straight back into it when the other priorities start dying down somewhat (CPD and DF assignments for one). 

I've managed to stay disease free, meaning I've not caught a cold whilst sticking to my running regime of about 25km a week. This is good. 

And if you're wondering what Bran Flakes has to do with the title of this post - well let it be said that one should never go for a run in the morning fuelled up with All Bran Flakes. I did and I nearly did a Mikael Ekvall on route - I didn't but never, never tempt fate.  That being said, had a good run, setting a new threshold heart rate of 154 which I gather from this is the longest ability to carry a average heart rate for the route/distance I run.  So I seem to be able to average out at 154bpm over 8.5km. 

More Articles …

  1. The Law, Being mental and Data Science
  2. Games, STL, Digital Forensics and a Fedora
  3. C, 64, Triple Black, Resource Management and a Game Prototype
  4. Easter, Heroku, Postmodernism, DataFlow, Math and Software Engineering
  5. Postmodern Software: Embracing complexity
  6. Mountain running and Zebras
  7. Another day in paradise
  8. Wet rain
  9. A rainy day
  10. Drakensberg boys’ choir
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28

Page 24 of 182