Thursday, December 16, 2010
Whatcha Been Doin? A Conversation
One of the early questions asked to begin a conversation is "what you been up to lately" or "what do you do." I've participated in and listened to some conversations that began this way. Over the past month I have engaged in a dozen or so conversations and listened to a bunch more that began this way. I will note that I am not the best conversationalist.
When family, friends, or strangers came up to me and ask me that question, I fill them in on the hacking and trading I've been doing. I get two responses to my answer, "that's great" and they walk away or "that's great" and they change the subject. I did not get one person to pursue further into what I'm doing or exhibit any interest in what I've said. I've come to the conclusion that it could be one of two things, 1) hacking and trading are not interesting for the people I talked with or 2) my delivery in explaining what I'm doing was not clear and understandable for anyone to continue with that conversation topic. I believe the problem is with the latter.
In listening to other similar conversations, the response was much different. The questioner was engaged with the answers and continued with follow up questions to gain a deeper knowledge of the subject. I too became fascinated with what people are doing.
So, I've been trying to figure out why my delivery failed. As I noted earlier, I am not the best conversationalist. I don't participate in many conversations because I have a weak and soft voice and many people have a difficult time hearing me, especially in loud areas. I wing it every time I tell people what I'm doing so its probably not succinct and a little confusing. I need to practice.
I'm looking to improve in this area. In my research I've come across the concept of Branding. I will be working on Brand Me. I want to be able to articulate what I'm doing better. Maybe then I will get people interested in learning more.
Monday, October 4, 2010
The Past Couple of Weeks
I spend time on my trading looking at charts for patterns, support and resistance levels, and direction. I look back at my previous trades to check if I'm following my trading rules. I do research for my trading journal project.
I spend time on my hacking working on my project. I'm teaching myself Ruby on Rails. My Rails web application is for a youth club basketball team. I can add players with an image and their information. I can add leagues with each league having many games. I can add albums with each album containing many photos. I have a calendar that shows the current month that I can add events to which will show up for that day. I can add stats for each player that corresponds to a game. I add basic stats and the model does the calculations for individual and game stats. I am currently working on adding videos to my web application. I've used plugins and gems. I'm also learning and using CSS. When I encounter a problem I search for a solution, which can happen in a day or a month. This is FUN!
I wasn't actually on the computer all day, it just seems that way. I took some time to watch the Blue Angels. I took a couple hours here and there to go watch my nephews play basketball and football. But then I'm back on the computer. So much fun.
Saturday, October 2, 2010
The Process of Finding Standout Ideas
Some people have said to "just get started" on your idea and you'll discover if it's a blockbuster idea. Is that the best move? I read an article The Idea Virtuoso... that touts the process that university professors of research labs use to find the best idea. Having deep knowledge and expert feedback can differentiate between mediocre and great ideas. This reminded me of Dr. Johnson being awarded a grant to research the smart grid. What was his process to settle on that idea to get awarded that grant?
It seems like meeting with a group or team to brainstorm and discuss all ideas are needed to identify the best possible projects before getting started. This commitment to understanding the idea and seeking feedback will help you follow ideas you feel have a strong possibility for success.
It's called the idea-centric approach. You research your ideas to discover if there is an audience out there that sees value in an idea. When the standout idea emerges, the focus of your efforts goes toward implementing that idea. In this approach, you need to learn or know the field and seek expert advice.
Monday, August 9, 2010
Adding Video to my Rails Web Application
Monday, May 10, 2010
Check - It Works!
Thursday, May 6, 2010
“Always two there are, a master and an apprentice.”
before_save :total_points
# calculates total points of current record
def points
@twopoints = :twopfgm * 2
@threepoints = :threepfgm * 3
@onepoints = :ftm * 1
@twopoints + @threepoints + @onepoints
end
private
# update :total_points attribute of record with points
def total_points
stat.update_attribute(:total_points, points)
end
This doesn't work. I'm in the process of figuring this out.
Sunday, May 2, 2010
To Boldly Go Where No Man(Me) Has Gone Before
Tuesday, April 27, 2010
Secret Society of ...
I don't know who you are. I don't know what you want. If you are looking for ransom, I can tell you I don't have money. But what I do have are a very particular set of skills; skills I have acquired over a very long career. Skills that make me a nightmare for people like you. If you let my computer go now, that'll be the end of it. I will not look for you, I will not pursue you. But if you don't, I will look for you, I will find you, and I will hack you.
Tuesday, March 30, 2010
Social Networking
Friday, February 19, 2010
Practicing Hacking
Saturday, January 9, 2010
Self learning
Self learning has been challenging. Building my blog website application from scratch has been fun but has not been the smoothest experience. I know what I want to implement and need to work to implement the features. The problem is that the work schedule is in my head and not written down. My focus is jumping from one thing to another thing. I'll be working on the layout of the comments and notice something in the comment form I want to improve and switch jobs. And neither one gets fixed. I will be figuring out a schedule of work to do and follow it.
Tuesday, January 5, 2010
Adding Date and Time to my Rails Blog App
For my blog posts and comments I wanted to display the date and time. Fortunately, the models automatically add the attribute created_at of datetime during the migration to the database. This allows me to just call the created_at attribute from the posts and comments table to display them after they have been created.
I got my first problem when I added it to my view. It appeared as 2009-12-14 08:25:51-1000. That's not what I wanted. I wanted December 14th, 2009 8:25AM. And this gave me another problem, the time was 10 hours off. I wanted Hawaii time so it should have been 2009-12-13 22:25:51-1000.
After a lot of searching I was able to piece together a solution. I have rails 2.3.3.
To format date and time I modified config/enviroment.rb. Looking at this file I found config.time_zone = 'UTC'. I didn't know what UTC was but above it had Run "rake -D time" for a list of tasks for finding time zone names. So I ran 'rake -D time' in my terminal and was given 'rake time:zones:local' which I ran and was given Hawaii as my time zone. So I changed config.time_zone = 'UTC' to config.time_zone = 'Hawaii'. This gave me my date and time but not the right format.
I wanted December 14th, 2009 8:25AM. To get this I had to create my format. I eventually found rails module for conversions. I then had to figure out what %Y-%m-%d meant. When I found the meaning I wrote the code below to display my date and time format. I also found to get 1 to display as 1st, 2 as 2nd, 14 as 14th, 23 as 23rd I had to add ordinalize to the day.
ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!(
:time => '%I:%M%p',
:date => lambda { |time| time.strftime("%B #{time.day.ordinalize}, %Y") }
)
Format Meaning
%a The abbreviated weekday name (“Sun'’)
%A The full weekday name (“Sunday'’)
%b The abbreviated month name (“Jan'’)
%B The full month name (“January'’)
%c The preferred local date and time representation
%d Day of the month (01..31)
%H Hour of the day, 24-hour clock (00..23)
%I Hour of the day, 12-hour clock (01..12)
%j Day of the year (001..366)
%m Month of the year (01..12)
%M Minute of the hour (00..59)
%p Meridian indicator (“AM'’ or “PM'’)
%S Second of the minute (00..60)
%U Week number of the current year, starting with the first Sunday as the first day of the first week (00..53)
%W Week number of the current year, starting with the first Monday as the first day of the first week (00..53)
%w Day of the week (Sunday is 0, 0..6)
%x Preferred representation for the date alone, no time
%X Preferred representation for the time alone, no date
%y Year without a century (00..99)
%Y Year with century
%Z Time zone name
%% Literal “%'’ character
In my view I added:
%= comment.created_at.to_s(:date) %
%= comment.created_at.to_s(:time) %
Now every post and comment has a correct date and time.