Posts

Showing posts with the label JavaScript

Compiling a Typescript file using the command-line

Image
Please r ead the post about downloading the latest Typescript here. Once you have downloaded Typescript file, you can compile it using the command tsc from the C:\ prompt. Here is a Typescript file , Person.ts: -------------------------------- interface Person {     age: number,     name: string,     say(): string } let mike = {     age: 25,     name:"Mike",     say: function() {         return "My name is " + this.name +                " and I'm " + this.age + " years old!"     } } function sayIt(person: Person) {     return person.say(); } -------------------- Save it to a location of your choice as shown. Typescriptsample_0 Now compile it using the command tsc as shown here: ---------- C:\Users\Owner> tsc Person.ts C:\U...

Great resource if you want datacentric apps

Image
This is a very useful site that you should acquaint yourself with. You can create apps that work with SQL Server with all of the following: C# Java NodeJS PHP Python on Windows macOS RHEL UBUNTU SLES (Suse...) You need to start at this link: https://www.microsoft.com/en-us/sql-server/developer-get-started/

Where I can find the latest TypeScript?

Image
TypeScript 2.5 (the latest) is now available for download here: http://www.typescriptlang.org/#download-links TypeScript2.5_0 If you have installed npm , installing TypeScript is a breeze. > npm install -g typescript Read here for installing npm: http://hodentekhelp.blogspot.com/2017/08/what-is-npm-and-how-is-it-useful.html

Jumpstart Javascript to program IoT controllers using Johnny-Five

Image
HTML/JavaScript option to work with IoT will have a large following. Johnny-Five a JavaScript Robotics platform (by the Bocoup group released in 2012) will be very popular with IoT developers. If you use the Johnny-Five Inventor's kit (J5IK, $125.95) you can program a lot and learn a lot. The J5IK empowers users to build internet-connected, JavaScript-powered hardware projects by marrying the ubiquitous language with the Tessel 2 single-board computer and several components to get users started immediately. Tessel 2 Features (from Tessel site): This kit (from Johnny-Five site): Provides a powerful foundation for IoT projects Includes everything needed to complete 14 circuits Does not require previous programming experience or soldering Connects users with a thriving community and exemplary documentation. Supports beginner and more advanced projects  Although the applications are limitless, the kit allows users to control and read external sensors and displays,...

Nice editor to have on your phone

Image
If you want to run any of HTML,CSS and JavaScript this program is the one you should have. jsFiddle is a nice editor for running your web page and checking out each of: HTML fragment; CSS rule or the Script. More details with examples are here: http://hodentekhelp.blogspot.com/2016/09/what-is-jsfiddle.html You can access this site jsFiddle.net to bring up the online editor on your phone as shown. This one is on a Micrsoft Lumia 950. Here is the ‏editor when accessed with my phone. The next one is the same as above but enlarged with inkscape. I just entered some simple HTML fragment in the top left pane marked as HTML. Then I hit the Run button at the top and I immediately I see the response in the fourth quadrant marked as Result . The first quadrant for CSS Rules; the second for HTML and the third for JavaScript. You can enter the various parts and hit the run button to see the result in the last quadrant.

Multiboard programming using Johnny-Five robotics and IOT Platform

Image
Arduino boards can be programmed using Arduino software (or in Visual Studio Community using Arduino Extensions) and Intel IOT boards can be programmed using Intel XDK IOT . Using JavaScript to program controllers would be very useful as most browsers are HTML5 compliant. The Johnny-Five Robotics and IOT program is an interesting option. Johnny-Five is the JavaScript Robotics and; IOT platform released by the Bocoup group. Johnny-Five is maintained by a growing number of talented developers. What is Bocoup? Bocoup  is a group that championed the cause of Open tools and WorkFlow. They really seems to have people with very varied and diverse talents to tackle web, data, and visualization. How does Johnny-Five handle the Hello World (or Blink for that matter)? It looks like 1-2-3 really. 1. Install Node.js(Preffeer 4.2.1 LTS) 2. Setup your board 3. Run: npm install johnny-five What else is needed? You also need to run the Firmata protocol for the c...

Building WebRTC apps with Intel XDK

Image
Intel XDK has the right tools to build WebRTC apps. There are widgets that gets you started shown here. You can use Intel XDK together with Intel Collaboration Suite for Web RTC to build the real time communication apps. With Intel Collaboration Suite for Web RTC (Intel CS for WebRTC ) it is possible to build apps for real time communication over the web. You need to use the Intel CS for WebRTC SDK built on top of W3C standard for WebRTC. You can create apps for broadcast, peer-to-peer and apps for conference. To cater to the major OSs and HTML, the SDK is available in four versions one each for: Android JavaScript iOS Windows There is a server that you need to get used to: Intel CS for WebRTC Conference Server that provides the Video Conference Service that streams the service to many end points with the following quoted features: High performance, VP8 and H.264 real-time transcoding with Intel® Iris™ Pro and Intel HD Graphics Scalable multipoin...

Bestow native capability to Web Apps with Cardova

Image
Web apps are apps built using HTML5, CSS and JavaScript. This is no different than building a web site with HTML and JavaScript. Your web app is just the web view that will render the HTML/CSS/JavaScript files. Unfortunately this by itself is not enough except for some simple applications. However if you need access to native hardware like camera, accelerometer etc then Cardova plugins can provide access to those native capabilities. Cardova plugins consist of a JavaScript file and a code files for a given platform. Cardova maps the native code to JavaScript specific for the platform (iOS, Android, Windows) to care of implementing the native devices. Here is a list of many Cardova Plugins.

Are you building Web and Mobile apps? Check out Meteor

Image
It appears Meteor can provide a radically simpler way to build real time mobile and web app using only JavaScript from one code base. I have not used Meteor and the content for the post came from here . This post describes some of the highlights and a screen shot from a app built using Meteor. Here are some Highlights: Universal JavaScript Same code from client to cloud; from packages to database apis; from browsers to mobile devices via Meteor's unified isobuild system Mobile and Web apps As Installable iOS and as Android app As a web app that loads on demand Reactive Rendering While being thin,  gives a thick client feel and look using Meteor's Blaze Framework with AngularJS and ReactJS Meteor's Cloud Platform Galaxy Deployment, scaling and monitoring for connected clients Provides actionable metrics to stateful connected client apps One command to update all connected browsers and apps (Hot Deploy) Coordinated version updates How is it differ...

JavaScript apps that you can build with Visual Studio Community Edition

HTML5/CSS3/JavaScript (for now and may be TypeScript) has emerged as the viable trio for developing Windows as well as Windows Phone APPS. Here are the Apps that you can build with Visual studio 2013 Community Edition using the trio: The Store Apps that you can develop using the trio are: Universal Apps Windows Apps Windows Phone Apps The following are the templates available for each of the above: Universal Apps: Blank App Hub/Piovt App Navigation App Windows App: Blank App Grid App Aplit App Hub App Navigation App Windows Phone App: Blank App Pivot App Navigation App Download Visual Studio 2013 Community Edition (free) here: Download Visual Studio 2013 Community Edition here: https://www.visualstudio.com/news/vs2013-community-vs With the community edition you can use the many extensions available as well as cross-platform apps (Xamarim is here in this edition) Here are the installed products when you install the Visual Studio Community edition: Microsoft Visual...