Monday, January 05, 2009

Ruby on Rails Tutorials

Nice post with a bunch of Ruby on Rails Tutorials

Ruby On Rails Tutorial: The Basics A two-part tutorial to getting up and running on rails by Huw Collingbourne.
...
Catching rails error messages An easy example of how to use the 2.x approach to catching errors in your rails applications.
...
Stop Rails from sending email A useful way to check that mail is getting sent, without actually sending it.
...
Ruby on Rails Rake Tutorial Gregg from RailsEnvy again running through how to make the most of rake. If you’re not already writing your own custom tasks in rake you should definitely take a look because there is probably a handful of things your could (and should) be doing in it.
...
Ruby on Rails Security Guide Storing and protecting the session, user management, projecting from injection, and more.


Follow the link for many more.

Related: What Does This Error Mean - ruby on rails posts - Ruby on Rails Job Opportunity

Wednesday, December 31, 2008

Last Google Toolbar PageRank Update of 2008

Matt Cutts has confirmed that Google has again updated the PageRank displayed on the Google Toolbar. Looking at my blogs it seems to be effective approximately Dec 16th. I have some blog posts from the 15th and before with pagerank. On the 16th I have one post with a pagerank and several without. On the 17th none of my posts have pagerank. This means while the pagerank was displayed today, the data used is from about December 16th, I believe.

The displayed pagerank is more fun than a measure that can be relied on. But I still find it fun to look at the pagerank values - except when they go down for my sites :-(

Check the current pagerank on your sites using our related site: Multiple Site PageRank checker. Updates from our Google PageRank Update, July 2008:

Curious Cat Investing and Economics Blog - 4 (July 2008), 4 (December 2008)
Curious Cat Engineering and Science Blog - 5, 5
curiouscat.com - 3, 3
externs.com - internship directory - 4, 4
Statistics for Experimenters - 3, 4
CSS 4 Free - 4, 5
Wordpress Themes for Free (new site from November) already a 3 Google pagerank.
Curious Cat Management Improvement Connections (one of my most popular pages since 1997) - 3, 3
Multi Site PageRank Checker - 1, 3
John Hunter 4, 4
Life and Legacy of William Hunter (my father) ?, 4
Justin Hunter (my brother) ?, 2
Curious Cat Articles and Links (this blog) - 3, 3
Curious Cat Management Improvement (v.1) I started the blog on blogger and then moved it to my own domain using WordPress in 2006, still it retains a pagerank of 3
My Kiva page ?, 3
Reddit management (new in September) 0
Curious Cat Web Directory 3, 4
Rocky Mountain National Park photos ?, 2
Boston Museum of the Fine Arts, Glacier National Park Photos, Parfrey's Glen, Wisconsin Photos, The Cloisters Museum and the Museum of Modern Art, Shaker Village of Pleasant Hill, Kentucky ? , 0 ( much of the Curious Cat Travels seems to be without pageranks - which seems odd to me but...)

The Curious Cat Engineering and Science Blog has actually been a pagerank 6 before, but I think it is a high 5 (of course I may be biased and that is just wishful thinking). Many brand new posts for example have ranks of 4, likely because they were on the home page when the snapshot was taken - Bird Brain, Passion for Mechanical Engineering, High School Inventor Teams @ MIT...). Another thing this means is those pages are really not pagerank 4 even today. The toolbar snapshot from Dec 16th shows them that way but only because that was the value on Dec 16th.



Now, I would guess they are probably really pagerank 2 or so. If I just look back at say random posts in August 2008 (or really any month) they will be between 0 and 3. I really don't understand the differences between say 0 and 2. While there is some difference, most of those pages have 0 links from external sites. And then I will have a small number of posts that get significant external links that maybe be 3,4 and even 5 pageranks: The Engineer That Made Your Cat a Photographer, Sep 2007, pr 3, Best Research University Rankings, Sep 2008, pr 4; Economic Strength Through Technology Leadership, Jul 2007, pr 4

