More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
post
page
Python IDE Dashboard

3D Lego Bricks

lego-bricks

In this blog post we will use Glowscript to create a 3D animation representing the various Lego bricks.

Our aim is to recreate bricks by joining several cubes and cylinders (studs) together. We will then create a compound object to join these 3D shapes together in a single object (brick). Finally using an infinite while loop we will animate/rotate the brick around itself.

Here is our 3D animation: (Use Google Chrome to preview this animation)


Right Click on the animation to change the view point (rotate camera angle).

Find out more…


To learn more about all the instructions you can use in GlowScript/VPython, use this on-line documentation.

Your task:


Create and animate different types of Lego Bricks. Combine these bricks to recreate one of the following Christmas trees!

unlock-access

Solution...

The solution for this challenge is available to full members!
Find out how to become a member:
➤ Members' Area
Tagged with: , , ,

3D Solar System

moon-earthIn this blog post we will use Glowscript to create a 3D animation representing the revolution of the Earth around the Sun, and of the Moon around the Earth.

Earth Revolution


First, let’s calculate the angle of rotation needed to rotate the Earth around the Sun between two frames:
earth-Revolution

Here is our 3D animation: (Use Google Chrome to preview this animation)

Right Click on the animation to change the view point (rotate camera angle).

Find out more…


To learn more about all the instructions you can use in GlowScript/VPython, use this on-line documentation.

Task 1:


Complete this model further to add some of the other planets from he solar system. Below you will find the orbiting period for each planet. (The orbiting period of a planet corresponds to the number of days it takes for a planet to complete its revolution around the sun)

  • Mercury: 88 days
  • Venus : 225 days
  • Earth: 365 days
  • Mars: 687 days
  • Jupiter: 4,333 days
  • Saturn: 10,756 days
  • Uranus: 30,687 days
  • Neptune: 60,190 days

Video Tutorial

Task 2:


Though your model will not be up to scale you can improve it further to try to keep some of the proportions (e.g. size of planets, average distance of planets from the sun). For instance the diameter of planet Earth is twice the radius of planet Mars and four times the radius of the Moon.

Do some research to find more data about the planets online and resize and reposition your planets accordingly.

solar-system-3d

Task 3: Expert Level!


Not all planets orbit on the same 2D plan. Do some reading about the concept of orbital inclination. Can you update your model to take into consideration the orbital inclination of each planet?

Task 4: Expert Level!


The revolution of a planet around the sun does not follow a circular orbit but an elliptic orbit. Do some research about the elliptic orbit of planet Earth. Investigate how you could update your model to implement an elliptic orbit for your planets.
unlock-access

Solution...

The solution for this challenge is available to full members!
Find out how to become a member:
➤ Members' Area
Tagged with: , , , , ,

3D Tetris Shapes

tetris-shapes

In this blog post we will use Glowscript to create a 3D animation representing the various shapes used in a game of Tetris.

Our aim is to recreate each shape by joining several cubes together. We will then create a compound object to join these cubes together in a single object. Finally using an infinite while loop we will animate/rotate the shape around itself.

Here is our 3D animation: (Use Google Chrome to preview this animation)


Right Click on the animation to change the view point (rotate camera angle).

Find out more…


To learn more about all the instructions you can use in GlowScript/VPython, use this on-line documentation.

Your task:


Create and animate all the different Tetris shapes.

Tagged with: , , , ,

3D Molecules

molecule-H2OIn this blog post we will use Glowscript to create a 3D animation representing the molecule H2O.

Our aim is to recreate the molecule by joining three spheres together (one sphere for each atom). We will then create a compound object to join these three spheres together in a single object (our molecule). Finally using an infinite while loop we will animate/rotate the molecule around itself.

Here is our 3D animation: (Use Google Chrome to preview this animation)


Right Click on the animation to change the view point (rotate camera angle).

Find out more…


To learn more about all the instructions you can use in GlowScript/VPython, use this on-line documentation.

Your task:


Can you create and animate a more complex molecule such as the molecule methane: CH4.
molecule-methane
Note: You can also represent links between atoms using cylinders.
unlock-access

Solution...

The solution for this challenge is available to full members!
Find out how to become a member:
➤ Members' Area
Tagged with: , , ,

Question Time – IP Networks

Feeling confident with your computing knowledge of IP Networks?

Watch these video clips about IP Networks and the Internet and spend a few minutes to answer or research the following questions:


?
What are the differences between an IP address and a MAC address?


?
Why is 128.264.107.32 not a valid IP address?


?
Why does the Internet need to be upgraded from IPv4 to IPv6?


?
What is the maximum number of devices that we can connect on the Internet at the same time (using IPv4)?


?
How many unique addresses can we generate using IPv6?


?
How does internet data travel accross the Atlantic Ocean?


?
Does it take longer to download a file from a sever located in Australia or in Europe?


