Jump to content
Can't remember your login details? Read more... ×


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by kikz

  1. kikz

    Australian Tax Calculator

    Cannot take web development tutorials from a site that looks like that lol :p
  2. Election just done. A hot topic therein was marriage equality between homo and hetero sexuals. A big point is "we should all be free to love whomever we chose, and marry that person". We can all appreciate that there are limits to this: For instance and in particular, the love between a person under the age of consent, and a person over it. But why isn't polygamy on the radar. What about bisexuals, or even just a bunch of *sexuals who love each other? e: can't type for shit on my iPad.
  3. As I predicted... Columbia gets first 'polyamarous family' as three men legally established as a unit http://www.telegraph.co.uk/news/2017/06/13/colombia-gets-first-polyamorous-family-three-men-legally-established/ I'm like a visionary or something. Maybe just the something.
  4. When you call json on one server from JSON on another you cab get that problem. Normally the easiest way is to set the Access-Control-Allow-Origin header to "*" in the response header. But that has to be done on the server. Unfortunately you can't do that (and I did). You have to call using JSONP https://www.sitepoint.com/jsonp-examples/ is a good introduction basically, the original code won't work as-is (it's using plain old JSON). All you should need to do is append a ? to the end of the url you are calling e.g. *I think*. I've always modified the response header. You're auth problem is something else and may be sorted by the right Auth header in the request. see. http://stackoverflow.com/questions/18264601/how-to-send-a-correct-authorization-header-for-basic-authentication (which coincidentally also has an example where he sets Access-Control-Allow headers.
  5. not sure why you're getting the python problems. cross domain is usually when you try to access resources from another server. usually with posting. cross domain get shouldn't be a problem. here's the new JS code you'll need to total. Totalling is pretty trivial. <script> $(function() { $.getJSON("http://www.robertgray.net.au/gday", function(data) { var table = $("<table><tr><th>Serial Number</th><th>Last Report Date</th><th>Status</th><th>Last</th><th>Max</th></tr></table>").addClass("table table-striped"); var totalLastReportWatts = 0; var totalMaxReportWatts = 0; $.each(data, function(index, item) { totalLastReportWatts += item.lastReportWatts; totalMaxReportWatts += item.maxReportWatts; var percent = ((item.lastReportWatts / item.maxReportWatts) * 100); var row = $("<tr></tr>").html("<td>" + item.serialNumber + "</td><td>" + new Date(item.lastReportDate) + "</td><td class='box'><div style='width: " + percent + "%'> </div></td><td>" + item.lastReportWatts + "</td><td>" + item.maxReportWatts+ "</td>"); table.append(row); }); var totalsRow = $("<tr></tr>").html("<td colspan='3'></td><td>" + totalLastReportWatts + "</td><td>" + totalMaxReportWatts + "</td>"); table.append(totalsRow); $("#results").append(table); }) }); </script>
  6. kikz


    Condolences. My step-father passed away from bowel cancer about 7 years ago. Apparently it's not nice (duh). I barely knew the man so I can't say I have had any close contact with that. My wife had cervical cancer diagnosed in late 2012, but she's all good and C free now. No one in my genetic family I know of has had Cancer.
  7. kikz

    I got windows 10 and it's not ok

    nah you're not the only person. If I had such a thing existed I may move to a large 4K screen instead of multiple 1080p screens.
  8. kikz

    I got windows 10 and it's not ok

    Ctrl+Windows+Right Arrow make it all worthwhile. So easy to quickly get your porn offscreen.
  9. np. Updated to show current reporting max as horizontal bars.
  10. Hey - bit of shameless advertising I guess. Some years ago (2010) a bunch of atomicans start Atomic F1, racing on Codemasters F1 2010. We managed races here on the forums. At one point we realised most of us were only posting in these threads. We pulled some new nonatomic members and went and started our own site http://www.atomicsimracing.net/ And when I say "we" I mean Lambo :) Anyway, we're a bunch of guys (though we don't exclude girls :)) who love talking motorsport and tech - and enjoy meeting regularly online for sim races. We've got our own hosted servers etc and run a few sims. We've got the new seasons starting soon in Assetto Corsa in the Ferrari F138 Automobilista in the Caterham Superlight Sequential Codemasters F1 2016 We also are running a Dirt: Rally series ongoing have an iRacing team that currently runs a few series: ProtoGT in the LMP2, Star Maza, Mazda MX-5, Skip Barber If you're interested in dipping your toe into the world of sim racing come say hi to forum old timers like: Lambo Flouncy Mark84 Ghost kikz nobody813 Fredzfrog and a bunch more (people as well as long time atomicans). Come along to the forums, say hi, and have some fun on and off the track References :p http://forums.atomicmpc.com.au/index.php/topic/53754-atomic-f1-gp1-season-7/ http://forums.atomicmpc.com.au/index.php/topic/53758-atomicf1-gp2-season-3/ http://forums.atomicmpc.com.au/index.php/topic/51349-atomic-f1-gp1-season-6/ http://forums.atomicmpc.com.au/index.php/topic/51020-f1-2012/ http://forums.atomicmpc.com.au/index.php/topic/51352-atomic-f1-gp2-season-2/ http://forums.atomicmpc.com.au/index.php/topic/49025-atomic-f1-gp2-championship/ http://forums.atomicmpc.com.au/index.php/topic/48094-atomic-f1-season-5/ http://forums.atomicmpc.com.au/index.php/topic/45163-pc-f1-2011-atomic-championship/ http://forums.atomicmpc.com.au/index.php/topic/43342-f1-2011/ http://forums.atomicmpc.com.au/index.php/topic/41553-f1-2010-atomic-championship-season-3/ http://forums.atomicmpc.com.au/index.php/topic/36170-f1-2010-atomic-championship/ and a bunch more I cbf finding.
  11. kikz

    I got windows 10 and it's not ok

    Why on gods green earth would you want to run classic shell. Win 10 UX is buttkicking. #nottrolling :)
  12. 1) Authentication - I guess it's using basic authentication and sending in clear text? You can check it out by hitting F12 and going to the Network tab (assuming chrome here), finding the call to the endpoint and then looking at it's request headers. If it is in fact basic auth you can follow the answer here http://stackoverflow.com/questions/5507234/how-to-use-basic-auth-with-jquery-and-ajax really easy to do and it'll add the header to every request from that page. 2) yeah, It's blank because the code that creates the table only executes when the call to the endpoint returns successfully. at the moment you're not getting authorized, so it's not returning successfully :) Fix #1 and #2 should sort itself. Oh yeah, if you want it all graphicals and stuff you can just create a column instead of two and create a div with border set to 1px (border: 1px solid #000000 in css) and width to the max value (Set this in js). Then create another div with same starting point on the left hand side and create it with a solid background colour (e.g. background-color: #0000FF) and set the width to the last reported value. Or you could get fancy and use canvas, but meh. If you're trying to work out what's going on where in JS, include "console.debug('stuff')"; in the appropriate place. then pop open your buddy F12 and go to the console tab and see if it's output.
  13. <html> <head> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script> <style> table td.box { width: 250px; border-left: 1px solid #000000; border-right: 1px solid #000000; } table td.box div { background-color: #0000FF; } </style> </head> <body> <div id="results"></div> <script> $(function() { $.getJSON("http://www.robertgray.net.au/gday", function(data) { var table = $("<table><tr><th>Serial Number</th><th>Last Report Date</th><th>Status</th><th>Last</th><th>Max</th></tr></table>").addClass("table table-striped"); $.each(data, function(index, item) { var percent = ((item.lastReportWatts / item.maxReportWatts) * 100); var row = $("<tr></tr>").html("<td>" + item.serialNumber + "</td><td>" + new Date(item.lastReportDate) + "</td><td class='box'><div style='width: " + percent + "%'> </div></td><td>" + item.lastReportWatts + "</td><td>" + item.maxReportWatts+ "</td>"); table.append(row); }); $("#results").append(table); }) }); </script> </body> </html> okay. Whipped this up just now. All you need to do is copy it to a HTML file and click on it. oh and change the url from mine to yours :) that's the url in the getJSON. - which is just the data copied from your OP so i can test and verify. Here's a working example. http://www.robertgray.net.au/gday-example oh yeah... the dates... I guess it's not reporting year? and Jan 18 was when you were trying this? You can just do .getMonth and .getDay to get rid of the rest. Techologies: - jquery (hosted on cdn) - twitter bootstrap for styling the table (hosted on cdn). The most basic of basic web technologies :) From there you can do an easy sum on the inverters to get unique -rather than the raw data dump I have here.
  14. Sorry I'm late haha :) Not sure why people even consider Excel :) HTML page + javascript will read JSON piece of piss, then iterate in JS and create table. = REST API. hit it using jquery with something like $.getJSON("", function(data) { // Build a table here using the returned data. // This will output to html page. // piss easy. all dynamic. }); see http://api.jquery.com/jquery.getjson/ I'm balls deep in deadline and shouldn't even be browsing here or taking the time to type this, otherwise I'd type up a complete working example. However, it realy is easy and not at all requiring "uber" technology :) Happy to help out if needed. JSON is built for this - JavaScript Object Notation. i.e. Use JavaScript. Ironically or coincidentally I'm balls deep in finishing a web-api REST end-point that emits JSON
  15. I expect v7.1 will not break v7.0 . I expect that v8.0 can break v7.0. Major version numbers are for exactly that reason, breaking changes. So typically, if you upgrade from one version to another you can accept that things may break. People should read the change log before upgrading. Same as v1.0 of an API can completely fuck apps coded against v0.9. This isn't really in direct response to your OP, just version numbering in general, and stuff like Windows is a bit different, where Microsoft would go bankrupt if an upgrade from windows 8.1 to window 10 meant you had to reinstall all your data and your software working on 8.1 doesn't work on 10. MS are a definite exception though, with their diligence in maintaing backwards compatibility.
  16. kikz

    What are you playing at the moment?

    Playing automobilista a fair bit lately.
  17. kikz

    Are you a compulsive upgrader?

    Get rid of the Samsung 850 and get a 950 Pro. Or better yet, wait a few months and get a 960 Pro. I've got a 950 Pro in my new box and holy moly...! Also needs more Titan X :) Dude, I'm not working ATM and am changing careers due to an injury, and I'm also building a house that I can only just afford. I'm not buying much of anything for the foreseeable future, especially a 15K+ rig. Maybe when Star Citizen comes out. It's all good. It's a wishlist. It's supposed to be out of reach (at least IMO, or it'd be a shopping list). Not many people can afford dual Titan X's and a 960 Pro or three. But hey, if you're wishing for the creme de la creme ... :) Speaking of recent upgrades, my PSU in the FPSDEV box finally let go (dual R9 280s and 7 harddrives killed it methinks). I recently got a new Intel 500 GB SSD to replace my main 120 GB Vertex 3 SSD as well as a new case (the old one, an Antec P180, had a broken earth wire which caused the pc to reset when bumped, and while I could have soldered it, the case was struggling to contain all my drivers, some floating around unattached to a drive bay), and a Corsair HX 1200W PSU. As this is the machine I make my living on I really couldn't afford to have much downtime, so I also bought EaseUS backup and restore to clone the 120GB on the 500 GB and then increase the partition. Worked a charm and only took a few hours (plus the 4-5 hours to transplant the guts from one case to another). I now also use that software to take a C: nightly backup onto another HDD in that machine and a Weekly full backup onto the NAS. Now I'm a bit more confident of not losing much time in the event of future failures. Yes all my source code and documentation is in the cloud (bitbucket, jira, and confluence) but it's the environment setup that really is where time is lost.
  18. Yep. I agree. Those with a minority opinion are bullied and insulted.
  19. kikz


    Yeah X99 is IMO way overkill unless you're running Crossfire / SLI and want 2 x 16x. Even then, it seems there's little real world difference between 8x + 16x on z170 boards and what you get on x99 Sorry, I don't have any of use to say :p (other than can you swap for a z170 :p)
  20. kikz

    Are you a compulsive upgrader?

    Good to know. I have a 2600K and 16GB ram in the my current dev/fps games box. Looking to updated monitors too (currently have only a single 24" 1080p), but still need to FPS, so needs to power 4K.
  21. kikz

    Post Your Latest Real Life Purchase!

    Thanks! FWIW my only contribution was a wall mounted toiletbrush holder. - or is that the only concession my wife made was a wall mounted toiletbrush hodler - my main contribution was nodding when my wife spoke to the various people involved and showed me catalogues and webpages ;) @Director: Yep, well sealed. @Rybags: Good to know. We haven't replaced the exhaust fan yet and I reckon it needs a good clean at least, if not replacement.
  22. kikz

    Post Your Latest Real Life Purchase!

    After finding my ensuite had leaked into my sons room and his carpet was wet and mouldy, and then finding roots up the drain pipe (likely the problem), the last thing I bought was a new ensuite (and recarpetted the house) - ensuite being finished today.
  23. kikz

    Are you a compulsive upgrader?

    I upgrade sparingly. Usually it's a whole new PC, and then after a few years, a new GPU. Then a whole new PC a few years later. My FPS/Dev box is a 2600K with dual R9280X's (upgrades). It's still fine for what it does and like Stadl I'm loathe to get a new machine. Setting up a developer environment to be productive is a real pain and there's always multiple tools and scripts I forget to copy across or install. This box used to power my triple screen sim racing rig, so it's still not too bad. Until a few months ago... A few months ago I did purchase a new gaming rig for my sim racing. I went all out and bought the best box at the time. Money be damned. It'll last a few more years maybe. It really depends on the state of VR at the time. I feel an upgrade to the latest video card at the time might be as early as sometime next year - but that's just because of VR and the hopefully increasing resolution of them. Get rid of the Samsung 850 and get a 950 Pro. Or better yet, wait a few months and get a 960 Pro. I've got a 950 Pro in my new box and holy moly...! Also needs more Titan X :)
  24. kikz

    How do you do it?

    Work to live. I do the bare minimum to stay employed and drop my shit and leave when I've done my 7.5. I have plenty of interests outside of work that I spend my time on. I have 0 interest in office politics or climbing the corporate ladder or any of that shit associated with career. It's just a place where I exchange services for money - it's also not a bad place to work.
  25. kikz

    I had a go at the SteamVR/HTC Vive

    I've got a Rift for my sim rig setup and it absolutely pwns. I'm not saying this in a Rift v Vive war as I tried the Vive on my PC (thanks to a mate) before I got my Rift and they're much of a muchness. Sitting in an already close replication of a car, as far as seat and quality controllers go AND THEN adding VR is brilliant. The 3D allows , I believe, for faster lap times, and the feeling of brushing against walls and running right up against the ground is amazing. In Euro Truck it's also brilliant in it's own way, as now the entire cabin of the truck comes to life... and more. It's hard to quantify in words in a forum. At my recent 40th birthday I had a bunch of friends over, friends who aren't gamers. I told them about this and they were very skeptical, "I'm not a gamer. I just can't do the controllers" etc. I couldn't pry them off my simrig all night. From my own experience, the way interaction happens in VR with FPS's, and generally with games where you aren't seated, is at best a gimmick that can only be done for a short period of time. I'm not saying it'll never be suited, but at the moment it just provide the same immersion that driving/flying games do. (Or rollercoaster demos do with little kids :))