In this blog we will learn to write standalone script which will be a generalized script to convert entire database to csv/xls files etc.
Standalone script is basically a script where you don’t need to run server. It is “stand alone” i.e it is capable of performing tasks without any other requirement.
This blog was initially published on https://www.gyaanibuddy.com/blog/django-standalone-script-to-take-database-backup/
A django project with any database along with some models whose data you wish to take backup.
This code is going to be the bare minimum skeleton of our script.
As we are advancing in technology , we are using more and more devices and along with it comes the internet connectivity which has become inseparable. With this level of functionality comes many security issues. The termed coined for this is cyber crime.
In this report we will discuss major cyber security issues and challenges and also the solutions to protect ourselves from them.
This blog was initially published on https://www.gyaanibuddy.com/blog/a-survey-on-cyber-security-threats-and-challenges-in-modern-society/
Cybercrime is criminal activity that either targets or uses a computer, a computer network or a networked device. Most, but not all, cybercrime is committed by cybercriminals or…
This is second part of the blog. To follow along, visit my previous blog to set up AWS S3 — bucket policy,configuration etc.
This blog has two parts:
Part II — Using node js programatically perform operations on S3.
In this blog we will see node js implementation to do the following:
Most of the websites require hosting to host images,videos etc. One obvious way to do it is to store it in hard drive. That seems alright but what if size of this storage required exceeds to hard drive storage limit. We will need to scale it accordingly which is a bit tedious task. So here hosting service like AWS S3 comes into picture which can store huge amount of media files and can scale accordingly.
This blog was initially published on https://www.gyaanibuddy.com/blog/using-nodejs-s3-to-createdeletelist-buckets-and-upload-list-objects-part-1/
This blog has two parts:
Part I — Learn how to setup aws s3 and manually use it.
I still remember as a beginner i always wanted to host my website. I was just obsessed with the thought of building a website and having a url which i can visit from anywhere. Lets see how to do it for free.
In this blog with minimum steps we will host node js website on heroku. Heroku docs are pretty good but i as a beginner found it difficult as it explains everything in detail providing unnecessary explanation which scared me away as a beginner. This blog is…
In this blog we are going to use an amazing library django-import-export which can convert database to various formats like csv, xls, json, html, yaml, tsv, ods. It can do it the other way round too which means that it can convert a file to database and it does it very smarty. Read the blogtill the end and you will know why i said smartly!
In this blog we will go from very simple example covering char field,Foreign Key,Many to Many field and learn how to convert import and export data into csv.
2. Create a…
As a beginner i always used to wonder how image data is stored. Is it like a folder containing thousands and thousands of images or is it stored as string in database.
In this blog we will see rather than storing image on a folder locally, how can we save image on cloud storage service (cloudinary) and use image’s url.
We will use cloudinary because it requires minimum setup and is easy to use.
Whenever you make a website like social media app or blog app , you will most probably have feature where you will allow user to upload images. That’s what we will build here — minimal file upload server.
This article is also published on gyaanibuddy.
We are going to build a simple application using node.js which is capable of uploading sinlge/multiple images to server.
There are various ways by which we can upload image to server using node.js. One of the easiest and common ways to do it is by using multer library.
Multer is a node.js middleware for handling…
Full stack developer