↓
 

Brent's World

Your weekly dose of the life of Brent!

  • Home
  • About Me
  • Korea
  • Travel
  • Restaurants
  • Photography
  • Movie Reviews
  • Book Reviews
  • Recipies
  • Index
  • Forums
Home - Page 15 << 1 2 … 13 14 15 16 17 18 19 >>

Post navigation

← Older posts
Newer posts →

Quickie – Adding Holidays To Outlook 2013 Calendar

Brent's World Posted on August 12, 2015 by Brent HendricksMay 25, 2020

Did you know that you can easily add holidays to your calendar in Microsoft Outlook? If the answer to that question is NO! I am going to show you show you how.

1) If not already open launch Microsoft Outlook 2013.

Outlook Splash
2) Select the File tab, then selection Options.

File Tab
3) In the Outlook Options window, select Calendar.

Calendar Options
4) Under Calendar options, Click Add Holidays.

Add Holiday
5) In the Add Holidays to Calendar windows, Scroll to find your country, click the check box, then click OK

Add Holiday to Calendar
6) Back on the Outlook Options windows, Click OK.

 

Outlook Options
7) You’re all done! You now have your countries holidays in your Calendar, and if you synch to a portable device such as a phone or tablet. They will show up on the device as well.

Posted in Technical | Leave a reply

Book Review – Rick Campbell’s The Trident Deception

Brent's World Posted on August 9, 2015 by Brent HendricksAugust 9, 2015

Trident Deception CoverI must say this feels a bit strange, I have not done a ‘book report’ since high school. That would have been 21 years ago. However since we have done movie reviews on Brent’s World I thought it might be a good change of pace.

Ask most people who know me really well, to say I love to read would be a gross understatement. I try to set aside time for a book as often as I can. Where I always make sure I have book with me wherever I go, I know make sure I have my iPad with at least a few books in my backpack.

My most often read genres include medical thrillers (Robin Cook), Techno Thrillers (Tom Clancy and Larry Bond), Crime and Drama (Nelson DeMille and David Baldacci.). Over the years I have read every novel these authors have published. So I do find myself searching Amazon for author authors to sink my teeth in to. It was one of these searches that introduced me to the work of Rick Campbell and The Trident Deception.

Rick Campbell a retired Naval Commander turned author served on the very submarines he now writes about, with tours in the Pentagon and Washington DC. His knowledge and experience is definitely evident in the exciting sea yarn he spins.

The Trident Deception tells the story of a desperate MOSAD (Israeli intelligence), frantic over the advances made by the Iranian nuclear arms program, and frustrated by the lack of response by both the Israeli and American governments develops a plan to neutralize the threat once and for all and pin the blame squarely on America.

The Israeli agents are able to do the unthinkable, they get an employee of the National Command Authority to send a fraudulent nuclear launch order to a Trident Ballistic Missile Submarine! While it should just be a matter of sending a properly coded strike cancellation to the submarine. A spy aboard the SSBN sabotages the radio so the cancellation order never arrives.

The entire pacific fleet is soon sent underway with orders to find and sink the USS Kentucky, No simple task as the Ohio Class SSBNs are one of the quietest in the US Submarine arsenal. Will the US NAVY find the USS Kentucky before they are able to launch enough nuclear ballistic missiles at Iran to not only wipe out the nuclear facility, but to wipe Iran off the face of the planet? If the USS Kentucky is able to launch, will the anti-ballistic missile batteries or AEGIS destroyers deployed in the Persian Gulf be able to shoot down the errant missiles? Complicating matters, the Navy Captain who is  tasked with finding and ultimately sinking the USS Kentucky has a huge conflict of interest when it is revealed his son is serving as a officer aboard the Kentucky.

The Trident Deception is a novel that stands up right next to some of Tom Clancy’s and Larry Bonds best works, a definite page turner! The book will definitely appear to submarine aficionados, as well as action and suspense fans. The naval action, and suspense will keep you on the edge of your seat, turning page after page to find out how situations will play out. The espionage subplot will keep you guessing who the mole is in the Pentagon, and most importantly of all to find out if the unwitting crew of the USS Kentucky will accomplish their mission and launch their nuclear weapons against a country of mostly innocent civilians. Will Captain Wilson be able to carry out his orders and his duty, but ultimately killing his son?

I highly recommend you purchase The Trident Deception and find out. You will not be disappointed.

The Trident Deception can be purchased in Hardcover, Paperback, and KINDLE at Amazon.

http://www.amazon.com/Trident-Deception-Rick-Campbell/dp/125006127X/ref=sr_1_1?ie=UTF8&qid=1439057511&sr=8-1&keywords=trident+deception

Posted in Book Reviews | Leave a reply

Is the Mac the Amiga of today?

Brent's World Posted on July 26, 2015 by Brent HendricksJuly 26, 2015

Forward: A post that I saw on Facebook caught my interest, because it brought back memories of a very similar conversation that I had with someone on Facebook regarding this very subject. So it got the wheels spinning and the creative juices flowing. The post was reflecting on the niche the Commodore Amiga found in the desktop video market, and was comparing it to Apple’s position in the marketplace with the audio/video capabilities of the Mac. The question was raised if we thought the Mac is the Amiga of today, and if Commodore had marketed the Amiga correctly could the Amiga hold the same position in the market.

This is an interesting question, and one that I had discussed with a user on my BBS at one time. While you can certainly draw comparisons between the Amiga’s video, photo, and audio capabilities. You might even be able to compare the operating systems up to a point. There are a couple of things that Apple did that Commodore was no longer doing, or never did that positioned the Macintosh (The iMac and the Macintosh G3), to gain market acceptance. The final point that may have doomed the Amiga is that the concept of a multimedia computer was plain and simply ahead of its time.

