Uncategorized

MySQL Error – Field ‘name’ doesn’t have a default value – OS X

This error crops up when you’re trying to run INSERT or UPDATE command with empty fields for which default value isn’t set.

Cause:

MySQL has a couple of modes,  of which STRICT_TRANS_TABLES is the one screwing you over. This mode is enabled by default in an install-script generated my-default.cnf or my.cnf file. (the exact name depends on your MySQL version)

Continue reading

node

Install NVM on OSX sooner than later

Much like Ruby’s version manager, its best to get Nodejs Version Manager from the beginning if you’re going to be working with Node.
Node being actively under improvement is churning new versions quickly. Keeping up with different package requirements can be a mess even if you’re not dealing with multiple projects. And you probably need some serious help if you’re doing so. Which is where NVM comes in.

Continue reading

Ruby on Rails

NetSuite API Integration with Ruby on Rails – Part 2 – Add Sales Order

NetSuite is a popular ERP software used by several businesses and can be easily integrated with a Rails project using a gem called ‘netsuite‘. In my previous post, we sent Get, Get All, Get Select Value, and Search requests to query data from NetSuite System. We also collected all the data and stored it in a handy csv.

Now, we’ll see how to create a Sales Order Object and send an Add request to add a new Sales Order to the NetSuite records. Continue reading

Digital Life Hacks

Use Google Drive to Automatically Sync Music between Android Phone and PC for free

Without music, life would be a mistake. – Friedrich Nietzsche

We want our music everywhere we go. Whether we’re working on a desktop at the office, lazing around with our laptops, or on a bus with our phones.
When we add to or remove music from our library, we want it to happen on all the devices, automatically.
We want to use our favourite music players, and not the ones the cloud services choose to impose on us.
We want all the music available offline too. Because crappy network connectivity shouldn’t stop the music.

Sounds like we’re asking for a lot. But there are still a couple of ways we can get all of that for free.

Continue reading