Syntax Error or Access Violation: 1071 Specified Key Was Too Long

Syntax Error or Access Violation: 1071 Specified Key Was Too Long

This error is created by the default character set used by Laravel in database. Anyone using MySQL version older than the 5.7.7 release or MariaDB older than the 10.2.2 release need to manually configure default string length generated by migrations in order for MySQL to create indexes for them.  This issue is clearly addressed in Laravel documentation. SOLUTION 1 You need to add Schema::defaultStringLength in the boot function in your AppServiceProvider. use Illuminate\Support\Facades\Schema; /** *…

Read full Article Read More

Base Table or View Already Exists Laravel

Base Table or View Already Exists Laravel

If you are familiar with Laravel environment this might be the most common issue while migrating to database. This is caused by some kind of error during migration or incomplete migration before. As a result, incomplete tables are created in the database. And, if you try to migrate next time migration error (below or similar) will be thrown. I have encounter with similar kind of issue after I have fixed Syntax error or access violation:…

Read full Article Read More

Have You Tried Tootle Ride?

Have You Tried Tootle Ride?

Is there anyone who hasn’t heard the name UBER? The answer would be “No” among those using smartphones and updated to latest technologies. And, if I ask another question: Have you heard the name tootle; then the answer would be “No” for 2 out of 10 less. What exactly is Tootle? Using Tootle you can share a ride on two wheelers inside Kathmandu Valley. In other words, you set your pickup & drop location along…

Read full Article Read More

More intelligent than ever “Siri on iOS 11”

More intelligent than ever “Siri on iOS 11”

There are a lot of exciting improvements in iOS 11 in WWDC 2017 among which ‘Siri’ is the best. With these updates now apple stood in front line among its competitor Google, Microsoft, Amazon in virtual assistant. Siri now produces more natural voice, support third party integration in apps, translate languages and both talk and type with better UI than before. Here are some of its best new updates that could change the way we…

Read full Article Read More

Cute 7 inch Apple’s new HomePod Speaker

Cute 7 inch Apple’s new HomePod Speaker

Apple unveiled its intelligent personal assistant (siri) enabled speaker called HomePod in WWDC 2017. The 7 inch smart speaker is equipped with apples own A8 chip which is used in older version of iPhone, six microphone array & seven beam-forming tweeters that provide pure high frequency acoustics. The upward-facing woofer, paired with the custom A8 chip, enables bass management through real-time software modeling that ensures the speaker delivers the deepest and cleanest bass possible, with…

Read full Article Read More

Can’t Install “gparted” From Terminal

Can’t Install “gparted” From Terminal

Sometimes, its not a piece of cake to install application in Linux although its is already in its default ppa. I have been using linux for 4 years and I recommend this is the best tool for managing partition. Here is how you normally install gparted in ubuntu 14.04 LTS (my version of OS and also works on other debian distributions). sudo apt-get update sudo apt-get install gparted Sometimes you have to add the exact version…

Read full Article Read More

6 Things To Do Before Pushing In Git Like Professional

6 Things To Do Before Pushing In Git Like Professional

If you have done any work in git than you must be familiarize with the word “git push”. If you are beginner in version control or git then you might get confused what should be done to push your changes. Here are few rules that professional follow before pushing anything in version control like github, bitbucket. The basic six rule you must keep in mind before pushing. Step 1: git branch It’s good habit to…

Read full Article Read More

Unable To Mount NTFS Partition From Linux

Unable To Mount NTFS Partition From Linux

If you have dual boot in your laptop with Linux and Windows installed, you might face this kind of problems, when windows is not properly shutdown. Generally, from windows 8 and onward “Turn on fast startup” is checked by default to reduce boot time in windows. This increases the boot time but for dual boot who specially works on Linux face this error if they didn’t shutdown windows properly. Now, Lets solve the problem without…

Read full Article Read More

Cannot Push New Files In Github Repo

Cannot Push New Files In Github Repo

There might be some condition like mine, when I tried to push newly created file in github repo of that project but everytime I commited and pushed, samething happens. There was no existence of new file which I had created in local repo. If his is your condition then just do the following few steps. Step 1:  Add files in staging area before you push it Its simple follow the command. Just make sure do…

Read full Article Read More