Loki's blog http://blog.maloki.net Most recent posts at Loki's blog posterous.com Wed, 11 May 2011 09:04:21 -0700 Realignment http://blog.maloki.net/realignment http://blog.maloki.net/realignment

First of all, I've stopped working on CanLaro for quite some time now and I'm not sure if I'll continue working on it anytime soon. There are some other HTML5 libraries and game engines out there such as ImpactJS that works pretty well already. I'll be keeping the repository up on GitHub though, just in case. 

I've also decided to make the switch from WordPress to Posterous. I will not have any control over what features gets added or removed to the blogging engine, but I think I can live with that. These limitations allow me to focus on what's important: the contents and the projects I'm working on.

Finally, I'll be starting a dev diary for my projects. I'm writing it mostly for myself, but you're welcome to read it. I'll still be posting some dev work here on my main blog, but I'll be restricting it to about major or minor releases and other reladed stuff I'd like to share.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/710964/Abstract1.JPG http://posterous.com/users/10Eg1o3Szdv Richard Locsin Loki Richard Locsin
Thu, 09 Sep 2010 06:32:00 -0700 CanLaro: HTML5 2D Canvas Game Development Helper http://blog.maloki.net/canlaro-html5-2d-canvas-game-development-help-0 http://blog.maloki.net/canlaro-html5-2d-canvas-game-development-help-0

While looking around for some HTML5 Canvas code, I found a lot of examples, but only a handful of reusable libraries. The drawing functions, are useful and there are draw image functions that draw a part of an image, useful for a sprite. Nice but it can get troublesome with tiled animation and transformations. In the end, I decided to make one myself: CanLaro!

Can: short for canvas, also "to be able to"
Laro:  Tagalog word for game

My goal for this library is mainly to provide code that can help any 2D game get started as long as you know some Javascript and know what a game loop is. I wrote/am writing this mainly as a helper and you are free to write your game as you please.

 

Here it is in action: CanLaro Demo: BobCanvas

Canlaro

At the moment, here's what it offers:

  • Sprite
    • multiple animations (different sets of frames per animation)
    • transformation (rotation, translation, scale)
    • alpha
  • Keyboard Input Handler
    • configurable key mapping
    • key state checking (of course!)
    • opposing keys

Check the README at the CanLaro github project repository for more details and updated documentation.

