Archive for the 'programming' Category

Page 2 of 5

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.

Symfony on Dreamhost

I’m amazed on how easy it is to install the Symfony PHP Framework on Dreamhost. I have been thinking of coding my portfolio site using PHP and this framework instead of Ruby due to the server’s loading time delay, since mod_rails is being turned off on a shared server. If you want to install Symfony, you can follow the tutorial found on the Dreamhost Wiki itself, it is very detailed and step by step. You won’t be lost nor are there complicated steps that only technical people would know.

No personal comments for Symfony yet, since I can’t try it out due to some difficulties. I’ll be posting here about my experiences after coding something using Symfony.

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