Peripherals / Third Party Hardware – One of the strange things about the Commodore Amiga, is that it’s main selling point (Besides being a kick ass game machine.), was that it could be used as both a consumer, or high end video editing / titling platform. One of things Amiga users always bragged about was the fact that our computers were used by Hollywood in such projects as Terminator 2, and Seaquest DSV. However how many people do you actually know who used their Amiga for this? How easy was it to connect your Camcorder, or Video Cassette Recorders to your computer? While there were products out there for this, they were either expensive enough to place it out of reach of most consumers, or too complex. This is one of the things Apple got right! Not only did Apple produce the software, and gave it away on new Mac purchases. They incorporated 2 industry standards and coordinated with the camera and camcorder manufactures to incorporate these interfaces into their products. So I could latterly go to an electronics or camera store come home and plug it in and start working. With the Amiga we had an extremely capable device but nobody was coming on board with Commodore to make it easy for the average consumer. It’s like having a really fast and hi-tech car, but nobody is making the fuel for it to run on.

Software – Let’s face it, Apple makes some great software, even though one of my pet peeves with Apple, is that they develop these great tools, and then after a while when they decide to focus on something else they let the tools stagnate and then eventually kill them off. Not really caring if you built your workflow around their tools or not. I’ll use Aperture as an example. That aside, Apple has given us some great video and photo editing tools! For both the consumer and professional. iPhoto, iMovie, Garage Band, the before mentioned Aperture, and Final Cut Pro. These products were all geared towards how Apple was marketing their product! Except for the AmigaOS, Commodore was no longer developing software in house, nor where they driving other companies to develop applications specifically towards Amiga’s strengths. While we all know of the names of the applications geared towards Amiga’s niche. NewTeks Video Toaster, DPaint, or Lightwave. I do not know anyone who went out and specifically bought the Amiga for these applications. If you ask, you are probably going to be told more often than not that the Amiga was bought so one could play Lemmings or Pinball dreams.

Standards – Although Apple is known for developing closed systems, and walled gardens. Apple has embraced, adhered to, and developed industry standards. Which helped it establish itself in the Desktop Publishing world. For instance working closely with Adobe to develop Postscript for its flagship LaserWriter printers. Which saw the birth of Desktop Publishing virtually overnight. The adoption of IEEE1394, (Firewire) to name a few. About the only standard Commodore adhered to was NTSC or PAL for those in Europe. The complete reliance on custom chipsets, for video and sound made developing third party video cards, and audio cards almost impossible. It wasn’t until Amiga OS 3.5/4.0’s release came out that retargetable graphics was even remotely possible. This meant that any video card had to be written specifically to be used with that card or it was basically worthless. Apple had retargetable graphics since the development of the Macintosh II.

Timing – Out of the three items mentioned above, this more than anything else led to the demise of the Amiga, it was just too far ahead of its time! Nobody knew what to do with it. Even if you were able to figure it out you didn’t have anywhere to share your work. Had the Amiga come around after the advent of the internet, I think it would have been an entirely different ball game and I think the Amiga would have been used for what it was best at, multi-media. However back in 85 – 94 we didn’t have twitter, Facebook, or YouTube. Using your computer for photography, or video editing is commonplace today, because of the internet. I read a quote once of someone who had sold their Amiga and bought a Windows PC I think it went something like this,”The video editing and titling features of the Amiga are awesome. The next time I need to title a home movie, I’m sure I’ll buy an Amiga again.” Unfortunately I am sure Commodore was dead and buried before that occurred.

In conclusion, while the Amiga did have some of the same qualities that the modern day Mac does, as far as multitasking, photo, and video editing capabilities as the Amiga and it is easy to sit and ponder what if. If Apple was successful with the Mac today, if Commodore could have somehow held on would the Amiga be viable today. I do not believe so. While Commodore was a market innovator with its products, it just did not do all that good a job of marketing it, or driving the standards necessary to keep being a leader. Though I guess that might be a moot point, because that seems to have become Apple’s job, all Commodore would have had to do is follow suit. So as others have pointed out ad museum. It all came down to timing. The Amiga was just too far ahead of its time!

Posted in Technical | 1 Reply

Cruise – Day 12

Brent's World Posted on July 19, 2015 by Brent HendricksMay 25, 2020

Day 12 – Ha Long Bay Glory Legend Junk Tour

