Browse: Page 2
By phm on January 13, 2012
as redis has become the number one contender for memcaches throne of key-value storage engines. it deserves a closer look why so many rails developers are flocking to it.
redis has a set of commands and functions that enable endless possibilities to those creative enough to use them in a new way.
today i want to show how we use redis to count the picture views in our spray can app.
Continue reading “using redis to track and uniquify impressions with rails”
Posted in databases, rails, ruby | Tagged rails, redis |
By phm on January 13, 2012
here at rapidrabbit we deliver many 1,000 requests per second. doing this while only using a handful of servers and ruby on rails we employ very clever caching using redis and nginx.
once the cache is written, it is directly accessed by nginx via a module, which makes it around 500-2,000 times faster than any rails controller.
today i am going to show you how to do it.
Continue reading “high performance rails caching with redis and nginx”
Posted in caching with redis, databases, linux, rails | Tagged caching, nginx, rails, redis |
By phm on October 6, 2010
i hope i hit all the necessary keywords with the title so you can find this one on google.
because if you, just like me, are switching to rvm on your mac os development environment and installed your postgresql via ports
gem install pg
will fail telling you, that you are missing the right headers.
gem install pg -- --with-opt-include=/opt/local/include/postgresql84/
--with-opt-lib=/opt/local/lib/postgresql84/
will fix that for you.
Posted in rails, ruby |
By phm on October 3, 2010
i created a nifty little radiant extension for some friends which helps you to create seo friendly galleries from file system folders and so i wanted to share it with you.
Continue reading “phm_gallery a gallery generator for radiant”
Posted in rails, ruby, stuff on github |
By phm on October 3, 2010
if you who have to work with the apple itunes rss feeds generated here
http://ax.itunes.apple.com/rss
and hate xml parsing just as any one:
just replace the “xml” at the end with “json”
http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/
ws/RSS/topfreeapplications/sf=143441/limit=10/xml
becomes
http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/
ws/RSS/topfreeapplications/sf=143441/limit=10/json
the json files are roughly 1/3 of the size and ridiculously easy to parse.
enjoy.
Posted in iphone |
By phm on October 1, 2010
those of you who run their rails app with paperclip on a standard linux server and ever tried to save more than 32.000 attachments may know the problem.
the saving of new files is shamefully refused with a meaningless error message.
Continue reading “paperclip with more than 32.000 attachments”
Posted in rails, republished, ruby |
By phm on September 30, 2010
today i want to talk about something that might be of growing interest in the near future.
how to get all your data from that dying old mysql database to your shiny new postgresql without all the heavy lifting?
Continue reading “migrating your app from mysql to psql the nice way”
Posted in databases, rails, ruby |
By phm on September 30, 2010
today we want to speak about a rather controversial topic: saving your attachments for models as BLOBs into a SQL-database.
Continue reading “saving ruby on rails attachments as blobs”
Posted in rails, republished, ruby |
By phm on September 29, 2010
“hello world”
i guess this is the appropriate start for “yet another coding blog”. here you will find all the small and big problems solved by the team of Müller&Wullf and friends.
so expect a big variety of programming languages, frameworks and operating systems. linux in all flavors, ruby, perl, objective-c, ruby on rails, unicorn, iphone stuff, you name it we got it.
since some of us already have some blogging experience there will be some republished articles, which non the less still work and can save you a lot of time.
so join us in our quest to make the world a little bit better and help us with your input and questions.
enjoy.
Posted in about us |