Nimal's Weblog

Nimal blogs here


Currently browsing ‘Linux’ Tag

Text to Image in PHP with GD

This is simple script to demonstrate the capabilities of PHP with the GD library, which provides a lot of image functions that can be useful in many applications.

  • 1 Comment
  • Filed under: Tech Notes
  • Activate Oracle on XAMPP for Windows

    PHP has got the OCI8 extension, which provides Oracle connectivity to PHP application, and OCI8 uses Oracle Instant Client Package to get Oracle specific functions.

  • 5 Comments
  • Filed under: Tech Notes
  • The meanings of –exclude and –exclude-from are always confusing to me. I’m always confused with the use of ‘exclude’ options with ‘tar’.

  • 0 Comments
  • Filed under: Tech Notes
  • VirtualBox can be given higher priority using nice command. Also renice command can be used to change the priority of a running process.

  • Comments Off
  • Filed under: Tech Notes
  • Problem:I'm using grep to search for an error and want to display the surrounding lines also as they contain related information. How to do that? Solution:Using grep -C <# of lines to show above and below> <search> <file> The following prints the matched line, along with the 5 lines surrounding it. $ grep -C 5 [...]

  • 1 Comment
  • Filed under: Tech Notes