Originally posted by tractor
View Post
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: Stupid computers!
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "Stupid computers!"
Collapse
-
3d array corresponding to the possible box sizes. Each element represents a unit of set fidelity(1m,1cm etc) as items are 'packed' update the bool in the array to indicate space taken. Start with the largest item and fit it in a corner then iterate through the others in decreasing size. Same as a human would do it.
Leave a comment:
-
3d array corresponding to the possible box sizes. Each element represents a unit of set fidelity(1m,1cm etc) as items are 'packed' update the bool in the array to indicate space taken. Start with the largest item and fit it in a corner then iterate through the others in decreasing size. Same as a human would do it.
Leave a comment:
-
Originally posted by mudskipper View PostI'm not trusting my gold ingots to the vagaries of Royal Mail (or worse, Yodel!)
Apparently the penalties for robbing or interfering with the Royal Mail were stricter than for plain nicking stuff and if it was your gold the risk of your stuff getting nicked was lower.
Obviously in those halcyon days the Royal Mail provided a service where next day delivery was...... well lets just leave it at they provided a service.
I can't say I believe the folklore completely but it's a good yarn! I certainly remember post arriving reliably a couple of times a day rather than in bulk on random days with gaps of several days with nothing.
Also strictly speaking it wasn't ingots they allegedly posted just jewellery and gems.
Leave a comment:
-
Originally posted by Dactylion View Post
So if you want to send a poster cheaply you should put it in a long square box not in a poster tube but if you want to send gold ingots you should pop them into a cardboard tube first! It's ficking madness I tell you! ficking madness!
Leave a comment:
-
If you do come up with a simple solution you have a perfect PlanB
You could sell it to all the ficking useless tulip courier companies, the even more ficking useless tulip mail companies and make an absolute fortune.
I know from painful personal experience that none of the aforementioned ficking useless tulip companies have anything more sophisticated than a trained chimp randomly selecting which ficking stupid algorithm will be used for any particular item.
FFS My last example of the ficking stupidity of these people was that it apparently cost twice as much to send a cylinder of x cm diameter than it cost to the same ficking thing in a long square box unless it was fairly heavy as above this weight the long square box fell into a different category but the cylinder didn't.
So if you want to send a poster cheaply you should put it in a long square box not in a poster tube but if you want to send gold ingots you should pop them into a cardboard tube first! It's ficking madness I tell you! ficking madness!
Leave a comment:
-
Originally posted by xoggoth View PostSensible stuff. What I thought originally before deciding to see if anything could be done more rigourously. Now I am so flippin' OCD I will be obsessed with it until I find a solution.
Not simple in 1D and you want to do it in 3D.
Leave a comment:
-
Sensible stuff. What I thought originally before deciding to see if anything could be done more rigourously. Now I am so flippin' OCD I will be obsessed with it until I find a solution.
Leave a comment:
-
Do you have a record of the charged vs actual costs? Have you checked that the under charges actually do outweigh the over charges? You might find that there's no real issue - or if there is, simply adding 10% across the board covers it. Or some kind of surcharge based on weight.
Play around with the figures and see if you can come up with a simplish formula that covers what your customers actually order, and means overall, you're ahead.
That's far better than trying to find an ideal solution. Alternatively, there are commercial APIs available that do a good job - buy one.
Leave a comment:
-
no rules to say parcels must be cuboid shaped
if your package is irregularly shaped, the volumetric weight is calculated based on the dimensions of the smallest cubic shape the package will fit into.Last edited by xoggoth; 25 June 2015, 10:37.
Leave a comment:
-
I'm sure there are no rules to say parcels must be cuboid shaped.
So maybe you could simply arrange your packages in increasing size order, then enclose them all in shrink wrap to make a flexible snake-like parcel.
OH in "trying to think outside the box (literally)" mode
Leave a comment:
-
Originally posted by xoggoth View PostDue to the simplistic postage calculations on my website, it sometimes costs us a lot more to post a large order than we have charged for, so I was attempting to implement some proper calculations. By weight is obviously easy enough but one also has to calculate what could fit in a large letter and Parcel Force charges by volume. How do you arrange items of different sizes to make up the least volume where volume is based on the maximum dimension in each direction?
Thought this would simple but it ain't. You need to be a professor:
algorithm - How can I programmatically determine how to fit smaller boxes into a larger package? - Stack Overflow
But actually packing something sensibly yourself requires almost no thought at all, proving computers have a long way to go before they take over the world. If they had asked The Terminator to fit various quantities of different items x, y and z in a square box, he would have gone "cannot compute, cannot compute, cannot compute, ..." in a rising pitch and his head would have exploded. Problem sorted.
T2 would simply have rearranged the dimensions of the package before inserting it neatly into the smallest package possible.
Leave a comment:
-
Stupid computers!
Due to the simplistic postage calculations on my website, it sometimes costs us a lot more to post a large order than we have charged for, so I was attempting to implement some proper calculations. By weight is obviously easy enough but one also has to calculate what could fit in a large letter and Parcel Force charges by volume. How do you arrange items of different sizes to make up the least volume where volume is based on the maximum dimension in each direction?
Thought this would simple but it ain't. You need to be a professor:
algorithm - How can I programmatically determine how to fit smaller boxes into a larger package? - Stack Overflow
But actually packing something sensibly yourself requires almost no thought at all, proving computers have a long way to go before they take over the world. If they had asked The Terminator to fit various quantities of different items x, y and z in a square box, he would have gone "cannot compute, cannot compute, cannot compute, ..." in a rising pitch and his head would have exploded. Problem sorted.Tags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Secondary NI threshold sinking to £5,000: a limited company director’s explainer Dec 24 09:51
- Reeves sets Spring Statement 2025 for March 26th Dec 23 09:18
- Spot the hidden contractor Dec 20 10:43
- Accounting for Contractors Dec 19 15:30
- Chartered Accountants with MarchMutual Dec 19 15:05
- Chartered Accountants with March Mutual Dec 19 15:05
- Chartered Accountants Dec 19 15:05
- Unfairly barred from contracting? Petrofac just paid the price Dec 19 09:43
- An IR35 case law look back: contractor must-knows for 2025-26 Dec 18 09:30
- A contractor’s Autumn Budget financial review Dec 17 10:59
Leave a comment: