What’s Next For Nvidia?
1 week ago
Un-called for advice and occasional musings
# Uses a binary search algorithm to locate a value in the specified array.binary_search: (items, value) -> start: 0 stop: items.length - 1 pivot: Math.floor((start + stop) / 2) while items[pivot] isnt value and start < stop # Adjust the search area. stop: pivot - 1 if value < items[pivot] start: pivot + 1 if value > items[pivot] # Recalculate the pivot. pivot: Math.floor((stop + start) / 2) # Make sure we've found the correct value. if items[pivot] is value then pivot else -1 # Test the function. puts(2 is binary_search([10, 20, 30, 40, 50], 30)) puts(4 is binary_search([-97, 35, 67, 88, 1200], 1200)) puts(0 is binary_search([0, 45, 70], 0)) puts(-1 is binary_search([0, 45, 70], 10))
To really work, Sierra observed, an entrepreneur's blog has to be about something bigger than his or her company and his or her product. This sounds simple, but it isn't. It takes real discipline to not talk about yourself and your company. Blogging as a medium seems so personal, and often it is. But when you're using a blog to promote a business, that blog can't be about you, Sierra said. It has to be about your readers, who will, it's hoped, become your customers. It has to be about making them awesome.Now, that's not the aim of this blog, which started off as a combo. semi-regular frustrated rant / the traditional idea of a web log (keeping a log of cool things the author found on the web) / cute things about my kids, but nonetheless I reckon it's spot-on.
In the 1950s a researcher named Frederick Herzberg studied 200 engineers and accountants in the US. He asked them a few simple questions and came up with what is one of the most widely-accepted theories on job satisfaction called Two Factor Theory.In his cracking TED Talk Dan Pink delves into some of the behavioral research that explores the consequences of using extrinsic factors such as monetary rewards as motivational tools:
His theory breaks job satisfaction into two factors:
Hygiene factors are necessary to ensure employees don’t become dissatisfied, but they don’t contribute to higher levels of motivation. Motivation factors are what create motivation and job satisfaction by fulfilling a person’s need for meaning and personal growth.
- hygiene factors such as working conditions, quality of supervision, salary, safety, and company policies
- motivation factors such as achievement, recognition, responsibility, the work itself, personal growth, and advancement