Pencarian

Rss Posts

 

 

 

Berita pada bulan March, 2010

Merecovery GRUB2 (Ubuntu 9.10)

Mar 31, 2010

Ubuntu Koala Karmic/Ubuntu 9.10 berbeda dengan Ubuntu-ubuntu sebelumnya, dulu kita dapat bebas mengedit file GRUB yang terdapat di /boot/grub/menu.lst. sedangkan GRUB 2 ini pengaturannya terdapat pada pada file /etc/default/grub dan file-file didalam folder /etc/grub.d/. Bagaimana seandainya grub2 kita terjadi error??
Berikut langkah-langkah mengembalikan/recovery grub 2;
1. Booting menggunakan live cd ubuntu; masuk ke terminal, jalankan [...]

Task Manager di Ubuntu

Mar 31, 2010

Beda di windows, kalau error atau hank cara jitu mengatasinya dengan mengetikkan ctrl + alt + del muncullah Windows Task Manager. Bagi pengguna windows pasti tau apa yang harus mereka lakukan?? Bagaimana dengan di Ubuntu?? Memang jarang sih hal ini di singgung, karena banyak pengalaman, Linux memang terbukti jarang terjadi crash atau hang atau ?not [...]

Mengapa Linux Lebih Tahan Virus

Mar 31, 2010


Ketika membandingkan dua sistem operasi, antara Micr. Windows dengan GNU/Linux, kebanyakan orang/user pasti menjawab bahwa Linux more secure against viruses. Hal inilah yang mungkin juga menjadi alasan banyaknya hosting dan webserver komputer yang lebih nyaman menggunakan Server berbasis Linux daripada berbasis Windows Server.
Dalam tulisan ini, kami mencoba menjelaskan beberapa alasan, mengapa Linux lebih tahan dan [...]

Martinus Ady H: Diskusi Manajemen Proyek

Mar 31, 2010

Pingin tahu bagaimana tips dan trik mengelola proyek IT ? Atau mungkin, pingin tahu bagaimana sih dapur-nya sebuah Software House itu ? Atau ingin tahu bagaimana sih penerapan Extreme Programming, Agile Metodologi, dan berbagai macam metodologi keren yang lain. Kalau iya dan teman-teman ingin tahu, mungkin teman-teman bisa bergabung ke milis Manajemen Proyek IT yang [...]

Ngoprek Java

Mar 31, 2010

Rabu, 24 Maret 2010 ngoprek Java diisi saudara ghalih semester 2, pada saat itu peserta yang hadir cukup banyak sehingga suasana di labsi begitu meriah.
disini yang dibahas adalah membuat aplikasi konversi angka dengan Netbean java dan materi dapat dilihat di File materi Java

Zend Framework starter kit interest? – Michael Kimsal

Mar 30, 2010

I?m putting together a basic Zend Framework starter kit. ?Right now I?ve got basic Doctrine 1.2 integration with predefined directories for schema, models, etc. ?Also an init process to allow for automatic injection of specified objects on to front controllers (think $this->session available in your controllers, for example).

Any interest in getting a copy of this? ?What other things would you like to see preconfigured or preintegrated in a starter kit?

Can we get faster expression handling in MySQL

Mar 30, 2010

Andrew from Sphinx continues to work on improving SQL (or SphinxQL) support and now he published benchmarks comparing arithmetic expression handling in Sphinx to one in MySQL. The result ? Sphinx scored 3x to 20x faster. Andrew goes to explain results are not 100% comparable (as we can see in the table results are even different) and some performance can be attributed to Sphinx using different typing for expression. Though I#8217;m wondering how much of Performance difference that really explain. I doubt it is 20x. Andrew goes on to explain there are further optimizations possible for Sphinx such as JIT compilation and expression optimization which he claims can increase the lead even further
Andrew is kind enough to provide explanations and benchmark results though this is far from the first notion of this problem I hear about. Many other companies looking to optimize MySQL problem, especially in analytics space when expressions should be computed over hundreds of millions of rows have expressed their concerns with this part of MySQL execution. I#8217;m wondering if we#8217;re going to see any improvements in this space by Oracle, MariaDB or Drizzle. I think Drizzle is in advantage here #8211; with simplifying MySQL functionality a lot they probably can also simplify expression handling to be faster.