Finally the day that I have been waiting for several decades to finally arrive! We are to head down to the lobby and board our junk to Ha Long Bay. It has been a dream of mine for so long to get pictures of this world icon. Going by experience all of our transportation (Airport Pickup, hotel transfers, and checking in for our cruise with heritage line went so smoothly I must have been lulled into a false sense of security, because I was in for a shock this morning making sure we were getting on the right shuttle bus to take us to our cruise with Glory Legend.   The only information we received from our travel agent was that the bus driver would meet us in the lobby at 8am.

What we were not told, and had no way of knowing was that our hotel was the starting off point for many cruise companies plying Ha Long Bay. Once I figured this out, the anxiety level rose through the ceiling. We almost found ourselves checking in to the wrong cruise.   It went up several more notches when the scheduled time for up pickup came and went! Did we miss our pickup? Did another couple go in our place?   The direction and organization for this cruise was not what Mi Jung and I were used to, and it was very unsettling.   We did however eventually get picked up, and were on our way.

Here is Mi Jung ready to head out to the Glory Legend.

Mi Jung Shore Boat-1

The luggage is on board, and we get our cruise briefing.

Quay-1

As we are heading out to our junk, in front of us is the couple that we ate out meals with, they are from Canada.

Canadian Couple-1

Being greeted by the crew.

Glory Legend-1
On our way out to Ha Long Bay, Mi Jung poses for some portraits

Mi Jung Glory Legend-1

Mi Jung Glory Legend 2-1

We then boarded the excursion boat to try out some kayaking. I discovered that a tandem kayak is very hard to use properly. Especially if you and your partner do not have very good communication.   Here is Mi Jungs’s first kayak experience.

Mi Jung Kayak-1

We paddled through his natural cave, into a natural cove. I got the bright idea to get out of the kayak and take pictures of Mi Jung by herself. What I did not take into account was the foot sucking silt on the bottom. Which ended up claiming one of my flip flops, and as I was trying to free myself, I fell over and cut my legs up on the muscles, the lengths we sometimes go to get good photographs.

Mi Jung Kayak 2-1

Paddling through the natural cave back to the junk.

Mi Jung Kayak 3-1

This leads to another annoyance I felt with this cruise. The crew seemed to be very rushed, and not very understanding of their passenger’s moods / needs. Whereas on the RV Jahan we were looked after and pampered. The crew of the Glory Legend just seemed indifferent. They miscounted the number of Kayaks and we ended up one short. Mi Jung and I had to wait for a couple to come back before we could start kayaking. This made us the last group back to the excursion boat and we felt like we held everyone up!

We then later pulled up to this nice beach so we could go swimming, where I spent most of my time giving Mi Jung swimming lessons. Again I really felt we were rushed. We were given 45 minutes to either climb to the observation house on the top of the rock, or go swimming. Swim break-1

We then headed back to the junk, and had chance to shower and have some Ha Long Beer, then sitting down for dinner and afterwards haveing a relaxing get together with the other junk mates, a spring roll making lesson and some really good Coconut wine (That I unfortunately forgot to get a bottle of.)

Ha Long Bay-1

These remind me of the pictures we always see of Ha Long bay with the rock outcroppings in the background.

Ha Long Bay-1-2

 

Evening 1-1
It’s then time to head for bed and get ready for the next days activities.

Posted in Travel | Leave a reply

cruise – Day 11

Brent's World Posted on July 15, 2015 by Brent HendricksMay 25, 2020

Day 11 My Tho – Sai gon

Day 11 will be a very short blog, we really did not do much, and didn’t have anything planned. This was going to be a down day, recharging from the cruise and time to go through the pictures and try and get some work done on the blog. However I did get some pictures to show you a little bit of Sai Gon

After docking in My Tho, we boarded another bus for our 3 and a half hour trip to Saigon, were we were to be met by our Vietnamese travel agent. TNK Travel for the transfer to our hotel and receive the briefing for the next leg of our trip. To Ha Noi and Ha Long Bay.

After getting settled in, Mi Jung went off to find a massage parlor and I sat down to finish a couple of blog articles, since we really did not have access to stable Wi Fi on the cruise, I had fallen way behind.

Later that afternoon we did venture out, and walked through one a park that was really close to our hotel. Crossing the street in Viet Nam is always an adventure, because even if there are traffic singles and a cross walk nobody pays them any attention. You basically just start crossing the street and keep a steady pace. If you speed up or slowdown is when you are either going to get hit or cause an accident.

HCMC Traffic

Once we got to the park, we encountered a group of school children that where stopping all the tourists to practice their English.

Vietnamese students-1

Here is Mi Jung practicing international relations. They were extremely friendly and shocked when asking me where I was from and I responded with, “Seoul Korea.”

Mi Jung International Relations-1

There are allot of foreign companies in Viet Nam, Such as Samsung, Starbucks, and Coffee Benne (Which is a South Korean coffee chain.)

Samsung-1

Starbucks-1

 

 

Caffe Bene 2-1 I of course had to go gorge on some good old American fast food. Here is my lunch at KFC.

HCMC KFC-1

Mi Jung of course being more sensible, is seen here buying Mango’s from a street vendor.

Mi Jung Mango-1

That was the extent of our touring Sai Gon. The next morning we met our driver at the lobby of the hotel and it was off to Than Son Nhut airport for our flight to Ha Noi.

We were met at the airport and transported to our hotel in the old French Quarter of Ha Noi.

The next morning we were to meet our shuttle van that would take us to the Ha Long bay wharf and then on our 3 Day Chinese Junk tour.

Posted in Travel | Leave a reply

Cruise – Day 10

Brent's World Posted on June 27, 2015 by Brent HendricksMay 25, 2020

Cruise – Day 10 – Sa Dec and Cai Be

Forward: I don’t know why the prospect of writing this particular blog about our trip has seemed the most daunting? Was I getting burned out from the photography?  Doesn’t seem likely  I took the second most pictures on the trip on this day. Maybe I was a bit down knowing that today was our last day of excursions and the following morning we would be docking in Sai Gon and the trip was almost over. Anyway, I apologize for taking as long as I have  to get the final day of the Jahan cruise online.

Our last full day on the Jahan, began like any other. We woke up around 0730 and had our breakfast and then boarded our excursion boats to head off to a rattan weaving village.

Here is the second group queuing up to board the excursion boat.

Excursion boats-1

A couple of boats passing each other on the river. Do you notice the eyes on bow of the barge?  The Vietnamese believe that evil spirits inhabit the river, and when they come to the surface of the river to do the evil things that evil spirits do, they will be scared by the ferocious looking eyes on the front of the boat, and leave the occupants alone.

River traffic passing-1

A couple of girls that were playing along the river bank, who stopped to wave at us (Taken with the Canon 70-200mm f4/IS).

Riverbank girls-1

A friendly baby waving to our as we pass their floating house / fish farm.

Baby boy waving-1

As hard as life must be living on the river, it amazed me how happy and carefree everyone seemed.

A child holding his kite while his dad is fixing his nets.

Nets and kites-1

Our excursion boats arrive in Cai Be, and as we proceed through the village we observe the villagers performing everyday chores as seen here by a  girl doing laundry.

Laundry-1

Some colorful wildlife strutting around, enjoying freedom until the dinner bell tolls for thee.

Cock-1

Speaking of the tolling dinner bell. Here is a chicken having its dinner bell rung.

Ring the dinner bell-1

We stop at the village temple on Binh Tanh Island.

Here is the village shell station, which also sells phone cards for you cell phone.

Shell Station-1

Cambodia and Viet Nam are a street photographer’s paradise, nobody seems put off by having their photograph taken, in this case here is one of the village elders heading home from the market, and another woman tending to making some whiskey.

Cane woman-1

 

 

 

 

 

 

 

 

Woman with pot-1

We now come to the rattan weaving district. Where young and old take part in weaving these Rattan mats.

These women are using a wooden loom to insert the rattan fibers in the tread mold.

Loom weaving-1

 

 

Loom weaving 1-1 One of the crew members from the Jahan, who was in charge of secretly getting photographs of us throughout the cruise, The photos were presented to us later in the evening.

Photo poaching-1

She was out on the dock taking pictures of this man tending to his nets. She had a good eye, because I was heading over to take a picture of the same thing. She did not look to happy that I was poaching on her photos.

Net tending-1

These nets do not look easy to carry.

Net carrying-1

I think I could spend a month or more traveling through Cambodia and Viet Nam just taking pictures of the people.

A Vietnamese child playing on the gang plank to their families river boat.

Child plank-1

More Children at play in the village.

Child truck-1

I don’t think chicken woman was very happy to see me, Is she contemplating ringing my dinner bell?

Not happy-1

Leaving the village and heading back to the boat for lunch. Here are a couple of school girls making sure to wave to us from their boat.

More children waving-1

Vietnamese fishermen unloading their catch of the day.

Catch of the day-1

We ran into some trouble heading back to the boat, and our driver could not steer the boat. Instead of shutting down and waiting for the other excursion boat to come back and tow us back, the driver kept trying to power across the river, resulting in us bashing in a few fish farms on either side of the river..

Our afternoon excursion consisted of a tour of a candy, pop rice, and whiskey manufacture.

Here is the coconut candy being mixed.

Coconut candy-1

Pop Rice being made. As you can see, they are very much like rice Krispy squares.

Pop rice-1

Pop rice 1-1Pop rice 2-1Our guide trying to make spring roll.

Rice wraps-1

 

Snake liquor anyone? (If it can embalm a reptile, think about what it would do to your liver.)

Snake Liquor-1

 

 

 

 

Snake Liquor shot-1

 

 

If your not into the snake liquor, but still think the local cobra’s are a tonic for all that ails you,  you can try some of the local pharmaceuticals.  (Fat of Pythons or some Cobratoxan anyone?)

Pharmaceuticals-1

It was then time to head back to the ship, and get cleaned up and rested for our going away party. It certainly was a strange feeling heading back to the boat from out last excursion, knowing that this was our last night on board.

Last excursion-1

As the sun set and we pulled up to the pier at My Tho, the crew put on a BBQ and farewell dance party. Our last time to say goodbye to our shipmates, and crew. Once again Mi Jung was the hit of the party. With her Korean dance moves.

Mi Jung Dancing-1

 

Couple dancing-1Couple dancing 2-1 All too soon it was time to say goodbye and goodnight, head back to the room and make sure we were packed, for the bus ride to Sai Gon.

We had a great time, and the service and crew aboard the RV Jahan were first class! I would highly recommend this cruise for anyone who is looking for a cruise off the beaten path.

Posted in Travel | Leave a reply

Fun With BASH Scripts – Random Quote Generator

Brent's World Posted on June 6, 2015 by Brent HendricksDecember 26, 2016

Blog - Centos

One of the cool features of IMAGE BBS and C-NET was displaying fun and witty sayings during the login process (On older versions of C-Net I believe this was referred to as a Fortune Cookie.

 

 

Image BBS Random Saying (Screen Shot From Commodore Image BBS)

Image BBS Random Saying (Screen Shot From Commodore Image BBS)

 

In some ways, especially if you login to a UNIX/LINUX box via a terminal, it looks just like a giant BBS. I thought it would be fun to duplicate this feature on my Linux development box. It will also give me the opportunity to introduce to you login scripts or “Profiles”, as well as basic file manipulation.

The last 2 BASH demonstrations were taken from Commodore 64 BASIC programs, and from an IMAGE BBS +. File, so let’s switch gears here, and take our source from a CNET Amiga 3.5c module that was written by Jim Selleck of Beverly James Products. This module was included on the CNET 3.05c Demo and Productions disks, and the comments state it originated with C-Net Amiga 2.0.

Before we begin I would like to throw out a quite plug for C-Net Amiga 3, and the brilliant work done by its author Ken Pletzer. C-Net Amiga 3.05c happened to be one of the most stable, customizable, and feature rich BBS software that I had a pleasure to run. This particular module was written in ARREX, which was an Amiga port of the REXX scripting language developed by IBM and included with Amiga DOS 2.0. There is a version of REXX that will run under Linux. So maybe in the future we could actually explore some native REXX scripts running under Linux itself.

Lets quickly take a look at the original source, as REXX, and it’s features under C-Net Amiga are pretty straight forward and lend itself to very easy porting into BASH.

/******************************************************/
/* Random Quotation Generator 2 for CNet AMIGA v2 */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* By Jim Selleck © 1992 Beverly James Products */
/* */
/* Installation: */
/* */
/* Stick this Arexx program and the QUOTATIONS file */
/* in your PFILES: directory. */
/* #*/
/******************************************************/

options results
filename = “pfiles:quotations”

if ~exists(filename) then

do
transmit ” ”
transmit ” ”
transmit “The Quotations could not be found! Please inform”
transmit “the Sysop !!!”
transmit ” ”
transmit ” ”
logentry “Quote: `”||filename||”‘ not found!”
exit
end

call open quote,filename,”R”

max = readln(quote) /* Get maximum number of entries */
num = random(0,max-1,time(‘s’))
ctr = 0

if num > 0 then
do until ctr = num*5
line = readln(quote)
ctr = ctr+1
end

transmit ” ”
transmit ” ”
ctr = 0

do until ctr = 5
line = readln(quote)
if length(line) > 1 then transmit center(strip(line),76)
ctr = ctr+1
end

call close quote
exit

The lines in the /* */ are simply comments, similar to BASH pounds #

Filename = is simply setting the path to the quotations filename in this case “PFILES:quotations”
We then have the script saying, if the file does not exist ~exists, then output the text asking the user to inform the SysOp (System Operator).

‘logentry’ is a specific CNET AREXX function that will write an entry into the systems caller log.

The next line is  opens the quotations file, and then reads the first line, which will specify the number of quotes, Which is 100. Then the result ‘num’ will be a random number between 1 and the number of MAXQUOTES.

The file is then read from line X for 5 more lines, and is center justified for a 79 character line.  So we have a 500 line text file, each 5 lines is a record, containing the quote and the source.

Here is our simple BASH script called ‘rand_quote.sh’. The quotations file was read directly from CNET Amiga using the WinUAE emulator and saved to a capture file.

Let’s now take a look at our BASH script. I would recommend creating this in a dev folder in your home directory, once tested you can move it in to the proper folder.

You must also download the quotations file, from the following link.
https://www.catracing.org/hendrb/wp-content/uploads/2015/06/quotations.txt
1 #! /bin/bash
2
3 # BASH script to display RANDOM QUOTE and center text depending on terminal width.
4 # BASH script and quotations taken from CNET Amiga 2 AREXX PFILE
5 # AMIGA Version Copyright 1992 Jim Selleck and Beverly James Products
6 #
7 # BASH Script (C)24MAY2015 by Brent Hendricks
8 # Script and accompaning BLOG article (C) 2015 Brent Hendricks
9 # Script and quotes are public domain, the accompaning BLOG may only be used with permission
10 # Contact brent.hendricks@catracing.org if you wish to republish the article.
11 # Please visit Brent’s World @ www.catracing.org\hendrb
12
13 ## Get Terminal Width
14 TERMWIDE=”$(tput cols)”
15 ((TERMWIDE = TERMWIDE -3))
16
17 ## Set file path
18 QUOTATIONS=/home/local_hendrb01/dev/bash/randquote/quotations
19 TEMP_QUOTATION=/home/local_hendrb01/dev/bash/randquote/temp_quotation
20
21 ## Get number of quotations
22 QUOTES=”$(cat $QUOTATIONS | wc -l)”
23 ((QUOTES = QUOTES / 5))
24
25 ## Pick a record
26
27 RECORD=$(($RANDOM % $QUOTES * 5))
28
29 ## Read Quote from Quote file
30 sed -n “${RECORD},+5p” $QUOTATIONS > $TEMP_QUOTATION
31 sed -e :a -e “s/^.\{1,${TERMWIDE}\}$/ &/;ta” -e ‘s/\( *\)\1/\1/’ $TEMP_QUOTATION
32
33 ## Remove TEMP_QUOTATION scratch file
34 rm -f “${TEMP_QUOTATION}”

NOTE: Once you download the quotation file, you will need to rename it quotations, or change the quotations path to reflect the .txt extension (WordPress does not allow the uploading of files without extensions.)

We should by now know what line 1 does, and why we put it there, but as a quick reminder, Line 1 tells *NIX which interpreter to use. Just in case the user is in, or defaults to a different shell. Additionally AT&T used to default to the Bourne Shell, while BSD defaulted to the C shell.

While not needed if you never use a different shell, it is good practice, and insures compatibility.

Lines 3 – 11 are my standard comments, comments in shell scripts are preceded by #s

Lines 14 Gets the terminal width, and line 15 subtracts 3 from it. This is for the center justification routines later in the script.

Lines 18 and 19 set our file paths.
Line 18 is the path of the actual quotation file.
Line 19 is the path of the temp file created by SED

Lines 22 and 23 gets the number of quotations from the quotations file and puts them in the variable QUOTES. Note that our script is a bit different because we use the wc command to dynamically derive the number of quotes, as long as you remember that each quote uses 5 lines. This is done with the QUOTES=”$(cat $QUOTATIONS | wc -l)” command. Note the use and format here of command substitution. I am going to get nailed here by someone much smarter with BASH scripts than I am. For the wasteful use of the cat command, when technically you could have used just the wc –l and the file name. If done this way, the output was would have been ‘500 quotations’. To save time with a filtering statement, I just had the file cat’d, and piped through wc. The value is held in the variable QUOTES, then divided by 5. Since each 5 lines is a quote.

Line 27 Picks a random quote, in steps of 5. Since it would not do us much good to start reading in the middle of quote now would it?

Lines 30 and 31 are where the real magic occur, and what took me the longest to figure out. I could read various quotes all day until the sun came home, but while BASH has a command to left and right justify, it will not center justify. Again my method and someone else’s methods might vary. I could very well have loaded the quotations file in nano, or word and center justified it and re saved it. However that defeats the purpose of learning, defeats the purpose of making your quotation file dynamic, as each time you added a quote you would have to remember to justify it. It might also look funny if someone had a different sized terminal window then you did when you justified it.

Line 30 reads the 5 lines from the quotations file, and saves it in a file called temp_quotation.
Line 31 uses sed to center justify the text in the temp file and display it to the screen. The use of SED is outside the scope of this blog, and many good descriptions are available elsewhere on the net. If you are interested in the working of stream editor. I would start here. http://www.grymoire.com/Unix/Sed.html

Line 34 simply deletes the temp file, without prompting.

There you have it! A random quote generator for *NIX!

If we want this to be just like a BBS, and display it when a user logs in, we now have several choices to make.

Do we want this script to be run only when we login, or for all users?

If you want it displayed for all users, we must first move it somewhere where they have access to execute it. For this demonstration let’s move it to the /opt volume.

We can use the mv (MOVE) command.

sudo mv ./randqutoe /opt

I have to use sudo here, because root is the owner of the opt directory, and I do not have my local username added to the root group.

Once it is moved, I can verify the entire contests of the randquote directory were copied.

If I cd to /opt/randquote, I should have two files.

-rw-rw-r–. 1 local_hendrb01 local_hendrb01 9893 May 24 07:30 quotations
-rwxrwxr-x. 1 local_hendrb01 local_hendrb01 1169 May 30 13:22 randquote.sh

Make sure the file permissions match.

The next decision is if you want the randquote script to run only when you login to the console, or both the console and the terminal.

If you want it to execute when logging a console only,

Edit the following file in your favorite editor.
/etc/profile

And the following lines.

##Display Random Quote On Login For All Users Console Login ONLY
## Added by Your Name / DATE
echo
/opt/randquote/randquote.sh
echo

Save the file.
We must now edit the following lines in our randquote program, since it is no longer residing in your standalone development directory.

Change line 18 to read:
QUOTATIONS=/opt/randquote/quotations

Change line 19 to read:
TEMP_QUOTATION=/opt/temp_quotation
Save the file, now logoff then back on and you should now the random quote generated.

console_randquoteIf you also wish a random quote to be generated when you launch a shell from a terminal window in XWindows or from the console.

NOTE: If you put in both files, you will have 2 quotes generated when logging in from the console!

We must do the following.

Using your favorite editor, add the following lines to /etc/bashrc

##Display Random Quote when opening a shell session via the terminal For All Users
## Added by Your Name / DATE
echo
/opt/randquote/randquote.sh
echo

Save the file.

Open a terminal session.

terminal_randquote

If you only want specific users to have the random quotes displayed.

edit their respective .profile and .bashrc files in their home directory /home/<shortname>/

For our next tutorial we are going to do three things with this script!

1) Add it to a LINUX login profile, for both terminal and console login
2) Add it to a OS X login profile, for both terminal and SSH login
3) We are going to add something magical for our OS X users!

So be sure to come back for next month’s technical blog, as we do more with *NIX!

Special thanks go to Ken Pletzer and Jim Selleck for the wonderful work you did in the 90s with C-Net Amiga Professional BBS. For the many hours of fun I had with your product!

Posted in Technical | 1 Reply

Movie Review – The Wedding Ringer

Brent's World Posted on June 3, 2015 by Brent HendricksSeptember 2, 2016

Movie Review – The Wedding Ringer

the-wedding-ringer-posterThere are often times when I sit down and watch a movie that has been critically panned, that I wonder how could they have gotten this movie so wrong? It leaves me equally flabbergasted when I take the time to watch a movie that everyone raved about, so much so that it was at one time the second most popular movie on Apples iTunes Music Store.

The trailer looked good, but slogging through half of the movie, I seriously wondered where I had gone wrong! Good popular reviews, well known cast, promise and potential all going down the drain with a feeling of well.. BLAH.

What cinematic mediocrity am I talking about? The Wedding Ringiner. Directed by Jeremy Garelick (The Break Up and Sick Day). Starring Kevin Hart (Top Five, This Is The End), Josh Gad (Frozen, Love and Other Drugs), and Kaley Cuoco-Sweeting (Your Mommy Kills Animals, Picture Perfect, and The Last Ride.)

The whole premise of the movie, centers around Dough Harris (Josh Gad), who is getting married to the girl of his dreams is in 2 weeks, and not only doesn’t have a best man, but because he inherited his father’s business shortly after law school has not had a social life and has no friends and hence no wedding party. He hires Jimmy Callahan (Kevin Hart), of Best Man INC. to provide scripted cast members to play each member of the wedding party and create the Josh’s back story.

Jimmy is initially reluctant because in the wedding casting business an entire wedding party is considered so impossible, there is actually a name for it. Called a “Golden Tuxedo”, however Kimmy eventually comes around and decides to take the job.

What Josh eventually discovers is that the events that they are scripting for his back story are all things we would like to do in real life, and that the “girl of his dreams”, is only interested in him because he is so boring and such a recluse and does not really love him.

The story was predictable, the jokes as tired as reusing the name of the immensely successful The Wedding Singer, comes of about as phony as the characters of “Best Man INC.” Earning The Wedding Ringer a lack luster rating of 28% by critics, and a surprising 69% by audience score.

This is a movie for young adults, or perhaps something to watch when you just need a brainless distraction. It wasn’t terrible, but it wasn’t something I would honestly recommend anyone to watch and I did feel like I wanted my 70 minutes back.

I guess the moral of the story is, being a movie critic is kind of like being a weather man, They only have to be right %50 of the time, when they are wrong you wonder how many nice it must be being able to be in a profession when you can be that wrong and still keep your job. When they are right and you just didn’t listen to them, you chide yourself for being so unprepared.

2 and half stars from Brent’s world, because it was watchable, but it did not grab my attention the way I thought it would, and I now find the title a bit misleading as it did sound allot like “That other great movie with a similar name.”

Posted in Movie Reviews | Leave a reply

Cruise – Day 9

Brent's World Posted on May 31, 2015 by Brent HendricksMay 25, 2020

Day 9 – Cau Dac – Sua Lac

After our border crossing the day before, we awake in Cau Dac and after breakfast head off on our first excursion in Viet Nam. I am not looking forward to this as I cannot see how I am going to enjoy a fish farm. Outdoor or otherwise. Even though I am very interested to see how fish are grown on the Mekong and to hear about the lives of the people who make the river their home. Anyone who knows me will attest to the fact I have a problem with strong odors, especially fish rendering.

Though here we are! The first are penned in these areas in the floor, and enclosed in areas that are fenced off under the water. During the times of year when the current is strong the water is naturally circulated by the rivers current, during slack current they are turbines at one end of the enclosure to provide an artificial current.

Arriving Viet Fish Farm-1The food that the fish are fed are a mixture of anchovies and grain which are ground up and cooked in a large smelly outdoor oven. Here is a picture of the shrimp. The mashing hopper, and our guide feeding the fish with some already prepared food.

Fish Food Shrimp-1Grain Hopper-1Feeding-1When it is time to bring the fish to market, the family members will get in the pens with large nets and transfer them to large containers to bring them to the large sorting warehouses to be taken to market or for export.

We then are taken into the village proper, and are greeted by these signs wishing us a Happy New Year ‘Chuc Mung Nam Moi’ which was celebrated a month before we arrived.

Cucmungnammoi-1We them met up with out Vietnamese Cyclo drivers, and if you look at these photo’s you can see a remarkable difference from the Cambodian Cyclo’s. The seats are located in the rear and the drivers are in front.

Viet Cyclo-1Here is a typical Vietnamese Street in Chu Lac, and the traditional conical straw hat, the nan la’ worn by a Vietnamese woman.

Cart Woman-1A Vietnamese family outside their home, enjoying the day! Again it was really nice to see people smiling when taking their picture. Something you always seem at odds doing in Korea.

Outside family-1I don’t normally crop my photos in post-production, and I should have been using a faster f-stop, but I wanted to highlight this child. Somehow he must have known Mi Jung was Korean. There is the Koran photo v.

Photo v-1Here is a watermelon vendor, that I was tickled to get his photo.

Watermellon-1This is a traffic circle, while I was surprised I did not see as much patriotic artwork as I did when I was in Saigon and Nha Trang in 2006, it does this exist.

Traffic Circle-1Political posters-1I am disgusted with myself every time I see this picture! Had I had been paying attention to some of my other photo’s, I would not have made this simple exposure mistake! The framing on this is PERFECT! However since I was moving and only shooting with a shutter speed of 1/25 and ISO 100, the faces are blurred. The compromise here, is that I needed a bigger depth of focus. I should have been at f8. Aperture Priority but ISO 400 or even 800! You can always reduce noise in post, however you can’t fix blown focus!

School Girls bike-1Get your hot fresh Dung here!

Dung--1Mobile produce markets in Viet Nam, This picture was for Kai Man Wong from Digital Rev www.digitalrev.com, since I blogged about them and he always takes pictures of Hong Kong cart women.

Cart Women-1
We finished our Cyclo ride and were taken to large Vietnamese market. Where of course I bought myself a Non La.  They sold quite a bit of different merchandise.

From Backpacks featuring all your favorite Anime Characters (Doreamon, and Hello Kitty)

Backpacks-1To Fresh Fruits and vegetables.

Peppers-1

Vegtables-1Here is Mi Jung haggling over the price of gold. (Was she drawn here by the gold, or the name Kim?)

Gold-1Here is Mi Jung buying some clothing items, it was always fun to watch her try and figure out the Conversion (About 22,000 VND per dollar..)

Mi Jung Buys cloths-1Our afternoon excursion was to a Vietnamese village in Sau Lac, and a “Monkey” bridge.
This is a monkey bridge, in case you were wondering.

Monkey Bridge-1As we pulled up to the village along the river, it looks like they sent a scouting party out for us.

Scouting party-1The village we visited as a farming village that grew a multitude of crops. Here is their pepper crop, with the RV Jahan in the background.

Pepper Crop-1We arrive in the village, and are presented with a fruit snack. This is all food that is grown locally. The large spiny fruit that you see, is the infamous fruit called Durian.

Fruit Snack-1Mi Jung decided to be the first ‘victim’ on the Monkey Bridge, as she cautiously makes her way to the middle.

Monkey Bridge - Mi Jung-1Here I am! Of course had to lose my hat!

Monkey Bridge - Brent-1We then went to an older Vietnamese couple’s house, and were severed tea entertained by the masters skills playing the ‘Dan bau’, which is a single string instrument, from the zither family, and similar to the Duxianqin in Southern China.

Tea Time-1

Dan bao-1Ong was also quite adept at playing the guitar, though he did not know any Hendrix.

Guitar-1His wife wasn’t bad belting out the Viet standards either, I was going to push my welcome and ask for some Tanh Ha, or Trish Thuy Trang, but decided to keep my mouth shut.

Singing-1After all I was being watched..

Bac Ho-1Outside in the village proper we were treated to a performance that took my breath away. A Chinese Dragon dance. I was excited because I was actually going to try and go to Hong Kong to see one of these dances. These dances are usually done for traditional New Year, and Lunar New Year ‘Tet’.

Dragon Dance-1-2Here is the Mask Character taunting the Dragon.

Taunt-1Don’t tell anyone…

Shh-1The agility and the strength of these children to maneuver with this heavy costume is amazing, not to mention when you’re the guy in front, with your feet off the ground. A lot of trust in your team behind you.

Dragon Step-1After the Dragon Dance, it was time to go back to ship, to head further down the Me Kong towards Sai Gon. Here is our Vietnamese guide rounding us up.

Time to go!-1The Shadow walks the gang plank.

The Shadow-1And so ends another night on the mighty Me Kong!

Sunset Mekong-1

Be sure to stop by again, for our last night and farewell party aboard the RV Jahan!

Thanks for following our journey!

Posted in Travel | Leave a reply

Cruise – Day 8

Brent's World Posted on May 23, 2015 by Brent HendricksMay 25, 2020

Today our cruise promises to be a big day, not because of an upcoming excursion (there weren’t any), but because will be will leaving Cambodia and crossing over into Viet Nam at the Chau Doc boarder facility. I was really excited to be going back to Viet Nam, and being able to see the country outside of the bustling city of Saigon (Ho Chi Minh City).

Since there were no excursions planned, it was a day that we could take some time to relax, without waking up early, to make sure you have time for breakfast before the morning tour. The downside to this of course is it does not make for very good blogging material, as nothing actually happens.

As we are leaving Phnom Penh, and the Sithowath Quay behind, I thought I would take the opportunity to share a little bit about the Me Kong River, it’s inhabitants, and the challenges for it’s future.

(Here we are leaving Phnom Penh behind us, heading downriver towards Viet Nam)

Leacing Phnom Penh-1The Me Kong (Mekong) river itself is a large trans boarder river stretching from Tibet, and ending in the South China sea in Viet Nam. Along the way it meanders through China, Myanmar, Lao, Thailand and Cambodia. The river is a vital lifeline and means of transportation and food source for the inhabitants of all the countries it crosses.  Debates and legal battles are being raged as China, and Laos are in the process of damming the river, to provide cheap clean electrical power.  However it is feared that the dams will threaten the fish stock of the river, severely impacting the lived of the people downstream.

This is a Ferry in Cambodia, transporting cars and buses across the river.

Mekong Ferry-1A school girl in Cambodia return home  in the afternoon. Because of the straw hat, I am assuming this is one of the Vietnamese immigrants that live along the river.

Cambodia School Boat-1Two Women rowing upstream, I loved the artwork on the covered part of the boat, it’s hard to tell if this is where they are living, or if they too are transporting good to the market, or perhaps going shopping. Where ever they are going, that has got to be hard work

2 women in a baot-1Cambodia - Going to market-1Another Ferry, this time in Viet Nam, transporting mostly passengers on bikes and motor scooters.

Mekong Ferry - Viet 1-1The river also provides the majority of the fresh water fish, and is the home to many man made fish farms, and provides a home in the form of houseboats.

(Here is a river house on the Cambodian side – These houses are built on large 55 plastic or metal drums.) Some of the houses have the fish farms build right into them.)

Mekong House on the Cambodia Side-1The fish are then transported via the river to market. Here is a Cambodia child on one of those boats, only too happy to have his picture taken!

Transporting Fish-1Our guide explained that the river is the home to many of the Vietnamese immigrants that cross the border into Cambodia, and due to an agreement between the two countries they are allowed to stay.

Here are two long houses, one built on the hull of an old river barge, The plants that you see growing abundantly here are water hyacinths, that were brought into the country in an attempt to remove the silt from the river. They soon grew out of control, and you see them growing in abundance all along the river. The people who live along the river harvest the plant for it’s fiber.

Mekong House on the Cambodia Side 2-1I could go on all day, talking about the boats of the Mighty Mekong River, but the blog must go on.

At about 6pm in the evening we arrive at the border area, and drop anchor to begin the customs clearing process. Here is the actual customs Dock, and the customs office itself.

Customs Barge, Cau Doc-1Customs Office, Cau Doc-1Customs shore boat-1The process itself took a couple of hours, and was all handled by the ships officers, so we did not have to do anything except continue to relax, which we had no problem doing.

Here is Mi Jung Rocking Out waiting to cross the border into Viet Nam.

Mi Jung Rocking OUt-1We then have dinner and go to bed early to be ready for our first day in Vietnam, but first I get a portrait of Mi Jung on our balcony.

Mi Jung Portrait 2-1

Posted in Travel | Leave a reply

Post navigation

← Older posts
Newer posts →

Recent Posts

  • Oddly Enough In Korea – Mr. Toilet House In Suwon
  • Japanese Film Review – The Girl In My Room
  • On The Road Again – Lubee Photo Day – 2026
  • On The Road Again – Photo Day at The Lubee Bat Conservancy!
  • CQ Contest CQ Contest! – The Trials, Tribulation, and Triumph of Amateur Radio Contesting.

Recent Comments

  • Trials, Tribulations, and Triumphs – A look back at 2024 and looking ahead to 2025! - Brent's World on On The Road Again – The Lubee Bat Conservancy
  • Brent Hendricks on On The Road And On The Air – Installing the Yaesu FTM-500DR
  • Brent Hendricks on On The Road And On The Air – Installing the Yaesu FTM-500DR
  • Todd R. Smith on On The Road And On The Air – Installing the Yaesu FTM-500DR
  • Pensacola Restaurant Review - Miguel's Mexican Restaurant - Brent's World on San Diego Restaurant Review – Natis Mexican Restaurant

Archives

  • October 2026
  • September 2026
  • November 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • August 2023
  • July 2023
  • June 2023
  • August 2021
  • July 2021
  • June 2021
  • January 2021
  • December 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • December 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • December 2018
  • October 2018
  • September 2018
  • July 2018
  • June 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014

Categories

  • Blog News
  • Book Reviews
  • Korea
  • Movie Reviews
  • Photography
  • Recipies
  • Restaurant Reviews
  • Technical
  • Travel
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
©2026 - Brent's World - Weaver Xtreme Theme
↑