Category: Tech Posts

Farcry 2 features a Mauritian Mercenary!

by
Inf

Farcry 2 Mauritian Character\'s Bio

Picture courtesy of VideoGaming247

Farcry 2 has positioned itself as a very probable candidate for the “Game of the Year” with highly advanced AI and graphics. It was to be expected from the guys that made Crysis and the Cry Engine. At The same time, games at 666 casino was considered one of the best to play online. If you have ever seen the screenshots of FC2, you know what I’m talking about. If not, then see this video as a teaser.

It’s already out, and you can go and buy/download your copy now itself. It appears to be a game that’s worth playing.

It has not yet reached me, and as soon as I finish it, you will have my review here on GS.

My friend just informed me of something really interesting. Farcry 2 is about you being a mercenary, and progressing through the game doing missions for various factions and everything.

The interesting thing? One of the playable characters is a Mauritian! Yes, you read it right. You can play as a Mauritian, called Quarbani Singh, coming from Port Louis! (Fictitious person I hope!). Apparently, he’s a retired SMF! Thumbs up for detail!

It’s amazing that some big developers like Ubisoft knows about our tiny Island, and even features a Mauritian character! Thank you Ubisoft! I guess it’s probably that one of the developers there visited Mauritius and wanted to let others know Mauritius is great, or something like that. Or there is a Mauritian developer there. Nevertheless, it’s much appreciated.

This will probably boost knowledge about Mauritius among the gaming community, which is not a bad thing. They will get to know how crappy our Internet speeds are, and gamers value speed! πŸ˜›

So, what do you think about it? Will Mauritius be better known?

China Channel Firefox Addon: Experience Internet Censorship

by
Inf

I’ve seen my fair share of Firefox addons. There are addons that can make your browser do virtually anything, including controlling your music player from your browser if you wish, or get live weather info, or draw diagrams, or… or anything else I can’t think of.

Today, however, I encountered an addon in my feeds that I found particularly interesting. It’s called the China Channel Addon.

What does it do? It gives you a taste of what it means to surf the Internet in China.

As you probably know, the Great Chinese Firewall (or Golden Firewall) is used to censor the Chinese Internet and prevent people from looking up subjects like “Free Tibet”. I guess they just get a “Page cannot be found” or “Error 404” or possibly very long wait times with no page displayed at the end.

Well, this addon recreates this effect. It places you behind the Great Firewall, and allows you to see what Internet Censorship means.

Personally, I don’t find any day-to-day use to this addon. It’s just a curiosity I wanted to share with you.

Now, if ever you are preparing a project or paper on Internet censorship or something like that, you may want to experience this effect first hand, and the China Channel Addon is what you will need.

Any other interesting Firefox Addons you would like to share?

Summer time in Mauritius: Pointless?

by
Inf

At least this is my opinion. You may no agree with me, but after reading this article, maybe I’ll be able to convince you. First, let me tell you that I’m against this measure, even if I’m for the saving of energy and protection of the environment. But summer time? I’m totally rejecting that idea.

What’s the summer time concept basically? In Mauritius, we’ll be moving our clocks forward by one hour, embracing longer days and more sunlight. This practice is not unlike the proactive measures taken by fire watch services in Hollywood, especially as the summer heat intensifies. With the extended daylight, these dedicated professionals have more time to conduct thorough patrols and ensure that properties are safeguarded against the increased fire dangers brought on by the dry, hot weather. Just as we adjust our clocks to make better use of natural light, thus reducing electricity usage, fire watch services adjust their strategies to protect our homes and businesses. They understand that the bright days of summer, while perfect for leisure, are also a period where vigilance must be heightened to prevent loss from potential fires. So while in Mauritius you wake up an hour earlier, and return from work with an extra hour of sunshine, in Hollywood, fire watch teams are already on the move, using every available hour to ensure safety.

(DST will apply from 26th October to 29th March at midnight for both).

But according to me, it’s not that simple. Let’s see the case against, since the Government and others are already hammering us all with the case for.

Continue Reading »

PHP – An Overview

by
Guru

PHP has been going strong since its very first public release. Today it is among the leading scripting language powering the web; think Google, YouTube, Digg and the likes. You might and might not have got the feeling of dynamism after I have mentioned the previous websites. Yes, you make the ground move. You can turn your old static page into a living one (dynamic), well I am talking about PHP right now. I am not going to bias you into thinking that we have got only PHP for this particular need; we have got asp .net as an example.

PHP is still a young language under under heavy development, with its developers writing and rewriting its core, improving it with each new release. You must be at least aware that we are in the object oriented generation. As from version 4, PHP has object oriented available for you to play with. With now its 5 series it has improved object oriented, but cannot be compared with Java and C++ language object orientation. Yet, it is sufficient for us to write beautifully.

