Go-Trendy.com revamp!

We have just launched the new website revamp of our client: Go-Trendy.com. Go-Trendy is an online trendy fashion shop focusing on Hong Kong, Japanese and Korean fashion. Total time taken for us to revamp this website is 1 week.

Here is final product:

Homepage:

Products Page:

Alice in Wonderland – Facebook legend living in S’pore

“The only way to achieve the impossible is to believe it’s possible.”

- from “Alice in Wonderland”

Eduardo Saverin – Facebook legend living in Singapore

Tham Yuen-C
Straits Times

Site’s co-founder set up a software development firm here last year, but has maintained a low profile.
The other Facebook legend – the one who fell out with co-founder Mark Zuckerberg – has set up a software development company in Singapore.

Mr Zuckerberg is chief executive officer of the world’s most popular social networking site.
His former collaborator, Mr Eduardo Saverin, 28, is one of three people behind Web technologies company Anideo, with offices in Singapore and Miami, Florida.

The Brazil-born billionaire is said to have been living in Singapore since last year, and the Singapore outfit of his firm was registered under his name in October last year.

His two partners are fellow Harvard University graduates, one of whom had worked with him on a job search site in 2005.
Since technology site TechCrunch posted a blog last Thursday about him being in Singapore, netizens – here and abroad – have been speculating about his whereabouts.

A film, The Social Network, based on the story of the two co-founders, is currently showing in cinemas around the world.
Mr Saverin is portrayed in the movie as the more affable and charming character, in contrast to its depiction of Mr Zuckerberg as a socially inept geek who is also the more cunning of the two.

Mr Saverin was Mr Zuckerberg’s partner in 2004 when, as Harvard students, they started thefacebook.com, a website that evolved into Facebook. But the duo fell out after Mr Zuckerberg allegedly sidelined Mr Saverin by diluting his 30 per cent stake in the business to less than 10 per cent. It led to the two suing and counter-suing each other. Both men eventually settled their lawsuits out of court last year, after which Mr Saverin disappeared from the technology scene in the US and out of the public eye.
Acquaintances of Mr Saverin here who spoke to The Sunday Times described him as nice and humble. They said the affable entrepreneur keeps a low profile and does not mention his Facebook links.

A friend of his, who declined to be named, said: ‘He is very low-key and doesn’t like people to know (who he is). He thinks the people around him don’t know, but most of us do.’
Other than software development, Mr Saverin’s company also provides seed funding of $20,000 to $60,000 to local technology start-ups.

Among the projects Anideo is working on are a product review site; a portable gaming application; and a Facebook application for VIP clubbers that gives them special discounts.

This last venture is probably a project close to Mr Saverin’s heart. Believed to be a bachelor, he is a regular face at the Butter Factory nightclub and more recently Filter Club, a nightspot next to Gallery Hotel opened by a friend of his.
Although he likes to keep a low profile, Mr Saverin is generous at the clubs and spends a lot of money on drinks for friends, said someone who has partied with him.

Forbes lists him as one of the world’s youngest billionaires, with an estimated net worth of US$1.15 billion (S$1.49 billion).
Most of it comes from the 5 per cent share of Facebook he holds.
yuenc@sph.com.sg

Open secret ‘He is very low-key and doesn’t like people to know (who he is). He thinks the people around him don’t know, but most of us do.’ A friend of Mr Eduardo Saverin, referring to the Facebook co-founder

 

