404 error caused due to certain form element names in WordPress

One day I decided to help people out on Stackverflow with what little knowledge I had. I came across question where a user was facing a 404 ERROR when submitting a form on the page. The user was redirected to the same page when the form submitted but with 404 ERROR while that was not the case if the user visited that page directly.

Did some debugging and found that he had a value as “name” for the “name” attribute of the field which was causing the issue. It seems that WordPress uses some of these variables in its query, so submitting a form that has a field with the same name throws off the query and causes a 404 ERROR. So far I’ve found reports of these words being reserved.

  • name
  • date
  • year
  • month
  • day
  • hour
  • minute

So, try not to use these words as the value for the “name” for any form fields in your WordPress site.

 

 

MI-power-bank-10400-mah

The Big Boss of Power Banks is finally up for Pre Order in India – Xiaomi MI Power Bank

The long awaited Xiaomi MI Power Banks are finally up for pre order on Flipkart.com, the exclusive seller for Xiaomi products.

You can Pre Order the MI 5200 mAh Power Bank at price of just Rs 799 over HERE.

If you still want a larger capacity power bank, here is the Big Boss of Power Banks : MI 10400 mAh Power Bank which is available for pre-booking at price of Rs 999 over HERE.

Yeah, you heard it right. Double the capacity for Rs 200 extra. The estimated time of release if expected to be 5th week of august as mention on the Flipkart’s site.

Anyone can miss-judge the device as a Cheap Chinese Product just by looking at the price of the product when compared to the features/quality it provides. But the reality is just something awesome, just as the case with XIAOMI MI3 which is just Super Awesome same as the Power Banks.

The Good about these MI Power Bank :

  1. High Capacity ( 5200 & 10400 mAh )
  2. Great Design, looks good, feels good. Comes with aluminum casing.
  3. 2.1A output; 2A input
  4. Quality Components: Battery components by LG/Samsung. Charge and Power management chip by Texas Instruments.
  5. The Best one : Super Affordable.

The Bad( Not So ) about these MI Power Bank

  1. Charges only 1 device at a time, which is not that because generally wont be needing to charge multiple devices simultaneously.
  2. Doesn’t come with a power adapter. Comes with a good flat micro USB cable for charging.

Still can’t believe the awesomeness of the product? Then you should surely checkout the in-depth review and tear down of the MI 10400 mAh Power Bank which was carried out by the guys at hardwarezone.com over HERE

For those who need help while buying a Power Bank, HERE is a good article regarding the 5 points to keep in mind while buying a Power Bank.

Was lucky to get the XIAOMI MI3 on the first round of sale which was exactly a month ago and eagerly waiting to get my hands on the MI 10400 mAh Power Bank.

Battle for the Iron Throne. HBO

Rahul Gandhi’s interview for a C++ programmer job

Rahul Gandhi recently gave an interview for a job of C++ programmer. Here is the full transcript:

Interviewer: Welcome Mr Gandhi. You were supposed to be here by 8 AM but you are entering now at 9.30 AM. Why so much delay?

Rahul: Let me tell you what Rahul Gandhi has to say about this. This morning, I got up at night.Rahul Gandhi's interview for a C++ programmer job

4 O’clock in the morning, I got up at night, went into the balcony and was thinking about “inheritance in C++”. My mother entered the room. And she cried!! She told me, “Programming is poison!!”

She reminded me how my grandmother ended up burning the computer because her code did not handle/terminate a recursive function which led to stack overflow and overheating of processor which burnt the computer itself. She then reminded me of how my father ended up burning his Toshiba laptop because by mistake he added a while(1) statement causing an infinite loop leading to processor overheating and burning of the laptop itself.

But I explained to her that she need not worry because in today’s world, computers & laptops are outdated because everything is in cloud. Since clouds have water vapor, I think there will be no overheating and burning problems. By the time we finished this conversation, it was already 9 AM and that’s why I am late to the interview.

Interviewer: No need to be so much serious and defensive Mr Gandhi. I just asked it to find out if it was due to any inconvenience in finding our address. Anyway, let’s begin now. Tell me about yourself.

Rahul: To understand Rahul Gandhi, you must first understand Rahul Gandhi. You must first know the circumstances he grew up with. I saw my grandmother’s computer getting burnt. I saw my father’s laptop getting burnt. I saw my grandmother’s account being hacked. All these were because of bad programming practices in the industry. There is a clear aim in my mind and I do not like what I see in programming. I see tremendous amount of talent & energy in programmers but it is trapped. I want to unleash their energies by changing the system of programming itself.

Interviewer: Ok, ok. Calm down Rahul. I just asked you to tell me about yourself, not about your grandmother and energies of other programmers. Let’s leave that aside. Your resume says you have been a programmer for the past 10 years. What is the relevant experience you have for this project and how can you contribute to our software?

Rahul: Before answering it, I want to explain you what Rahul Gandhi thinks about your project. In fact, Rahul Gandhi says the whole programming industry itself is flawed. There is no representation of women in this industry at all. The first thing I would be doing is to hire 1000 women programmers who will come up with a programming language alternative to C++. Since it will be created by women, we are going to call it “She ++”.

In this She++, we are going to rewrite the rules of the game because there will be no “private” & “public” members in a class. All will be “protected” because that is the need of the hour for women security who need to be “protected”. All the classes by default will be “friend” classes because only when all the women are friends with each other, there can be total women empowerment.

Interviewer: That is a great idea, Mr Gandhi. But that is for the IDE, programming language & compiler. We are not a compiler design firm. How can you contribute for our software?

Rahul: I was about to come to it and you interrupted me. Where was I? Yes, software. Your software is totally opaque and I want to make it transparent. By transparency I mean disclose all the relevant information and source code to the user. This is called “Right To Source Code” (RTSC).

Whenever any user right clicks on any UI screen of the software, it should always give a drop down menu with a mandatory option called RTSC which when clicked gives the source code of that UI screen and all the relevant code of the underlying modules including kernel. Let the user have access to the entire codebase this way along with the revision history of that part of the code. This is the transparency I want to bring into the software system.

Interviewer: That sounds highly ambitious. Now tell me about different types of software development models.

Rahul: Firstly, I am against this funda called “development model”. I don’t believe in any model. All these models advertised by other programmers in their respective companies are just toffee models. These models are large balloons which will soon burst. You know this super programmer of a company who always claims that his software has the best development model and advertises all over social media.

Do you know who actually develops his code? The women of his company. It is the girls in the company who write code and this man takes all the credit and calls it using some special development model names. Did you know what happened in my childhood? I used to play badminton with our computer technician everyday. One day, that same computer technician hacked into my grandmother’s computer and formatted all her data. It happened right in front of my eyes!! I will not be surprised if someone hacks into my computer as well.

Interviewer: Mr Gandhi, please calm down and do not run around in circles. Since you were already late for the interview, I am running out of time. So I would like to finish this with one last question. Why should we hire you?

Rahul: To understand why you must hire me, I first want you to know that our industry gets its force from its women who are like the rivers. These women are constantly working hard like bees & this is why our industry is like a beehive.

In order to take our industry forward, we need women empowerment. Women of every section of the industry, every department of each company, every team of each department, must be empowered and I am here to empower them. Look at the other candidates you have. One of them snoops women all the time. Another supports midnight raid on innocent Uganda women living in Delhi.

Now you tell me, do you want a snooper, midnight raider or someone who can empower women which in turn will help in inclusive growth of the industry which in turn will help your company.

Interviewer: You have great interlinking skills, Mr Gandhi. I could never imagine that our industry could be related to beehives & rivers. I am so confused now that I am wondering what this interview was actually scheduled for. Oh yeah, I remember now. This was for a C++ programmer’s job. Anyway, I am done with the interview. You may leave now. Our HR team will get back to you on May 16.

Now is the time for India to Vote!!

This is it. After 5 eventful years, it is time for the world’s largest democracy to decide it’s future. The future of India rests in your hand. Only you can decide whether our country will get rid of corruption and other issues, whether we can bridge the gap in development between India and the world, and whether India’s global image can be improved.

And that can only happen when you decide, when you lift that finger-your index finger-to vote, cause each and every vote is important and counts.

This election, Team TrippleSlash urges you to drop everything you’re doing and vote. Because our country’s future can’t wait. And we urge you to vote for the right candidate – NOTA is always there, but if there is a honest candidate in your constituency, he/she deserves your vote. And we do not endorse Congress, BJP, AAP or any other party. What you choose is your choice.

Vote wisely. Vote this time.

abki bar modi sarkaar. Time for india to vote

All said, I personally promote Narendra Modi and will vote for BJP and it will be “ABKI BAAR MODI SARKAR”.

Height of stupidity : A Dutch teen got arrested for Tweeting a threat (joke) to American Airlines

Don’t know what to call it, stupidity or innocence or just lack of common sense.

A Dutch teen name Sarah on 13th April tweeted a threat to American airlines saying this:

Sarah-threat-tweet-to-american-airlines

In just about 6 mins,  the American Airlines replied to her tweet saying they take it seriously and FBI will be after her.

american-arilines-reply-to-sarah-threat-tweet

Just after receiving the reply, she came to know that she was in real trouble and replied that it was just a joke and she was not from Afghanistan n all… I just couldn’t stop laughing watching the whole thread.

Sarah and american airlines tweet thread

Teens now a days are taking this things too lightly, but this might come out as a lesson for such ppl.

I would just like to say to the teens of today’s age to spend less time on social media and have some real fun and be safe!!!

Enable – Disable javascript in Mozilla Firefox version 23+

You might be wondering that where the hell did the “disable javascript” option go from the Firefox Option window. The thing is that, now a days, software vendors are trying to make simplify their products and making them robust by protecting users form accidentally damaging the piece of software, in this case Mozilla Firefox. Following this trend, the disable JavaScript option was removed from the Firefox Options since the version 23.

But there is nothing for you to worry about, because the disable javascript option is not completely removed from Firefox, just the way to reach option is changed. There are still 2  ways to reach that setting, i.e

1. about:config

  1. Open firefox and type “about:config” ( without quotes ) and press Enter.
  2. You will see a notice “This might void your warranty!”. Click “I’ll be careful, I promise”.
  3. Search for “javascript.enabled” ( without quotes ) in the search bar at top of the page.
  4. Double click the result name “javascript.enabled” or Right click it and select “Toggle”.
  5. Hurrey!!!! Javascript is now disabled on your browser.

If you want to Re-enable javascript, repeat these steps.

2. Add-ons

There are few add-ons also available for Firefox which you can use as an alternative to the manual method ( about:config ).

  1. No-Script ( A plugin to disable JavaScript on a per page basis, as required.)
  2. QuickJava ( A plugin to easily disable and enable JavaScript.)