LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old
Rating: 2 votes, 4.50 average.

Convert Metric <-> Imperial

Posted 01-03-2014 at 04:14 AM by druuna
Updated 01-31-2014 at 03:24 AM by druuna

Converting from metric to imperial and vice versa using bc.

Here are a few examples in the form of functions:

# -------------------------------------------------------------------------- #
# - Imperial to metric
# -------------------------------------------------------------------------- #

  • pounds to kilograms
PHP Code:
# Function : lbToKg
# Syntax   : lbToKg <pounds>
#
# Convert pounds to kilogram
function lbToKg() { 
...
LQ Veteran
Posted in General
Views 1430 Comments 0 druuna is offline
Old
Rating: 2 votes, 4.50 average.

Various Linux Guides I have collected

Posted 03-12-2014 at 01:23 PM by Habitual
Updated 09-15-2016 at 09:24 AM by Habitual

Figured I should post this on-going list of shell resources:

### Recent/Featured ###
Sudo: you're doing it wrong - PDF @ 171 pages.
Sudo: you're doing it wrong - YouTubeVid @ 1h:11m
Tools To Password Protect Folder In Linux
New rute - Thanks Robby Workman
Teach your Grandmother to write scripts. - I shit you not.

### Beginner User Guides: ###
Safe Hex: The Rules for Safe Computing
rute.pdf
Linux for Beginners, Multiple Howtos, Manpages etc......
LQ Addict
Posted in Uncategorized
Views 1444 Comments 5 Habitual is offline
Old
Rating: 2 votes, 4.50 average.

(Not) Microsoft calling...

Posted 02-24-2015 at 06:37 AM by brianL
Updated 02-24-2015 at 06:39 AM by brianL

It's been a while since I got one of these calls. Somebody with a strong Indian accent, using an English name (Andrew, this time), and claiming to work for Microsoft.
After introductions, this is the conversation:
Andrew: we have reports that your computer has been downloading malicious software.
Me: Oh? That sounds bad.
Andrew: Don't worry, we can fix it.
Me: I hope so.
Then asks if I'm at my computer & is it on. And which browser I use.
Andrew:...
LQ 5k Club
Posted in Uncategorized
Views 523 Comments 0 brianL is offline
Old
Rating: 2 votes, 4.50 average.

Hard-earned lessons

Posted 12-05-2015 at 12:58 PM by rocket357 (Musings on technology, philosophy, and life in the corporate world)

If there is one thing I have never fully understood, it is bird people. They have tons of birds loose in their house, feathers and bird crap on everything...just, not a good way to go, right? Last time I visited a friend who is a bird person, I had some feathery jerk land on my head and crap on my glasses.

I'm more of a fish and reptile person. I tolerate cats and dogs (well, moreso cats than dogs). So when my wife suggested we get two parakeets to keep as pets, I wasn't thrilled....
Member
Posted in Uncategorized
Views 2111 Comments 8 rocket357 is offline
Old
Rating: 2 votes, 4.50 average.

My Aliases used on a daily basis

Posted 06-30-2016 at 01:57 PM by lazydog

Here is a list of Aliases I use on a daily basis, some more then others. For machines I do not have a home directory I carry a small usb stick that I then source them from.

For systems I have a home directory on I source them from bashrc as follows:

Code:
# Common Aliases
if [ -e ~/.alias ]; then
         source ~/.alias
fi
Alias List:
Code:
#######################################################
...
Member
Posted in Uncategorized
Views 258 Comments 1 lazydog is offline

  



All times are GMT -5. The time now is 08:16 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration