Laravel Migration Rollback fails

Most of the laravel beginners face issues with migration, mostly the migration works but the rollback fails.
Here are a curated list of possibilities and work arounds for the same.

  1. You have changed table structure manually after migration – You are never expected to do this – All changes to the db structure be only through migrations.
  2. You have changed the migration filename or classname after migration
  3. Autoload failure [Class Not found ]. Normally after creating a migration the migrate works but on rollback it will be depending on the composer autoloader which fails to load the class, so just by refreshing the autoload file you will be able to get hold of the stuff. just go to the root folder and run “composer dumpautoload” you’re good to go then!

If you have any problem with migrations feel free to ask in the below comment section.

Rehaan Shyam – My Love, My Life, My Soul, My Son

Couldn’t Believe how fast the clock ticks!
My Little Champ turns 4 today. Happy Birthday Rehaan!!!!

4 years before the same day when i was in front of labor room, the first ever so tensed hours in my life, you wiped all that off with a single smile and brought all these happiness and luck to my life.  The first time when i saw you slip and trying to walk for the first time, moment i felt so proud as a father and that much guilty as a son,  for keeping myself away from my dad. You grew up each steps making me remind of my dad better and his deeds for my well being, making me understand him more. “Rehaan, Thanks for Making me a good Son.”

The best thing i can gift you for your birthday is ” I will never say mera beta engineer banega” i will be happy to see you do what you like, coz i know how much  i am enjoying my work/profession i love.

 

rehaan chairrehaan 2
rehaan 31469920_589786207755928_20494464_n1962837_643201052414443_123042077_n

Facebook Acquires WhatsApp

Latest post on Mark Zuckerberg’s status says facebook has acquired WhatsApp. The whole deal was at 16 Billion USD and all employees of whatsapp will be joining facebook soon 🙂

 

The whole timeline story says:

I’m excited to announce that we’ve agreed to acquire WhatsApp and that their entire team will be joining us at Facebook.

Our mission is to make the world more open and connected. We do this by building services that help people share any type of content with any group of people they want. WhatsApp will help us do this by continuing to develop a service that people around the world love to use every day.

WhatsApp is a simple, fast and reliable mobile messaging service that is used by over 450 million people on every major mobile platform. More than 1 million people sign up for WhatsApp every day and it is on its way to connecting one billion people. More and more people rely on WhatsApp to communicate with all of their contacts every day.

WhatsApp will continue to operate independently within Facebook. The product roadmap will remain unchanged and the team is going to stay in Mountain View. Over the next few years, we’re going to work hard to help WhatsApp grow and connect the whole world. We also expect that WhatsApp will add to our efforts forInternet.org, our partnership to make basic internet services affordable for everyone.

WhatsApp will complement our existing chat and messaging services to provide new tools for our community. Facebook Messenger is widely used for chatting with your Facebook friends, and WhatsApp for communicating with all of your contacts and small groups of people. Since WhatsApp and Messenger serve such different and important uses, we will continue investing in both and making them each great products for everyone.

WhatsApp had every option in the world, so I’m thrilled that they chose to work with us. I’m looking forward to what Facebook and WhatsApp can do together, and to developing great new mobile services that give people even more options for connecting.

I’ve also known Jan for a long time, and I know that we both share the vision of making the world more open and connected. I’m particularly happy that Jan has agreed to join the Facebook board and partner with me to shape Facebook’s future as well as WhatsApp’s.

Jan and the WhatsApp team have done some amazing work to connect almost half a billion people. I can’t wait for them to join Facebook and help us connect the rest of the world.

 

Enhanced by Zemanta

Snapdeal – Gets an all new logo

Snapdeal – Gets an all new logo – Literally they dipped the logo in red 🙂

 

 

 

Snapdeal logo got a facelift last time in July 2013 as they rewamped the complete website during the facelift the change of logo and the color scheme added a lot value to the user experience. But now the color change of the logo only have destroyed the coherence with other design elements like the login popup which highlights the same old blue in the logo.

Snapdeal login

Snapdeal login

Whatever be the design i always enjoyed great deals @ snapdeal. Although the delivery speed is not that great as Myntra and Flipkart do, i always found cheapest deals in snapdeal.

 

What do you guys think,  will the logo rewamp be a good turn in snapdeal’s roadmap ?

DHAN HQ MARKET FEED LIVE DATA USING NODEJS

const WebSocket = require('ws'); // Assuming you've installed ws with npm install ws  class YourClassName {   constructor(clientId, accessToken) {     this.clientId = clientId;     this.accessToken = accessToken;     this.ws = new WebSocket('ws://your_websocket_url'); // Replace with your WebSocket URL     this.isAuthorized = false;   }    padWithZeros(buffer, length) {     const padding = Buffer.alloc(length - buffer.length, 0);     return Buffer.concat([buffer, padding], length);   }    async sendAuthorizationPacket() {     let apiAccessToken = Buffer.from(this.accessToken, 'utf-8');     apiAccessToken = this.padWithZeros(apiAccessToken, 500);     const authenticationType = Buffer.from("2P", 'utf-8');     const payload = Buffer.concat([apiAccessToken, authenticationType]);      const feedRequestCode = 11;     const messageLength = 83 + apiAccessToken.length + authenticationType.length;     let clientId = Buffer.from(this.clientId, 'utf-8');     clientId = this.padWithZeros(clientId, 30);     const dhanAuth = Buffer.alloc(50, 0);     const header = Buffer.alloc(83); // Adjust the size based on your actual header structure     header.writeInt8(feedRequestCode, 0);     header.writeUInt16LE(messageLength, 1);     clientId.copy(header, 3);     dhanAuth.copy(header, 33);      const authorizationPacket = Buffer.concat([header, payload]);      // Send authorization packet     this.ws.on('open', () => {       this.ws.send(authorizationPacket);       this.isAuthorized = true;       console.log('Authorization packet sent');     });      // Handle messages from the server     this.ws.on('message', function incoming(data) {       console.log('Received:', data);     });      // Handle any errors     this.ws.on('error', function error(error) {       console.error('WebSocket error:', error);     });   } }  // Usage const instance = new YourClassName('yourClientId', 'yourAccessToken'); instance.sendAuthorizationPacket();