15-year-old Daniil Kulchenko, who recently sold his startup cloud-based computing company Phenona to ActiveState in a deal of undisclosed terms. ActiveState was founded in 1997, making the company just one year younger than its new employee.
Kulchenko is hardly the only young entrepreneur to cash in on their technological savvy. In January 2011, Robert Nay, then 14-years-old, created the iOS game Bubble Ball that knockedAngry Birds out of the long-standing top spot as the “bestselling” free app, and in March 2011, 26-year-old Amanda Stocking became a millionaire, self publishing ebooks in the young adult vampire romance genre.
Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts
Thursday, June 16, 2011
Wednesday, June 8, 2011
HTML+JS ON-THE-RUN
If you're really keen on coding and also maybe bored on the train? There's an App for that!HTML Writer has coding shortcuts, its own testing browser, folder management and more. Get it HERE
Monday, June 6, 2011
Friday, June 3, 2011
Have you tried Komodo?
"Komodo Edit" is a free open-source text editor for PHP, HTML, Python, JavaScript and many others. It features the 'intellisense' feature of Dreamweaver but for free! It helps you write code by listing all the options as you go.
Click HERE
Click HERE
Thursday, June 2, 2011
PROGRAMMING 4 DUMMIES
SCRATCH is a good place to start from. It has nearly all the programming options you will ever play with. Children have used it to make fully functioning games. http://scratch.mit.edu/
STENCYL is like scratch but outputs into a FLASH GAME / PROGRAM: http://www.stencyl.com/Android App Inventor
An online drag and drop app developer for beginner programmers.
Monday, May 16, 2011
Download Scratch Now!

