 of December the price of crude oil per barrel went lower. As of today, January 3, the price per barrel is $52.81 ( source: www.stockhouse.com). This is a chart of the price of crude oil over the last year. Crude oil seemed to peak around last of June.
The price of crude oil on October 3 was $89.74. As seen in the 3 month chart below the price continued its downward trend to where we are at today.
Over the last 6 months oil started out flat and then started dropping the last 3 months. On July 3, the price per barrel was $104.06. The price per barrel dropped almost 50% over the last 6 months.
This total represents a 0.152% increase from 3 months ago and 42.15% increase year over year. The Cominar REIT distribution is paid out twice during December. The two payments are in the middle of the month and on the last day of the month. Therefore, there will be no payment in mid-January for this REIT. The Claymore 1 - 5 year Laddered Corporate Bond ETF, CBO, did not pay a distribution in December. CBO will pay of January 6, 2015 for unit holders on record of Dec 31. The distribution payment should be higher due to capital gains paid out by the ETF.
During the month of December, I also made a trade in BPF.UN in my margin account. I also qualified for the distribution payment, which was $20.40 for 200 units. As this was a trade it is not included in my monthly total.
NOTE: Dundee REIT changed its name to Dream Office REIT during 2014, but kept the same ticker symbol. In this post I finally changed it to its new name.
NOTE: This post was written on January 3, but published on January 4.
The year 2014 is now behind us. I made an incredible increase in my net worth. I ended 2013 with a net worth of $70418.13 and ended 2014 with a net worth of $94327.62. That is an increase of 33.95%.
During 2014, I decided to stick to paying myself 35% from job income, dividend income, and interest income. The option premiums I received and the capital gains were 100% kept in my accounts except in one case, which I wrote about here. The markets have been doing good up until recently. At the end of every month, I also put the money that is left over into my investing accounts.
During 2014, two restaurants chains headquartered in Canada and the United States were involved in the biggest leveraged buyout in history. The United States company, Burger King, purchased Tim Horton's. I read that 3G Capital, the major investor in Burger King, started the ball rolling on this acquisition talking to Warren Buffett. The deal was approved and now the new formed company operates their separate brands, but are owned by the same company. I owned 100 shares at Tim Horton's, which you can read about here. The announcement of Burger King wanting to buy Tim Horton's sent the share price skyrocketing. My purchase price was $59.70 and I sold for $89.25, which you can read about here.
$2657.85 in dividend income as reported in my dividend income updates.
$672.00 received in distributions from my trade in Dundee REIT, that I mention in my dividend income updates. Dundee REIT has changed its name to Dream Office REIT during the last year.
$12.63 in dividends per month on average due to shares accumulated due to DRIP.
Approximately $3900 in capital gains, due mostly to sale of my shares of Tim Horton's and two trades of Sherritt International. My first trade of Sherritt International was approximately $88.10 in gains and the second one, was $400.10 in capital gains.
In 2015, I will pay attention to low oil prices and read more of what effects this will have on the economy. If oil prices remain this low for the foreseeable future, there will likely be massive layoffs in the western Canadian provinces. When oil is this low, the company's in the energy sector will not drill as it is not advantageous for them to do so. The oil in North America, especially in western Canada, takes a lot of more effort and time to get oil out of the ground.
Disclosure: I currently continuing to hold D.UN in both margin and TFSA accounts.
The month of Dec 2014 is now behind us. During the month of December, the price of a barrel of crude oil stayed low. In fact, it went lower and is currently $53.71 as of December 31. This drop in price has a big effect on my portfolio due to the weight on the energy sector in my portfolio.
My cash position is large right now, and I am actively looking to employ some of that cash in investments in December. During the month, I completed a trade of shares in Sherritt International. The capital gain from this investment was removed from the account to make an extra windfall payment on credit line. I also completed a trade in Boston Pizza Royalties Income Fund in my margin account, which you can read about here and then here.
On December 31, my buy order for shares in Bank of Nova Scotia was filled. This position is directly through the transfer agent. This is the old way of buying stocks where you initially get the actual stock certificate when you start a position. There is pros and cons to investing this way.
As of January 1, 2015, the value of my portfolio stands at $74846.95. This is an decrease of 1.453% over last month. Although my energy stocks dropped, the other stocks I currently own have increase in value. I also contributed some cash to my portfolio.
I have updated my investment account tab above. Please note that my DRIP information about ENB might be incorrect. I cannot get into my account, as of this time of writing this post, and have to wait for the next business day to contact the transfer agent to change my password.
EDIT : I put the wrong name of position. "I also completed a trade in Boston Pizza International in my margin account". This should of read Boston Pizza Royalties Income Fund. I fixed the error above.<reponame>sagnikbanerjee15/abridge<gh_stars>1-10
#ifndef _ABRIDGE_SRC_FUNCTIONS_DEFINITIONS_H_
#define _ABRIDGE_SRC_FUNCTIONS_DEFINITIONS_H_

#include <stdbool.h>

int findSamFormatFlagPairedEnded (
		char*,
		int,
		char*,
		struct Paired_Ended_Flag_to_Single_Character*,
		int,
		char[],
		char*);

int findSamFormatFlagSingleEnded (char*, int, char*);

struct Sam_Alignment* allocateMemorySam_Alignment ()
{
	/********************************************************************
	 * Variable declarations
	 ********************************************************************/
	struct Sam_Alignment *s;
	int i;
	/********************************************************************/
	s = ( struct Sam_Alignment* ) malloc (sizeof(struct Sam_Alignment));

	s->read_name = ( char* ) malloc (sizeof(char) * MAX_SEQ_LEN);
	s->reference_name = ( char* ) malloc (sizeof(char) * MAX_SEQ_LEN);
	s->cigar = ( char* ) malloc (sizeof(char) * MAX_SEQ_LEN);
	s->reference_name_next_mate = ( char* ) malloc (sizeof(char) * MAX_SEQ_LEN);
	s->seq = ( char* ) malloc (sizeof(char) * MAX_SEQ_LEN);
	s->qual = ( char* ) malloc (sizeof(char) * MAX_SEQ_LEN);
	s->soft_clippings.left = ( char* ) malloc (sizeof(char) * MAX_SEQ_LEN);
	s->soft_clippings.right = ( char* ) malloc (sizeof(char) * MAX_SEQ_LEN);
	s->soft_clippings.left_qual = ( char* ) malloc (sizeof(char) * MAX_SEQ_LEN);
	s->soft_clippings.right_qual = ( char* ) malloc (sizeof(char) * MAX_SEQ_LEN);
	s->cigar_items = ( struct Cigar_Items* ) malloc (sizeof(struct Cigar_Items) * MAX_CIGAR_ITEMS);
	s->number_of_cigar_items = 0;
	s->number_of_tag_items = 0;

	for ( i = 0 ; i < 50 ; i++ )
	{
		s->tags[i].name = ( char* ) malloc (sizeof(char) * MAX_TAG_LENGTH);
		s->tags[i].val = ( char* ) malloc (sizeof(char) * MAX_TAG_LENGTH);
		s->tags[i].type = ( char* ) malloc (sizeof(char) * MAX_TAG_LENGTH);
		s->tags[i].name[0] = '\0';
		s->tags[i].val[0] = '\0';
		s->tags[i].type[0] = '\0';
	}

	s->cigar_extended = ( char* ) malloc (sizeof(char) * (