Tag Archives: tutorial

JavaScript – start with TypeScript .

About TypeScript is an open-source language and compiler that runs both in the browser  -through SystemJS  and on NodeJS.
Is developed by Microsoft, like an open-source language and compiler that runs both in the browser through SystemJS and on NodeJS.
Now TypeScript compiles to clean, simple JavaScript code.
You can runs on any browser, in Node.js, or in any JavaScript engine that supports ECMAScript 3 (or newer).
There are two main ways to get the TypeScript tools:

  • using npm (the Node.js package manager)
  • or installing TypeScript’s Visual Studio plugins

The easiest way to get started with TypeScript is through the TypeScript playground found on the TypeScript website play.
The TypeScript version 2.4 has already introduced dynamic import expressions, safer callback parameter checking, weak types, and string enums.
About dynamic import expressions then allows users to asynchronously request a module at any arbitrary point in your program.
The string enums allows enum members to contain string initializers.
Allow to return types as inference targets can now make inferences for the return type of a call.
To get started with the latest stable version of TypeScript, you can grab it through NuGet with:

You can use the following command with npm:

Also you can download it from official website.
To compile it use this:

Now, let’s install it and try it.
First use git command to put into your computer:

Make a file named ts_es001.ts and use this command:

The result will be : ts_es001.js file.
Create your ts_es001.html file with this content:

This is most simple example of using typescript tool with node.js .

Posted in All, javascript, node.js, Programming. Tagged with , , , , , .

Test last Android OS with VirtualBox.

This tutorial lets you learn how to test applications that require the latest Android operating system.
It’s a compromise solution that requires very good hardware or hardware virtualization to run applications easily.
Applications can then be installed through shared cross-emulator solutions and share sharing application and run on the emulator.
The advantage is that you can have applications that require new versions of Android OS and not only.
TO test this I set 3D acceleration and hardware acceleration with 4 core and 2048 RAM and working well, but a bit slower.
This is a screenshot of instalation with Android-x86 7.1 and VirtualBox version 5.1.26 r117224 (Qt5.6.2):

Posted in All, Windows 10. Tagged with , , , .

The firefox tool send file to cloud.

This tool from Firefox team let you to send you upload and encrypt large files (up to 1GB) to share online.
This creates a link to pass along to whoever you want.
Just type : send.firefox.com into browser address bar and you will get a upload interface>
Each link created by Send will expire after 1 download or 24 hours, and all sent files will be automatically deleted from the Send server.
Also the Firefox Test Pilot send does not require an add-on, and can be used in any modern browser.

Posted in All, Linux, web, Windows 10. Tagged with , , , , , .

JavaScript – browser user agent.

This is a simple tutorial with java script to see the browser user agent.
About user agent:
– user agents are unique to every visitor on the web;
– everyone that is browsing the web right now has a user agent;
– browsers are a example of a user agent;
– other tools can act as agents;
– user agent has identified itself to the web server with a process called content negotiation;
– it’s possible to send a fake user agent, a process known as “spoofing.”
Now about how to see the user agent with browser.
Let’s start with create your folder and add a index.html file.
Add also into this folder another folder named js.
Into js folder add a file named index.js file.
Into index.html file add this source code:

Into index.js file add this source code:

When you open the index.html file with your browser the you can see your browser user agent.
For example the result of this script into my browser is:

Posted in All, HTML 5, javascript. Tagged with , , , , , .

JavaScript – deck – online slides.

Here’s another tutorial on javascript that I think should be remembered.
This javascript tool named deck.js help you to:

  • Create a deck with slides.
  • Slide has content into simple HTML.
  • You can choose themes, like: slide styles and one for deck transitions.
  • Also, you can include extensions to add extra functionality to your deck, or leave it stripped down.

This javascript tool can be found here and come with this structure:

  • deck.core
  • deck.goto
  • deck.menu
  • deck.navigation
  • deck.scale
  • deck.status

How this working ?
Let’s see a simple example.
First download the deck.js from here.
Open the folder and you will find a html file named boilerplate.html.
This file show a basic example of slideshow.
You just need to change this part of source code with your content:

A good presentation of the functionality of this tool is here.
A list of themes, extensions and tools available for deck.js can be found here.

Posted in All, HTML 5, javascript. Tagged with , , , , , .