Scratch is a great way to learn programming and is capable of creating full games for playing online.
It's available for MAC and WINDOWS and is FREE!
Download the program here
If you create an account on their website you can download and upload games.
Labels:
Computer Science,
NCEA,
Programming,
Scratch,
Y10
Good Jump Bad Jump
Man Runs and Jumps Wall (3 costumes)
Commentary says "He's Running" then "He's Jumped the Wall!!!"
Man Turns and has second jump attempt.
Commentary says "Here he goes again" then "Oh No, He's Tripped"
Man falls over wall and says "OUCH!" (4th Costume)
Man walks to the edge of the stage.
Commentary says "He's Running" then "He's Jumped the Wall!!!"
Man Turns and has second jump attempt.
Commentary says "Here he goes again" then "Oh No, He's Tripped"
Man falls over wall and says "OUCH!" (4th Costume)
Man walks to the edge of the stage.
Monday, May 9, 2011
Friday, April 15, 2011
Y10 - Javascript - Document writing
<html>
<head>
<title>The Site types your words</title>
</head>
<body>
<script>
var words = prompt("Type some words");
function typewords()
{
document.writeln(words)
typewords()
}
typewords();
</script>
</body>
</html>
<head>
<title>The Site types your words</title>
</head>
<body>
<script>
var words = prompt("Type some words");
function typewords()
{
document.writeln(words)
typewords()
}
typewords();
</script>
</body>
</html>
Y10 - Javascript - Colour change code
<html>
<head>
<title>DISCO</title>
</head>
<body>
<script type="text/javascript">
window.onload = BG_change;
function BG_change()
{
document.body.style.backgroundColor = 'rgb(' +
Math.floor(Math.random() * 256) + ',' +
Math.floor(Math.random() * 256) + ',' +
Math.floor(Math.random() * 256) + ')' ;
setTimeout ( 'BG_change()', 100) ;
}
</script>
</body>
</html>
<head>
<title>DISCO</title>
</head>
<body>
<script type="text/javascript">
window.onload = BG_change;
function BG_change()
{
document.body.style.backgroundColor = 'rgb(' +
Math.floor(Math.random() * 256) + ',' +
Math.floor(Math.random() * 256) + ',' +
Math.floor(Math.random() * 256) + ')' ;
setTimeout ( 'BG_change()', 100) ;
}
</script>
</body>
</html>
Friday, March 25, 2011
Arrays in Programming
Arrays group similar data together
It saves you DIM DIM DIM DIM
e.g. DIM NAMES(10) as STRING
Initialising means Create or Blank an array.
Initialising
Creating is NAME + SIZE + DATA TYPE (3 marks)
or
Blanking is:
For Slot = 1 to end
Array(slot) = 0
Next
Creating is NAME + SIZE + DATA TYPE (3 marks)
or
Blanking is:
For Slot = 1 to end
Array(slot) = 0
Next
A FOR loop will go from beginning to end for 3 marks in the exam
A DO WHILE loop allows you to report on a full array or a search being successful for 5 marks in the exam
Tuesday, March 22, 2011
VB Code for Average Test mark
Public Class Form1
Dim Mark As Decimal
Dim Listlength As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Mark = TextBox1.Text
ListBox1.Items.Add(Mark)
Listlength = Listlength + 1
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim OneMark As Integer
Dim Total As Decimal
Dim count As Integer
Dim Average As Decimal
Do
ListBox1.SelectedIndex = count
OneMark = ListBox1.SelectedItem
Total = Total + OneMark
count = count + 1
Loop Until count = Listlength
Average = Total / count
TextBox2.Text = Average
End Sub
End Class
Dim Mark As Decimal
Dim Listlength As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Mark = TextBox1.Text
ListBox1.Items.Add(Mark)
Listlength = Listlength + 1
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim OneMark As Integer
Dim Total As Decimal
Dim count As Integer
Dim Average As Decimal
Do
ListBox1.SelectedIndex = count
OneMark = ListBox1.SelectedItem
Total = Total + OneMark
count = count + 1
Loop Until count = Listlength
Average = Total / count
TextBox2.Text = Average
End Sub
End Class
Sudo Code - Working out Highest mark P1-J10-Q9b
PROCEDURE PRIZE Always Name the Procedure
OPEN FILE STUDENTS It says there's a File
SEARCH FOR FORM It only says it wants one Form done
SET HIGH = 0
WHILE NOT END OF STUDENTS,
DO CALL PROCEDURE MEAN Start the loop by running the MEAN procedure
IF AVERAGE > HIGH THEN Check to see if the MEAN is the highest so far
HIGH = AVERAGE; STUDENT = CURRENT NAME; Save Mark as HIGH and Name
FLAG = FALSE
ELSE IF AVERAGE = HIGH THEN
FLAG = TRUE They've used the FLAG variable to see if there's a draw
ENDIF
ENDWHILE
IF FLAG = TRUE THEN
REPORT ‘Problem Equal high scorers’ Report a draw or
ELSE OPEN FILE ‘PRIZES’ Open PRIZES file
COPY FORM AND STUDENT TO PRIZES ENDIF Save the result (Mark & Name)
END
Pseudo Code - Work out an average P1-J10-Q9a
Calculate an average in 4 Marks
Procedure Mean 1
Total = 0
Count = 0 1
DoWhile there's still marks 1
Get Mark
Count = Count + 1 Running Total
Total = Total + Mark Running Total
EndWhile
Average = Total / Count 1 After all the looping
End Mean
Procedure Mean 1
Total = 0
Count = 0 1
DoWhile there's still marks 1
Get Mark
Count = Count + 1 Running Total
Total = Total + Mark Running Total
EndWhile
Average = Total / Count 1 After all the looping
End Mean
Monday, March 14, 2011
Y10 Programming Lesson 5 - Polished coding
Cutting down the code from 240 lines to just 68!
Line 2 and 3 are still just:
Dim turn As String
Dim win As Boolean
Line 4 onwards is this code:
Sub butPressed(ByVal butnum As Integer)
Me.Controls("Button" & butnum).Text = turn
Me.Controls("Button" & butnum).Enabled = False
If Button1.Text = turn And Button2.Text = turn And Button3.Text = turn Or _
Button4.Text = turn And Button5.Text = turn And Button6.Text = turn Or _
Button7.Text = turn And Button8.Text = turn And Button9.Text = turn Or _
Button1.Text = turn And Button5.Text = turn And Button9.Text = turn Or _
Button3.Text = turn And Button5.Text = turn And Button7.Text = turn Or _
Button1.Text = turn And Button4.Text = turn And Button7.Text = turn Or _
Button2.Text = turn And Button5.Text = turn And Button8.Text = turn Or _
Button3.Text = turn And Button6.Text = turn And Button9.Text = turn Then
win = True
End If
If win = True Then
MsgBox(turn & " has won")
End If
If turn = "X" Then
turn = "O"
Else : turn = "X"
End If
End Sub
Sub ResetGame()
Dim buttonnumber As Integer
For buttonnumber = 1 To 9
Me.Controls("button" & buttonnumber).Text = ""
Me.Controls("button" & buttonnumber).Enabled = True
Next
Button10.Text = "Reset"
turn = "X"
win = False
End Sub
FORM_LOAD and BUTTON10 now just have:
Call ResetGame()
Buttons 1 to 9 now just have (with the button number in brackets)
Call butPressed(1)
Saturday, March 12, 2011
AS Programming Syllabus
Here is the Syllabus list for what you have to be able to write and read with programming.
(a) define and correctly use the following terms as they apply to procedural programming: statement, subroutine, procedure, function, parameter, loop
(b) identify the three basic programming constructs used to control the flow of execution: sequence, selection and iteration
(c) understand and use selection in pseudocode and a procedural programming language, including the use of IF statements and CASE/SELECT statements
(d) understand and use iteration in pseudocode and a procedural programming language, including the use of count-controlled loops (FOR-NEXT loops) and condition-controlled loops (WHILE-ENDWHILE and REPEAT_UNTIL loops)
(e) understand and use nested selection and nested iteration statements
(f) understand, create and use subroutines (procedures and functions), including the passing of parameters and the appropriate use of the return value of functions
(g) use subroutines to modularise the solution to a problem
(h) identify and use recursion to solve problems; show an understanding of the structure of a recursive subroutine, including the necessity of a stopping condition
(i) trace the execution of a recursive subroutine
(j) discuss the relative merits of iterative and recursive solutions to the same problem
Friday, March 11, 2011
Y10 Programming Lesson 4 - Visual Basic X & O
The 2nd and 3rd lines of all the code should say:
Dim turn as string
Dim win as boolean
After double clicking on FORM 1 the code was:
turn = "X"
Here is the code we put on each button 1 to 9: (Change the button num to the button you are coding)
Dim turn as string
Dim win as boolean
After double clicking on FORM 1 the code was:
turn = "X"
Here is the code we put on each button 1 to 9: (Change the button num to the button you are coding)
Button9.Text = turn
If Button1.Text = turn And Button2.Text = turn And Button3.Text = turn Or _
Button4.Text = turn And Button5.Text = turn And Button6.Text = turn Or _
Button7.Text = turn And Button8.Text = turn And Button9.Text = turn Or _
Button1.Text = turn And Button5.Text = turn And Button9.Text = turn Or _
Button3.Text = turn And Button5.Text = turn And Button7.Text = turn Or _
Button1.Text = turn And Button4.Text = turn And Button7.Text = turn Or _
Button2.Text = turn And Button5.Text = turn And Button8.Text = turn Or _
Button3.Text = turn And Button6.Text = turn And Button9.Text = turn Then
Win = True
End If
If Win = True Then
MsgBox(turn & " has won")
End If
If turn = "X" Then
turn = "O"
Else : turn = "X"
End If
Saturday, March 5, 2011
HTML5 - Why?
In 1990 an English bloke wrote HTML. Eventually we were onto HTML4 but it wasn't clever enough. So they came up with XHTML which was cleverer but lots of the web was still in HTML4 and Browsers and designers (Internet Explorer / Safari etc.) were all getting confused over the syntax (Grammar) and some sites weren't working as they should.
HTML5 is meant to clear up all the mess. HTML5 is very clever. For example, you can now load a video in the website with a line of code. You used to have to use FLASH player and hope that Adobe didn't change anything to make your video not play on your site. YouTube have 2 websites, one running videos with FLASH and one with HTML5. Because you can draw, Animate and load videos with just lines of code and not additional software, it loads faster and uses less power (important for mobile devices and the planet).
Why is HTML5 so important?
1. HTML is not owned by anyone. It is an openly developed standard with many companies involved in the decisions. It runs on all the latest browsers with no further software needed. Needing Adobe Flash means one company can make a decision that effects others.
2. Less software needed means more access and less power / storage required.
EXAMPLE WEBSITES AND INFO
SLOPPY GOOGLE
http://search.detourlab.com/
Build HTML5 Tetris for iPhone !
http://sixrevisions.com/web-development/html5-iphone-app/
Excellent HTML5 SIte - HTML5 is great and the Design is clean
http://www.circuitounimedrio.com.br/
Best HTML5 Examples:
http://html5lab.pl/
Change to HTL5 YouTube
http://www.youtube.com/html5
HTML5 is meant to clear up all the mess. HTML5 is very clever. For example, you can now load a video in the website with a line of code. You used to have to use FLASH player and hope that Adobe didn't change anything to make your video not play on your site. YouTube have 2 websites, one running videos with FLASH and one with HTML5. Because you can draw, Animate and load videos with just lines of code and not additional software, it loads faster and uses less power (important for mobile devices and the planet).
Why is HTML5 so important?
1. HTML is not owned by anyone. It is an openly developed standard with many companies involved in the decisions. It runs on all the latest browsers with no further software needed. Needing Adobe Flash means one company can make a decision that effects others.
2. Less software needed means more access and less power / storage required.
EXAMPLE WEBSITES AND INFO
SLOPPY GOOGLE
http://search.detourlab.com/
Build HTML5 Tetris for iPhone !
http://sixrevisions.com/web-development/html5-iphone-app/
Excellent HTML5 SIte - HTML5 is great and the Design is clean
http://www.circuitounimedrio.com.br/
Best HTML5 Examples:
http://html5lab.pl/
Change to HTL5 YouTube
http://www.youtube.com/html5
Friday, March 4, 2011
Y10 Programming Lesson 2
Here's the code for PROMPTING (ASKING) what colour they want the page:
The Grey Code is ignored by the browser because of the /*...*/
<html>
<head>
<title>This is the Title</title>
</head>
<body>
<center><b>Hello My name is Mr Wells</b></center>
<script>
/* var WhatTheyHaveTyped = prompt("Please add a new Title: ");
document.title = WhatTheyHaveTyped; */
var rednum = prompt("How much red do you want on this page? - max 255")
var grnnum = prompt("How much green do you want on this page? - max 255")
var blunum = prompt("How much blue do you want on this page? - max 255")
function colourthepage()
{
document.body.style.backgroundColor = 'rgb(' + rednum + ',' + grnnum + ',' + blunum + ')';
}
colourthepage();
</script>
</body>
</html>
Thursday, March 3, 2011
Y10 Module - HTML / JAVASCRIPT INTRO
Here's the code to type into Notepad or Textedit (remember to set Textedit to Plain Text)
LESSON 1
<html>
<head>
<title>This is the Title</title>
</head>
<body>
<center><b>Hello My name is Mr Wells</b></center>
<script>
var WhatTheyHaveTyped = prompt("Please add a new Title: ");
document.title = WhatTheyHaveTyped;
</script>
</body>
</html>
LESSON 1
<html>
<head>
<title>This is the Title</title>
</head>
<body>
<center><b>Hello My name is Mr Wells</b></center>
<script>
var WhatTheyHaveTyped = prompt("Please add a new Title: ");
document.title = WhatTheyHaveTyped;
</script>
</body>
</html>
Subscribe to:
Posts (Atom)





