Articles

Xero API: Send Multiple Invoices

What?
A really quick article for anyone who got stumped by the same issue: How to send multiple invoices to Xero in one API call?

Why?
Our use-case is in Zoho Deluge which couldn't generate more than 5 invoices in a scheduled task because Xero only allows 5 concurrent connections at one time... And Zoho was trying to send about 7 at a time (as in schedule created 7 Zoho invoices but only 5 Xero invoices). Our solution: Send all Zoho invoices in API call to Xero... apparently it can accept up to 60 invoices in one call.

How?
Crazy simple solution, your JSON needs to have the key "Invoices" and the list of invoices to create:
{"Invoices":[... list of invoices ...]}

What?
This is an article documenting a generic script that can be used to push an invoice to the demo Xero environment. Following the steps below will connect you to the Demonstration environment of Xero at no cost to you the developer.

How?
Similar to my ZohoAPI script the process is:
  1. Start with a HTML form to add your client ID/client Secret/scopes and Redirect URI. These get stored in a temporary file to retrieve later.
  2. Then you get a button that will return the "CODE" variable via GET (URL). Clicking on this will get the CODE variable and use it to generate a refresh token.
  3. Then with the refresh token generate an access token.
  4. Then with the access token get a connection "TenantID".
  5. Then with the tenantID we can retrieve records and/or finally create an invoice (accounts receivables).
Joel's guide to MidJourney Prompts: fire mage, steampunk victorian, detailed, full body hyperrealistic female

What?
So this is an article for me to store prompts for the MidJourney AI text-2-image discord tool.

Why?
The results from the MidJourney bot are beyond unpredictable however with the correct prompts you can direct it to focus on the elements you want from a brief.

How?
A "prompt" is a text-to-image expression using words and phrases to instruct the Midjourney Bot (or any other AI text-2-image generator) which the bot can break down into "tokens" and then match with its training data to generate the image.

What?
So this is a quick article on how to maintain an aspect ratio when resizing an image.

How?
These are the calculations to work out the new height given the width or the new width given the height:
(original height / original width) x new width = new height

(original width / original height) x new height = new width

I saw this on BBC News Click and was really impressed. It's an effect called "time-lapse tilt shift photography" where everything is made to look smaller than it actually is.

As an update Mar 2011, I just watched Gulliver's Travels (2010) and it looks like the same effect for the intro credits :c)

This is "a day in the life of New York City".


More Information can be found at http://aerofilm.blogspot.com/2010/02/sandpit-short-film-by-aero-director-sam.html

Personally I can sit there watching it without sound.

What?

I saw this article and rather than bookmark it I thought I could just have it here for easy reference.  It was written for Photoshop but I use Paint Shop Pro and felt I could do the same.  It's just so complicated in Photoshop when web-developers need to be able to run several programs at the same time and simplicity is king.

In PaintShop Pro you would simply:


How?

i3 workstation upgrade running Windows 7
So another year gone and our workstations running Windows 7 are somewhat lagging when opening too many apps. The recent release of Windows 8 has led to a review of our developer's equipment and the verdict is that our workstations need upgrading (it always is). So on a budget (ie. as cheap as possible), we'll skip Windows 8 and wait for Windows 9, but in the meantime we need something that flows as smooth as any other Microsoft product with Windows 7 as its Operating System:

Proposed for January 2013 (5 suppliers)


Processor Intel Core i3 3220 Dual Core CPU ( 3.30GHz, Socket 1155, 3MB Cache, Ivy Bridge, 55W, Intel HD Graphics 2500, Advanced Vector Extensions) - Intel £88.50
Motherboard AsRock H61M-DGS Motherboard (Socket 1155, Intel H61, DDR3, 4 x S-ATA 300, Micro ATX, PCI Express 3.0, AsRock XFast USB, AsRock Instant Boot) - ASrock £37.58
Hard Drive Western Digital Caviar Blue 160 GB (7200 rpm) SATA 8 MB 3.5 inch Hard Drive (Internal) - Western Digital £24.95
Memory Corsair CMX4GX3M1A1333C9 XMS3 Desktop Memory 4GB - Corsair £20.05
Optical Drive Sony AD-5280S-0B DVD±RW 24x SATA Drive with Dust Protected Enclosure and Emergency Eject - Sony £17.77
Other 2 X Serial ATA Sata Hard Drive Data Cable Lead - Unbranded £0.90
Total £189.75


Confirmed for January 2013 (2 suppliers):

Not a useful note and more of a personal opinion then factual, but beyond the inventors of the Internet or any hardware has to be the following notion from IBM:

a 1976 research report by Lance A. Miller and John C. Thomas of IBM, noted that "It would be quite useful to permit users to 'take back' at least the immediately preceding command (by issuing some special 'undo' command)."

Source: Behavioral Issues in the Use of Interactive Systems.

If you've guessed it, my vote goes for whoever invented the "Undo" button: cross-platform, multi-lingual, future-proof and as everlasting as human error.


More?