Blogs

Telly: PLEBS chuckling at Romans

  • Posted on: 26 February 2014
  • By: NickLitten

I found this by accident and it's yet another Telly series which reminds by just how funny and irreverent English TV can be.

Plebs is based in Rome at the time of the Roman British invasion - an easy play on the Latin word 'plebeians' -- and if you don't know what that word means that you need to jog back to school and give your history teacher a swift kick up the arse. Plebs is filled with stupid British comedy, occasional naughty words and frequent innuendo and sexual comments it just about sums up British comedy at its best. It's The Inbetweeners meets Ancient Rome:

PLEBS follows three desperate young men from the suburbs as they try to get laid, hold down jobs and climb the social ladder in the big city - a city that happens to be Ancient Rome. The series stars Tom Rosenthal (Friday Night Dinner), Joel Fry (Trollied) and Ryan Sampson (After You've Gone) as the three young men - Marcus, Stylax and their lazy slave with an attitude problem, Grumio.

Telly: PSYCHOVILLE - double u tee eff?

  • Posted on: 26 February 2014
  • By: NickLitten

Psychoville is very reminiscent of A League of Gentlemen - not the movie, but its dark and twisted telly cousin. I love it.

Psychoville is weird, humorous, silly, serious and still scary but funny and sometimes disturbing.... confused enough? I sure was. The Clown is pure genius. The Silent Dancer is somehow super scarey. The blind old man, serial killers, porno dwarves and crazy nurse make this satirical comedy series something very special indeed. Pour yourself a stiff glass of WTF and enjoy it.

Telly: PSYCHOVILLE - double u tee eff?

  • Posted on: 26 February 2014
  • By: NickLitten

Psychoville is very reminiscent of A League of Gentlemen - not the movie, but its dark and twisted telly cousin. I love it.

Psychoville is weird, humorous, silly, serious and still scary but funny and sometimes disturbing.... confused enough? I sure was. The Clown is pure genius. The Silent Dancer is somehow super scarey. The blind old man, serial killers, porno dwarves and crazy nurse make this satirical comedy series something very special indeed. Pour yourself a stiff glass of WTF and enjoy it.

SQLRPGLE how to update a file with a cursor - WHERE CURRENT OF

  • Posted on: 20 February 2014
  • By: NickLitten
so what does WHERE CURRENT OF mean?

So what does WHERE CURRENT OF mean?

Quite simply it means - if we have just read something using an SQL cursor then the operation that we are applying to "where current of" is being applied to the exact data set that just been read.

Let's take an example of direct file access technique for reading a specific record and updating it. How about we read every record in a file with the value of 'X' in s status field and change the value to 'Y'

Read filename;

Dow not %EOF(filename);

If Status = 'X';

   // some program logic stuff could be here

  Status = 'Y';

Endif;

Read filename;

Enddo;

note: this could just as easily be a DELETE operation.

If we wanted to do the same thing in SQL we could do it like this:

exec sql declare NicksCursor cursor for

         select * from filename

         where status = 'X'

         for update of Status;

exec sql open NicksCursor;

ibm i technology releases are like vintage sports cars?

  • Posted on: 19 February 2014
  • By: NickLitten

I always wanted a TR6 or even its pointy cheese wedge cousin the TR7... but this blog isnt about that. It's about the much more geekish IBM Technology Releases for IBM i operating system..

Steve Will, IBM i Chief Architect, talks about some of the highlights of #IBMi TR6 and TR7 that were delivered in 2013:

If you dont see the embedded youtube video then watch it here

The technology refreshes are key components for the IBM i operating system that are released in between major operating system changes. TR6 came out in mid-2013 and TR7 arrived for Christmas... these enhancements included lots of goodies ranging from

  • the ability to use USB for backups
  • mobile device support
  • PHP enhancements for the ZEND Server
  • SQL service integration (this is huge as it allows application developers to access IBM i data from anywhere)
  • and with TR7 we finally got /freeformat RPG   Huzzah!

I could gush on and on about RPG at this point... but I wont... I'm going to surf off and google images of TR6's instead   

RPG is finally set free

  • Posted on: 14 February 2014
  • By: NickLitten

Since the introduction of the latest Service Pack for IBM i V7 -- cunningly entitled 'Technology Release 7.1 -- RPG programmers can now finally eschew the old fixed column coding and roam around a modern free format language. Lovely jubbly.

Long overdue and in the words of Jon Paris (RPG Guru and all round Nice Geezer):

1) I hate F-specs.

