Skip to main content

Posts

Showing posts from 2014

node.js and elastic beankstalk

AWS uses Nginx to proxy requests to node application. When you first deploy your app and try to load the site in a browser you may see an error - "502 Bad Gateway". To troubleshoot, you may want to check node.js logs. You could either go to elastic beanstalk dashboard to get a most recent snapshot of logs or ssh to an ec2 instance to view a log file at /var/log/nodejs/nodejs.log . In my case, I was getting an error - "Error: listen EADDRINUSE". I was starting a node server on 8080 but AWS was already running Nginx on the same port. (Note: To lookup ports in use type "sudo netstat -lnptu") . I noticed that a node process was running on port 8081. So I updated my node.js server to listen on port 8081 and that fixed the problem. I could then request the site (just using the dns name, no port required in the url since it is routed automatically to 8081 internally by Nginx). jfyi, when you use "git aws.push" to upload latest code to aws it is...

Firefox 401 - Unauthorized: Access is denied due to invalid credentials

I was getting this error in Firefox when I tried loading our company intranet site. Chrome was able to log me in fine. I found a solution on Mozilla support forum. See the image below for a fix. Set the value to true and then try loading the page again. That fixed the problem for me. Next time I visited the site it prompted me to enter username and password. 

Accepting Bitcoin payments for QuickBooks invoice

If you are interested in accepting Bitcoin payments for QuickBook invoices, follow the steps below to get started. Signup with Coinbase ( https://coinbase.com ). Coinbase is a Bitcoin payment processor. Link a bank account where you would like Coinbase to deposit payments from your customer.  Once the Coinbase account is setup, create a payment form at https://coinbase.com/merchant_tools?link_type=hosted as follows; select Payment Type = Buy Now Type a description in Item field. For example, Goods Sold, Service Charges etc. Select a default amount. (Your customers will be able to change it.) Click "Show Advanced Options". Under "Variable Price" select checkbox - "Let the user change the amount" if you want customers to input a variable amount or "Add some suggested amounts" if you want customers to select from one of the pre-defined amounts. All other fields are optional. Click generate page code.  Scroll to the bottom of th...