Saturday, November 17, 2012

Simple Time and Weather Conky Desktop

Systems installed on: Linux Mint 10, Mint 13 MATE, and Peppermint 3.  

Let me start this off saying that I'm not a Conky expert, nor can I provide a ton of help for anyone that runs into problems with this script. I also mention an error that I've getting at the end of the blog post, and would love to know how to get rid of it.

What I was after was a clean and simple Time and Temp display for my Netbook that sits on a nightstand. It's really a glorified Clock radio. And the end results I got and wanted were something like this. 


If haven't you already installed conky, and played around with it you will need to. For those that use the Ubuntu Repositories and PPA's this is how you do it. ConkyForecast and a few other conky tweaks are part of the "Conky Companions" PPA. 
sudo add-apt-repository ppa:conky-companions/ppa
sudo apt-get update
sudo apt-get install conkyforecast
Or Download ConkyForecast 2.24 for Linux from launchpad yourself.

Built packages
  • conkyforecast Weather forecast script with support for language files, for use in Conky
    Package files

Once you have it installed that should be it for conkyForecast, but should you want to modify it, or need to modify it you can copy it to your home directory from within the terminal with this simple command, and then edit it with your text editor.
cp /usr/share/conkyforecast/conkyForecast.config ~/.conkyForecast.config
I had to edit my .conkyForecast.config file, for fahrenheit instead of celcius temperatures, and I also removed a # mark on line 5 to make the .xml infor available to conkyForecast.


#=============================================#
# EXPERT SETTINGS, NOT REQUIRED TO BE ALTERED #
#=============================================#
BASE_XOAP_URL = http://xoap.weather.com/weather/local/<LOCATION>?cc=*&dayf=5&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=i
BASE_XOAP_URL = http://xml.weather.com/weather/local/<LOCATION>?cc=*&dayf=10&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=i
MAXIMUM_DAYS_FORECAST = 4

#===============================================#
# USER SETTINGS, EDIT BASED ON DOCUMENTED SETUP #
#===============================================#
CACHE_FOLDERPATH = /tmp/
CONNECTION_TIMEOUT = 5
EXPIRY_MINUTES = 30
TIME_FORMAT = %H:%M
DATE_FORMAT = %Y-%m-%d
LOCALE = en
XOAP_PARTNER_ID = 
XOAP_LICENCE_KEY =
DEFAULT_LOCATION = UKXX0103 
AUTO_NIGHT = False
PROXY_HOST = 
PROXY_PORT = 8080
PROXY_USERNAME = 
PROXY_PASSWORD = 

Now that you've got conkyForecast on your system, next all your should have to do is to create or modify your .conkyrc text file. This can be the tricky part.  Below is a copy of my .conkyrc file. OR you can download a copy of it from here

# Modified by RandyNose(.com) for simple desktop time and temp #
# Original code swipped from Conky Metro Clock by Satya #
# satya164.deviantart.com #


# Conky settings #
background no
update_interval 1

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048

# Window specifications #
own_window yes
own_window_class conky
own_window_transparent yes
own_window_hints undecorate,below,sticky,skip_taskbar,skip_pager

border_inner_margin 0
border_outer_margin 0

alignment bl
gap_x 100
gap_y 100

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
xftalpha 0
text_buffer_size 2048

uppercase no

default_color FFFFFF


TEXT
${voffset 10}${font Ubuntu Light:size=40}${goto 550}${execi 600 conkyForecast --location=44107 --datatype=CN --refetch}${voffset -10}
${voffset 10}${font Ubuntu Light:size=50}${goto 550}${execi 1800 conkyForecast --location=44107 --datatype=CT --refetch}${voffset -10}${goto 875}${execi 1800 conkyForecast --location=44107 -u --datatype=HT --refetch}
${voffset 10}${font Ubuntu Light:size=40}${time %A}${font}${voffset -10}
${voffset 10}${font Ubuntu Light:size=40}${time %B} ${time %e}${font}${voffset -10}
${voffset 10}${font Ubuntu Light:size=100}${time %I:%M %p}${font}${voffset -10}


Be sure to save the text file as .conkyrc in your home dir. The location setting that I have is 44107, my US zip code. I am going to guess that any valid US zip code will work.  If that doesn't work for you, try going to your city on weather.com and using the location code in the URL. OR try this posting to sort it out.

Now you should be all set to run conky at the terminal and test it out, and/or add it to your start up applications. 

