RSS
 

Archive for the ‘Tips & Trick’ Category

Plugin: Yoast Error

08 May

Warning: array_slice() expects parameter 1 to be array, null given in /home/faseven/public_html/blogging/wp-content/plugins/breadcrumbs/yoast-posts.php on line 43
No items

Now Open: yoast-posts.php

Find:
$items = array_slice($rss->items, 0, 2)

Replace with:
$items = is_array($rss->items) ? array_slice($rss->items, 0, 2) : ”;

That, at least stops the code erroring out..

 

x86 or 32bit OS with 4GB RAM

27 Apr
PAE X86 Technical Reference

Updated: March 28, 2003

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

PAE X86 Technical Reference

Physical Address Extension (PAE) X86 is one of two technologies that increase the amount of physical or virtual memory available to applications. The other technology is 4-gigabyte tuning (4GT). For more information about 4GT, see “4GT Technical Reference.”

PAE X86 allows applications using the Address Windowing Extensions (AWE) API set and running on a computer with more than 4 gigabytes (GB) of physical memory to map additional physical memory into the application’s virtual address space. Applications not using the AWE API set can also benefit from PAE X86 because the operating system uses the larger physical memory to reduce paging and thus increase performance. This is of particular benefit to consolidation servers hosting multiple applications.

Note

PAE X86 is not required on the 64-bit versions of the Microsoft Windows Server 2003 family.

How 4GT Works

Updated: March 28, 2003

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

How 4GT Works

In this section

The technology called 4-gigabyte tuning (4GT) is a scale up component in the Windows Server 2003 family. The Microsoft operating environment delivers scalability via two methods: scale up and scale out. Scaling up refers to running a single application or image on a single server and having the ability to incrementally add system hardware resources (processors and memory) to increase overall system performance. Scaling out refers to distributing the computing workload among multiple servers with the ability to add or subtract servers to increase or decrease capacity.

Enterprises are required to scale flexibly to respond to spikes in business and to support the rapid roll out of new products and services. It is therefore increasingly important that an organization’s computing infrastructure provides the ability to increase or decrease computing capacity almost instantly, while continuing to deliver value. 4GT helps provide this scalability.

There are few restrictions regarding the environment in which 4GT can be enabled. 4GT has the following hardware and software requirements:

  • x86-based processor
  • 2 gigabytes (GB) or more of RAM
  • Windows Server 2003, Enterprise Edition, or Windows Server 2003, Datacenter Edition
  • Windows Server 2003, Standard Edition, but only in non-production environments.

4GT should not be used if either of the following is true:

  • Greater than 16 GB of physical memory are available and Physical Address Extension (PAE) X86 is enabled on the server.
  • Important performance characteristics of the application are adversely affected by limiting the kernel to 1 GB of RAM, for example, more than 1 GB of RAM might be needed to support the maximum number of concurrent connections.

Note

  • 4GT is not required on the 64-bit versions of the Windows Server 2003 family.

4GT Architecture

4GT alters the way the memory manager allocates the virtual address space available on the computer. The following diagram and corresponding table illustrate this process.

4GT Architecture

4GT ArchitectureWhen virtual memory space is requested by the user mode applications or the kernel, the memory manager determines where that memory will physically reside. The virtual address to physical address translation information is kept in the page table, which is part of the kernel’s virtual address space. Using this translation data, the memory manager accesses the data

The following table describes the components related to the 4GT architecture.

Components of the 4GT Architecture

Component Description
Kernel or User Application The user mode application or kernel process that requests data at a specific virtual address space.
Memory Manager Operating system component that allocates, organizes, and tracks memory assignments.
4 GB Virtual Address Space Virtual addresses representing the 4 GB of RAM that is recognized by default by the operating system. Using 4GT, this 4 GB is divided to give user mode applications 3 GB of virtual address space and the kernel 1 GB of virtual address space. The kernel’s 1 GB is further allocated into many other specific sections, including the page table area.
Page Table A portion of the kernel’s virtual address space that indexes virtual memory addresses to physical addresses.
Paging File The files on a hard disk where data is stored instead of storing that data in RAM.
RAM The physical RAM where data is stored.

4GT Processes and Interactions

4GT is not enabled by default. In order to enable 4GT, the /3GB switch must be added to the server’s Boot.ini file. The addition of this option causes the operating system to change the default virtual address allocations for applications and the kernel. Upon starting an application, the operating system examines the header file for that application. If the application header includes the “IMAGE_FILE_LARGE_ADDRESS_AWARE” flag and the /3GB switch has been used to enable 4GT, then the application has access to the greater virtual address space.

