You don’t need more time, you need more focus.

You don’t need more time, you need more focus.

  • Write out as many goals as you can think of for that week: This will help so you know what needs to get done and can focus without wondering what to do
  • Get the hardest task done first: Accomplishing the hard tasks first when you have the attention span for it is key as the day goes on and more distractions are always there for you.
  • Get in a routine: Have set times where you know what you have to do. This helps you not get distracted by other things you need to do.
  • Say no: There are certain times you need to respect yourself and what you need to get done.
  • Take that first step: You never know how far you can go if you just start. No matter how big the action
  • Create new habits: New habits create a new life. Your life is a result of your daily habits and so is your productivity.
  • Sleep proper amounts: If you were tired and half falling asleep the whole day you might as well just be going back to bed!
  • Stop watching the time: This is distracting you and getting bad quality work done. Forget the time and focus on your dreams.

Clearing local nuget folders

If you encounter package installation problems or otherwise want to ensure that you’re installing packages from a remote gallery, use the locals –clear option (dotnet.exe) or locals -clear (nuget.exe), specifying the folder to clear, or all to clear all folders:

Clear the 3.x+ cache (use either command)
dotnet nuget locals http-cache --clear
nuget locals http-cache -clear

Clear the 2.x cache (NuGet CLI 3.5 and earlier only)
nuget locals packages-cache -clear

Clear the global packages folder (use either command)
dotnet nuget locals global-packages --clear
nuget locals global-packages -clear

Clear the temporary cache (use either command)
dotnet nuget locals temp --clear
nuget locals temp -clear

Clear the plugins cache (use either command)
dotnet nuget locals plugins-cache --clear
nuget locals plugins-cache -clear

Clear all caches (use either command)
dotnet nuget locals all --clear
nuget locals all -clear

Or go to Visual Studio menu Tools → Options → NuGet Package Manager → General: Clear All NuGet Cache(s)

This also helps regain your precious SSD drive space!

Enjoy.

Fun sites to learn new things!

Came across this cool article in Mashable listing 20 fun sites that you can use to learn something new.

Here are few of my additions:

Open Culture Online Courses: The site features a lot of material found on universities’ sites, all in easy-to-browse categories, enabling you to find hundreds of university courses without having to visit and search each university’s site.

Alison: Alison is a free education site offering certification in some areas. Alison offers courses mainly in business, technology, and health, but also includes language learning courses.

It’s a great option if users need a professional certificate for their learning, as Alison also offers school curriculum courses.

MIT OpenCourseWare: MIT offers a variety of free courses. The school has a comparable number of courses to the schools above, and it includes very in-depth course materials on the subjects available. MIT also offers free RSS feeds, a convenient way to continue learning.

I’ll keep updating this list. You can too share sites that you think are fun in learning new things!

Specialization is for insects

Qualities of a human being:

A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.

Robert Heinlein, Time Enough for Love

How to learn things quickly

Came across a wonderful article.

Here’s a short summary of the article:

  • Mix Guided and Self learning modes
    • Guided: Take help from a Guru, YouTube, tutorial, course, anything.
    • Unguided: Try yourself what you learnt from guided one and build a little on top of that.
  • Make intentional mistakes and learn from them
    • Follow a tutorial step by step
    • Now, do it on your own. Refer to tutorial only if you’re stuck.
  • Extend tutorial
    • Follow tutorial and at the end build upon the final version. Be creative, be adventurous.
  • Build related projects
    • If you learnt something from the guided tour, try to build something related or of similar nature
  • Cultivate the mindset
    • It is really critically important to cultivate the mindset if you want to learn things quickly
    • We learn much faster from mistakes, from struggling and failing, than from success
  • Set goal
    • A clear goal with time line in mind can keep you motivated and help you progress faster
  • Building the memory
    • Use spaced repetition or any other method you’re comfortable with to build memory
  • Build a daily habit
    • Spend 1 hour daily instead of 7 hours on Saturday
  • Learn in Public
    • Publish while learning
  • A network of skills
    • An area you know well may sometimes help you understand new related things quickly

Enjoy.

Remove migration C# EntityFramework Core 3.1

To completely remove all migrations from Database and from project, use following:

dotnet ef database update 0
dotnet ef migrations remove
remove-migration

1st step will remove all migrations from database, 2nd will remove all but first one from project, and last command will remove the last remaining migration.

A clean state for you.

Enjoy.

Edit: If you want to remove last migration in DotNet 4.5, follow these steps:

Update-Database –TargetMigration: TheLastGoodMigration
Add-Migration [existingname] -Force