Search results for

smb big sur

11,737 results found

Post

Replies

Boosts

Views

Activity

Reply to OpenGL with Metal
I'll do it... but I don't have enough time for both today.OpenCL is a painfull experience with big kernels on Yosemite, and I really hope that Metal performs better...So, my first attempt will be to replace my OpenCL code, and to let the things that work in place.
Topic: Graphics & Games SubTopic: General Tags:
Jun ’15
Reply to Can't fetch JSON due to NSInvalidArgumentException
Looking at that code, I would suspect the data is nil error is coming from some other place, not from your NSURLSession completion block. If you are positive that's where the crash is, then if error is nil and data is nil, there must be an error HTTP response. Perhaps you're using the iOS 9 SDK and are getting tripped up by App Tranport Security. I do think you need to code more defensively there (check if data is nil, and check the HTTP response code).Anyway here's one big thing that won't work with that code: NSURLSession is an asynchronous API. The completion block has not yet been called (most likely the request hasn't even gone out) by the time you hit that code that's attempting to parse the result. It's like you asked your roommate to go to the store and get some beer and put it in the fridge, then immediately went to the fridge and tried to pour out a beer. It's just not there yet. You need to defer all that parsing stuff until after the result comes in (i.e. put it in a separate method and c
Jun ’15
Supporting the Enterprise with OS X Automation notes
Enterprises are made up of individual people.- When you're building solutions, keep in mind that you're building your tools for peoples' benefit.Workflow strategiesTake advantage of strengthsUse the right tool for the job you're working onIf all you have is a hammer, all your problems look like nails.In reality, only part of the problems you're trying to solve will be nails.Make your workflow modularDesign your workflows so that different modules are being connected together to do the job.Enable repurposing, adaptation and expansion.Code re-use is a good thing.Optimize your workflowProblems will always appear in a enterprise workflow. Anticipate the issues and optimize your automated solution's workflowsEliminate bottlenecksReduce repetitionRemove complexity / confusionDesign your workflows for your usersPeople will avoid complex solutions, they won't like using them if they're hard to understand or operate.People will use convenient solutions, all the time.Pursue inclusionSuccess uses AND (inclusion) conditi
0
0
2.6k
Jun ’15
Reply to New but excited
As LCS suggested, the stanford course in iTunesU is exceptional. The Winter 2015 course teaches swift and iOS 8, and is a good start on how to do iOS applications, but as LCS also pointed out, it assumes some basic programming knowledge.Do NOT start with any of the beta stuff - Swift 2.0 or XCode 7. You will have a nightmare of trying to figure out why your code won't compile using examples from a book, or online examples, etc. It is different. VERY different. Even for simple stuff. When you're ready, switching over to Swift 2.0 will not be hard, and by that time, most of the online resources will be updated to follow that work flow. There is NOTHING in Swift 2.0 or XCode 7 that you need in order to start programming in Swift. Ray Wenderlich's website - http://www.raywenderlich.com/ - is a really good site dedicated to how to do stuff within iOS. Again, assumes some level of programming knowledge.Aaron Hillegass's site - Big Nerd Ranch - https://www.bignerdranch.com/ - is also a great resource and ha
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Reply to slow cifs/smb acccess netapp filer fas6080
> slow cifs/smb acccess netapp filer fas6080Given that none of your code is involved here, you might have better luck asking your question over in the Apple Support Communities, run by AppleCare, where there's more expertise in issues like this.<https://discussions.apple.com/>Share and Enjoy--Quinn The Eskimo!Apple Developer Relations, Developer Technical Support, Core OS/Hardware
Jun ’15
dependency injection and protocols
I had a posting in the older forums about this issue. I never really found a solution. Maybe I can try posting again and see if anyone has some good advice.I am a big fan of TDD. One of the techniques I picked up was dependency-injection. Objective-C is a very laid-back language when it comes to type-checking. It is very easy for the compiler to let you swap a test-double class for a production class. I am having a problem in Swift that you might be able to help with.class ChildClass { } class ParentClass { func child() -> ChildClass { return ChildClass() } } protocol ChildProtocol { } extension ChildClass: ChildProtocol { } protocol ParentProtocol { func child() -> ChildProtocol } extension ParentClass: ParentProtocol { }This code is failing to build. Swift does not believe that ParentClass can conform to ParentProtocol. This is a contrived example. I will show you a real example where I would use this pattern in a real app.import Foundation protocol SessionTaskType { } extension NSURLSessionD
5
0
1.5k
Jun ’15
Reply to Swift 2: throwing errors in computed properties
This isn't really good news. Albeit, I could accept that throwing properties are not allowed in Objc classes and subclasses - but could be allowed for computed properties in pure Swift classes and structs.The other issues you mention could be just issues caused by feauters which are not-yet-implemented or caused by the early beta-state of the compiler - especially with respect to the error handling feature. Anyway, IMHO, having throwing computed properties would be a big plus in designing architectures which leverages exceptions. The fact that exceptions are difficult to implement by a compiler vendor - well, this is pretty old and true as well. Consider C++: this language couldn't be more complex, and the same people developing Swift solved it for C++ anyhow, too 😉
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Reply to Bitcode and Assembly?
Great info @bwilson. Thank you.> If you want to do that, search for the __LLVM segmentAhh, you're correct. When I searched for the __LLVM segment, I do see that the assembly's .o file contains an __LLVM segment.> Assembly source files should work in the sense that you can build and run your project. I did not mean to imply that we somehow de-compile the assembly source into bitcode.When it becomes a requirement to submit apps in bitcode format, how will this impact architecture specific code (ie. assembly, or anything that is ifdef'd for that matter). It makes sense that assembly isn't converted to bitcode, but doesn't everything need to be in bitcode in order for an archive to be fully encoded in bitcode? I have an app that's hitting a compile warning when archiving complaining that a specific 3rd party library doesn't contain bitcode so the app cannot be archived with bitcode. That 3rd party library won't emit bitcode ostensibly because it contains assembly (I could be wong about the cause, though).&g
Jun ’15
Reply to Returning members of an Enum with a given frequency
I am experimenting with generating believable characters/clues for a little mystery game (mostly as an exercise for learning Swift 2).I am a big fan of mysteries, and most games that have randomly generated mysteries have problems with making rare things too common, and also bad correlations (e.g. a 6'5 man with size 4 shoes). I would like my characters to have characteristics (e.g. eye color, blood type, etc...) that generally match real world numbers. It doesn't have to be perfect but the 2 main characteristics that I would like:Rare things should only show up rarely (and common ones commonly)Correlation between factors should be believableI am currently handling the second by having a fixed order in which the characteristics are chosen (Gender then Height, etc...), and altering the frequencies of later stages based on the earlier results. I am open to better solutions for that as well. I am also taking into account familial relations when generating relatives... but that is another topic.As an exa
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Strong Reference Cycle in Recursive Closures
It is a very common technique to create generic recursive closures in swift, like that demonstrated in WWDC2014 Advanced Swift Session.But somehow I find it is very possibile to create a Strong Reference Cycle with it.Here is the simple code. I used the foo function scope to simulate life cycle, beyond which all objects are supposed to dealloc.class Nested { func print() { println(Print Nested) } deinit { println(Nested dealloc) } } typealias ClosureType = Int -> Int func foo() { var myClosure : ClosureType = { value in value } func setClosure() { var date = Nested() myClosure = { input in date.print() return input <= 1 ? 1 : input + myClosure(input - 1) } } // do something setClosure() println(myClosure(5)) } // test it foo()the output didn't include the deinit stringI think it is because myClosure is capturing itself. It is not a very big memory leak until some extra objects are involved (like that Nested object which may contain very large amount of objects).The problem is when I no longer n
9
0
2.6k
Jun ’15
Reply to Outlook search no longer working - any ideas?
This issue appears to be even more serious than I thought. Not only don't the spotlight-based smart folders work, basic filters like unread don't work either, nor do simple searches with Find.Has anyone tried the current Outlook beta? Hadn't yet dared…Again this needs to be reported to MSoft, but they don't make it easy to find out where to do that.PS: If anyone can tell me how to show a handle instead of my full name on the dev forums I'd be grateful. No big deal, but prefer the former and don't see how.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Exhaustive catch inference
I’m not a compiler expert, but for statically dispatched functions/methods (and possibly dynamically dispatched internal methods), I imagine the compiler should be able to determine an unambiguous list of error types generated by all throw & try statements within the function body, and associate this as hidden type information. Similar to the explicit error type annotations that everyone seems to be foolishly requesting, but automatically generated by the compiler.There are a number of scenarios the compiler wouldn’t be able to infer (which is what I thought was meant by the compiler attempts to infer) such as public non-final object methods, function parameters on public functions/methods, and public protocols - in this case you would still require the `catch {}`I’m starting to think if this was ever part of the plan, the increased emphasis on protocols/protocol extensions killed it. There’s definitely a big gap left in terms of how possible error types get communicated to consumers.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Reply to First install impressions?
Installation slow, but no issues.General impression: Massively improved performance on a late 2013 MBA. Fans were spinning often on Yosemite before, now system is cool (literally). Also, it behaves a lot faster. So that's good and it really makes me not want to go back.Some observations in random order:Eliminated custom content from /usr, which broke LaTeX. Needed disabling rootless to restore.Java problems were avoided by switching to Java8 before.VirtualBox works w/o problems.Skim is broken. Which is a big one for all students probably :-(Magic Trackpad behaves weirdly (operational, except mouse cursor not moving) when connecting MBA to TB display. Using insomnia to not have it sleep when connecting solves it.TB connected audio device (through belkin hub) stopped working, after a reboot it was there againFefe's blog shows white boxes when pinch-zooming in SafariThe announced new tiling features are at odds with my being too stupid to make them work in any way.TotalSpaces 2 could be made work with a
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
NSData memory mapped WWDC session 212
I've found the session Optimizing Your App for Multitasking on iPad in iOS 9 really interesting.Thanks to a Carmack quote in 2011 I started to know about memory mapping in iOS, but I've never found a concrete example about how to achieve or where to apply that.The session comes whitout a sample code or playground file and is a pitty because I'd like to recreate a sort of a scenario to profile.Back into 2013 out of curiosity I wrote this answer on stack overflow about how to memory map big images, I never had a clear reply.Since the session talks about memory map sets of images whithout impact the RAM I'm not getting if I didn't understand some base concept or what I was doing wrong.I've test memory map with these simple lines of codes, but profililing with allocation I always saw the image allocated in RAM as dirty and crashes on real device due to the huge size of the image.NSError * __autoreleasing error = nil; NSData * mappedData = [NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResou
Topic: UI Frameworks SubTopic: AppKit Tags:
1
0
1.3k
Jun ’15