Share on Twitter

image 

Well, let me just share this email with you… *

, ,
Share on Twitter

This is a PowerPoint Presentation (and extraction of the contents) I made as per a couple of friends’ request (@EmadAshi and @AmrEldib) to show how OAuth works along with Twitter and how easy it is to cache OAuth credentials.

As I was doing related work for TweetToEmail. I felt a PowerPoint presentation will be even better than a blog post for this one, but here you get the two.

The Presentation

The Contents

Application Registration

  • A Twitter user creates a Twitter Application
    • If the application is web based, it needs to provide a URL. “Localhost” is not accepted as a domain for this URL
  • A Twitter Application gets two pieces of information
  • Consumer Key
  • Consumer Secret
  • A Twitter Application will use these in all coming requests.

Initializing The Process

  • User comes to the application and it decides to authenticate against Twitter
  • Application makes a request using Consumer Key and Secret to obtain “Oauth Request Token”, which consists of two parts
    • Token
    • Token Secret
  • Application makes authentication URL including the “Oauth Request Token” parameter, and optionally a “Call-back URL” (if different than default URL in first step)
, , , , , , , ,
Share on Twitter

OK, instead of much talk, let me quote you the email that says all 1-day deals by SitePoint in last 23 days are available today. I’m not sure of the time zone for “today”, so, ne quick!

 

The time has almost arrived to tear open our presents …
But before we do that …

You know all those cool deals you missed? Don’t despair!
We’ve brought them all back and you can scoop up any deals
you missed out on while saving up to 90%!
http://sale.sitepoint.com/

 

To ensure the accuracy of your orders, each deal must be processed
individually. This means we’re unable to combine shipping costs.
However, the prices are so low, you’ll still be saving bucket loads.

 

Thank you for participating in our Christmas Countdown!

 

We hope you’ve enjoyed the deals we’ve had to offer as much
as we’ve enjoyed sharing them with you.
Happy Holidays and all the best for a prosperous 2011! :)

 

The SitePoint crew

 

Go and pick the offer that sounds good for you. Do not worry about the "X" on each.

, , , ,
Share on Twitter

Personal Intro (For frequent visitors of this blog only)

Yes, I’m checking out Rails. Mainly to see what ASP.NET MVC is missing. Very initial impressions, A Lot!

Anyway, this post is intended to be found by new visitors who already know a little Ruby, so, no introductions for this time. Maybe a different post.

 

Just to set expectations, there are only 2 lines needed for getting it to work. This post is just to encourage myself to keep writing…

 

Example

So, let’s assume a simple website that ha a single controller “Say” with only one Action “Hello”.

class SayController < ApplicationController
  def hello
    @name = "محمد"
  end
end

The first time you try to add an Arabic word to any Ruby string, you’ll get the error:v

invalid multibyte char (US-ASCII)

syntax error, unexpected $end, expecting keyword_end

@name = "محمد"

To fix this, you need to tell Ruby that this file is written in Unicode.

This is done by adding the underlined text as the “first” line in the file:

# encoding: utf-8
class SayController < ApplicationController
  def hello
    @name = "محمد"
  end
end

, , , ,
Share on Twitter

Just a hour ago, I got an interesting question via the contacts page in this blog, about search engine optimization, and I wanted to share the answer with you…

The question is:

I’m a software engineer and SE Optimizer. I’m currently assigned a project that needs general information of the mini sites and blogs regarding their SEO strategy and daily revenue. I read your blog a lot in my .net related problems and thought of finding the details about your blog.
I found out that there are daily ~900 page views of your blog and your page rank is 3.

Mohamed what I wanna know is that whether you have employed any SEO strategy on your blog or this is just the good will traffic that comes to view your blog.

Also what is the daily ads revenue of your blog and what kinda ads you have deployed on your blog.

Although my Google Analytics statistics tell me slightly better results than mentioned in this message,, this is an interesting question I’d love an answer indeed. Scott Hanselman taught us though it’s better to reply to those in public and share the benefit with everyone, let’s see:…

, , , , , , ,