[QUOTE=Map in a box;40904575]It's just capitalized for clarity.[/QUOTE]
The proper term, iirc Mb stands for bits, where has MB stands for bytes, so you really should be using Mbits.
No one would read it as "Megabytebits", plus it's all temporary.
I'm working on an API to serve data from AnimeCalendar.net in JSON format. It could potentially be used for building smartphone applications or extend existing websites. It has response caching since the data doesn't change that frequently. The data is parsed using the phpQuery library.
Here's an example. If you omit the 'year' and 'month' parameters, it defaults to the current date. All times, including the UNIX timestamp are UTC+9 (Tokyo). Valid years go from 1900 to 2099.
[url]http://jsonviewer.stack.hu/#http://sysdev.edge-gamers.com/anime-api/?year=2013&month=7[/url]
[QUOTE=Map in a box;40904840]No one would read it as "Megabytebits", plus it's all temporary.[/QUOTE]
Is it hard to admit you made a small mistake?
[QUOTE=Map in a box;40904840]No one would read it as "Megabytebits", plus it's all temporary.[/QUOTE]
It's misleading and not the correct terminology. Just admit it, change it and take the criticism on the chin.
[QUOTE=Map in a box;40904575]It's just capitalized for clarity.[/QUOTE]
I would just change it, it doesn't make it any clear, just more confusing if anything.
Megabit = Mbit or Mb
Megabyte = MByte or MB
Its quite an important thing to distinguish and you should just follow the rules of the abbreviations.
Holy shit the things you guys will get in extended arguments about...
[QUOTE=nehkz;40928311][video=youtube;xAP8CSMEwZ8]http://www.youtube.com/watch?v=xAP8CSMEwZ8[/video]
[url]http://www.reddit.com/r/web_design/comments/1fsowv/the_text_editor_to_end_all_text_editors/[/url][/QUOTE]
Looks awesome. I'm gonna give it a try.
I've used brackets before, but I'm so used to sublime it's hard to make a switch :P
[QUOTE=nehkz;40928311][video=youtube;xAP8CSMEwZ8]http://www.youtube.com/watch?v=xAP8CSMEwZ8[/video]
[url]http://www.reddit.com/r/web_design/comments/1fsowv/the_text_editor_to_end_all_text_editors/[/url][/QUOTE]
Holy jesus that is unbelievable! I'd love to have that.
[QUOTE=Asgard;40909252]Is it hard to admit you made a small mistake?[/QUOTE]
I'm not denying it, like I said it's all temporary. Doesn't help that everything was rolled back for some reason so it's all gone.
[QUOTE=Map in a box;40931054]I'm not denying it, like I said it's all temporary. Doesn't help that everything was rolled back for some reason so it's all gone.[/QUOTE]
Lesson learned today is: Always backup your files.
And how come something just "rolled back"?
It was all made in one day, so I didn't really figure I needed to back it up yet.
--
I have no idea how it happened, it just did.
[QUOTE=Map in a box;40931054]Doesn't help that everything was rolled back for some reason so it's all gone.[/QUOTE]
git
I was going to put it on a repo once I woke up(went to bed pretty damn late)
[QUOTE=Map in a box;40933804]I was going to put it on a repo once I woke up(went to bed pretty damn late)[/QUOTE]
A good rule of thumb would be to create a repo even before you've written the first line of code.
You don't generally think you stuff will be rolled back the next day, though. :saddowns:
Yeah but it's hard to keep your commits nice and granular if you don't have a repo for the first whole day of work
That was the idea, I'd commit when I woke up.
Made this for an assignment a couple of months ago, still chipping away at it every now and then to fix the bugs, improve it and add more features.
It could probably do with being rewritten to be honest, it was my first canvas project and first time doing anything substantial in JS.
[url]https://github.com/bbrks/html5-breakout[/url]
[img]https://raw.github.com/bbrks/html5-breakout/master/screenshots/main_menu.png[/img]
[img]https://raw.github.com/bbrks/html5-breakout/master/screenshots/game1.png[/img]
[img]https://raw.github.com/bbrks/html5-breakout/master/screenshots/game2.png[/img]
[QUOTE=rieda1589;40948494]Made this for an assignment a couple of months ago, still chipping away at it every now and then to fix the bugs, improve it and add more features.
It could probably do with being rewritten to be honest, it was my first canvas project and first time doing anything substantial in JS.
[URL]https://github.com/bbrks/html5-breakout[/URL]
[/QUOTE]
That ball moves way to fast.... I cant even clear the first level
[QUOTE=Miljaker;40949942]That ball moves way to fast.... I cant even clear the first level[/QUOTE]
On normal difficulty?
Are you using the mouse or keyboard to control the paddle? Mouse works way better
[QUOTE=rieda1589;40950355]On normal difficulty?
Are you using the mouse or keyboard to control the paddle? Mouse works way better[/QUOTE]
Mouse. On normal difficulty. How do you manage speed? Do you have a delta modifier in your loop? Or is it just more fps = faster game
[editline]8th June 2013[/editline]
Yea looks like you don't have a delta modifier. I disabled GPU rendering and lower fps = lower game speed.
[editline]8th June 2013[/editline]
[php]
now = Date.now();
delta = (now - then);
then = now;
[/php]
Then multiply every coordinate change with delta.
[QUOTE=Miljaker;40950370]Mouse. On normal difficulty. How do you manage speed? Do you have a delta modifier in your loop? Or is it just more fps = faster game
[editline]8th June 2013[/editline]
Yea looks like you don't have a delta modifier. I disabled GPU rendering and lower fps = lower game speed.
[editline]8th June 2013[/editline]
[php]
now = Date.now();
delta = (now - then);
then = now;
[/php]
Then multiply every coordinate change with delta.[/QUOTE]
I'm using requestAnimationFrame so your browser [i]should[/i] be locked at 60FPS, not sure why it isn't?
[QUOTE=rieda1589;40950488]I'm using requestAnimationFrame so your browser [I]should[/I] be locked at 60FPS, not sure why it isn't?[/QUOTE]
requestAnimationFrame sucks. Classmates I'm working with did some testing and requestAnimationFrame does unexpected shit half of the time. Your better off not using it. I didn't do tests myself so I can't really tell you much more. We don't use requestAnimationFrame and it works just [URL="http://www.noob.asia/"]fine[/URL] (uncompressed 4k images and mp3s so loading takes ages).
[QUOTE=Miljaker;40950548]requestAnimationFrame sucks. Classmates I'm working with did some testing and requestAnimationFrame does unexpected shit half of the time. Your better off not using it. I didn't do tests myself so I can't really tell you much more.[/QUOTE]
Interesting, I haven't run into any problems since I started using it about 4 months ago until now. Can I ask what browser/version you're on please?
[QUOTE=rieda1589;40950584]Interesting, I haven't run into any problems since I started using it about 4 months ago until now. Can I ask what browser/version you're on please?[/QUOTE]
Chrome 27.0.1453.110 m - 330 fps.
IE 10 - 60fps
Firefox 21- Doesn't work at all.
If I were to set up ruby on rails relationships for post ratings, like on Facepunch. How would I go about that?
Currently I have something along the lines of:
rating.rb
[code]class Rating < ActiveRecord::Base
belongs_to :user
belongs_to :post
end[/code]
post.rb:
[code]class Post < ActiveRecord::Base
belongs_to :user
has_many :ratings
end[/code]
user.rb
[code]class User < ActiveRecord::Base
has_many :posts
has_many :ratings, :through => :posts
end[/code]
What'd be the best way to go about this?
[editline]8th June 2013[/editline]
And how would I even access it?
[editline]8th June 2013[/editline]
Wrong thread. Dicks.
Some times I have the most fun messing around with the simplest stuff.
[URL=http://i.imgur.com/V8bHnkf.png][IMG_THUMB]http://i.imgur.com/V8bHnkf.png[/IMG_THUMB][/URL]
PHP + Redis, simple service status board based on a check-in/ping system, with support for notifications through e-mail and text.
[QUOTE=StinkyJoe;40952267]Some times I have the most fun messing around with the simplest stuff.
[URL=http://i.imgur.com/V8bHnkf.png][IMG_THUMB]http://i.imgur.com/V8bHnkf.png[/IMG_THUMB][/URL]
PHP + Redis, simple service status board based on a check-in/ping system, with support for notifications through e-mail and text.[/QUOTE]
That looks pretty.
What window manager etc are you using?
Sorry, you need to Log In to post a reply to this thread.