Okay bài toán này trước đây mình đã xử lý. Tuy nhiên giờ thì xử lý triệt để hơn. Gửi notifications / email khi có favorited movies. Dựa trên genres / castsGửi email khi có movie mới lên WordPress Về cơ bản 2 bài toán này similar nhau. Observe table movies khi có createdKiểm tra... Continue Reading →
XGallery – Bài toán queues và workers trên VPS Hostvn
Giải quyết bài toán crawling với queues / mongodb & redis / MySQL trên VPS 2 cores / 2 GB RAM
XGallery vs Google Drive
Flickr . ! Feature này được develop để đưa photos download từ Flickr qua XGallery lên thẳng Google Drive luôn. Như vậy giảm tải cho local storage, dễ dàng sharing hơn. Tất nhiên cái giá phải trả là trả cho Google Drive. Vậy feature này work sao Dĩ nhiên đầu tiên là download photos (... Continue Reading →
Laravel queue vs XGallery pool
Tất nhiên là win thuộc về Laravel rồi. Tuy nhiên bài này mình đưa ra 1 cách nhìn khác, khi mà mình chưa biết về Laravel.
Use OAuth in Laravel with GuzzleHttp & Socialite
Cái này mất của mình gần như 1 buổi để tìm ra 1 số troubles và hướng giải quyết. Thứ nhất phải làm rõ là Socialite về bản chất nó đóng vai trò như Authenticate ! Và chỉ là Authenticate. Nó không phải là OAuth client thuần tuý ! Do đó không thể dùng nó... Continue Reading →
Quick command to reset your data with Laravel route
Với project XGallery thường xuyên phải reset data sau khi test một cái gì đó. Mà nhiều thứ phải làm quá ... nên build nhanh 1 con clear:all Artisan::command('clear:all', function () { array_map('unlink', array_filter((array) glob(storage_path('logs/*.log')))); $this->comment('Logs have been cleared!'); array_map('unlink', array_filter((array) glob(storage_path('app/*.tmp')))); $this->comment('Tmp files have been cleared!'); $tableNames = Schema::getConnection()->getDoctrineSchemaManager()->listTableNames(); Schema::disableForeignKeyConstraints(); foreach ($tableNames as $name)... Continue Reading →
OneJAV – Bài toán crawl hết data site
Hiện tại site này có khoảng 5210 pages . Target là làm sao XGallery khi install trên 1 server mới thì có thể crawl hết data này ???
How to use laravel queues
Bài viết này vừa viết để share và cũng là để mình nắm rõ, chi tiết hơn về món này.
XGallery – Laravel version
http://xcrawler.net/blogs/xgallery-on-laravel/ Lần refactor này ngoài mục đích để tụng kinh Laravel cho công việc, nhân tiện đó cũng sẽ improve nhiều thứ Configuration cho từng CrawlerOAuth với Laravel tốt hơnImprove Web interface với các notificationsImprove với dispatcher / eventImprove với CollectionGiảm thiểu duplicate codeImprove UnitTest: Bao gồm Feature Test & UnitTest Và nhiều thứ hay... Continue Reading →
XGallery on Docker Hub
https://hub.docker.com/repository/docker/xgallery/ubuntu Enjoy !
You must be logged in to post a comment.