Tag Archive for 'datamapper'

ChanLu Development update 1

Just this week, I started on the development phase of the new ChanLu Design, right after solving the problems on my local server. I also tested my recent code on DreamHost today, and it works! The application I’m developing is using:

  • Ruby
  • Sinatra Web Framework
  • Datamapper ORM
  • Haml

I’m currently filled with excitement similar to the anxiousness I had during my thesis days, just without the worries and deadlines. I’m already created the models, and I’m looking forward on the creation of my administrator panel for ChanLu. Doing something without pressure does feel better, but doing something with pressure and finishing it with flying colors feels more satisfying. So, I’m placing a deadline on myself, the application must be 90% working after two weeks, or better yet – earlier. I’ll be documenting my progress at least once per three days.

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

Roar

waaaaaaaI drew a rough sketch of a person who is shouting, it was supposed to be me, but I guess I got carried away. I feel like doing what he/she is doing.

Since yesterday, I installed DataMapper on DreamHost, but it has some errors. Since the gem path in DreamHost is different,  DataMapper can’t include the necessary gems it has dependencies on.

I even asked for Wayne’s help today, and he also wasn’t been able to fix the problem. We even tried overriding the paths but it did not work.

Due to this, the recoding of ChanLu maybe put on hold. Since I don’t want to code ChanLu locally, which may not be actually used online. I do hope a miracle will arrive and let me use DataMapper on DreamHost (Wayne finds a solution to this problem is the literal meaning of this sentence).

Today at work, I was given one very big responsibility. The designers in our office has a project – to create our “Designers’ Website”. While we raffled papers among ourselves of who are going to be the members of the “Design Team” of the site – I was one of them. Just today, our Senior Designer Wayne, assigned me to be the leader of the “Designer Group”. I do have a lot of personal projects which I’m about to start working on, here comes another one that is time demanding. I have to improve my time management from now on, since a lot of projects are up on me. Gah, just when I thought that I can relax after I graduate, a lot more stuff than thesis comes in my way.