Instead of dividing the available 4 GB of virtual memory evenly between the kernel and any specific user mode application, 4GT provides less virtual address space to the kernel. This results in 3 GB of virtual memory to be allocated to the application. With 4GT, the virtual addresses available to the application range from 0×00000000 through 0XBFFFFFF. This is an increase of the default range of 0×00000000 through 0x7FFFFFFF. The virtual memory address range for the kernel shrinks from 0×80000000 through 0xFFFFFFFF to 0xC0000000 through 0xFFFFFFFF, as shown in the following diagram.

Virtual Memory Allocation

Virtual Memory Allocation

4GT can be used with Windows Server 2003, Enterprise Edition, or Windows Server 2003, Datacenter Edition. In addition, 4GT can be used with Windows Server 2003, Standard Edition, but only in non-production environments.

The /Userva Parameter

In some cases, restricting the kernel to only 1 GB of memory might not be desirable, but the kernel might not need 2 GB either. In order to further refine memory management options, a new parameter, /Userva, has been introduced in Windows Server 2003, Standard Edition; Windows Server 2003, Enterprise Edition; and Windows Server 2003, Datacenter Edition. This parameter can only be used in conjunction with the /3GB switch. The /Userva parameter allows an administrator to determine the specific size of the user mode virtual address space between 2 GB and 3 GB. The value specified by the /Userva parameter in the Boot.ini files (expressed in MB) determines the amount of memory the memory manager will return to the kernel. The amount of memory returned is 3072 MB less the value specified by the /Userva parameter. For example, to increase the kernel’s memory space by 172 MB, the following parameter combination would be used in the Boot.ini file:

3GB /Userva=2900

This additional kernel address space is held in reserve and used as additional address space for Page Table Entries (PTEs) in the event that the system runs out of free PTE space. This address space is not allocated to PTEs until the system runs low on PTE space. For more information about PTEs, see “Page Table Entries” later in this section.

Page File

Page files store data that cannot be kept in RAM. The default page file size is equal to 1.5 times the amount of physical memory on the system. On a 4 GB computer, this can result in a page file larger than 4 GB. Under such circumstances, the effectiveness of this large of page file could be minimal, based on the usage of the system, such as when hosting database management applications. However, there are also times when even larger page files are needed, such as when multiple applications are consolidated on to one system. Therefore, on servers with 4 GB or more of memory, it is often preferable to change the default size of the page file based on the usage of the server. Regardless, on x86-based computers with 4 GB or more of physical memory there should be a page file sufficiently large to capture a kernel memory dump.

A page file size of at least 2,050 MB is the minimum size necessary for computers with 4 GB or more of physical memory to capture a complete kernel memory dump. The page file can be much larger (up to three times the physical RAM is typical) if the system is being used for application consolidation.

Page Table Entries

The page table is used by the memory manager to track the physical location of the page files. When using 4GT, because of the smaller amount of virtual memory allocated to the kernel, the number of Page Table Entries (PTEs) that can be recorded by the memory manager in the page table is also significantly reduced. In a standard configuration (without 4GT), there are typically 80,000 to 140,000 PTEs available. This is reduced to only 40,000 PTEs when using 4GT. This can lead to problems when the amount of physical memory increases and the kernel is required to keep track of larger and larger amounts of PTEs.

4GT and PAE X86

PAE X86 is another technology that allows access to additional physical memory. 4GT and PAE X86 can be combined to provide applications large amounts of virtual memory and provide a significant performance boost. However, using 4GT reduces the amount of PTE space available to the kernel, while using PAE X86 dramatically increases the amount of memory that must be indexed and translated by the memory manager. Thus this combination will exhaust system kernel space much earlier than normal. Because of this, the memory manager imposes a virtual memory limit of 16 GB on a system with both 4GT and PAE X86 enabled. Even if a system has 32 GB or more of physical memory, if both options are enabled, only 16 GB of memory will be recognized.

Note

Even though the memory manager imposes a hard limit of 16 GB when both 4GT and PAE X86 are enabled, it is possible to encounter problems with lesser amount of memory, such as 8 GB or 12 GB. Therefore, the kernel should be given as much memory as possible.

Read the rest of this entry »

 

Google Public DNS

09 Mar

What is Google Public DNS?

Google Public DNS is a free, global Domain Name System (DNS) resolution service, that you can use as an alternative to your current DNS provider.

To try it out:

  • Configure your network settings to use the IP addresses 8.8.8.8 and 8.8.4.4 as your DNS servers or
  • Read our configuration instructions.

If you decide to try Google Public DNS, your client programs will perform all DNS lookups using Google Public DNS.

