Techieवार्ता (TechieVarta) Blogs

Icon

Conversation with a Techie

Posts Tagged ‘linux’


Nokia Symbian and iPhone

Posted June 24th, 2008 by Umesh

 Unstrung is reporting that Nokia is acquiring 100% of Symbian and spinnig it off as Foundation with some very powerful members.

http://www.unstrung.com/document.asp?doc_id=157372

As a technology enthusiast I have always been divided on iPhone. I loved its style, look and feel. However, I never liked the fact that iPhone is closed platform where Apple has taken efforts to make sure nobody can write their own applications. Com’on iPhone is a smart phone with a smart operating system. The operating systems are written to provide platform for independent application development and Apple is strong arming these developers.

The foundation approach if executed properly will provide Nokia with a completely open platform (Nokia’s platform is already a lot more open then the Apple platform). If Nokia executes its plan well, they maybe able to engage large community to significantly improve the platform style and capability. So in all it looks like we will have 5 mobile platforms for smart phones.

- LIMO

- Symbian

- Windows Mobile

- Android

- iPhone

Out of these LIMO, Symbian and Android will be open source, Windows mobile will be closed source but will be completely open for application development. The only closed (and yes even with SDK, it is pretty closed platform) will be iPhone. So Steve Jobs is going from being a cult hero to cult killer?

android linux nokia symbian

Drupal: Impressions and Plugins

Posted November 3rd, 2007 by Umesh

Readers of this site know that this site runs WordPress for theblogs. Today I want to talk about what I run for my web site. I use great Web Site management software called Drupal. Both WordPress and Drupal are similar in several aspects. Like WordPress, this software is written in PHP and can use MySql as the backend. Both the software are extensible using modules and have a wide variety of modules providing various extensions. Both software allow themes and have a wide variety of themes available.

However, there are several key differences. Drupal is full WebSite management software which also has a blog management feature. WordPress on the other hand is a blog only software and does a great job at it. I could have used Drupal for blog however, I found WordPress before I found Drupal and I was already running WordPress before I built my main site. I am extremely happy with WordPress and do not see a reason for change. I have not experimented with Drupal’s blog feature to know more.

To use Drupal, you should install several plugins.

Essential Drupal Plugins

Site Management Related Modules

  • Category: This software allows you to hierarchically structure your site in tree-like structure. It automatically builds menu as needed.
  • Path Auto: This module automatically creates your URL alias based on page titles and various rules. this can significantly increase search engine ranking.
  • Global Redirect: If path aliases are enabled, the pages on your site are generally accessible using two different paths: default Drupal path and alaised path. This module changes that such that the default Drupal URL results in sending a redirect to the aliased page rather then serving the page. This makes sure that your site is not unnecessarily put in sandbox by Google.

Search Engines Related Plugins

  • Google Analytic: This module provides support for Google Analytics
  • GSiteMap: This module provides on demand Google sitemap generation.

Content Creation Related Plugins

  • TinyMCE: This plugin brings in rich WYSIWYG editor inside Drupal for content creation.
  • Image: : This module allows users to manage Images inside Drupal.
  • Upload Image: This module allows users to upload images on the Drupal website.
  • Weather: I wanted to display weather on my Drupal site. I tried this module and found it to be not very useful. I eventually ended up creating a custom modules. After trying HTML code from Weather.Com and AccuWeather.com, I ended up using AccuWeather.com’s weather related HTML in my custom module.

What I did not like about Drupal?

The Drupal software menu system is non-intuitive. “Site-Building” what does that mean? Modules are enabled in “Site Building” and configured in “Site Configuration”. I wished there was a way to configure the modules as a button as soon as they were enabled. With software like Drupal, you land up with 10s of module. I wish there was a way to organize modules in categories.

The way user authorization is separated from actual module configuration is another thing I don’t like. It is nice that you can see authorization level at a single place, but equally nice will be a way to configure authorization level whenever a module is configured. I suggest that we provide a method to configure authorization both in module level and in user management section.

Drupal and WordPress on the same Site

The great advantage of Open Source Software is that the users have choice. I can run software from different sources and use their strongest parts to come up with a very useful end result. I and based on my reading from the web many others, believe that Drupal is great site management tool and WordPress blogging infrastructure is superior to that of Drupal’s . It is rather easy to run Drupal and WordPress on the same server however it is very difficult to run them in integrated fashion. It will be wonderful to develop a WordPress Module for Drupal and have WordPress site inherit Drupal’s theme or even have its own theme. But, that way they can share the same users.

Another area where the integration will be useful is in sitemap generation. It will be good if there was a way to have Drupal’s sitmap include WordPress sitemap. I had to do some php hacking to get that working.

