Category » Miscellaneous

WinSCP: How to view the hidden files like .htaccess

WinSCP comes with a configuration setting that allows you to show or hide the hidden files . To view the hidden files, activate the setting by going to:

Options >> Preferences >> Panels

Select the “Show hidden files”  option under the common settings and click the “OK” button.

Continue reading »

Securing Solr Admin Interface on Tomcat

Apache Solr

Solr admin interface provides information about the solr and its running environment, provides the power to manage cores, view the logs etc. It is open to public by default hence a security risk, lets see how we can password protect the solr admin.

The steps mentioned have been tried in a hosting environment which has the following software installed.

  • apache-tomcat-7.0.55
  • jdk1.7.0_65
  • solr-4.10.0
  • CentOS 6.5

Continue reading »

What is better, curl or wget?

curl vs wget

Both cUrl and Wget can be used to download files, but the question comes which one to use. cUrl and Wget have some similarities and as well as differentiating factors, the one to use depends on your need.

Continue reading »

Redirect your website users to your preferred URL, either WITH or WITHOUT the ‘www.’ prefix


If your website can be accessed with and without www then its considered having duplicate pages. If you have ever integrated the “facebook like” button on your website pages, try accessing the page with www and without www; you will notice different like counts displayed on the pages.

To prevent these duplicate pages on your website, you can redirect non-WWW traffic to WWW or vice-versa using mod_rewrite in your .htaccess file.

Continue reading »

Force Files to Download Instead of Showing Up in the Browser

curl vs wget

Sometimes you may have noticed that when you click on a download link, the file shows up in one browser while in some other browser it gets downloaded. Internet Explorer will usually try to show Microsoft Word files (doc and docx) in the browser, while most other browsers will download it.

If the browser supports a file it shows up the file else it downloads the file. Image files like png, gif, jpg almost always show in the browser. Archive files like zip, tar, and gzip almost are always downloaded.

Continue reading »

Invalid data: Filezilla is running in kiosk mode

Today I had to fix an issue in a new website of my client. I opened FilZilla and tried to add the FTP details of the site by going to File >> Site Manager. I add the “Host” details, selected protocol as “FTP”, login type “Normal”, added the “User” and “Password”, and then finally clicked on “Connect” button. Guess what happened, I was able to connect to the site – “No”. A pop up appeared saying “Filezilla is running in kiosk mode. “Normal” and “Account” logintypes are not available in this mode“.

Continue reading »

IE7 issues with jQuery removeAttr method

I had used jQuery('#id').attr('readOnly', 'readOnly') set the readonly property of text box and used jQuery('#id').removeAttr('readOnly') to make the text box again but then found that "removeAttr" did not work in IE7, the textbox was still not editable.

Continue reading »

Back to top