background preloader

BTEC

Facebook Twitter

BTEC Nationals | Computing (2016) - NQF | Pearson qualifications. Programming Ruby: The Pragmatic Programmer's Guide. Modules are a way of grouping together methods, classes, and constants. Modules give you two major benefits: Modules provide a namespace and prevent name clashes. Modules implement the mixin facility. Namespaces As you start to write bigger and bigger Ruby programs, you'll naturally find yourself producing chunks of reusable code---libraries of related routines that are generally applicable. Mixins Modules have another, wonderful use. Instance Variables in Mixins People coming to Ruby from C++ often ask us, ``What happens to instance variables in a mixin? Iterators and the Enumerable Module You've probably noticed that the Ruby collection classes support a large number of operations that do various things with the collection: traverse it, sort it, and so on.

Including Other Files Extracted from the book "Programming Ruby - The Pragmatic Programmer's Guide" Copyright © 2001 by Addison Wesley Longman, Inc. Untitled. Rmdir (rd) Removes (that is, deletes) a directory. Syntax rmdir [Drive:]Path [/s] [/q] rd [Drive:]Path [/s] [/q] Parameters [ Drive : ] Path : Specifies the location and name of the directory that you want to delete. /s : Removes the specified directory and all subdirectories including any files. /q : Runs rmdir in quiet mode. . /? Remarks Using rmdir at the Recovery Console The rmdir command, with different parameters, is available from the Recovery Console. Examples To delete a directory named \User\Smith, first ensure that the directory is empty. Dir \user\smith /a Only the ". " and ".. " symbols should display. Then, from any directory except \User\Smith, type: rmdir \user\smith To delete the directory \User and all of the subdirectories and files, type: rmdir /s \user Formatting legend Attrib Mkdir Dir Command-line reference A-Z.

Windows Batch Scripting: Variables - /* steve jansen */ Today we’ll cover variables, which are going to be necessary in any non-trivial batch programs. The syntax for variables can be a bit odd, so it will help to be able to understand a variable and how it’s being used. Variable Declaration DOS does not require declaration of variables. The value of undeclared/uninitialized variables is an empty string, or "". Most people like this, as it reduces the amount of code to write. Personally, I’d like the option to require a variable is declared before it’s used, as this catches silly bugs like typos in variable names. Variable Assignment The SET command assigns a value to a variable. SET foo=bar NOTE: Do not use whitespace between the name and value; SET foo = bar will not work but SET foo=bar will work.

The /A switch supports arthimetic operations during assigments. SET /A four=2+2 4 A common convention is to use lowercase names for your script’s variables. WARNING: SET will always overwrite (clobber) any existing variables. Listing Existing Variables. How Plug and Play Works: General. In this section With Plug and Play under Microsoft Windows Server 2003, you can connect a hardware device to your system and leave the job of configuring and starting the device to the operating system. If the device and drivers are not designed to take advantage of Plug and Play, Windows Server 2003 will not be able to automatically configure and start the device. Plug and Play in Windows Server 2003 supports a wide range of devices. In Windows Server 2003, Plug and Play support is optimized for computers that include an Advanced Configuration and Power Interface (ACPI) BIOS. On x86-based computers, the interaction between the BIOS and Plug and Play is dependent on whether the system BIOS or the operating system configures the hardware.

The following table describes the recommended BIOS settings on x86-based systems. Recommended Plug and Play BIOS Settings on x86-based Systems The following diagram shows the components that work together to support Plug and Play. Plug and Play Architecture. Iptables. Iptables is a command line utility for configuring Linux kernel firewall implemented within the Netfilter project. The term iptables is also commonly used to refer to this kernel-level firewall. It can be configured directly with iptables, or by using one of the many frontends and GUIs. iptables is used for IPv4 and ip6tables is used for IPv6. nftables was released in release with Linux kernel 3.13, and will one day replace iptables as the main Linux firewall utility.

Installation The stock Arch Linux kernel is compiled with iptables support. You will only need to install the userland utilities, which are provided by the package iptables. Basic concepts iptables is used to inspect, modify, forward, redirect, and/or drop IPv4 packets. The key to understanding how iptables works is this chart. In the vast majority of use cases you won't need to use the raw, mangle, or security tables at all. Tables iptables contains five tables: Chains By default, none of the chains contain any rules. Rules or to. BTEC Nationals | Computing (2016) - NQF. 18 Excellent Tutorials Compilation To Start Working With Raspberry Pi. The Raspberry Pi single-board computer is a common platform for robotics applications. This versatile minicomputer has enough power to run a wide range of applications including here audio or video processing, remote control, or autonomous robots. About Raspberry Pi and its features can be written thousands of words, but this article was written as a starting point for potential or Pi owners who want to learn how to start using the Raspberry Pi and understand what can be done with this little powerful computer.

