NaggieLinux kernel 2.6.34 adds scalable Ceph filesystem

May 20th, 2010

This week, Linus Torvalds announced to make the official release of version 2.6.34 of the Linux kernel. The update introduces two new filesystems and brings a number of other technical improvements and bug fixes.

A new cloud filesystem, called Ceph, is one of the most significant additions. It is a distributed network filesystem that is designed for massive scalability, capable of managing petabytes of storage. The underlying technology has some novel characteristics, such as an adaptive metadata storage framework that can automatically redistribute information about the filesystem hierarchy across the storage nodes in response to fluctuations in demand. However, the developers warn that the project is still largely experimental and isn’t ready yet for deployment in production environments.

Developer Sage Weil in a kernel mailing list post wrote, “Although stability has improved greatly in the last few months, Ceph is still relatively new and experimental for something as conservative as storage, and only time and testing will change that”. “Getting the code upstream sooner rather than later will accelerate that process by reducing barriers to testing, expanding the pool of systems with a usable client, and making it easier for distros to include it.”

LogFS, a log-structured filesystem that is intended for use on flash storage devices, is another major addition. It is designed to replace the kernel’s Journaling Flash File System v2 (JFFS2), but is best-suited for larger flash storage devices. It is said to offer a reduction in mount time and memory overhead relative to JFFS2.

A number of other noteworthy improvements are present in the .34 release. Suspend and resume performance get a boost from a parallelization effort. Networking in KVM gets performance improvements too, thanks to the vhost net drivers.

Tags: , , , ,
Posted in Linux Technology | No Comments »

SuzanneHow to resolve the error 2537 in SQL Server 2000?

May 19th, 2010

While mounting the database, it could be frustrating to view an error message, which not only results in unmountability of the database, but also in inaccessibility of database records. Such error messages can be caused due to database corruption. Some of the few main reasons responsible for database corruption are metadata structure damage, network issues, hardware malfunction, improper system shutdown, and virus infections.

In order to overcome such error messages, the database administrator needs to run an inbuilt repair utility named ‘DBCC CHECKDB’. While this command is competent enough to repair a damaged SQL Server 2000 database, it might also result in loss of data from the database. To prevent any such data loss situation from occurring, you will need to repair the database by using a powerful MDF Database Repair application.

Lets consider a real-time scenario where you encounter a severity level 16 error message while trying to mount your SQL Server 2000 database:

“Table error: Object ID O_ID, index ID I_ID, page P_ID, row ROW_ID. Record check (CHECK_TEXT) failed. Values are VALUE1 and VALUE2.”

Once the above error message flashes on the screen, the database records become inaccessible.

Reason:

Two main reasons liable for the occurrence of 2537 error message are discussed underneath:

  • A condition specified in the CHECK_TEXT statement could not be fulfilled.
  • The database table is logically or physically damaged.

Tips to Resolve:

To get past the above error message, an easy way is to restore the database from an updated backup. However, if in case backup is not available, and then repair the database using following steps:

  • In case the SQL Server 2000 database table is physically damaged, and then replace the physically damaged component with a new component. To determine the component that is physically damaged, check the system logs.
  • In case the SQL Server 2000 database table is logically corrupted, then run DBCC CHECKDB command with a suitable repair clause. While doing so, the logical corruption can be resolved, but it might also result in loss of data. To ignore such data loss situations, it is advisable to repair the database using a commercial MDF Repair application. Such MDF File Repair tools are totally non-destructive and keep the original file untouched while repairing.

http://get-a-designer.com

http://www.all1sourcetech.com

Tags: , , ,
Posted in Purely Technical, database | No Comments »

NaggieRecovering Linux System after Using Fsck on a Mounted System

May 18th, 2010

Is there any difficulty that you found while mounting your Linux system disk? The problem could be due to corruption in the file system. In order to address such issues, Linux OS provides fsck utility. It is a command-line utility, which checks integrity and consistency of the Linux file system. In addition it finds errors and fixes them, if possible. However, if you run this utility on a mounted file system, then you may not be able to access the data at all. In such cases, you should use third-party Linux data recovery software to perform data recovery Linux system.

