Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - 3rik

Pages: 1 ... 4 5 [6] 7 8
76
Miscellaneous / Re: How much English words do you know?
« on: October 12, 2011, 06:17:05 pm »
http://testyourvocab.com/?r=1054458

I got 23,300 words and I am a native speaker. I'm a bit above average for my age. Some of the words didn't even look like they were English! ???

Edit: Why do 7 year-olds know more words than 8 year olds?  :P

77
Miscellaneous / Re: Bookmarklets
« on: October 11, 2011, 01:18:18 am »
Nice! If only I could quote it in my sig. :'(

Even when you hover over it to see the link, you can only see the javascript: void(0) part. :w00t:

78
Miscellaneous / Re: Bookmarklets
« on: October 10, 2011, 10:11:13 pm »
I'm pretty sure. I've never been able to use them and javascript: doesn't work in [url] because it automatically adds a "http://" to it.

In bbcode one could type [html]<a src="blahblahbla">Some misleading text</a>[/html] and have "Never Gonna Give You Up" start playing in the background when it is clicked.

Unfortunately people could do some really annoying things with that power so it is probably better that only admins have that ability.

79
Miscellaneous / Re: Bookmarklets
« on: October 10, 2011, 09:56:05 pm »
Re: Off-topic: Mwahaha! Notice THE GAME is capitalized in it  :devil: (I lost)

80
Miscellaneous / Re: Bookmarklets
« on: October 10, 2011, 09:51:44 pm »
That is obviously a rickroll.
Like, who did you think you were going to fool? I'm not the only one who uses Notepad.

Got me. ;) Well you can use it in links to rickroll others. >:D (these don't work in BBCode links unless you have access to [html] like admins do.)

81
Miscellaneous / Bookmarklets
« on: October 10, 2011, 09:14:00 pm »
Quote from: Wikipedia - Bookmarklet
A bookmarklet is Unobtrusive JavaScript stored as the URL of a bookmark in a web browser or as a hyperlink on a web page. The term is a portmanteau of the terms bookmark and applet, however, an applet is not to be confused with a bookmarklet just as JavaScript is not to be confused with Java. Whether bookmarklet utilities are stored as bookmarks or hyperlinks, they are designed to add one-click functionality to a browser or web page. When clicked, a bookmarklet performs some function, one of a wide variety such as a search query or data extraction. Usually the applet is a JavaScript program.

This is a fun one I created. Just Copy and Paste the following code into a bookmark then click to enjoy.


javascript: var hi = function() { var audio = document.createElement("embed"); audio.setAttribute("src", "http://radio.omnimaga.org/songs/Rick Astley - Never Gonna Give You Up (DJ Omnimaga Happy Hardcore Remix).mp3"); audio.setAttribute("autostart", "true"); audio.setAttribute("loop", "true"); audio.setAttribute("hidden", "true"); audio.setAttribute("volume", "100"); document.body.appendChild(audio); }; alert("TURN ON YOUR SPEAKERS AND GET READY FOR AWESOMENESS!!!"); hi();

  :D

Other bookmarklets that have been mentioned include:

http://ourl.ca/7315

Spoiler For Cheat Code for the bookmarklet above:
Spoiler For One must not overly abuse this awesome power:
javascript: window.ASTEROIDS.enemiesKilled=13370000000000000; Doesn't work anymore.  :(

 ;)
:devil: :devil: :devil: :devil: :devil:

http://ourl.ca/9461

http://www.quickonlinetips.com/archives/2008/07/edit-any-web-page/

Note: Some browsers don't allow "javascript:" to be pasted directly into the address bar so be sure to either retype it at the beginning or just put it in a bookmark.


