Tag Archive for 'sinatra'

Page 2 of 2

DataMapper Problems on DreamHost

poutingYes, I do want to pout right now. Here’s a fast drawing done today, even with messy shading. This drawing features a girl drawn in the style of Yuu Watase (creator of Fushigi Yuugi, Ayashi no Ceres, Alice 19th and etc.), I used to like her artworks back then, but now I have my own preferred style. I do love the girl characters of Watase when pouting, since they look so cute!

So, what’s making me pout then? Yesterday, Wayne gave me the code for the config.ru file for the ruby application. The ruby gem path now works in DreamHost! But I still have an error, just one error though, there’s a fastthread installation in DreamHost currently version 1.0.1, but DataMapper requires 1.0.4. The fastthread 1.0.1 is activated by another gem first, so 1.0.4 can’t be activated anymore. I contacted DreamHost about the problem, they won’t upgrade the gem on a server basis. I must add the fastthread upgrade to the suggestions corner and wait for people to vote if they want the upgrade or not.

I’ll try to find other means of using DataMapper for the recoding of ChanLu Design, since I won’t give up on using that wonderful gem. Here’s the code that Wayne gave me, tell me though if there are other better alternatives.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
if (ENV['HOME'] =~ /^\/home\//)  ## DREAMHOST
  require "#{ENV['HOME']}/.gems/gems/rack-0.9.1/lib/rack.rb"
  require "#{ENV['HOME']}/.gems/gems/sinatra-0.9.1.1/lib/sinatra.rb"
  ENV['GEM_HOME'] = "#{ENV['HOME']}/.gems"
  ENV['GEM_PATH'] = "#{ENV['HOME']}/.gems:/usr/lib/ruby/gems/1.8"
  require 'rubygems'
  Gem.clear_paths
else
  require 'sinatra'
end
require 'datamapper'
require 'haml'
require 'app'
run Sinatra::Application

The rack and sinatra gems are being required manually because when requiring it by using their names, a lower rack version is activated which is installed default in DreamHost.

haruhi_suzumiya_vector_by_leek128

Besides that, I have been watching The Melancholy of Haruhi Suzumiya. Though I still haven’t been able to finish the series yet due to my personal projects and work. I do like the series, its worth a few laughs and the characters are cute! I also find Itsuki Koizumi quite appealing.

I will be posting more about this series after I watch all the episodes, maybe this weekend if my brother bugs me onto watching this show.

00-cover2Also, I have been reading Japanese comics (manga) – shoujo manga is my current genre of interest, I read Kimi ni Todoke (Reaching You) but sadly there are no more scanlantions for the other chapters. But this manga is really fun! It is about a girl who is really pale having long black hair and is being called as Sadako, encounters the “refreshing” guy – Kazehaya which will open her up to new opportunities such as having friends. This story is a love comedy, which has cute artwork and will hook you up wanting for more.

hana-to-akuma

I am also reading Hana to Akuma, it is about a Demon who decided to live on earth, and adopted a baby human. Though the story focuses when the child is 14 years old already. The artwork of the male characters is awesome, they look cool, handsome and cute, depending on what they want to portray. But the girls in this manga seem like blank looking, it’s only my own opinion though. I do find the story entertaining and it gives me a good amout of laughs. I haven’t finished reading the current chapters of this manga, so I may post later more about this series.

Related Links

“Possessed” sketch

Summer time is up, most of my classmates are relaxing and having fun now, but for me it means work and now it’s full time. I still feel that I haven’t graduated yet, and would still go back to school if given the opportunity. But now, I need to earn money to buy the things I want, and hopefully become stable in life. Then, I can continue to my studies in a few years and maybe take up a masters degree. But instead of talking of my “future-future” plans, let take a peek of what I’ve been up to lately…

scan0001I drew a rough sketch of a woman which is supposed to be “possessed”. If I don’t feel lazy this sketch maybe cleaned and colored in using my favorite designing software, Photoshop. I entitled this sketch as “Possessed”, since my brother said that the character looks “sinasaniban (Tagalog word for possessed)” when I showed him the drawing. I’m actually happy about his comment about the drawing, since I was aiming for that emotion/image from the very beginning. Though this character has no clothes, this is not Hentai or porn. I haven’t placed any details yet since its a rough sketch, but it may belong to the “artistic nude” genre/category. The artwork style doesn’t look like anime/manga, it looks rather western and semi-real, but I like it more that way, since it adds up more to the “possessed” look. I don’t think it would look nice having a cute faced anime girl doing that pose instead.

I’m posting this sketch so as you readers may comment if this looks awkward or if there is something wrong with the anatomy of the body that I can’t tell. I did base some parts of the pose at Posemaniacs then improvised to have the certain look and feel that I want. So please do feel free to comment or suggest anything to make this sketch better.

Also, besides drawing I have been thinking of redesigning ChanLu, though I assigned the task of creating the logo to Rogelio. With the redesign I’m also planning to recode ChanLu from scratch at the same time.

I will be using the Ruby programming language (thank goodness the Dreamhost supports it) using Sinatra web framework this time, with an additional ruby gem called Haml, it would help me speed up on developing ChanLu and the template codes would look so pretty and makes it more fun to code! Wayne helped me on installing the ruby gems on Dreamhost. But I’m gonna install Datamapper myself, but I’ll ask for his help again if I encounter any problems.

Advertisement

Best Dreamhost Promo Codes