Email attachments using Laravel

Easy way to send attachments with your emails using Laravel

If you have used Laravel framework, you would know that it abstracts some of the difficults tasks. I have used it in past for various projects and have seen a great improvement in productivity within my teams. Lately Laravel has been gaining popularity amongst developers. If you have ever built a SAAS app or even a small reporting app for your boss, it would have some kind of a built-in mailing system either to send the users some information or to mail that report to your boss at the end of the week. While this is not so complicated using...
Read More

Prevent mass assignment in .NET Core

Prevent the manipulation of posted data in Asp.Net Core using data attributes

A mass-assignment vulnerability occurs when a user passes an HTTP parameter through a request, and that parameter changes a value in your database that isn’t expected to be changed. For example, suppose you have a user authentication system where there are normal users and admin users. Admins have access to protected system settings and have rights to modify them. By default, every user that signs up will be a normal user. Suppose you have a flag within your database called is_admin that determines whether a user is an admin or not. A hacker user might send an is_admin parameter through...
Read More

.NET Core - MVC

Intro to .NET Core MVC app using cli

In the previous post, we learnt how to create a basic .NET Core console app. But I think that isn’t what you are looking for. You are looking for something that is, even more, fun than a basic console app. You want something that works on the internet! That’s right, you want a web app. In this post, we will see what happens when we choose mvc instead of console while we used the dotnet new command which we used earlier. But before we jump into creating an MVC app, let’s try to take our console app and make it...
Read More

.NET Core - Intro

Getting started with .NET Core in VSCode

I programmed for the first time ever back in Turbo C++ days. I was thankful that I choose Computer Science as my major in high school instead of Biology. I knew that I wanted to be doing something with computers for my career. I was fascinated as I wrote simple code into the IDE with bright blue background and overly colourful code syntax highlighting. Here is a little taste of nostalgia :wink: Image attr: By SAMNAD.S - Own work, CC BY-SA 3.0, Link It was a moment of bliss to see the computer obey your instructions and execute the code...
Read More

Real Developer

How do we define a real developer?

The development industry might be the fastest moving industry in the modern era. Every other day you see people creating new stuff - frameworks, languages etc. This is a good thing, day in and day out efforts are being put into making development a better and an efficient process. But with all this happening, the pressure on a developer to keep up is sometimes just too much. New workflow, tools, editors, framework etc. How much would you be able to learn and grow? Especially if you are working at a job where you interact mainly with legacy tech, the flashy...
Read More

Jekyll watch on Windows

Installing Jekyll on Windows and associated issues

I recently changed to Windows 10 as my primary operating system. I have been using Jekyll as my blogging platform since a long time now. Hosted on Github Pages, integrates nicely with VSCode as editor. VSCode supports markdown and has git integration too. I have written previously about getting up and running with Jekyll. But when I tried the same with Windows, I ran into problems. For starters, getting Ruby and Jekyll installed. I used something called Chocolatey, which is a package manager for Windows similar to Homebrew for Mac and apt-get for Ubuntu. After I got everything installed and...
Read More

Illustrations

Back to learning design. In Inkscape.

I always had a liking for illustration and design. Back during my school days, I tried creating some graphics in what was then the ultimate tool for graphic design - MS Paint. Before you frown upon it, take a look at this!. Sure, I never made such awesome graphics using Paint, but I was fascinated the way you could digitally create an image. Years later I came across a tool called Adobe Fireworks. It was from the same family of products as Photoshop and Illustrator, but little less popular I suppose. Sadly it is discontinued now. I have seen very...
Read More

Higher order functions in JavaScript

A look into functional programming concept in JavaScript

If you have been reading other posts on this blog, you might see that I am a fan of JavaScript. We skimmed through the surface of ES6 in an earlier post. Today we’ll go a bit into the functional programming aspect of JavaScript. Concept of functional programming makes programming a joy by saving complication and development time as well. Functional Programming We all know what functions are. Be it any high level language like C, C++, Java, PHP or Python, they all have functions. Functions enable re-using a set of instructions. Let’s take the following simple example: // return the...
Read More

Getting Started with ES6

The new JavaScript - ES6. It's cool.

Being in tech is overwhelming at times. There is always scope to learn more and if you are not able to keep up with the industry, you are going to be left behind at some point. There are so many new languages, frameworks, workflows and techniques coming out every day that it is hard to keep up. But to stay relevant in your area it is important to see the trend and prepare yourself for the future. One particular area where I have seen this trend in the past few years is in the JavaScript world. This last decade has...
Read More

My blogging workflow

Blogging on Jekyll using Visual Studio Code.

Starting in 2010, I have tried various blogging platforms. Blogger, WordPress (both self hosted and .com one), Tumblr have all at one time or the other, hosted my thoughts. Initially blogger felt really simple but as WordPress came in, it seemed to be more customisable. I ran a self hosted WordPress site for quite sometime, but felt that for my blog I do not need anything as complicated as WordPress, with a database and all that. Also, I ended up paying for domain and hosting as well since WordPress.com did not allow free custom domain mapping. I did not want...
Read More