Discussion Laravel PHP

Laravel Polymorphic Relationships

A polymorphic relationship allows the target model to belong to more than one type of model using a single association. One To One (Polymorphic) Table Structure A one-to-one polymorphic relation is similar to a simple one-to-one relation; however, the target model can belong to more than one type of model on a single association. For …

DevOps Discussion Git Others

Angular Git commit message convention

There is no strict rule when we write commit messages.Using certain convention for commit messages will give several advantages. Angular team is using precise message format, which is clean and easy to look, contains only mandatary information. Goals allow generating CHANGELOG.md by script allow ignoring commits by git bisect (not important commits like formatting) provide …

Javascript

Zip files on Client Side

You can make zip file with contents in javascript easily. var zip = new JSZip();zip.file(“Hello.txt”, “Hello World”); var dir = zip.folder(“images”);dir.file(“smile.gif”, imgData, {base64: true});zip.generateAsync({type:”blob”}) .then(function(content) { saveAs(content, “example.zip”); }); This code will download zip file in browser, tick,,,Please use this lib for frontend side zip file generation. Reference: https://stuk.github.io/jszip/

Blockchain Discussion

MetaMask now supports Ledger Hardware Wallets

Last month, MetaMask released 4.9.0, which included support for Trezor hardware wallets. As we discussed in our ​blog post​, your funds are only as safe as your keys — hardware wallets are a great way to store keys securely offline. We want Ethereum users to be as safe as possible and we don’t want to leave anyone …

Blockchain Discussion Others

Hardware wallet integration emulator

Trezor is a hardware wallet providing advanced security for handling Bitcoin and other cryptocurrencies private keys. Unlike traditional cold storage methods (offline storage or paper wallets), Trezor makes secure payments without exposing your private keys to a potentially compromised computer. See Security philosophy for more info. Trezor is a small single-purpose computer. It is designed to protect your private keys from possible …