MISC TOPICS #2: I18n Data Programming Pearls Random Records Rpx Now Susher Store With Default Protocol

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    MISC TOPICS #2: I18n Data Programming Pearls Random Records Rpx Now Susher Store With Default Protocol - Presentation Transcript

    1. MISC
    2. Hello my name is Michael Grosser   Rathershort.com
    3. I18nData Language – select  Country – select  Rails default = Full name = madness! 
    4. I18nData 185 Language codes (iso 639 - 2 letter)  in 66 Languages 246 Country codes (iso 3166 - 2 letter)  in 85 Languages
    5. I18nData I18nData.countries #{'DE'=>'Germany'}  I18nData.countries('DE') #{'DE'=>'Deutschland'}  I18nData.languages('DE') #{'DE'=>'Deutsch'}  Backwards: what is ”China” → 'ZH' 
    6. I18nData github.com/grosser/i18n_data 
    7. Smusher smusher /apps/ts/public/images  smushing /apps/images/facebook_icon.png 2887 -> 132 = 4% smushing /apps/images/myspace_icon.png 3136 -> 282 = 8% -c => convert gifs to smaller png  github.com/grosser/smusher 
    8. store_with_default_protocol class User < ActiveRecord::Base  store_with_default_protocol 'http', :website,... end github.com/grosser/store_with_default_protocol 
    9. RPX! OpenId = complicated + non-universal  OpenId is for nerds  RPX is for the masses 
    10. RPX! Popup or Embed 
    11. RPX! <=RPXNow.embed_code(  'mywebsite',rpx_token_sessions_url )%> <%=RPXNow.popup_code(  'Login here...', 'mywebsite', rpx_token_sessions_url,:language=>'de') %>
    12. RPX! def rpx_token  data = RPXNow.user_data( params[:token],'YOUR RPX API KEY') self.current_user = User.find_by_identifier( data[:identifier]) || User.create!(data) redirect_to '/' end
    13. RPX! Mappings → 1 user, N-Identities  RPXNow.map( identifier,primary_key,'KEY')  RPXNow.unmap(identifier,primary_key,'KEY')  RPXNow.mappings(primary_key,'API KEY') 
    14. RPX! RPXNow.com  github.com/grosser/rpx_now 
    15. Programming Rubies Programming Pearl rewritten in Ruby  Readable + understandable 
    16. Programming Rubies Make a choice....  int main(void){  set S; set::iterator j; string t; while (cin >> t) S.insert(t); for (j = S.begin(); j != S.end(); ++j) cout << *j << \"\\n\"; return 0;} puts input.readlines(' ').uniq * \"\\n\" 
    17. Programming Rubies Ruby + Markdown + Parser = HTML + PDF  ### Unique words  Show all words that are inside a given text include 1 #----excerpt  puts input.readlines(' ').uniq * \"\\n\" #----excerpt
    18. Programming Rubies Single large, printable file 
    19. Programming Rubies Contribute  Review  Enjoy  github.com/grosser/programming_pearls 

    + grossergrosser, 9 months ago

    custom

    498 views, 0 favs, 0 embeds more stats

    My quick & dirty presentation for Rug-b, covering m more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 498
      • 498 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 0
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories