Search results for

smb big sur

11,740 results found

Post

Replies

Boosts

Views

Activity

iOS TCP Client: downloading big text file
Hello. I use my iOS application to download big text files from the server over TCP. This is the code I use:func openNetworkCommunication() { if(self.inputStream != nil && self.outputStream != nil) { closeNetworkCommunication() } let ipAddress = delegate?.ipAddressString as! CFStringRef let portNumber = delegate?.ipPort var readStream: Unmanaged<CFReadStream>? var writeStream: Unmanaged<CFWriteStream>? CFStreamCreatePairWithSocketToHost(nil, ipAddress, portNumber!, &readStream, &writeStream) self.inputStream = readStream!.takeRetainedValue() self.outputStream = writeStream!.takeRetainedValue() self.outputBuffer = delegate?.messageToServer.dataUsingEncoding(NSUTF8StringEncoding) as? NSMutableData self.inputStream?.delegate = self self.outputStream?.delegate = self self.inputStream?.scheduleInRunLoop(NSRunLoop.currentRunLoop(), forMode: NSDefaultRunLoopMode) self.outputStream?.scheduleInRunLoop(NSRunLoop.currentRunLoop(), forMode: NSDefaultRunLoopMode) self.inputStream?.open
9
0
2.9k
Sep ’15
Reply to Design decisions / goals / philosophy of Swift
Because mathematics in huge parts just plainly fails in describing reality.I'm sure Sir Isacc Newton would be very surprised to hear this.Actually, what mathematics is extremely good at is describing the relationships between things. Which is what declarative, e.g. functional, programming languages also do - allowing you to describe the relationships between your inputs and outputs, while leaving it up to the machine to figure out how/when/if/where to perform the actual calculations. What math is not so good at is describing relationships between state and time. Mind you, neither are your imperative programming languages - the fact that they can do it at all doesn't mean they actually do it well. Especially when non-determinism gets involved - i.e. anything other than a single-threaded single process that never interacts with shared resources - a naive conceit that is comically unrealistic in this modern ubiquitously networked world, but which a great many programmers seem to cling to anyway.If anything, impe
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’15
Reply to Music not syncing from iTunes
I have been fighting with this problem for weeks now.A big problem for me is that my itunes library is large and for some reason my iPhone crashes when it has tried to sync with iTunes, therefore interrupting the sync.The Apple move to streaming is a disaster. Even music that I have bought and bought a high capacity iPhone to store locally does not go on to the iPhone any longer and as a result I need to either download it via wifi or not have any music on my phone. My only fix was a complete restore and back up from iCloud that doesn't have music or photos. Then you have to try and find a way to get the music onto the phone without syncing via a wire.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
Reply to inter-module optimization?
The Swift Std Library is one thing: generic. There is nothing functional in it beside the functional based method in some types like map.Here is the take of a big functional programming fan on Swift: http://robnapier.net/swift-is-not-functional
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’15
Reply to iOS TCP Client: downloading big text file
1) I do not get the .EndEncountered event after the text has been loaded. I only get it when the server gets closed. This is printed after I have closed the server:…Until then, the connection remains open (no NSStreamEventEndEncountered).Hmmm, OK. I was under the impression that the server closes the connection after sending you all the data. Clearly that’s not the case.That makes things tricky because you have to decide when to close the connection. Is there something in the data that indicates an EOF? If not, you’ll have to use some heuristic (like a timer).Regardless, I don’t think this should impact on how you parse the data, as I’ll discuss below.2) The text is simple.Indeed, we’re talking ASCII level simple here. Which is good news because it eliminates (literally) a world of potential complexity.The text is a number of blocks of lines separated by a space.By a space? Or a blank line?From the example you posted it looks like a blank line. Presumably it’s reasonable to put a bound on the size of these bl
Sep ’15
Reply to SpriteKit ios9 beta 5 texture atlas
Using the XCode 7 GM and iOS9.0 GM:The big issue I am seeing is a huge performance degradation if you store your texture atlas in the asset catalog, something that is a new capability in XCode 7 (you used to have to store them simply as .atlas folders).[SKTextureAtlas atlasNamed fooName] and [fooAtlas textureNamed] are what I use to create my SKTextureAtlas and array of SKTexture. This is the part that is now much slower. A bit later, I preload the SKTexture atlas with [fooAtlas preloadWithCompletionHandler:..] but the preloading is not noticeably slower.[Edit] I am also seeing bogus node counts and bogus draw counts in iOS9.0 GM. I had submitted a bug for this but Apple did not fix it for the GM release...
Topic: Graphics & Games SubTopic: SpriteKit Tags:
Sep ’15
Reply to get current WiFi ssid
Looks like it works again in iOS 9 GMIndeed.I also want to draw your attention to the big arse comment at the top of <SystemConfiguration/CaptiveNetwork.h> in the iOS 9 SDK included with the Xcode 7.0 GM seed. To wit: IMPORTANT This API is deprecated starting in iOS 9. For captive network applications, this has been completely replaced by <NetworkExtension/NEHotspotHelper.h>. For other applications, there is no direct replacement. Please file a bug describing your use of this API so that we can consider your requirements as this situation evolves. If you do file a bug about this please send me, via email, your bug number. My email address is in my signature, below. For the next month or so I’m going to collect input on this issue.You should, of course, feel free to continue discussing the issue here on DevForums.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
MapKit missing
One of my apps connects to a flight simulator and displays the current position and flight path of the player's aircraft on a Mac or iOS device. I think my customers would love to view this on a big TV screen. From the list of supported frameworks, however, MapKit is missing. How can I petition adding it to the SDK? Do I need to file a bug report?
14
0
2.6k
Sep ’15