Pages

Sunday, 26 March 2017

PHP Pandas 🐼🐼🐼

                                              I wanted to revise PHP ... It's been a long time. This book https://daylerees.com/php-pandas/ looks awesome. Also it's author has provided free version to read this book online.

Monday, 20 March 2017

Installing redis in macOS sierra

             Installing redis in macOS Sierra is easy if you've HomeBrew installed. Just watch this video to install redis in your macOS Sierra.

Wednesday, 15 March 2017

Multer, Nodejs, File uploading without extension. Solved.

                So i faced this problem that files that i was uploading were uploading without extensions in nodejs express server to which i was uploading files using multer. πŸ˜•

Quick workaround i found was on this Github Multer Issue Page πŸ˜„

First of all run this command to install this package mime

npm install --save mime


And this is how i was able to make it work.😎

Monday, 13 March 2017

Image uploading in Nodejs Express app using Multer

                             Follow the instructions shown in the video below to upload image in nodejs express server using multer.


Thursday, 2 February 2017

remote sdk in rubymine vagrant

                                       Just open your terminal and ssh into your vagrant and run this command


This path can be copied and pasted to the remote sdk ruby path and that's it.

Saturday, 28 January 2017

[Fixed] Angular 2, ng serve Error: no errors

                                    So guys i created an app using angular-cli and it was giving error like shown in the pic below.


This problem is due to the latest version extract-text-webpack-plugin and to solve this problem just run the command shown in the picture below.

npm install extract-text-webpack-plugin@2.0.0-rc.0 --save-dev

And this will surely solve your problem.

Monday, 23 January 2017

Node version manager in macOS Sierra

                                  It's pretty simple to install node version manager(NVM) in macOS Sierra just run these commands one by one in your iTerm2


curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash


1
2
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"

After this type nvm into your iTerm2 as shown in the picture below.

and voila thats how you can install nvm in macOS Sierra :D