You are here: Blogsphere Authority

Rails BlogSphere

BlogSphere

Keep up to date with your favourite Rails bloggers in context.

Read more about how it works

Me Automatic Fancy Ampersands with jQuery

by Tammer Saleh | over 2 years ago | Read more

Back in 2008, Dan Cederholm posted a great design tip on CSS-based fancy ampersands. The basics of this technique is that you surround every & in your headers with a <span class="ampersand"> tag. Then, in CSS, you define .ampersand as something like the following:

span.ampersand {
  font-family: Baskerville, Palatino, "Book Antiqua", serif;
  font-style: italic;
  font-weight: normal;
}

…or, in Sass:

.ampersand
  :font-family Baskerville, Palatino, "Book Antiqua", serif
  :font-style italic
  :font-weight normal

Fancy ampersands are one of those little details that adds a subtle aesthetic touch, and gives the page an extra notch of professionalism. Unfortunately, adding those spans by hand is both bothersome, and error-prone. It also becomes difficult to make use of this technique for existing or automatically generated content.

Luckily, that’s why god created jQuery!

With a little addition to our application.js, we can have fancy ampersands inside all of our header tags (h1, h2, etc.):

$(document).ready(function(){
  $(":header:contains('&')").each(function(){
    $(this).html($(this).html().replace(/&amp;/, "<span class='ampersand'>&amp;</span>"))
  });
});

You can see this in action on this site, where blog titles with an ampersand get all fancified.

%ed%81%ac%ea%b8%b0%eb%b3%80%ed%99%98_dscn0264-mirnae 2010 IT Tech Trends

by SangHyun Son | over 2 years ago | Read more

1. Future of Netbook 2. Tablet Challenges 3. E-Book Reader, Over expectation? 4. Windows 7 & Office 2010 (The Cloud OS) 5. 3D TV & Internet TV 6. Social Networking 7. Hi-Speed, Hi-Spreading 8. Smart Phone (iPhone, Blackberry, Android) 출처:2010년 IT 트랜드    

71699377_fc54d72417 Plagiarism today

by Joe Goldberg | over 2 years ago | Read more

I just had a strange thought, when translating an email written in Italian...

Let's say you're in high school French class and you're reading L'Étranger. You get an assignment to write a book report on it, in French. This isn't so farfetched, I had this exact assignment.

Back in my day, you could cheat by finding a book report in English (say, Cliffs Notes on The Stranger) and look up one word at a time in a French-English dictionary, and with a very basic knowledge of French, cobble together a report in French. Not very efficient.

Today, in about 30 seconds, you could go to the same source online, copy/paste the text into Google Translator, and have a passable French paper. It's certainly cheating one's self out of an education, and almost definitely plagiarism (i.e. the representation of the thoughts of another author as one's own), but it sure would be tempting to do.

Does anyone who teaches have to deal with 21st century plagiarism?

245186169_46c171be89_m_d Tokyo’s N Building

by Marcel Molina Jr | over 2 years ago | Read more

Tokyo’s N Building

245186169_46c171be89_m_d coterie: A small group of p...

by Marcel Molina Jr | over 2 years ago | Read more

co•te•rie
[koh-tuh-ree]noun
A small group of people with shared interests or tastes, esp. one that is exclusive of other people.

245186169_46c171be89_m_d Be happy you’re not

by Marcel Molina Jr | over 2 years ago | Read more

Be-happy-youre-not

Be happy you’re not

245186169_46c171be89_m_d Resentment is like drinking...

by Marcel Molina Jr | over 2 years ago | Read more

Resentment is like drinking poison and waiting for the other person to die.

Carrie Fisher

%ed%81%ac%ea%b8%b0%eb%b3%80%ed%99%98_dscn0264-mirnae 1월 30일, TAEYO.NET 2010 신년 세미나

by SangHyun Son | over 2 years ago | Read more

날짜 : 2010년 1월 30일 토요일 오후 2시 장소 : 선릉역 근처 포스코빌딩 서관 5층 마이크로소프트 세미나 룸 지도 : 세션 시간 : 오후 2시부터 6시까지 세션 개요 : 2:00 - 2: 50 ASP.NET 4.0 New Features ? Part 1 3:00 - 3: 50 ASP.NET 4.0 New Features - Part2 : URLRouting 4:00 - 4: 50 ASP.NET Web Service와 jQuery Ajax 유형별 소개 및 Pager 플러그인으로 방명록 만들기 5:00 - 5: 50 WCF를 사용한 REST 서비스 구현 구체적인 내용은 다음과 같습니다. 세션 1 시간 : 14:00 - 14:50 (50분) 발표자 : 최지훈 MVP (드원테크놀로지 컨설턴트) 제목 : ASP.NET 4.0 New Feature.......

%ed%81%ac%ea%b8%b0%eb%b3%80%ed%99%98_dscn0264-mirnae 2010년 성공적인 IT 취업을 위한 조언 6선

by SangHyun Son | over 2 years ago | Read more

고용이 동결되고 정리해고가 이어진 한 해를 지낸 IT 전문가들은 2010년 다양해진 기술과 함께 구체적인 업계 비즈니스 지식까지 요구하는 어려운 취업시장에 뛰어들게 됐다.   분석가들에 따르면, IT 전문가들은 여전히 경기침체로 인한 고통에 시달리고 있으며, 올해도 즉시 취업시장이 활성화되기는 힘들 것으로 보고 있다. 많은 기업들이 IT 팀을 새롭게 꾸밀 계획을 갖고는 있지만, 대부분은 사업을 회복시키는데 도움을 줄 수 있는 다른 방법을 먼저 시험해 볼 것으로 전망된다.   가트너의 CIO 리서치 부회장인 릴리 목은 “내부 IT 인력을 보강할 계획인 회사들은 비즈니스와 맞물려있는 자리에 집중하고 있다. 이제 I.......

%ed%81%ac%ea%b8%b0%eb%b3%80%ed%99%98_dscn0264-mirnae WiFi만 잘 연결해도 밧데리가 충전이 된다.

by SangHyun Son | over 2 years ago | Read more

진짜 신기하네요..   WiFi 만 잘 연결해도 충전이 된다니..   http://kr.engadget.com/2010/01/11/airnergy-wifi-power-system/   손목에 감는 미래형 노트북에 이어서..   새롭기만 하네요..    


Tell us what you think of the new BlogSphere feature. We are continually looking to improve and update the functionality based on your feedback.

Job Board

Job Boards
Find your next Ruby on Rails project or job.
Exclusive content, regularly updated - onsite and tele-working positions listed.

View the opportunities

Latest from the Weblog

Mohnish G J:

Mohnish is a ruby expert, very friendly in nature. he helps other people a lot.

- Sbubble S.J, India