Loki's blog

  • Home
  • maloki.net
  • Permutation

    • 14 Mar 2006
    • 0 Responses
    •  views
    • Education Programming
    • Edit
    • Delete
    • Tags
    • Autopost
    We were asked to make a program (in Python) that finds all possible permutations of a set of elements [1,2,...,n], where n is a user input. I started off by writing a permutaion of elements [1, 2, 3, 4, 5, 6], studied it, and wrote my algorithm. I ended up with one function that looks for the next lexicographic permutation:
    Media_httpstaticflick_vctal
    Also, I had to come up with a little sort fuction (I used bubble sort) to fix up the elements inside:
    Media_httpstaticflick_jieju
    What bothers me sometimes is what I sometimes forget why the sort method works for the permutation. Sometimes, I have to check out the code again and explain it to myself x.x Kind of pathetic, but I get kind of confused with my own code at times. Sometimes, I feel like I either type faster than I think so I get lost, or type slower than I think so I forget. Either way, I just hate it when it happens...
    • Tweet
  • Desensitization to Death

    • 17 Jan 2006
    • 0 Responses
    •  views
    • Education Life People Reflection
    • Edit
    • Delete
    • Tags
    • Autopost
    Violence
    • exertion of physical force so as to injure or abuse
    • injury by or as if by distortion, infringement, or profanation
    • intense, turbulent, or furious and often destructive action or force
    • (taken from
    Merriam-Webster Online)
    During history class, we briefly talked about the seppukku/hara kiri (ritual suicide through belly-slitting) and jigai, its counterpart for females. A very honorable thing to do at that time, but a amusing topic today? The teacher told us about the different steps in the ritual and other stuff. He told us how dishonorable it was to not restrain oneself from reacting from the pain. He also told us how other females would opt to use the aid of the wall to force a blade through the throat, into the spine and out the other side. Then, we talked about how someone who completely beheaded another [such that the head rolled on the ground = dishonorable] who just finished with the ritual would have to perform the ritual himself. During the discussion, a lot of hypothetical situations were raised. There wasn't a minute without laughter or jeers. Is a loss of life such an amusing topic? I guess it's because the blank wasn't filled in. We couldn't sympathize with someone general. Besides that, something done unintentionally could be potentially funny. But put yourself in their shoes and see if you'd still be laughing. I think we're mature enough to laugh in the face of death. We understand its seriousness and then learn to look at it from a lighter side. A good thing is that we are able to openly talk about these things with little to no restriction. But then, we must be careful with our liberty, our being free from control. Should any offense be taken, laugher turns into dead silence.
    • Tweet
  • The Shy

    • 16 Nov 2005
    • 1 Response
    •  views
    • Education Life People Reflection
    • Edit
    • Delete
    • Tags
    • Autopost

    We had our first meeting with the History teacher today....he kind of reminds me of another history teacher in AdMU, Mr. Alejandrino (I know him because he was my Soc. Sci. teacher during 3rd year HS).

    Sometime in the middle of class, he said something like: "the world doesn't work for the shy." It stuck me since I have experienced this a lot of times. It's really pathetic. The shy ones don't get their ideas up front. The shy ones watch in the background. The shy ones don't get noticed.

    What is being shy in the first place?

    1 : easily frightened
    2: disposed to avoid a person or thing
    3: hesitant in committing oneself
    4: sensitively diffident or retiring
    5: secluded, hidden
    6: having less than the full or specified amount or number
    7: disreputable

    Source: http://www.m-w.com

    Two, three, four, five...that's me! I may not be as shy right now but it still disturbs me. There were a lot of things that I could have shared, done and said before and that's why I try to make up for these things now.

    Why am I shy in the first place? I guess it's because I fear embarrassment and judgement (I think there's a better word for this...). I don't want others to think of me wrongly. But then, so what? If they don't like who I am, then it's not my fault anymore.

    I don't want to be shy...

    I want to and will become more assertive and agressive with what I do (but of course, still remain balanced)...

    • Tweet
  • Feeling the Pressure

    • 15 Mar 2005
    • 0 Responses
    •  views
    • Art Education
    • Edit
    • Delete
    • Tags
    • Autopost

    My first serious painting...well, it's a digital artwork but it's still the same. Just me, expressing myself. I did this for a math project...I kind of liked it and here it is!

    Media_httpstaticflick_lchpd
    • Tweet
  • Education

    • 10 Nov 2004
    • 0 Responses
    •  views
    • Education Reflection
    • Edit
    • Delete
    • Tags
    • Autopost

    My parents told me that (with all those mushy love and care thing) education is the best gift they can give me. Well, in school they keep telling us that we must not waste our parents' money and study hard so that we won't repeat a grade or need to pay for tutoring. They also told us that we are more fortunate than others that don't even get to study and so on. Well, upon hearing this again, I asked for an explanation, what my parents thought aboot education as a gift. Their answer lifted me to a state of happiness that I can't explain in words. They said that no matter what happens to me in the future (like losing my parents, family or friends, losing all our money, property or whatsoever), I might lose my faith in God (hopefully, I think I won't) but I will never lose my education. What I have learned throughout the years would stay with me until I begin forgetting. By that time, hopefully I wouldn't need those things anymore...All I need to remember are the ones that I love. :)

    • Tweet
  • About

    26-year old Filipino game developer and gamer who loves food, especially cookies. Mmmm, Cookies!

    28432 Views
  • Archive

    • 2012 (3)
      • May (3)
    • 2011 (1)
      • May (1)
    • 2010 (1)
      • September (1)
    • 2009 (8)
      • July (1)
      • May (1)
      • April (2)
      • January (4)
    • 2008 (17)
      • December (1)
      • November (3)
      • September (3)
      • July (6)
      • June (1)
      • April (1)
      • January (2)
    • 2007 (24)
      • November (2)
      • October (2)
      • September (3)
      • August (4)
      • July (6)
      • June (2)
      • May (2)
      • March (2)
      • February (1)
    • 2006 (10)
      • November (3)
      • March (1)
      • February (2)
      • January (4)
    • 2005 (5)
      • December (1)
      • November (2)
      • March (1)
      • January (1)
    • 2004 (3)
      • November (2)
      • October (1)

    Get Updates

    Subscribe via RSS
    Twitter
  • Other blogs

    • Photography
    • Singularity
    • Hungry
    • Tumblog

    maloki.net

    • Home
    • Projects
    • Contact