Why does DNS matter?

The DNS protocol is an important part of the web’s infrastructure, serving as the Internet’s phone book: every time you visit a website, your computer performs a DNS lookup. Complex pages often require multiple DNS lookups before they start loading, so your computer may be performing hundreds of lookups a day.

Why should you try Google Public DNS?

By using Google Public DNS you can:

 

Show emoticons Yahoo Messenger when logged on with a limited user on Windows XP

17 Feb

Many people asking until now “why i can’t see the yahoo messenger emoticons when logged on with a limited user / guest ?” or “how do i run program with administrator right on limited user ?”

The answer is simple use SuRun free application.

Read the rest of this entry »

 

Repair Activation Code Adobe Acrobat

19 Jan
  1. Go to C:\Documents and Settings\All Users\Application Data\FLEXnet\
  2. find the file name looks like adobe_00080000_XXX.data
  3. delete the data file
  4. then the acrobat will ask you to activate with the normal activation code.
 

Problem printer spooler HP Deskjet d2566

11 Jan

Just uncheck “Enable Advance Printing Features”

 

Manual Upgrade WordPress

11 Jan
  1. Get the New WordPress Either download and extract it to your computer or download it directly to the server.
  2. Replace your old wp-includes and wp-admin directories with the new.
  3. Done

Maybe you get a error message like this:

Fatal error: Call to undefined function is_admin() in wp-includes/vars.php on line 16

Doing this: Replace your old wp-setting.php with new wp-settings.php

Another Trick From WordPress

Overview of the Upgrade Process

  1. Backup your database. Read Backing Up Your Database for a detailed explanation.
  2. Backup ALL your WordPress files in your WordPress directory. Don’t forget your .htaccess file.
  3. Verify the backups you created are there and usable. This is essential.
  4. Deactivate ALL your Plugins.
  5. Ensure first four steps are completed. Do not attempt the upgrade unless you have completed the first four steps.
  6. Download and extract the WordPress package fromhttp://wordpress.org/download/.
  7. Delete the old WordPress files on your site, but DO NOT DELETE
    • wp-config.php file;
    • wp-content folder; Special Exception: the wp-content/cacheand the wp-content/plugins/widgets folders should be deleted.
    • wp-images folder;
    • wp-includes/languages/ folder–if you are using a language file do not delete that folder;
    • .htaccess file–if you have added custom rules to your .htaccess, do not delete it;
    • robots.txt file–if your blog lives in the root of your site (ie. the blog is the site) and you have created such a file, do not delete it.
  8. Upload the new files from your computer’s hard drive to the appropriate WordPress folder on your site.
  9. Run the WordPress upgrade program and follow the instructions on the screen.
  10. Update Permalinks and .htaccess. Update your Permalink Structure and merge the custom rules, if necessary, into your.htaccess file.
  11. Install updated Plugins and Themes. Please review the list of Plugins that work in Version 3.2.1. Check for Theme Compatibility with 3.2.1 and ask your Theme author for any new version.
  12. Reactivate Plugins
  13. Add security key definitions to the wp-config.php file
  14. Review what has changed in WordPress.

 

 

Make XP run faster! 10

28 Dec

1. Disable Indexing Services

Indexing Services is a small little program that uses large amounts of RAM and can often make a computer endlessly loud and noisy. This system process indexes and updates lists of all the files that are on your computer. It does this so that when you do a search for something on your computer, it will search faster by scanning the index lists. If you don’t search your computer often, or even if you do search often, this system service is completely unnecessary. To disable do the following:

  • Go to Start
  • Click Settings
  • Click Control Panel
  • Double-click Add/Remove Programs
  • Click the Add/Remove Window Components
  • Uncheck the Indexing services
  • Click Next

2. Optimise Display Settings

Windows XP can look sexy but displaying all the visual items can waste system resources. To optimise:

  • Go to Start
  • Click Settings
  • Click Control Panel
  • Click System
  • Click Advanced tab
  • In the Performance tab click Settings
  • Leave only the following ticked:
  • Show shadows under menus
  • Show shadows under mouse pointer
  • Show translucent selection rectangle
  • Use drop shadows for icons labels on the desktop
  • Use visual styles on windows and buttons

3. Speedup Folder Browsing

You may have noticed that everytime you open my computer to browse folders that there is a slight delay. This is because Windows XP automatically searches for network files and printers everytime you open Windows Explorer. To fix this and to increase browsing significantly:

  • Open My Computer
  • Click on Tools menu
  • Click on Folder Options
  • Click on the View tab.
  • Uncheck the Automatically search for network folders and printers check box
  • Click Apply
  • Click Ok
  • Reboot your computer

