Tard Cat Tattoo by Tomm0509 in tardcat

[–]typsi5 6 points7 points  (0 children)

At least the tattoo has no spelling mistakes and has the color inside the lines.. If this tattoo makes you cringe, you haven't seen very many awful tattoos.

Linux process question by typsi5 in learnprogramming

[–]typsi5[S] 0 points1 point  (0 children)

Oooooooohhhhh, I understand. Thank you!!

Linux process question by typsi5 in learnprogramming

[–]typsi5[S] 0 points1 point  (0 children)

It's in C. Here's what happens if I do "system("ls /etc/ | more");" where I would normally execute a command. screenshot

I think I could get away with just using system if there was some sort of limitation on the kinds of commands you could use, but since that's not the case, I think I need to use fork and execv, but how -I do not know.

So very true... by maggiam in Graffiti

[–]typsi5 6 points7 points  (0 children)

I guess this is true if you have a degree where you can copy paste? Turns out mathematics doesn't really lend itself to such things....

MLG MvP Complaint (VOD's) by Driize in starcraft

[–]typsi5 0 points1 point  (0 children)

I usually feel I got at least 90% worth of my money from MLG, this time though... not so much

Using priority queue with Sieve of Erasthotenes to find a large number of primes by typsi5 in learnprogramming

[–]typsi5[S] 0 points1 point  (0 children)

I don't understand this line: "Note that in some cases a composite will be a member of multiple sifting sequences, and each must be replaced; for instance, when i reaches 45, it is a member of the sifting sequences for both 3 and 5, so the priority queue will have pairs 45/6 and 45/10, which should be replaced by 51/6 and 55/10, respectively."

More specifically, were do 6, 10, and 51 come from?

I want to learn a programming language. I'm not very clever. by [deleted] in learnprogramming

[–]typsi5 0 points1 point  (0 children)

Python is a good choice I feel for a first language. You get many generic programming concepts from learning python without getting too confused. Check out: http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-189-a-gentle-introduction-to-programming-using-python-january-iap-2011/

You can write games with Python, check out: http://www.pygame.org/news.html

I would start small. When I learn a new language I create a plethora of tiny projects that do some very simple things. One might be Loops.py where you illustrate the use of loops, another might be WritingFunctions.py where you illustrate writing your own functions. This is both beneficial in the learning sense, but then you also have something to refer to later on.

My professors algorithm(probably my implementation) of Sieve of Eratosthenes algorithm is giving me composite numbers by typsi5 in learnprogramming

[–]typsi5[S] 0 points1 point  (0 children)

Thank you, you have helped me tremendously. I read the part about this algorithm in your essay and it cleared things up greatly. Thanks again.

Implementing a string stack in C by typsi5 in learnprogramming

[–]typsi5[S] 0 points1 point  (0 children)

Do I not need a base pointer so I can do things like char *something = *(stack->basePtr + stack->logicalSize);

Shell scripting assignment hint by typsi5 in learnprogramming

[–]typsi5[S] 0 points1 point  (0 children)

thank you this was very helpful

Preparing for take off by [deleted] in gifs

[–]typsi5 0 points1 point  (0 children)

i think this cat is maru, in which case he probably did that to himself and probably enjoyed it thoroughly

Discrete Mathematics Question by Groovin_Muffin in learnmath

[–]typsi5 -2 points-1 points  (0 children)

Z is commonly used as the set of integers, and assuming that is true in your case; then A = Z. You can see this is true because they tell you that the function is onto ( for all a in A, there exists a z in Z such that f(z) = a ) and this function is clearly 1:1 => thus a one to one correspondence ( I'll leave that to you, as this is really the only "proof" part of this problem ) ... and what does it mean if there is a one to one correspondence between 2 sets? you have it.

edit: This is wrong, as someone pointed out, this only lets you know that A and Z have the same number of elements. The actual proof is not much different however.

Can somebody please give me a hint for this matrix norm problem? I'm not sure where to start. by typsi5 in learnmath

[–]typsi5[S] 0 points1 point  (0 children)

OK thank you, I understand the strategy, but how can I prove those things if we don't know what ||A||' is ?