I implemented merge sort in flash, and then compare it to others.
Action: sorting 5000 random numbers in an array
Merge sort - 3.4 seconds
Flash's built-in sort - 0.15 second
Bubble sort - 38.5 seconds (yeah, don't use bubble sort! It's way too slow!)
Merge sort is one of the fastest (others are quicksort, heap sort, ...etc) sorting algorithms (speed = n log n), and yet, compared to the built-in sorting method, it is 20 times slower.
Also, Flash is bad at math.
It takes about a minute to render an image of the Mandelbrot set in Flash.
I use almost the same method, but coded in Paint.NET's codelab, it produces an image 100 times the size, 10000 times more detail, lots of coloring calculation, and with half the time.
Recently, working on a flash 3D engine project, Flash slows down just by doing a few (maybe 20~30) trigonometry calculations (sin/cos only).
It's a real frustration.
*hopes to upgrade to Flash CS3 soon*
Tuesday, December 11, 2007
Wednesday, December 5, 2007
Age of Wars
http://www.maxgames.com/play/age-of-war.html
Very nicely done game indeed.
At the beginning, it might be hard, but it isn't really.
The last level can be won by only ion-rays.
A guide to beat impossible:
1. wait for enemy to line up and then use special
2. build an egg-automatic
3. keep sending in club-mans so that the enemy doesn't hit base
4. build more egg-automatics as soon as you have enough money (be sure to leave enough for club-mans)
5. DO NOT evolve until the first tank appears. Keep sending in club-mans as fast as you can
6. when the first tank appears evolve to future age and buy
Very nicely done game indeed.
At the beginning, it might be hard, but it isn't really.
The last level can be won by only ion-rays.
A guide to beat impossible:
1. wait for enemy to line up and then use special
2. build an egg-automatic
3. keep sending in club-mans so that the enemy doesn't hit base
4. build more egg-automatics as soon as you have enough money (be sure to leave enough for club-mans)
5. DO NOT evolve until the first tank appears. Keep sending in club-mans as fast as you can
6. when the first tank appears evolve to future age and buy
Thursday, November 29, 2007
Grade 10 Math
Just a week ago, I got accepted into the grade 10 math program (I'm currently in grade 8). As a result, I get to go to senior school for specific math sessions and miss a few middle school classes. Recently I just had my first unit test, and it went pretty well. There's nothing too difficult, and provides sufficient challenge and interest for me. Overall I'm pretty satisfied with the arrangement.
Wednesday, November 14, 2007
Mean Chefs...
Seriously, one of the obese chefs in the cafeteria was really mean on student cards. If we forget them, we cannot enter studentID number, and we must go back to boarding house and get a permission slip from a houseparent. His agitation peaked when the internet connection broke; he was shouting in really high voices and he looked like a cartoon character.
Tuesday, November 6, 2007
Exams & Homework
Sometimes they are a bit overwhelming, especially if you are a boarding student, which have a very strict timetable. Especially when reportcards are due... all the sudden it's a boom, and then, the next day, there's literally no homework because of long weekend.
Saturday, October 27, 2007
School Computer Hacked?!
I think the school got a trojan infected in their systems.
I just login, and then I started playing games, and then all the sudden, a "run" window pops up and somebody is trying to run the winlogin.exe! (obviously you know what that is) Then, the computer beside me is trying to run "cmd.exe" which is command prompt!~ No wonder the anti-virus keeps poping up every time you download something or install something... !!!
I just login, and then I started playing games, and then all the sudden, a "run" window pops up and somebody is trying to run the winlogin.exe! (obviously you know what that is) Then, the computer beside me is trying to run "cmd.exe" which is command prompt!~ No wonder the anti-virus keeps poping up every time you download something or install something... !!!
Wednesday, October 24, 2007
2 = 1 paradox
Try to find the error in this prove for "2 = 1"
let a and b be any integer
that a = b
a = b
a² = ab
a² - b² = ab - b²
(a - b)(a + b) = b(a - b)
a + b = b
b + b = b
2b = b
2 = 1
Hehehehehe... (!)
Answer can be found in the puzzle section.
let a and b be any integer
that a = b
a = b
a² = ab
a² - b² = ab - b²
(a - b)(a + b) = b(a - b)
a + b = b
b + b = b
2b = b
2 = 1
Hehehehehe... (!)
Answer can be found in the puzzle section.
Tuesday, October 23, 2007
&#$%? Flash Cookie!
The security policy is really really strict. Seriously, you can't even let 1 cookie visible to other people/account/website through security settings! Now this is quite a bit of problem because my 2.1mb linerider track is now sitting there as orphaned garbage - because the swf has moved a domain, nothing could be read.
Sunday, October 21, 2007
Sleep over
Last night, after 11 o'clock, when most people went to sleep, some of the other grade 8 boarders sneaked into my room and we had a... um... I don't know what to say. At first , it was like 5 people on 2 beds, and 2 of them are playing PSP. Then some other people talked about their girlfriend. After, at around 1:00 in the morning, we pushed a few people onto the ground, and everybody sleeps. I went into sleep at around 1:30am and we woke up at 8am because my alarm clock accidentally rang. I don't even want anybody else to know about what we talked that night (as you know).
Tuesday, October 16, 2007
Alien Attack Update
Fixed:
- sound problem with UFO
- limit screen area (to prevent people foreseeing UFO's) and regulate screen size (prevent lag)
Added:
- health box, each of them adds 1 life.
Some weapons coming soon...
- sound problem with UFO
- limit screen area (to prevent people foreseeing UFO's) and regulate screen size (prevent lag)
Added:
- health box, each of them adds 1 life.
Some weapons coming soon...
Monday, October 15, 2007
Alien Attack 2 Beta Release
After some time, I've completely rewritten the original Alien Attack game and it's now ready for the first beta. Nothing new has been added, except that enemy ships now shoot red bullets at random speeds. This might confuse some players, but it can help a lot especially in higher levels where the enemy ships shoot every 0.8 second. Variable speeds allow sometimes large gaps for player to shoot through what would normally be considered impossible.
Anyways, here is the link. Report back any bugs through the comments and if you have any suggestions for weapons, enemies, bosses, shield... etc, please post in the comments. If I see any good ideas, I would incorporate them in the next few betas.
http://jason.jjtchiu.com/flash/alien_attack2_beta.swf
Anyways, here is the link. Report back any bugs through the comments and if you have any suggestions for weapons, enemies, bosses, shield... etc, please post in the comments. If I see any good ideas, I would incorporate them in the next few betas.
http://jason.jjtchiu.com/flash/alien_attack2_beta.swf
Sunday, October 14, 2007
Losing School Supplies
Just in the first few weeks of school, I lost 1 protractor, 1 30-cm ruler, 1 15-cm ruler, 3 pencils, 2 erasers, and 1 sharpee. This is just plain dumb. I wish people were more considerate of others and not stealing supplies. Seriously, it's not just by plain accident that the stuff disappears. My blazer also got stolen from my dorm weeks ago. I didn't wash it, and I only wear it on Tuesdays, and yet it disappeared on Thursday. I had to buy a new one for $100+.
Fish Poison
http://pn.bmj.com/cgi/content/abstract/7/5/316
It's weird. A poison called "ciguatoxin" from tropical fish can have a "reverse temperature" effect, meaning that cold things feel very hot and hot things will feel like icy. Also, it could cause you to have imaginary feelings about loosing teeth. There's been a few cases reported on this kind of rare poison.
The poison is produced by micro-organisms in tropical regions, and when fish eats them, the poison builds up for life. Also, the poison very often still remains on the fish long after it's been eaten.
It's weird. A poison called "ciguatoxin" from tropical fish can have a "reverse temperature" effect, meaning that cold things feel very hot and hot things will feel like icy. Also, it could cause you to have imaginary feelings about loosing teeth. There's been a few cases reported on this kind of rare poison.
The poison is produced by micro-organisms in tropical regions, and when fish eats them, the poison builds up for life. Also, the poison very often still remains on the fish long after it's been eaten.
Saturday, October 13, 2007
Mail space
I'm not complaining or anything, but gmail used to be leading, and now it's um... falling backwards
Gmail just gradually increased to 3GB, but then other companies has just boosted their storage too.
Gmail - 3GB
Yahoo - unlimited
Hotmail - 5GB
What's gonna happen? I don't know.
I might consider switching if the situation does not improve soon.
Gmail just gradually increased to 3GB, but then other companies has just boosted their storage too.
Gmail - 3GB
Yahoo - unlimited
Hotmail - 5GB
What's gonna happen? I don't know.
I might consider switching if the situation does not improve soon.
Visual Basic 6
Wow, I actually found that in the senior school library computers.
However, Flash is only installed in certain computers in middle school.
Hmmm... but where is NetBeans? I thought Java/C++ is the language they teach for Computer Science? That's weird.
However, Flash is only installed in certain computers in middle school.
Hmmm... but where is NetBeans? I thought Java/C++ is the language they teach for Computer Science? That's weird.
Thursday, October 4, 2007
All 3rd floor rooms free off inspection!
Every single grade 8 rooms got A+ in the previous inspection, and so we are free this time and we get $20 for pizza!
Wednesday, October 3, 2007
Rice + Ketchup = ?
This morning, when all grade 8 boarders were eating breakfast, someone put lots of ketchup on his rice. It was so gross that everyone started moving away from him. Then that person started eating his "creation" and when he finished everybody was gone. Seriously, it was one of the worst combinations I've seen.
Tuesday, October 2, 2007
Now what? Coughing?
This is the worst cold I've had in 6 years. I've never been coughing when I have a cold during the past 4 years, and this time, I'm coughing really hard. (!!!)
I just hope it gets better (stupid cold!).
I just hope it gets better (stupid cold!).
Saturday, September 29, 2007
Fever & Predicting Future
So, I got a fever. Not a good sign of course. My roommate started spreading germs when he got a cold, and although I tried to stay away from him, getting a cold is almost inevitable. I'm obviously not too happy about that.
Here's one interesting thing I find about getting a fever, and that is I will have visions of future. This last happened when I was in grade 2. I got a fever and I saw a crew of people coming into the house and videotaping stuff. Indeed, months later, my home in Taiwan was used as a place/setting for a drama.
This time, it happened much sooner. I had a dream about the dinner today (some sort of noodle) and when I went to dinner, it was exactly the same as I saw in my dream.
Weird isn't it?
Here's one interesting thing I find about getting a fever, and that is I will have visions of future. This last happened when I was in grade 2. I got a fever and I saw a crew of people coming into the house and videotaping stuff. Indeed, months later, my home in Taiwan was used as a place/setting for a drama.
This time, it happened much sooner. I had a dream about the dinner today (some sort of noodle) and when I went to dinner, it was exactly the same as I saw in my dream.
Weird isn't it?
Wednesday, September 26, 2007
PE Locker (!)
Ok, it seriously stinks. I forgot when it started, but days ago, I open the PE locker door, and a pungent smell came out immediately. Maybe someone left some of their gym socks in there? I don't know.
Saturday, September 22, 2007
Tic Tac Toe
Of course everybody knows how to play, but did you know the ultimate winning strategy?
If you are the first person, you will always win.
First move: in any corner. DO NOT put in the center, or else it will usually be a tie.
Second move: if the opponent put in the center, put on the opposite corner of your first move. You will win, because there are 2 places where you can place to win.
place on the ?, opponent can't block 2 at once
x ?
oo
x
Second move (continued): if opponent place on a corner, then place on an adjacent corner. Your opponent must block it, and then it will leave a place open for you to put the winning move.
ex:
place on the ? to win.
xox
o ?
If you are the first person, you will always win.
First move: in any corner. DO NOT put in the center, or else it will usually be a tie.
Second move: if the opponent put in the center, put on the opposite corner of your first move. You will win, because there are 2 places where you can place to win.
place on the ?, opponent can't block 2 at once
x ?
oo
x
Second move (continued): if opponent place on a corner, then place on an adjacent corner. Your opponent must block it, and then it will leave a place open for you to put the winning move.
ex:
place on the ? to win.
xox
o ?
Thursday, September 20, 2007
How many digits are in x!
x!, as you know, would be x * (x-1) * (x-2) * ... * 3 * 2 * 1.
Obviously we don't want to calculate x! and count the digits if it would be a very large number.
For example, calculating 1000! isn't a very effective way to get the number of digits.
Logarithmic rules can be applied in these situations.
log(ab) = log(a) + log(b)
And we want to calculate log(1000!) before calculating 1000! first.
log(1000!) = log(1000) + log(999) + log(998) + log(997) + ... + log(3) + log(2) + log(1)
Still 1000 numbers to add, but much easier than trying to multiply 1000 numbers together.
With a little bit of calculation, we find the answer 2567.60464422213, which means after multiplying numbers 1 to 1000, we will get a 2568-digit number
Obviously we don't want to calculate x! and count the digits if it would be a very large number.
For example, calculating 1000! isn't a very effective way to get the number of digits.
Logarithmic rules can be applied in these situations.
log(ab) = log(a) + log(b)
And we want to calculate log(1000!) before calculating 1000! first.
log(1000!) = log(1000) + log(999) + log(998) + log(997) + ... + log(3) + log(2) + log(1)
Still 1000 numbers to add, but much easier than trying to multiply 1000 numbers together.
With a little bit of calculation, we find the answer 2567.60464422213, which means after multiplying numbers 1 to 1000, we will get a 2568-digit number
Monday, September 17, 2007
Board Games
I'm loosing all the time on various boardgames now. I don't really care, but here's something I learned... it is... always play conservatively; protect from loosing before trying to proceed with your "winning" plan. Hate loosing, but half of it is luck.
Friday, September 14, 2007
Breaking a Locker
It seems like lockers aren't as secure as we think. There seems to be 60 x 60 x 60 = 216000 combinations, but in reality, the margin of errors make it only 20 x 20 x 20 = 6000 combinations.
Every number has a margin of error. It could be 2 back, 1 forward, 1 back, 2 forward, or 3 back. Smart people would just try multiples of 3. Another thing also make it easier, and that is, on the third number, you can keep turning and trying, until you get to the correct combination (of course if you turn 2 times clockwise, it will reset).
For example, if a locker combination is 26, 7, 38, you can go for 24, 9, 35, and it will still open. Because of the property of the third number (you don't have to reset to try a different third number), we only have to focus on the first and second number. There are 20 x 20 = 400 combinations. It will take 1 minute to try the third number.
Therefire, a maximum of 400 minutes is required to crack a locker. Averagely, it will take 200 minutes, which is about 3 hours. If you are lucky, it might take less than 20 minutes.
Every number has a margin of error. It could be 2 back, 1 forward, 1 back, 2 forward, or 3 back. Smart people would just try multiples of 3. Another thing also make it easier, and that is, on the third number, you can keep turning and trying, until you get to the correct combination (of course if you turn 2 times clockwise, it will reset).
For example, if a locker combination is 26, 7, 38, you can go for 24, 9, 35, and it will still open. Because of the property of the third number (you don't have to reset to try a different third number), we only have to focus on the first and second number. There are 20 x 20 = 400 combinations. It will take 1 minute to try the third number.
Therefire, a maximum of 400 minutes is required to crack a locker. Averagely, it will take 200 minutes, which is about 3 hours. If you are lucky, it might take less than 20 minutes.
Thursday, September 13, 2007
French
Uh, I have to say that French is my... *euphemistically* least favourite subject. During the French classes for the pass few days, we ain't allowed to speak English. (ne pas parle en Anglais!) I don't understand a word the teacher says; it sounds like some mumble jumble to me. I almost slept off during class because it was so boring. Then, for homework, we had to watch this &*@#$ video and learn the words/vocabularies. I *can* pick up a few word in the video, but 99% of them are new to me, and I didn't get the vocabulary sheet. Je deteste le Francais!
Wednesday, September 12, 2007
Room Cleaning + Inspection
We had our room inspection today at 6:00pm. 3 rooms got A- and 2 rooms got A. Some of the parts are quite unfair. Just because we didn't wipe the floor behind the toilet, didn't wipe the bookshelves, and that there are wrinkles on the bed, we got A- instead of A. Others just did some quick work (less than 1 hour) and then they got an A.
Tuesday, September 11, 2007
Roommate
Once I came to the school, I discovered how wasteful people are. I'm saying this only to my opinion, but people start commenting about my T-Shirt even though I've only worn it for 2 days. When it gets to 3 days, they say it's so dirty. I just don't understand.
Also, another thing is, my roommate is just... well... annoying. He cares about every little thing, like he said that my hairdryer exhales bad smell when I smelled nothing. He said I took a shower for too long when in fact it was only 12 minutes. Can't we just live peacefully?
Also, another thing is, my roommate is just... well... annoying. He cares about every little thing, like he said that my hairdryer exhales bad smell when I smelled nothing. He said I took a shower for too long when in fact it was only 12 minutes. Can't we just live peacefully?
Sunday, September 9, 2007
Grade 8 Trade Market
In the past few days, us grade 8 boarders had started a trade market (sort off...). Basically somebody started selling cans of coke, and others copied the idea and sold sprite, root beer... today they were selling pizza...
Thursday, September 6, 2007
School
Finally I was able to get the computer working. *sigh* Still... the flash player is not working for me. Also, I'm very happy that some computers in the school has Flash Professional 8 installed. Hopefully there will be some site updates soon!
Friday, August 31, 2007
PHPBB3
http://forums.penguinposters.net/
I just upgraded the forum to PHPBB3. Took me quite a bit of time, but the result is worth it!
The bad thing is that I have to relearn the phpbb3 system. It's very different from phpbb2.
I just upgraded the forum to PHPBB3. Took me quite a bit of time, but the result is worth it!
The bad thing is that I have to relearn the phpbb3 system. It's very different from phpbb2.
Tuesday, August 28, 2007
Dental Check + Golf
I just got a dental checkup today. Good thing I don't have any cavities. It's just the normal procedures, but I felt a little bit more painful this time. More bleeding I'd say. Hopefully I will be able to keep a set of healthy teeth for long enough time.
By the way, I played a game of golf yesterday in University Golf Course. I screwed up my 5-wood terribly; keep hitting it into the trees. However, I did shot a 5 on a par 5. That was when I hit 3 consecutive good drives and then 2 putts for par. I forgot to take a score card, and I don't think I did too good in the other holes. I think I scored a 12 or something on 1 hole because I landed a flop on top of a big hump, and it rolled back down. Then, I hit a small chip, and it rolled over the green. I tried coming back, but hit it way pass. After that, I finally hit a good chip and 2 putted.
By the way, I played a game of golf yesterday in University Golf Course. I screwed up my 5-wood terribly; keep hitting it into the trees. However, I did shot a 5 on a par 5. That was when I hit 3 consecutive good drives and then 2 putts for par. I forgot to take a score card, and I don't think I did too good in the other holes. I think I scored a 12 or something on 1 hole because I landed a flop on top of a big hump, and it rolled back down. Then, I hit a small chip, and it rolled over the green. I tried coming back, but hit it way pass. After that, I finally hit a good chip and 2 putted.
Monday, August 27, 2007
Puzzle Section
I just updated the puzzle section. There should now be a "hide answer" link so that you can collapse the answer after viewing it. Just a nice feature. Also, changed the color of the text. It took me a long time mainly because of the dynamic textfield in flash 8. When you assign a set of html, it is changed to another set of html before displayed. That makes it very very hard to update because I have to find out Flash's html format, and unfortunately flash does not support regular expression. *it would have been dead easy if I had been able to use regular expression*
Sunday, August 26, 2007
Website Update
Meh. I'm getting lots of negative responses on the black theme... I got tired of it too after a few months looking at the dull black-and-white website. So, I switched to a blue theme! Took me quite a bit of time, but I'm happy with the results.
Also, we are switching to a new server soon. I'm waiting for GoDaddy to setup the domain name information. Hopefully then everybody can enjoy a quicker and better experience!
Btw, I'm happy to get lots of good responses for my Anti-alias plugin. Hopefully it will get stickied. I remembered the time when the feather plugin came out. It didn't work so well (making images glow in the background instead of actual smoothing), and I stopped using it for 4 months. I just don't understand how it got so much good responses (9 pages! crazy!). I guess people just see a decent one and rate it as good simply because there wasn't anything better.
Also, we are switching to a new server soon. I'm waiting for GoDaddy to setup the domain name information. Hopefully then everybody can enjoy a quicker and better experience!
Btw, I'm happy to get lots of good responses for my Anti-alias plugin. Hopefully it will get stickied. I remembered the time when the feather plugin came out. It didn't work so well (making images glow in the background instead of actual smoothing), and I stopped using it for 4 months. I just don't understand how it got so much good responses (9 pages! crazy!). I guess people just see a decent one and rate it as good simply because there wasn't anything better.
Saturday, August 25, 2007
Paint.net Plugins
Meh, wrote a few plugins for my favourite image editing program - Paint.net.
Anti-Alias (v1.5)
This plugin is mainly made as a replacement of the (awful at edge smoothing) feather plugin.
http://paintdotnet.12.forumer.com/viewtopic.php?t=6567
Bevel (v1.4)
A kinda 3D frame effect. It's found in most image editing programs, but somehow Paint.net is missing it.
http://paintdotnet.12.forumer.com/viewtopic.php?t=6526
Diagonal Lines (v1.2)
My first plugin ever! It's a very simple one, but works like a charm. Can be employed in a wide range of images from userbars to warning signs (with thick yellow diagonal stripes).
http://paintdotnet.12.forumer.com/viewtopic.php?t=6483
Enjoy!
Anti-Alias (v1.5)
This plugin is mainly made as a replacement of the (awful at edge smoothing) feather plugin.
http://paintdotnet.12.forumer.com/viewtopic.php?t=6567
Bevel (v1.4)
A kinda 3D frame effect. It's found in most image editing programs, but somehow Paint.net is missing it.
http://paintdotnet.12.forumer.com/viewtopic.php?t=6526
Diagonal Lines (v1.2)
My first plugin ever! It's a very simple one, but works like a charm. Can be employed in a wide range of images from userbars to warning signs (with thick yellow diagonal stripes).
http://paintdotnet.12.forumer.com/viewtopic.php?t=6483
Enjoy!
Wednesday, May 2, 2007
A Map of Online Communities
I just found an interesting map of online communities. It includes virtually every one of them, and looks pretty good! Here's a small version of it:
(click to see larger version. Dimensions: 1024 x 968. File size: 849kb)
(click to see larger version. Dimensions: 1024 x 968. File size: 849kb)
Sunday, April 29, 2007
Finally!
Finally, I finished the online task manager! You can register an account here:
http://www.jjtchiu.com/task_manager
It's a program to let you manage things to do everyday and because it's online, you can access it from everywhere. Also, your information will be protected and not leaked out to anybody, so don't worry about what you put.
Also, I welcome bug reports, suggestions, and comments.
PS: I might get my own domain and server soon!
http://www.jjtchiu.com/task_manager
It's a program to let you manage things to do everyday and because it's online, you can access it from everywhere. Also, your information will be protected and not leaked out to anybody, so don't worry about what you put.
Also, I welcome bug reports, suggestions, and comments.
PS: I might get my own domain and server soon!
Thursday, April 26, 2007
Chip Art
Microchip designers have been doodling on the chips since the first one emerged into the market. Throughout years, hundreds of them have been found by high power microscope and they are quite interesting. I will show you some of the best ones, and there are lots of others in this site.
The Crayon:
The Disclaimer:
Aspen Leave:
Penguin:
Citrus Slice:
Pyramid:
Abacus:
Telephone:
Note: these images are from this site mentioned above.
The Crayon:
The Disclaimer:
Aspen Leave:
Penguin:
Citrus Slice:
Pyramid:
Abacus:
Telephone:
Note: these images are from this site mentioned above.
Saturday, April 21, 2007
How High Can You Count?
http://isthe.com/chongo/tech/math/number/howhigh.html
It's a very interesting article about the English number system and it teaches you how to say 10^10000000000 and larger numbers.
I will give a summary of that article here...
Here's the sequence (not complete): million, billion, trillion, quadrillion, quintillion, sextillion, septillion, octillion, nonillion, decillion (10^33), undecillion, dodecillion,..., vigintillion (10^63),..., trigintillion (10^93),..., centillion(10^303), cenuntillion(10^306),..., ducentillion(10^603),..., milliatillion(10^3003),..., and to infinity.
prefixes for 1~10:
un, do, tre, quattuor, quin, sex, septen, octo, novem
prefixes for 10, 20,...., 90:
dec, vigin, trigin, quadragin, quinquagin, sexagin, septuagin, octagin, nonagin
prefixes for 100, 200, 300,..., 900:
cen, ducen, trecen, quatringen, quingen, sescen, septingen, octingin, nongin
prefix for 1000: millia
So, let's say you want to know how to say 2 * 10^654
1. because the number system goes by every 3 digits, we divide 654 by 3
654 / 3 = 218
2. then, we subtract one from it because "thousand" goes before the million, billion...etc
218 - 1 = 217
3. we say that using the prefixes by the order: hundreds -> ones -> tens and the thousands act as in normal English
217 = 200 + 7 + 10 = ducen-octo-decillion = ducenoctodecillion
4. we got it!
2 * 10 ^ 654 = two ducenoctodecillion!
Wanna try a harder one?
987654 000,...., 000 (1756 sets of 000's)
We break that down to each set
987654 000,...., 000 = 987 * 1000^1757 + 654 * 1000^1756
Then, we subtract one from the power and convert that into words
1757 = millia-septingen-septen-quinquagin-tillion
1756 = millia-septingen-sexa-quinquagin-tillion
We are done!
987654 000,...., 000 = nine hundred eighty-seven milliaseptingenseptenquinquagintillion six hundred fifty-four milliaseptingensexaquinquagintillion
It's a very interesting article about the English number system and it teaches you how to say 10^10000000000 and larger numbers.
I will give a summary of that article here...
Here's the sequence (not complete): million, billion, trillion, quadrillion, quintillion, sextillion, septillion, octillion, nonillion, decillion (10^33), undecillion, dodecillion,..., vigintillion (10^63),..., trigintillion (10^93),..., centillion(10^303), cenuntillion(10^306),..., ducentillion(10^603),..., milliatillion(10^3003),..., and to infinity.
prefixes for 1~10:
un, do, tre, quattuor, quin, sex, septen, octo, novem
prefixes for 10, 20,...., 90:
dec, vigin, trigin, quadragin, quinquagin, sexagin, septuagin, octagin, nonagin
prefixes for 100, 200, 300,..., 900:
cen, ducen, trecen, quatringen, quingen, sescen, septingen, octingin, nongin
prefix for 1000: millia
So, let's say you want to know how to say 2 * 10^654
1. because the number system goes by every 3 digits, we divide 654 by 3
654 / 3 = 218
2. then, we subtract one from it because "thousand" goes before the million, billion...etc
218 - 1 = 217
3. we say that using the prefixes by the order: hundreds -> ones -> tens and the thousands act as in normal English
217 = 200 + 7 + 10 = ducen-octo-decillion = ducenoctodecillion
4. we got it!
2 * 10 ^ 654 = two ducenoctodecillion!
Wanna try a harder one?
987654 000,...., 000 (1756 sets of 000's)
We break that down to each set
987654 000,...., 000 = 987 * 1000^1757 + 654 * 1000^1756
Then, we subtract one from the power and convert that into words
1757 = millia-septingen-septen-quinquagin-tillion
1756 = millia-septingen-sexa-quinquagin-tillion
We are done!
987654 000,...., 000 = nine hundred eighty-seven milliaseptingenseptenquinquagintillion six hundred fifty-four milliaseptingensexaquinquagintillion
Thursday, April 19, 2007
Mandelbrot Set
Well, after a few hours of work, I finally made it (see image below)
It's a famous fractal with a quite complex formula. It is actually, believe it or not, a set of complex numbers. Remember complex numbers are formed by a + bi where i = square root of -1? Well, the Mandelbrot set is drawn by plotting dots at (a, b) on a plain for every complex number (a + bi) in the set. Each complex number in the set is defined by this sequence when it does not escape to infinity
{f(0), f(f(0)), f(f(f(0))),....}
where f(n) = n² + C and C is a complex number.
This fractal contains a great variety of graphics through out the entire fractal, and of course infinite smaller versions of itself amongst it. The demo is just a tiny version of it, and there are a lot more great images of it zoomed in from 100 times to 6 billion times. It surely is fascinating. Click here to see them.
It's a famous fractal with a quite complex formula. It is actually, believe it or not, a set of complex numbers. Remember complex numbers are formed by a + bi where i = square root of -1? Well, the Mandelbrot set is drawn by plotting dots at (a, b) on a plain for every complex number (a + bi) in the set. Each complex number in the set is defined by this sequence when it does not escape to infinity
{f(0), f(f(0)), f(f(f(0))),....}
where f(n) = n² + C and C is a complex number.
This fractal contains a great variety of graphics through out the entire fractal, and of course infinite smaller versions of itself amongst it. The demo is just a tiny version of it, and there are a lot more great images of it zoomed in from 100 times to 6 billion times. It surely is fascinating. Click here to see them.
Tuesday, April 17, 2007
Fractals
Fractals are images that have multiple copies of the original images in it, and those tiny copies have even smaller copies of it in it, and goes on until infinitively small. The Mandelbrot set is a famous example of a fractal. However, my math skills aren't enough to understand them, so I cannot show a demo of it - not yet.
Today, I'm going to show you a fractal called the "dragon." fractal. It is tillable, makes it very special, and it is made entirely out of straight lines filling the space.
Click here to see the flash demo
It's a pretty neat fractal, and its basis is very simple. First, take a strip of paper, then, fold it in half horizontally. Do that 5+ times, and then open it. Make sure every angle is a right angle (90 decrees). Now you should see the dragon slowly forming. What's that based on? Well, here's the pattern (R = clockwise, L = counter-clockwise):
level0: R
level1: RRL
level2: RRLRRLL
level3: RRLRRLLRRRLLRLL
level4: RRLRRLLRRRLLRLLRRRLRRLLLRRLLRLL
...... and so on, adding alternating R and L between each element.
Then, just draw lines turning clockwise if it is a R, and counter-clockwise if it is a L.
like this:
--
|
--
|
--
|
--
...... this continues
Today, I'm going to show you a fractal called the "dragon." fractal. It is tillable, makes it very special, and it is made entirely out of straight lines filling the space.
Click here to see the flash demo
It's a pretty neat fractal, and its basis is very simple. First, take a strip of paper, then, fold it in half horizontally. Do that 5+ times, and then open it. Make sure every angle is a right angle (90 decrees). Now you should see the dragon slowly forming. What's that based on? Well, here's the pattern (R = clockwise, L = counter-clockwise):
level0: R
level1: RRL
level2: RRLRRLL
level3: RRLRRLLRRRLLRLL
level4: RRLRRLLRRRLLRLLRRRLRRLLLRRLLRLL
...... and so on, adding alternating R and L between each element.
Then, just draw lines turning clockwise if it is a R, and counter-clockwise if it is a L.
like this:
--
|
--
|
--
|
--
...... this continues
Monday, April 16, 2007
What happened in the dress rehearsal
Well, 90% of the performances were bad (seriously), and the people were not coordinated. I just don't know how the performance is going to take off. One of the class' performance was a so-called "dance" which is just walking around the stage doing nothing. At the end, virtually only 40% of the audience clapped... Also, back to our class, our "CSI" was not good either (too many repetitions), but it's better than 70% of the others... (those "chorus based" dance with walking around the stage doing nothing)
By the way, some teachers were "thinking wrong" during the dress rehearsal (see the Spy HQ for more details)... I don't want to say much, but my classmates already knew about this.
By the way, some teachers were "thinking wrong" during the dress rehearsal (see the Spy HQ for more details)... I don't want to say much, but my classmates already knew about this.
Dance Performance
Well, we are having a dance performance tomorrow, and today is the dress rehearsal. I really think our dance is stupid, but most of the others are stupid too. I don't like the entire thing. I just don't know how the school came up with such an idea of a school dance night (the so called "Spring Concert"). Besides that, I have 2 projects going on right now, and I don't know the due date. I hate our teacher, never give out due dates until 1 week advance; how are we supposed to plan our project? Also, I'm getting an interview this Friday... that probably means missing art class (dang!). This week is quite busy.
Thursday, April 12, 2007
Tests and Projects
Well, the salmon test was today, and it turned out to be quite easy - 2 page, 4 sides. I think I can get a high mark on it. However, we don't know yet until we get our test back. The reason those last year students said that it's 10 pages is because they had 1 huge test, and this year, we had 2 small tests.
Although the test is over, it doesn't mean that the trouble and hard work is over... I just got 2 projects handed out... a science fair project and a roman project... and we have to present both to the whole school! Argh! I just hope we get until end of June to do it. (which we probably won't)
If that's not enough, I just got notified that I need to have another interview with this private school I'm applying to for grade 8, and it might be this Saturday! This is really getting annoying... Oh well, I just have to accept it. *gotta get to work*
Although the test is over, it doesn't mean that the trouble and hard work is over... I just got 2 projects handed out... a science fair project and a roman project... and we have to present both to the whole school! Argh! I just hope we get until end of June to do it. (which we probably won't)
If that's not enough, I just got notified that I need to have another interview with this private school I'm applying to for grade 8, and it might be this Saturday! This is really getting annoying... Oh well, I just have to accept it. *gotta get to work*
Tuesday, April 10, 2007
The Salmon Dissection Takes Place...
Well, the real dissection took place today. There were 5 salmons, and each group get one. They were pretty small, unlike the one teacher used last week. However, as you know, salmons are usually big enough for dissection.
As for the dissection, I did about 80 percent of the cutting (everything except the gills). I cut and pull out all the organs except the gills and the tongues. First, we had to make a cut from its vent to its throat. It was very slippery and frankly, not easy. I did the cutting, barehanded, because nobody else in our group, including the ones that brought gloves, wanted to cut it. Then, I pulled out the milt sac, the liver, the spleen, and the entire digestive system including the esophagus, the stomach, the pyloric caeca, and the intestines. After that comes the swim bladder and the kidney, which is a long blob of black jelly stuck to the backbone. At last, we took out its gills, eyes, and its tongue (believe it or not). I included a brief description (no pictures, sorry about that) on each organ.
Mouth
Obviously, this is the first place that food is processed. Salmons don't have grinders in their mouth; they have only sharp teeth that snatch and rip the food. Their favorite food is herring - small fish that often travel in large balls with thousands of them.
Esophagus
This is the first place that food come in after it goes through the mouth. It's a passage way between the stomach and the mouth.
Stomach
Well, you all know this, but food digestion take place in the stomach. It's pretty much like our stomach, except that it's much smaller. It breaks down food chunks into tiny ones and pass them to the pyloric caeca. Also, we found nothing in it because salmons don't eat when they return to their spawning ground.
Pyloric Caeca
This spaghetti-like organ is sort of like our small intestines. Here, the nutrients and minerals in the food get absorbed into the body and turn into energy and other stuff. It's a very important organ, and it's appearance is very obvious - the first thing you might notice besides the liver.
Intestines
The intestines are the last step of digestion. It's pretty much like our large intestine, and it absorbs water and other stuff. The poop will just get pushed into the vent/anus and out of the body.
Liver
The liver secrets liquids to help digestion and it break down chemicals so that it can be turned into energy for the body. It's quite large compare to other organs, and you can just pull it out easily.
Spleen
The spleen is a tiny organ with lots of blood vessels in them. It's purpose is to produce white blood cells and to store extra blood in case there are emergencies. It's very tiny, and it's just right beside the pyloric caeca. It looks like a tiny version of the liver, but of course, it's purpose is much different.
Heart
Well, same as most animals, salmons have a heart. It's a tiny triangular shaped organ that pumps blood to the circulatory system. It's location is close to the head, and it's right beside the gills. Surprising, eh? Well, think about it, our heart is right beside the lungs, why? Because so that it can have the fastest access to fresh oxygen! That's the same in salmons.
Gills
The gills are one of the hard areas to dissect. It's pretty hard to cut it out, and what I did was I just ripped it out some of them. Also, my friend cut out some of the gills. Anyways, the gills are the lungs of salmons. Water goes through their mouth, and pass by the gills. There, tiny blood vessels absorb the oxygen from the water and transport it to other places in the body.
Swim Bladder
The swim bladder is like a balloon. It can inflate and deflate to support buoyancy for salmons. If you are careful enough, you can use a straw to inflate it. However, because when I was ripping out the milt sacs, I accidentally ripped a hole, we didn't inflate it successfully.
Kidney
The kidney cleans and filters the blood and produce urine from the waste that passes out of the vent. Unlike humans, salmons have only 1 kidney, and it's a long black strip attached to its backbone. It's very easy to get it out by running your finger along the sides of the backbone. Well, it's pretty gross too. However, I did it - and took out the "black jelly."
Eyes and other organs
Well, we took out the eyes and the tongue too. It's pretty easy to get the eyes; just poke it out from inside and then rip it. The tongues were a bit harder. I first opened the mouth, and then other people just pull it out from the throat. It's gross, I tell you, but not as disgusting as the internal organs. Also, salmons have brains too, but it's very tiny (about the size of a pea), and hard to dissect. We didn't do it because the teacher didn't allow us to do so. It's amazing how salmons can go back to the stream they were born by instinct and without any guide.
If you have any more questions about this, feel free to email me. Also, there's an exam on Thursday, so I'd better get to study... I heard that it is 10 pages long... Although it might not be, but it's better to study too much rather than not studying enough.
Anyways,
Have fun!
As for the dissection, I did about 80 percent of the cutting (everything except the gills). I cut and pull out all the organs except the gills and the tongues. First, we had to make a cut from its vent to its throat. It was very slippery and frankly, not easy. I did the cutting, barehanded, because nobody else in our group, including the ones that brought gloves, wanted to cut it. Then, I pulled out the milt sac, the liver, the spleen, and the entire digestive system including the esophagus, the stomach, the pyloric caeca, and the intestines. After that comes the swim bladder and the kidney, which is a long blob of black jelly stuck to the backbone. At last, we took out its gills, eyes, and its tongue (believe it or not). I included a brief description (no pictures, sorry about that) on each organ.
Mouth
Obviously, this is the first place that food is processed. Salmons don't have grinders in their mouth; they have only sharp teeth that snatch and rip the food. Their favorite food is herring - small fish that often travel in large balls with thousands of them.
Esophagus
This is the first place that food come in after it goes through the mouth. It's a passage way between the stomach and the mouth.
Stomach
Well, you all know this, but food digestion take place in the stomach. It's pretty much like our stomach, except that it's much smaller. It breaks down food chunks into tiny ones and pass them to the pyloric caeca. Also, we found nothing in it because salmons don't eat when they return to their spawning ground.
Pyloric Caeca
This spaghetti-like organ is sort of like our small intestines. Here, the nutrients and minerals in the food get absorbed into the body and turn into energy and other stuff. It's a very important organ, and it's appearance is very obvious - the first thing you might notice besides the liver.
Intestines
The intestines are the last step of digestion. It's pretty much like our large intestine, and it absorbs water and other stuff. The poop will just get pushed into the vent/anus and out of the body.
Liver
The liver secrets liquids to help digestion and it break down chemicals so that it can be turned into energy for the body. It's quite large compare to other organs, and you can just pull it out easily.
Spleen
The spleen is a tiny organ with lots of blood vessels in them. It's purpose is to produce white blood cells and to store extra blood in case there are emergencies. It's very tiny, and it's just right beside the pyloric caeca. It looks like a tiny version of the liver, but of course, it's purpose is much different.
Heart
Well, same as most animals, salmons have a heart. It's a tiny triangular shaped organ that pumps blood to the circulatory system. It's location is close to the head, and it's right beside the gills. Surprising, eh? Well, think about it, our heart is right beside the lungs, why? Because so that it can have the fastest access to fresh oxygen! That's the same in salmons.
Gills
The gills are one of the hard areas to dissect. It's pretty hard to cut it out, and what I did was I just ripped it out some of them. Also, my friend cut out some of the gills. Anyways, the gills are the lungs of salmons. Water goes through their mouth, and pass by the gills. There, tiny blood vessels absorb the oxygen from the water and transport it to other places in the body.
Swim Bladder
The swim bladder is like a balloon. It can inflate and deflate to support buoyancy for salmons. If you are careful enough, you can use a straw to inflate it. However, because when I was ripping out the milt sacs, I accidentally ripped a hole, we didn't inflate it successfully.
Kidney
The kidney cleans and filters the blood and produce urine from the waste that passes out of the vent. Unlike humans, salmons have only 1 kidney, and it's a long black strip attached to its backbone. It's very easy to get it out by running your finger along the sides of the backbone. Well, it's pretty gross too. However, I did it - and took out the "black jelly."
Eyes and other organs
Well, we took out the eyes and the tongue too. It's pretty easy to get the eyes; just poke it out from inside and then rip it. The tongues were a bit harder. I first opened the mouth, and then other people just pull it out from the throat. It's gross, I tell you, but not as disgusting as the internal organs. Also, salmons have brains too, but it's very tiny (about the size of a pea), and hard to dissect. We didn't do it because the teacher didn't allow us to do so. It's amazing how salmons can go back to the stream they were born by instinct and without any guide.
If you have any more questions about this, feel free to email me. Also, there's an exam on Thursday, so I'd better get to study... I heard that it is 10 pages long... Although it might not be, but it's better to study too much rather than not studying enough.
Anyways,
Have fun!
Saturday, April 7, 2007
Friday, April 6, 2007
A Guide to Salmon Dissection......
Ok......
http://www.pskf.ca/sd/
....
Even this, which is a very clean one, as you can see,
is still quite disgusting.
Also, I don't want to touch the kidney either.
Think about it - a blob of black gooey jelly. Yuck!
http://www.pskf.ca/sd/
....
Even this, which is a very clean one, as you can see,
is still quite disgusting.
Also, I don't want to touch the kidney either.
Think about it - a blob of black gooey jelly. Yuck!
Salmon Dissection
Last Tuesday, our class had a salmon dissection. The teacher was cutting a female salmon, and it was pretty gross... I hate seeing those blobs of red and black floating around. If that's not enough, next Tuesday, we are dissecting in small groups! What's worst is that the school doesn't provide rubber gloves! I don't really want to handle those pieces of crap.
New Blog!
Yay! Finally I got blogger working! Welcome to my new blog! I will continuously add more content as time goes on.
Subscribe to:
Posts (Atom)