• What are you working on? v7
    7,420 replies, posted
  • [QUOTE=rookwood101;35748812]that tutorial doesn't seem to mysql escape the form input tut tut tut.[/QUOTE] Yeah its by no means perfect, stores stuff like salts in the DB which isnt great, but it is a good starting point.
  • I just updated [url]http://toaster468.com/bm/[/url] with a new analytic API I found! Its called Flexpi and it is for games/web apps and they offer free real-time stats. My game is just a simple button mashing game, but it is nice practice and getting the API working and everything was a breeze. I really recommend this. I sound like a spam bot but really, check it out. [editline]28th April 2012[/editline] Wow already 4,661 mashes. Who the heck is doing it?
  • [thumb]http://dl.dropbox.com/u/25943008/FP_stuff/Screenshots/mash_game.PNG[/thumb] Do I win?
  • I'm kinda worried you guys are going to get me in trouble. Thanks to you guys the API usage counter went from 2k to 35k [editline]29th April 2012[/editline] [QUOTE=Jelly;35754535][code]while(true){ IsKeyUp(); }[/code] Do I win?[/QUOTE] Holy fuck don't do that please. Oh Jesus I need to fix this.
  • Maybe you need to implement some sort of delay so that it can only be counted if the speed is below a certain speed - not sure if it's worth implementing that though.
  • [QUOTE=Streetser20;35756753]Maybe you need to implement some sort of delay so that it can only be counted if the speed is below a certain speed - not sure if it's worth implementing that though.[/QUOTE] Yeah I'll run the function in set interval.
  • or you could just wrap your code in an anonymous function which would stop outside tampering, although you could still write a script to trigger a button so it would be smart to add a limit also.
  • Reviewing and improving my design: From: [IMG]http://gabrielecirulli.com/p/20120429-175445.png[/IMG] To: [img]http://gabrielecirulli.com/p/20120429-180511.png[/img]
  • [QUOTE=jaybuz;35757346]Much nicer. What does the star mean though?[/QUOTE] It should represent the download to upload ratio (left number) and the required ratio that should be met (right number). That part is still problematic, I'm still thinking of how to make it represent the right message.
  • [QUOTE=TerabyteS_;35757409]It should represent the download to upload ratio (left number) and the required ratio that should be met (right number). That part is still problematic, I'm still thinking of how to make it represent the right message.[/QUOTE] A downward and upward arrow with a colon separating them? I think that would make more sense. [editline]29th April 2012[/editline] [img]http://puu.sh/s7Or[/img] Forgive the MSpaint. [editline]29th April 2012[/editline] Or lose the colon even, make it look like a mobile data connection icon.
  • [QUOTE=inconspicious;35757535]A downward and upward arrow with a colon separating them? I think that would make more sense. [editline]29th April 2012[/editline] [img]http://puu.sh/s7Or[/img] Forgive the MSpaint. [editline]29th April 2012[/editline] Or lose the colon even, make it look like a mobile data connection icon.[/QUOTE] That's a good idea, thank you.
  • that doesnt really make sense it would work for upload/download but not for required and ratio cant you just make it show required on mouseover or something
  • [QUOTE=Kwaq;35757848]that doesnt really make sense it would work for upload/download but not for required and ratio cant you just make it show required on mouseover or something[/QUOTE] A tooltip is already planned, yes. [editline]29th April 2012[/editline] [IMG]http://gabrielecirulli.com/p/20120429-190756.png[/IMG] ?
  • oh right i thought you meant an icon to seperate ratio and required looks good now
  • [QUOTE=TerabyteS_;35757289]Reviewing and improving my design: From: [IMG]http://gabrielecirulli.com/p/20120429-175445.png[/IMG] To: [img]http://gabrielecirulli.com/p/20120429-180511.png[/img][/QUOTE] The second one looks nicer, but the first one is easier to use. I would go with number one.
  • [QUOTE=toaster468;35758138]The second one looks nicer, but the first one is easier to use. I would go with number one.[/QUOTE] It's just easier to understand at first contact, but in the long run, once one knows what each number means, it would become bloated. Tooltips and possibly a feature tour should help learning about these numbers the first time you see them. Here's an example tooltip, shown on hover: [IMG]http://gabrielecirulli.com/p/20120429-192848.png[/IMG]
  • An idea, could you show ratio percentage increase per day and a arrow indication if it is going up or down, sort of how stock exchange statistics work Cant really explain it too well but hopefully you will understand, could be a nice feature
  • [QUOTE=Spero78;35758452]An idea, could you show ratio percentage increase per day and a arrow indication if it is going up or down, sort of how stock exchange statistics work Cant really explain it too well but hopefully you will understand, could be a nice feature[/QUOTE] I'm not an expert on the mechanics of private trackers, but from what I understand having the exact current ratio and the required ratio always at hand is very important because the current ratio being below the required ratio for a period of time might lead to a ban.
  • [QUOTE=TerabyteS_;35758540]I'm not an expert on the mechanics of private trackers, but from what I understand having the exact current ratio and the required ratio always at hand is very important because the current ratio being below the required ratio for a period of time might lead to a ban.[/QUOTE] Im fairly experienced, i run 3 seedboxes and yeas the required ratio is important and current, however when you are like me and have a ratio of over 20.0 being able to see the general direction of your ratio is nice. I have seedboxes setup with RSS feeds so they auto download and seed stuff, occasionally you will get a few torrents that dont seed well and being able to know your ratio is going down rather than up would be cool, Im always under the impression that the more statistics the better Excuse the crude example, but this is sort of what i meant [img]http://puu.sh/s8W1[/img]
  • [code]<?php include("database.php"); include("world.php"); include("player.php"); include("items.php"); include("defines.php"); Class Engine { // Initialize the Engine (runs when client opens the game) function init() { $dbcon = new Database; $dbcon->connect(); print "Engine Initiated.<Br />"; } // Read map from file (.txt) function readMap($mapFile) { $tiles = new World; $map = file_get_contents("maps/".$mapFile.".txt"); $mapArray = explode("\n", $map); $rowBlock = 0; $rowPos = 24; foreach($mapArray as $block) { if($rowBlock == 0) { $block = str_replace("[,0,]",$tiles->tileBlock(grass,"$rowBlock"),$block); $block = str_replace("[,1,]",$tiles->tileBlock(dirt,"$rowBlock"),$block); $block = str_replace("[,b,]","<br>",$block); $block = "<div id='a'>".$block."</div>"; $rowBlock++; } else if($rowBlock == 1) { $block = str_replace("[,0,]",$tiles->tileBlock(grass,"2"),$block); $block = str_replace("[,1,]",$tiles->tileBlock(dirt,"2"),$block); $block = str_replace("[,b,]","<br>",$block); $block = "<div id='b'>".$block."</div>"; $rowBlock++; } else { if($rowBlock % 2) { $block = str_replace("[,0,]",$tiles->tileBlock(grass,"3a"),$block); $block = str_replace("[,1,]",$tiles->tileBlock(dirt,"3a"),$block); $block = str_replace("[,b,]","<br>",$block); $block = "<div id='c' style='top:$rowPos px;'>".$block."</div>"; } else { $block = str_replace("[,0,]",$tiles->tileBlock(grass,"3b"),$block); $block = str_replace("[,1,]",$tiles->tileBlock(dirt,"3b"),$block); $block = str_replace("[,b,]","<br>",$block); $block = "<div id='d' style='top:$rowPos px;'>".$block."</div>"; } $rowPos = $rowPos + 12; $rowBlock++; } print $block; } } } ?>[/code] that's my isometry code, it's interesting if you can build the overall functions by yourself.
  • [img]http://puu.sh/s95Y[/img] Looks nice on a puny 320x480 iPod touch screen too. I'm not entirely sure on how I'm going to implement a "home" button, I don't think tapping the "planB" title is obvious enough.
  • [QUOTE=inconspicious;35759045] Looks nice on a puny 320x480 iPod touch screen too. I'm not entirely sure on how I'm going to implement a "home" button, I don't think tapping the "planB" title is obvious enough.[/QUOTE] Put a house icon next to it and it would be fairly obvious
  • I'll stuff it on the right hand side, that should be okay for now. [editline]29th April 2012[/editline] Hmm, I think I need to either use vector graphics, or have separate images for different display densities.
  • Hi all. I've thrown together a little farm shop mock up and am looking for some constructive criticism or ideas. [URL="http://numyspace.co.uk/%7Eunn_w10020799/welch/site/index.html"]http://numyspace.co.uk/~unn_w10020799/welch/site/index.html[/URL] (The logo is temporary!) Be gentle, I'm no pro! :)
  • [QUOTE=Slater;35761341]Hi all. I've thrown together a little farm shop mock up and am looking for some constructive criticism or ideas. [URL="http://numyspace.co.uk/%7Eunn_w10020799/welch/site/index.html"]http://numyspace.co.uk/~unn_w10020799/welch/site/index.html[/URL] (The logo is temporary!) Be gentle, I'm no pro! :)[/QUOTE] That doesn't look bad at all! The background gets a little distracting when scrolling because it's static and the white/grey plant part has a very attention-grabbing shape and color. I would dim it down.
  • [QUOTE=TerabyteS_;35761791]That doesn't look bad at all! The background gets a little distracting when scrolling because it's static and the white/grey plant part has a very attention-grabbing shape and color. I would dim it down.[/QUOTE] Didn't expect a positive response but I suppose everyone is their worst critic! Thanks. I'll quickly dim it as you said. [SUB]Edit:[/SUB] Done!
  • To be honest that ain't bad looking for a noobie but I think you should base the design more around farm elements. I have some pretty good ideas from those photos in the slider. Also, you have a few errors in your HTML. Meta tags need to go inside the head element, you have one outside at the top. You've miss typed all of the anchor closing tag in the navigation div. The </br> tag should be <br /> and you need to close the <hr /> tag in the footer. Really you should be using HTML5, you can read up on it here: [url]https://developer.mozilla.org/en/HTML/HTML5[/url] On last thing. Include jQuery from the Google CDN here: [url]http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js[/url] there's a good chance a visitor will have downloaded and cached it already on another website.
  • Not going to lie, I really didn't want to W3Standards check it because I knew it'd be atrocious. I'll get on that anyway. Thanks jaybuz. [SUP] Edit:[/SUP] All but the data-transition is validated now (Not HTML5!) and I'm using Googles jQuery file.