Hi, this blog is no longer maintained, my new blog is here

Ruby On Rails and a Conning Israeli entrepreneur

Working in the USA

In 3 weeks i am moving to Florida (yeah, i heard everything everyone has to say) and i am currently looking for a job (Rails related of course).

here is my resume, don't be shy...

Ruby on Rails Screen Casts (rated R :) )

I came across during my never-ending quest for Rails and Ruby related websites, in this cute site (re-design, fast) at Ruby Plus.
They composed over 90 (to this day) screen casts about ruby and rails, including some Rails 2.0 roundups, Ruby metaprogramming and so on.

use it, bookmark it, watch it. (and get the feed too :) ).

why i hate Adsense

As it should be clear already, i am the owner of Pdfetch.com. just until the recent facelift, i used Google's Adsense as my ad operator.

and i did an honest mistake.

i copy-pasted a snippet right above the adsense script, which contained the words "click here".

Google didn't like it so much, and sent me an email which says that i violated the usage terms of Adsense by forcing users to click on ads and they will block my site from using Adsense if i will not remove this phrase in 3 days.

WHHHATTT?

lucky me, i saw this message 2 days after my ultimatum was over (they give you 3 days to complay.... mmmm... some counter-terrorist are consulting Google? :) ). anyway by the time i saw this message and begged them to let me remove this error and get back my ads and explaining them what really happaned,
they replied by saying that the will not allow my to use it anymore on Pdfetch.com

real thanks.

that's why i like amazon now :)

Rails and Oracle, new blog

Hi all,
I am happy to announce that Oracle On Rails, the too-much-anticipated blog from Ohad Asulin about working with Oracle and Rails, Ohad is one of my colleagues and is an excellent Oracle-Ninja, i strongly advice going up on this one (and generally move to Oracle for large scale applications),
you might really like to hear what this guy has to say.

Working with Rails mixup

Uhhh, what can i say..... i am stupid.


i tried to access my account at workingwithrails.com and i forgot my password.
PAUSE
Now i will explain what happend as simple as possible (for you all to laugh at me real good).

Smart:
"oh goodddie, a reset password page!".
very very VERY stupid:
"mmm, i need to fill in the email i registered with, oh it's .. good, it sent me the new details"
after 5 seconds when i realized that i can't read messages from that box.
"oh men!!!!!"

Short and less annoying version for what i did:
Gone to the reset password, reseted password and sent the new details to an email account that i don't own anymore and belongs actually to one of my ex-employers.


damn,
hope to get my account back with the help of WWR support.
and i don't even remember why i wanted to login in the first place :)


PDFetch facelift!!!!

Pdfetch.com was just facelifted al little bit, i was really unhappy for some reason from the previous design, so i did about a 2-hour-fest to do it in another way.

i switched my ad system from Adsense to the Amazon affiliate system, i think it will be more rewarding.




Finally Decided: JQuery, not Prototype

JQuery (for those of you just landed from Mars) is an unobtrusive javascript framework. read more at the JQuery home page.
jQuery supports Behavior driven development and is based on traversing HTML documents by CSS Selectors.
vs.
Prototype,
Prototype is also JavaScript library for Class driven development which makes life easier working with JavaScript. Prototype library has a good support in Ruby on Rails via helper functions and is basically well embedded in.

i decided to try to match both of these libraries (and dojo for the matter of fact, but the project was halted), and here are my conclusions.


  • BDD


    JQuery is very similar to CSS by assigning the HTML element behaviour out-side the HTML, so it is generally more adequate for MVC.
    for ex:

    $(element).click(function() {
    alert("warning");
    });

    simple.

  • Chaining
    Chining methods is as simple as ruby. period

  • CSS Selectors

    Since JQuery is based upon CSS, you can access any element by it's CSS path, and avoid these annoying pesky ID's you have to put using Prototype.


for some more comparisons, visit the Ajaxian article

Finally:
Jquery and prototype are both great. For me, i prefer JQuery since it's approach appeals to me more than Prototype's, Although prototype is kinda Rubish and has inbound support from Rails, JQuery is still cleaner to me.
Did someone said JQuery to Rails integration?

Ruby On Rails Developer Salary in the US


the graph is right here


Data Provided by of simplyhired.com, a search engine for jobs.

As i can see, $86,000 per year, that makes it about $7,100 USD a month, which is just a little more than what a super-rails ninja can get here in Israel, probably more for a short period projects.

how come?

web 2.0 validator

this one is good :)

this site redicoulesly rates your site as a web2.0, the check-list veries from "Denies Rocky V?" to "has favicon?".

Rails.il... Finally!

I ran across the newly and very anticipated rubyonrails.org.il.

This is a great idea that i tried to pull back at Creopolis, but sadly half way there i was no longer an employee there (too bad :) ).
anyway, the guys apperantly responsible for this unexpected yet enjoyed surprise are QCM
way to go guys, looking forward to help.



Use Facets

i am ashamed, i just recently noticed some of my associates are using a gem called "facets".

i was amazed to see how helpful this gem is! the 'facets' gem added a whole bunch of core extensions to the ruby core.
i strongly advice the use of facets.

i woun't fill you up with details, just point out to the links below:


more to come soon!.




Run RUBY!!! RUNNN!

According to a Nimble Method post, ruby is slow (i don't really agree on the other hand) cause' of a garbage collector bugs.

Some Patches are suggested in the post, if you want them... they are here to get.



Apache X-SendFile in Rails

" There's this slick HTTP header called "X-Sendfile" that Apache and Lighttpd support. It was made to address this kind of problem (isn't that convenient?). Now, when you send an HTTP response, all you have to do is tack on an X-Sendfile header with the path of the file you need to send—don't worry about actually reading the file or sending any of those bytes yourself. The web server will load the file you specified and send it downstream."


nothing to add, read more on John Guenin Post

p.s
Benchmrk'd to 400% faster for one of my apps. great job



Ruby Coding Convetions

When working in a team, you must be able to understand and to complete/continue other people code, although rails itself is very easy to understand, some of us need some further instructions :).


get them here




RandExp Gem

the RandExp is an extraordinary gem.
using this gem you are able to generate a value corresponding to a Regexp statement.
read more in the documentation.


The Web Ask eizesus.com

Subscribe

    follow me on Twitter

    Twiters Around

    About Me

    My photo
    I am a web developer for more than 9 years, managed, cried, coded, designed and made money in this industry. now trying to do it again.

    Labels