Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / [STICKY] The Posting Competition

Author
Message
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 24th Aug 2012 18:14 Edited at: 30th Aug 2012 21:15
Seppuku, you like German right? I know that most won't understand it when I speak German here, but to make the language more German I will now substitute the characters oau with öäü.

Hellö Seppükü, höw döes this löök?

Päge.

TheCömet

"if you don't understand recursion than you probably don't understand recursion." ~Jerico2day

Attachments

Login to view attachments
Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 24th Aug 2012 18:23
Sehr gut! Also, du hast ein seite!

Aber, mein Deustche ist nicht gut.


It was fun trying to speak German to Germans in Germany, then eventually you come across a couple of Finnish guys who can't speak a word of German and then find you can't speak English properly.

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 24th Aug 2012 18:41
Wann warst du denn in Deutschland?

TheCömet

"if you don't understand recursion than you probably don't understand recursion." ~Jerico2day
Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 24th Aug 2012 19:05 Edited at: 24th Aug 2012 19:09
Anfangs August. Für Wacken.

There's official videos of of some of the festival on YouTube, for example, here is the full set of Amon Amarth (I was in that crowd somewhere):



It was a freaking amazing festival (my 3rd time there). But lots and lots of mud. Plenty of Viking themes too, the was a Viking village, which did awesome food and they sold lots of mead, including one called Viking Blood (because it looks like blood). In the Viking area there was a stall that sold all sorts of weird alcoholic drinks, including Wild Rose Mead, which had a bigger kick than normal mead, but tasted nice. And yes, I bought a mead horn and drank mead from that. They also sold swords and armour in the Viking village, but I didn't fancy lugging back an arsenal into England and didn't have the euros to spare anyway (we went by bus, so there wouldn't have been an issue going through baggage handling at an airport. ).

Because it's such a huge metal festival (80,000 people and tickets sold out 9 months in advantance) it attracts people across the globe, so it's interesting to do a bit of flag spotting. I have seen Canadians there before now, so that's one heck of a journey for them.


Oh and Captain Morgan came sat and chilled with us and took some pictures. Well, a guy dressed up as Captain Morgan promoting their rum. Not found their Wacken pics on the web yet though.

3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 24th Aug 2012 22:19
well i cant register for grad school tell next week. I hope then i can find a job.

Developer of Space Chips, pianobasic, zipzapzoom, and vet pinball apps. Developed the tiled map engine seen on the showcase. Veteran for the military.
Yodaman Jer
User Banned
Posted: 24th Aug 2012 23:55 Edited at: 25th Aug 2012 00:10
Quote: "But that's a private variable. I am talking about a public variable that's hidden from the editor. The variables need to be accessed by other classes but doesn't need me to modify them inside of the editor. Unless I am misreading something about the command?"


Ah, hadn't thought of that... I think it's possible to access the variable from different classes/scripts using the GetComponent() function... I'll have to research this. I'll post my findings in a few minutes, this should be easy to test.

EDIT: Damn, doesn't work. I guess I should've realized that.

I'l have to look up other ways to get around hiding variables in the inspector, then...

"The ships hung in the air in much the same way that bricks don't."
~ Douglas Adams
Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 25th Aug 2012 00:12 Edited at: 25th Aug 2012 00:15
You can, but the variables need to be public for you to access them. What GetComponent does is acquire a reference to a class. So rather than getting the reference from the user in the editor it gets it for you.

For example, I use FindObject and GetComponent to find my player object and acquire his 'stats' class.



The GetComponent function can also get the name of a component, but I don't think it can grab a specific variable, like PlayerStats.HP.

But having [HideFromInspector] works just fine for hiding public variables from the editor. But if you figure out a more efficient way, awesome.

Yodaman Jer
User Banned
Posted: 25th Aug 2012 01:19
I think I'm gonna have to switch to C# for Unity. Your code looks a lot cleaner and tutorials seem to focus on it more than UnityScript.

I found this, you can apparently make your own editor windows and menus to further enhance productivity and design: http://docs.unity3d.com/Documentation/Components/gui-ExtendingEditor.html

Now to just learn some C# with Unity.

Can you demonstrate how to get my variables to appear in the Inspector with C#, please? I can't find clear examples. In UnityScript, it's simply this...



The variables will be renamed to "This Is Sparta" and "This Is Not Sparta", and will take inputs accordingly, but I can't seem to figure out how to do it in C#. I read that you have to use [serialize], but again, no clear examples.

"The ships hung in the air in much the same way that bricks don't."
~ Douglas Adams
Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 25th Aug 2012 02:28 Edited at: 25th Aug 2012 02:29
Quote: "I found this, you can apparently make your own editor windows and menus to further enhance productivity and design"


Yeah I've seen that, not tried experimenting with it yet though.



Basically:

public = yay, you can all know my secret! Who cares what class you're in. I am an open book.

private = stay away from me, only people in my class can know my secret. So, shoo!

I'm guessing in Unity Script variables & classes are public by default?


Also, Serialize - as in [System.Serializable] only applies where you want the contents of a class to show inside of the editor, I don't mean the class that makes up your .cs file, but a class within that class.
For example:


Randomness 128
18
Years of Service
User Offline
Joined: 13th Feb 2007
Location:
Posted: 25th Aug 2012 02:39
I've done nothing useful in three weeks. Interesting...
Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 25th Aug 2012 03:24
Quote: "I've done nothing useful in three weeks. Interesting..."

Wait... You mean posting here isn't useful?

Well crap.

Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 25th Aug 2012 03:42 Edited at: 25th Aug 2012 03:42
Huh, so I've wracked up over 16,000 posts for nothing? Awesome! Life well spent!

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 25th Aug 2012 03:45
Well, I've written a byte-code compiler and an interpreter in DBP. It's pretty primitive, but nonetheless it was hard to pull off. I'm glad that's over!

TheComet

"if you don't understand recursion than you probably don't understand recursion." ~Jerico2day
Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 25th Aug 2012 03:55
You know what sucks about making home made milkshakes? It takes forever, then they're gone almost immediately.

Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 25th Aug 2012 04:42
TheComet, that's awesome!

Debating whether or not to look in to quieting my PC case fans. I'm going to be recording and voicing some minecraft videos soon (relating to the survival experiment ;D) and my mike picks up my computer fans. They're pretty loud.

Quote: "You know what sucks about making home made milkshakes?"

Errm... getting the milk...?

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 25th Aug 2012 04:45
Quote: "relating to the survival experiment ;D"


If you require a Ginnie pig then I'd love to help out.

TheComet

"if you don't understand recursion than you probably don't understand recursion." ~Jerico2day
Yodaman Jer
User Banned
Posted: 25th Aug 2012 05:17
Quote: "I'm guessing in Unity Script variables & classes are public by default?"


I dunno. I haven't looked that far into it.

What I did learn, however, is that when using C# you have to have a main class that everything goes into... like so:



Whereas in UnityScript it's just my original example...




No need for a main class. And that's why I was getting confused about using C#. I haven't touched C# in ages though, I forgot that every file had to have its own main class and that was why C# forced you into OOP.

By the way, has anyone else noticed that sometimes, the forums re-indent blocks of code to double what you have in your IDE? It bothers me a lot because it makes it look like I don't know what I'm doing.

"The ships hung in the air in much the same way that bricks don't."
~ Douglas Adams
Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 25th Aug 2012 05:21
Quote: "Errm... getting the milk...?"



Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 25th Aug 2012 06:42
Quote: "If you require a Ginnie pig then I'd love to help out. "

not my experiment and it's pretty much full. This is the link to the thing though:
http://www.minecraftforum.net/topic/1436874-closed-map-experiment-2-8252012-1-pm-est-test/#entry17458916

Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 25th Aug 2012 07:37 Edited at: 25th Aug 2012 07:37
Dark Basic gave me this fear of ending any line with "..." Even years later, to this day, I avoid ending any comment or line with '...' for some subconscious fear that the editor will mess up my code and make it difficult to find the issue.

Points? Edit: Yes. Points.

----

32,222 is a nice short term goal... No points for it though.

Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 25th Aug 2012 08:15
Quote: "Even years later, to this day, I avoid ending any comment or line with '...' for some subconscious fear that the editor will mess up my code and make it difficult to find the issue."

I don't know what you're talking about…

Also, did you know you can define matrix exponentials? Pretty easy too. e^A is defined as 1+A/1!+(A^2)/2!+(A^3)/3!+...+(A^n)/n! (where A is a square matrix) Since you can get the inverse of that function, you can also define the natural log of a matrix. Then you define A^B=e^log(A^B)=e^(B*log(A)).

So yeah, you can define [[1,0],[4,5]]^[[10,4][1,1]]

Once you have that, since cos(x)+i*sin(x)=e^(ix), you can do exactly the same thing and define sine and cosine for matrices!

cos(A)=(e^A+e^(-i*A))/2, sin(A)=(e^A-e^(-i*A))/(2i)

this gives cos(A)^2+sin(A)^2=I.

An identity similar to cos(x+2pi)=cos(x) can be achieved.
Apparently from here: http://math.stackexchange.com/questions/186533/a-matrix-trigonometry
cos(A+T)=cos(A) (& same with sine) if A and T commute (that is, A*T=T*A), if T is diagonalizable, and if the eigenvalues of A are all multiples of 2pi

Happy Cheesecake
15
Years of Service
User Offline
Joined: 16th Jun 2009
Location: My non-vice-presidential refrigerator.
Posted: 25th Aug 2012 08:16
Quote: "32,222 is a nice short term goal"


Yes, it is.
Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 25th Aug 2012 08:23 Edited at: 25th Aug 2012 08:39
Quote: "I don't know what you're talking about…"

In the original DBP IDE, if you typed something like this:

You would see "x is not 5. :<" The reason for this is that "..." is the concatenation string and so it would cause the next line to become part of the comment. (Of course, you can change the concatenation symbol to something else, but it was '...' by default.)

Granted, C++ has the same thing, but it's not "..." Instead, it's the less common occurrence, "\" which is also the escape character anyway. So it makes sense to do so.

Now, if you're wondering why you would even do anything with that to begin with, it's to keep your lines from becoming so long that you have to scroll. It's a common courtesy when sharing code to keep your lines less than 80 columns long. (Nowadays it's more like 120 to 140 columns... But I prefer the 80 column marker as I sometimes do work in the terminal anyway.)