?
Who owns and maintains the data cables (e.g. optic fibres) used by the Internet?


?
Who owns and maintains the Domain Name Servers used by the Internet?


?
Who are ICANN and what do they do? (What’s about Nominet?)


?
Why is packet switching a lot more effective than circuit switching for Internet traffic?


?
What is the typical or average size of a data packet on the Internet when using the HTTP protocol?


?
What is the typical or average size of a data packet on the Internet when using the SMTP protocol?


?
Is packet switching more secure than circuit switching?


?
What are the differences between normal phone calls and voiceOverIP phone calls using services such as Skype?


?
What is the difference between the Internet and the Web?


?
How does Google search the entire web in just a few milliseconds?


?
What is the Google Page Rank algorithm used for and how does it work?

Web Quest

Using the above links can you answer the following questions?

  • Who is your Internet Service Provider?
  • What’s your IP Address?
  • How long would it take for a data packet to reach the BBC.co.uk server?
  • Who booked the domain name twitter.com?
  • When will the domain name facebook.com expire?
  • Where is the whitehouse.gov website hosted?
  • How many routers a request from the UK to Google.com go through?

Tagged with:

3D Animation : Moon Phases

moon-earthIn this blog post we will use Glowscript to create a 3D animation representing how we perceive the moon from Earth throughout its cycle.

Our aim is to represent a 3D sphere and to progressively change the direction of the light using a while loop. At each iteration of our while loop we will increment the angle of the light (theta) by a few radians (omega).

The full cycle means that the theta angle has completed a full circle (2*PI radians), representing 28 days.

We will start the cycle with a new moon (when the moon is not visible).

moon-phases

Here is our 3D animation: (Use Google Chrome to preview this animation)

Find out more…


To learn more about all the instructions you can use in GlowScript/VPython, use this on-line documentation.

Animate 3D Molecules


Check this blog post to see how you can use GlowScript to create and animate 3D molecules!

Tagged with: , , ,

UML Diagrams

By completing the following activities you will learn about the different types of UML diagrams used to design OOP projects (Object Oriented Programming).

You will learn how to draw:

  • Use Case Diagrams,
  • Class Diagrams,
  • Object Diagrams,
  • Communication Diagrams,
  • Sequence Diagrams,
  • State Diagrams,
  • Activity Diagrams.

Click on the following picture to access to the activities:
UML-Diagrams

Tagged with: , , , , ,

Learn SQL

SQL

SQL is a language used to query a database. In other words SQL is used to filter, sort and manipulate data stored in relational databases.

SQL-Definition

By completing the following activities you will learn more about the syntax of SQL and how to use it to manipulate data in a relational database used to store customer details, orders, suppliers, etc.

SQL ActivitiesCreate your own SQL Queries
Tagged with: , , , , ,

Star Wars Quotes

star-wars-quote

Learning Objectives


In this challenge we are learning how to format text on a web page using a range of CSS properties.

Remember the key syntax for CSS is as follows:
css-syntax

In this challenge we will use various CSS properties such as:

  • font-family:
  • font-size:
  • color:
  • font-weight:
  • font-style:
  • text-decoration:
  • text-shadow:

You can learn more about all these CSS properties on w3schools.com.

We will also use different types of selectors such as:

  • TAG
  • .class
  • #id
  • element child-element
  • element child-element:nth-child()

You can learn more about CSS selectors on w3schools.com.

Our first quote


Look at the code below to see how we created our first quote from Master Yoda.

See the Pen Font Title by 101 Computing (@101Computing) on CodePen.

Check how we have used various CSS properties to format the text and to add a glowing effect or a shadow effect to our text.

Also compare the different types of selectors we have used in our CSS code.

Your challenge


Press the “edit on codepen” button on the above codepen.

Tweak the code to create another inspirational quote from the star wars movies, using any of the quotes provided below:

Do, or do not. There is no try.

Master Yoda

Train yourself to let go of everything you fear to lose.

Master Yoda

Fly Casual!

Han Solo

Rawwwaarrgh!

Chewbacca

Fear is the path to the dark side. Fear leads to anger. Anger leads to hate. Hate leads to suffering.

Master Yoda

You must unlearn what you have learned.

Master Yoda

Your focus determines your reality.

Qui-Gon Jinn

There’s always a bigger fish!

Qui-Gon Jinn

Many of the truths that we cling to depend on our point of view.

Obi-Wan Kenobi

Who’s more foolish? The fool or the fool who follows him?

Obi-Wan Kenobi

Nothing will stop us this time.

Darth Vader

Tagged with: , ,

Coding Puzzles

code-puzzle

Complete the following coding puzzles by drag and dropping the lines of codes in the correct order to recreate basic computer programs.

Click on the picture below to access the coding puzzles:
code-puzzle-start

Tagged with: , ,