HTML code: <canvas id=”canvas”></canvas> <div id=”reMenu”> <h1 id=”snake2″>Snake</h1> <p id=”info2″>Game Over</p> <a href=”javascript: void(0)” id=”restart” onclick=”reset()” >Restart</a> <a href=”#” id=”tweet” target=”_blank” rel=”nofollow”>Tweet My Score</a> </div> <div id=”menu”> <h1 id=”snake”>Snake</h1> <p id=”info”>by <a target=”_blank” rel=”nofollow” href=”http://twitter.com/SolitaryDesigns”>Kushagra Agarwal</a></p> <a href=”javascript: void(0)” id=”start” onclick=”init()” >Start</a> <p id=”loading”>Loading…</p> </div> <p id=”score”>Score: 0</p> <!– Audio –> <audio id=”main_music” loop> <source..
Read moreHTML <canvas></canvas> <script src=”https://code.jquery.com/jquery-1.11.1.min.js”></script> CSS: html, body { background: #000; margin: 0; } canvas { position: absolute; } JS: //Forked from http://andreasstorm.com/ //Made by Bogden //CANVAS $(function(){ var canvas = document.querySelector(‘canvas’), ctx = canvas.getContext(‘2d’) canvas.width = window.innerWidth; canvas.height = window.innerHeight; ctx.lineWidth = .3; ctx.strokeStyle = (new Color(150)).style; var mousePosition = { x: 30 * canvas.width..
Read moreDeclare @SQLQuerry nvarchar(255) Declare @dbname nvarchar(255) Declare @CrsrVar Cursor Set @CrsrVar = Cursor For SELECT name FROM sys.databases where name not in (‘tempdb’,’distribution’,’master’,’model’,’msdb’,’ReportServer’,’ReportServerTempDB’) Open @CrsrVar Fetch Next From @CrsrVar into @dbname While(@@FETCH_STATUS = 0) Begin — Truncate the log by changing the database recovery model to SIMPLE. SET @SQLQuerry = ‘USE [‘ +@dbname +’];ALTER DATABASE..
Read moreMicrosoft theo dõi bạn như thế nào? Thông qua Network Connectivity Status Indicator: Mỗi khi bạn khởi động máy tính, một test kết nối bạn sẽ được chạy tự động để kiểm tra kết nối Internet có khả dụng hay không Máy tính thực hiện kết nối request tới một text file trên NCSI Server của Microsoft (..
Read moreBạn đang đợi một email quan trọng từ sếp nhưng lại không thường xuyên online. Đừng lo lắng, hãy thiết lập Google gửi cho bạn một tin nhắn SMS ngay khi có email mới. Để thực hiện, bạn cần thiết lập thông số trên 3 ứng dụng Google: 1. Google Calendar 2. GMail 3. Google..
Read moreW3 Total Cache là một plugin hỗ trợ tăng tốc (tạo bộ nhớ đệm) rất tốt và chuyên nghiệp nhất hiện nay mà lại hoàn toàn miễn phí, tuy cách sử dụng và cài đặt có thể hơi khó. Sở dĩ lại có chuyện này là vì W3 Total Cache hỗ trợ tới kỹ thuật..
Read moreNginx bản thân nó đã là một web server có hiệu suất hoạt động rất tốt. Tuy nhiên vẫn có nhiều cách để tối ưu thêm và một trong số đó là sử dụng module được phát triển bởi Google có tên PageSpeed (ngx_pagespeed) ngx_pagespeed tăng tốc website của bạn và giảm thời gian load đáng kể bằng..
Read moreNếu bạn chỉ có một website duy nhất và lúc nào cũng truy cập vào trong đó thì chắc chắn sẽ biết được lúc nào website sẽ bị lỗi không truy cập được (hay còn gọi là downtime). Nhưng nếu bạn có nhiều website cùng lúc và có những website không truy cập thường xuyên..
Read moreMaintaining a backup of the Dynamic Host Configuration Protocol (DHCP) database protects you from data loss if the DHCP database is lost (for example, due to hard disk failure) or becomes corrupted. There are three backup methods supported by the DHCP Server service: Synchronous backups that occur automatically. The default backup interval is 60 minutes…
Read moreNhư chúng ta được biết trong môi trường doanh nghiệp việc chia sẽ file tài nguyên mạng giữa các nhân viên các bộ phận giúp cho thuận tiện trong công việc làm việc theo nhóm, cũng như bảo mật và backup dự phòng. Nhưng điều này cũng dẫn đến tình trạng có nhiều người có..
Read more1. Giới thiệu Theo ủy ban tình báo hạ viện Mỹ “Năm 2012 các doanh nghiệp Mỹ mất đi khoảng trên 300 tỷ USD từ trộm cắp bí mật thương mại”. Data Loss Prevention (DLP) là một thuật ngữ an ninh máy tính đề cập đến hệ thống xác định, giám sát và bảo vệ..
Read moreNếu một ngày mail của cơ quan bạn tự nhiên bị đưa vào blacklist thì bạn sẽ giải quyết thế nào? tôi xin hướng dẫn bạn cách nguyên nhân và cách xử lý, đây là kinh nghiệm thực tế tôi đã gặp và rút ra tài liệu đầy đủ Nguyên nhân – Mail Client: Do việc..
Read more
[WP] W3 Total Cache settings with Cloudflare GUIDE
W3 Total cache is a WordPress Performance Optimization framework that is designed to improve user experience and page speed. It is recommended by many web hosting providers, and used by countless major websites such as mashable.com as well as many others. W3TC improves the user experience of your site by increasing web server performance by reducing..
Read more