Saturday, July 7, 2018

simple youtube download pc window

What this about?
The simplest youtube downloader

Why?

  • Most online youtube downloader website being taken down
  • While free youtube downloader bloated with ads and things you don't need

Solution
Command line youtube downloader, Im going to teach how

STEP 1
Go to http://rg3.github.io/youtube-dl/download.html and download "Windows exe"



STEP 2
Open command line (also called CMD)


STEP 3

  1. Name of the file you download is "youtube-dl.exe"
  2. Go the where you download it
  3. Copy the file_path, in my case is C:\Downloads
  4. Then go to the CMD, paste cd C:\Downloads and press enter

STEP 4
At CMD type youtube-dl https://www.youtube.com/watch?v=FLQnavmeC9k
Press enter and you will see the progress. Done!


Advance
Youtube download to audio mp3

Sunday, July 1, 2018

cakephp3 laragon phpunit No code coverage driver is available

If you using CakePHP3 inside Laragon

Then when you study CakePHP3 testing you can generate the "testing results" into HTML

Problem is

phpunit --coverage-html webroot/coverage tests/TestCase/Model/Table/ArticlesTableTest

Return you this error "No code coverage driver is available"

Reason: Because no XDEBUG

Solution: Install it


How to install it, just follow this tutorial: https://forum.laragon.org/topic/264/tutorial-how-to-add-xdebug-to-laragon


I just repeat as the link

Check XDEBUG install or not, go to http://localhost/?q=info then search "xdebug"

If not install, press "ctrl + a" to select the whole page

Then go here https://xdebug.org/wizard.php and paste the whole page, then press button "Analyse my phpinfo() output"

The xdebug wizard will tell you what to do, in my case, to install XDEBUG into Laragon is

  1. Download php_xdebug-2.6.0-7.1-vc14-x86_64.dll
  2. Move the downloaded file to C:\laragon\bin\php\php-7.1.12-Win32-VC14-x64\ext
  3. Edit C:\laragon\bin\php\php-7.1.12-Win32-VC14-x64\php.ini and add the line
  4. zend_extension = C:\laragon\bin\php\php-7.1.12-Win32-VC14-x64\ext\php_xdebug-2.6.0-7.1-vc14-x86_64.dll
  5. Restart the webserver

After restart web server, run again the command

phpunit --coverage-html webroot/coverage tests/TestCase/Model/Table/ArticlesTableTest

and you will get, at the end of the console

Generating code coverage report in HTML format ... done

Then to access the HTML results, go

http://localhost/mycakeapp/coverage/index.html

-end-

laragon CMDER command line shell is not recognized as an internal or external command, operable program or batch file

Problem

When I use Laragon CMDER command line

I receive error when type "bin/cake"

'bin' is not recognized as an internal or external command,
operable program or batch file.

Or

vendor/bin/phpunit

Return

'vendor' is not recognized as an internal or external command,
operable program or batch file.


In my case, changing "/" into "\" works

So use

bin\cake instead of bin/cake

or

vendor\bin\phpunit instead of vendor/bin/phpunit

will works

Friday, March 1, 2013

CURL not working in WAMP Window 8 64 bit

Keyword
CURL WAMP Window 8 64 bit

Quick google give me this and it works
http://stackoverflow.com/questions/10939248/php-curl-not-working-wamp-on-windows-7-64-bit

Repeat same thing

1. Visit http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/

2. Download CURL at "Fixed curl extensions". I download "php_curl-5.3.13-VC9-x64.zip" as suggested

3. Replace C:\wamp1\bin\php\php5.3.13\extcurl.dll

4. Restart WAMP

5. It Working!!

Note
Please also enable curl extension as php.ini

Sunday, November 25, 2012

Net beans high CPU process

net bean high cpu process

  • So I was developing some PHP using netbeans 6.9.1 on my i3 ubuntu 10.10 laptop
  • Then I realize the CPU process is too high causing my laptop to easily get hot
  • I have been using netbeans 6.9 for a long time and no problem before
  • This problem just occured and I not really sure the reason (either netbean update or ubuntu update?)
  • Do some google and asking few friend, they said yes there is a report for this problem
  • Anyway, the problem is solve once I install netbeans 7.2.1

Tuesday, November 22, 2011

google email phone mobile verification contact requirement

Problem
If you want to create a new Google email. They will ask for your mobile phone number.
This is Google security feature to prevent bot

Reason
Once, I read a blog (cant remember URL) about the phone verification only appear because of username you put. They will search for number or any repetitive name. If have, they will ask for phone verification

Solution
Thus the solution you need is simply putting a unique name. This is difficult since most of any name you try might already been taken.

So the solution for the solution is, "Elf name generator". Yes, Elf name is less frequently use in gmail so you will have high chance to get register new email without phone number verification

Here is some list of website that generate Elf name for you (You can find many website by simply searching "elf name generator"). Good luck in creating your new email... legolas
  1. http://elf.namegeneratorfun.com/
  2. http://online-generator.com/name-generator/elf-name-generator.php
  3. http://chriswetherell.com/elf/index.php
I do not responsible for broken link, these link are search through google on Nov 2011

That is all, your sincerely
Eärendur Fëfalas

make a troll website

I was so boring and got nothing productive to do, and so I made some "art of trolling" stuffs.
Thus, I teach you how to make a trolling Google blogspot

Example?
You can see the example here, it is my testing website anyway http://legendarytesting.blogspot.com/

Usage
In blog you can post a comment. If you put a trolling comment, people will start to look into your detail such as your blog or and website URL you put. So this is how you use it!

How to create?
Simply create a new identity for 'trolling' purpose (recommended)
  1. Create a new Google email (If you having a difficulties creating a new Google email, please refer here)
  2. Create new blogspot from the Google email
  3. Make a new post and put the code below
<div style="position: fixed; z-index: 999; overflow: hidden; top: 0px; left: 0px; width: 100%; height: 100%; background-color: white;">
    <table style="width: 100%; height: 100%;" border="0">
        <tr>
            <td>
                <div align="center">
                    <img style="border: none; box-shadow: none" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI_eHlYrh06Qg1FfiuZotW3L0qOE7XF5kX7cu29cnBA58mEF0DdAVeb77ZGsbvkMrDSLzDrIO3UeKyUbrCFBY08KswzbjOXUZp6MyXZlKf7-D4TIq8HLH9AqFE0YAM2aPqRgg32Gk8TVA/s800/trollface.jpg"/>
                </div>
                <div align="center">
                    <h2 style="letter-spacing: 3px; font-size: 20px; color: black; font-family: 'Times New Roman', Courier, Garamond, serif;">Problem?</h2>
                </div>
            </td>
        </tr>
    </table>
</div>