What is Blitzjs and Why you should use it?

Introduction
BlitzJS is a full stack framework. In simple terms it’s NextJS with additional features to make a developers life easy.

Quick Recap of NextJS (a Full Stack framework)

  1. Server side rendering feature – good for SEO.
  2. Page based Routing
  3. Lets you create backend API’s.

Why Blitz then?

But when you create a new NextJS app it’s totally bare-bones. You need to spend time adding basic stuff like eslint, prettier etc.

This is where Blitzjs shines. It makes building a web application fun and easy.

Key features

  1. No APIs needed
    You can import server side code to frontend directly, no API’s needed. Blitz does all the hard work for you. Alternatively you can continue using REST or GraphQL API’s to fetch data.
  2. Authentication
    When you create a new application with Blitz you get Authentication feature out of the box. Features like Login, Signup and Forgot Password. This can save you lot of time as setting up authentication is not only time consuming but also tricky.
  3. Code Scaffolding
    The initial code is scaffolded for you but doesnt limit you. This can save you tons of time. That said you are free to change it the way you like.
    To add additional modules there are recipes. Like if you want to add tailwind or material-ui it’s just one command away.

In the next article I will share steps to create a simple application using Blitzjs.

Warren Buffett shares his love for Reading

A common trait that can be seen in successful people like Bill Gates, Elon Musk and Warren Buffett is their love for reading. They grew up reading heavily and still continue to do that. Be it reading fiction, biographies and what not.

In an interview when Warren Buffett was asked how he keeps up to date with so much information coming his way he shared his love for reading. He said he spends 5 to 6 hours everyday just reading books.

Warren Buffett on his love for Reading

What surprised Mark Zuckerberg, at his 2005 Harvard Lecture

Back in 2005 Mark Zuckerberg took a “Computer Science” lecture at Harvard.

He started by talking about some of the strategies that Facebook used to improve its performance, one of them being caching.

After talking for a while he asked the audience for any questions. To his surprise there weren’t any technical questions as such. Well anyone will be surprised I guess. After answering a few questions he finally commented “No CS Questions”.

Watch this clip, which is quite funny !

Simple and natural ways to increase Endorphins

In medical terms Endorphins are the chemicals produced naturally by the nervous system to reduce pain or stress. In short it can boost your happiness.

Low levels of endorphins may make you feel stressed out.

Foods like Dark Chocolate, Spicy Foods or in general any food that you like wil cause endorphin release.

Laughter increases endorphins. Faking it also helps.

Exercise is known to boost endorphins.

Listening to music also boosts endorphins.

Sunshine also works wonders.

Other ways to improve endorphins

  • Meditation
  • Breathing Exercises
  • Massage

Praise for the “National Tele Mental Health Program” by NIMHANS director which can be a game changer

In the Union Budget presented by Finance Minister Nirmala Sitharaman for the year 2022-23, it was announced that there will be a Tele Mental Health Program to support people who have been facing deteriorating mental health, especially amid the pandemic.

This initiative has been praised by Dr Pratima Murthy, Director of National Institute of Mental Health and Neuro Sciences (NIMHANS), as per an article published in financialexpress.

She said that the decision could be a “game-changer” for the situation of mental health care in India. Given that the pandemic has led to an increase in the mental health problems of people across different age groups. In the budget she has proposed setting up of 23 tele mental health centres in the country, with NIMHANS acting as the nodal centre.

The article also talks about a mental health survey which was carried out by NIMHANS . The surbey showed that 10.2% of the population suffered from diagnosable mental health problems or substance use disorder.

The good thing is that people have started talking about their mental health problems. It has also been observed that practices like Yoga and Mindfulness can help with such problems. Music Therapy is also a good option that people are exploring.

Military Technique to help you sleep in 2 minutes

A military technique for falling asleep is seeing a lot of popularity again, and it could be a good idea to see if it helps you with sleep. It’s been reported that it works in two minutes or less.

This technique sounds similar to a Yog Asana referred to as Shavasana. Which is used for deep relaxation.

Justin Agustin shared this. The technique was originally designed for fighter pilots, who need their sleep so they can stay focused.
He claims that the trick allowed soldiers to go to sleep at any time – even in the middle of a fight.