I can never remember which letter goes in which column, and of course the more I use embedded SQL, the less frequently I have to code them. I almost always end up either cloning or using the prompter in RDI (about the only time I ever use it) and even then I'll get at least one thing wrong.

I also find it frustrating to have to specify every little detail. For example, if I say it is a printer file, then of course the thing is output. How many input-capable printers have you ever encountered?

Forget that the new F-specs are free-format. For me the most liberating thing about them is that they assume sensible defaults! For example, suppose I code this:

HTML for the RPG Programmer - HTML5 the basics

  • Posted on: 30 January 2014
  • By: NickLitten

Over recent weeks I've been discussing career options with my eldest mini-me -- Nathan, who is nearly 15 and at the stage of life where he is asking the "what am I going to do with my life?" big questions.

Obviously, the 'make money in your career' options are "Son, get into Medicine or Law!" but I am obviously biased in my thoughts that you can make a decent living and enjoy laying your hands on a keyboard and sinkning your mind into technology...

An easy way to get into website design and a brilliant over is courtesy of the free online book : "Dive into HTML5".

Example:

How to change Remitplus Server in Client Config

  • Posted on: 29 January 2014
  • By: NickLitten

I've spent this week implementing a Cheque (yes -- that is the correct and very English way of spelling 'check') scanning solution for a client.

The basic idea is -- company receives lots of money payments by cheque, these are scanned, sorted and deposited direct into the companies bank account and the deposit information is then automatically uploaded to their back office accounting system (in this case an in house RPG IBM i application). It's been a fun project with some neat automated features which are now working nicely in production. *phew*

The clever scanning and talking to the bank bit is handled by a cheque scanner and some rather nifty software to control it, called RemitPlus by Profitstars:

RemitPlus® Remittance/LockboxTM

Electronic check, remittance, and lockbox processing solution.

dsplnk '/tmp/httpapi_debug.txt'

  • Posted on: 20 January 2014
  • By: NickLitten

If you are using the IBM i HTTPAPI (LIBHTTP) opensource utilities, you already realize how easy it is to talk to a webservice from within your RPG programs.

But remember, after you have run your program, you will have a beautiful log of the entire SOAPey process stored in an IFS file in your temporary folder -- assuming you are running in debug mode.

So , in your program make sure you are turning on debug:

        // Note:  http_debug(*ON/*OFF) can be used to turn debugging
        //        on and off.  When debugging is turned on, diagnostic
        //        info is written to an IFS file named
        //        /tmp/httpapi_debug.txt
      /if defined(DEBUGGING)
         http_debug(*ON);
      /endif  

and then after you have ran it you can see the results by typing: dsplnk '/tmp/httpapi_debug.txt'

You will see a gloriously detailed log that looks something like this:

What is the best media player for Android, Apple and Windows mobile devices

  • Posted on: 18 January 2014
  • By: NickLitten


So, you've downloaded some video but your standard media player doesnt seem to want to play it?

Video media comes in all shapes and sizes: AVI, MP4, MP5, MOV, XVID, yadda, yadda, yadda

​I cant be bothered with downloading a media player for each format when one player will do the lot. But with various operating systems on the devices in the walls of Castle Litten these are my favorites for my Android Phone, Tablet and also for Windows, IOS7 and Ubuntu Desktops:

For ANDROID the winner is BS PLAYER FREE

bs player free plays everythingSitting on various planes, trains and automobiles this is my favorite solution for watching media. It plays everything!

Pages