c++ C++ Reference C++ tutorial c++0x linux web hosting Blog programming boost template

Create a full featured web/blog host at your home: Part 2

Posted October 25th, 2007 by Umesh

Part 1

As promised here is the part 2 of the post.

Setting up Web Server

The next task is to setup your web server. There are several servers you can choose. My favorite is Apache. It comes bundled with most Linux distributions. You probably want to setup the apache server as a virtual host. To setup the virtual server, fire up your favorite editor to configure apache configuration and add something like the following:

<VirtualHost  *:80>
	DocumentRoot /srv/www/htdocs
	ServerName example.com
	ServerAdmin root@localhost
	<Directory /srv/www/htdocs>
		AllowOverride None
		Order allow,den
		Allow from all
	</Directory>
	CustomLog /var/log/apache2/example.log
</VirtualHost>

Restart apache by doing something like /etc/init.d/apache restart. If you took my earlier warning about security seriously, you would have firewall on your server blocking all accesses to your web server. Use your favorite firewall management tool for the server to open hole through server firewall. Suse’s yast makes this process relatively straightforward. I am sure other distributions have something similar.

Edit /etc/hosts on the web server machine and add a host entry for the web server’s IP address as your machine’s NATed IP address. This step is not absolutely essential but it makes life a lot simpler. Fire up firefox on the Linux machine and make sure you can access http://<your-machine’s name>/. If you try to access the same web page from another machine in your network, this is probably very slow. That is because the DNS is resolving your machine’s the hostname as external IP address of your NAT box and the packets are not directly going to your Linux machine. If you have this problem open /etc/hosts on Linux and c:\windows\system32\drivers\etc\hosts on Windows machine and add an entry with webhosts name and its NATed IP address. The entry will look something like:

 192.168.32.8    example.com

At this time you should be able to go to the newly configured host and access the web site. You are now ready to configure blog software.

Setting up Blog Software

Now it is time to setup you blog software. After evaluating several blog software, I decided to use WordPress. I will strongly recommend WordPress to nearly everyone trying to host their blog site. It is easy to administer. There is a very strong community out there. You can easily find plugin for almost anything you want to do. WordPress is based on PHP so make sure you have PHP installed before you start. WordPress also has dependency on MySql make sure you have MySql installed. The next step is to create MySql user.

To create the MySql user do the following:

>mysql -u root -p

Password: <enter mysql password>

mysql>create <db-name>

mysql>use <db-name>

mysql>GRANT ALL PRIVILEGES ON *.* TO

        '<user>'@'localhost' IDENTIFIED BY

        '<db-pass>' WITH GRANT OPTION;

Note down the db-user and db-pass entered in this process.

You are now ready to configure and install the WordPress. Download WordPress and unzip it at a place where your webserver can serve. In the wordpress home directory, there is a file wp-config-sample.php. Copy it to wp-config.php. Edit this file to provide DB name, DB username and DB password.

Fire your Web Browser and point it to the blog’s home directory. Follow on screen direction to complete the WordPress install. You are all set. Drop me a word if you have problem installing.

Happy blogging.

Next time essential WordPress plugins.

c++ C++ tutorial linux web hosting WordPress Blog programming metaprogramming template

My Choice of Linux Distribution - OpenSuse 10.3 Review

Posted October 23rd, 2007 by Umesh

As I was setting up my blog host I had a critical decision to take. Which OS? I have been using Linux for more then a decade now. I remember the days in India when I had to download 13 floppies of Slackware at 9.6Kbps to install Linux. I have used RHEL, Kubuntu, Fedora Core, Mandriva. But, since I was installing a new machine for this blog, I decided to experiment with OpenSuse which I had never used in past.

I must admit I am hooked. Following OpenSuse instructions I decided to perform a network installation. The installation procedure worked ok although it can use some improvements:

  1. I wish the installer tested a couple of mirrors and automatically selected the mirror to use
  2. I wish that the installer asked all the questions in advance and started the installatio rather then stopping during the installation process to ask the question. That way I could start installation process, go for a drive and come back to a brand new OpenSuse desktop

In most Linux and Windows machines finding the any program to run from Start menu has been a pain. The Suse menu system on the other hand is clean and nicely categorized. I like the multi-tab menu interface a lot.

At the top of it yast is great. I was able to find new packages easily (although package manager is slow to start), the firewall configuration is easy and intuitive. I tried configuration creating virtual host using the yast interface without much luck.

But even with its deficiency the OpenSuse is superior to Kubuntu, RHEL, and Mandrive. My next favorite is Ubuntu which I run on my laptop. That is for another day.

c++ C++ Reference C++ tutorial concurrency linux opensuse shared memory programming boost multi-threading