Master-Detail: Field is not writable error on Apex

I came upon this error when I am assigning the custom object to the master standard object. Eg. accountId derived from a query Then I get this error. The fix was actually easy. I just rewrote it to assign the master id on instantiating the child object. Hope somebody finds this useful. Recommended Reading: Dec […]

Time of the Year

It’s that time of the year again where you look back and reflect on what you have accomplished and things you were not able to achieved. Achieved Goals for 2014: This year I started out with a goal to start investing for the future. I got into insurance, stocks, mutual funds and having 6 months emergency […]

Configure WordPress Update on Ubuntu EC2 instance

EC2 instances uses SFTP and not FTP. Since you do not have a password. The easiest way to configure the WordPress update is via command line. SSH into your instance and enter the following. sudo chown -R www-data /var/www/wordpress sudo chmod -R 755 /var/www/wordpress Jun 30, 2014lopau

Add row rerender on a list with input fields looses data

Having a list in your controller that is displayed as input fields either through pageblock or repeat and you need to add another row to the list via a button.  Chances are when you enter data on any input field on any row and you hit Add Row button that has a rerender attribute that […]

Parsing Instagram JSON on Apex

Last week I had a challenge of making a API callout to Instagram from Salesforce and then parse the returned JSON content and the mapped the values to become a record for a custom object. Basically each media post and comments becomes a record in Salesforce. First off you can start by reading this article […]

Javascript Page Redirect on a VF Page

Stumbled upon this issue and found an easy fix. You have a VF page that you want to redirect a user to a different website, say for OAuth2 authenticate. window.location.href=’https://api.instagram.com/oauth’; This will not work as the browser will complain about Iframe security or Security sandbox violation. This is because VF page are iframed, to get […]

Welcome 2014

Welcome 2014. 2013 went by so fast. It was so busy, fun, stressful yet productive. I want 2014 this time to be different I want to work smarter and not harder. Be effective vs being efficient, I was efficient but was not that effective meaning I was working more. I have set some goals in […]

Forbidden You don’t have permission to access /~username/directory in Mac OS X

I have this weird issue with my website backups. When I store them inside my Sites folder and try to view them from the browser. 1. They do not appear listed when I do a directory listing 2. Accessing the folder manually produces the error You don’t have permission to access on localhost /~username/mydirectory This […]

Troubleshoot AWS SimpleEmailService – Sender – RequestExpired

On our AWS EC2 instance email delivery stopped working without any notice. Customers started reporting that they are not receiving their emails. Better check your error logs. If you find something like this. PHP Warning: SimpleEmailService::sendEmail(): Sender – RequestExpired: Request timestamp: Sun, 15 Sep 2013 06:39:50 UTC expired. It must be within 300 secs/ of […]

Error on EC2 Command Line Interface Tool Mac OS X

Just recently Amazon Web Services(AWS) has started offering AWS Certifications for Solutions Architect. I got excited of the thought of having a new certification under my belt so I jumped back to getting myself acquainted back to AWS. One of my first thing I needed to do was to get up to speed with the […]