News for hackers. Stuff that matters.

lukeredpath

Re:Tour of Parser-Printers: Introduction on Monday April 11, 2022 @03:29PM (#30993555)
There is a link to the library in the first sentence of the transcript.

I know Pointfree do script their episodes but I can’t say I’ve ever noticed it in any detrimental way.

Re:Much ado about iOS app architecture on Thursday November 09, 2017 @02:40PM (#15665254)
iOS is relatively young. It attracts a lot of new programmers. For years iOS suffered from lack of ideas around architecture and solid programming practices.

In the last few years I've seen this start to change and now it seems a bit like "ARCHITECTURE ALL THE THINGS!!!". We're in a period of trying out new ideas and figuring out what works and what doesn't.

Give it a few more years and these ideas will start to mature.

Re:Massive Dyn DNS outage on Friday October 21, 2016 @12:51PM (#12762086)
Lots of sites down for me in the UK. I was using my ISPs DNS (Sky), switched to 8.8.8.8 and not much better.
Re:Making Sense of the New VAT Rules on Thursday January 29, 2015 @01:02PM (#8967778)
One workaround is to change your business model and accept donations instead. That obviously won't work for everyone, obviously.

This works because tips and gratuities are not considered taxable consideration for VAT purposes and therefore outside the scope of VAT. It has to be a genuine tip though - i.e. voluntary, no minimum or recommended amount and not a condition of purchase.

There is a platform out there that lets you sell things under this model but I can't remember it's name.

Re:Making Sense of the New VAT Rules on Thursday January 29, 2015 @08:45AM (#8966024)
Has there been any concrete evidence that the EU plans to extend these rules to physical goods as I've only seen speculation.
Re:Making Sense of the New VAT Rules on Thursday January 29, 2015 @08:44AM (#8966017)
Grey area IMO and different EU tax authorities may have differing views, just to make things more complicated.
Re:Making Sense of the New VAT Rules on Thursday January 29, 2015 @08:42AM (#8966011)
Yes, B2B sales between EU countries are handled using the reverse charge system, when the supply is where the customer belongs - subject to certain use and enjoyment provisions (e.g. If a UK business sells software to a German business for use in the German business's UK office it would be subject to UK VAT instead).
Re:Making Sense of the New VAT Rules on Thursday January 29, 2015 @08:34AM (#8965975)
As I mention in my post below, if you're a non-EU company selling digital goods and services to EU customers, then strictly speaking these new rules don't change much - it's was already the case that non-EU suppliers that supply electronically supplied services to EU customers (B2C transactions, not B2B) should be charging the customer VAT at their local rate.

Businesses could choose to register in each state or a single one using the VoES (VAT on e-services) system. These rules have been in place since 2003.

However I imagine that a lot of non-EU companies didn't bother with this either out of ignorance or simply because they didn't care or thought it could be enforced.

Under these new rules, MOSS replaces VoES but it's practically the same thing. This mostly affects EU businesses who now have to charge the rate where the customer belongs, not where the supplier belongs.

Re:Making Sense of the New VAT Rules on Thursday January 29, 2015 @08:26AM (#8965929)
On digital goods and services. I'm pretty sure the liability to pay VAT on physical goods, along with any import duty, is the customers when the item is imported.

For the record, here's the HMRC (UK revenue service) explanation of the special VoES scheme that's been around for ages:

http://webarchive.nationalarchives.gov.uk/20120128212010/htt...

Re:Making Sense of the New VAT Rules on Thursday January 29, 2015 @08:21AM (#8965901)
US/non-EU companies selling digital products and services to the EU is most certainly NOT exempt, and it wasn't exempt before these recent changes - it's been a requirement that US/non-EU businesses selling digital services register to charge VAT to EU customers at their local VAT rate since 2003!

Rather than registering in each EU country, they could register in one country and use the VoES system to submit their returns.

It was because of this ruling that big companies like Amazon found a workaround by setting up subsidiaries in countries with low VAT rates like Luxembourg and sold their goods from there. This meant they could charge Lux VAT instead of the customer country's VAT rate.

This obviously gave them an unfair advantage not only over local businesses but also non-EU businesses that used the VoES system.

In effect these new rules change little for non EU businesses. The VoES system is being retired in favour of the new MOSS system which is effectively the same sort of thing, only now, ALL businesses including those in the EU, have to charge local VAT when selling digital services to the EU.

For e big companies like Amazon, this closes a loophole. For those who were correctly charging VAT under the VoES system, nothing much changes. For those non-EU companies who were chose not to comply with the 2002 rules, well I'd imagine they will continue to not bother. And those who were ignorant of them (many I'm sure) might now be a bit more aware.

But of course the businesses it affects the most are small EU businesses who now have to charge different rates of VAT or use MOSS when they didn't before.

I don't have the time to read it and verify but could this be a patent for the algorithm? If so, does it make any difference anyway?

http://www.google.com/patents/US20090043584

Is this the patent for the algorithm in question?

http://www.google.com/patents/US20090043584

Re:JavaScript for OS X Automation on Wednesday September 17, 2014 @07:54PM (#8332959)
Have you used Appium? It does pretty much the same thing. I have an alternative Ruby library for it too:

https://github.com/songkick/rubium-ios

You can use it with Cucumber or Rspec or whatever.

Re:Objective-C Generics on Monday January 13, 2014 @06:30AM (#7049996)
Other than adding dozens of methods to NSArray/MutableArray for each "generic" you define and limiting my choice of collection to an array (rather than a set or dictionary), why would you use this rather than define your own collection class that keeps the underlying store encapsulated and enforces its own type-safety?

If type-safety is that important, a custom collection class will enrich your domain model and be more obvious.

Re:Animate in Xcode without code on Thursday December 05, 2013 @09:41AM (#6854558)
Using the new keyframe animation API by the looks of things.
Re:Animate in Xcode without code on Thursday December 05, 2013 @09:41AM (#6854553)
You may want to check the release notes of the latest iOS/Xcode beta.

(but yes, I agree, that it has taken this long is crazy)

Re:NSNotificationCenter with blocks considered harmful on Wednesday November 20, 2013 @09:03AM (#6767986)
> Everyone except the authors of the "Blocks Programming Topics" and the authors of the AVCamCaptureManager sample code. Maybe.

No - it's just that these documents/samples haven't been updated when they should have been. Have you filed a Radar?

They always have been. The new XIB format is the same as the current Storyboard format.

It doesn't completely prevent merge conflicts though.

Re:The pull-to-refresh patent on Monday March 26, 2012 @07:35PM (#3759158)
I'm sure if Apple really wanted to incorporate this into their apps they would either a) license the patent or b) just do it anyway.
Re:Getting started with iOS development on Heroku on Friday February 10, 2012 @06:19PM (#3577940)
And soon it won't even need MacRuby, just the Ruby that ships with OSX.
Re:IOS 5's "Cleaning" Behavior on Friday October 14, 2011 @08:36AM (#3110909)
It is admittedly, on double-checking, a bit convoluted.

Settings > iCloud > Storage and Backup > Manage Storage > [DEVICE] > Backup Options.

Re:IOS 5's "Cleaning" Behavior on Friday October 14, 2011 @05:30AM (#3110559)
Yes, you can disable iCloud backup on a per app basis.
Re:IOS 5's "Cleaning" Behavior on Thursday October 13, 2011 @06:34PM (#3109077)
But only if you are online, which defeats the object of "offline access".
Re:IOS 5's "Cleaning" Behavior on Thursday October 13, 2011 @06:24PM (#3109040)
I honestly don't think there is an issue with allowing Instapaper content to get backed up to iCloud here. The analogy of a user created archive is a good one.

If people don't want the benefit of having their Instapaper content transfers across their devices automatically (and I do think this is a good feature) then they are free to disable iCloud backup for Instapaper in Settings.

Re:IOS 5's "Cleaning" Behavior on Thursday October 13, 2011 @06:15PM (#3109011)
Lots of people are focussing on Marco's particular use case in the comments, and I think it's a valid one, but this extends beyond simple documents.

There is a category of data that is aimed at offline use. Streaming apps like Spotify, that let you download playlists for offline use. GPS apps that download hundreds of MB of map data. You get the idea.

On one hand, this data is a form of cache. The data is always available elsewhere (on the content provider servers) and it can be restored if necessary in a worst case scenario. But the key word here is "offline". This is the kind of data that, by definition depends on being around if the user is offline and therefore cannot be easily restored on demand, when the user needs it.

Obviously, having all of this stuff backed up to iCloud and using up GBs of people's capacity is not feasible or even logical. So this kind of data does not belong anywhere that iCloud will back up. But it must be stored somewhere that is safe from being purged.

Yes, a users GPS maps can be restored eventually but that doesn't help them when they are stranded in the middle of nowhere with nothing but a weak GPRS signal and all of their maps gone.

Apple have made an almighty cockup in overlooking the "offline data" use case.

In Marco's case, I'd agree that the articles represent user data that should be stored somewhere like Application Support, which will be backed by iCloud but I think that's probably fine in this case.

Re:IOS Boilerplate: A base template for iOS apps on Wednesday September 14, 2011 @06:50PM (#2998169)
I'm no fan of singletons either, but writing one with GCD dispatch_once is pretty simple. Nevertheless, I do have a macro for it:

http://lukeredpath.co.uk/blog/a-note-on-objective-c-singleto...

It's really for creating "shared" instances rather than true singletons, but who honestly needs a real singleton?

Re:IOS Boilerplate: A base template for iOS apps on Wednesday September 14, 2011 @06:46PM (#2998162)
Obligatory plug for Resty: https://github.com/lukeredpath/LRResty ;)
Re:"I've got an idea for an app" on Tuesday September 06, 2011 @09:21AM (#2965462)
"I've got an idea for an app", almost inevitably followed by..."I don't have any funding but I can offer a great equity deal".