Monday, December 28, 2015

Everybody in this country should learn to program

Sunday, November 15, 2015



Framing & Composition
Focus , Depth & Density
Light , Color & Reflection
Mood & Movement & Effects

Register Now! 

Call 0777 573857 for help.
Do Your Photography Projectand win Adobe Scholarship !

This program is supported by Adobe Youth Voices

Lead Educator :

Niranjan Meegammana
Adobe Generation Professional
Adobe Lead Educator
International Award Winner 

Friday, October 9, 2015

Visual programing Concepts

 Shapes, Complex Shapes, Colors, Text, Transforms, Environment, Mouse, Keyboard, Math, Trig, Date/Time

rect(x, y, w, h) ellipse(x, y, w, h)triangle(x1, y1, x2, y2, x3, y3)line(x1, y1, x2, y2)point(x, y)arc(x, y, w, h, start, stop)bezier(x1, y1, cx1, cy1, cx2, cy2, x2, y2)quad(x1, y1, x2, y2, x3, y3, x4, y4)image(image, x, y, width*, height*)Modes: ellipseMode, rectMode, imageMode, strokeCap, bezierPoint, bezierTangent, curve, curvePoint, curveTangent, curveTightness

Complex Shapes
beginShape()endShape()vertex()curveVertex()bezierVertex()strokeJoin, curveTightness

background(r, g, b) : Set the background colorfill(r, g, b) : Set the fill color for shapesnoFill()  : Turn off fill for shapesstroke(r, g, b) : Set the outline color for shapesstrokeWeight(thickness)  : Change the thickness of lines and outlinesnoStroke()  : Turn off outlines for shapescolor(r, g, b) : Store a color in a variableblendColor(c1, c2, MODE) : Blend two colors togetherlerpColor(c1, c2, amount) : Find color between 2 colorscolorMode, red, green, blue, alpha, hue, saturation, brightness

text(text, x, y) Draw some texttextFont(font, size*) Changes the font of texttextSize(size) Change the size of textSee also: textWidth, textAscent, textDescent, textLeading, textAlignTransformsrotate(angle) Rotate shapes by an anglescale(amount) Scale shapes in both dimensionstranslate(x, y) Translate shapes by an offsetpushMatrix/popMatrix, resetMatrix, printMatrixEnvironmentwidth / height The size of the canvasdraw = function() { }; Called repeatedly during program execution.playSound(sound) Plays one of the allowed sounds.Program.assertEqual, Program.restart, frameRate(fps) frameCount, loop / noLoop

mouseX, mouseY Current coordinates of the mousepmouseX, pmouseY Past coordinates of the mousemouseButton Which button is pressedmouseIsPressed Whether mouse is being pressedmouseClicked = function() { }; Called when mouse is clickedmousePressed = function() { }; Called when mouse is pressedmouseReleased = function() { }; Called when mouse is releasedmouseMoved = function() { }; Called when mouse is movedmouseDragged = function() { }; Called when mouse is draggedmouseOver = function() { }; Called when mouse moves over canvasmouseOut = function() { }; Called when mouse moves out of canvas

key Number representing which key is pressedkeyCode Represents when a special key is pressedkeyIsPressed True if a key is being pressed, false otherwise 

keyPressed = function() { }; Called when a key is pressedkeyReleased = function() { }; Called when a key is releasedkeyTyped = function() { }; Called when a key is typed

random(low, high) Generate a random numberdist(x1, y1, x2, y2) Calculates the distance between two pointsconstrain(value, min, max) Constrain value between min and maxmin(num1, num2) Return the minimum of two numbersmax(num1, num2) Return the maximum of two numbersabs(num) Take the absolute value of a numberlog(num) Take the logarithm of a numberpow(num, exponent) Raise a number to an exponentsq(num) Square a numbersqrt(num) Take the square root of a numberround(num) Return nearest integerceil(num) Return nearest integer of greater/equal valuefloor(num) Return nearest integer of lesser/equal valuePVector(x, y) An object that describes a 2-dimensional vectorSee also: mag, exp, map, norm, lerp, noise, noiseDetail, Random.nextGaussian

Trigonometrycos(degrees) Take the cosine of an anglesin(degrees) Take the sine of an angletan(degrees) Take the tangent of an angleSee also: acos, asin, atan, atan2, radians, degrees, angleMode

Date & Timeday()/ month()/ year() Current datehour()/ minute()/ second() Current timemillis() Milliseconds elapsed since program start

debug(arg1, arg2, ...) Print to your browser's developer consoleprintln(data) Print to the canvas consoleprint(data) Print to the canvas console


var drawWinston = function() { }; Define a new function if (x < 20) { ... } Only run code if a certain condition is true 
while (x < 250) { ... } Only run code while a certain condition is true
for (var i = 0; i < 8; i++) { } Repeat code a fixed number of times
var array = [0, 1, 2, 3, 4]; 

Make an array of 5 numbers

Friday, August 21, 2015


Each user in a database can be in one or more roles
can perform all configuration and maintenance activities on the database, and can also drop the database.

db_securityadmin can modify role membership and manage permissions. Adding principals to this role could enable unintended privilege escalation.

can add or remove access to the database for Windows logins, Windows groups, and SQL Server logins.

can back up the database.

can run any Data Definition Language (DDL) command in a database.

can add, delete, or change data in all user tables.

can read all data from all user tables.

cannot add, modify, or delete any data in the user tables within a database.

cannot read any data in the user tables within a database.

Wednesday, August 12, 2015

AppSMART Celebrates World Youth Day in Colombo

ICT, Media and Tech Youth from 38 communities, celebrated World Youth Day On August 8 at Dialog HQ auditorium. AppSMART the 1000 Youth Mobile Technology Training program initiated by Shilpa Sayura Foundation, Dialog Idea Mart, YES Film School and Sri Lanka ICT Student Society (SLIS)

