archive-sg.com » SG » V » VINOVA.SG

Total: 313

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Git Colors | vinova.sg
    added yellow changed green untracked cyan This entry was posted in Technologies by Mike Bookmark the permalink Leave a Reply Cancel reply Your email address will not be published Name Email Website Comment You may use these HTML tags and attributes a href title abbr title acronym title b blockquote cite cite code del datetime em i q cite strike strong Categories Android 8 Business 27 ecommerce 13 Games 9 iPhone 21 Management 2 Projects 24 Rails 21 RFID NFC 5 Team 11 Technologies 89 SEO 2 Testimonials 3 Trends 15 Uncategorized 13 Archives July 2013 4 June 2013 11 March 2013 3 February 2013 1 October 2012 1 September 2012 5 August 2012 6 June 2012 2 May 2012 1 April 2012 1 March 2012 2 January 2012 4 December 2011 3 November 2011 1 October 2011 6 September 2011 5 August 2011 1 June 2011 3 May 2011 11 April 2011 2 March 2011 2 February 2011 1 January 2011 5 December 2010 3 November 2010 5 October 2010 1 August 2010 9 July 2010 6 June 2010 7 May 2010 3 April 2010 3 March 2010 14 February 2010 7 Meta Log in Entries RSS Comments RSS

    Original URL path: http://blog.vinova.sg/2010/08/23/make-git-colors/ (2014-06-18)
    Open archived version from archive

  • Things you can do with a Ruby array in one line | vinova.sg
    in Ruby Check it out my array find all item item 3 0 inject 0 sum item sum item 5 Sorting We can sort items in an array quite easily Below I will show the standard sort and then a sort based on the negative value of the number Both are so simple my head just exploded my array sort my array sort by item item 1 6 Randomly pick n elements from an array my array sort by rand slice 0 number 7 Sort by 2 criteria and more my array sort x y y field 1 y field 2 x field 1 x field 2 8 group by if you are using ruby 1 8 7 or with active support or facets I think you can use group by products group by prod prod category 9 Bonus As a bonus for all of you lovely readers I will show you how to filter an array of strings based on a pattern Let s say you have huge array of strings and you want to collect any string that looks like this 555 555 5555 Assume that the 5 s could be any digit we are looking for phone numbers First we create a regular expression that expresses this phone number jazz d 3 d 3 d 4 I m not going into regular expressions here but you can google them if you want to know more Now we simply use the find all method discussed earlier combined with Ruby s slick operator This will tell us if there is our string matches the regular expression So without further ado here is how you would filter an array to find strings that contain phone numbers my array find all item item d 3 d 3 d 4 Don t

    Original URL path: http://blog.vinova.sg/2010/08/19/things-you-can-do-with-a-ruby-array-in-one-line/ (2014-06-18)
    Open archived version from archive

  • Ilovehalien.com | vinova.sg
    Testimonials 3 Trends 15 Uncategorized 13 Archives July 2013 4 June 2013 11 March 2013 3 February 2013 1 October 2012 1 September 2012 5 August 2012 6 June 2012 2 May 2012 1 April 2012 1 March 2012 2 January 2012 4 December 2011 3 November 2011 1 October 2011 6 September 2011 5 August 2011 1 June 2011 3 May 2011 11 April 2011 2 March 2011 2

    Original URL path: http://blog.vinova.sg/2010/08/16/ilovehalien-com/ (2014-06-18)
    Open archived version from archive

  • Ruby on Rails 3 and escaped HTML | vinova.sg
    as html safe or use keyword raw some string html safe or raw some string This entry was posted in Technologies by Mike Bookmark the permalink Leave a Reply Cancel reply Your email address will not be published Name Email Website Comment You may use these HTML tags and attributes a href title abbr title acronym title b blockquote cite cite code del datetime em i q cite strike strong Categories Android 8 Business 27 ecommerce 13 Games 9 iPhone 21 Management 2 Projects 24 Rails 21 RFID NFC 5 Team 11 Technologies 89 SEO 2 Testimonials 3 Trends 15 Uncategorized 13 Archives July 2013 4 June 2013 11 March 2013 3 February 2013 1 October 2012 1 September 2012 5 August 2012 6 June 2012 2 May 2012 1 April 2012 1 March 2012 2 January 2012 4 December 2011 3 November 2011 1 October 2011 6 September 2011 5 August 2011 1 June 2011 3 May 2011 11 April 2011 2 March 2011 2 February 2011 1 January 2011 5 December 2010 3 November 2010 5 October 2010 1 August 2010 9 July 2010 6 June 2010 7 May 2010 3 April 2010 3 March 2010 14 February

    Original URL path: http://blog.vinova.sg/2010/08/16/ruby-on-rails-3-and-escaped-html/ (2014-06-18)
    Open archived version from archive

  • August | 2010 | vinova.sg | Page 2
    I m a programmer among other things Like many in this profession I suck at designing UIs though sometimes I believe I don t When you let programming focused people like me build your user interface you will get things like this Joseph Cooney calls this The Dialog A developer needed a screen for something one or two text boxes and not much more so they created the dialog maybe just to try something out and always with the intention of removing it before the product ships They discovered they needed a few more parameters so a couple more controls were added in a fairly haphazard fassion The dialog exposes the feature something cool or quite useful Admittedly the feature is more tailored towards power users but it s still pretty cool The developer thinks of new parameters that would make the feature even more powerful and so adds them to the dialog Maybe a few other developers or power users see the dialog and also like the feature But why doesn t it expose this parameter New controls are added Pretty soon the technical team are so used to seeing the dialog the way it is that they become blind to its strange appearance Ship time approaches and the product goes through more thorough testing and the dialog is discovered but it is too late to be heavily re worked Instead it is given a cursory spruce up Some people are naturally gifted at user interface design They feel physically sick about adding a button that clutters the interface or messes up the user s workflow Make sure you have a gifted UI designer on your team whether or not he or she doubles up as a different role including programmer It will make a world of difference when

    Original URL path: http://blog.vinova.sg/2010/08/page/2/ (2014-06-18)
    Open archived version from archive

  • How to recognise a good programmer | vinova.sg
    a RESTful application with a heavy UI frontend This doesn t mean that they ll all feel comfortable in every social context But it does mean that if the context is comfortable and non threatening enough you ll be able to have as great a conversation with them as you would with the most socially enabled people perhaps better since most good programmers I know like their conversation to revolve around actually useful topics rather than just inane banter Don t ever hire a dumb person thinking they re a good developer They re not If you can t have a great conversation with them in a relaxed social context they re very likely not a good programmer On the other hand anyone who s clearly very smart at the very least has a strong potential to be a good or great programmer 4 Hidden experience This is correlated with the Passion point but it is such a strong indicator that I d like to emphasise it with its own point I started programming when I was about 9 on a Commodore 64 I then migrated onto the PC did some Pascal When I was 14 I wrote a raycasting engine in C and Assembler spent a large amount of time playing with cool graphic effects that you could get your computer to do by messing directly with the video card This was what I call my coccoon stage When I entered that stage I was a mediocre programmer and lacked the confidence to do anything really complicated When I finished it I had gained that confidence I knew that I could code pretty much anything so long as I put my mind to it Has that ever appeared on my CV Nope I strongly believe that most good programmers will have a hidden iceberg or two like this that doesn t appear on their CV or profile Something they think isn t really relevant because it s not proper experience but which actually represents an awesome accomplishment A good question to ask a potential good programmer in an interview would be can you tell me about a personal project even or especially one that s completely irrelevant that you did in your spare time and that s not on your CV If they can t unless their CV is 20 pages long they re probably not a good programmer Even a programmer with an exhaustive CV will have some significant projects that are missing from there 5 Variety of technologies This one s pretty simple Because of the love of learning and toying with new technologies that comes with the package of being a good programmer it s inevitable that any good programmer over the age of 22 will be fluent in a dozen different technologies They can t help it Learning a new technology is one of the most fun things a programmer with any passion can do So they ll do it all the time and accumulate

    Original URL path: http://blog.vinova.sg/2010/07/25/how-to-recognise-a-good-programmer/ (2014-06-18)
    Open archived version from archive

  • update_attribute vs. update_attributes | vinova.sg
    will be returned So if you don t want to have the object validated you should use update attribute But wait there are some more things to note update attribute not only bypass the validation but also bypass the before callbacks Let check the source code File vendor rails activerecord lib active record base rb line 2614 2614 def update attribute name value 2615 send name to s value 2616 save false 2617 end File vendor rails activerecord lib active record base rb line 2621 2621 def update attributes attributes 2622 self attributes attributes 2623 save 2624 end the difference between two is update attribute use save false where as update attributes uses save or you can say save true It s rather long description but it is important to see that save perform validation true If perform validation is false it bypasses all the before callbacks associated with save It doesn t actually save the record You can also save a record without triggering validations by using Model save false This entry was posted in Technologies by Mike Bookmark the permalink Leave a Reply Cancel reply Your email address will not be published Name Email Website Comment You may use these HTML tags and attributes a href title abbr title acronym title b blockquote cite cite code del datetime em i q cite strike strong Categories Android 8 Business 27 ecommerce 13 Games 9 iPhone 21 Management 2 Projects 24 Rails 21 RFID NFC 5 Team 11 Technologies 89 SEO 2 Testimonials 3 Trends 15 Uncategorized 13 Archives July 2013 4 June 2013 11 March 2013 3 February 2013 1 October 2012 1 September 2012 5 August 2012 6 June 2012 2 May 2012 1 April 2012 1 March 2012 2 January 2012 4 December 2011 3 November 2011

    Original URL path: http://blog.vinova.sg/2010/07/18/update_attribute-vs-update_attributes/ (2014-06-18)
    Open archived version from archive

  • Ruby underscore and classify methods | vinova.sg
    or things like Kernel const get table model to s classify find all Kernel const get gets an string and retrieves the class source http yarorb wordpress com 2008 05 06 underscore and classify This entry was posted in Technologies by Mike Bookmark the permalink Leave a Reply Cancel reply Your email address will not be published Name Email Website Comment You may use these HTML tags and attributes a href title abbr title acronym title b blockquote cite cite code del datetime em i q cite strike strong Categories Android 8 Business 27 ecommerce 13 Games 9 iPhone 21 Management 2 Projects 24 Rails 21 RFID NFC 5 Team 11 Technologies 89 SEO 2 Testimonials 3 Trends 15 Uncategorized 13 Archives July 2013 4 June 2013 11 March 2013 3 February 2013 1 October 2012 1 September 2012 5 August 2012 6 June 2012 2 May 2012 1 April 2012 1 March 2012 2 January 2012 4 December 2011 3 November 2011 1 October 2011 6 September 2011 5 August 2011 1 June 2011 3 May 2011 11 April 2011 2 March 2011 2 February 2011 1 January 2011 5 December 2010 3 November 2010 5 October 2010 1

    Original URL path: http://blog.vinova.sg/2010/07/16/underscore_and_classify/ (2014-06-18)
    Open archived version from archive