Latest Entries
Java 6 ve Desktop API
Geçtiğimiz günlerde Sun Java 6.0 diğer adıyla Mustang’in RC sürümünü yayınladı. Mustang ile birçok yeni özellik ve performans iyileştirmesiyle geliyor.
GUI uygulamalarında özellikle işletim sistemi sipesifik L&F’de iyileştirmelere gidilmiş.Yeni birkaç kütüphane eklenmiş,splash,desktop,tray icon …gb. Burda biraz Desktop’dan bahsedicem diğerlerine zaman oldukça ilerleyen günlerde bakabilirz.
Desktop API işletim sisteminde tanımlı programları kolayca kullanabilmemizi sağlıyor.Mesela bir URL’i işletim sisteminde tanımlı browser ile açmak,dosyaları düzenlemek,mail göndermek … v.s.
Şimdide Desktop API’yi nasıl kullanacağımız hakkında küçük bir örnek:
Öncelikle bulunan platformun java.awt.Desktop için desteklenip desteklenmediğini öğrenmeliyiz. Bunun için :
if (!Desktop.isDesktopSupported()) {
// Disable components
…………….
Desktop API Solaris ve Linux işletim sistemlerinde Gnome ait kütüphanelere bağlı olduğu için, yüklü olmaya sistemlerde Exception oluşabilir.
Daha sonra uygulamalarımız çok basit bir şekilde çağırabiliriz. Bir web sitesini açmak için :
……
Desktop desktop = Desktop.getDesktop();
desktop.browse(new URI(“www.bilisimdogus.com”));
……
Herhangi bir dosyayı düzenlemek için;
……
desktop.edit(new File(“C:/bart.gif”));
……
Gördüğünüz gibi çok kolay Smile Uygulamadan küçük bir ekran görüntüsü ve linkler:
Kaynak kodu eclipse projesinin ziplenmiş hali, dosya aynı zamanda çalışıtırılabilir jar da içeriyor.(bilmeyenler için, jar dosyasını tıklayarak direk çalıştırabilirsiniz.)
PHP 5.2.0 Release
PHP 5.2.0 Release Announcement
The PHP development team is proud to announce the immediate release of PHP 5.2.0. This release is a major improvement in the 5.X series, which includes a large number of new features, bug fixes and security enhancements.
The key features of PHP 5.2.0 include:
* New memory manager for the Zend Engine with improved performance and a more accurate memory usage tracking.
* Input filtering extension was added and enabled by default.
* JSON extension was added and enabled by default.
* ZIP extension for creating and editing zip files was introduced.
* Hooks for tracking file upload progress were introduced.
* Introduced E_RECOVERABLE_ERROR error mode.
* Introduced DateTime and DateTimeZone objects with methods to manipulate date/time information.
* Upgraded bundled SQLite, PCRE libraries.
* Upgraded OpenSSL, MySQL and PostgreSQL client libraries for Windows installations.
* Many performance improvements.
* Over 200 bug fixes.
Security Enhancements and Fixes in PHP 5.2.0:
* Made PostgreSQL escaping functions in PostgreSQL and PDO extension keep track of character set encoding whenever possible.
* Added allow_url_include, set to Off by default to disallow use of URLs for include and require.
* Disable realpath cache when open_basedir and safe_mode are being used.
* Improved safe_mode enforcement for error_log() function.
* Fixed a possible buffer overflow in the underlying code responsible for htmlspecialchars() and htmlentities() functions.
* Added missing safe_mode and open_basedir checks for the cURL extension.
* Fixed overflow is str_repeat() & wordwrap() functions on 64bit machines.
* Fixed handling of long paths inside the tempnam() function.
* Fixed safe_mode/open_basedir checks for session.save_path, allowing them to account for extra parameters.
* Fixed ini setting overload in the ini_restore() function.
iPod – Life is random!
Sen gerçek bir abisin.Tüm yaptıkların ve bu güzel hediyen için çok teşekkür ederim.

