Monday, January 31, 2011

ASP.NET MVC 3.0

 

Time flew so quick and I guess I was left out in the know. So to catch up I’ll get to review http://www.asp.net/mvc/tutorials/getting-started-with-mvc3-part1-cs and download the installer here: http://go.microsoft.com/fwlink/?LinkID=208140

Monday, January 24, 2011

Firing Up CodeIgniter over XAMPP

 

So you want to develop web sites/applications using CodeIgniter framework on XAMPP? Here are the initial steps to make your first page work:

We will assume (1) you have successfully installed XAMPP at C:\XAMPP\ folder on your Windows machine. Otherwise, you have to read about it. (2) you have downloaded (and extracted)CodeIgniter.

STEP 1: Copy the extracted CodeIgniter files to at C:\XAMPP\htdocs\somewebfolder\

image

At this point you can open your favorite browser and navigate http://localhost/somewebfolder/ and you’ll see something like the below:

image

I know you want to see your own work! Let’s move to the next step.

STEP 2: Open \somewebfolder\system\application\config\config.php and change as follows:

FROM:

   $config['base_url'] = http://example.com/;

TO:

   $config['base_url'] = http://localhost/somewebfolder/;

STEP 3: Open \somewebfolder\system\application\config\routes.php and do the following change:

FROM:

   $route['default_controller'] = "welcome";

TO:

   $route['default_controller'] = "home";

Now, if you try to navigate http://localhost/somewebfolder/ you’ll be seing a 404 Page Not Found message. That’s fine! We just need to add home.php at the controllers folder and add another home_view.php file at the views folder.

Initial content of home.php can be

<?php

class Home extends Controller {

    function Home()
    {
        parent::Controller();   
    }
   
    function index()
    {
        $this->load->view('home_view');
    }
}

/* End of file home.php */
/* Location: ./system/application/controllers/home.php */

 

While home_view.php can have as follows

<html>
<head>
    <title>Home Page</title>
</head>
<body>
<h1>This is the home page!</h1>
</body>
</html>

There you have it! You have successfully created a home page in CodeIgniter over XAMPP.

Tuesday, January 11, 2011

Enabling Remote Desktop on Windows 7

 

Have you ever wanted to use another computer running Windows 7 within your local area network but does not want to physically move to the said machine? Here’s what you can do:

Configure the other computer to allow remote desktop connections!

STEP 1: Navigate Start Menu > Computer > Properties

1-computer-properties

STEP 2: Click the Remote Settings link.

2-remote-settings

STEP 3: Select “Allow connections from computers running any version of Remote Desktop” option. Hit the OK button.

3-system-properties-remote-tab

And there you have it. The other computer can now be remotely accessed from your machine.

Friday, December 10, 2010

Screen Capture Apanda A60 Android Phone

 

Just recently I was tasked to document various Language Learning applications in iOS, Android, Web-based and Windows/Mac platforms. It was very exciting and challenging doing the Android stuff. Since my machine is running Windows 7, I got to learn the following:

  • In order to perform screen capture with Apanda A60 Android phone I have to install the Android SDK on my machine
  • In order to install the Android SDK I have to install Java (SE) JDK.
  • When the above tasks have been accomplished, I have to run ddms.bat (Dalvik Debug Monitor) located at C:\Program Files\Android\android-sdk-windows\tools
  • But wait!!! There’s this final tweaking in the Environment Variables of Windows 7, specifically the PATH definition. I have to add the path to adb.exe which is C:\Program Files\Android\android-sdk-windows\platform-tools

That last item took me sometime to figure out. ha!ha!ha!

device

Thank God I can now move one with my deliverables. Smile

Tuesday, November 9, 2010

What is the Name of your Machine in the Network?

 

Scenario

     You: The use case documents are in my shared folder.

     Colleague: What's your computer's name?

     You: ??????????????

 

Solution

Run the command line console.

hostname-1

Type 'hostname'.

hostname-2

 

Simple eh?

Monday, September 6, 2010

How to Install SQL Server Management Studio 2008 Express Edition

Frustrating as it is, SQL Server Management Studio 2008 Express is NOT part of the "normal" SQL Server 2008 express installation.

How then it could get installed?
Download SQLManagementStudio_x86_ENU.exe here http://www.microsoft.com/downloads/details.aspx?FamilyID=08e52ac2-1d62-45f6-9a4a-4b76a8564a2b

Run it and wait until the below is displayed


Select the "New SQL Server stand-alone installation..." link option. Follow the usual installtion but upon reaching the below dialog box, select the "Perform a new isntallation of SQL Server 2008" option.


When you reach the "Feature Selection" dialog, check the "Management Tools - Basic" option.


Continue the installation process and once complete SQL Server Management Studio will be foound in your Program Files list.



Simple eh?