Portfolio
code

[WP] W3 Total Cache settings with Cloudflare GUIDE

October 12, 2015Category : Code/Web

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
01.

Isometric Angle Text Using CC3

September 22, 2015Category : Code/Web

HTML code: <h1>ISOMETRIC TEXT</h1> <p> Here’s a reworking of my original CSS3 Isometric Text demo, this version improves on the first attempt by using the CSS :after selector to duplicate the title to create the shadow – in fact the title IS the shadow &amp; the Isometric lettering is the :after content. </p> CSS code:..

Read more
02.

Snake Game Code

September 22, 2015Category : Code/Web

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 more
03.

Jumping Game

September 22, 2015Category : Code/Web

  HTML code: <!DOCTYPE HTML> <html lang=”en-US”> <head> <title>Jump</title> </head> <body> <div class=”container”> <canvas id=”canvas”> Aww, your browser doesn’t support HTML5! </canvas> <div id=”mainMenu”> <h1>Milo Jump</h1> <h3>using HTML5,</h3> <h3>…by <a href=”http://twitter.com/solitarydesigns/” target=”_blank”>Kushagra Agarwal</a></h3> <h3>and <a href=”http://cssdeck.com” target=”_blank”>CSSDeck</a></h3> <p class=”info”> use <span class=”key left”>←</span> <span class=”key right”>→</span> to move and space to (re) start… </p> <a..

Read more
04.

Beautiful Line Effects with Color Changes

September 22, 2015Category : Code/Web

HTML <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 more
05.

[MSSQL Server] Code xóa Logfile

September 17, 2015Category : Code/Web IT & Network

Declare @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 more
06.

Cài đặt Dark theme cho các ứng dụng Windows 10

August 28, 2015Category : IT & Network

Microsoft đang thử nghiệm theme màu đen cho các ứng dụng Windows 10 PC để đồng bộ với Windows Phone. Để bật theme tối, ta cần phân ra 2 loại ứng dụng, một là thay đổi toàn cục theo Registry, hai là thay đổi trong thiết lập ứng dụng. Thay đổi thiết đặt Registry Thay..

Read more
07.

Ajax Username Validation with PHP and MySQL

August 20, 2015Category : Code/Web

Tutorial for ajax username validation using jquery and php to check if the username is available in the mysql database. Requirements jQuery Library Database and table First create a database in mysql and create a table called members in it.

Read more
08.

Change language for Windows 8 Single Language edition

June 29, 2015Category : IT & Network

When you buy a cheaper laptop you may have Windows 8 Single Language installed on it, which means there is a preinstalled interface language (or sometimes a few languages) and there is no official way to change them as you would in Windows 8 Core (the regular Windows 8). This is similar to what happens..

Read more
09.

Shortstack – Giải pháp DIY để làm app cho Fanpage của bạn

June 29, 2015Category : Code/Web

Bạn có bao giờ mong muốn bản thân có khả năng lập trình để tạo ra những apps thú vị và chạy được trên Facebook để thỏa mãn sức sáng tạo vô biên của bạn? Vấn đề là làm nghề Marketing đã đủ mệt và chiếm hết cuộc sống của bạn rồi, tất nhiên là..

Read more
010.

Player video picasa with youtube player

May 14, 2015Category : Code/Web

Bước 1: Lấy link video picasa dựa vào RSS: Ví dụ: http://redirector.googlevideo.com/videoplayback?id=e72b617775f4e090&amp;itag=5&amp;source=picasa&amp;cmo=sensitive_content%3Dyes&amp;ip=0.0.0.0&amp;ipbits=0&amp;expire=1401870838&amp;sparams=id,itag,source,ip,ipbits,expire&amp;signature=7B3729E5732AE2399FF2AB5A539229E06E3ED6B5.4A5B6DD9D3CD5F10C973B48C822A56AC27875889&amp;key=lh1 (Link trên sẽ hết hạn theo thời gian, link chỉ có giá trị minh họa.Hoặc bạn có thể lấy link tại RSS sau: http://picasaweb.google.com/data/entry/api/user/116918391913616722990/albumid/6012960367881032401/photoid/6012960371327767570?prettyprint=true Bước 2: Giải mã URL (url decode) vừa lấy được Ta được: http://redirector.googlevideo.com/videoplayback?id=e72b617775f4e090&amp;itag=5&amp;source=picasa&amp;cmo=sensitive_content=yes&amp;ip=0.0.0.0&amp;ipbits=0&amp;expire=1401870838&amp;sparams=id,itag,source,ip,ipbits,expire&amp;signature=7B3729E5732AE2399FF2AB5A539229E06E3ED6B5.4A5B6DD9D3CD5F10C973B48C822A56AC27875889&amp;key=lh1 Bước 3: Sửa tất cả &amp;..

Read more
011.

YouTube Tutorial – The Player API

May 14, 2015Category : Code/Web

Dozens of video sharing sites may offer streaming video that plays back in higher quality than YouTube, but if you want eyeballs (and millions of them), then Google’s monstrously popular YouTube is the place to be. For a long time, all you could do with YouTube as a web publisher was embed its hosted videos..

Read more
012.

DMCA: Bảo vệ bản quyền nội dung số cho Website

April 27, 2015Category : Code/Web

Digital Millennium Copyright Act (DMCA) là luật bản quyền Mỹ, thực hiện các giao ước quốc tế năm 1996 của tổ chức Sở hữu Trí tuệ Thế giới (WIPO). Trong đó các hạng mục được bảo vệ bao gồm tất cả nội dung số, chống lại vấn nạn vi phạm bản quyền trên Internet. Đến..

Read more
013.

Firefox install slient with config

March 25, 2015Category : IT & Network

To configure the Firefox default settings at the application level for all new and existing users you will need to use cusomised config file. There is one thing to note, that is that once the settings are configured it can not be changed by the user, whether or not you use ‘pref’ or ‘lockPref’. The..

Read more
014.

Ms Office Exploit 2003,2007,2010,2013 Embed exe in doc

March 22, 2015Category : Virut/Trojan

Step 1: Download and install MetaSploit. Step 2: Open metasploit Console from start menu.

Read more
015.

Installing PHP FastCGI and Zend OPcache on XAMPP for Windows

November 14, 2014Category : Code/Web

Why install PHP + FastCGI? Mod-PHP comes installed with XAMPP, and it is slow. You also cannot utilise the Zend opcode cache, which is included with PHP itself since PHP 5.5. Steps to install PHP + FastCGI

Read more
016.
© Oliver / All rights reserved.
To top