Search results for

smb big sur

11,740 results found

Post

Replies

Boosts

Views

Activity

possible implementation of lastIndexOf ??
So I'm a big fan of the method indexOf() on CollectionType:extension CollectionType { func indexOf(@noescape predicate: (Self.Generator.Element) -> Bool) -> Self.Index? }It's really useful for finding the first item in a collection that satisfies the closure:let foo = 0...10 let firstItem = foo.indexOf { $0 > 5 }Sure it's O(n), but sometimes you don't care or that's acceptable behavior. Now I'd also really like to have a corresponding lastIndexOf method, which would return the last item in the collection that satisfies the closure. But this doesn't seem to fit well with CollectionType as it is, as I think SequenceType.Generator only goes forward. And I think maybe _Incrementable might be a part of this too? It appears to only index forward as well.Sure, I could always just do something this:let lastItem = (foo.count - 1) - foo.reverse.indexOf { $0 < 5 }But that seems like it would incur a performance penalty by reversing the array. What I really want is to actually iterate through the arr
4
0
425
Aug ’15
Reply to MTLInitializeInterpose
OK, found my mistake, I thought the OSX updater was bringing in Xcode Beta updates as part of the OSX Beta updates, which it's clearly not doing.Updating to the latest XCode BETA fixed the issue. I also had to reboot, but no big deal.Thank you for your help Seth.Cheers,Joe
Topic: Graphics & Games SubTopic: General Tags:
Aug ’15
EL Capitan Owner mess
Hello,SInce I use EL Capitan beta, I have to ask this here.Some applications (under /Applications), are greyed, and some I can open, I get this message:You do not have permission to open the application “BBEdit”.Contact your computer or network administrator for assistance.I know I can fix things as 'root' user, but I need an expert to tell me the correct commands to handle this.When I Get info for applications, some have ownership admin + everyone, with privilege 'No Access' .Some say 'Fetching...' , under the owner name.What should I do ?I think there should be a fix for the main root system, and another for my own admin user.I also included below the list of all my applications with ownership info. used command: ls -lHow can I fix all owner issues on my machine ?SincerelyDan------------------------------OS X EL Capitan10.11 Beta (15A243d)drwxrwxr-x 3 root admin 102 Jul 29 00:12 A Better Finder Rename 9.appdrwxrwxr-x@ 3 root admin 102 Jun 15 18:38 Acorn.appdrwxrwxr-x 3 root admin 102 Jul 9 23:08 Affinity Ph
3
0
1.8k
Aug ’15
El Capitan Public Beta 4 - Steinberg Cubase eLicenser not working
Hi.Those of us using Cubase have found that the eLicenser doesn't work on public beta 4.Using the eLicenser app, we can get one poll for licenses working, but subsequent polls fail.Cubase fails to run at all.Also, the iLok dongle (for third party plug-ins) is failing.I've tried disabling SIP via command-R, but it still fails.A feedback report has gone in, but is anyone else struggling with this one?The previous betas were actually a big improvement over Yosemite for some audio devices...
1
0
576
Aug ’15
is it possible to design a UI using webkit and to use SWIFT for an audiounit?
Hello,First of all, let me thank you for your attention.I'm aiming to develop a big audiounit instrument for Apple computers, and my first question is about GUI and interaction with SWIFT. I would like to know if there's no counter-argument to develop the GUI using webkit, and if webkit is able to pass javascript callings to swift methods.I've already done some research on this case in the past, and found that earlier webkit versions could call objective-c methods using javascript.I'm willing to make a good quality, scalable (interface based on em unit and script modifying the font size on the window resize event) and responsive GUI using html and javascript, since i found this languages really appropriate to do this.Do Apple allow using of webkit in the case of audiounit development?thank you very much.best regards,Fabien
0
0
130
Aug ’15
Reply to Different input gain level on iOS devices
I mean - what are numbers for if I don't get the chance to interpret them in some way. This property is even read- and WRITE-able. We are talking about the device INPUT gain level of a mic-pre-amplifier. The device doesn't have its own 'opinion' about what amount of pre-amplification it is applying to the input signal. It must have been set by someone. The question here is - why does Apple set them to different values? It is eventually a relative value between 0.0 and 1.0 which means between the MIN and MAX possible amplification rate. The min-value or at least the max-value is very likely to be the same for every ' SOFTWARE-input' on every device as we are on the same operating system on all Apple mobile devices. So we are limited by the bit-rate (as to volume) as we are limiting the frequence-range (with the sample-frequency). And even the bit-rate of the amplitude is just a relative value that rasterizes our max possible input-signal into finer grained volume-slices. The max-value of a 16bit sample does ha
Topic: Media Technologies SubTopic: Audio Tags:
Aug ’15
Reply to develop 1 project on 2 macs?
I have a similar setup and I have used three different methods to achieve this. Currently I use Atlassian Stash which works well, is reasonably easy to set up and is low cost if you are a single developer.Basically you need a git remote repository on a server that is accessible to both machines. You can use one of the machines as the server if you don't have a third machine. It makes sense to use the desktop machine you develop on the most for this. Say you are working on machine A which is also hosting your remote repository. When you commit changes to your local repository then you also push them to the remote repository (also on machine A). There are now two identical copies of the repository on machine A. Machine B just has a local copy of the older version of the repository. When you go to work on machine B you pull the changes from the remote repository before you start and this updates the local repository on machine B to be the same as the remote repository.Note that uncommited changes on one machine
Aug ’15
Reply to Question about the Storyboard and 'misplaced errors'.
Thanks for your reply!How do you add constraints on its size?I want it to scale proportional to its aspect ratio according to how big the device screen resolution is.I control dragged the edges to the margins I want it pinned to and it stays where I want it to on all devices. It's just primarily the sizing issue that has me stumped.I tried messing with the Content Hugging Priority but nothing was being affected.
Aug ’15
Feature request: Low-level atomics support
The biggest issue I have with Swift today is the lack of support for atomics. This is a particularly important issue because there's no workaround here, short of writing my code in Objective-C, but that can't interoperate with Swift value types or Swift generics (for the most part). The only partial workaround I have is the use of OSAtomic.h, for those cases where it actually provides the operation I need, but even that is risky because it's not actually guaranteed to be valid (because Swift operates on a writeback semantic model, there's no guarantee that e.g. calling OSAtomicCompareAndSwap32(value, newValue, &value) will actually behave as desired; Swift is free to make a local copy of the value, pass a pointer to that to the function, and then non-atomically write that back to the original location). And it often doesn't provide the operation I need anyway.Every single big Swift project I've done has run into this limitation. I usually end up working around it by giving up on the idea of atomi
18
0
2.7k
Aug ’15
XCUIElementQuery cells
I'm testing how many cells exists in collection view. I have following steps:1. Load collection view with 4 items and show them in small cell with smallCell reuse identifier2. Reload collection view with 2 items and show them in big cell with bigCell reuse identifier.After that XCUIApplication().collectionViews.count returns 6 elements (4 small cells and 2 big cells). Is this expected behavior? I would also like to know what elements are returned when calling XCUIElementQuery. Visible cells in collection view? I'm using Xcode 7 beta 5.
12
0
7.3k
Aug ’15
Reply to .playSoundFileNamed leads crash NSException
Creating a sample project, adding the lines you've shown above, run it. And I get the following waring message, not an app crash like you described.(I changed `var bouncesound = SKAction()` to `var bouncesound: SKAction!`, but this wouldn't affect.)2015-08-18 06:32:41.635 MyPlaySoundFileNamed[35716:4091711] SKAction: Error loading sound resource: bounce.mp3And after I added the downloaded free bounde.mp3 file to the project, the app plays the sound for every touch.So, this is just my guess, your bounce.mp3 may be too big or mal-formed.
Topic: Graphics & Games SubTopic: SpriteKit Tags:
Aug ’15
Reply to Can't export EC kSecAttrTokenIDSecureEnclave public key
Hi guys,I think I figured out how to intepret SecKeyRef data. It's mainly about endianess. Verified on iOS9 beta 4.To ease the explanation, I removed kSecAttrTokenIDSecureEnclave when generating the keys so that I can read the public key's data by using kSecReturnData : @YES in SecItemCopyMatching. Now we have the following data for analysis.In non Secure Enclave mode, the data I got on my device is:Generated public key: <SecKeyRef curve type: kSecECCurveSecp256r1, algorithm id: 3, key type: ECPublicKey, version: 3, block size: 256 bits, y: C327638AB594B9D13E6C25D9817888E8DA03E3B10F43479B088F793301BB040601, x: CBC9F4AE68D0A519FC3BB15A94F286FE9AC14DCCE75128F9ADD8DBF49FF13394C327638AB594B9D13E6C25D9817888E8DA03E3B10F43479B088F793301BB040601, addr: 0x146a6b90>Public key data retrieved: <04 9433f19ff4dbd8adf92851e7cc4dc19afe86f2945ab13bfc19a5d068aef4c9cb 0604bb0133798f089b47430fb1e303dae8887881d9256c3ed1b994b58a6327c3>The expected public data shoud begin with 1 byte of value 0x04, then following by tw
Topic: Privacy & Security SubTopic: General Tags:
Aug ’15