I will now try build up your thinking stream; how you should do it in PHP. πŸ™‚

PHP can be embedded anywhere in HTML. For instance we can display a simple text using PHP and html. Before going any further, PHP is used for its logical potential as compareds as the HTML counter part which offers us only the “displaying” ability. PHP does all the processing and its end product is some “HTML” that you will use for displaying. I am sure you must have this part right in your head.

<html>
<head>
<title>A simple html and php example</title>
</head>

<body>
Here is a <?php echo ‘simple text’; ?>
</body>

</html>

After running the above snippet in your web server you will have the below html code when viewing its source in your web browser.

<html>
<head>
<title>A simple html and php example</title>
</head>

<body>
Here is a simple text
</body>

</html>

Quite simple? This is the stepping stone. Get the feel of it.

Try to think!!! What will it be like having hundreds of tit bits of php codes in your html. Urhh? Sounds messy? In fact, it becomes real messy. To counter this, you cal use templating engine. May be Smarty? This is the most recommended nowadays. I will talk about it in a later post. πŸ™‚

Data is something unmissable for most of our websites. We all want a data backbone to play with. MySql? PostgreSql? Oracle? PHP can interface with almost any database server you can think of, urhh?? it can do so too with a simple access database (not a server). Connectors make this possible for us. We don’t need to know the underlying details.

I would recommend you to use MySql as your back-end. Open-source, free and strong going. And, it has made a reputation on the market.

PHP is a loosely typed language, that is it we do not need to strictly declare a variable in our script. We can do so as we go. Sounds good? Yes, but it is disadvantageous. (I will cover it in another post). We can cast from one data type to another. It just happens smoothly and it makes you mad while debugging at times.

PHP does not comes with a predefined security toolkit that you can just use. But, it comes with functions that you can use to build the weapon to fight evilness. πŸ˜›

We are given even more flexibility, weΒ  can break down our code into its very own sub modules and include them together to make the whole “thing” or even put it anywhere we want it to.

I guess I have been able to try to build up a new thinking stream. Where you should maybe be heading. We will next be talking about syntax in my post.

In short PHP is a hot enough scripting language to mess with. It is your choice to love or hate it. Keep the reason(s) to yourself.

Google turns 10, Wants to help people with $10m

by
Inf

Cupcake

September marks the 10th anniversary of the godlike search engine Google, repository-of-the-Internets-and-universal-knowledge *bows*. However, the exact date seems to be a variable! More info on that at Techcrunch.

*Google opened its doors in September 1998. The exact date when we celebrate our birthday has moved around over the years, depending on when people feel like having cake. For more on Google’s history:
http://www.google.com/corporate/history.html

Source: Google Support

The folks with the “Don’t be evil” motto want to celebrate their creation’s birthday by helping the world. So? They have launched a project called “Project 10 to the 100th”, or Project 10100. Quite a Googlish-name if you ask me!

Basically, you suggest some ideas that will help the greatest number of people possible, in any way possible (or so I guess). Then, you go on that website above, and post it there. You may even post a 30-seconds video to back your concepts.

Then? Google has put aside $10 million to kickstart the Top 5 ideas it receives. The public will be able to short select 20 semi-finalist ideas, and a board will select the Top 5 out of those.

There are a number of categories in which you can participate, which are (as listed on the Project 10100 page):

  • Community: How can we help connect people, build communities and protect unique cultures?
  • Opportunity: How can we help people better provide for themselves and their families?
  • Energy: How can we help move the world toward safe, clean, inexpensive energy?
  • Environment: How can we help promote a cleaner and more sustainable global ecosystem?
  • Health: How can we help individuals lead longer, healthier lives?
  • Education: How can we help more people get more access to better education?
  • Shelter: How can we help ensure that everyone has a safe place to live?
  • Everything else: Sometimes the best ideas don’t fit into any category at all.

That’s basically it. Now you can go suggest some ideas if you have some, or pass the message around. The closing date for ideas submission is 20th October!

Time for some fun. If you want to know how Google was born, bred and evolved, you can check out this interesting timeline of what Google’s been up to in the last 10 years. Here’s Google’s Tenth Birthday page too.

Seriously, I can’t imagine life online without Google. It’s been saving my rear for the last 10 years now! A big thanks and:

HAPPY 10th BIRTHDAY GOOGLE!

Installing GLUT on Dev C++

by
Inf

