You are here

web development

Ruby Gem Update - RemoteSourceException

If you need to update any gem in your system and you get some strange error message like the one below, maybe all you need to do is upgrade your RubyGems component.

ERROR:  While executing gem ... (Gem::RemoteSourceException)
              HTTP Response 403


I got the above error message when running the following command:

gem update --system


Another symptom that you need to upgrade your RubyGem is if you notice that the system responds different versions for your components:.
For instance, if you get this...

LinkedIn Platform Opens an API

LinkedIn has announced today that they have released their API to allow developers all over the world to create applications that integrate better with their service.
All you have to do is access the LinkedIn Developer Network, get an account and API Key (to be used with the oAuth protocol) and you are good to go.

Canonical URLs in Drupal - Being SEO friendly

The major search engines, i.e. Google, Microsoft's Bing and Yahoo have agreed on a standard tag that every web page should use to tell these engines what is its preferred version. This is called the canonical URL of a page, nicely explained in this article at Google Webmaster Tools Central Blog. The meta-tag should be added at the head section of your HTML page:

<link rel="canonical" href="http://www.example.com/content/title_of_your_story_or_page_here" />

Tip: Rails Debug Helper in a Popup

I found this nice article which proposes a ready-to-use debug popup window. All you have to do is add a simple command at the end of your application layout and a popup will show all the information regarding the request, session, response, flash variables and more.

Quick way to debug your web application.

Cheers!

Call link_to_remote from inside the Controller in Rails

I wrote an article the other day stating that I had no idea why someone would call a Helper method from inside a Controller in Rails.
I just found a reason. Here is what I needed to do:

HOW-TO Call a Helper Method inside the Controller in Rails

Rails relies on the MVC separation to do its job, i.e. the Model handles the database interaction, the View handles the user and front-end interaction and the Controller handles the business logic and flow of the information.

What is your favorite Javascript Framework?

Prototype + Scriptaculous
29% (5 votes)
JQuery
47% (8 votes)
Mootools
0% (0 votes)
YUI
6% (1 vote)
Dojo
6% (1 vote)
Other (comment)
12% (2 votes)
Total votes: 17

* Prototype + Scriptaculous
* JQuery
* Mootools
* YUI
* Dojo
* Other (comment)

HOW-TO read the Request Content using PHP

After searching a little bit for a simple way to read the request parameters sent to the server, I normally found references telling people to use the apache_request_headers() or the getAllHeaders() (which is actually a wrapper for the previous one) function, but these will only work if you are running php as an apache module. Well, this is not the case for me, as I use Locaweb (a famous hosting service in Brazil).

Subscribe to RSS - web development