In my experience it is often more telling how the pagerank of internal pages. I find it that there are many sites with say a pagerank of 3 or 4, or even 5, on the home page but almost no pagerank on internal pages. While other sites with a pagerank of 3 or 4 have many internal pages with pagranks of 1, 2, 3 and 4,

Related: Google's Displayed PageRank - Web Page Authority

Tuesday, December 23, 2008

Festivus



Festivus airing of the grievances.

Saturday, December 20, 2008

Don't Forget Your About Page

The about page of a blog is often neglected. There are different options for what to emphasize, but I think it is wise to include an overview of the blog and links to some posts you would suggest for first time visitors. Think of it as a way of helping someone decide if they want to subscribe to the blog feed. Here are some of my blog about examples:

Curious Cat Engineering Blog - Curious Cat Investing and Economics Blog - Curious Cat Management Improvement Blog - Free CSS Web Site Templates Blog

Related: Build Your Online Presence - Gallery of Free WordPress Themes - Seth Godin on Marketing and the Internet

Sunday, December 14, 2008

16 Useful .htaccess Tricks and Hacks For Web Developers

16 Useful .htaccess Tricks and Hacks For Web Developers

6. Hotlinking protection with .htaccess is very important because anyone can hot link to your images and eat up all your bandwith of your server. The following code will help you to prevent that.

Options +FollowSymlinks
# Protect Hotlinking
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domainname\.com/ [nc]
RewriteRule .*\.(gif|jpg|png)$ http://domainname.com/img/hotlink_f_o.png [nc]
...
11. Block access to your .htaccess file - By adding he following code to your htaccess file will prevent attempts to access your htaccess file. This extra layer of security protects your htaccess file by displaying a 403 error message on the browser.

# secure htaccess file

order allow,deny
deny from all

Tuesday, December 09, 2008

Watching the Watchmen

Unfortunately I have grown to question the trustworthiness of the system of justice. This doesn't mean I think it is totally corrupt but I think the amount of lawlessness by those given the responsibility to serve society has grown too large. It seems to me more oversight is needed. And unfortunately those with such responsibilities are doing the opposite. For example, the despicable political actions by the Justice Department undermine the public's confidence in honest government just when we need to have a government we can trust to protect us from terrorism and increasingly well armed criminals.

Cop Busters is a program that is headed by a man that is most likely in it significantly for the publicity. I would wager the vast majority of those in the law enforcement community are honest and law abiding, in general. However, the community seems to be far too tolerate of abuses by those in their ranks. Given that shows like cob busters may help. Why doesn't the law enforcement community itself find the corruption and illegal practices and eliminate those involved themselves?

Gotcha!

There was no probable cause. So a couple of questions come up. First, how did the cops get turned on to the house in the first place? Cooper suspects they were using thermal imaging equipment to detect the grow lamps, a practice the Supreme Court has said is illegal. The second question is, what probable cause did the police put on the affidavit to get a judge to sign off on a search warrant? If there was nothing illegal going on in the house, it's difficult to conceive of a scenario where either the police or one of their informants didn't lie to get a warrant.

Cooper chose the Odessa police department for baiting because he believes police there instructed an informant to plant marijuana on a woman named Yolanda Madden. She's currently serving an eight-year sentence for possession with intent to distribute. According to Cooper, the informant actually admitted in federal court that he planted the marijuana. Madden was convicted anyway.


What we need are watchmen inside the government that are trustworthy and vigilante. What we need are people at the Justice Department that put the safety and security of the public first. What we need are people that put the rule of law above the rule of their personal desires.

10 years ago (whether I was right or wrong) I would not have said the abuse of law enforcement authority was a huge concern. Yes, any time you have many thousand of people involved in something, some are going to abuse their authority. But I thought on the balance that abuse was minimal and the danger from such abuse was much less than the danger from actual criminals. Now I am sadly much more inclined to side with the founding fathers worries about the unchecked power of the government.