Consider, you have accidentally run fsck on a mounted Linux OS. The inode root gets damaged and all inodes start calling similar blocks. When you try to mount the volume after fsck, the following error message is discovered:

Mount: wrong fs type, bad option, bad superblock on /dev/hda1, missing codepage or helper program, or other error. In some cases useful info is found in syslog – try dmesg | tail or so”

When you run \dmesg\, as suggested in the error message, another error message may be displayed, that is:

“ext3-fs: corrupt root inode, run e2fsck”

And when you run e2fsck, yet another error message is displayed, that is:

“Root inode is not a directory. Clear?”

Once you press ‘Y’ and proceed with the process, the parent entry of each inode from the root directory will be deleted. The root inode will attempt to recover but if it fails, another error message will be displayed, that is:

“Cannot Allocate Root Inode”

After this error message, you will not be able to access your system.

Reason: This behavior is caused due to corruption of the file system, superblock, root inode, or any other Linux data structure. Because of this, the OS cannot locate the hard disk volumes.

Solution:

In order to sort out this problem and perform Linux data recovery, you should reformat the hard disk and reinstall the Linux operating system. However, that would invariably mean that your valuable data will be lost.

In such cases, you should use a third-party Linux recovery to recover lost data. Such tools are able to Recover Linux data safely by using fast yet sophisticated scanning algorithms.

http://get-a-designer.com

http://www.all1sourcetech.com

Tags: , , , , ,
Posted in Linux Technology, Purely Technical | No Comments »

NaggieJoomla 1.6 Alpha 2 Released

May 5th, 2010

The Joomla project has released Joomla 1.6 alpha 2, which contains many new features requested by the community; most notably, ACL. Other features are listed below as well as what you can expect in the future for Joomla 1.6.

This is an alpha release. It is intended to be a developer/hobbyist preview and is not intended to be used on a production web site.

New improvements/features since alpha 1 include:

  • ACL: access management for global permissions as well as content item specific permissions, variable user groups, users member of more than one usergroup, permissions are inherited, really fast
  • Extendable user profile, profile view in frontend, extendable user parameters
  • Tableless com_content layouts
  • Improved com_content modules (mod_articles_archive, mod_articles_latest, mod_articles_popular)
  • Article linker plugin for editors
  • New frontend template (atomic)
  • New backend template (bluestork)
  • New uploader for media manager

Other Joomla 1.6 improvements that existed in alpha 1:

  • Mootools 1.2
  • Refactored backend
  • JForm
  • Nested Categories and category parameters
  • New views in frontend: categories, category
  • Lots of small code improvements, almost cut the code size in half while adding to the functionality
  • PHP 5.2 required, huge performance improvements, partially eaten up by new features => 1.6 will be faster than 1.5.

http://get-a-designer.com

http://www.all1sourcetech.com

Tags: , , ,
Posted in Purely Technical | No Comments »

NaggieHow to recover a corrupt MS SQL Sever database

May 3rd, 2010

MS SQL Server is a relational database management system (RDBMS), which is specifically developed to be used in the enterprise environment. It provides increased productivity, efficiency, availability, and administrative ease to your organization.

It’s the case with most of the applications it too can face some errors that may lead to data corruption. The data corruption cases may arise because of various issues such as power surges, virus infections, human errors, abrupt shutdown when the database is open, etc. In such cases, you should replace the database with an updated backup. And if the backup is not updated and you need the data urgently, then you should use an SQL MDF repair tool that will help you to repair SQL database.

Let’s consider a scenario wherein you have got MS SQL Server installed on your system, and one day when you open the SQL Server database, it fails to open. An error message is displayed.

“Server can’t find the requested database table.”

Once you encounter this error message, you are unable to access the database.

Cause: Here the error is that the SQL database is corrupt and, thus, inaccessible. It may have got corrupt because of various reasons such as virus infections, human errors, power surges, abrupt system shutdown when the database is open, etc.

Resolution: If the SQL database is not a complex one and there isn’t huge amount of data, then you should try and rebuild the database. However, if the database is complex and contains huge amount of data, then you should consider using a third-party sql server repair application for mdf repair. Such tools are read-only in nature and do not overwrite the data while scanning the databases using fast yet sophisticated algorithms. Also, these tools have rich interface and enable you to repair the database yourself without the intervention of an expert.

SQL Recovery software is an MS SQL repair tool that is able to repair SQL databases created in MS SQL Server 2000, 2005, 2008. It can recover all kinds of database components such as tables, defaults, stored procedures, triggers, views and rules.

In addition, it can recover database constraints such as primary key, foreign key, unique key, and check. In addition to all this, it can repair a database even if it is not repairable by the DBCC CHECKDB command. This tool is compatible with Windows 7, Vista, 2003 Server, XP, 2000, and NT.

Tags: , , , , ,
Posted in Expert's Opinions, Purely Technical | No Comments »

NaggieOpen Source Squeak 4.1 Released

April 27th, 2010

On Friday, Squeak developers released version 4.1 of the Smalltalk open source programming language, and just before six weeks Squeak 4.0 was pushed out.

According to the release announcement, this version combines the licence change occurring in the 4.0 release with the development work that has been going on while the re-licensing process took place.

The latest version includes integration of Cog’s closure implementation, improved user interface look and feel, new anti-aliased fonts, core library improvements and advances in modularity.

According to the Weekly Squeak, one key focus for this release was to address the issues that have been known to frustrate developers using Squeak for the first time.

A much improved set of UI widgets, the new menu bar including the fast search control, integrated help, improved test coverage, more class and method comments, and integrated syntax highlighting all make the system more accessible.

Tags: , , , , , ,
Posted in Opensource, Technical News | No Comments »

NaggieJoomla 1.5.16 Released, Joomla Warns Against Upgrading

April 27th, 2010

The Joomla Project announced the release of version 1.5.16 of its popular open source content management system on Friday, but on Sunday Joomla posted a warning to not upgrade.

According to the Joomla Web Site warns, Version 1.5.16 contains two serious bugs that will affect your site if you use a version of PHP prior to 5.2 or if you have the Session Handler parameter set to none in Global Configuration.

The new version of Joomla fixes several security problems with the previous version, according to Joomla, “If you haven’t already upgraded to version 1.5.16, you may wish to wait for version 1.5.17 instead.”

And the next release is expected to be on April 27, 2010.

http://get-a-designer.com

http://www.all1sourcetech.com

Tags: , , , , ,
Posted in Technical News | No Comments »

ShwetaHow to overcome DBF Corruption-

April 26th, 2010

Database computing- major presence of Oracle, Oracle is an RDBMS (Relational Database Management System), developed and marketed by Oracle Corporation. It stores all your valuable data in the DBF file. The DBF file contains all Oracle database objects, such as tables, reports, forms, macros, views, constraints, triggers, stored procedures, and more.

If any of these database objects or the entire database gets damaged, you can not access your valuable data from it. In such circumstances, Oracle Database Recovery software is required to extract data from the database.

In order to overcome DBF corruption, Oracle offers a number of methods to detect and repair data files. These options include:

DBVerify- It is an external command-line utility, which enables you to validate offline data files of Oracle database. In addition to the offline data files, you can also use this utility for checking validity of the backup data files.

ANALYZE … VALIDATE STRUCTURE- It is used to verify every single data block in the analyzed object. If this tool finds any corruption, rows are added to INVALID_ROWS table.

DB_BLOCK_CHECKING- If DB_BLOCK_CHECKING argument is set as TRUE, Oracle carries out a walk-through of the data in database block for checking whether it’s self-consistent or not. This block checking process may add 1 to 10% overhead to server. This setting is recommended only if you can accept the overhead.

DBMS_REPAIR- It enables you to find and fix database corruption. This process needs two administration Oracle database tables for holding the list of damaged blocks and the index keys which point to those damaged blocks.

Source: programmersheaven.com

http://www.all1tunes.com

http://www.all1martpro.com

Tags: , , , , ,
Posted in Opensource, Purely Technical | No Comments »

NaggieDBCC CHECKDB unable to resolve SQL Database corruption

April 22nd, 2010

The logical and physical integrity of all SQL Server database tables is performed by DBCC CHECKDB command. The command performs and divides its operations in three different phases.

The first phase checks the consistency of the allocation structures in disk space, the second phase checks the integrity of all pages and their structures, and the last phase checks the catalog consistency.

If critical errors are found in any of the phases, the DBCC CHECKDB command terminates immediately. This happens when the SQL Server database is badly corrupted, and is beyond the repairing capabilities of DBCC CHECKDB command. In such cases, if you need to access the database records, then you will need to restore the database records from a valid backup. But, if no backup is available or backup falls short to restore the required amount of data, then you will need to repair the database by using advanced MS SQL Server Recovery application.

Let’s consider a practical scenario, where you receive the below error message when you attempt to access one of your table records-

Table error: Object ID O_ID1, index ID I_ID1 cross-object chain linkage. Page P_ID1 points to P_ID2 in object IDO_ID2, index ID I_ID2.

The above error message primarily results in inaccessibility of all the table records. Additionally, the error message pops up every time you attempt to access the table records.

Cause: Reason of error

The above table error message occurs when the next page pointer of P_ID1 page points to different object. This can happen either due to logical corruption factors or physical crash of a system component.

Resolution: Steps to be used to resolve the above error message

Database table corruption, if caused due to physical damage, can be resolved by changing the damaged system component. For logical table corruption reasons, run DBCC CHECKDB command with appropriate repair clause.

While the physical corruption issues can be resolved easily changing the system component, the probability of logical corruption problems being resolved by DBCC CHECKDB command is slightly less. In such cases, you will need to use advanced Recovery application to repair the database table. A SQL Repair software can be easily downloaded from Internet.

Source: www.programmersheaven.com

http://get-a-designer.com

http://www.all1sourcetech.com

Tags: , , , , , ,
Posted in Purely Technical | No Comments »

NaggiePHP Development on the Facebook Platform- Build Your App

April 21st, 2010

Facebook API is very powerful and it allows you to create your own Facebook applications, which you, your friends or everyone else can then consume. You can use the Facebook applications you build on profile pages, canvas pages, and so on. You can even make money by developing practical applications. So, let’s get started with creating your own Facebook application.

What You Need-

To create your own Facebook application, you should know how to program in one of the supported languages, such as PHP, Ruby on Rails, or Python. With that knowledge, all you need to do to get started is:
1. Add Facebook Developer Application to your Facebook account.
Go to the Facebook Developers page and click “Add developer.” This is the central location for all your applications on Facebook. You can request as many as 100 API keys from the applications page, as well as manage and change the settings for all your applications. Now that you have added Facebook Developer Application to your account, let’s move on to adding your very first application.

2. Add your first Facebook application.
Go back to the Facebook Developers page and click the Set Up New Application button. This will take you to the “Create Application” page, where you are required to provide the name of your application and, as a rule, agree to certain terms and conditions.
After saving changes to this page, you will be taken to your application’s homepage, which serves as your application’s edit page. You can change all the settings related to your application here, such as its name, description, icon, logo and much more. You can add more developers if you are going to develop the application in a team.
On the same page, Facebook provides you with an API Key and a Secret Key, which are the passports for your application to interact with

Facebook core applications and the outside world. Do not share you secret key with anyone.

Pre-development Changes

To start developing your application, you need to make important changes to the following settings:

  • API Key – This unique key helps Facebook identify whatever request(s) you make. Enclose this API key along with all your requests.
  • Secret Key – As mentioned previously, you should keep this key safe and share it with no one, because it is responsible for authenticating your request.

Now, click on the Authentication tab, where you need to specify:

  • Post-Authorize Callback URL – When a user authorizes your application and adds it to a Facebook account, then Facebook pings this URL. So, this URL needs to be your site’s URL where you application is hosted. This cannot be a URL from Facebook.
  • Post-Authorize Remove URL – When your application is removed by a user, this URL will be pinged along with a post request, which will contain the User_id. This process allows you to log which user has removed your application.

Now click on the canvas tab, where you need to specify:

  • Canvas Page URL – Choose a canvas page URL for Facebook, such as http://apps.facebook.com/your-app-name.
  • Canvas Callback URL – This is the muscle of your application. Facebook pulls the content from this URL and displays it on the application’s canvas page. The URL can be where you have your application hosted.
  • Render Method – You need to selected this option according to your code. If your code is going to have FBML tags, then you should select “FBML” in this option. Otherwise, leave it default as “iframe” (for this example, you can choose either).

These settings should be enough to get you started with your first Facebook application. Undoubtedly, you can make many other changes to suit your needs in due course.

Now that you have set up the application, let’s have a look-see at how to put some muscle on your bare-bones application. In this example, you need to use Facebook’s PHP client library, which is a compressed file. After downloading the client library, extract the files. You will get two folders namely, footprints and php.

Footprints is a sample application provided to help you understand how the Facebook API works. However, because the API functions keep changing, this code might have some deprecated functions. The php folder contains the library files that you will use to talk back to the Facebook API.

Create a file called index.php and copy the following code into it:

<?php
 require_once 'php/facebook.php';
 $appapikey = 'INPUT YOUR APP KEY HERE';
$appsecret = 'INPUT YOUR APP SECRET KEY HERE';
 //create the object
$facebook = new Facebook($appapikey, $appsecret);
 /**
 * Check if we have an already logged in user ?
 * Yes - Skip the require_login
 * No - User is redirected to facebook login page
 */
if(!is_numeric($facebook->get_loggedin_user()) || !$facebook->api_client->users_hasAppPermission("publish_stream"))
  $facebook->require_login($required_permissions = 'publish_stream');
 /**
 * In case user reaches here and our application doesn't have proper permissions to publish,
 * then display this error message
 */
 if(!$facebook->api_client->users_hasAppPermission("publish_stream"))
{
  echo 'Darn !! Something just broke !!' ;
}
 /**
 * Check if we have Post data and a status to update
 */
if($_POST['update_me'] == 1)
{
    $res=$facebook->api_client->stream_publish($_POST['st'],'');
  $uid = $facebook->get_loggedin_user();
   $tmp = explode ("_",$res);
  if($uid == $tmp[0])
  {
    echo "Timeline updated successfully, <a href='http://www.facebook.com/?id=$uid'> Go back to your profile page</a>";
  }
  else
  {
    echo "Couldn't update your status, Please try again";
  }
}
/**
 * Display the form to update status
 */
else
{
  ?>
 
<form method="POST" action="http://www.your_domain.com/index.php" >
  <input value="1"/>
  <textarea></textarea> <br>
  <input value="Update status" />
 </form>
  <?php
}
?>
Important Tasks to Remember

Make sure you complete the following tasks to properly build your application:

  1. Include the library file (facebook.php) and change the path in require_once to match your folder hierarchy.
  2. Copy/paste the API key and secret key before trying to use your application. It won’t work without these anyhow.
  3. Input the canvas page URL right to the path of the script on your server/domain.

When you execute the above script, it will look for logged in users, if any. If a user is not logged in, then it redirects the user to the Facebook login page. This is also handled by the require_login function, but the problem with require_login is that it redirects so often that any post data to your page is lost. So, you have put a check before calling the require_login function. In the same line, you also check whether or not your application has permission to post updates onto a user’s stream. If you do not have permission, the user is prompted to allow your application.

When you have permissions and post data, the status is updated to the user. When a status is successfully posted, a response of the typeuserid_postid is returned. If it fails, then different error codes are returned. Find a list of error codes on Facebook’s wiki page.

You can extend the above code to suit your requirements. If you feel confident, you can move on to write some advanced programs using FBJS and XFBML. Other than that, you should keep abreast of any functions that Facebook deprecates — particularly those that your code might be using. Otherwise, your application might crash all of a sudden.

Tags: , , , , , ,
Posted in Opensource, Purely Technical | No Comments »

Today Blogs | Latest Blogs