The Raspberry Pi device is perfect for students or hobbyists who want to learn coding and experiments DIY robots. Raspberry Pi Model B Reasons to use Raspberry Pi Based on a diverse audience, the team behind Raspberry Pi designs the minicomputer as an inexpensive computer with programming capabilities and versatile enough for students and hobbyists who want to learn programming and use the device in DIY projects. Raspberry Pi 01. 02. 03. 04. 05. 06. 07. 08. 09. 10. 11. 12. 13. 14. 15. Python: Lambda Functions. Python supports the creation of anonymous functions (i.e. functions that are not bound to a name) at runtime, using a construct called "lambda". This is not exactly the same as lambda in functional programming languages, but it is a very powerful concept that's well integrated into Python and is often used in conjunction with typical functional concepts like filter(), map() and reduce().

This piece of code shows the difference between a normal function definition ("f") and a lambda function ("g"): As you can see, f() and g() do exactly the same and can be used in the same ways. Note that the lambda definition does not include a "return" statement -- it always contains an expression which is returned. The following code fragments demonstrate the use of lambda functions. The above code defines a function "make_inrementor" that creates an anonymous function on the fly and returns it.

The following takes this a step further. In the second example, map() is used to convert our list. Thenewboston Videos and Tutorials - Free Educational Video Tutorials on Computer Programming, Adobe Software, Computer Science and More! ExplainingComputers.com: Hardware. Hardware Hardware refers to all of the physical parts of a computer system. For a typical desktop computer this comprises the main system unit, a display screen, a keyboard, a mouse, a router/modem (for connection to the Internet), and usually a printer. Speakers, a webcam and an external hard disk for back-up storage are often also included. Many of these items are integrated into a single unit on a laptop or other form of mobile computer. The following gives a basic overview of personal computer (PC) hardware, with the focus being on desktop computers.

When the first microcomputers were introduced in the late 1970s, and in particular when the IBM PC was launched (in 1981 in the USA and 1983 in the UK), the computer industry was dominated by hardware. Since the turn of the century the cost of a typical desktop PC has fallen in both real and monetary terms. Intel Celeron, Pentium and Core processors are today all to be found at the heart of new desktop and laptop PCs.

HTG Explains: Do You Really Need to Defrag Your PC? Ask any PC tech person how to make your computer faster, and almost every one of them will tell you to defrag your PC. But do you really need to manually trigger a defrag these days? The quick answer: You don’t need to manually defragment a modern operating system. The longer answer: let’s go through a couple scenarios and explain so you can understand why you probably don’t need to defrag. If You’re Using Windows with an SSD Drive If you’re using an SSD (Solid State Drive) in your computer, you should not be defragmenting the drive to avoid excessive wear and tear—in fact, Windows 7 or 8 is smart enough to disable defrag for SSD drives.

Here’s what Microsoft’s engineering team has to say on the subject: Windows 7 will disable disk defragmentation on SSD system drives. If You’re Running Windows 7 or 8.x If you’re using either Windows 7, 8, or even Vista, your system is already configured to run defrag on a regular basis—generally 1 AM every Wednesday. Windows XP Wrapping Up. Animate a Stick Figure Walking in Flash. Animate a Stick Figure Walking in Flash ● Learn the basics of Frame by Frame animation. Also learn how to make a movie clip move across the screen using a Motion Tween. • This tutorial is part of the Aesop's Fables and In Your Face Projects. Other People's Work: Here are some examples of work inspired by this tutorial.

Step #1: Open a Blank Document in Flash ~ ✗ Open a new Blank Document in Flash … ✗ Select the Brush Tool or hit the keyboard shortcut letter (B) … ✗ Lower the Brush size - Start small ~ Step #2: Smoothing ~ ✗ Open Properties (If you don't see Properties, hit the keyboard shortcut Cmd(⌘)+F3 or go to: Window > Properties.) ✗ Raise the Smoothing level. Note: The higher the smoothing number, the better your drawing will look. Bad Better Step #3: Draw with the Brush ~ ✗ Draw a head on the stage. . ✗ Draw a body and arms & legs too. Step #4: Adjusting the Lines and Fill ~ ✗ You can reshape lines using the Selection Tool. ✗ Just grab the edges and drag! Or just hit the letter (K) … ✗ Then hit F8. Unit31 Assignment 3. Deadlines Issue Date: 9th September 2014 Hand in deadline (for feedback): 18 October 2014 Final submission deadline: Friday 23 November 2014 Scenario: A teacher, who is a family friend, has asked you to produce a short animation that can be used to add interest to a lesson.