If anyone else finds cool new ones or makes their own, post them here. (As long as they aren't harmful.  D:)

82
Math and Science / Re: Sums, Pascal, and Equations for Sets
« on: September 06, 2011, 11:24:30 pm »
Okay. I do stuff like that too. If you want to see my precalculus method of doing it I put it here.

Spoiler For my method of solving the problem if you're curious:

So the objective of this problem is to find a (n-1)th degree polynomial for a finite set of data with n terms.

So if the set has five terms then the general equation would be

ax4+bx3+cx2+dx+e=t

where x is the term number minus 1 and t is the term and a, b, c, d, e are the coefficients.

Using the example of {0, -33 , i, 27, 6}, we can substitute the values in for x and t.

(in this case we have to make the assumption that 0^0 = 1 or else everything falls apart)

0a + 0b + 0c + 0d + 1e = 0
1a + 1b + 1c + 1d + 1e = -33
16a + 8b + 4c + 2d + 1e = i
81a + 27b + 9c + 3d + 1e = 27
256a + 64b + 16c + 4d + 1e = 6

This is can be solved more easily by using matrices (really you can kinda skip to this step)

[A] =
00001
11111
168421
8127931
256641641

[B] =
a
b
c
d
e

[C] =
0
-33
i
27
6

(excuse my messy matrices)

So [A]*[B] = [C]

Since we already know what [A] and [C] are, we need to solve for [B]

[A]-1*[A]*[B]=[A]-1*[C]
[B]=[A]-1*[C]

Multiply and you'll have your coefficients!



I know the TI-84 and the TI-Nspire CX can handle inverse matrices and I know the Nspire can handle non-real values in the matrices.

Otherwise writing algorithms for this isn't that hard to do.

It works for any length of set as long as you can calculate (n-1)(n-1); but the calculator is often imprecise with inverse matrices.


83
Math and Science / Re: Sums, Pascal, and Equations for Sets
« on: September 06, 2011, 11:56:11 am »
I'm not sure if I understood this topic.
Are you trying to find some thing like y=(1.25+0.25i)x4+(-19.5-2i)x3+(82.75+4.75i)x2+(-97.5-3i)x+0 for the set {0, -33, i, 27, 6}?
I used matrices to find the answer and it didn't seem as complicated as that.

I am not in college math so if I totally missed the point please disregard this post.

84
Lua / Re: Add function to the gc class
« on: September 02, 2011, 12:55:29 pm »
Would this work?

Code: [Select]
function on.paint(gc)
gc2 = getmetatable(gc)
function gc2:method(x, y, height, width)
self:setColorRGB(0,0,0)
self:fillRect(x, y, height, width)
end
--more methods to define here
function on.paint(gc) --Your normal on.paint(gc) goes in here
gc:method(10,10,10,10)
end
end

It would use the normal gc to define all the methods the first time on.paint is called then when it is done it would redefine itself.

85
Introduce Yourself! / Re: Hello
« on: August 30, 2011, 12:50:34 pm »
Hi and welcome to Omnimaga!

Resources for Lua I have found useful are http://www.lua.org/pil/ and http://lua-users.org/wiki/LuaTutorial
Then when you're ready for Nspire stuff, http://www.inspired-lua.org/ is the best place to go.

There is a forum here for Lua at http://www.omnimaga.org/index.php?board=174.0

86
Lua / Re: Lua Q&A
« on: August 28, 2011, 11:50:46 pm »
Well after using timer.start(1) the function on.timer will be called every second. So whatever you define on.timer to do will happen every second until you use timer.stop(). You can change how frequently  on.timer is called by changing the argument. So timer.start(0.5) will call on.timer every 0.5 seconds. Make sure not to put so much stuff in on.timer that it doesn't keep time properly.
For example, the following code is for a simple stopwatch. Press enter to start and reset it.

Code: [Select]
Seconds, Mode = 0, "Not Timing" --[[Sets default values to Seconds and Mode]]
function on.enterKey() --[[This is called when ever the enter key is pressed]]
if Mode == "Not Timing" then --[[If the mode is "Not Timing" when enter is pushed this restets the Seconds counter, switches the mode to "Timing" and starts the timer (counting at 0.1 seconds)]]
Seconds = 0
Mode = "Timing"
timer.start(0.1)
else --[[If the mode wasn't "Not Timing" switch it to "Not Timing" and stop calling on.timer]]
Mode = "Not Timing"
timer.stop()
end
end
function on.paint(gc) --[[This is called every time the calculator needs to refresh the screen]]
gc:drawString(tostring(Seconds), 0, 0, "top") --[[This displays what the value of the Seconds Counter is]]
end
function on.timer() --[[When Mode is "Timing" this will be called every 0.1 seconds]]
Seconds = Seconds + 0.1 --[[Increases the number of seconds counted]]
platform.window:invalidate() --[[Forces the screen to refresh and call on.paint so the number of seconds gets updated on the screen]]
end

Ninj'd
Apparently people typed their responses before I was done. Oh well. I'll post it anyway.

87
Lua / Re: Lua Q&A
« on: August 28, 2011, 08:30:53 pm »
gamedata's value for gamedata[t1] is nil. You are trying to access it like a table. You would either have to put gamedata[t1]={} or table.insert(gamedata, {}) between the fors.

88
Math and Science / Re: Understanding Shading
« on: August 26, 2011, 11:18:26 pm »
I realized I needed more information and found http://www.faculty.iu-bremen.de/llinsen/teaching/320322/lecture11.pdf

It clearly explains everything with pictures and examples before getting into the OpenGL stuff.

89
Math and Science / Re: Understanding Shading
« on: August 26, 2011, 05:52:40 pm »
Thanks! I think I will use this. It seems realistic enough. Hopefully I'll have it finished later today.

Edit: The very next page had what I was looking for! Thank you.

90
Math and Science / Re: Understanding Shading
« on: August 26, 2011, 05:12:04 pm »
In my function the Light isn't necessarily in the same position as the camera so the Light might be directly over the object but the camera is at a low angle above the object. It would be a big difference.

If I can't come up with what I'm looking for then that sounds like a good method. Thanks.

Pages: 1 ... 4 5 [6] 7 8