As those in law enforcement fail to address these problems they make the situation much worse. People are losing the ability to rationally believe the law enforcement community is most interested in enforcing the law. Seeing so many examples of abuses of power by the watchmen is a dangerous thing for society. And when the law enforcement community is more interested in protecting those inside their ranks engaged in unlawful behavior than in upholding the law it is very dangerous for society.

It is not acceptable for those with the awesome responsibility to protect society from criminals to behave as too many are now.

Related: Freedom Increasingly at Risk - Tired of Incompetent Government Harassment - Photographers are not a Threat - More SWAT Failures

Saturday, December 06, 2008

Thursday, December 04, 2008

Build Your Online Presence

My comment on: Promoting Your Services (Link broken so I removed it, original post from PoeWar, very good site on writing and resource for writers)

I think another great way to promote your business is to write and post to your own site. I encourage management consultants (the people I most deal with - example: Peter Scholtes) to create an online presence that illustrates what value they offer. And for writers it should be an even better fit (you can show exactly what you offer - your writing). Setting up a blog is a very easy way to do this. You can use Wordpress to set up a free blog without any technical knowledge.

Then you can market by doing what you want to do: writing. You will have to take some other steps to market yourself also but a home on the web highlighting your writing is an excellent tool.

This next tip is probably most suited to someone getting started as a professional writer, or one just getting started online, but really can work for anyone. Basically unless you are so busy with paying work that you can't fit it in, I think it is a good idea (and at that point continue your blog by linking to the paying work).

I also think writing guest posts for other blogs could be a useful promotion strategy. You will increase those that know about you and gain links back to your site which will help your site grow. And, another benefit, for writers is you get to practice. You can experiment, and try new things. While I don't think of myself as a writer, I have written a great deal building my web sites. The sheer act of writing for different audiences as a guest blogger I think would be good experience for a writers.

I tend to favor thinking about marketing differently - especially for small businesses. Amazon spends very little advertising. Instead they see free shipping as marketing. They see paying referral fees to websites that provide them paying customers as marketing. Very smart, in my opinion. So for writers think of writing posts for your site and for some others as a form of advertising. Plenty of very successful people market using their free writing online: (example: Neil Gaiman, Joel Spolsky...). And some turn that free writing into a platform to sell ads and then make a living just doing that: Dooce.

Another good example of innovative marketing: Giving Away Your Service for Free on Weekends (from Joel Spolsky mentioned above).

Related: My web home - John Hunter - Seth Godin on Marketing and the Internet - Your Online Identity - Innovative Marketing Podcast - Don't Lock Your Content Inside a Proprietary System

Monday, December 01, 2008

2,700-year-old marijuana found in Chinese tomb

2,700-year-old marijuana found in Chinese tomb

The cache of cannabis is about 2,700 years old and was clearly ``cultivated for psychoactive purposes," rather than as fibre for clothing or as food, says a research paper in the Journal of Experimental Botany. The 789 grams of dried cannabis was buried alongside a light-haired, blue-eyed Caucasian man, likely a shaman of the Gushi culture, near Turpan in northwestern China.
...
Remnants of cannabis have been found in ancient Egypt and other sites, and the substance has been referred to by authors such as the Greek historian Herodotus. But the tomb stash is the oldest so far that could be thoroughly tested for its properties.

The 18 researchers, most of them based in China, subjected the cannabis to a battery of tests, including carbon dating and genetic analysis. Scientists also tried to germinate 100 of the seeds found in the cache, without success.


Related: 2,000-year-old Seed to Bear Fruit in Three Years - Huge Tomb Uncovered in Rome

Thursday, November 27, 2008

ISTJ

This blog seen as an ISTJ (introverted, sensing, thinking, judging) blog by Typealyzer. The site analyzes the blog and provides a Myers Briggs type personality categorization. Some other blogs categorizations:



