LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

VBS equivalents of some Linux date command format sequences

Posted 02-27-2012 at 10:13 PM by catkin

Here are some Visual Basic Script statements that generate the effect of the Linux date command used with format sequences %y, %Y, %b, %B, %n, %a, %A, %d, %H, %I, %p, %M and %S
Code:
Const DATE_PART_ABBREVIATE = True
Dim strValue

' %y for year, two digit
strValue = Right(DatePart( "yyyy", Now), 2)

' %Y for year, four digit
strValue = DatePart( "yyyy", Now))

' %b for month name, example Jan
strValue
...
LQ 5k Club
Posted in Uncategorized
Views 1018 Comments 0 catkin is offline
Old

Configuring Opera 10 with a more classic/cleaner interface

Posted 02-14-2012 at 10:38 AM by catkin
Updated 02-14-2012 at 10:39 AM by catkin (Fixed double quote in wrong place)

Disabling Speed Dial (allows a blank page at Start-up)
  1. In the Opera address bar, type in about:config or opera:config.
  2. User Prefs → Speed Dial State and set it to 3 (disabled).
  3. Save (bottom of page).
Now can get a blank page at start-up by Preferences → General and setting Start-up to "Start with Speed Dial".

Panel at top with text instead of icons
  1. Make the panel bar visible (F4 toggles visibility).
  2. Menu → Appearance (F12) → Toolbars
  3. Click
...
LQ 5k Club
Posted in Uncategorized
Views 3788 Comments 2 catkin is offline
Old
Rating: 3 votes, 5.00 average.

Hero Honda Splendor fork oil change

Posted 02-11-2012 at 12:36 AM by catkin

The easiest way to do this job is to remove the drain plugs but the part that they screw into within the slider may turn. If that happens a special tool is required to hold it. The procedure described here avoids that danger; it does not need any special tools.

Note on terms: the fork tube (a.k.a. stanchion) is attached to the yokes (a.k.a. triple tree) which pivot in the frame while the slider (a.k.a tube) holds the wheel. The least ambiguous terms, "stanchion" and "slider",...
LQ 5k Club
Posted in Uncategorized
Views 2064 Comments 0 catkin is offline
Old

Fix: browser downloads PHP file instead of running it (Debian Squeeze)

Posted 01-31-2012 at 02:39 AM by catkin

This problem took nearly a day to solve so here's the solution.

The problem symptom was with nagios3. After browsing http://<server>/nagios3 and logging on, Firefox opened a download dialog with said "You have chosen to open <blank line> which is a: application/x-httpd-php".

Looking for nagios-specific solutions was not fruitful. It was only when I searched for solutions to the browser downloading PHP files instead of running them I found solutions...
LQ 5k Club
Posted in Uncategorized
Views 1662 Comments 0 catkin is offline
Old

Apache configuration for Xapian Omega on Slackware 13.1

Posted 01-23-2012 at 10:09 AM by catkin

Here's an Apache configuration file for Xapian Omega on Slackware 13.1, to be saved as /etc/httpd/omega.conf

It was developed and tested on Slackware64 13.1 with Xapian Omega 1.2.8 installed by SlackBuild.
Code:
# Apache configuration file for Xapian Omega

<Directory /srv/httpd/htdocs/omega>
    Allow          from all
    DirectorySlash On
    Options        FollowSymlinks
    Order          Deny,Allow

    RewriteEngine
...
LQ 5k Club
Posted in Uncategorized
Views 1179 Comments 0 catkin is offline

  



All times are GMT -5. The time now is 03:22 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration