archive-cr.com » CR » I » INFORMATECH.CR

Total: 292

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

Or switch to "Titles and links view".
  • JavaScript For Regular Guys (Part 1) | Informatech CR Blog
    had to be on JavaScript by its first release So guys at ECMA had a dialogue at some point while writing the first language specification back in year 97 that goes a little something like this Dude 1 Dude JavaScript is cool so far and everything but everyone is using something called Object oriented something something Dude 2 Damn kids these days Let s just allow functions to contain variables and other functions Voilà We got classes Dude 1 That sounds like is going to confuse lots of people D Dude 2 Meh Not really Dude 1 But Dude 2 NOT REALLY I SAID Okay maybe it was not like that but since then we have like four or five different ways to define something like classes The one I like the most is as follows script type text javascript language text javascript function CarFactory var carsProduced 0 Private variable this name Car Factory Public variable this getCarsProduced new function Public getter return carsProduced this createCar function Public function showCarProductionMessage carsProduced function showCarProductionMessage Private function alert A car was produced var carFactory new CarFactory alert Factory name carFactory name carFactory createCar alert Cars produced so far carFactory getCarsProduced script How pretty does that looks So a function can also be a class definition with private members and all just like any object oriented language This is known as prototyping Hopefully the example is clear enough I have a couple of things to clarify though JavaScript while trying to be object oriented is still a scripted language never forget that So if you put the class definition after you use it you ll get a nice error complaining about the use of an undefined type since the interpreter has not yet seen the class prototype definition as it is after the code trying to use it Also look at the use of the keyword this Things are just starting to get more and more interesting for sure The this Keyword If you have worked with classes before surely you ll recognize the this keyword This magical keyword often refers to the class where the current method using it is defined Well in JavaScript once again screwing up with our brains the this keyword refers to the function owner and can refer to several things depending on the scope it is used Now you see how tightly coupled JavaScript is with the DOM tree The default owner for all scripts is the global window DOM element Now you can see the last two usages in the table involve the use of the call and apply functions These functions are useful if we would like to change the value this refers to That would be your homework Check the use of call and apply Conclusion So we have reviewed how JavaScript was conceived and how it is structured This is essential in order to understand more complex examples like DOM element events and asynchronous server calls and of course server side JavaScript which

    Original URL path: http://blog.informatech.cr/2013/03/26/javascript-for-regular-guys-part-1/?replytocom=630 (2015-08-19)
    Open archived version from archive


  • JavaScript For Regular Guys (Part 1) | Informatech CR Blog
    oriented Programming had to be on JavaScript by its first release So guys at ECMA had a dialogue at some point while writing the first language specification back in year 97 that goes a little something like this Dude 1 Dude JavaScript is cool so far and everything but everyone is using something called Object oriented something something Dude 2 Damn kids these days Let s just allow functions to contain variables and other functions Voilà We got classes Dude 1 That sounds like is going to confuse lots of people D Dude 2 Meh Not really Dude 1 But Dude 2 NOT REALLY I SAID Okay maybe it was not like that but since then we have like four or five different ways to define something like classes The one I like the most is as follows script type text javascript language text javascript function CarFactory var carsProduced 0 Private variable this name Car Factory Public variable this getCarsProduced new function Public getter return carsProduced this createCar function Public function showCarProductionMessage carsProduced function showCarProductionMessage Private function alert A car was produced var carFactory new CarFactory alert Factory name carFactory name carFactory createCar alert Cars produced so far carFactory getCarsProduced script How pretty does that looks So a function can also be a class definition with private members and all just like any object oriented language This is known as prototyping Hopefully the example is clear enough I have a couple of things to clarify though JavaScript while trying to be object oriented is still a scripted language never forget that So if you put the class definition after you use it you ll get a nice error complaining about the use of an undefined type since the interpreter has not yet seen the class prototype definition as it is after the code trying to use it Also look at the use of the keyword this Things are just starting to get more and more interesting for sure The this Keyword If you have worked with classes before surely you ll recognize the this keyword This magical keyword often refers to the class where the current method using it is defined Well in JavaScript once again screwing up with our brains the this keyword refers to the function owner and can refer to several things depending on the scope it is used Now you see how tightly coupled JavaScript is with the DOM tree The default owner for all scripts is the global window DOM element Now you can see the last two usages in the table involve the use of the call and apply functions These functions are useful if we would like to change the value this refers to That would be your homework Check the use of call and apply Conclusion So we have reviewed how JavaScript was conceived and how it is structured This is essential in order to understand more complex examples like DOM element events and asynchronous server calls and of course server side

    Original URL path: http://blog.informatech.cr/2013/03/26/javascript-for-regular-guys-part-1/?replytocom=632 (2015-08-19)
    Open archived version from archive

  • 6 Days with Windows Phone | Informatech CR Blog
    installed from the Marketplace Camera is good but there is no official Dropbox support I routed around this by enabling SkyDrive auto uploads so no biggie When setting up the Google account we hit our first snag Because Google discontinued ActiveSync the only straightforward choice is IMAP setup just for email no calendar or contacts Fortunately you can add Gmail as an Exchange server manually through the end of July This worked OK but the contact import was kinda crappy ie contacts with multiple numbers just had the first imported Once everything was working it took me about a day to get used to the concept of Live Tiles That is the driver of the Windows Phone UI where you ll launch apps get notifications and see periodic content changes of relevant content The idea is novel and elegantly implemented and after months on Android it made me feel that special care had been taken in the consistency and polish of the interface Both were very much welcome In full day to day usage the UI shines though where I felt the most joy was in the touch keyboard It is absolutely a pleasure to use no gestures or swipes straight taps and by far it s the best of any smartphone that I ve used The camera was another pleasant surprise The capture and photo browser were excellent behold The multitasking also requires a bit of getting used to as a long press of the back key will allow you to get an open app list however it will not let you kill any You have to jump in and continually press back until you exit To finish off the stock functionality the People hub was generally useful even though the Google contacts were indeed not wholly sync d It gave quick access to recent contacts and integrated well with social networks Even though Facebook is integrated in the way to properly see your Newsfeed is through the standalone app Which sadly is not developed by FB and is quite honestly sub par to similar offerings on iOS and Android WhatsApp was a similar story the implementation is not up to par with the other platforms and more annoyingly it activated the music controls and gobbled battery As a workaround you have to download a separate app that kills the music controls and run it periodically The app also seemed to implode under heavily used group chats Even with the mediocrity of third party apps I can honestly say the OS is pleasant to use and the tiles are colorful and attractive So rounding out Pros Superb interface extremely polished Quite simply the best touch keyboard I ve ever used on any smartphone Integration between social networks and contacts is almost seamless Excellent camera Lumia hardware is very capable and attractive Integration with Microsoft services is predictably good Cons Synchronization with Google services is poor especially now that ActiveSync was retired App selection and most importantly quality is low

    Original URL path: http://blog.informatech.cr/2013/06/13/6-days-with-windows-phone/?shared=email&msg=fail (2015-08-19)
    Open archived version from archive

  • Linux on Palm -really? | Informatech CR Blog
    other things hardware specific setup then the devices mount Kernel space ends and User space takes over to initialize any juicy stuff you want to put in there like GUI systems services etc Learn where to get the code you need Believe or not there are specific Embedded Linux Distributions for a lot of popular hardware architectures besides the x86 family So the job is pretty much done in terms of drivers Memory Management and Core Cache logic etc Specifically there s one distribution targeted at the ARM processor used by our beloved Palms So the basic chipset is already coded for Linux when it comes to hardware The tough part would be to plug in specific drivers for WiFi and other stuff that are not contemplated by the core distribution archives Setup a Tool Chain A Tool chain is the whole set of tools libraries compilers linkers assemblers debuggers profilers and even development environments that enables you to start with your Linux code and eventually get your binary images that run in the target device the Palm in our case Keep in mind that you will need to compile link package binary code that doesn t run in the machine that you compile it unless you dare to install the Tool Chain in the Palm itself in which case please write a Blog about it I recommend using Linux as the host machine where you will setup your Tool Chain being my personal taste Ubuntu though Fedora works too how cool is that Linux to build Linux Unless you are a real Linux evangelist try using the GUI Desktop versions of Linux and avoid the command line as much as you can You will have to face it eventually so why make yourself miserable form the beginning Also I have good news for you Eclipse has already developed a nice way to work with Tool chains and it should be very easy for almost everyone to setup one using Eclipse Dig in for drivers You eventually will want to use your Palm s Bluetooth audio etc Most of them require drivers that are available already over the internet except WiFi darn So search for those and hook them up to your project if needed They will be regular Lunix MODs so it is not hard to plug them in if they are already compiled for the ARM architecture I know I know this is the toughest part so you migh just as well skip it After all showing off a command line driven Linux in your Palm is also going to be cool But at least get the driver for a virtual keyboard unless your Palm has a physical one already you will not get pass by the login screen no it will not be cool to stop here I can code a fake login screen in PalmOS so no cheating Compile Link and package the Kernel This step is as simple as that You will get one nice

    Original URL path: http://blog.informatech.cr/2010/10/24/95/?replytocom=6 (2015-08-19)
    Open archived version from archive

  • Linux on Palm -really? | Informatech CR Blog
    specific setup then the devices mount Kernel space ends and User space takes over to initialize any juicy stuff you want to put in there like GUI systems services etc Learn where to get the code you need Believe or not there are specific Embedded Linux Distributions for a lot of popular hardware architectures besides the x86 family So the job is pretty much done in terms of drivers Memory Management and Core Cache logic etc Specifically there s one distribution targeted at the ARM processor used by our beloved Palms So the basic chipset is already coded for Linux when it comes to hardware The tough part would be to plug in specific drivers for WiFi and other stuff that are not contemplated by the core distribution archives Setup a Tool Chain A Tool chain is the whole set of tools libraries compilers linkers assemblers debuggers profilers and even development environments that enables you to start with your Linux code and eventually get your binary images that run in the target device the Palm in our case Keep in mind that you will need to compile link package binary code that doesn t run in the machine that you compile it unless you dare to install the Tool Chain in the Palm itself in which case please write a Blog about it I recommend using Linux as the host machine where you will setup your Tool Chain being my personal taste Ubuntu though Fedora works too how cool is that Linux to build Linux Unless you are a real Linux evangelist try using the GUI Desktop versions of Linux and avoid the command line as much as you can You will have to face it eventually so why make yourself miserable form the beginning Also I have good news for you Eclipse has already developed a nice way to work with Tool chains and it should be very easy for almost everyone to setup one using Eclipse Dig in for drivers You eventually will want to use your Palm s Bluetooth audio etc Most of them require drivers that are available already over the internet except WiFi darn So search for those and hook them up to your project if needed They will be regular Lunix MODs so it is not hard to plug them in if they are already compiled for the ARM architecture I know I know this is the toughest part so you migh just as well skip it After all showing off a command line driven Linux in your Palm is also going to be cool But at least get the driver for a virtual keyboard unless your Palm has a physical one already you will not get pass by the login screen no it will not be cool to stop here I can code a fake login screen in PalmOS so no cheating Compile Link and package the Kernel This step is as simple as that You will get one nice image file The

    Original URL path: http://blog.informatech.cr/2010/10/24/95/?replytocom=7 (2015-08-19)
    Open archived version from archive

  • Linux on Palm -really? | Informatech CR Blog
    amongst other things hardware specific setup then the devices mount Kernel space ends and User space takes over to initialize any juicy stuff you want to put in there like GUI systems services etc Learn where to get the code you need Believe or not there are specific Embedded Linux Distributions for a lot of popular hardware architectures besides the x86 family So the job is pretty much done in terms of drivers Memory Management and Core Cache logic etc Specifically there s one distribution targeted at the ARM processor used by our beloved Palms So the basic chipset is already coded for Linux when it comes to hardware The tough part would be to plug in specific drivers for WiFi and other stuff that are not contemplated by the core distribution archives Setup a Tool Chain A Tool chain is the whole set of tools libraries compilers linkers assemblers debuggers profilers and even development environments that enables you to start with your Linux code and eventually get your binary images that run in the target device the Palm in our case Keep in mind that you will need to compile link package binary code that doesn t run in the machine that you compile it unless you dare to install the Tool Chain in the Palm itself in which case please write a Blog about it I recommend using Linux as the host machine where you will setup your Tool Chain being my personal taste Ubuntu though Fedora works too how cool is that Linux to build Linux Unless you are a real Linux evangelist try using the GUI Desktop versions of Linux and avoid the command line as much as you can You will have to face it eventually so why make yourself miserable form the beginning Also I have good news for you Eclipse has already developed a nice way to work with Tool chains and it should be very easy for almost everyone to setup one using Eclipse Dig in for drivers You eventually will want to use your Palm s Bluetooth audio etc Most of them require drivers that are available already over the internet except WiFi darn So search for those and hook them up to your project if needed They will be regular Lunix MODs so it is not hard to plug them in if they are already compiled for the ARM architecture I know I know this is the toughest part so you migh just as well skip it After all showing off a command line driven Linux in your Palm is also going to be cool But at least get the driver for a virtual keyboard unless your Palm has a physical one already you will not get pass by the login screen no it will not be cool to stop here I can code a fake login screen in PalmOS so no cheating Compile Link and package the Kernel This step is as simple as that You will get one

    Original URL path: http://blog.informatech.cr/2010/10/24/95/?shared=email&msg=fail (2015-08-19)
    Open archived version from archive

  • How Google pulled off Instant Preview | Informatech CR Blog
    jsonp Leave a comment Post navigation 2010 The year the Future arrived New Additions to the Family Leave a Reply Cancel reply Enter your comment here Please log in using one of these methods to post your comment Email required Address never made public Name required Website You are commenting using your WordPress com account Log Out Change You are commenting using your Twitter account Log Out Change You are

    Original URL path: http://blog.informatech.cr/2011/01/06/google-instant-preview/?shared=email&msg=fail (2015-08-19)
    Open archived version from archive

  • Ruby on Windows, Now Easier | Informatech CR Blog
    ease of setup and use that all the rest of us have long enjoyed http www engineyard com blog 2011 ruby on windows the last frontier 9 933333 84 083333 Share this Email Facebook Twitter Like this Like Loading Related January 4 2011 by pjpalm801 Categories Programming Web Tags ruby windows 2 Comments Post navigation HOW TO Win the War for the Most Talented Employees 2010 The year the Future arrived 2 thoughts on Ruby on Windows Now Easier Oscar Marin says January 4 2011 at 9 52 pm I think the link is broken or not working from my iPad But what about IronRuby have you tried that And the beauty of RoR is its testability what do you guys use Rspec Reply michaelholst says January 5 2011 at 11 36 am Link fixed We re not currently using RSpec as most of our code is for basic UI events Reply Leave a Reply to Oscar Marin Cancel reply Enter your comment here Please log in using one of these methods to post your comment Email required Address never made public Name required Website You are commenting using your WordPress com account Log Out Change You are commenting using

    Original URL path: http://blog.informatech.cr/2011/01/04/ruby-on-windows-now-easier/?replytocom=40 (2015-08-19)
    Open archived version from archive