Carl
Hi, I'm Carl Sednaoui. This is where I put things I like.
-
2012-05-17
-
2012-05-08
Once
Startup people are generally optimists about new ideas. They get excited about an opportunity to solve a problem - even if the solution doesn’t work or there isn’t really a problem. Most of the time they’re wrong.
Normal people are pessimists. They often see no reason to try something new. Most of the time they’re right.
They don’t realize that being wrong 99% of the time is just fine. You only need to be right once.
(via bennesvig)
Source: nbashaw
-
2012-05-06
Live & Die by These 5 Street-Smart Laws of Advertising
- Listen to your customer carefully.
- Use one clear and direct message to speak to their needs.
- Find out where your prospects already are, then place your messages in front of them.
- Give value up front. Incentivise them to take action.
- Build your product around their secret hopes / desires or fears / frustrations.
http://techcrunch.com/2012/05/06/startups-live-die-by-these-5-street-smart-laws-of-advertising/
-
-
2012-05-04
-
2012-04-21
In Vim, you can enable the paste mode by typing “:set paste” on Vim’s command interface. Once the paste mode is enabled, you can paste the block(s) of code you have yanked from elsewhere, and disable the paste mode through the command “:set nopaste” as soon as you are done with pasting text.
— http://ayaz.wordpress.com/2008/06/21/paste-mode-pasting-text-and-indenting-it-in-vim/
-
As you use ‘https’ protocol, you must explicitly tell about it in case of using
net/httplibrary:require 'net/http'
uri = URI('https://graph.facebook.com/davidarturo')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true if uri.scheme == 'https'
http.start do |h|
response = h.request Net::HTTP::Get.new(uri.request_uri)
puts response.body if Net::HTTPSuccess
endhttp://stackoverflow.com/questions/8200048/cannot-get-anything-in-https-protocol-with-curl-httparty-or-nethttp -
2012-04-14
-
2012-04-06
Killing a Rails Zombie Server
In your terminal:
$ lsof -i :3000
$ kill -9 <PID>
-
2012-03-29
-
2012-03-26
-
2012-03-25
SEO Tools and Resources
Here are publicly available free tools that even the most seasoned SEO professional can’t live without. Take some time to familiarize yourself with:
Tools
- Google AdWords keyword tool
- Wordtracker keyword tool
- Microsoft adCenter Advertising keyword tool
- Google Insights
- Google Correlate
- Google Trends
- SEOmoz keyword difficulty tool
- Mergewords
- Competitive analysis
Helpful resources
-
2012-03-22
SEO Friendly URLs in Rails
app/models/post.rb
In your Post domain model, override the to_param method. Here, you can specify the unique id format for each instance of a Post object:
def to_param "#{id}-#{title.downcase.gsub(/[^a-zA-Z0-9]+/, '-').gsub(/-{2,}/, '-').gsub(/^-|-$/, '')}" endHere, to_param is composed of three regular expressions that are worth discussing in details:
- Removes all non alphanumeric characters from the string.
- No more than one of the separator in a row.
- Remove leading/trailing separator.
http://techoctave.com/c7/posts/26-seo-friendly-urls-in-rails
-
2012-03-17
Add Syntax Highlighting To Your Blog With VIM
VIM includes a plugin called TOhtml. Calling this will convert the current file into HTML, complete with coloring if syntax highlighting is enabled. This works on hightlighted text too. To execute, enter normal mode and type:
:TOhtml
http://alexanderle.com/blog/2012/03/17/syntax-highlighting-with-gvim.html
-
2012-03-13
People aren’t paying you to *produce* anything, they’re *actually* paying you to get them a way to do something they couldn’t before.
— http://www.codefromaway.net/2012/03/what-you-sell-and-what-they-buy.html
