Tim Horton’s coffee sleeves

by Yada on April 22, 2010

I find Tim Hortons coffee too hot to hold especially while drinking and driving. Yes, I drink coffee and drive. It’s not against the law. :) When I make my coffee order at Tim Horton’s drive thru in the morning I would ask for ‘Double Cup’. The optimum brewing temperature of coffee is 90′c which is pretty much close to boiling. This is too hot for me to hold.

I often wondered why Tim Horton’s doesn’t have coffee sleeves. Today I think I figured out why.

IT’S NOT COST EFFECTIVE. It’s better to employ double cup. Take a look at this price chart at a restaurant supplies store.

Look at the price of Coffee sleeves. It’s is $37.99 for a box of 1000s. Take a look at the price of 1000s cups. It around the same price! Therefore, if Tim Hortons have coffee sleeves in the store probably about 25%* of the patrons would use it. Currently, probably about 5% of the patrons would ask for Double Cup. Hence, it’s better to not use sleeves and let the customers ask for Double Cup.

*number is educated guess. When I worked at Starbucks, 95% of patrons use coffee sleeves. 25% is a low end guess.

{ 0 comments }

Crew Gold Breakout alert

by Yada on March 18, 2010

CRU on TSX.

Cup and Handle pattern has been forming since lat November 2009, about 4 months.

Measured Target
Measure the height from the right cup lip to the lowest valley then multiply by the above “percentage meeting price target.”

Cup and Handle pattern setups

  • Right lip resistance is at $0.41.
  • 4 months long
  • handle took 2 weeks to form
  • Right lip is higher then left lip
  • U shaped
  • small volume going down the handle
  • large volume going up the handle
  • 200 day Moving Average is at .40 which is right at the resistance.  Crossing MA200 is another bullish signal.

Measured target price is $1.11 – $1.51

$0.11 –> $0.41 = 271%

From the bottom of the cup to the height right cup lip: $0.11 –> $0.41  (272%)

The resistance line for breakout is $0.41.  There the target price is $0.41  (272%)  = $1.52.

{ 0 comments }

Stockcharts

by Yada on March 10, 2010

I wrote a quick php script to download all the stock charts from a defined list, make web service calls to stockcharts.com and display the picture.  A quick way to see many charts at a glance.

http://yadakhov.com/dow30

Here’s one for the S&P TSX 60 which has the largest 60 Canadian companies.

http://yadakhov.com/tsx60

{ 0 comments }

Gmail tricks to have multiple emails

by Yada on March 3, 2010

1.  Gmail doesn’t look at ‘period’ in the email.

johnsmith@gmail.com
john.smith@gmail.com
j.o.h.n.smith@gmail.com

Is all the same emails.  Email sent to any of the address will be forwarded to the same email account.

This is a neat way to sign up for multiple accounts at some other service that requires unique email.  I found that out on my own because I have a period in my email and saw some email coming to me without the period.

2.  The second trick, I read on lifehacker is to use the plus sign trick.

Example: You could use
johnsmith+nytimes@gmail.com for nytimes.com
johnsmith+freestuff@gmail.com for freestuff.com

Gmail will automatically remove everything including the plus sign.

{ 2 comments }

Using aggregate function on subquery

by Yada on February 24, 2010

A developer was trying to compute the average of the first 100 records with LIMIT:

SELECT
  avg(con_hits) as avg_hits
FROM
  content
WHERE
  con_type = 1
  AND con_posttime < $twelve_hrs_ago
  AND con_refresh = 0
ORDER BY
  con_posttime DESC
LIMIT 100

Can you spot the subtle bug in the above query?

LIMIT is applied to the resultset, after AVG is calculated. The correct way is to use a subselect and apply the aggregate function:

SELECT avg(con_hits) as avg_hits
FROM (
  SELECT con_hits
  FROM content
  WHERE
    con_type = 1
    AND con_posttime < $twelve_hrs_ago
    AND con_refresh = 0
  ORDER BY con_posttime DESC
  LIMIT 100
) x;

{ 0 comments }

Javascript

February 19, 2010

It is just me, or does it seem that Javascript is getting a lot of buzz lately.  I remember reading resume tips such as “Don’t write Javascript on your resume because it is not really a language.”  Boy, how have the tide change?  Why is it that the Ninja label is binded to Javascript guru [...]

Interviews

February 18, 2010

This is a really good question:
http://stackoverflow.com/questions/329289/really-wow-them-in-the-interview
It represents my current frustrations.
Need to pull myself by the bootstrap and improve.

Great Tutorials

February 16, 2010

NetTuts is a great website to learn about web development.  It would have save me hours reading thought textbooks and online manual if this website existed 5 years ago.  Nevertheless, the website is great to pick up new technology quickly.
http://net.tutsplus.com/
I espececially like their getting started with Code Igniter series.
* Jeffrey Way’s CodeIgniter From Scratch: Day 1, Nettuts.com – [...]

C++

February 12, 2010

I find that I’ve been using C/C++ a lot less these days.  Not by choice, but my the what is needed by companies.  A lot of my projects deal with Internet technologies and on the LAMP stack.  If I need a quick way to parse text  I’ll use PHP which has a great string parsing [...]

Legitimate uses for a switch?

February 2, 2010

I earned my second “Nice Answer” badge on a Stack Overflow question.  I, myself, don’t find using switch all that useful.  The syntax for switches are always harder to remember compared to chaining a bunch of if else statements.  There are just a few times when switches do come in handy such as finding the number of days in [...]

 

You need to log in to vote

The blog owner requires users to be logged in to be able to vote for this post.

Alternatively, if you do not have an account yet you can create one here.

Powered by Vote It Up