Quote: "did you know you can define matrix exponentials?"

I always assumed you could, but I never looked up how it would be done. (I implicitly assumed it was just a repeated sequence of matrix multiplies, potentially. But, considering matrices are weird anyway, I scrapped that idea early on.)

Quote: "A/1!"

What does "!" represent in your notation? A quick scan of the link did not provide any obvious meaning. (I only glanced though, so maybe I'm missing it.)

Edit: Found it. [link]
Quote: "Think it stands for factorial, e.g.:

4! = 4 x 3 x 2 x 1 =24
3! = 3 x 2 x 1 = 6"


Quote: "Yes, it is."

This post should be a palindrome if I didn't take too long to write it... Edit: Yup! 32,223 <- The post number (correction) is a palindrome.

----

Neat Forum Trick
Find a post you once wrote in an autolocked thread. Edit it. Congrats! You can update posts with new information long after a thread has automatically died. (Unless they updated this...)

Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 25th Aug 2012 08:47
Yup, factorial.

Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 25th Aug 2012 09:30
Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 25th Aug 2012 10:07 Edited at: 25th Aug 2012 10:12
Woah, that can store any number from 0 to 115792089237316195423570985008687907853269984665640564039457584007913129639935!

[edit]
And 57!<2^256<58!, in case you were wondering.

I've gone too long without studying it... my physics knowledge is becoming crappy, I spent like 45 minutes trying to figure out the effective spring constant of a pendulum xD

[edit2]
I mean not that it's simple if you haven't studied it before, but you should remember it after you learn it.

Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 25th Aug 2012 10:36
Physics programming has not interested me yet... But it will. At the moment I'm pursuing a solid understanding and implementations in other areas.

Also, yes! That's a pretty big number! Now... To make that fit in my bank account. xD

Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 25th Aug 2012 11:31
It's pretty awesome once you get something working.

Also, went to a functional programming meetup, and promptly bought a math-oriented book on functional programming. Theoretical comp. sci here I come!

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 25th Aug 2012 11:54
I have one of the voyage calculators and it can store numbers up to 301!. How many bits is that?

TheComet

"if you don't understand recursion than you probably don't understand recursion." ~Jerico2day
Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 25th Aug 2012 12:14 Edited at: 25th Aug 2012 12:14
Lets see, by counting on my fingers I get that 301! is
. So, by comparing that with my mental map of powers of two, it's obvious that 2^2049<301!<2^2050.

[edit]
OH GOD PAGE STRETCH.

Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 25th Aug 2012 12:56 Edited at: 25th Aug 2012 13:00
http://en.wikipedia.org/wiki/Factorial#Computation

Quote: "The scientific calculator in Windows 7 is able to calculate factorials up to 3248!.[citation needed]"


Edit: Typing "3248!" into Calculator produces "1.9736342530860425312047080034031e+9997" (assuming scientific mode). Typing "3249!" into Calculator produces "Overflow."

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 25th Aug 2012 13:01 Edited at: 25th Aug 2012 15:34
Interesting! I don't know why one would need numbers that high though...

------------------

Interesting discussion I had with someone:



TheComet

"if you don't understand recursion than you probably don't understand recursion." ~Jerico2day
Venge
18
Years of Service
User Offline
Joined: 13th Sep 2006
Location: Iowa
Posted: 25th Aug 2012 15:38



The meek shall inherit the earth, if that's alright with everyone else.
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 25th Aug 2012 15:49


TheComet

"if you don't understand recursion than you probably don't understand recursion." ~Jerico2day
Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 26th Aug 2012 07:57
I can't choose between C and C++. Every time I start programming in one, I start missing programming in the other. If I try to do C-designs in C++ (for the extra C++ features) a bunch of people will complain about "improper design."

Some things are nicer to do in C++, while some things are nicer to do in C. This is really annoying me.

Note: If it matters, imagine by "C" I mean "C++ but using pretty much only the features of C; so not OOP."

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 26th Aug 2012 18:53
If you're using C++ you should adopt an OOP style. Maybe posting a section of your code could help?

TheComet

"if you don't understand recursion than you probably don't understand recursion." ~Jerico2day
Dar13
17
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 26th Aug 2012 19:11
Quote: "If you're using C++ you should adopt an OOP style."

Not really. C++ has pretty good OOP support, but you don't have to use OOP in C++. It's metaprogramming support isn't the best, but it's better than C's metaprogramming stuff(macros, macros, and macros).

Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 26th Aug 2012 19:50
Quote: "adopt an OOP style"

Yes, but which OOP style is the question, lol.

Anyway, I think I've resolved the conflict. (I also wrote a rather long status update on the project explaining the conflict as well.) I've made a set of prioritized goals that the design must adhere to / support. I'm still experimenting here though.

There are some things I kind of want to do though. For example, I'd like to automatically generate certain files. I'm thinking about automatically generating header files from classes. To avoid unnecessary rebuilds I'd also check the signature of the existing header file before writing out the new header file. If they match, then there's no need to write 'em out. (Timestamps alone would produce unnecessary rebuilds.)

There are other files I'd like to have generated automatically as well, so I'll probably end up looking at doing all that sooner rather than later.

Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 26th Aug 2012 21:45
Quote: "Yes, but which OOP style is the question, lol."

the kind with objects and polymorphism and inheritance and abstract types.

Also, the minecraft group thing I'm in is going crappily. They're doing the voice chat through skype instead of a proper voice client. Showed up a couple minute late for the test today, and I'm apparently not on the whitelist, and I can't find the skype of the organizer. >.> And there are only 9 people in the server.

:\

Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 27th Aug 2012 00:51
Quote: "the kind with objects and polymorphism and inheritance and abstract types."



Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 27th Aug 2012 01:32
and USE all of those ;D

Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 27th Aug 2012 02:42
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 27th Aug 2012 02:59
Genesis:6:17

Quote: ""I am going to bring floodwaters on the earth to destroy all life under the heavens, every creature that has the breath of life in it. Everything on earth will perish.""


Apart from say, the majority of marine life and probably many types of birds, surely.
Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 27th Aug 2012 03:22 Edited at: 27th Aug 2012 03:50
Dar13
17
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 27th Aug 2012 04:43
C# is kinda freaky. It's all classes, so it's kind of surreal. Yet it seems like a pretty cool language with built-in lambdas, much better Intellisense(versus VC++), and similar syntax to C++. Though all the template stuff is scary at times.

Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 27th Aug 2012 07:28








I'm sorry, all those images were probably inconsiderate.










And now a story.

Journal

And the journal is filled with all the things I'd say to her if I were nice like you. I burn it when it's full.


That's my hat! You took my hat!


Oh, and, uh, if the Russian government asks, that submarine was always there.


Man, this emo thing was supposed to be for people who didn't have hats.


'Pick you up at eight?' 'Nine. I've got to re-mine the driveway.'

Happy Cheesecake
15
Years of Service
User Offline
Joined: 16th Jun 2009
Location: My non-vice-presidential refrigerator.
Posted: 27th Aug 2012 23:53
Well, that was ten minutes well spent.
Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 28th Aug 2012 02:48


Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 28th Aug 2012 02:56
RETURN:
MOVE R1,!7
MOVE R2,!8
GREATER R2,R1
CJUMP <TRUE>
JUMP <FALSE>
TRUE:
......
JUMP <RETURN>
FALSE:
......
JUMP <RETURN>

,, and two for whoever guesses what that assembly does properly. Ei what high level language feature does it implement?

Your signature is being eras
Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 28th Aug 2012 03:01
Quote: "what high level language feature does it implement?"

the bit.

Login to post a reply

Server time is: 2025-06-08 22:42:18
Your offset time is: 2025-06-08 22:42:18