ICT & Tech Youth from celebrated World Youth Day On August 8 at Dialog HQ auditorium 1000 Youth Mobile Technology...

Posted by YES Media on Sunday, August 9, 2015

Monday, August 10, 2015

New Treands in ICT : Wearable Technology

Smart Phones will play a major part in next generation Mobile Teachnology. The  wearable technology, such as smart watches, and other accessories, is the next big thing. Currently Wearable technology  is $4- to $5 billion market and could grow $30- to $50 billion. Wearable technology mainly be used on Medical, Sports, Engineering and Education applications. Wearable technology uses computer and advanced electronic technologies uses software, sensors and connectivity to enable objects to exchange data with a manufacturer, operator and/or other connected devices, without requiring human intervention. Wearable technology is related to ubiquitous computing. As an example a patient condition can be monitored by doctor remotely.

Thursday, July 30, 2015

AppSMART 2015 @ Colombo August 8th - Apply Now!

අගෝස්තු 08 ලෝක යොවුන් දින
Be the Force - Drive the Future
Invitation to ICT - Tech - Media & Design Students

Smart Mobile Technology For Youth

On 8th August, World Youth Day

@ Dialog Axiata Head office Auditorium, Colombo 

More Information  |  Apply Here


Saturday, July 25, 2015

Apply for AppSMART 2015

AppSMART 2015 @ Colombo

Smart Mobile Technology For Youth

On 8th August, World Youth Day

@ Dialog Axiata Head office Auditorium, Colombo

More Information  |  Apply Here

Learning on the Cloud

Thursday, July 23, 2015

How to redirect your website to its mobile version

Javascript window.location Method

Mobile phones typically have a small screen width. A simple trick is to redirect if the browser width less than or equal to 800 pixels. However when the mobile is horizontal the with can be increased 960 pixels or more. The tabs use larger with will still use the non mobile site.

Place this in the head section of your main website code.

<script type="text/javascript">
  if (screen.width <= 800) {
    window.location = "";
To get the best results, test it with various smart phones.

.htaccess URL rewrite redirects

Based on the MIME types browser support,  .htaccess can redirect visitors

RewriteEngine On
# Check for mime types commonly accepted by mobile devices
RewriteCond %{HTTP_ACCEPT} "text\/vnd\.wap\.wml|application\/vnd\.wap\.xhtml\+xml" [NC]
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^{REQUEST_URI} [R,L]

This can check wap capability for wap apps which are no longer needed with smart phones

CSS3 media queries

Currently this is the best option as you can use different style sheets to render your web site on any device.

<!-- CSS media query on a link element -->

<link rel="stylesheet" media="(max-width: 800px)" href="device800.css" />

<!-- CSS media query within a stylesheet -->
@media (max-width: 600px) {
  .shilpa_sidebar {  
  display: none;

A good method is to seperate general and device specific css into seperate css scafolds.

/*General CSS here*/
font-family:Arial, "Sans-Serief";

@media (max-width: 1300px) {

@media (max-width: 540px) {

More advanced information on this

Saturday, July 18, 2015

Forwarding Ports in a Broadband Router

Broadband routers keep track of all outgoing connections from the LAN side by maintaining an internal mapping table of which computer on the LAN is responsible for a given outgoing connection to a particular destination on the internet.  This allows two-way communication between computers on your LAN and computers on the internet.

When an unsolicited connection comes in from the internet, your router does not know what computer, if any, in the LAN should receive the connection, and will block it.

In order to receive incoming connections from the internet to your computer on the LAN side of the router, you need to change a setting in the router's configuration so that it forwards all incoming connections for a particular port number to your computer in your LAN.  

Monday, July 13, 2015

AppSMART 2015 : on 8th August Word Youth Day

Function appSMART 2015{
1. Welcome to world of Apps
2. What is an app? and how does it help society & business
3. Design a Smart app of your own Idea 
4. Trending Tools for Mobile App Development
5. Education Apps in Local Language
6. Where to go from here
Come! Create your own app

8th August in Colombo
Apply Online

Sunday, June 21, 2015

ශිල්ප සයුර ව්‍යාපෘතියට සහකාර ඒජන්ත වරුන් බඳවා ගැනීම

ශිල්ප සයුර ව්‍යාපෘතියට වසර 10 ක් පිරෙන මෙම වසරේදී e Learning සේවාවන් රැසක් සමාජයට හඳුන්වා දීමට සහකාර ඒජන්ත වරුන් බඳවා ගැනීම දැන් සිදුකෙරේ. මේ තුලින් ඔබට අන්තර්ජාලයෙන් ආදයම් උපයාගන්නා අතරම සමාජ සේවයක් කිරීමටද අවස්ථාව සැලසේ. විස්තර සඳහා පහත යොමුවෙන් ඉ‍ල්ලුම් කරන්න.   CLICK HERE

Wednesday, May 20, 2015

Shilpa Sayura A/L ICT e Learning Tuition 2016 /2017 and 2015 Revision

ලංකාව පුරා A/L ICT ඉගන ගන්න අයට දැන් තියන ටියුෂන් ක්‍රමයට වඩා අති නවීන සාර්ථක E Learning ක්‍රමයට A/L ICT විභාගයට සාර්ථකව මුහුණ දෙන්න ශිල්ප සයුර A/L ICT E Learning පාඨමාලාවට බඳවා ගැනීම දැන් ඇරඹුණා. අදම අන්තර්ජාලයෙන් ඉල්ලුම් කරන්න.


Course Director
Niranjan Meegammana
ICT & Youth Development Professional
Adobe Lead Educator & Ashoka Fellow