I should also note, that I AM getting an error on my system when I run in the terminal. How to fix it at this point, I'm not sure. But maybe this posting will ferret out an answer. :) 
The error is this:


WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-nITDzm/pkcs11: No such file or directory
Conky: desktop window (180012f) is subwindow of root window (13a)
Conky: window type - normal
Conky: drawing to created window (0x2600001)
Conky: drawing to double buffer
ERROR: Server connection error: HTTP Error 503: Service Unavailable



Some of Sites that I visited while creating this post were:https://bbs.archlinux.org/viewtopic.php?id=139962http://ashu-geek.blogspot.com/2012/03/conkyforecast-224-current-weather.htmlhttp://ubuntuforums.org/showthread.php?t=869328http://satya164.deviantart.com/   He's also here: http://funsurf-blog.blogspot.com/






Sunday, November 04, 2012

Tethering in a Tempest



Unless you've been living in another hemisphere, or not, I think that most everyone has heard about Hurricane Sandy.  If not, then, I'd like to know where you've been. As there were many folks just hammered by the storm, and were without power and or without internet service.  And even a few lost lives and houses. Us in the Cleveland, Ohio area had our share of the storm.

I'm one of the more fortunate, as we had a landlord who lives in the same building, (duplex) that hooked us up to generator power for a few hours each day.  But our internet service was on and off, so I wanted to use my Android Phone, (Thunderbolt HTC) to get online. I really don't like to type more than I have to if I'm using a phone, or a touch screen. Since I was also lucky enough to still have a Verizon Unlimited Data Package, I wanted to flex that option. 

One of my G+ Geek Trucker Buds  mentioned to use FoxFi for my phone, and turn it into a WiFi hotspot. FoxFi is a free App, etc.  So, off I go tap tap tapping away on my phone to around the Google Play app selection. I find it, download it, and Install it, and ZOinK!  No joy. I am informed by FoxFi that HTC has a locked up the WiFi or some such nonsense, but it suggests and supports Bluetooth.  I don't have a Bluetooth connection for my computer, so I opt to search for a more mundane method of USB cable tether.

I browse around on Google Play, and found the Demo Version of KLink.  I install it, expect that I'll have to fire up Windows in order to get the PC side to work, but nope.  Easy to follow links and instructions to DL a .DEB file to my phone that I can then install onto my Linux Mint 9 LTS endowed Acer PC.  

Viola! App is downloaded and installed, DEB file is found on Android via USB cable connection,  I fire up a terminal session, as suggested, type in Klink, and Bingo! We're live on the interwebs with a good and speedy connection too!  As the image below suggests. 


Man, I was so tickled, I bought the app, even though there are some freebie versions that are supposed to work, that I hadn't even tried at the time.  So, I shelled out $4.99 for the app, and get the full version, as I don't feel like mucking around with anything else. 

I was so happy, I had to celebrate with some cookies, milk, and a couple screen shots of my shenanigans. And I'm +1'd by a couple of other geek friends, Mat and Claudio


Thanks, Brandt,  Stephen, and others for the suggestions of FoxFi. Looks like a nice tool, but not the right tool for my phone and this job. 

Thanks Christophe Versieux for the suggestion of ClockworkMod Tether, as it might do the trick,  and while it IS free, I still had to DL and install g++ to make and compile it, something of a show stopper when you don't have any connections to do an apt-get install. Also, not something everyone would be willing or know how to tackle.  

Oh! About this "superstorm" word. 

This from PopSi.com 

"Hurricane Sandy wasn't a "superstorm." Not because it wasn't a "super" "storm," but because "superstorm" is an imaginary scare-term that exists exclusively for shock value."

And now, I have to go make sure that I don't break my neck to change the time on a clock that was perfectly fine until some bastards (who are now dead, I'm sure) decided that we need to muck around with our timepieces in order to make them make more sense with the orb that we live on, and the one that gives use light and life.  Yea, I'm against changed the time on our clocks twice a year. It no longer serves a purpose. Go AWAY Daylight savings!!  

Thursday, October 25, 2012

Bumping up from Mint 10 to Mint 13 via Mint Backup


I really wanted to document this a little bit more so I could have had a fresher brain dump of what I did for this post.  I did a post back when Mint 9 LTS came out, about the changes and tweaking that I did to it to get it more like the Ubuntu (8?ish) experience that I had come to enjoy.  Much of what I had done had become even more do-able with Ubuntu Tweak as that GAVE back much of what Ubuntu and Canonical and been shunting along the way to simplify the OS. You can't give someone a 5 speed, and expect them to be happy with "3 on the tree" with a newer model just for the sake of "simplicity".