Task 1 Design a one minute animation on a topic of your own choice – curriculum related if you wish to enter the schools animation competition (see link on VLE). An overview of your animation A storyboard with at least 8 key frames – you do NOT need detailed drawings – stick objects are fine and you can add explanations with narrative underneath the picture (see p268 of your text book). Assessment Evidence A zip file containing: Animation overview; Storyboard; Object Table; Timing information. Grading Criterion This task fully covers P6: Design computer animations using different animation techniques. Task 2 Produce the animation you have designed in Task 1 using at least two different animation techniques. Program Arcade Games With Python And Pygame. Are you here because you want to create your own games? Excellent! Here are some videos of games students have created by the end of this course: This foreword has two parts: Getting your computer set up to write games.Job and career prospects in technology. 0.1 Installing and Starting Python To get started, two programs need to be installed, Python and Pygame. 0.1.1 Windows Installation If you are working with a computer that already has Python and Pygame set up on it, you can skip this step.

Once everything has been installed, start Python up by selecting the Integrated Development Environment (IDLE) as shown in Figure 0.1 The original files provided here come from the Python download page at: ...and the Pygame file originally comes from: Note: There are many versions of Python and Pygame. 0.1.2 Mac Installation The installation for the Mac is a bit involved, but it isn't too bad. Open up a terminal window. Dr. Creating timeline animations. To animate layer content in timeline mode, you set keyframes in the Animation panel (Photoshop Extended CS5) or Timeline panel (CS6), as you move the current-time indicator to a different time/frame, and then modify the position, opacity, or style of the layer content. Photoshop automatically adds or modifies a series of frames between two existing frames—varying the layer properties (position, opacity, and styles) evenly between the new frames to create the appearance of movement or transformation.

For example, if you want to fade out a layer, set the opacity of the layer in the starting frame to 100% and click the Opacity stopwatch for the layer. Then move the current-time indicator to the time/frame for the ending frame and set the opacity for the same layer to 0%. Photoshop automatically interpolates frames between the start and end frames, and the opacity of the layer is reduced evenly across the new frames. Disposal Methods in Animation Studio. When working in Animation Studio's Frames tab, there are two panes on the right side that are used to configure settings that apply to the entire animation or just to the selected frame(s). Below the Frame Properties is a property labeled "Disposal" that is extremely useful when creating optimized images.

This is where you can configure the selected frame's Disposal Method. This describes what should be done with the animation canvas after the selected frame has been displayed for the amount of time selected in the Delay property. For many animations, you won't need to change the default disposal method. But there can be some situations, like when the file size needs to be reduced, where this can be very useful. Here's how the flow of each frame goes in an animation: The current frame is drawn onto the canvas. Each method has a different main purpose: None: No action is taken when changing frames.

So why would you ever want to change the disposal method? Here's two examples: Flash MX Developers Guide. Flash and ActionScript Tutorials. Web>> flash>> actionscript>> programmatic movement. In this example, our ball has three new features: it bounces off the walls, it can be sized, and its speed can be controlled. before we can bounce our object off a wall, we first have to move it (using the "move" subroutine). we add the wall collision code to the "move" subroutine. once the ball is moved, we check its location to see if it has gone beyond its allowed boundaries (set as "leftmax", "rightmax", "topmax", and "bottommax"). let's take the left wall as an example to show how: if the x value of the ball's centre point plus its radius is less than the value of the left edge of the canvas (in the demo, zero), then the ball has exceeded the left wall.

If (obj1_x < (leftmax + obj1_radius)) when we know the ball has been moved outside of the boundaries, we have to recalculate the real location of the ball. in other words, if the ball had not gone through the wall, but had actually bounced off it, where would it be now? Set Variable: "obj1_radius" = GetProperty ("/obj1", _width) / 2. Flash button tutorial - AS2. Edutechwiki.unige.ch/en/Flash_button_tutorial_-_AS2. Macromedia Flash 8 free tutorial. Flash 8 Tutorial Index.

Flash Site. Flash - Name Button Instances 43 Tutorials. Flash clickTAG Tutorial - Learn how to build clickTAG enabled Flash banners with click tracking capability! How to create a button in Flash 8. Actionscript for buttons in Flash. Macromedia Flash 8 free tutorial. Introduction to ActionScript 2 (I) Macromedia Flash 8 free tutorial. ActionScript Examples (I) Flash and ActionScript Tutorials. 2. Interface and Navigation - Blender Cookie. Unit 1 Communication and Employability Skills for IT - BTEC Diploma in IT.