Posts

Showing posts with the label Web

Syntax highlighting on web page with highlight.js

How to highlight blocks of code on a web page? The easiest way to do it is by using highlight.js ! Here's how to use it step by step. 

Migrating to IPv6

Image
When writing a multiplayer game the question that arises more and more often is – "Should I bother about an IPv6?" Short answer – YES! The IPv6 is no longer a tale from the future. The number of people using the newest version of the Internet Protocol increases really fast. Quick look at Google Statiscits and you will see, that numbers of requests to Google via IPv6 grows expotentially and when writing this post it reaches 18% One of the reason why the IPv6 suddenly became a thing (except the main one – that we’re running out of addresses) is that Apple started rejecting apps that were not working with IPv6-only networks ( Source ). Shortly after that – Amazon announced support for IPv6 on their EC2 servers ( Source ). Currently – the biggest market that uses IPv6 is the mobile one, where number of devices might be even greater than the number of stationary computers. So, how the networking code should be written to support the IPv6?

Gif Player in JavaScript

At some web pages you can notice that gifs aren’t playing at the beginning but they are waiting for user to click on them to start playing. This trick can prevent from unnecessary data downloading and from overhelming the computer by displaying the huge amount of animated pictures. How is it done?