A guy, a blog and the internet
Clifford W. Hansen
This user hasn't shared any biographical information
Homepage: http://nighthawk.co.za
Jabber/GTalk: chansen1979@gmail.com
Posts by Clifford W. Hansen
Life changing events…
Jul 30th
In less than 12 hours I leave Capetown and move back to Johannesburg.
I am excited, a little nervous, and really looking forward to what the future holds.
On that note, it’s almost lunch time, and I’m gonna miss the friday ritual of going out and getting food. Thank you to TheClassifieds it’s been a great year, I’ve learn a lot, and I hope you guys have also.
Time to shutdown and go to lunch, catch you on the flip side
Updating the time on a xen domU
Jul 30th
I suggest that the dom0 has the ntp daemon running and keeps the time up to date, but if you don’t have controll of the dom0 and need to get your domU’s time synced (which you should anyways) try the following:
# echo 1 > /proc/sys/xen/independent_wallclock
I was getting the following before this:
# ntpdate pool.ntp.org 30 Jul 11:29:51 ntpdate[2769]: step time server 75.144.70.35 offset -163.032327 sec # ntpdate pool.ntp.org 30 Jul 11:29:56 ntpdate[2774]: step time server 173.45.232.54 offset -163.045007 sec # ntpdate pool.ntp.org 30 Jul 11:29:59 ntpdate[2776]: step time server 75.144.70.35 offset -163.033134 sec # echo 1 > /proc/sys/xen/independent_wallclock # ntpdate pool.ntp.org 30 Jul 11:30:17 ntpdate[3462]: step time server 192.43.244.18 offset -163.044422 sec # ntpdate pool.ntp.org 30 Jul 11:30:35 ntpdate[3648]: adjust time server 192.43.244.18 offset -0.006104 sec # ntpdate pool.ntp.org 30 Jul 11:30:38 ntpdate[3649]: adjust time server 192.43.244.18 offset 0.237696 sec # /etc/init.d/ntpd start Starting ntpd: [ OK ]
Hope that helps
SARS eFiling and Linux
Jul 7th
SARS (South African Revenue Service) a couple of yeas ago (eFiling) introduced an awesome system, where you could go online and submit your tax return.
The problems I have had have been annoying, firstly (2008) I was unable to do anything as the system required you to have Adobe Reader 8.2, this was not available for Linux. And you can imagine the support staff were very helpfull… NOT
And then 2009 & 2010, a similar problem or so it seemed, when ever I tried to load one of the system generated PDF files it would tell me I needed to upgrade my Adobe Reader (which at the moment is 9.3.3, the latest I believe).
After trying to figure out what could be the problem I found it to be a javascript related issue, yes javascript in a PDF…
Solution
Well to solve this problem you need to have the Debian Multimedia repository setup.
And then all you need to do is:
apt-get install acroread mozilla-acroread acroread-plugins
After that restart firefox/iceweasel and there you have it, the missing peice of the puzzel acroread-plugins
So now I have submitted my returns for 2008/2009/2010, here’s waiting for a refund *holds thumbs*
Trying to reorganize ones life
Apr 27th
It’s amazing how time flies parts us and we sometimes don’t even notice it.
Well I know I can’t change time or the past, but I can shape the future, and I plan to do just that.
I know it’s not going to be easy, but I am needing to split my day in to various chucks so I can at least get some meaning out of them and not just plod along like I have been doing.
So lets see how this works out… And hopefully I can stick to it for more than one or two days :p
I am slowly becoming a stronger person, not only emotionally but physically and mentally as well. I have some motivation, and it’s amazing what you can achieve when you have people around you that believe in you
so thank you to all those people
I have a few big plans for the future, unfortunately the timing isn’t right yet for some of them, and some other plans are reliant on the first few, but with time and patience, these things shall come to pass
And hopefully I will now have more time to mess around with more technology
Well best get off to bed, it’s getting late
Taking a break…
Feb 25th
Isn’t it funny how much we rely on the interet. I have my email, twitter and facebook setup on my phone and all the pc’s I use, just in case I miss something. It has started taking up a lot of time, I have hardly had any time for myself.
So, I’ve decided that for the next couple of weeks I’m going to disconnect myself from that world, unfortunatly I can’t disconnect completely from the internet due to my work. But I can close down chat clients, and the like.
Here’s to the next couple of weeks, hopefully something good comes from it, catch y’all on the other side. And I will try and blog more, havn’t really had a chance to learn anything new recently, hence this decision
Love you all, C
PS. If you need to get hold of me, pop me a mail or sms, or leave a comment below (they are moderated so if you don’t want it to show up just say so
UPDATE – 2 Mar So it took a week and I’m back, but I’ve removed a few people from follow lists, unfortunately these things need to be done
Remote syncing files using git
Jan 26th
I’ve been wanting to write a post about this for a while, and a friend of mine asked about it a couple of weeks ago, and here it is…
First you need to create a remote Git repository, either on your own server or Codaset, GitHub
You will need to create a local repository:
mkdir directory_to_sync cd directory_to_sync git init touch .gitignore git add .gitignore git commit
To create a remote Git repository do the following on your server:
mkdir repository.git cd repository.git git init --bare
Once you have created the remote repository you will need to link it to your local copy:
git remote add origin ssh://server_address/path_to_repository git push origin master git pull origin master
To make life easier I always edit the Git config file and add the following:
vi .git/config
[push]
default = current
[branch "master"]
remote = origin
merge = master
The only problem with this approach is that you need to store the files in a seperate directory, but we ca get around this “limitation” by using symlinks for example to store the .bash* files in Git:
ln -s directory_to_sync/.bashrc ./
Well I hope this helps someone out there
The post is brought to you by lekhonee v0.7
Moving… again…
Jan 25th
Well, I can’t believe how time has flown, Cecilia and I split up end of October last year, and we were still staying together till the end of the lease. I found a new place end of November, and now finally get to move in
So now instead of driving 100Km a day (from Durbanville to Tokai), I am now gonna be driving 10Km a day
<– AWESOME!!!
And now I’m closer to the beach, it’s like a 10min drive, on a busy day
so will be spending alot more time there, and when Catelyn comes to visit she will also, she loves “THE BEACH” as she puts it… hehe…
So as one part of my life finally comes to a close, another starts up…
Now finally I’ll have more time to spend on the stuff I love, and hopefully I will be able to start contributing to the Debian comunity.
New things to learn, new people to meet, new experiences to experience… #ROCKON #AWESOME
OpenMoko Neo Freerunner mobile phone
Jan 5th
So the OpenMoko Neo Freerunner mobile phone has been available in SA for a while now, and I can’t wait to get my hands on one, due to various situations this wasn’t likely to happen soon.
Then I stumbled apon a competition at WebAddict, so now I have a chance to win one, not only will I have an awesome phone that I can install Debian or Google Android on, but I’ll have a replacement for the 5800 that was stolen a couple of weeks ago…
Checkout the competion, it’s really an awesome phone…
Happy New Year
Jan 2nd
So, it’s the begining of a new year, man 2009 went by quick… I really didn’t expect (or want) the year to end the way it did, but go figure.
Well I have a feeling that this next year is gonna be a tough one, but I’m sure I’ll get through it…
Here’s to the new year and I hope that all of you guys reading this have an awesome year. Hopefully big things happen…
Merry Christmas to all
Dec 25th
Well it;s that time of year again (what happend to the rest of the year).
Merry Christmas to all of you out there, some of you are close and some of you are far.
So special greetings go to my Dad (even though you are far away we are thinking about you and miss you lots)
Well guess I should stop being “rude” and leave the pc alone for a little bit, hope you all have an awesome day surrounded by people you love and great food.
And so I write some code today
<?php
$holiday = new Holiday('Christmas');
$holiday->celebrate();
$holiday->eatLotsOfFood();
$holiday->beMerry();
lolz