Solve a 2D maze using Stack implementation in C++

‘S’ will represent the starting line.
‘F’ will represent the finishing line.
‘#’ will represent an obstacle/wall.
‘ ‘ will represent free space.

The maze will be stored into a two dimensional array maze[MAZE_HEIGHT][MAZE_WIDTH].

2D Maze

2D Maze

Read More

Convert Binary To Octal Numeral System (Matlab)

The point of this function is to input two binary vectors E2 and F2 that are respectively  the integral and fractional parts of a positive binary number b, converts them to octals and outputs the results as 2 vectors E8 and F8 that are respectively the integral and fractional parts of a positive octal number o.

Read More

3G Launching in Lebanon at AUST (What really happened!) – Part 4: The Gift Giving

@RamziKomati
Ramzi Komati
October 20, 2011

3G launching in Lebanon at AUST… What really happened – Part 4! #3G #Lebanon http://pic.twitter.com/ygd3I5xR

The gift giving

Gift Giving

< Go back to original post

Read More

3G Launching in Lebanon at AUST (What really happened!) – Part 3: The Clarification

@RamziKomati
Ramzi Komati
October 20, 2011

3G launching in Lebanon at AUST… What really happened – Part 3! #3G #Lebanon http://pic.twitter.com/rrYROMPp

The clarification

Clarification

< Go back to original post

Read More

3G Launching in Lebanon at AUST (What really happened!) – Part 2: The Pricing

@RamziKomati
Ramzi Komati
October 20, 2011

3G launching in Lebanon at AUST… What really happened – Part 2! #3G #Lebanon http://pic.twitter.com/CfgxNoZJ

The pricing

Pricing

< Go back to original post

Read More

3G Launching in Lebanon at AUST (What really happened!) – Part 1: The Introduction

@RamziKomati
Ramzi Komati
October 20, 2011

3G launching in Lebanon at AUST… What really happened – Part 1! #3G #Lebanon http://pic.twitter.com/SGjsfMut

The introduction

Introducing

< Go back to original post

Read More

3G Launching in Lebanon at AUST (What really happened!)

See what really happened at the 3G launching.

The introduction

Introducing

The pricing

Pricing

The clarification

Clarification

The gift giving

Gift Giving

Read More

Fix WordPress F8 Lite theme image squashing

F8 Lite theme

F8 Lite theme

F8 Lite is a popular photoblog theme provided by WordPress originaly created by Thad Allender. You can do some awesome WordPress blogs using F8 Lite, check out my latest creation artissus.com.

One of the major problems in F8 Lite was the image squashing/stretching in the post thumbnails.

To fix this issue you can do one of the following:

Modify the media settings

Log in to your WordPress account, go to Settings > Media.

Edit Thumbnail size to: 310 x 150
Edit Medium size to: 590 x 0
Edit Large size to: 950 x 0

Read More

How to detect and store online users/visitors in ASP.Net

In this tutorial you will learn how to detect the total number of online users in your website and store the data in a database.

This script is very important to study the performance of your web server. Having more than 2,000 online users on a shared hosting server is sign that it’s time to upgrade your server to a full dedicated (supporting around 25,000 online users or more).

Start by creating a Global.asax file in your root directory of your ASP.Net application. This file is also known as ASP.Net application file, it will contain code for responding to application top-level events raised by ASP.Net or HttpModules.

Read More

Fade any object without using jQuery (JavaScript)

Fade smoothly any HTML object without using jQuery.

function fadeInOut(obj, startValue, endValue) {
    var t = (startValue < endValue) ? 0 : 1;
    var fps = window.setInterval(function() {
        if (startValue < endValue) {
            if (t < endValue) {
                obj.style.opacity = t;
                obj.style.filter = "alpha(opacity = " + (t * 100) + ")";
                t += 0.05;
            } else {
                window.clearInterval(fps);
            }
        } else {
            if (t >= endValue) {
                obj.style.opacity = t;
                obj.style.filter = "alpha(opacity = " + (t * 100) + ")";
                t -= 0.05;
            } else {
                t = 1;
                window.clearInterval(fps);
            }
        }
    }, 8);
}
Read More