Everyone has games they played from their childhood, well that iconic game for me was Drakkar. Mario, Sonic get honourable mentions but Drakkar from 12 to my early 20’s. At Christmas I decided to bring to my walls a little nostalgia, and purchased the Drakkar map set available from the store.
Today they arrived and couldn’t be happier! They are much larger than the image gives them credit, I and am greatly excited to get framed and up onto my walls.
If your interested in giving my childhood game a try:
After many discussions about the contrast of running a VPS on a host provided dedicated server and running an Instance in the cloud this weekend I decided to explore and found that actually there aren't bad options available. Obviously the two big players Amazon and Microsoft have there offerings known as:
There are other offerings from over providers such as Rackspace, but for this article I will be looking at just these two since they are what I would consider top companies for the area of cloud services.
So what can you get free to start with:
For the first 1 Year AWS Free Usage Tier (Per Month): Elastic Compute Cloud (EC2)
Simple Storage Service (S3)DynamoDBRelational Database Service (RDS)Simple Workflow (SWF)Simple Queue Service (SQS) and Simple Notification Service (SNS)CloudWatchData TransferData PipelineIn addition to these services, the AWS Management Console is available at no charge to help you build and manage your application on AWS. 60-day Free Trial In addition to the Free Usage Tier we also offer 60-day Free Trial for all AWS customers that are new to Amazon ElastiCache. AWS customers can avail of this Free Trial in addition to the Free Usage Tier offerings. For more information on the free trial please follow the link below: Taken from https://aws.amazon.com/free/ </td> | For 90 Days </td></tr></tbody></table>
So which did I choose? Well Amazon Web Services (AWS) I am looking to migrate my websites and services therefore VPS style instances are more useful to me than a specialised cloud. I feel which is best is very much dependent on your needs, I was looking for IaaS (Infrastructure as a Service). Having said this a future planned Windows 8 App I will be developing requires a flat table database like NoSQL or in AWS case DynamoDB.
Ok so this, but what exactly?So had a brief look at what you get free, one micro instance but for my need I wanted a bit more grr, so have stumped up the cash(well have yet to really see how much) and have got two micro instance. Sadly I am a die hard windows fan loving my nice GUI’s rather than terminal, despite having used the powerful Ubuntu CVSSP servers I still for admin like windows. So what can you get? Windows Server, 2008, 2012 with all sorts on top. But what does it mean for CPU usage well 2008 clearly requires less processing power but how much? well about 40%. Windows Server 2012: Runing IIS Windows Server 2008: Running SQL Express 08 Now although these two graphs are two different servers for different jobs, I would like to state this sort of behaviour for 2012 is indicative of a base line, barely getting close to 40%. So will probably need to rethink using 2012 for my web server. Having said all this though I did some experiments against my old VPS shared server, with 2GB ram running both Web and SQL Express and found the performance to be comparable. I also did some test on another MojoPortal website running on a shared hosting for a business account and was comparable with that too with 100ms difference in favour of the shared hosting but less of a connection scale problem. So is it worth it?Well it is hard to tell, I am going to do some tests for a month so I see what the real costs are because you ‘pay on a meter’ it could be more could be less than expected the IOPS factor is very hard to predict and I haven’t found any meaningful references to decide what is a real Windows server IOPS count on EBS storage. My main concern is the cost jump from a micro instance to a small, for a micro instance the cost being $14.28 for a small $84.18 just for an instance running 24hours a day of usage for 1 month. What could be coolAt the moment I am running two micro instances one SQL one Web, but this is very easy to change up to a few instances running the data folder of MojoPortal against the S3 storage, with an Elastic Load Balancer(ELB) run on top of the Web servers could be a nice way of dynamically handling load with a low cost due to the micro instance. Using this style of solution is hard to judge with little to no real experience but seems logical. To comeWell I have only been using AWS for a weekend will see what it comes to after a month with a couple of sites on it. Will get back to you soon! Stuart James ... |
So you may of seen previous posts on Boost Graph construction, here I present an easier way of constructing the graph but at a performance cost. This shouldn’t be used if can be avoided, but it may be useful if you want to adapt your edges on the fly.
So we start with the normal code:
So we start with a basic set of nodes, A->E with some connections between them. This is an example of a directed graph so “flow” can only go one direction.
The benefit of this is you define the construct of the graph and create the graph_t, object g.
An alternative way of constructing is to generate the nodes, then add in the weights as in:
This may seem easier but comes at a performance cost. In contrast even on this simple example there is a 0.001s time increase, scale this to a real solution you may suffer badly. As stated make sure your scenario makes sense.
Preface:
When chatting with a colleague yesterday, I referenced a blog post I never actually wrote. So to remedy that here we go, how to use boost in the case of inheritance.
How To:
Inheritance in C++ is very important, a long with classes and templates I would say the most important triplet (of course inheritance cant exist without classes). As I mentioned in a previous blog post I found a new love of boost serialization allowing me to easily be able to save out my objects in binary,text or xml, but there is a spanner in the works when it comes to inheritance, this is due to the serializer not being able to know it has a parent or even what that parent is.This is actually solved with a small amount additional of code but is critical to put in or your objects wont behave in the expected way.
So we serialize out the child class and what do we get? Well actually it is very clean elegant empty file. Not what was intended, but with a small change to tell the compiler of the classes parent we are able to serialize out child classes and parents without a problem
As you hopefully can see this tells the compiler what the object parent is and provides a reference to it so therefore you can serialize that out. Of course you can put this line at the beginning or end depending on how you want to structure your outputs, but to my brain coming first makes sense.
The final solution being:
A year and a half ago, I order an Asus N73SV. At the time I was incredible impressed with it’s state of the art spec great expandability. I knew at the time it was a bit of a gamble with Asus not being a major player in the laptop market and the price being quite a bit cheaper than its rivals for similar spec. After using for a year I have done upgrades to RAM 6gb –> 10gb and replaced HDD for a hybrid and a larger second drive. It has been a great laptop till recently things have gone a little wrong.
Now I am not blaming asus for its product the two components that have gone wrong are completely under my control but my issue comes with the service and availability of replacements(in the UK). The two parts that have gone wrong is the battery is now completely shot, lasting about 10 mins going to 70% and turning off, and the power cable getting damaged as seen above.
These are normal issues you hit with portable electrical products, replacing the parts though is proving not to be so easy. The battery is out of warranty so I just need a replacement, the transformer is in warranty but I don't really want to loose my laptop for a couple of weeks since it has become a very important part of my life replacing my home computer completely and having heavy usage in the office although accompanied by other computers. So sending it away wasn’t really tempting when I would be ordering another part anyway, also I am not about to pay £150 in labour fees to replace a battery.
So customer support was out, but I want the official replacements so called them, first time they just hung up on me a little concerning they don't have a queue system. Second time I got through promptly, and found out they don't sell the items over the phone you can go to the asus shop website (http://shop.asus.co.uk/) and order there. I am slightly embarrassed that I never actually found this in my googling around for official products. So went on the site after the call and they are sold out of most things and don't actually list anything to do with my laptop.
So what do you do? well look at contact page and call this UK website help line, and what charming welcoming voice do you hear? A nice recorded German lady speaking German that I don't understand, I assume it leads to options but I don't understand. So I have resorted to emailing them.
In summary, the point of this rant was to express that Asus sell great products but there are no official replacements easily available. For a company of which I have enjoyed many great products from, I am shocked they fell down so badly on such an easy thing they can make a great deal of money from.
Hopefully will be able to get the replacement parts soon and have something better to say about Asus!