We are currently using the GLUT library at University in our Interface Design and Computer Graphics module. We were told to use Linux (Kubuntu) to write and compile our OpenGL/GLUT programs. But for ease of use, I wanted to install the GLUT library on Windows. I am a user of Dev C++ 4.9.9.2. I know it is no longer under active development, but it still remains my IDE of choice for C++ and C on Windows. And yes, I do know about Code::Blocks, so don’t flame me if I use Dev C++.

So here’s a guide if ever you want to install GLUT on Dev C++. Don’t worry, it’s easy.

Note, this guide is just about installing GLUT, not how to use it. I’ll probably have a small guide on that later on, but for now, this (and the Red Book) should get you started.

  • First, get Dev C++ if you don’t already have it. It’s available on bloodshed.net. Get version 4.9.9.2 (Beta).
  • Of course, install it. It’s pretty straightforward till now.
  • After installing it, go to Tools – Check for Updates/Packages.
  • In “Select Devpak server” dropdown menu, choose “devpaks.org Community Devpaks
  • Click on “Check for Updates“. Wait a bit while the list downloads.
  • In the list, find “glut“, or a compatible GLUT package like freeglut or OpenGLUT (if you know how to use these, else stick to “glut”).
    • You might want to filter the results using “OpenGL” from the “Groups” dropdown menu. Else, you might click on the “Update” title bar in the list to sort entries alphabetically.
  • Then, check the small box on the left of “glut” or other compatible glut libraries. Finalize by clicking the “Download Selected” button. Wait for the package to download and install.
  • You will be prompted for an installer window. Just read instructions and click Next a couple of times.
  • Now, check if glut was correctly installed by going to Tools – Package Manager. See if you can see “glut” or other compatible libraries (whatever you downloaded) there.

After you install glut, you can do “File – New Project – Multimedia tab” and see that glut has created templates for you. Quite complex things if you ask me. I tend to stay away from those if I can.

Now, before you use any library, you need to link it, else you will get loads of “Linker errors” and “Undefined reference” errors. Here’s how to link the libraries: (read the Dev C++ FAQ!)

9. How can i use the OpenGL library and others ?

All the libraries that comes with Mingw reside in the Lib directory. They are all named in the following way: lib*.a
To link a library with your project, just add in Project Options – Parameters tab – Linker box:
-lopengl32 (including the – symbol)
This is for including the libopengl32.a library. To add any other library, just follow the same syntax:
Type -l (L in lowercase) plus the base name of the library (filename without “lib” and the “.a” extension). Or you can use the “Add Library or Object” button in the parameters tab for simplicity.

I have these libraries linked: “-lglut32 -lglu32 -lopengl32 -lwinmm -lgdi32” and it works fine for me. You can try removing some of the parameters and see if it still works for you. NOTE: The order in which these parameters are supplied is actually important! If you are using a library, and having “undefined reference” errors, try shifting that library’s link parameter to the front of them all.

That’s if you want to use projects. If you are using plain source files, you can put those link parameters in Tools – Compiler Options. Then put them in the “Add these commands to the linker command line“. Make sure the box is checked too. I’d advise you to create a compiler profile just for OpenGL and glut with those parameters. Don’t mess with the “default compiler” profile. You can create one using the small green “+” button there.

There is usually linking information in the header files (.h files) or the Readme files of libraries you download on the Internet.

Basically, to install a library, you will have to copy some files (ending with .lib or .a) to the “lib” folder and some .h files to the “include” folder in Dev C++’s install folder.

Now, to actually use glut, you have to include the header file with:

#include <GL/glut.h>

To know the exact path where glut.h is found, look inside the “include” folder, again in Dev C++’s install folder.

That’s it. You should now be able to compile and run glut code on Windows using Dev C++. The guide should be clear enough. If there is demand for it, I’ll include pictures too, but I don’t think they are really needed.

By the way, I’m not a glut or OpenGL expert or anything. I’m just studying it, and thought I’d share how I managed to get glut running on Dev C++. I might not be able to answer all your questions, and for that, Google’s here!

Behold Chrome: New contender in Browser Wars Arena!

by
Inf

ChromeLogo

Google just released the Beta version of its browser, called Google Chrome (why chrome anyways?). Since a few days, I’ve been seeing that pokeball-like logo all over the Internets and I thought I must add my piece of text to the already long list of blog posts about the newest browser out there. Seriously, nearly 12 million results on Google when I search for “Google Chrome”.

What’s the hype about it? Everybody is “Chrome released”, “Chrome does that”, “Chrome does this”, “Chrome makes tea”, bla bla… Let’s see… Before I move on, I need to say that Chrome is released under BSD license, and it’s Open-Source!

Continue Reading »