Posts for Swedishmartin

1 2
11 12
Experienced Forum User
Joined: 11/26/2005
Posts: 285
Hej. Det är bra att ni är även prata Svenska. Ska vi göra TAS av Svenska spel? Som "Kan Du Tänka Dig" and "Mall Maniacs". Jag komma ihåg när jag var liten och spela Mall Maniacs. I Sverige. Nostalgia! Mycket bra. Okay, jag är ute. Se dig senare
Experienced Forum User
Joined: 11/26/2005
Posts: 285
Funny you posted that pic, since I, too, wear a miniature belt on my head.
Experienced Forum User
Joined: 11/26/2005
Posts: 285
DarkKobold wrote:
The beginners mind is something not something to be squandered. The Buddhist philosophy Shoshin is about the openness of the beginner.
Thanks for the link, that's really interesting.
Experienced Forum User
Joined: 11/26/2005
Posts: 285
Weatherton wrote:
So, if you follow Jesus, your attitude is not Christ-like.
Yes, I was joking, I'm sorry. I just thought it was funny that DrJones started talking about God all of a sudden, so I decided to play along. That's the reason I used the word "paganism": Only a Christian would use that word, but no Christian would reason the way I did. Also I'm an atheist, but I respect your beliefs and Jesus was really an admirable person. But please, let's stop talking about God now.
Experienced Forum User
Joined: 11/26/2005
Posts: 285
DarkKobold wrote:
You need to deal with certain facts: You will never swim as well Michael Phelps, play basketball as well as Michael Jordan, do physics as well as Stephen Hawking, play chess as well as Gary Kasparov, or know as much ridiculous trivia Ken Jennings. If you consider that to be failing, then I pity you. You'll find much more happiness when you stop comparing your achievements to those of others, and spend time on the hobbies you enjoy, and work on things you love. Enjoyment in life comes in the pursuit of a goal, and not the achievement. If you aren't enjoying the pursuit, then I suggest you switch hobbies.
Yes, I'm very aware. And yes, I focus way too much on where I want to be, rather than where I am. Thanks.
Experienced Forum User
Joined: 11/26/2005
Posts: 285
Mister Epic wrote:
(text)
Thanks, Mister Epic. I'm 19, by the way. So maybe I was getting your hopes up, considering you wrote "kid/teen" in your post. Sorry about that :) I really do know that "no matter how old you are you can still become good" and I keep telling myself that, but I lapse back into my regular way of thinking sometimes. And then when I'm reminded that "wow, compared to that person, I'm a beginner" (watching a music video or something), instead of being spurred to practice or so, I start worrying about what I haven't done instead. And that anxiety makes it more difficult to practice. Awfully ironic. And your question, if you allow me to brag: When I was little I was good at language. When I was 4 I could read and write, and at 11* I was fluent in English. And everybody still keeps telling me I'm an awfully quick reader. So I do have real skills, but I just take them for granted for the most part. Thanks a lot for your thought. An outsider's view on things really helps, since it's so hard to judge yourself fairly. *That's when I figured "Swedishmartin" was an acceptable internet handle. I've regretted it ever since.
Experienced Forum User
Joined: 11/26/2005
Posts: 285
FODA wrote:
Ok that is total derailing the topic, but if you're following jesus' teachings just to get your ass out of hell you're doing it wrong.
I can change the topic title to "LET'S TALK ABOUT GOD Y'ALL" if you want.
Experienced Forum User
Joined: 11/26/2005
Posts: 285
True wrote:
Hope you enjoyed my post.
I did! Thank you very much!
DrJones wrote:
You don't waste your life if you find the path of God, and the age at which you find it doesn't matter, the prize is the same for everyone at the end.
But the prize shouldn't be the same, should it? If I had been Christian since childhood, I'd be pretty angry if I was treated the same as a deathbed convert. Because what's the reason? Might as well spend your life in paganism and sin then, and convert when you're 70.
Post subject: I had a nightmare about this site :(
Experienced Forum User
Joined: 11/26/2005
Posts: 285
Okay, I have some sort of complex about my age. I don't really like it when people are younger than me, especially if they are better than me at skills I have, like math and music (which, granted, I'm not very good at to begin with, but nevermind). Makes me feel like I've wasted my life at not getting better, if you understand what I mean. So in the dream I had, someone on this forum had coded an emulator, and I thought "Wow, he must be an accomplished programmer then", so I checked his profile, and he was only somewhere around 16 years old. It made me anxious. Then I woke up. Well, that's it! Hope you enjoyed my post.
Experienced Forum User
Joined: 11/26/2005
Posts: 285
On a side note, I still haven't learned learned any programming languages (maybe you remember my C programming thread). So I probably never will either. Oh well. Looks like I double posted! And it seems I also revived a month-old thread. Sorry about that everyone.
Post subject: Re: Hanukkah!
Experienced Forum User
Joined: 11/26/2005
Posts: 285
Bisqwit wrote:
In the good tradition I switched my avatar to Chanukah mode again. :) The Chanukah begins tomorrow night and lasts for eight days and eight nights. It commemorates something that may well happen again. I could tell you what Christmas is about, but it would be a beginning of a discussion to no end. Let's just say, it is not the birthday of Jesus.I got rid of your annoying sig, Bisqwit. hope u dont mind
Okay, sorry for looking like an idiot, but are you Christian or Jewish? I've always thought you were Christian but apparently you're not? I don't know. Also, merry Christmas to everyone, and may you all have a happy new year. Also, hello. I've been gone for a while. But it's not like you people missed me right? ;)
Experienced Forum User
Joined: 11/26/2005
Posts: 285
Bisqwit wrote:
"Please repeat this sentence that I am just speaking, to me, beginning from the word 'please'."
Sure: "This sentence that I am just speaking, to me, beginning from the word 'please'." What I'm looking for is an fool-proof quine, that could be used on someone with the intelligence and naïveté of a computer. And I don't know if that's possible. Nice try, though.
Post subject: English quine
Experienced Forum User
Joined: 11/26/2005
Posts: 285
I had this idea for a year ago or so, I forgot all about it, and I just rembered it again a minute ago. Is it possible to construct a quine (a program whose output is its source code) in ordinary English language? That is, to say something to someone and get what you just said as a response. The English language can transfer some of the commands that programming languages can, like conditionals, loops and arithmetic (and some it can't, like memory allocation and pointers). Are those commands enough to make a quine out of? Also, the sentence "Say this sentence" isn't a quine, because the response you'd get is "This sentence".
Experienced Forum User
Joined: 11/26/2005
Posts: 285
Thanks, everyone. I'll check eBay and Amazon. Also: Yes, I'm aware of the bootdisk, and I have used it in the past (for my previous Dreamcast).
Post subject: Retro gaming troubles!
Experienced Forum User
Joined: 11/26/2005
Posts: 285
I own a Dreamcast (hey, that's retro for me!) console that I would be playing if I had any cables for it. That is, I just own the console, no controllers, memory cards, games or anything. And I've been looking around a lot but I haven't found anything available to buy anywhere. Can you guys help me? Also, I have a Gamecube with just Super Monkey Ball, Mario Kart: Double Dash and The Wind Waker for it. Same problem there, there aren't any games available.
Experienced Forum User
Joined: 11/26/2005
Posts: 285
Derakon wrote:
Get the idea?
Yeah, thanks.
Derakon wrote:
You often can't use 0 or -1 or the empty string because those could be valid values; NULL is never valid.
But why set it to anything at all? You wouldn't normally set integer variables to null, so what's the reason for doing it here? Why not just set your pointers to &variable, instead of first setting them to null and then to &variable? Also, I took a look at the comp.lang.c FAQ:
Therefore, the preprocessor macro NULL is defined (by several headers, including <stdio.h> and <stddef.h>) as a null pointer constant, typically 0 or ((void *)0) (see also question 5.6).
I just got stuck on this:
((void *)0)
I understand that typecasting is going on, but what does that code really mean? Is it treating the constant zero as a pointer?
Experienced Forum User
Joined: 11/26/2005
Posts: 285
I just wanted to pop in and say: I still haven't learned pointers properly. For some reason they're significantly more difficult than anything else in C so far. I guess it's because I can't think of good uses for them outside of arrays, and passing reference rather than value to functions. But you can make pointers that point to functions, what does that accomplish? (Or rather, what would it be used for?) And it's possible to create a pointer that points to an array of pointers, and so on. Same question there. Also, the declaration annoys me. (EDIT: Said some half-truths here, removed) And can someone explain the null pointer to me? Why would you set it to a memory address that doesn't exist?
Experienced Forum User
Joined: 11/26/2005
Posts: 285
I remember playing a game on my mother's Macintosh. You played as a bumble bee flying over a honeycomb in top-down perspective, and firing stingers behind you, at wasps, ants, scarabs and so on. Does anyone know what I'm talking about? EDIT: The game's title was an alliteration if I remember correctly, something like Bumble Bee Brawl.
Experienced Forum User
Joined: 11/26/2005
Posts: 285
Nitrodon wrote:
By Pick's theorem, the area of any polygon whose vertices have integer coordinates must be half an integer. The area of an equilateral triangle is s^2 * sqrt(3)/4, which is irrational (since s^2 is an integer). Hence, it is impossible to have an equilateral triangle in R^2 with integer coordinates.
Thank you! I'm glad to be able to think about something else now.
Experienced Forum User
Joined: 11/26/2005
Posts: 285
FODA wrote:
It sure is, but maybe what you would like to know is what is the smallest triangle side for that?
I haven't got any evidence for any solutions, so please post an example of one of these triangles.
Post subject: Triangles! And coordinates! Oh boy!
Experienced Forum User
Joined: 11/26/2005
Posts: 285
I came up with a math problem a few days ago: is it possible to draw an equilateral triangle in a coordinate system so that each corner of the triangle is placed on an integer coordinate? Please try to help me solve this, it's driving me mad.
Experienced Forum User
Joined: 11/26/2005
Posts: 285
GMan wrote:
While those are good tips, I just meant be careful as you go on that clean, elegant, readable code are much more important that trying to do strange one liners. I'm not accusing you of doing any of those above, just a free floating tip.
Speaking of one liners:
int main() {char s[] = "int main() {char s[] = %c%s%c; printf(s, 34, s, 34); return 0;}"; printf(s, 34, s, 34); return 0;}
I feel pretty cool. (Thanks for the tip!)
Experienced Forum User
Joined: 11/26/2005
Posts: 285
I meant that the program output looks complicated, I tried to make the code itself as simple as possible. The algorithm is really simple as well: (Wolfram MathWorld)
A plot of the cells on a grid satisfying bitwise XOR(a,b)<n for consecutive values of n=1, 2, ....
Experienced Forum User
Joined: 11/26/2005
Posts: 285
I'm working on learning C and all is well, I just felt like sharing this:
#include <stdio.h>

int main()
{
	int n, x, y;

	for(n = 1; n <= 15; n++)
	{
		for(y = 0; y <= 15; y++) //y coord, row
		{
			for(x = 0; x <= 15; x++) //x coord, cell
				if ((x ^ y) < n)
					printf("X");
				else
					printf(" ");
			printf("\n");
		}

		printf("\n%i\n\n", n);
	}

	return 0;
}
Munching squares! It feels nice to make something simple that still looks a bit complicated; makes you feel smart.
Experienced Forum User
Joined: 11/26/2005
Posts: 285
I thought that a, b = 1 assigns 1 to both a and b. Well, that explains it. Thanks.
1 2
11 12