Bài đăng

Đang hiển thị bài đăng từ Tháng 9, 2019

Download a file from Google Drive using wget

Hình ảnh
Download a file from Google Drive using wget Why use? If you are here, i believe you are looking for some solution to download a file in Google Drive without browser GUI. :D  In this way we will get: Get a file and do not need open browser, or can not have GUI like web service. Do need compress file before download(this take lot of time) Require: Of course, we need wget  sudo apt-get update sudo apt-get install wget wget --version Get your file link from your drive by get shareable link: Make sure anyone can access this file.  Get before "/view" in shareable link Example:  https://drive.google.com/file/d/1Zmp3tf3g1kaMpG949iIFQjZqvLOFJlrr Let's download Clone this repository:  gdown.pl git clone https://github.com/circulosmeos/gdown.pl.git cd gdown.pl ./gdown.pl https://drive.google.com/file/d/1Zmp3tf3g1kaMpG949iIFQjZqvLOFJlrr/edit Done, time to enjoy :D

Are you bored?

Hình ảnh
Are you bored? Let me make you better! # train_in_the_terminal # fun_sum Fun Sum         // Sum all even element number of number         $n = (int) 1222;         $degit = 0;         $sum = 0;         while($n>0){             $degit = (int)$n%10;             // not allow to put n/=10 here :))             if((((int)$n /= 10 ) || ($n<10)) && $degit%2){                 continue;             }             $sum+=$degit;         }         dd($sum); Train in the terminal

Tổng hợp hững cuốn sách hay

Tổng hợp hững cuốn sách hay Tuổi trẻ không trì hoãn - tác giả Trần Cách     Là cuốn sách hay, nên đọc dành cho người trẻ và tất cả mọi người có tính trì hoãn trong người. Cuốn sách chỉ ra nguyên nhân, tác hại và cách giải quyết các vẫn đề của sự trì hoãn. Bạn đọc sẽ rất bất ngờ khi cuốn sách sẽ lật tẩy tất cả sự trì hoãn giống như "đi trong ruột" bạn vậy :D.      Xem review tại đây  để quyết định đọc hay không nhé.      Nếu bạn đọc muốn nghe thì vào link và đăng nhập để nghe User name : KAITOKIDK10 Pass : 7UeEbAMVMafGmUN Cuối cùng, bạn nên mua sách để ủng hộ tác giả, nhà xuất bản và dịch giả. --------------------------------- Đắc nhân tâm - tác giả Dale Carnegie     Chắc chắn bạn sẽ khôn còn xa lạ với cuốn sách này rồi.  Đắc nhân tâm của Dale Carnegie là top những quyến sách bán chạy nhất thế giới, một cuốn sách thật sự đem lại những giá trị tuyệt vời cho người đọc, bao gồm những lời khuyên cực kì bổ...

Auto complete in jquery

Hình ảnh
Auto complete in jquery Require A smile and... done. Autocomplete with default Create file aucomplete.html and start edit it: Add input tag with text type <body>       <input type="text" /> </body> Import jquery 1.9.1 and jquery ui 1.9.2 <body>      <input type="text" /> </body> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script   src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"   integrity="sha256-0YPKAwZP7Mp3ALMRVB2i8GXeEndvCq3eSl/WsAl1Ryk="   crossorigin="anonymous"></script> Add js function call autocomplete <body> <input type="text" /> </body> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script   src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"   integrity="sha256-0YPKAwZP7Mp3ALMRVB2i8GXeEndvCq3eSl/WsAl1Ry...

How to delay startup application in Ubuntu

Hình ảnh
How to delay startup application in Ubuntu Start startup application Type startup application in Ubuntu search. Select application Type application script to start or browse path. Add sleep for startup application Insert sleep code before application name/path. sleep <time>; Just so easy! After you saved the changes, it takes place in next boot.

Mở đầu về hình ảnh trong Open CV và python

Mở đầu về hình ảnh trong Open CV và Python Đây là link bài gốc , bạn nên đọc tiếng Anh vì tác giả giải thích rất cặn kẽ. Trước khi thực hiện bạn phải cài Python và Open CV: (mình dùng Python 2.7 và Open CV 3 Cách cài => google :v # import the necessary packages import cv2 # load the image and show it image = cv2 . imread ( "image.jpg" ) cv2 . imshow ( "original" , image ) cv2 . waitKey ( 0 ) Đầu tiên import thư viện cv2. Sau đó đọc file ảnh "image.jpg" cùng thư mục. Hiển thị hình ảnh nguyên bản. Đợi người dùng nhấn bất kỳ nút gì để thoát. print image . shape Hiển thị 3 thông số của hình ảnh: (320, 430,3). image.shape[0]=320 ứng với 320 dòng => chiều cao của ảnh. image.shape[1]=430 ứng với 320 cột => chiều ngang của ảnh. 3 chính là thuộc tính RBG của ảnh. Tiếp theo ta căn chỉnh kích thước của hình ảnh. Ví dụ dưới là các bước để căn chỉnh hình ảnh theo chiều cao 100px. # we need to keep in mind as...

Laravel, composer and PHP artisan

Laravel, composer and PHP artisan Laravel và composer Creat laravel project: composer create-project --prefer-dist laravel/laravel project_name Ex: Create laravel project name todolist composer create-project --prefer-dist laravel/laravel todolist Build project locahost: php artisan serve Set project key: php artisan key:generate   To turn on maintenance mode, use artisan down php artisan down Check the current version of laravel installation? php artisan –version // Output: // Laravel Framework version 5.2.45 Put Laravel application in “maintenance mode” php artisan down // Output: // Application is now in maintenance mode. Display the environment laravel is running php artisan env // Output: // Current application environment: local Run Database migrations php artisan migrate // This executes all the defined migrations and create database tables. To start Laravel project.   php artisan serve By, default this ...