He goes on to explain the technique. You start by relaxing your body starting from forehead. Then your eyes, cheek and jaw. Then relax each part all the way down to your feet. To overcome stresses in the mind one way is to imagine you are lying in a canoe on a calm lake with clear skies, or that you’re in a black velvet hammock in a dark room.

Should you get distracted, by intrusive thoughts or bullets flying through the trenches, you should repeat the words “don’t think, don’t think, don’t think” in your mind for 10 seconds, before returning to picturing your chosen calm scene.

Try this next time you have trouble sleeping.

What India can learn from Qiddiya (the Kingdom’s entertainment city)

Saudi Arabia is a country rich in geographical and cultural diversity. They always try to plan and build things that amaze all of us. In the year 2017, they announced the construction and set up of Qiddiya, also known as the kingdom’s entertainment city.

What is Qiddiya?

It’s one of the most popular and awaited projects of Saudi Arabia. The public investment fund of Saudi has announced plans to construct the Kingdom’s largest sports, cultural and entertainment city for the people.

It is named Qiddiya as it’s situated in Al Qiddiya, which is on the southwestern side of Riyadh. It is also planned that approximately 4000 residential houses will be built by the year 2025 and the numbers will increase every year.

It’s built over 377 square km of land and is planned to have six different styles of theme parks, water parks, an F1 racing track, athletic stadium, creative corner side, artistic activities and many more.

What is the purpose of Qiddiya?

The CEO of Qiddiya stated that this project is one of its kind, with huge investments.

It’s expected to give a boost to the countries economy, which currently depends on oil primarily.

It’s planned very carefully and tactfully. The purpose is not just to attract tourists but also provide a great alternative to the residents, so they don’t leave the country to spend. The Qiddiya construction was planned to direct all the tourism and keep them intact in the kingdom only.

So what can India learn?

  • A similar project can boost the economy, create jobs and opportunities and invite investments.
  • It can also be a good opportunity to showcase Indias rich cultural heritage.
  • It can boost the tourism sector significantly and also inspire youngsters looking to try different things.

Qiddiya can be an inspiration for India, and building something similar can not just boost the economy and create jobs but also boost the sports and entertainment sectors.

What is Astro and why you should consider using it to build your website

Astro is one of the most notable projects of the year. Astro is a tool to build web sites that load faster because they ship less JavaScript.

Risingstars

How can you build a faster website?

To build a faster website you need to ship less code. Astro is a kind of static site builder that delivers lightning-fast performance with a modern developer experience.

With Astro you can build your site using your own framework like React, Vue or just HTML and JavaScript. Astro then renders the entire page to static HTML, removing all JavaScript from your final build by default.

If there is a real need for some Javscript component, Astro loads it when it’s visible.

It supports all the npm packages, CSS modules etc and is SEO enabled.

How it works?

Astro works like a static site generator which means it will generate a static HTML site for you during build, with almost no Javascript. It’s pretty obvious that this will be much faster compared to a site with Javascript.

When a component, like add to cart or carousel, needs some JavaScript, it loads that component. The rest of your site continues to exist as static, lightweight HTML. This new approach to web architecture is called islands architecture.

Sample project is available at Github – https://github.com/ankur-srivastava/astro-blog

Meet Nouf Marwaai : Founder of the Arab Yoga Foundation and Padma Shri Awardee

In a Tweet President Ram Nath Kovind said that Nouf Marwaai played an instrumental role for legalising Yoga in Saudi Arabia. She was born with an auto-immune disease and overcame the challenge through Yoga and Ayurveda. She was awarded Padma Shree in 2018.

She is the first Saudi certified yoga instructor. She is also an entrepreneur who has been travelling between Saudi Arabia and India and founded Arab Yoga Foundation.

In an interview published by Arab News, she says “I was underweight, tired, and suffered from malnutrition due to the extreme diets they put me on for my allergies and digestive problems. Symptoms that I had suffered from were joint pain, weakness, chronic fatigue, skin rash, allergies, loss of focus, sleeping problems and stiffness.”

She started taking organic vegetarian diet and stumbled upon a Yoga book. After which she travelled to India to study Yoga and Ayurvedic medicine.

This helped her heal and become stronger. She loves traveling to India.