search for: artweb

Displaying 9 results from an estimated 9 matches for "artweb".

2007 Dec 02
5
walkthrough: Rails 2.0 startup process
...process when I looked for one recently. There are some really useful resources about this but they are for Rails 1.2 and each of them only covers certain parts of the process. Thus, I’ve taken some notes while reading to the Rails code and compiled the following guide from them. http://www.artweb-design.de/2007/12/2/the-rails-startup-process-a-paragliders-perspective By now I guess I''ve gotten a little snow-blind ... any feedback, corrections or additions would be highly appreciated! Thanks! -- sven fuchs svenfuchs-dUK+l/LC/MTXf2hzA9GHkA@public.gmane.org artweb design http:...
2007 Feb 23
2
Deferred success for specs?
I''ve started using specs as a to-do list. I write explicitly violated specs so I know what to come back to. But a lot of the time, that means if I start to work on another piece of functionality covered by the same spec, it''s hard to tell what I''m working on now from the explicit failues. I run all my specs through TextMate to use the HTML output, so I go by
2008 May 26
7
Mocking Models in Controller Specs...
I find myself doing this kind of thing a lot in Controller Specs: @vacancy = mock_model(Vacancy) @vacancy.stub!(:reference) @vacancy.stub!(:title) @vacancy.stub!(:created_at) @vacancy.stub!(:updated_at) @vacancy.stub!(:body) @vacancy.stub!(:contract) @vacancy.stub!(:location) @vacancy.stub!(:salary) @vacancy.stub!(:benefits)
2008 Jul 04
4
select_datetime // datetime_select
Hi I have 2 question for you guys, 1. Which is the difference between this two methods? (select_datetime, datetime_select) 2. How I assign the selected date-time values, to an specific variable or array using select_datetime I know do it using datetime_select(''object'',''method'') I aprecciate your attention. Thanks PD: Sorry about my english.
2006 Jul 26
0
Globalize strategy for content ?
Hello, what are your strategy for using Globalize to translate sites with lot of full text ? I mean where do you translate your String ? I saw on the swen''s wiki (http://www.artweb-design.de/articles/2006/06/13/real-fun-get-on-rails-with-globalize-take-2), that you can use the locale:set_translation method: Locale.set_translation(''Welcome'', Language.pick(''de-DE''), ''Willkommen'') and then add all your translation in the...
2008 Apr 26
0
Routing: Language as first part of path, for just about everything
...in ''/:lang/login'', :controller => ''sessions'', :action => ''new'' map.resources :categories, :path_prefix => '':lang'' Having looked around, I managed to find two plugins, that get''s me half-way there: http://www.artweb-design.de/2007/5/13/concise-localized-rails-url-helpers-solved-twice More specifically resource_fu and localized_url_helpers Adding either of these and setting a default language in default_url_options, it''s easy to get a nice default value for named routes def default_url_options(optio...
2012 Jan 20
0
Chinese characters scramble after a while
...encoded with UTF-8 become scrambled for some reason overnight (I check the next morning). All my pages on the application are headed with <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> I attempted to use the solution provided on this page http://www.artweb-design.de/2007/3/10/server-setup-mistakes-character-encoding but it did not fix the problem. Also, these Chinese characters are details, which I store in a DB2 database which has code set to UTF-8, and are grabbed from the database when a user visits the page displaying the information. So based o...
2007 Apr 16
2
MultiLingual option for site with Rails
Hi, I was wondering if there is a plugin or a code snippet, that would translate the static content [possibly dynamic too] on the website for the visitors coming from different geographical regions of the world. In one of my earlier projects, I used the plugin on Joomla [CMS] that auto translates the content. Here is the site, the plugin is at the left bottom. http://www.elixirco.com/ Any
2010 Aug 20
0
awful i/o performance on xen paravirtualized guest
...= "vm-dbweb" uuid = "8560e33a-865e-cca5-725d-817de4972422" maxmem = 7168 memory = 7168 bootloader="/usr/bin/pygrub" vcpus = 2 on_poweroff = "destroy" on_reboot = "restart" on_crash = "restart" disk = [ "tap:aio:/var/lib/xen/images/vm-artweb.img,xvda,w", \ "tap:aio:/var/lib/xen/images/dbweb_home.img,xvdb,w", \ "phy:/dev/VolGroup00/dbweb_oradata,xvdc,w", \ "phy:/dev/VolGroup00/dbweb_oradata2,xvdd,w" ] vif = [ "mac=00:16:36:5a:4d:a1,bridge=xenbr0,script=vif-bridge" ] I'm pretty sure ther...