Just tried to get the domain name in an ActionController and here we go: e.g. render :text => request.domain()
Archive for the ‘Uncategorized’ Category
I wanted a cartoon character and got…
…a pain in the ass. Let me tell you this story. I just saw this advertisement on Facebook: and i thought: ‘hey, i want a cartoon character, too’ and clicked on the ad. What i got then was not an easy-to-use cartoon generator, but a weird page saying this: By clicking “Click Here – It’s [...]
Friends-privacy setting on Facebook
This is pretty weird: I have a Facebook-profile and i have set my privacy setting for my friends-list to the value ‘Only friends’ … …which should mean, that only friends are able to see my friends. So i logged out of Facebook, called my profile page and voila, there are friends displayed. Does this make [...]
datetime_select seconds
I’ve just looked for the possibility to include the seconds into Rails’ DateHelper function datetime_select. After i haven’t found it in the Rails API documentation i tried to add an extra parameter include_seconds, set it to true and voilà … it worked like a charm: <%= datetime_select(“post”, “written_on”, :start_year => 1995, :include_seconds => true) %>
Standardizing rails flash messages
:notice for positive feedback (action successful, etc) :message for neutral feedback (reminders, etc) :warning for negative feedback (action unsuccessful, error encountered, etc) (via DZone)
Ruby AWS:S3 tests
Like i’ve said in my last posting i have played with the Ruby AWS:S3 library a little bit. The following happened: After installing the library with… sudo gem install aws-s3 …i uploaded the file ‘test.pdf’ using the following script: # requiring necessary gems require ‘rubygems’ require ‘aws/s3′ # some name definitions file_to_upload = ‘test.pdf’ name_of_bucket= [...]
Ruby Library for S3
Seems to be really promising. I’ll try this and will post my experiences with this library. A Ruby Library for Amazon’s Simple Storage Service’s (S3) REST API. http://amazon.rubyforge.org/
Vergessen im digitalen Zeitalter
Schöner Vortrag von Prof. Viktor Mayer-Schauberger über das Vergessen im digitalen Zeitalter und Informationsökologie im allgemeinen. Aufgenommen wurde das Video auf der re:publica’08. Themen sind u.a. Verfallsdatum von digitalen Daten, der sorglose Umgang mit privaten Daten, Zukunft der sozialen Netze und vieles mehr. Sehr sehenswert.
FastRI
FastRI is an alternative to the “ri” documentation browser for Ruby. As of 0.3.0, FastRI can operate in standalone mode (without using a DRb server, see below), so it can now fully replace ri for most intents and purposes.
Legal implications for Tor-users and Tor-operators
Alexander W. Janssen created some interesting slides about possible legal problems when running a Tor-Server. Tor – a brief introduction and legal aspects He also experienced what it means to run a Tor exit-node in Germany which was used for illegal stuff. Read his story.
Recent Comments