4. Disable Performance CountersWindows XP has a performance monitor utility which monitors several areas of your PC’s performance. These utilities take up system resources so disabling is a good idea.

To disable:

  • download and install the Extensible Performance Counter List
  • Then select each counter in turn in the ‘Extensible performance counters’ window and clear the ‘performance counters enabled’ checkbox at the bottom.button below

5. Improve Memory Usage

Cacheman Improves the performance of your computer by optimizing the disk cache, memory and a number of other settings.

Once Installed:

  • Go to Show Wizard and select All
  • Run all the wizards by selecting Next or Finished until you are back to the main menu. Use the defaults unless you know exactly what you are doing
  • Exit and Save Cacheman
  • Restart Windows

6. Optimise your internet connection

There are lots of ways to do this but by far the easiest is to run TCP/IP Optimizer.

  • Download and install
  • Click the General Settings tab and select your Connection Speed (Kbps)
  • Click Network Adapter and choose the interface you use to connect to the Internet
  • Check Optimal Settings then Apply
  • Reboot

7. Optimise Your Pagefile

If you give your pagefile a fixed size it saves the operating system from needing to resize the page file.

  • Right click on My Computer and select Properties
  • Select the Advanced tab
  • Under Performance choose the Settings button
  • Select the Advanced tab again and under Virtual Memory select Change
  • Highlight the drive containing your page file and make the initial Size of the file the same as the Maximum Size of the file.

Windows XP sizes the page file to about 1.5X the amount of actual physical memory by default. While this is good for systems with smaller amounts of memory (under 512MB) it is unlikely that a typical XP desktop system will ever need 1.5 X 512MB or more of virtual memory. If you have less than 512MB of memory, leave the page file at its default size. If you have 512MB or more, change the ratio to 1:1 page file size to physical memory size.

8. Run BootVis – Improve Boot Times

BootVis will significantly improve boot times

  • Download and Run
  • Select Trace
  • Select Next Boot and Driver Trace
  • A Trace Repetitions screen will appear, select Ok and Reboot
  • Upon reboot, BootVis will automatically start, analyze and log your system’s boot process. When it’s done, in the menu go to Trace and select Optimize System
  • Reboot.
  • When your machine has rebooted wait until you see the Optimizing System box appear. Be patient and wait for the process to complete


9. Remove the Desktop Picture

Your desktop background consumes a fair amount of memory and can slow the loading time of your system. Removing it will improve performance.

  • Right click on Desktop and select Properties
  • Select the Desktop tab
  • In the Background window select None
  • Click Ok


10. Remove Fonts for Speed

Fonts, especially TrueType fonts, use quite a bit of system resources. For optimal performance, trim your fonts down to just those that you need to use on a daily basis and fonts that applications may require.

  • Open Control Panel
  • Open Fonts folder
  • Move fonts you don’t need to a temporary directory (e.g. C:\FONTBKUP?) just in case you need or want to bring a few of them back. The more fonts you uninstall, the more system resources you will gain.

Hope you find these 10 tips useful please leave a comment below and please share any other tips you may have with other readers.

 

Decoding PHP

07 Dec

online tool to decode PHP

http://www.tareeinternet.com/scripts/decrypt.php

http://www.tareeinternet.com/scripts/base.html

http://tareeinternet.com/scripts/byterun.php

 
No Comments

Posted in Website

 

Warning: block core.NavigationLinks doesn’t exist

05 Dec

Peringatan seperti judul di atas sering kali saya temui pada saat proses migrasi Gallery ke tempat hosting lain. Seperti biasanya, setiap kali migrasi hosting ini diawali dengan proses upgrade Gallery sebagaimana kita install pertama kali. Dan setelah proses upgrade telah selesai dan halaman Gallery telah berhasil muncul, ada peringatan seperti di bawah ini.

“WARNING: block core.NavigationLinks doesn’t exist pada Gallery”

Ternyata cara untuk memperbaikinya sangat sederhana sesuai yang dijelaskan pada link http://gallery.menalto.com/node/73352.

  1. Buka file file sidebar.tpl pada directory “themes/yourthemes/templates/”, kemudian hapus baris di bawah {g->block type=”core.NavigationLinks”}
  2. Lakukan hal serupa pada file “themes/yourthemes/templates/module.tpl”, apabila juga terdapat baris {g->block type=”core.NavigationLinks”}
  3. Clear template cache dengan cara masuk ke menu
    Site admin > Maintenance > Delete template cache, klik run now
 
No Comments

Posted in Website