Planned possible updates:

  • Resource Manager/Loader (there's code in there, but it still needs some work)
  • Sprite Manager
  • Audio Manager
  • ...

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/710964/Abstract1.JPG http://posterous.com/users/10Eg1o3Szdv Richard Locsin Loki Richard Locsin
Thu, 09 Jul 2009 17:13:39 -0700 Ubiquity 0.5; Updated Ping.fm command http://blog.maloki.net/2009/07/ubiquity-0-5-updated-ping-fm-command http://blog.maloki.net/2009/07/ubiquity-0-5-updated-ping-fm-command Ubiquity 0.5 is out! If you currently have and older version of Ubiquity installed for Firefox, it won't automatically update since it would break a lot of other commands in the wild. If that's ok with you, you can download Ubiquity 0.5 at Planet Ubiquity. Of course, mine broke, too, and I just updated it! Whoo! I updated my Ping.fm Ubiquity command to use the new parser. Others should also be able to localize the command if they want to do so*. The old version of the command is still up just in case some issues pop up in this version of the command. There are still some tweaks (and maybe some other features) I want to put in but this is it for now. Time for me to get some sleep. It'll be a busy day at work later! -- *Well, not now, but probably in the future as:
"Community commands (those hosted on individual servers, locally, or on the herd), however, cannot be localized at this time." (via: Labs/Ubiquity/Ubiquity 0.5 Making Commands Localizable - 09.07.10)
Maybe soon...

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/710964/Abstract1.JPG http://posterous.com/users/10Eg1o3Szdv Richard Locsin Loki Richard Locsin
Fri, 29 May 2009 06:32:00 -0700 Don't Repeat Yourself using LINQ & Delegates http://blog.maloki.net/2009/05/dont-repeat-yourself-using-linq-delegates http://blog.maloki.net/2009/05/dont-repeat-yourself-using-linq-delegates

In one of my projects, I had to look for certain objects using certain qualifiers: ID, Name, ID & Name, etc… Without optional parameters (Hello C# 4.0!), I ended up with copying & pasting whole blocks of code: initializing, filtering, returning the result, error handling, etc. I wondered if there was an easier solution to that and then it hit me! LINQ & delegates!

Let’s start with a simple class:

public class Employee
{
    public string FirstName { get; protected set; }
    public string LastName { get; protected set; }
    public int Id { get; protected set; }
    //...and other methods...
}

Then, we have a List of Employees:

List<Employee> Employees = new List<Employee>()
    {
        new Employee("Juan", "dela Cruz", 1),
        new Employee("John", "Doe", 2),
        //and so on...
    };

Now let’s try making some convenience methods for retrieving a collection of filtered Employees.

public IEnumerable<Employee> GetByLastName(string last)
{
    IEnumerable<Employee> result = 
        Employees.Where(emp => emp.LastName == last);
    return result;
}

public IEnumerable<Employee> GetById(int id)
{
    IEnumerable<Employee> result =
        Employees.Where(emp => emp.Id == id);
    return result;
}

Quick & easy, yes? Now what if instead of a List, our collection of Employees isn’t that stable. We’d need to put each of them in try-catch blocks and add error handling. This can quickly become high-maintenance code.

Enter LINQ and delegates!

We then basically need one method that will contain all the error handling, initialization and whatnot. We just pass a delegate will filter the collection:

public IEnumerable<Employee> GetEmployee(Func<Employee, bool> query)
{
    try
    {
        //initialization
        IEnumerable<Employee> result = Employees.Where(query);
        return result;
    }
        //handling other exceptions...
    catch (Exception ex)
    {
        //Error handling
        return null;
    }
}

Did you notice: Func<Employee, bool>? All we need is to pass an expression that uses the Employee as input and returns a boolean (true if it passes the condition or false if not).

What does this mean? Well, we can now replace the convenience methods we wrote earlier with this:

public IEnumerable<Employee> GetByFirstName(string first)
{
    Func<Employee, bool> query = emp => emp.FirstName == first;
    return GetEmployee(query);
}

public IEnumerable<Employee> GetById(int id)
{
    Func<Employee, bool> query = emp => emp.Id == id;
    return GetEmployee(query);
}

We’re back to code that’s easy to maintain with all the initializations, error handling and other code blocks that you need.

You could even do away with the convenience methods and use lambda expressions all the way!

GetEmployee(emp => true); //get everything
GetEmployee(emp => emp.LastName.Contains("Locs"));
GetEmployee(emp => emp.FirstName == "Richard"
    && emp.LastName == "Locsin");

Have fun!


Related resources:

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/710964/Abstract1.JPG http://posterous.com/users/10Eg1o3Szdv Richard Locsin Loki Richard Locsin
Tue, 14 Apr 2009 03:50:07 -0700 On Drawing http://blog.maloki.net/2009/04/on-drawing http://blog.maloki.net/2009/04/on-drawing

Just something I said a while ago to Oyen on drawing...something I have to keep in mind myself.

Don't censor what you think. Don't throw away any ideas, just sort and archive. No matter how bad you think you draw, just do it. Pick up styles that you like and try to copy them. Explore other styles & copy them again. Along the way, you'll keep a certain style that's uniquely you.


I should really be carrying my Moleskine notebook and a few pens around...

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/710964/Abstract1.JPG http://posterous.com/users/10Eg1o3Szdv Richard Locsin Loki Richard Locsin
Mon, 13 Apr 2009 12:57:18 -0700 Braid: Soundtrack + Level Editor! http://blog.maloki.net/2009/04/braid-soundtrack-level-editor http://blog.maloki.net/2009/04/braid-soundtrack-level-editor

Braid is finally out on the PC. Jonathan Blow is working on some bugs. AAAAND there's the official release of the Braid Soundtrack, and a Level Editor!

Soundtrack

The Braid Soundtrack is available on Magnatune with two remixes of songs from the game (Maenam and Undercurrent by Jami Sieber, Jon Schatz remix)! The soundtrack itself is amazing. You can stream the music and listen if you don't believe me.

Level Editor

To get the level editor on Braid, add a "-editor" argument when running the game and press F11. The interface might be a little confusing but fortunately, documentation will be released soon:

Yeah, after I get a new version out in a few days that fixes the problems some people are having, and when more people have played/finished the game, I am going to post some documentation for the editor. The way it works is you can make levels with the editor (up to a full game, potentially) and run that with -universe later... also a tool will be released that lets you take Photoshop files and import them into the game, if you want to put new graphics in your levels.


Now that the "what if" there was a level editor has been fulfilled, we can expect user-created "what ifs" in the coming months, weeks, ...or even days? I'm excited :D

[gallery]
Source:Steam Forums (On Braid Soundtrack, Map Editor)

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/710964/Abstract1.JPG http://posterous.com/users/10Eg1o3Szdv Richard Locsin Loki Richard Locsin
Tue, 13 Jan 2009 09:07:04 -0800 Windows 7 Secrets http://blog.maloki.net/2009/01/windows-7-secrets http://blog.maloki.net/2009/01/windows-7-secrets Yesterday, I posted my first impressions on the Windows 7 Beta. Today, I've bumped into a great informative post by Tim Sneath with his 30 favorite secrets in Windows 7. Much thanks to Tim! Back From Retirement I was happy to find among them a way to bring back the old Quick Launch Toolbar! (#13)
  • Right-click the taskbar, choose Toolbars / New Toolbar
  • In the folder selection dialog, enter the following string and hit OK: %userprofile%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch
  • Turn off the “lock the taskbar” setting, and right-click on the divider. Make sure that “Show text” and “Show title” are disabled and the view is set to “small icons”.
  • Use the dividers to rearrange the toolbar ordering to choice, and then lock the taskbar again.
I just love the Quick Launch toolbar since it provides easy access the usual programs and folders I use without much clutter on the taskbar. No Shaking Required In my previous post, I also mentioned that the Aero Shake seemed impractical for non-touch/pen input. I guess Microsoft's answer to that is the shortcut: [Win+Home]. (#3) Hide and Go Peek When on keyboard intensive tasks such as writing and coding, I hate to move my right hand and reach for the mouse. Good thing there's [Win+Space] that reveals the Destkop like Aero Peek (#17), and [Win+1][Win+2], ...[Win+5] for quick access to the first 5 items on the taskbar (#11), and [Win+T] to shift focus to the taskbar (#21). (Note: [Win+T] works on Vista, too) Still More? These are just my favorite "secrets" from what Tim Sneath posted. I can't help but wonder what Microsoft is intentionally hiding from us, especialy after reading this from the Windows 7 Beta 1 review on TechRadar UK:
The beta is feature complete; although there are "a couple of things that we're holding back", according to general manager Mike Ybarra. ... "all of the code is in the build, just the discoverability is not." ...
Very Interesting...

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/710964/Abstract1.JPG http://posterous.com/users/10Eg1o3Szdv Richard Locsin Loki Richard Locsin
Mon, 12 Jan 2009 04:33:41 -0800 First Impressions on Windows 7 Beta http://blog.maloki.net/2009/01/first-impressions-on-windows-7-beta http://blog.maloki.net/2009/01/first-impressions-on-windows-7-beta Public Beta Release Last January 9, 2009, Microsoft released the Windows 7 Beta to the public. I don't think Microsoft expected much demand since the servers were facing technical difficulties. The put down the site to ensure a better download experience. The link to the ISO was shared by some helpful users and still worked. However, potential testers (including me) couldn't get a product key that would get past the 30-day limit. Fortunately, Microsoft more than made up for their overloaded servers by extending the key distribution until January 24. If you're interested, you can download the ISO, get a key and test Windows 7 yourself until it stops working on August 1, 2009. (By this time, maybe there will be another beta version / new key distribution...) To Test or Not I tried to resist beta testing Windows 7 but in the end, Windows 7 beta won. I finished downloading the Windows 7 x64 ISO (about 3.3 GB) & just got my product key yesterday morning (Sunday) and started testing shortly after. After a day of use, here's what I noticed, plus my comments/suggestions. I've tried to link to as much screenshots that I've taken to show what I mean. Windows 7 Itself
  • Installation & setup was easier & faster than XP. Installation + setup (including reformatting one of my partitions) took a little less than 30 minutes. This is about the same time Vista would take, if not less. Compared to XP though, this is way faster!
  • Just like in Vista, it recognized that XP was also installed so dual booting XP & Windows 7 was a breeze.
  • My NVidia 8800 GTs on SLI were detected and the drivers were automatically installed via Windows Update. The drivers were pre-release ones, too. Nice! (Oh yeah, Windows 7 uses DX11!)
  • Networking seems much easier for non-power users. "HomeGroup" seems much friendlier and faster to setup. (At least in theory, I couldn't test it myself...)
  • There are Control Panel Items for Biometric Devices, Tablet PC Settings, Pen and Touch, Location and Other Sensors, among others. This seems like a promising OS for alternative input devices & sensors.
  • User Account Control is less intrusive than Vista by default, but users can make it even more or even less intrusive by choosing when to be notified. Oh thank you!
New Taskbar
  • The new taskbar is nice but I kind of prefer the old one, with the Quick Launch toolbar. Well, the new taskbar is more functional though so maybe after some time I'd love it more.
  • Not only can programs be pinned to the taskbar, folders can be pinned there as well!
  • The taskbar takes some time getting used to. It's difficult to check at a glance what are running or open and what have just been pinned. - Well, you can opt to not pin anything at all to the taskbar but I find it too convenient to not use it! Hahahaha!
  • By default, the taskbar items are not labeled. If you want text labels on the items on the taskbar, you'd have to select an option that doesn't combine program groups. (looks very much like that in previous versions of Windows)
  • It's great that you can opt to use small icons if you find them too big.
  • Can go directly to a certain tab from different IE windows using the taskbar. As expected, this shaves off time spent switching between tabs & windows! ...doesn't work with Firefox (yet?) though...
Aero Shake
  • What it is: Drag a window and wiggle it around, literally shaking it, to minimize all windows except the one you're shaking
  • Aero Shake is nice but is more of a hassle for mouse-users.
  • On the other hand, this seems fun for pen/touch input.
Gadgets
  • No more side bar for Gadgets: Hover the mouse to the lower right part of the screen to hide all open Windows, revealing the Gadgets on your desktop.
  • At first, I didn't see the use of hovering the mouse to the lower right to reveal the desktop.  With no sidebar, I find the idea a logical one. Not only does it free up some screen/desktop estate, but it keeps you focused on your current window.
  • There's a Sticky Notes app (no longer a Gadget) but since it's an app, it occupies space in the taskbar. It would be nice to have the app run in the background (and show up only in the notifications area) but then maybe the normal behavior is to pin it to the taskbar for easy access...)
Accessories IE8 (default browser; but you can download the beta now, too)
  • Searching for terms in a page is a cross between searching on Firefox and on Google Chrome. The bar appears to be integrated into the top part of the browser (not a separate window), containing "Previous", "Next", "Highlight All Matches" and case sensitivity options. Good move, as I hated the in-page search of IE7.
  • There's an InPrivate mode, hiding your browsing history. This seems to be like the Incognito mode in Google Chrome, where the security/protection level is raised.
  • I love the automatically colored tabs! Colors are automatically set when you opt to open a link in a new tab, for a more organized browsing experience!
  • IE8 download progress within the taskbar! (I first thought it was a visual bug though :P)
  • IE accelerators: "Using Accelerators to find addresses, define words, and do other tasks with selected text". This reminds me of Ubiquity on Firefox and is very much welcome!
  • Styles are a bit messed up. Ex. Thumbnails on Plurk look weird, some rounded corners don't render correctly.
  • BUT, there's a compatibility view option. Sometimes, this fixes it. Other times, it doesn't since the way IE8 Compatibility view renders pages is NOT the same as the how IE7 does it. I don't know why not but maybe Compatibility View should render pages like they do in IE7.
Windows Media Center
  • Interface is much like the Zune.
  • It does not recognize the Zune as a device that can be synced to/with. :(
  • Buttons and text is huge, making it easier for alternate input methods like touch.
Concerns
  • My HP Deskjet 1180c is not supported under Vista, and so it's not supported by Windows 7 (hopefully, only for now).
  • I wonder if third-party developers would be given the option to take advantage of the new taskbar features such as the "Jump Lists". (Application-sensitive right click that allows you to "jump" to certain tasks. For example, the IE8 Jump List allows you to go to a recently visited page.)
  • Why isn't Windows Live isn't included in the ISO? It took me a long time to download the whole Windows Live Package (includes WL Call, WL Family Safety, WL Mail, WL Messenger, WL Movie Maker Beta, WL Photo Gallery, WL Writer).
  • IE8 is potentially another web designer headache waiting to happen. (IE8 seems to be two browsers in one: normal view & compatibility view...even three if you count the IE7 browser mode in the Developer Tools of IE8) ...at least, the Developer Tools are there to hopefully make this less of a headache...
Overall Windows 7 feels much like an overhauled Vista, but the changes are for the better. The release of W7 is still a long way from now (I'm guessing still a little over a year after) and even if this is still beta-ware, the experience is much better than that of Vista. I can definitely see the potential of this replacing Vista, and hopefully replace XP as well. I do not recommend using this Beta OS as your main OS. There may be bugs, glitches that may corrupt valuable data. By default, the OS sends usage info (for bugs, glitches) back to Microsoft and it's wise to keep it away from sensitive data. Aside from that, this will stop working on August 1, 2009 so there must be an OS you can fall back to. If you're fine with that and can burn an ISO, install an OS and troubleshoot yourself, then go ahead! Past the time limit, the possible bugs, glitches and driver problems, I can definitely see myself getting Windows 7 as my next OS. Hopefully, Microsoft doesn't rush this into the market and commit the same mistake they did with Vista. -- Other links you might find interesting:
[gallery]

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/710964/Abstract1.JPG http://posterous.com/users/10Eg1o3Szdv Richard Locsin Loki Richard Locsin
Tue, 06 Jan 2009 07:53:10 -0800 Our Flag is Secure! http://blog.maloki.net/2009/01/our-flag-is-secure http://blog.maloki.net/2009/01/our-flag-is-secure Shazbot!!! I'm so excited that the TribesNext project has stepped up to fill in the gap that formed since Sierra dropped the Tribes 2 online multiplayer servers last November 1, 2008. On the site they boast:
  • Robust, fully integrated and automated account system. No need to wait or worry, you can create and log in to your account to play right away!
  • High-grade account security. Your account is protected by a 512-bit (or higher) encryption key generated on registration.
  • Authentication server down, but you've already created an account? No problem! Just log in and play.
  • No waiting for a human to create your account; no need to alt-tab to fully use the game; no need to worry about account theft.
  • No need for a CD-Key! The game is completely free to download and play, so go ahead!
It's a FREE, ONLINE, MULTIPLAYER game people! An FPS/TPS game complete with futurisitc weapons, vehicles, classes, large scale maps, flags, bases and jetpacks! ...with 64-on-64 epic battles! If you were too busy playing Counter-strike in the summer of 2001, you might have missed this awesome game. And now, here's your chance! Oh Sierra, I just hope you don't away our dreams! If you do, we'll be going after you with our spinfusors!

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/710964/Abstract1.JPG http://posterous.com/users/10Eg1o3Szdv Richard Locsin Loki Richard Locsin
Mon, 05 Jan 2009 04:18:00 -0800 Inverse Square Root http://blog.maloki.net/2009/01/inverse-square-root http://blog.maloki.net/2009/01/inverse-square-root

I just bumped into a clever little code snippet used to find the inverse square root:

float InvSqrt(float x) {
    float xhalf = 0.5f * x;
    int i = *(int*)&x;   // store floating-point bits in integer
    i = 0x5f3759d5 - (i >> 1);  // initial guess for Newton's method
    x = *(float*)&i;  // convert new bits into float
    x = x*(1.5f - xhalf*x*x);  // One round of Newton's method
    return x;
}

[ taken with comments from Kalid Azad @ BetterExpalined.com: Understanding Quake’s Fast Inverse Square Root. ]

Ok, it does not get the exact value but you get a good enough estimate, FAST!

There are two important things to note here:

For a better explanation, I suggest reading Kalid Azad’s article and the paper by Charles McEniry.

Wait a minute, so why is this useful?

In graphics programming, this can be used to normalize vectors quickly. If you noticed the title on the first link, it’s used in the Quake 3 engine. So does that mean the legendary John Carmack wrote this code? If you’re interested, you can read the Origin of Quake3’s Fast InvSqrt() at Beyond3D.

What did I learn?

I usually forget one thing: there are times when speed trumps accuracy. A close quick estimate would be better and there are a number of optimations that can be made. Much thanks goes to Doc Mana who first introduced me to the Newton-Raphson method & how to apply it on code. 

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/710964/Abstract1.JPG http://posterous.com/users/10Eg1o3Szdv Richard Locsin Loki Richard Locsin
Thu, 11 Dec 2008 05:39:06 -0800 On the Truth About Santa http://blog.maloki.net/2008/12/on-the-truth-about-santa http://blog.maloki.net/2008/12/on-the-truth-about-santa To study Santa Claus under the light of common sense might not be sufficient to understand this Christmas phenomenon. Relativity and quantum mechanics have broken our understanding on how the world works. These theories have helped us understand the very large and the very small. In the same manner, they may be the keys to unlocking the real truth behind the dual-nature of Santa: a very large man (especially compared to the kids) traveling as a very small vehicle (compared to the earth). Spacetime Gravitation is a natural phenomenon by which objects with mass attract one another. With Santa's large figure (in which, he gains 2950.7 tons during the night) and the load of the sleigh of 321,300 tons (as mentioned in "The Truth about Santa"), the whole entity travelling during Christmas eve is truly massive! In this massiveness, we also get a significant amount of gravity. Santa would bend the dynamic spacetime and travel around the world with relative ease! Santa's initial mass would be really significant given the number of presents he has to bring. Along the way, he drops off these gifts in exchange for the milk and cookies (so don't forget to leave some milk and cookies!). As he builds up momentum during the night, the mass needed to bend spacetime decreases. Santa would probably explode if he had to exchange all 321,300 tons of gifts in body mass! The Truth of Uncertainty With Santa being a relatively small entity traveling around the world, one cannot be absolutely certain of both his position and velocity at a certain time.
"In quantum physics, the Heisenberg uncertainty principle states that the values of certain pairs of conjugate variables (position and momentum, for instance) cannot both be known with arbitrary precision. That is, the more precisely one variable is known, the less precisely the other is known. This is not a statement about the limitations of a researcher's ability to measure particular quantities of a system, but rather about the nature of the system itself."
Given the different timezones around the world we are certain to an extent that Santa would visit during these times. With nature of Santa's visits however, we are not certain to exactly where he is. Clincher: Does Santa Exist? Let's review the thought experiment on Schrödinger's cat:
"Schrödinger's Cat: A cat, along with a flask containing a poison, is placed in a sealed box shielded against environmentally induced quantum decoherence. If a Geiger counter detects radiation then the flask is shattered, releasing the poison which kills the cat. Quantum mechanics suggests that after a while the cat is simultaneously alive and dead. Yet, when we look in the box, we see the cat either alive or dead, not a mixture of alive and dead."
In uncertainty, Santa is simultaneously in existence and non-existence. When that uncertainty is broken, he will now either exist or not. For the believers, they are certain that he exists with the gifts he brings. For the non-believer, they are certain that he doesn't exist because they don't get gifts. This is the same reason why Peter Pan asks those who believe in fairies to clap their hands. It must be noted though that this certainty is not permanent and might change (typically during parenthood). Shun the non-believers! -- *Note: I did not major in physics and I might have used these terms and theories loosely and incorrectly. I do, however, find much interest in these theories as they try to explain everything around us.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/710964/Abstract1.JPG http://posterous.com/users/10Eg1o3Szdv Richard Locsin Loki Richard Locsin
Fri, 21 Nov 2008 03:25:20 -0800 Found on the Internet http://blog.maloki.net/2008/11/found-on-the-internet http://blog.maloki.net/2008/11/found-on-the-internet Got this form Paulo Coelho's blog:
Number 7 Life is sexually transmitted. Number 6 Good health is merely the slowest possible rate at which one can die. Number 5 Men have two emotions: Hungry and Horny. If you see him without an erection, make him a sandwich. Number 4 Give a person a fish and you feed them for a day; teach a person to use the Internet and they won’t bother you for weeks. Number 3 Health nuts are going to feel stupid someday, lying in hospitals dying of nothing. Number 2 All of us could take a lesson from the weather. It pays no attention to criticism. Number 1 In the ’60’s, people took acid to make the world weird. Now the world is weird and people take Prozac to make it normal.
These are interesting takes on life; quite true too. Do you agree? Hmm...Right now, I'm hungry. Hahahaha!

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/710964/Abstract1.JPG http://posterous.com/users/10Eg1o3Szdv Richard Locsin Loki Richard Locsin
Sun, 09 Nov 2008 22:58:00 -0800 Quadrox: Yet another Tetris clone http://blog.maloki.net/2008/11/quadrox-yet-another-tetris-clone http://blog.maloki.net/2008/11/quadrox-yet-another-tetris-clone

I had to make one myself. I just had to. I just started last Friday and it didn't take long to get it going with XNA. I just wanted it to behave similar to Tetris DS + other rules I picked up from Heboris, and that took some time... (plus, I wanted to watch Madagascar 2 & Quantum of Solace, too, and did. :D). If you want the game, it's here: Quadrox v. 1.1. Quadrox v. 1.1.1.

Installation:

  • Unzip Quadrox_v1.1.zip into a temporary folder (doesn't really matter where, as long as you remember where it is).
  • Open that folder and run "setup.exe" and continue with the installation.
  • If you don't have the prerequisites ( .NET & XNA frameworks, the setup will download them)
  • When it's done, it will automatically run the game in windowed mode.
  • I'm not sure but I think the temporary folder can be deleted at this point...

Uninstallation:

  • It can be found in the Add/Remove programs in XP and in Vista's counterpart (not sure what it is, sorry).

Just a summary on the project:

Motivations

  • Something to play while waiting for a download job. (Does not require an internet connection & can just pick up and play)
  • Tetris with my desired ruleset (at least attempt to get it)
  • Simple UI that does not distract you from the game
  • Practice C# and using XNA :P
  • Non-intrusive app
  • Lightweight (well it is, except for the need for the .NET & XNA frameworks... )

Features

  • Can select starting level: 1-30
  • Can spin the current block while it hasn't been locked.
  • Can hold blocks
  • Always in "Endless mode" - You don't stop after reaching level N.
  • Shows you your next 7 blocks = more strategy, less luck.
  • Can run in windowed or full screen mode
  • "Secret" INVISIBLE MODE - toggled at the Game Over screen (F9). Well, not a secret anymore...

Known Bugs:

  • Rotation when trying to slip in some bricks does not behave as intended. (Thus some S/Z/T-Spins might not be possible)
  • Starting position of some blocks may seem lower or higher than others.

Future of the Project:

  • Add pre-spinning blocks before the blocks spawn on top.
  • Add ability to pause the game - hahahaha!
  • [Change UI]
  • [Might add some sounds]

If you find any bugs, have comments/suggestions, please leave a comment or contact me using the Contact link. Thanks.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/710964/Abstract1.JPG http://posterous.com/users/10Eg1o3Szdv Richard Locsin Loki Richard Locsin
Wed, 03 Sep 2008 03:00:53 -0700 Google Chrome is here and it's really fast! http://blog.maloki.net/2008/09/google-chrome-is-here-and-its-really-fast http://blog.maloki.net/2008/09/google-chrome-is-here-and-its-really-fast Get it now! It's cleaner, faster, and it's fun too! Aside from the features listed in the features page, here are my first impressions: The Good:
  • You can import bookmarks, passwords, etc. from your current browser
  • It's noticably faster
  • Cleaner = More page real estate! (It may take some time for me to get used to this...)
  • Text in the address bar is more readable (it's bigger!)
  • Firefox shortcuts work! (Alt+D/Ctrl+L, Ctrl+J, Ctrl+H, etc..)
  • Autocomplete isn't intrusive and it really works
  • Draggable tabs (moving them like FF...and OUTSIDE to put them in their own window!)
  • Speaking of tabs, you can also drag your Firefox tab to Google Chrome! 
  • There's Incognito mode (or "porn mode" if you're the type)
  • The new tab page is unexpectedly useful
  • Did I mention it's really fast? Wooo~! JavaScript!
  • When right-clicking on a link, "Open link in new tab" is the first option instead of "new window." It also loads NEXT to your current tab, not at the end like in Firefox
  • If one page causes a crash, the other tabs are unaffected. Finally!
  • Downloads window is now a Downloads tab. Less intrusive = better
  • When searching for terms, results outside the visible area is shown in the scroll bar! Neato!
The Bad:
  • No spell check Whoops! I think it's just wordpress...Or maybe it's new? Ooh! they updated it!
  • No real-time search in the History tab
  • No user profiles
  • No "master password" to protect all your saved passwords
  • Plugins/Extensions are (currently) missing. (If you're extension-depended, stick to your current browser...for now at least)
  • The feed button is nowhere to be seen (tell me if you find it)
What do you think? Right now, I can't help but still use Firefox along with Google Chrome...
Either way, Google Chrome is worth a try! It's not mind blowing but the experience is just more pleasant.
UPDATE: Some things you might not know... Regarding the spell check thing, I think it was an update they released on their part. Here's some info on their Google Chrome Terms of Service:
12. Software updates 12.1 The Software which you use may automatically download and install updates from time to time from Google. These updates are designed to improve, enhance and further develop the Services and may take the form of bug fixes, enhanced functions, new software modules and completely new versions. You agree to receive such updates (and permit Google to deliver these to you) as part of your use of the Services.
Also, here are some things you might want to know:
17. Advertisements 17.1 Some of the Services are supported by advertising revenue and may display advertisements and promotions. These advertisements may be targeted to the content of information stored on the Services, queries made through the Services or other information. 17.2 The manner, mode and extent of advertising by Google on the Services are subject to change without specific notice to you. 17.3 In consideration for Google granting you access to and use of the Services, you agree that Google may place such advertising on the Services.
Well, for me it's fine (as long as they're unobtrusive). Do you agree?

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/710964/Abstract1.JPG http://posterous.com/users/10Eg1o3Szdv Richard Locsin Loki Richard Locsin
Tue, 02 Sep 2008 03:44:35 -0700 Google Chrome http://blog.maloki.net/2008/09/google-chrome http://blog.maloki.net/2008/09/google-chrome
Oooh...Google Chrome: Google's new browser. (Comics & Blog) This will be interesting indeed. Hooray for open source~! More code to mess around with. :D On another note: I think I'm going overboard with my code... C#
info["Errors"] = context.AllErrors == null ?
    "" :    string.Join( "<br/><br/>",
        (from error in context.AllErrors
        select String.Format( "{0}<br/>{1}",
            error.Source, error.Message))
       .ToArray<string>());
Whee~! Single line of code. Aw hell, it's only test code. *Used Ubiquity for Sytax-highlighting...let's see how it turns out.

Posted by email from goofydelinquent's posterous

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/710964/Abstract1.JPG http://posterous.com/users/10Eg1o3Szdv Richard Locsin Loki Richard Locsin
Sun, 31 Aug 2008 17:17:01 -0700 Ubiquity: Connecting the Web, Empowering Users http://blog.maloki.net/2008/09/ubiquity-connecting-the-web-empowering-users http://blog.maloki.net/2008/09/ubiquity-connecting-the-web-empowering-users Ubiquity: Why should I care? Last week, I learned about this nifty Firefox tool called Ubiquity. What is it?
Ubiquity is an experimental Firefox extension that gives you a powerful new way to interact with the Web. You're used to telling Firefox where you want to go by typing Web addresses into the URL bar. With Ubiquity installed, you'll be able to tell Firefox what you want it to do by typing commands into a new Ubiquity input box.

(Source: Ubiquity 0.1 User Tutorial)

It's experimental and it's only on version 0.1 but hey, it's a prototype that just WORKS! Okay, so what can it do? Here's a video by Aza Raskin to show you more about it: (Watch it. I promise that you won't regret it.)

(Source:Ubiquity for Firefox from Aza Raskin on Vimeo.) Neat stuff. I, myself, am so excited that I can't help but try messing with Ubiquity. The result: A Ubiquity command for Ping.fm. Ping.fm: Updating social networks in a snap With a lot of social sites around (like Facebook, Twitter, Tumblr, Plurk, Livejournal, Yahoo! 360, Delicious, etc.), I can't help but be a member of a number of them. What usually happens is that some of my friends on one network is not a member of another. To update everything would be a pain and so there's Ping.fm!

Ping.fm was created for the sole purpose of making it as easy as possible to share your posts with the world. Now you don't have to fumble around the web in order to post anymore, you can just post once, and be done with it.

(Source: Ping.fm/About)

If you want a Ping.fm account, the current beta code is: "legendofping". [Checking the different social sites is a different story. I suggest using Socialthing! I currently have one free invite for SocialThing so if you want in, just ask me. ] Ubiquity + Ping.fm So here I am now, with my Ubiquity command written for Ping.fm. I'm pretty proud if it and have used it a lot recently. It's so much easier to share things on the web. Highlight, type some text and you're good to go! If you want to get Ubiquity on Firefox, you can download it from here. To install and use my Ubiquity command for Ping.fm, just follow the instructions I wrote in there. NOTE: After clicking on the Subscribe button, you'll reach a scary warning page that says "Ubiquity Command from Untrusted Source." Just click on "I know what I'm doing. Subscribe to it!" to install the command. Don't worry, I promise you that nothing in there is harmful to your computer and does not violate your privacy. This command only allows you to post to different social sites using Ping.fm and that's it. The source code is available for you to check if you don't trust me. At the moment, you're always being warned when installing a command as mentioned here. If you have any problems/comments/suggestions, email me or comment below. Have fun with Ubiquity! If you develop some commands yourself, don't be shy and share it! UPDATE1: Ubiquity has been updated and breaks your current subscriptions. For your current subscriptions to work again, you may need to unsubscribe & resubscribe to them. UPDATE2: Ping.fm is now in OPEN beta! No more beta codes needed!
You might also want to check out:

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/710964/Abstract1.JPG http://posterous.com/users/10Eg1o3Szdv Richard Locsin Loki Richard Locsin
Tue, 29 Jul 2008 03:48:54 -0700 "i" was and is a mistake http://blog.maloki.net/2008/07/i-was-and-is-a-mistake http://blog.maloki.net/2008/07/i-was-and-is-a-mistake Open a new tab or window and do a search on "reasons to avoid" and what do you see? Go on, do it. What do you see? At the time of writing, I got 5 reasons to avoid iPhone 3G:
  • iPhone completely blocks free software. Developers must pay a tax to Apple, who becomes the sole authority over what can and can't be on everyone's phones.
  • iPhone endorses and supports Digital Restrictions Management (DRM) technology.
  • iPhone exposes your whereabouts and provides ways for others to track you without your knowledge.
  • iPhone won't play patent- and DRM-free formats like Ogg Vorbis and Theora.
  • iPhone is not the only option. There are better alternatives on the horizon that respect your freedom, don't spy on you, play free media formats, and let you use free software -- like the FreeRunner.
Coming from the Free Software Foundation, it pretty much sounds like an ad for the NeoFreerunner from OpenMoko (and yeah, I do want one or something similar, like one that supports the Google Android - despite this little issue). Sure, you can "jailbreak" an iPhone but do we have to keep I've never owned an iPhone but Lifehacker does and knows more about it that I do. I admit at one point I did want an Apple laptop but that's just it. I wanted the laptop just for the sake of owning one but not really using one. It looks cool but using it is a different story. Last night, one topic raised during our family dinner was regarding buying an Apple laptop. I said that I would not get an Apple one for two main reasons:
  1. After using the Microsoft's OS's for over 10 years, I don't find Mac's OS user-friendly. It looks cool but function should take priority over form.
  2. It's overpriced. Want proof? Here's a comparison of the Dell Inspiron 1720 and a MacBook Pro 17-inch:
Media_httpblogmalokin_ciavo
Let me quote one redditor, GlueBoy:
While it's true that there are advantages to an apple computer in software and hardware and tech support and whatnot, it's insufficient to justify a nearly $2k price difference. What it comes down to is paying for style over substance, and anyone who says differently is lying or stupid.
Ok, what I do own is an 4th generation 20 GB iPod. I'm quite satisfied with it, despite the fact that I had to get it fixed last year when I got this error (cute icon though), and a year before that. But that's just it! I've become used to it and had been drowned by the hype that I didn't bother with complications Apple didn't mention.
  • I have to use iTunes to import songs into my iPod and to listen to them while it's connected to my computer. Thankfully, there are quite a number of hacks out there so that I don't have to use this memory hog. Aside from that, there are Linux apps (with much resistance from Apple) that can read the iPod's weird file storage system that brings me to point #2.
  • I cannot export the songs I have on my iPod, even if I got the files from that computer in the first place. Let's say I have my music library in my iPod & hard drive. For some reason, my hard drive got corrupted so my whole music library is lost. I cannot intuitively transfer the songs in my iPod back to my computer. I need to download more hacks to be able to that. I try copy the contents of my iPod as is, but it's not human readable.
If we give more "value" to such terms, we might end up in a grim world for consumers. Finally, just to end on a lighter side:
Media_httpblogmalokin_acafj
(images from: reddit: The problem with Apple, Apple iMac vs Dell XPS 410)

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/710964/Abstract1.JPG http://posterous.com/users/10Eg1o3Szdv Richard Locsin Loki Richard Locsin
Tue, 15 Jul 2008 22:53:07 -0700 E3: Nintendo and Sony: Need less "meh" http://blog.maloki.net/2008/07/e3_nintendo_son http://blog.maloki.net/2008/07/e3_nintendo_son Is it just me or does Nintendo's E3 press conference feel a bit weak? Well, three things stuck after watching the conference:
  • Animal Crossing:City Folk on the Wii!
  • WiiSpeak = The voice chat everybody wanted but not exactly what they asked for (A "room-wide" mic? I don't know how this will work in noisy room-mates...)
  • MotionPlus: True 1:1 motion recognition (also something new for those who hack the Wii to mess with :D)
A GTA on the DS was also mentioned, with the same gameplay as other GTAs, as well as a new Guitar Hero (Decades) on the DS. At the end of Nintendo's press conf., Reggie talked about creating Nintendo being a company that seeks and creates "new advantages." Nintendo has clearly done this with the Wii and the DS and I can't help but think of this book that I'm reading: Blue Ocean Strategy: How to Create Uncontested Market Space and Make Competition Irrelevant. If you like reading about business strategies, you might want to pick it up. I've only read the first few chapters so far and it's really interesting. The press conference seems quite light. No big surprises. -- On Sony: well I could say is that the stage was set up quite nicely and presenting would have been awesome. The conference itself, well, seems quite boring (and as I watch the speaker, I can't help but think of him thinking: "Yeah, FFXIII is not exclusive after all. Yeah, Rock Band 2 is exclusive to the Xbox 360. Yeah, we don't have Bioshock. Yeah, whatever and sorry.). It's probably because I don't really own a PS3 or a PSP (well, that can change with your help >:) ), but probably not considering they also talked about the PS2 and that might get a PS3 if the price is right and the games, sufficient. Right now, I am more likely to buy a PS3 because of Blu-ray rather than because of its exclusive games (at the moment, I can only think of MGS4). In consolation, the use of a custom Little Big Planet level to do the presentation was pretty cute. Also, if you're still awake later in the conference, they show Resistance: Retribution for the PSP and DC Universe Online for the PC/PS3. Finally, there's inFAMOUS and MAG: Massive Action Game (massive 256-player action game on the console, specifically the PS3). If MAG turns out well, it may just be the game I'm looking for. (If ANYONE can make a game close to the Starsiege:Tribes and Tribes 2, I'm sold.) -- The Big Three have spoken at their respective conferences but news, gameplay pics and videos, demos are still everywhere...

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/710964/Abstract1.JPG http://posterous.com/users/10Eg1o3Szdv Richard Locsin Loki Richard Locsin
Tue, 15 Jul 2008 00:11:00 -0700 E3: Microsoft Press Conference = Sony Fails! http://blog.maloki.net/2008/07/e3_microsoft_conf_sony_fails http://blog.maloki.net/2008/07/e3_microsoft_conf_sony_fails Guess what? Final Fantasy XIII is NOT exclusive to the PS3 after all! Wiki has been updated. Also check the bottom part of the Gamespy article referring to the conference itself. Finally, here's an article dedicated to that surprise.
Closing out the Microsoft press conference was an announcement by Square Enix President Yoichi Wada. After commenting on his company's growing relationship with Microsoft, one of the biggest announcements of the show was made. The next game in the company's blockbuster mega-franchise, Final Fantasy XIII, will be coming to the Xbox 360 as part of a simultaneous release in North America and Europe.
Now, if only MGS4.... Oh yeah, Fallout 3 looks awesome! I didn't think Bethesda could pull of a Fallout game in first/third person. After looking at the demo, I just can't wait!

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/710964/Abstract1.JPG http://posterous.com/users/10Eg1o3Szdv Richard Locsin Loki Richard Locsin
Fri, 11 Jul 2008 03:55:01 -0700 Geekgasm: All 11.5 inches of Sams Aran http://blog.maloki.net/2008/07/geekgasm-all-115-inches-of-sams-aran http://blog.maloki.net/2008/07/geekgasm-all-115-inches-of-sams-aran First 4 Figures is at it again! By just looking at the pictures and reading the specs, I'm having a major geekgasm!
First 4 Figures is extremely proud to present the ultimate version of the Samus Aran's Phazon Suit. ...has used the official game files in order to create an extremely accurate recreation of the Phazon suit, with pose inspiration taken from official Metroid artwork. We completely reengineered the original Varia suit model to make the Phazon suit by casting it entirely in transparent resin, adding over 25 LED lights through the suit and finished it off by adding a mirror base which really shows off the lights. When the lights are turned off, an internal IC chip allows for the lights to fade out slowly. ... The Phazon Suit is highly limited at just 1500 pieces worldwide. Height: 11.5 inches across base SRP: Price: $224.99 Available: Q1-2009
I'd gladly accept this as a Christmas/Birthday/No-occasion-at-all gift. :D (Just in case you didn't know, my birthday is January 9.) Remember: Phazon Suit. First 4 Figures. Gift. Richard. :P Will also be accepting an Optimus Maximus Keyboard in black. :D
Media_httpblogmalokin_ihxpa
Media_httpblogmalokin_ueoia
Media_httpblogmalokin_mgyql
Media_httpblogmalokin_izkud
Media_httpblogmalokin_fdeob
Media_httpblogmalokin_hpmjy
Media_httpblogmalokin_jbfrh
Media_httpblogmalokin_yqcrj
(Images and info from First 4 Figures.)

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/710964/Abstract1.JPG http://posterous.com/users/10Eg1o3Szdv Richard Locsin Loki Richard Locsin