Search results for

We are unable to process your request

69,604 results found

Post

Replies

Boosts

Views

Activity

Reply to Swift and Mathematics
Already by allowing operator overloading and Unicode variable names, Swift is able to provide fairly decent mathematical support. However,pow(x,y) // doesn't really hack it.Someone who does not have experience coding math-centric code will probably wonder what the fuss is about. Imagine having to do:add(x,y) // ... especially on a long and involved equation.And consider that in the realm of signals processing, raising a complex number to some power is as common as adding two integers.One solution I would like to see considered would be allowing Unicode operators. (A carefully chosen subset of Unicode). This would allow succinct set theoretic notation for a start.I don't think we should constrain ourselves to what is underneath our obsolete QWERTY keyboards. Digging out a Unicode character would only take a few seconds, and produce beautiful code. Given the hours I spend staring at ugly code, I would be very happy to invest.Have a look at https://www.youtube.com/watch?v=a9xAKttWgP4 -- APL have gone do
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Xcode 7 simulator performance
If I start an iOS 9 debug session on a simulator (e.g. iPhone 6) from XCode 7, it needs minutes until I can see something, but not the running app, instead always the message error: failed to attach to process ID .... The splash screen occurs for a moment, but the app will not start. Sometimes if I wait 5 to ten minutes, it starts. This is also for small apps, like sample apps from WWDC. Is the problem my old iMac? It is a mid 2007 with 4GB RAM and a 2.4 GHz core 2 duo, Yosemite.If I got it run, it runs faster after changes in source code. But I got only iPhone apps to run, not Apple Watch apps (possibly if I wait an hour?)
0
0
530
Jun ’15
Reply to Verifying Search APIs are working?
One thing that has bitten a few people (myself included) is that the activity must not be deallocated. If your code is only working with NSUserActivities (i.e. not using CoreSpotlight in addition) then make sure your activities aren't being deallocated immediately. In my case, I had code that was allocating the NSUA, setting some properties on it, calling becomeCurrent, but then the object would go out of scope and deallocated. If you're doing this, try tossing the activity into a strong property to see if you can then see the results when you search. If you're unable to get it to work, please file a bug report and attach your project so we can take a look (and post your bug number here).
Topic: App & System Services SubTopic: General Tags:
Jun ’15
GKStateMachine: confusing terminology; feels kind of 'heavy'
Hello,I've been using the GKStateMachine in a bit of sample code to sort of take it out for a test drive. First off, I'm happy to say it does what it is meant to do: I'm able to establish states and move from one state to another and have the appropriate methods called at the right times.I'd like to mention the difficulties I have had in the process:1. The terminology of GKStateMachine seems confused when it comes to a state. Sometimes a state seems to be an instance and sometimes it seems to be a class. For example, in this property and the init method what is referred to as a state is an instance of GKState. var currentState: GKState? { get } init(states: [GKState])Whereas for these two methods, state refers to a class: func canEnterState(stateClass: AnyClass) -> Bool func enterState(stateClass: AnyClass) -> BoolOf course, the parameter name is an indication that a class is wanted, but when calling these, the parameter name is not specified (nor should it be).The confusion reaches its apex wi
3
0
1.9k
Jun ’15
Reply to Beta Test Philosophy
HyperNovaSoftware, By that same logic it's also a waste of time to test any code prior to GM because APIs can easily break during the subversion process. Unless Apple wishes to be completely transparent about their dev cycle, then we have no alternative but to try. And frankly I would rather be aware if progress is being made and from reading this forum, I do not appear to be the only one. If I may offer a suggestion, let's work on solutions instead of derailing discussion with philosophy and pontification.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
swift app in purchase help
I am using IAPS but every time i click on one it only comes up with add 3 rather than the correct amount. i am using swift 2 here is my code://///// import UIKitimport iAdimport StoreKitclass ViewController4: UIViewController, ADBannerViewDelegate, SKProductsRequestDelegate, SKPaymentTransactionObserver { @IBOutlet var s3: UIButton! @IBOutlet var s6: UIButton! @IBOutlet var s13: UIButton! @IBOutlet var s22: UIButton! @IBOutlet var s30: UIButton! @IBOutlet var s45: UIButton! @IBOutlet var s60: UIButton! @IBOutlet var s100: UIButton! @IBOutlet var rf: UIButton! @IBOutlet var ise: UIButton! @IBOutlet var info: UIButton! @IBOutlet var home: UIButton! @IBOutlet var banner: ADBannerView! @IBOutlet var restore: UIButton! override func viewDidLoad() { super.viewDidLoad() s3.layer.cornerRadius = 10 s6.layer.cornerRadius = 10 s13.layer.cornerRadius = 10 s22.layer.cornerRadius = 10 s30.layer.cornerRadius = 10 s45.layer.cornerRadius = 10 s60.layer.cornerRadius = 10 s100.layer.cornerRadius = 10 rf.layer.cornerRadius = 10
1
0
269
Jun ’15
Reply to High idle CPU usage
Well, judging by Bjango's twitter feed and a thread on MacRumors, quite a few people reported elevated CPU activity after the installing the first beta (they don't seem to have specified which processes it was due to though). There are also some subsequent reports that the 2nd beta you refer to (released a few hours afterward) fixed it. I had the first one installed but hadn't really set it up so I thoroughly uninstalled it and then installed the 2nd one, with which I've have had no problems so far.I'd suggest you first check Activity Monitor to see that there are no processes with iStat in the name running, and perhaps do a more thorough removal of any traces that the first install may have left behind.If that doesn't return the CPU usage back to normal, and you've already tried the usual resets and reboots, then it might be necessary to do a clean install of 10.11
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Why does passbook send two pass registration requests for the pass?
HiI develop web service for passbook. When I'm adding a pass to passbook then my iPhone sends the following requests:1. Register pass with DeviceID12. Get serial numbers3. Get passand again4. Register pass with DeviceID25. Get serial numbers6. Get passSo, two pass registration sequences for the same pass and the same iphone but with different device idsHere is the log:--------------------------------------------------------------Jun 20 20:59:53 iPH5 sharingd[25] <Notice>: 20:59:53.620 : Stopping Handoff advertisingJun 20 20:59:54 iPH5 passd[104] <Warning>: Verifying structure and signature for pass pass.com.passlight.dev.test/22284c8e-b70e-4713-b757-c151652fcce5Jun 20 20:59:54 iPH5 passd[104] <Warning>: Signature validation: succeededJun 20 20:59:55 iPH5 locationd[64] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0Jun 20 20:59:55 iPH5 passd[104] <Warning>: Generating POST request with URL <http://192.168.1.2/Pass.Processing.Web/v1/devices
0
0
633
Jun ’15
Should LazySequence be a protocol?
So I'm currently noodling around with the standard library, extending every protocol I can find, all that good stuff. Four structs caught my eye:LazySequenceLazyForwardCollectionLazyBidirectionalCollectionLazyRandomAccessCollectionThey're the sequences and collections that have lazy implementations of map() and filter(). To get them from eager/static sequences you just call lazy() on the sequence.So say I wanted to write a function that operates lazily on these sequences - something like scan()/accumulate(), or interpose(), or whatever. Something like:extension SequenceType { func scan<T>(initial: T, combine: (T, Generator.Element) -> T) -> LazyScanSeq<Self, T> { return LazyScanSeq(seq: self, combine: combine, initial: initial) } }I can have my own struct LazyScanSeq, like FilterCollectionView, etc. I can have it lazily evaluate its sequence. And it's available on all sequences, so it works fine. Unless I want to have an eager version, like this:extension SequenceType { func scan<T>(va
0
0
272
Jun ’15
Reply to Packet Tunnel Provider for custom VPN Protocol
I sent the permittion request on e-mail 4 days ago.Then I received an acknowledgement mail instantly.According to the acknowledgement mail, I should fill out the inquiry form and respond it.So, I did it.But, I receive acknowledgement mail again, and there has beenno response yet.Are other people the same states, too?Should I just wait for a reply?
Jun ’15