I also like the idea of the LTS release. As I do tend to add this and that to my system. So, for this update I decided to try out the Mint Backup Tool. While Mint backup does do some things simply, it's far from perfect.  It also takes quite a bit of time for 200 gigabytes of data. Would I use it to easily pick and choose dir's that I'd want to back up to another drive? Definitely. Would I use it to back up my software selection? Absolutely.  Getting a copy of your data to another location it worked very well.  Where the problem comes in, or the pain, is when you do your restore.

The APT repositories or PPA's that are on a default system are added automatically. Those that aren't you have to go back and add manually.

Also, since I was moving from a Gnome2 system to MATE, I had some duplication of programs,  such as Gedit, AND Pluma, XScreensaver AND Gnome Screensaver, but that proved interesting, as I have two monitors, and there were two different screen savers going at the same time.

A Good majority of my dir's were given ROOT permissions, so I had to go back and change those later. I'm not sure if it was my fumbling around, by not restoring things in the correct order or not. Meaning, I restored my software selection prior to restoring my file directories. The tutorial did it the other way around.

One of the first things that I added was the Ubuntu Tweak PPA, and Downloaded the Google Chrome browser via Firefox. Yes, I'm not as FOSS sensitive as some of my other Linux Brethren.  I've also moved my music and plan on moving other large directories to another drive and link to them, so when I DO backup things in the future, they're more segmented. So, more or less whatever I've created is on one partition, and more static files, like Music, Videos, etc, would be on another.

Overall, I'd say that the Mint Backup utility did it's job. It DID back things up well. Restoring was much quicker, than backing up. I'd give it 4 out of 5. The ability to use a GUI to pick and choose what to backup or restore is slick. But some directories, such as my ./lastpass dir or any other "Piped" dir wouldn't backup, and hang the process, so you'd have to start over. With 200 GB, it took quite a bit of time. 8 hrs or more. On a system such as my wife's who's \home dir was only 2GB I suspect it would be much quicker, though, on her machine, I just did a clean install.

So tell me, have you used Mint Backup?
If so would you use it again?

I think I might, but not all the time. Sometimes a fresh install is just, well, Minty Fresh. :)



 Google Nexus 7 Black Wi-Fi 16GB Tablet - NEXUS7ASUS1B16 (Google Affiliate Ad)

Thursday, August 30, 2012

Digital or Electronic Signing of your documents

I don't know about you, but I don't like to print out a document, sign it, and then have to re-scan it back into the computer. This can happen a lot if you're also in the process of looking for a job.

For this example, I also wanted to pay a little homage to Neil Armstrong, as he just passed away.  Don Pablo Pereira, a reporter had a little story about a letter from Mr. Armstrong and I'll post a link to that at the end of the blog post.

You'll need to also have created a scanned image of your own signature, that you will be using.  If you need help with that, leave a comment, here or on G+ and I'll do a separate blog post about how to create your own digital signature with the GIMP.

If you want, you can grab the document that I made in LibreOffice and edit it too.  I imagine this will work in OpenOffice too, but I've not tested it with OpenOffice.

Once you have your document open,  you will want to import the image file.  Be sure to have your cursor near the spot you want it to be imported to, if you can.

Insert>Picture>From File...


Once you've done that,  you'll notice that it's not lined up the way that you'd want it to be on your document as a signature. 

It'll look all wonky like this:


This is certainly not the way you'd have a signature show up on a real document! It's got to be fixed!

It's an easy fix. Just go up to the top of the page and click on Wrap Trough.


Then move your signature to the spot that you want it on your page, and save. 
Once you save it, print it to paper, if you want, or Export it as a PDF or Print it as a PDF. 
The choice is yours. 

Pretty simple, eh? 



If you used my document,  you'll also have a fresh .PDF of the same letter that Neil Armstrong sent Don Pereira.



Don Pablo Pereira's real reply from Neil Armstrong.

If you have any suggestions or comments, please feel free to leave them!

How many others have struggled to get their documents signed, but didn't want to go through the hassle of print, sign, scan, save, etc?  Do you have some stories of how you'd go about this?

Until next time,
Hang Loose!

RandyNose

HP Officejet Pro 8600 e-All-in-One CM749A#B1H (Google Affiliate Ad)
HP LaserJet Pro P1102w Printer CE657A#BGJ (Google Affiliate Ad)

Sunday, July 22, 2012

How to make Bulging Eyes with the GIMP


I tend to live dangerous. Sometimes the risk is a calculated one, like taking a friends picture and then messing around with the GIMP to create some "Photo Harassment".  I suppose I ought to do a few blog posts and tag them here so I can "showcase" my crude photo edits.  1st, I want to thank Richard Querin for not sending me a pipe bomb in the mail after I "fixed" his photo. 

This one is a fairly quick and easy thing to do.  First you want to select the eyes with the Ellipse tool, and once you've got the first Ellipse where you want it with your selection, press Shift and Click again to create a second Ellipse.  Be careful it's easy to mess up and end up with to many Ellipse's. 

Note: At this point you might want to save the file as an .xcf file if you've done any cropping, etc, just in case.

Ok, so now that you've got both eyes selected, you need to filter the selected area. Menu > Filters > Distort > Iwarp.


Alright, now that you've got the Iwarp filter up, you can choose how you want to animate the eyes. Shrink, Grow, ect...   Make your choices,  and then select the Animate Tab, and also make some selections, I usually leave the defaults as they are, and choose 3-6 frames. Remember each frame is going to make the picture larger, and take it longer to load. 

Now save your file as a .gif, and make sure you save it (or export is it says) as an animation, or else, everything you've done so far will not come out. 

And Viola! you'll have a snazzy or freaky picture to show for your troubles. :) 




Monday, July 09, 2012

3 Quick Tips for New G+ Users.


Today on G+ a fairly popular and successful blogger  joined up and was asking about it, as it seemed confusing to him.  It also reminded me that I've not made any blog posts in some time, and it was time for me to rectify that.  This post is partly to clarify what's going on with G+ and the things about it that make it different from Facebook.  G+ is far from being a dead place if you just join in with a couple of conversations, you can easily, like I did today, spend a good part of the day discussing a topic. 

It's all about the Circles

The Whole Premise of the "G+ Circlies" and putting people into their Proper Circles, if Lost, can and will, leave one a bit confused, thus hating the G+ experience.  So While your account is still fresh!!!  It is a good idea to know what kind of circles you're going to want. Google's already done a fairly good job of getting you setup with some default circles. Add a few more of your own, and don't be afraid to make to many, as it's easy to merge Circles, but real pain to un-merge circles later. (I think it would be nice if we had nested sub-circles, BTW.)    

Don't be a Wallflower!

Where I think some people fail with G+ is that they don't post a few Public Posts, AND Don't fill in their profiles, so if their profile is visited after they make a comment, another person knows what circle to add them to.  Another mistake to avoid as a new G-plusser would be to put EVERYONE into one circle.  DON'T DO THAT!   Keep in mind that you can have people in ALL of your circles if you want, or just a few. It's all up to you.  I have many people in two or more circles, as they might be a [Close Friend] And a [Geek].

The Hangouts

One of the great new things that G+ had was the Hangouts. This is like a group chat forum but with video, in real time. (Watch out Go To Meeting!)  It works on all Three major OS platforms.  Linux, Windows, and Apple. It also works for some Android phones.  You can also control who sees your hangout invite.  It can be just 1 person, a circle, or public.  Also, you don't HAVE to have a video cam on your computer, but it helps. You DO need to at least have the ability to speak and listen. 

There's lots more to discover, such as the games, use of "#hastags" , saved searches,  Sharing YouTube videos in a hangouts, etc... 


Got a Question? Post it here, or on G+ as my comments are moderated 14 days after a post. 



Thursday, May 10, 2012

Open Sourcey Peoples = Links Lead you places.

Just a Quick note. But with links that lead you places. TuxSax, left a comment, so I jump on over to his blog for a quick look, and maybe become a follower of his blog. - I can't read most of his posts. He's got some Right Handed font thing going on, (Google Translate says it's Hebrew, so I'll have to put that to work and go back to his site, as I he's got some other cool posts too)  but there are posts that I could read.  This next link comes from there. I think that it's really cool what this lady is doing, and if you like Art, or would like an origional painting, Ali wold be a great, great source.  So... I'm going to send you to his blog post, and you'll have to jump from there, to the free paintings post...



 Mwhahaa...


Issues with Linux Mint (or Debian Linux) and Xsane

#notetoself So, today, I was playing around with a new PC setup. And of course there was an issue with the HP Scanner. - I generally use Xsa...