I don't give the categorization much weight but you might find it fun. I am not convinced it isn't almost totally random. A similar site guesses whether the author is a man or woman: "We have strong indicators that http://dooce.com/ is written by a man (99%)." "We guess http://blag.xkcd.com/ is written by a woman (50%), however it's quite gender neutral"

The categorization software seems to only use the home page (the exact url you use) to categorize the site. If it is effective at all (which I could see it being - for some categorizations anyway) increasing the pool of data used would likely help a great deal. My guess the current method also means the categorizations for sites could vary a great deal over time.

Notice how the Myers Briggs type "names" (for each group) are given a positive spin. Nothing like ESFJ - "The Lazy Couch Potatoes."

Friday, November 21, 2008

Google SearchWiki



Google now lets you customize your search results. You can move results around (change the order in which they appear) add your notes and remove sites you don't want to see. Others don't see your notes by default but they can choose to look at all the notes for a search.

Suggestions for Improving Google (Jan 2006)

1) Let me chose the type of files searched (exclude pdfs, word, power point..). Then if I can’t find what I want I can expand to include them. At the very least give me some way of making the type much more visible (I realize it is there now but I often click before my mind notices...).

2) Let me remove web sites from my default searches. I would imagine this could even be used to help Google’s normal search results by getting a sense of sites huge numbers of people “block” The same spam sites show up for searches and I would rather block them if Google can’t figure out how to do so.

3) Let me create site search lists, where I create lists of sties I want searched


The third one Google did a year or two ago. I have created several search sites based on that capability: investing search - science search - Management Search.

Related: Google Knows it is a 2.0 World - What Factors Should be Used to Determine Search Results - Google PageRank Update - Yahoo's Open Approach to Search

Thursday, November 20, 2008

Manners

Re: Bad manners

One of the things I have grown to appreciate the importance of is some shared sense of manners. As a kid I thought worrying about which fork was used for salad was silly. Actually I still think that is silly but I didn't appreciate the annoyances caused by people that just don't care about how there selfishness impacts others when I was a kid.

Now I understand how a shared sense of common courtesy is important - to hold back people from being overly selfish (how about the idiots that insist on yelling into their cell phones in libraries, or when they are being waited on in a store, or wherever else they happen to be doing, for example).

And if I must comply with a few rules I find silly so I can exist in a society where others have a shared sense of unacceptable behavior that is ok with me. I now appreciate the idea of acceptable codes of conduct that people are encouraged to follow. I really didn't understand how selfish so many people would be without rules telling them not to interrupt others, or eating with their mouth open, or treating others with respect, or realizing you must share with others (toys, when you are a kid or time with other speakers...).

I tend to be a bit cantankerous, refusing to accept things just because that is the way things are. But I have grown to appreciate the wisdom of good manners. Within that acceptance there is still room for me (and those like me) to quibble with some of the rules of good manners, but the concept I now appreciate.

Sunday, November 09, 2008

NORC

I heard a new acronym recently that I thought was amusing: NORC: Naturally Occurring Retirement Community. Essentially these are similar to "strange attractors" in chaos theory where retired people are naturally drawn to live. Perhaps areas with good medical facilities, near recreation and shopping areas, community centers, libraries... that can be walked to.

Related: retirement planning posts on the Curious Cat Investing blog - How Walkable is Your Prospective Neighborhood

Thursday, October 23, 2008

What Does This Error Mean

What Does This Error Mean - paste in an error message and read comments on what it means and how you can fix it.

Thursday, October 16, 2008

Gladwell on Late Bloomers

Why do we equate genius with precocity? by Malcolm Gladwell