2-2gfreq.txt
2-2lemma.txt
2of12.txt
2of12inf.txt
2of4brif.txt
3dtechnology.txt
3esl.txt
5desk.txt
6of12.txt
Antworth.txt
CRL.txt
IM.txt
Roget.txt
Unabr.dict.txt
Unabr.txt
Unix.dict.txt
abs.txt
affiliatemarketing.txt
agid.txt
anime.txt
article writing.txt
auto.txt
baby-bargain.txt
backlinks seo.txt
backlinks.txt
backpain.txt
bad-credit.txt
bartending.txt
blogging.txt
bodybuilding.txt
bollywood.txt
boston-taxi.txt
cat-behavior.txt
cateringlingerie.txt
celebrity.txt
cellphones.txt
ceramics.txt
cheapcigarettes.txt
childrenclothea.txt
cinema.txt
cleaning.txt
concretestaining.txt
cooking.txt
corncob_lowercase.txt
creditcards.txt
dancehall.txt
dating.txt
datinghelp.txt
debtconsilidation.txt
diy-solar-panels keywords.txt
dj-gear.txt
dog-training.txt
domain-names.txt
domains.txt
englex-.txt
euro-travel.txt
facebook.txt
fashion.txt
football.txt
forex.txt
furniture.txt
furniture2.txt
gadgets.txt
gambling.txt
games.txt
getyourexback.txt
hairloss.txt
health.txt
hindu-culture.txt
hindu-weddings.txt
hinduism.txt
hiphop.txt
indian-fashion.txt
instrumental.txt
insurance.txt
islam.txt
jewelry.txt
keywords.txt
keywordsaid.txt
keywordsdisaster.txt
keywordsgov.txt
knuth_britsh.txt
knuth_words.txt
lcd tv.txt
led tv.txt
ledlighting.txt
love.txt
marriage.txt
medicine.txt
miley-cyrus.txt
movies.txt
music-videos.txt
neol2007.txt
new-age.txt
news.txt
nicotine.txt
nulled.txt
offshore-staffing.txt
olympic-games.txt
online-dating.txt
outsourcing-services.txt
payday-loan.txt
philosophy.txt
plasma-tv.txt
pocket-dic.txt
realestateinvest.txt
recording-studio.txt
recording-youtube-videos.txt
reset-phone.txt
romania.txt
roulette.txt
scholarship.txt
script.txt
selena-gomez.txt
self-help.txt
seo-services.txt
shakesp-glossary.txt
site.txt
smoking.txt
soccer.txt
social-media.txt
sof.txt
sofa.txt
special.txt
strong.txt
tech.txt
themes.txt
tires.txt
turntables.txt
tv-shows.txt
twitter.txt
web-hosting.txt
weddings.txt
weightloss.txt
womenssilkunderwear.txt
words-english.txt
youtube.txt

Using ActiveRecord to access Microsoft SQL Server via ODBC

Recently I need to insert 400+ rows of data into an eight year old MSSQL 2000 and MSSQL 2008 database. It’s really a pain in the ass if I have to do it by hand or learning a new tool to do it. Luckily, I can use ActiveRecord to do that easily thanks to activerecord-sqlserver-adapter and and auto table field mapping of ActiveRecord.

Here is a quick step-by-step guide:

Install Ruby on Windows machine (that run SQL server). Download One-Click Ruby Installer for Windows for Ruby 1.8.6 P26 at
http://rubyforge.org/frs/download.php/29263/ruby186-26.exe

And install it. If you use the default setting, it will setup ruby at c:\ruby folder with rubygem 0.9.3

Update RubyGems

Open “Command Prompt”

cd c:\ruby\bin gem update –system

Install ActiveRecord with SQLServer Adapter

gem install activerecord-sqlserver-adapter –source=http://gems.rubyonrails.org

If the installation result is:

Successfully installed activesupport-2.2.2 Successfully installed activerecord-2.2.2 Successfully installed activerecord-sqlserver-adapter-1.0.0.9250 3 gems installed

Create a DSN (Data Source Name) Luckily I can reuse DNS from current ASP project so I don’t need to create new one. If you have to, you can follow guideline in [1].

Setup connection and create property ActiveRecord based classes

require “active_record”
ActiveRecord::Base.establish_connection(

:adapter => “sqlserver”,
:mode => “odbc”,
:username => “yourusername”,
:password => “yourpassword”,
:dsn => “yourDSN”

)

class AnyNameYouWant < ActiveRecord::Base
set_table_name “TableNeedToAccess”
set_primary_key “PrimaryID”
end

Start irb by:

cd c:\ruby\bin irb

And paste above chuck of code in to irb. From now, you can use ActiveRecord based classes to read/write/add/remove SQL Server table as in a Rails script/console environment.

I also got a problem with Time.mktime and need to some code adjust by hand

Open

c:\ruby\lib\ruby\gems\1.8\gems\activerecord-sqlserver-adapter-1.0.0.9250\lib\active_record\connection_adapters\sqlserver_adapter.rb

Replace “Time.mktime” by “Datetime.new” will fix the problem [2]

References

[1] http://piao-tech.blogspot.com/2008/02/using-activerecord-with-microsoft-sql.html
[2] http://papillon.nwnx.org/index.php/archives/19

Rails 3.0 Upgrade Handbook

Guys, Rails 3.0 is now at the stage of beta release. Why not consider update your self with state-of-the-art technology? Below is the handbook that we think it will be very useful to you! Let’s check it out !!

Inside you’ll find:

  • Almost 120 pages of upgrade information
  • A step-by-step guide to upgrading your app to Rails 3
  • High-level discussion of what’s new in Rails 3
  • Practical tips on using Rails 3′s new features to improve your code
  • Real case studies of upgrading apps and plugins
  • Detailed checklists for upgrading

Integrate Singapore eNETS payment gateway and Ruby on Rails.

There are always needs to build E-commerce sites with Credit Card transactions securely and seamlessly. In Singapore market, eNETs is the most well-known company providing payment gateway services. Up to now, eNETS only provide API for .NET and Java platform. In this post, I will show you my solution to integrate eNETS and Ruby on Rails via Java.

