Journal entry 28th May
Today in class we applied some final touches to our pascal activities to make sure they all work correctly. We help other people out which required some assistance in the pascal activities.
Journal entry 23rd May
Our group of four has split up into 2 groups so that each group does a task each therefore the last task will be done altogether. We have made an account for http://pmhprogramming.ning.com/ to assist us and communicate with each other for help.
Try Ruby
What is a variable?
A variable saves a thing and also gives it a name.
What is a method?
It is something that allows you to learn ruby languages from and methods are also known as actions
What is the difference between ticket.sort and ticket.sort!
When the exclamation mark is used it means it is permanent while ticket.sort is temporarily
Identify 3 Ruby methods and explain their purpose.
> ruby -e “puts(‘Hello World!’)” means hello world for a website title
>books(“gravity’s rainbow”) = :splendid – this is used to put the rating on a book
>require popup – this allows you to add popups to your website
Notes
Numbers:
- Integers
- Floating point
Boolean:
- True/false
String:
- text/alphanumeric
Hexadecimal
|
Hexadecimal |
4096 |
256 |
16 |
1 |
Decimal Number |
|
|
a |
1D |
0 |
0 |
1 |
D |
29 |
|
b |
13 |
0 |
0 |
1 |
3 |
19 |
|
c |
18 |
0 |
0 |
1 |
8 |
24 |
|
d |
130 |
0 |
1 |
3 |
0 |
304 |
|
e |
274 |
0 |
2 |
7 |
4 |
628 |
|
f |
142 |
0 |
1 |
4 |
2 |
322 |
|
g |
34A |
0 |
3 |
4 |
A |
842 |
|
h |
2A21 |
2 |
A |
2 |
1 |
10785 |
|
i |
FF |
0 |
0 |
F |
F |
255 |
|
j |
10DE |
1 |
0 |
D |
E |
4318 |
|
|
|
|
|
|
|
|
|
|
Decimal Number |
4096 |
256 |
16 |
1 |
Hexadecimal |
|
a |
600 |
0 |
2 |
5 |
8 |
258 |
|
b |
21 |
0 |
0 |
1 |
5 |
15 |
|
c |
40 |
0 |
0 |
2 |
8 |
28 |
|
d |
42 |
0 |
0 |
2 |
A |
2A |
|
e |
258 |
0 |
1 |
0 |
2 |
102 |
|
f |
342 |
0 |
1 |
5 |
6 |
156 |
|
g |
612 |
0 |
2 |
6 |
4 |
264 |
|
h |
4096 |
1 |
0 |
0 |
0 |
1000 |
|
i |
4134 |
1 |
0 |
2 |
6 |
1026 |
|
j |
1000 |
0 |
3 |
E |
8 |
3E8 |
A= 10, B=11, C=12, D=13, E=14, F=15
Comparing and Contrasting (Paint and Photoshop)
Prepared by Ethan Rodrigues 08/05/08
Paint is a simple easy to use program which comes default in all Microsoft Windows computers. It can be used to create many things which include drawing, filling, pencil and many more while Photoshop on the other hand is a more detailed program which is made my Adobe. This program allows you to do the same thing as Paint and many more including manipulating images, creating images and many more.
FEATURES:
Microsoft paint features tools such as: pencil, paintbrush, fill, text, shapes magnifier and many more, while Photoshop by Adobe on the other hand is more complex and includes tool such as: drawing images, manipulating images and adding special effects. Microsoft paint can convert your finished creation into only BIT, DIB, JPEG, GIF, TIFF, PNG while Adobe Photoshop on the other hand can convert your creation into many more including EPS and RGB
Advantages:
Microsoft Paint:
- Free with Microsoft windows
- Easy to use
- Doesn’t take up a lot of space in hard-drive
- You can convert the finshed image to which options suits you
Adobe Photoshop:
- Great for further creations
- Able to do nearly everything
- Suits more than one operation system (WINDOWS AND MAC OS X)
- Able to convert finished creation to the many options it gives you
Disadvantages:
Microsoft Paint:
- Very basic program
- Only works on one operating system (WINDOWS)
Adobe Paintshop:
- Cost alot of money (prices vary)
- pixles are limited
Similarites:
- Both programs are used for creating or editing images
- Both programs can do the basic (rotate image, flip image)
- Both programs can run on Windows
- Both programs allow you to chose your final file format
Differences:
- Paint is free with windows while Photoshop is not
- Paint is considered to be basic while Photoshop is very detailed
- Photoshop can convert your final creation into more file formats than paint
At the end of the day it is what the user perfers and needs, for example a graphic designer would perfer photoshop as this occupation recuries it while a general working person would perfer to use a much less complex easy to use program which would be Paint. In the end it is what the pleases the user, therefore I think that the user friendly pack is Paint because it is very easy to use
Unit Measurements and Coding
ASCII- American Standard Code for Information Interchange (usually 7 bits; parity bit- for checking data accuracymay be added)
EBCDIC- Extended Binary Coded Decimal Interchange Code (8 bits)
Data Measurements
- 1 bit= the smallest unit of measurement holds a 1 or 0
- 8 bits= 1 byte
- 1024 bytes= 1 kilobyte
- 1024 kb= 1 megabyte
- 1024 mb= 1gigabyte
- 1024 gb= 1 terabyte
- 1024 tb= 1 petabyte
- 1024 pb= 1 exabyte
- 1024 eb= 1 zettabyte
- 1024 zb= 1 yottabyte
Coversions
|
|
Binary Code |
64 |
32 |
16 |
8 |
4 |
2 |
1 |
Decimal Number |
|
a |
0001011 |
0 |
0 |
0 |
1 |
0 |
1 |
1 |
11 |
|
b |
1000000 |
1 |
0 |
0 |
0 |
0 |
0 |
0 |
64 |
|
c |
1010111 |
1 |
0 |
1 |
0 |
1 |
1 |
1 |
87 |
|
d |
1001001 |
1 |
0 |
0 |
1 |
0 |
0 |
1 |
73 |
|
e |
1100001 |
1 |
1 |
0 |
0 |
0 |
0 |
1 |
97 |
|
f |
0011111 |
0 |
0 |
1 |
1 |
1 |
1 |
1 |
63 |
|
g |
1110001 |
1 |
1 |
1 |
0 |
0 |
0 |
1 |
103 |
|
h |
1111101 |
1 |
1 |
1 |
1 |
1 |
0 |
1 |
125 |
|
i |
1000010 |
1 |
0 |
0 |
0 |
0 |
1 |
0 |
66 |
|
j |
1111111 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
127 |
|
|
|
|
|
|
|
|
|
|
|
|
|
Decimal number |
64 |
32 |
16 |
8 |
4 |
2 |
1 |
Binary Code |
|
a |
65 |
1 |
0 |
0 |
0 |
0 |
0 |
1 |
1000001 |
|
b |
19 |
0 |
0 |
1 |
0 |
0 |
1 |
1 |
0010011 |
|
c |
40 |
0 |
1 |
0 |
1 |
0 |
0 |
0 |
0101000 |
|
d |
47 |
0 |
1 |
0 |
1 |
1 |
1 |
1 |
0101111 |
|
e |
101 |
1 |
1 |
0 |
0 |
1 |
0 |
1 |
1100101 |
|
f |
78 |
1 |
0 |
0 |
1 |
1 |
1 |
0 |
1001110 |
|
g |
119 |
1 |
1 |
1 |
0 |
1 |
1 |
1 |
1110111 |
|
h |
58 |
0 |
1 |
1 |
1 |
0 |
1 |
0 |
0111010 |
|
i |
98 |
1 |
1 |
0 |
0 |
0 |
1 |
0 |
1100010 |
|
j |
124 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
1111100 |
-
Archives
- November 2008 (1)
- October 2008 (1)
- September 2008 (5)
- August 2008 (6)
- July 2008 (1)
- June 2008 (1)
- May 2008 (11)
- April 2008 (2)
- December 2007 (2)
- November 2007 (1)
- October 2007 (3)
- September 2007 (6)
-
Categories
-
RSS
Entries RSS
Comments RSS

