Portfolio
file

PHP Auto create XML playlist file

December 5, 2015Category : Code/Web

List file create order by abc <?php // *** requires PHP5 *** // search for jpg files $filter = “.mp3”; // path to the directory you want to scan $directory = ‘./audio’; $it = new RecursiveDirectoryIterator(“$directory”); foreach( new RecursiveIteratorIterator($it) as $file) { if (!((strpos(strtolower($file), $filter)) === false)) { $items[] = preg_replace(“#\\\#”, “/”, $file); } }..

Read more
01.

Add videojs player html5 with javascript

November 18, 2015Category : Code/Web

index.php <div id=”video”><p> Restart or F5 browser to view this content.</p></div> <link href=”<?php echo get_template_directory_uri(); ?>/css/video-js.min.css” rel=”stylesheet”> <script src=”<?php echo get_template_directory_uri(); ?>/js/videojs.min.js”></script> <script src=”<?php echo get_template_directory_uri(); ?>/js/jquery.min.videojs.js”></script> <script type=’text/javascript’> var obj, source; obj = document.createElement(‘video’); $(obj).attr(‘id’, ‘example_video_test’); $(obj).attr(‘class’, ‘video-js vjs-default-skin’); $(obj).attr(‘controls’, ‘ ‘); $(obj).attr(‘poster’, ‘http://todaytv.club/movie_night_image.jpg’); $(obj).attr(‘preload’, ‘auto’); $(obj).attr(‘data-setup’, ‘{“inactivityTimeout”: 0}’); $(obj).attr(‘autoplay’, ‘true’); source = document.createElement(‘source’);..

Read more
02.

[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
04.

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

Đối phó với các tập tin Winmail.dat

September 1, 2015Category : IT & Network

Khi bạn sử dụng Outlook 2010 hoặc Outlook 2007 để gửi thư email, người nhận thư sẽ thấy một tệp đính kèm có tên Winmail.dat Mô tả sự cố Khi bạn sử dụng Microsoft Office Outlook 2010 hoặc Microsoft Office Outlook 2007 để gửi thư email, người nhận thư sẽ thấy một tệp đính kèm..

Read more
07.

Cách kiểm tra độ chai pin trên laptop không cần cài thêm phần mềm

August 28, 2015Category : IT & Network

Pin máy tính laptop dùng lâu ngày sẽ bị chai tuy nhiên để xác định được pin bị chai bao nhiêu thì thường chúng ta sẽ cần tới phần mềm hoặc tự ước lượng trong quá trình sử dụng. Tuy nhiên có một cách đơn giản mà chính xác giúp bạn xác định được mức..

Read more
08.

NetSpeedMonitor: Thêm thanh hiển thị tốc độ mạng vào Taskbar

August 28, 2015Category : IT & Network

​ Để làm được như hình trên, bạn cần cài một app nhỏ tên là NetSpeedMonitor. Ưu điểm của nó là chạy không rườm rà, không tốn nhiều diện tích màn hình, rất nhẹ. Tuy công cụ này đã bị tác giả ngừng phát triển khá lâu nhưng vẫn sử dụng tốt trên Windows 10..

Read more
09.

Ngăn chặn Microsoft theo dõi người dùng

August 27, 2015Category : IT & Network

Microsoft 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 more
010.

Điều cần phải làm trước khi ra mắt trang web Magento

August 20, 2015Category : Code/Web

1. Thay đổi Base URLs Những URL này được lưu trữ trong cơ sở dữ liệu của Magento, khoá core_config_data. Bạn cũng có thể thay đổi nó trong Admin của Magento bằng cách vào System > Configuration > Web. Bạn chỉ thay đổi cái này khi bạn chuyển domain hoặc đổi kiểu domain, ví dụ khi bạn cài SSL cho trang web..

Read more
012.

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

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

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

Chrome install slient with config

March 25, 2015Category : IT & Network

The following process has been tested and confirmed working with Google Chrome 11 and ConfigMgr / SCCM R2. It does the following tasks: Install Google Chrome silently Set Google Search as the default search engine Set Google Australia as the default home page Does NOT set Google Chrome as the default browse No ‘Getting Started’..

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