Hi, my name is Shanison (Chinese name LinXinshan). This is my personal website that meant to share with you some stock trading knowledge and programming knowledge, especially in web related field. I love both Stock Trading and Programming. I believe  these two would make your life become more beautiful!

 

I am mainly working on Ruby on Rails related projects these few years. You can also find me at Stack Overflow at here. On the other hand, I am also trading actively in Singapore and US equity market as well as index futures. I gave presentation on Stock Trading at numerous large-scale financial events, like InvestFair 2011, InvestFair 2012. This is me at bali island.=)

 

The following are some of the highlighted IT projects that I have accomplished.

1. ShareInvestor.com

ShareInvestor.com is a Ruby on Rails powered website that provides market data tools and financial informations to institutional and retail investors. It also has a portfolio tracking system that will help investors managed stock gain/loss. One of the main feature that it has is the Comet Streaming. I am one of the main developers in this project.

2. ShareInvestor iPhone App

This is an iphone app that features the comet streaming technology to push latest stock prices to iphone users. As a ShareInvestor member, you are also able to keep track of your own portfolio and view your gain/loss no matter where you are. View it at the app store.

3. BTInvest Financial Portal

BTInvest is again another Ruby on Rails powered web application. It is one stop portal that provides streaming stock market information as well as articles on investment from Business Times. An important component of this website is that it is powered by Radiant CMS, which we have done various extensions in order to support the needs for the website. This website is owned by Business Times, Singapore Press Holdings.

4. Bursa Malaysia Stock Exchange Website
Being the stock exchange website, scalability, stability and security are the main focus that we have been putting a lot of efforts in. I am the technical leader in revamping the whole website.

Feel free to contact me at lxsh586@gmail.com if you need any helps on your projects.

60 comments on “About Me

  1. kennykee on said:

    Good luck and have fun with you website. haha.

  2. air_bob on said:

    a ha,it is interesting, man

  3. scorpions on said:

    hello lin.Congratulate your space open.well done.

    • shanison on said:

      Hello scorpions. Thank you very much. Based on your IP address(tian jin), I felt that you should be someone I knew=) Anyway, thanks a lot for visiting my site.

  4. taotao on said:

    well done man!

  5. Running into your website this morning. Sounds like you progress very well with SI, cheers!

    • shanison on said:

      Hi Maxi!! I never thought that you will come to my website. Quite a surprise for me. How is everything doing? We didn’t keep in touch for quite some time.

      I want to tell you a good news. Thanks to you, I have been promoted as a senior software engineer last year. It was quite a surprise for me as well when DH told me about this. But I made it. I will keep working harder. I will never forget that it is you that gave me this excellent opportunity where I can learn programming and stock trading. For that, I am always very thankful. It is just too bad that you left me too early=( Wish you and your family all the best in 2011! Cheers!

      • Contgrats, you deserve it ;-) wish all the best. btw, your website seems not the best place for personal conversion. So you may drop me a line, let’s keep in touch. I’m thinking buying your guys a meal before i left singapore.

  6. i’m your 100000th visitor!

  7. Ajmal on said:

    Hello Shanion,

    I am Ajmal from India.. a budding web developer..

    We are also developing a website with live quote with server push in ruby on rails..

    We are getting into a bottle neck.. I accidentally discovered your website which I think was God send.. Pls advice on how to go about on COMET etc or might be some sample code will also be very much appreciated and thanked.

    • shanison on said:

      I don’t know if you have decided which COMET server to use for your project.

      You can consider Grizzly comet server, then you can develop your server application on top of that. You can read more about it at http://grizzly.java.net/tutorials/tutorial-framework-filter-sample/index.html One problem with Grizzly is that there is not much documentation, so you may have problem doing it. However, it is open source. So you can always refer to the source code.

      One more thing, you can refer to http://meteorserver.org, it’s free, so you can consider using it. It has client side implementation as well.

      Once you have settled the server side, then you have to see how the server side should communicate with client side. And for comet, it should use javascript to commuicate. Maybe you can refer to http://www.shanison.com/2010/05/10/stop-the-browser-“throbber-of-doom”-while-loading-comet-forever-iframe/ for some sample javascript communication.

      Good luck. Enjoy!

  8. ramana on said:

    Hi Shanison, I am new to radiant cms. Could u please explain how to create custom radius tags with example. I tried by writing method in extname_extension.rb.But no luck.Please help me.Thanks in advance.

    • shanison on said:

      Hi ramana, have you tried following the example in https://github.com/radiant/radiant/wiki/Adding-Custom-Radius-Tags. the extname_extension.rb is for you to do things that are needed when you activate the extension.And the logic that you needed for the custom tags should be defined in the library.

  9. mary on said:

    Hello Shanison,

    I am a newbie to Radiant CMS. I learned to create extensions and radius tags. Now i dont know how to use those radius tags and link it with controllers and views in order to create an application. It would be greatly helpful if u could post some example applications or urls. Thanks.

    • shanison on said:

      Hi mary, after you have created your own custom radius tags, you can use the tags in the CMS when you create pages. e.g if you create a radius tag
      that would render a custom forms then when you put this in the cms pages, it would render it accordingly. Of course, the real radius tag to render a form won’t be that simple, as it should be able to accept things like action etc. Radius tag is just one part of radiant CMS, you can use your created radiant project to create one extension, where you can do anything like a normal rails project, where you can create your own controllers, views and routes. Hope this helps.

  10. Hello Shanion,

    Hi, I am new to radiant cms. I learned about how to create radiant application and own extensions. I created one simple radiant application and in that I tried to use pre-defined extension named as database-mailer extension ,for that I followed this website(http://blog.aissac.ro/radiant/database-mailer-extension/).But I cant migrate and update the extension.I am getting the following error while migrating.help me please.Thanks.

    $ rake radiant:extensions:database_mailer:migrate
    rake aborted!
    undefined method `class_attribute’ for ActiveRecord::Base:Class

    • Hello Shanion,

      I am RK.I got the error which I mentioned above.If I uninstalled the paperclip plugin and installed using gem command , that error is gone.But now I am getting the following error.Help me pls.waiting for your reply.thanks.

      $ rake radiant:extensions:database_mailer:migrate
      rake aborted!
      wrong number of arguments (3 for 2)

      • shanison on said:

        Hi RK,

        A few things:
        1. if you do git clone git://github.com/thoughtbot/paperclip.git, this version of paperclip is for Rails 3. However Radiant is only able to work with Rails 2. So this paperclip plugin is not working. HOwever, when you install as a gem, if you don’t modify it in the environment.rb configuration, the paperclipped gem is not loaded at all. So you won’t see the error messages. The solution is to use the paperclipped extension specifically for Radiant. Try install this https://github.com/kbingman/paperclipped. Remember to migrate and update the extension first after install the extension before you install other extensions.

        2. When I try to follow the steps at the url you gave me. When I do git clone git clone git://github.com/Aissac/radiant-database-mailer-extension.git, it will create the extension with folder name radiant-database-mailer-extension. This is incorrect, the folder name should be database_mailer. it is underscore, not dash. How radiant determine this is, you must look at the extension file under radiant-database-mailer-extension/database_mailer_extension.rb, the extension name must be the folder name with _extension, so the folder has to be database_mailer otherwise the Radiant would not be able to find the extension, same for the mailer extension. Just do a double check. Rename the folder if necessary, then do the migrate and update for the extension. It is a good habit to do the migrate and update for the extension after install, unless you knows specifically if the extension needs migrate and update by looking at the source code.

        3. Lastly, for the error wrong number of arguments (3 for 2). This is a problem with the radiant-database-mailer-extension. I try $ rake radiant:extensions:database_mailer:migrate –trace and found the error is at database_mailer_extension.rb file line 22, the admin.nav_item is complaining, as it can only accept 2 parameters, but it is giving 3. So we need to change this line 22 from
        admin.nav[\"content\"] << admin.nav_item(:database_mailer, "Database Mailer", "/admin/form_datas")
        to
        admin.nav["content"] << admin.nav_item("Database Mailer", "/admin/form_datas")

        This would make this error go away. However, while installing i found out that it also needs to install fastercsv and spreadsheet gem. You will know what you need to install while migrating the extension, as it will complain to you what it needs. Good luck.

        • Hello Shanion,

          I was go through on your steps which you given and tried on that way…now its working for me..thanks a lot for your information.Have a good day.

  11. Hello Shanison,
    I am RK.I have created mailer form using mailer extension that is working fine.Its having name,email and message field.And I tried to validate that form fields using this site(http://tetlaw.id.au/view/javascript/really-easy-field-validation).But its not validating the form fields . I wrote elements like this( ).And I put the following lines in layout.

    new Validation(‘name’); // OR new Validation(document.forms[0]);

    But its not working for me.If you post some related links and information for validating the radiant forms,it would be much helpful.Waiting for your reply.Thanks.

    • shanison on said:

      Hi RK,

      This form validation is done at browser end. So it has nothing to do with Radiant. This kind of javascript form validation should be working for any kinds of form. If your one is not working, you must check if you have any javascript error in the firefox console. Check if this library validation.js is loaded. Remember to put the class name in the html for form validation . On the other hand, actually i prefer to use jQuery instead of prototype, as it has much more libraries out there and the community is much bigger. If you are using jQuery, then check out http://docs.jquery.com/Plugins/validation.

      Regards,
      xinshan

  12. kennykee on said:

    Oh wow, seems like you are having fun with your site. Great job. 200k visitors!

    • shanison on said:

      haha, thanks for your support man! And glad you have done something that you should have been done earlier, as I will be very glad to see you back=)

  13. Hello Shanison,

    I had some errors in javascript,that is why didn’t get validation for fields.Now I cleared and its working nicely.Thanks Shanison.

  14. Richie on said:

    How can I get in contact with you? I want to contact you about a freelance project.

    Thanks.

  15. Hello Shanison,
    I am using rails 3.1.0 and ruby 1.9.2 version.Just I have tried one application using devise gem for authentication,its working well. But i don’t get that how the mailer functions are working.I am having action mailer to send the mails. But now i want to send mail after resetting the new password.I want to know that which line we need to include in files for sending mails .How the mail functions are working?.How can I customize Devise to send password reset emails using Action mailer?.Please help me. If u post something related to this ,it would be very helpful.. I am waiting for your reply.Thanks in advance.

    • shanison on said:

      Hi RK, in devise, it is already implemented to use action mailer to send email for password, so what you have to do is to configure your rails application to be able to send emails using SMTP. You need to have an email server, if you don’t have, maybe you want to see my previous post on how to use gmail to send emails:
      http://www.shanison.com/2011/04/29/free-smtp-server-to-use-with-rails-activemailer/

  16. Hello Shanison,
    One more thing is I am using .hbs template files and .haml files.

  17. Can you speak Thai language?

  18. Hello Shanison,

    Thanks for your post.Its very helpful.The mailer is working well that is I can send mails while clicking forget_password and send_invite events.But now I want to send mail after resetting the new password with the content of new password.At that time the reset_password_sent_at field (This field created by devise)should be change .For that I don’t know, how to customize the password controller to send mails while resetting the password.I am using .hbs files and haml files.Help me for this .It would be useful.Thanks .

  19. Hello Shanison,
    I am using heroku server to deploy the application. I am having two buttons in admin side that is restart and clear_cache.But I don’t get any idea to restart the heroku server while clicking that restart button and to clear chache also.Is there any possibilities to restart the server by manual coding?..If so post some results and sites related to this, it will be very useful.Help me.Thanks.

    • shanison on said:

      Hi RK, i am quite busy these few days, sorry for the late reply. I am not that familiar with heroku, so the best place you can get a answer for that is stack overflow.com. Good luck.

  20. ramana on said:

    Hi,
    When I am trying to deploy “radiant cms” application i am getting this error,

    vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:417:in `load_missing_constant’: Object is not missing constant AssetTags! (ArgumentError)

    Could you please help me.Thanks..

  21. Hi ,could you please suggest any extension to generate pdf using radiant cms.

    Thanks

  22. David Kwok on said:

    I come across your website and found that perhaps you are the type of software engineers that our IT firm is looking for. While this might be a long shot, so I just give you a message to see if there is chances we can rope you in for software development in our IT firm. I’m a Senior Consultant with a local SME. If somehow it fancy you, send me an email and we can perhaps work something out.

  23. Isaac on said:

    Hi,

    You provided me with an answer to my question on stackoverflow.com

    http://stackoverflow.com/questions/6796961/android-for-rails-server-managing-sessions

    I am new to android and rails, and I am running into trouble trying to figure out how to implement it in the way you have suggested. I was hoping that you could provide me with some more help for which I am willing to compensate you.

    Please let me know via email. Thank you

  24. David on said:

    Hi,

    send me an email. we have a professional networking website. I would like to discuss some business opportunity with you. send me email if you are interested.

    thanks,

    david

  25. Jackson on said:

    Hey Shanison!

    You trading alot man!! :D

  26. Hi Shanison,

    I am looking to fill a software developer role with someone with good knowledge of RoR. If you are interested or know someone who is interested, please let me know ASAP.

    Thanks!

  27. Gaze on said:

    Hey Shanison,

    Your blog is awesome. I am currently working on developing a collaboration/communication tools and was torn between using rails and PHP frameworks like Laravel. What do you think?
    I am also interested to know more about your domain, and how do you think using technology improved the Stock exchange experience for users, if not encouraged them to technology more.

    Thank you

    Gaze

    • shanison on said:

      Hi Gaze,

      There is no absolute answer on which technology is right for developing a product. Facebook is developed using PHP and there are many website developed using Rails as well. The important thing is which one you are comfortable with? I am not sure if you know Ruby or Rails. If it were me, I would use Rails. It is just so pleasant using it to develop something that you like. I was a PHP developer before but since I started using Ruby and Rails, there is no way back. However, if you would like to compare the two languages and frameworks in details, that would be a long topics to talk about.

  28. Hey man, i wanna get into stock trading, could you give me some advices, for example, where to star, is there a stock market software reliable for that….

    Thanks…

    • shanison on said:

      Hey Josh,

      I would recommend you start reading some books before you grab a software and start trading.

      There are a lot of good books to read. If you don’t know anything about stock investment, then you should google the web for “Stock Trading for Dummies”, there should be a lot of articles for you to begin with.

      If you believe in Fundamental Analysis, then book like “The Intelligent Investor” is a book that must read, if you believe in Technical Analysis, then you can look for books like “Technical Analysis Explained”.

      After you get to know how stock trading works, then you can open a trading account and start your investment journey. The brooking firm usually has some software/websites for your investment.

      Learning while trading. All the best!

  29. Ian Cheong on said:

    Hi Shanison,

    I came across your blog while researching on ShareInvestor’s mobile app. I share your interests in investing and programming! I’ve been investing since 2002 for my personal portfolio and used to be an equity research analyst. Currently, I run a mobile app development agency Floating Cube Studios.

    Our latest finance apps are:
    https://itunes.apple.com/us/app/nutshel-stocks-fundamental/id534490159?mt=8
    https://itunes.apple.com/us/app/nutshel-charts-live-stock/id591012412?mt=8

    I would love to catch up and meet you as we have these common interests.

    Cheers,
    Ian

Leave a Reply

Your email address will not be published. Required fields are marked *

*

HTML tags are not allowed.