A few years ago, an economist at the University of Chicago named David Galenson decided to find out whether this assumption about creativity was true. He looked through forty-seven major poetry anthologies published since 1980 and counted the poems that appear most frequently. Some people, of course, would quarrel with the notion that literary merit can be quantified. But Galenson simply wanted to poll a broad cross-section of literary scholars about which poems they felt were the most important in the American canon. The top eleven are, in order, T. S. Eliot’s “Prufrock,” Robert Lowell’s “Skunk Hour,” Robert Frost’s “Stopping by Woods on a Snowy Evening,” William Carlos Williams’s “Red Wheelbarrow,” Elizabeth Bishop’s “The Fish,” Ezra Pound’s “The River Merchant’s Wife,” Sylvia Plath’s “Daddy,” Pound’s “In a Station of the Metro,” Frost’s “Mending Wall,” Wallace Stevens’s “The Snow Man,” and Williams’s “The Dance.”

Those eleven were composed at the ages of twenty-three, forty-one, forty-eight, forty, twenty-nine, thirty, thirty, twenty-eight, thirty-eight, forty-two, and fifty-nine, respectively. There is no evidence, Galenson concluded, for the notion that lyric poetry is a young person’s game. Some poets do their best work at the beginning of their careers. Others do their best work decades later. Forty-two per cent of Frost’s anthologized poems were written after the age of fifty. For Williams, it’s forty-four per cent. For Stevens, it’s forty-nine per cent.


Related: Gladwell (and Drucker) on Pensions - Malcolm Gladwell and Synchronicity - Hiring the Right Person

Sunday, October 12, 2008

Seattle high-schoolers get F's for the First time in 7 Years

Seattle high-schoolers can now get failing grades

For the first time in seven years, Seattle public high-school students who do poorly can receive a failing grade on their report cards. Since 2000, not a single student has received an E, a mark more commonly known as an F. High schools instead handed out N's for "no credit," which didn't affect a student's grade-point average and took much of the sting out of failure.
...
When students receive an E or an N, they don't get any credit toward graduation. The E, however, counts as a zero when calculating a student's grade-point average. An N does not. So a student with three A's and three E's would have a grade-point average of 2.0. A student with three A's and three N's would have a perfect grade-point of 4.0.
...
Still, the fact that Seattle students could fail four classes, get two As and still have a perfect GPA "seemed a bit ridiculous," said Tim Ames, a social-studies teacher at Nathan Hale High School.


Un-acknowledged failure was not just present in the boardrooms of fat-cats looting their companies with obscene pay for themselves. I suppose if the society doesn't want accountability practicing it with high school students is not the worst place for non-accountability.

In my opinion, we need more accountability everywhere, including for high school students. I came very close to failing calculus in high school. If I had failed it fine, give me an F. While requiring accountability in other areas in more important than for high school student's grades, still I think restoring the acknowledgment of failure is a good idea.

The logic of those defending the practice of "Es" makes little sense. They talk of "they'll miss the flexibility that the N allowed, especially the ability to send students a message without putting a big dent into their GPAs." The difference of one D versus one F is not huge (on a 4 year GPA). For a semester it can have an effect but jeez if you don't like that effect don't use the semester GPA for significant decisions (I don't see much justification for using it - though I acknowledge there is a challenge in how to deal with students, parents, coaches... that care more about athletics than learning and how you deal with trying to enforce some level of learning...).

Related: Creating a Nation of Wimps - Alumni of Seattle high schools

Sunday, October 05, 2008

Truck, Bus Fleets Beefed Up to Beat Jams, Fueling Congestion

Truck, Bus Fleets Beefed Up to Beat Jams, Fueling Congestion

It's the price of doing business in one of the most traffic-choked regions in the country, but it makes matters worse. The additional vehicles on the road add to congestion and fuel a cycle that further stresses the region's overtaxed roadways, resulting in even more delays and pollution.
...
The answer is decent public transit," said Zimmerman, who also is a member of the Arlington County Board.


Related: Traffic Congestion and a Non-Solution - Designing Cities for People, Rather than Cars - Urban Planning in N. Virginia