// archives

CentOS

This tag is associated with 1 posts

Solved: Garbled text in Putty

Putty is a popular and free Linux terminal/shell client for Windows. It allows one to connect to a Linux server using SSH (Secure Shell) or Telnet. I have been using it for as long as I can recall. But this issue of garbled text in Putty is what I have been ignoring, until yesterday.

Yesterday, I had setup Paradox database using DOSEMU on Linux, for a client. On Putty, the Paradox interface showed garbled making it unusable for the client. My instant suspect was DOSEMU. A quick check revealed that it’s happening with other apps too - those with a ncurses or text based user interface. Read the rest of this entry »

GD Star Rating
loading...
GD Star Rating
loading...

Twitter Updates for 2010-03-16

GD Star Rating
loading...
GD Star Rating
loading...

Web Scraping with Firefox and PHP, using XPath

Last year, I faced two projects which required automated Web scrapping – to aggregate content from web pages. I evaluated different methods for Web scraping with varied level of success. Thanks to the changing structure of Web pages, non well-formed pages and URL redirects.

Amongst using regular expressions and DOM (Document Object Model) parsing, I used XPath too. XPath works great for well-formed Web pages. Read the rest of this entry »

GD Star Rating
loading...
GD Star Rating
loading...

FTP Backups made easy

I do not recall backing up data over FTP (File Transfer Protocol) in the near past. Thanks to the SSH (Secure SHell) suite of programs like SCP (Secure Copy) and SFTP (Secure FTP), and RSync. But recently I had to setup a scheduled and unattended backup of data lying on a shared hosted server using FTP – the only available option at my disposal.

Wget is a popular and obvious choice to try out for FTP backups. But it didn’t work for me and threw an error saying cannot find .listing file. While I was about to dwell more into wget, I spotted the forgotten hero – lftp. Read the rest of this entry »

GD Star Rating
loading...
GD Star Rating
loading...

Twitter Updates for 2009-09-03

  • #RedHat Enterprise Linux 5.4 is out. Shall wait for the following #CentOS 5.4 release. #RHEL #
  • Perhaps the coolest (longest & heavy) rainfall in west #Delhi (and NCR?). YAHOO! (not affiliated to Yahoo!) #rain #weather #
  • Open the #Windows and let the #Linux come in ;) #
GD Star Rating
loading...
GD Star Rating
loading...

Twitter Updates for 2009-08-25

  • For those using #CentOS 4 (not for CentOS 5 installations), CentOS 4.8 is out. "yum update" #Linux #
  • Please join me in wishing @kbhargava a very happy birthday! TREAT!!! #
  • @kbhargava arre @pankaj_shukla has been saying "Kishore's sir bday treat is on me. I want to show my respect for the gr8 man" in reply to kbhargava #
  • @juhib indus valley civilization is also called ….? in reply to juhib #
  • @juhib right! While u are on the subject, I recalled it from my ratto-fication. No google or bing search, I swear. in reply to juhib #
  • #Google #Suggest is a killer app for developers. Have been using it extensively to pin point the #Drupal API functions #
  • #Linux #Fail Can't afford data curruption. No way. RT @aseemsood #Ubuntu 64bit with kernel 2.6.28.11 causes data corruption :( #
GD Star Rating
loading...
GD Star Rating
loading...

Twitter Updates for 2009-08-01

GD Star Rating
loading...
GD Star Rating
loading...

Twitter Updates for 2009-07-09

GD Star Rating
loading...
GD Star Rating
loading...

Twitter Updates for 2009-07-07

GD Star Rating
loading...
GD Star Rating
loading...

Postfix: Log E-mails’ Subject

In Linux, you can view the statistics of incoming and outgoing E-mails by peeking into a log file called maillog (typically found in /var/log directory). Maillog provides the general information about the mails, for example, the sender and recipient(s), status – sent, rejected, bounced etc. I typically use maillog to check the destiny of mails. At times, it becomes difficult to spot a particular mail due to the sheer volume of mails being logged – especially on a production mail server.

For example: what if we need to check whether a particular mail sent by Person A has been delivered to Person B. Note that Person A might be sending lots of mails to Person B but we need to spot that one particular mail – say the one, which was sent by Person A but did not reach Person B. The only identifier, to identify a particular mail, in the maillog is the cryptic message ID. A better and more readable identifier would be the subject of an E-mail.Unfortunately, the subject of the mails is not logged, by default, in the maillog. But we can configure a mail server like Postfix to log the subject line. Read the rest of this entry »

GD Star Rating
loading...
GD Star Rating
loading...
shekharg: 100 comments! on my blog post http://bit.ly/9lh2Vr on Amazon Kindle. Well, kinda 50+ since I reply to almost all comments ;-)
5:49 AM Jul 27, 2010, comment
Aha! Nice weather
8:08 PM Jul 26, 2010, comment
shekharg: Also Google Maps 4.4 update is available to download from the Android Market
7:48 PM Jul 26, 2010, comment
shekharg: 1.0.2 update of official Twitter app for Android is out & available from the Android Market. I just updated.
7:39 PM Jul 26, 2010, comment
shekharg: ffvp8 !!!
7:26 PM Jul 26, 2010, comment