Author - Web Developer - Educator
Found 3 results for tag "ruby"
RSS Feed

Introduction of the <ruby> tag

As much as I've wanted to write Japanese on the web, I never really knew how hiragana characters were written above kanji (see example).
NHK News Easy Website

I always thought that it was manually inserted with each set of characters a special <div> that showed the pronunciation, or there was a special engine or library that automatically did it.
Well, whether there is or there isn't, I have found a way: the <ruby> tag.

I always saw the <ruby> tag and thought it was for inserting Ruby on Rails code into HTML. I knew about merging Ruby and HTML codings, but never like this.
<ruby>愛
 
	<rt>あい</rt>
 
</ruby>
Produces this
あい


That is it. In order to insert special Japanese (or Chinese/Thai/Korean/etc) characters, you don't need to look up each special character code for each character if you already have access to it (like a Japanese IME or keyboard). Just copy and paste (or write) and the <rt> tags will put the special pronunciation over the selected character. Although, you may need to insert multiple <ruby> tags in order to write out a paragraph or something, but the concept is there.

I find it interesting that this is possible, and I may be late to the game, but it is nice to be able to do something like this.


Tags:#html #demos #tags #ruby #japanese

RSS Feed

Hittin' the Tracks with Rails

Well, more like a "Ruby" and "Ruby on Rails" scenario, if you know what I mean.

Anyway, here's a comic that I wish I could create:
FatCats


Getting back to the topic, I've been going through the Codecademy's track for Ruby to understand the concepts for Ruby (I went through all 10 courses they had within 11 hours), then studied up with RailsForZombies.org and Rails Tutorial book to get a grasp on Rails. I've been working on that book for about 2 days now, and it has really shown me the in's and out's of a basic dynamic rails structure. I'm on Chapter 7 right now.

All I can say is that Ruby seems very robust, but Rails seems very picky.

It is a different standard from what I'm used to with PHP. Whereas Rails is extremely picky with "only my way works" (kind of like older HTML), I'm used ti the PHP mindset where "if you have an idea, there are about 50 ways to create it". Personally, I still like the PHP way, but I haven't given up on RoR yet, but I like the MVC procedures that Rails incorporates (and now that I can finally use git for a good reason). You can checkout my progress at http://cdn.kmp.link:3000 or even view my github releases at https://github.com/kode29/sample_app.

On the lighter side, I've created a "Skillset Chart" on my blog showing off some of my skillsets and how experienced I am with them. Just view the middle right section of my blog layout to view it.


Tags:#fatcats #rails #ruby #ror #php #html #github

RSS Feed

A Brief History of Programming

Saw this via @GeeksAreSexy - it's amazing how the Java vs PHP and Ruby duels have progress

History of Programming


Tags:#programming #java #php #ruby #javascript #fortran #cobol #basic #c #pascal #c++ #python #perl #ruby #rails