Entry posted by peter |
3 comments
Add to: | | | |

Widya Walesa: .la Removal

Mar 26, 2010

I’ve decided to remove all .la files from my own build packages since those files doesn’t have anything to do with the executable binaries. Some says that some program needs this .la files to load…

[read more on http://wallinux.blogspot.com/]

Systems Administrator Creed

Mar 25, 2010

p /pbr/p class=MsoPlainTextThis is my server.nbsp; There are many like it, but this one is mine.nbsp; My server is my best friend.nbsp; It is my life. I must master it as I master my life.nbsp; My server, without me is useless. Without my server, I am useless.nbsp; I must configure my server true.nbsp; I will…/pbr/p class=MsoPlainTextnbsp;/pbr/p class=MsoPlainTextMy server and myself know that what counts in this war is not the packets we drop, the noise of our fans, norRead More…

How to Handle Unloaded PHP Extensions at Runtime – SitePoint » PHP

Mar 25, 2010

configure PHPUnless you?re creating very simple applications, you will soon require one or more PHP extensions. Extensions are code libraries which extend the core functionality of the language.

Loading an Extension

For the purposes of this article, we?ll assume you need to create or manipulate images and require PHP?s GD library. To load the GD library on your system:

  • For Windows, you need to include/uncomment the line extension=php_gd2.dll in your php.ini configuration file.
  • For Linux/Unix, you should use the PHP configure option --with-gd.
  • For Mac OS X ? er, you best Google it. Apologies for not providing specific details, but there appear to be multiple ways of configuring GD support. It depends on your version of OS X and whether you?re using the built-in web server or a custom installation of Apache.

But what happens when you want to move your web application to another host or platform where a different set of extensions are configured?

Checking an Extension is Loaded

PHP provides an extension_loaded(name) function which returns true when the named library is available, e.g.


<?php
if (extension_loaded('gd')) {
	echo 'GD extension is loaded and everything is fine!';
}
else {
	echo 'Where is the GD library?';
	exit();
}
?>

Alternatively, you can check for the existence of specific library function using function_exists(), e.g.


<?php
if (function_exists('gd_info')) {
	echo 'gd_info() is available so the GD library is probably available.';
}
else {
	echo 'gd_info() cannot be found?';
	exit();
}
?>

However, function_exists() is more risky ? another developer could write their own function named ?gd_info?.

I?d recommend using function_exists() in situations when a function has been introduced in a later version of PHP. For example, if your application runs in both PHP4 and PHP5, you could check for the existance of imagefilter() (a PHP5-only GD function) before attempting to modify an image.

Handling Unloaded Extensions

PHP provides a dl() function for dynamically loading extensions at runtime. Unfortunately:

  • it may be disabled on your system
  • extensions must be loaded by referencing the filename; these are different across platforms
  • it?s a little flaky?
  • so it?s has been deprecated in PHP 5.3
  • and will be removed from PHP6.

I?d recommend avoiding dl(). That leaves us with three options:

  1. Ensure the extension is enabled on all your target platforms before coding begins!
  2. Alert the administrator when an essential extension is not available during installation. For example, your application should stop gracefully and provide further instructions if it won?t run without the PDO database interface.
  3. Provide a downgraded experience. For example, your application could disable image manipulation if the GD library is not available. You could alert the administrator during installation but still let the application run.

Do you have any other tips for handling missing PHP extensions?

<script src=”http://adscluster.aws.sitepoint.com/openx/adjs.sp.php?region=14&did=adz&adtype=vertical” type=”text/javascript”>

Related posts:

  1. Mozilla Jetpack: Firefox Extensions with Added Thrust Craig looks at Mozilla's new Jetpack project, a potential glimpse...
  2. How to Use PHP Namespaces, Part 3: Keywords and Autoloading In the final part of his series explaining PHP namespaces,...
  3. How to Use PHP Namespaces, Part 1: The Basics In the first part of a series of articles, Craig...