Steps:

1. Build JAR file to submit payment info to eNETS, i named it enets.jar. This jar file will return output from eNETS to console in text format. I attached sample program built with NetBean, you can download it here: eNETS. After downloading, you just copy that folder to your NetBean projects folder as shown in below image.

NetBean projects folder

NetBean Projects Folder

2. Follow eNETS guideline, change setting for java security as well as generate merchant.priv.pgp.asc, merchant.pub.pgp.asc.

3. Change config: log4j.properties, NETSConfig.xml

4. Build enets.jar file from source files in NetBean. Right click on project root, Clean and Build.

5. Generate command to execute enets.jar, something like this:

“java -jar #{RAILS_ROOT}/vendor/extensions/payment_gateway/lib/enets/eNETS.jar #{mid} #{tid} #{paymentMode} #{amt} #{currency} #{merRef} #{submitMode} #{merCertId} #{pan} #{expiry} #{stan} #{paymentType} #{successURL} #{successURLParams} #{failureURL} #{failureURLParams} #{notify_url} #{notify_url_params} #{name} #{cvv} #{post_url} #{post_url_params} #{cancel_url} #{cancel_url_params} #{bill_first_name} #{bill_last_name} #{bill_initial} #{bill_addr1} #{bill_addr2} #{bill_coy_name} #{bill_city} #{bill_state} #{bill_zip_code} #{bill_country} #{bill_mobile_num} #{bill_phone_num} #{bill_fax_num} #{bill_email} #{ship_first_name} #{ship_last_name} #{ship_initial} #{ship_addr1} #{ship_addr2} #{ship_coy_name} #{ship_city} #{ship_state} #{ship_zip_code} #{ship_country} #{ship_mobile_num} #{ship_phone_num} #{ship_fax_num} #{ship_email} #{shopper_ip_addr} #{product_format} #{product_details} #{gw_url}”

6. Run enets.jar from ruby console with output = %x[#{command}]. %x[] command will store output to output variable for later processing. It is not the same as system() or exec() ruby command. Read more on Jay Fields’ blog:  Ruby Kernel system, exec and %x

7. Parse results returned from enets.jar and continue with your business logic in your ruby/rails application. For rails project, i recommend you to use Active-Merchant and modify Bogus payment gateway so that you will follow format of ActiveMerchant framework. You will be supprised because the effort required  is very little.

What are your solutions to integrate with eNETS from Rails project? I would like to know if you have better solutions. Thank you.

Benefits of NoSQL DBs

Some benefits compare to RDBMS (MySQL, Postgres, Oracle …) I come up
with after few months using MongoDB and Neo4J.* No model caching thanks to high performance
* No join thanks to embedded docs or graph DB
* Data-to-object matching is dead simple thanks to no-join and document-oriented
* No SQL injection attack
* No DB migration thanks to schemaless
* Scale horizontally
* Social computation made easy with graph DB
* No DB roll-up thanks to high volume and cap-collection

Q: How do I do data query & tabulation without SQL?
A: I do data query via MongoDB indexing & JSON query syntax and do
data tabulation via Map-Reduce.

InfoQ: Dean Wampler on Programming Languages

You also program in Ruby, right? Three languages! Can you contrast the 3 languages Scala, Clojure and Ruby?
That’s a very interesting thing to think about, because Clojure and Ruby have sort of a similar feel in the sense that they are both more dynamically typed than statically typed. Clojure has an interesting relationship with Java, obviously, because it lets you use Java objects, but it doesn’t have type annotations all over the place, like you would have in Java or Scala. I think this general debate of static versus dynamic typing is kind of pointless in some sense, meaning that a lot of times it’s the application that really should dictate what’s best.If you are building something like a typical website that may need a lot of iterations very quickly and there is an informal model of the domain, then maybe it’s not so important to have the formalism of type theory. But, on the other hand, if you are building something that you wanted to behave in a mathematically precise way, then it’s great to have it. They type system of statically language that bakes in the almost provably correct behavior, at the fundamental building blocks. For example, if I’m building a financial application that manages money in some sense, I’d be more likely to want a statically typed language like Scala where I can very precisely specify the behavior of money.

Then, build my account objects and so forth on top of that, knowing that they will be robust at this very fundamental level. But, if I’m building a website, where users may be specifying withdrawals and transfers, I don’t necessarily care about that kind of type safety at that level. I would like to have the dynamism, the productivity that I get from a language like Ruby, so I’d be more likely to use Ruby on that part of the application. I could very easily see JRuby with Rails running the website and Scala or Clojure business to your code that’s handling preciseness of getting money transactions right.

JVM seem to be a place programming languages converge.

jRuby on Rails running web apps + Scala / Clojure / Java handling money transactions and other high reliability, high performance stuffs is very compelling.