Search results for

column

2,048 results found

Post

Replies

Boosts

Views

Activity

What is the meaning of all nettop column names?
Im trying to troubleshoot some network issues and am running nettop to monitor live tcp traffic. My question is that I cannot find any documentation relating to the displayed column names. For example, what is rx ooo, or tx cwin? I can guess but would rather not assume anything. The man page is of no help and Googling has yet to return anything.Thanks in advance!
2
0
1.8k
Jan ’16
The playground project for the Swift tour no longer displays the output in their right column. This was working prior to upgrading to the lasted Xcode version...
Prior to updating to the latest Xcode version, I was able to use the Swift Tour playground project, which included showing output an variable values in the far right column. Now with Swift 2, this information no longer is displayed. Is there a setting or flag that needs attention?Thanks...
1
0
690
Jan ’16
moving picker data between classes
I have defined a swift file Pick.swift with a class Pick.I want this class to generate 3 arrays from core data. I then want to use these arrays to define a picker with 3 columns. Then I want to use this picker in a view controller.I have code that works to define the arrays from core data. But I have the following gaps in my skills.How do I call the functions in Pick when the app starts to generate the initial arrays?How to I access the arrays from a view controller for defining the picker ? I also have view controllers that can modify these arrays by adding and deleting items. How do I get this data back to the pick class to re run the functions so it can update the arrays for the view controllers to access?.
3
0
409
Jan ’16
Question on Arrays of data in Tableview
Could someone pleaes help explain a few questions. I have created an api that returns maybe at most150 - 200 records (just text data in columns, no images or anything like that). With that being said, what would be the best way to display the data.1 would it be ok to get the records from a call to the API and load all of them into an array, and then load a table.2. Would it be better to get all the records and load them into an array and then do some type of paging off the array when scrolling in the table. I think this is the best option, but would an IPhone's memory allow this. Would I need to keep track of pagenumber pagesize last loaded in the Table. 3. Would it be bettter to add paging to my api and then keep track of pagenum, pagesize in the ios app, and then keep making calls to the api when scrolling up or down? This would work, but it would mean constant calls to the api (where the full colleciton would need to be queried each time (for all the data in query) and then only the correct pagenu
4
0
331
Jan ’16
Reply to Rotation in 3D
I discovered the issue. It was in the shader, and I was multiplying in the wrong order (since matrix multiplication is not commutative).So this:out.pos = v * mvp_matrix;should be this:out.pos = mvp_matrix * v;That fixed it. For whatever reason I'm so used to dealing with row vectors as opposed to column vectors. And often times it's not clear what graphics libraries use. OpenGL uses column vectors, but DirectX uses row vectors. I don't recall reading in the Metal guide what it uses, so..
Topic: Graphics & Games SubTopic: General Tags:
Jan ’16
Reply to Interface Builder could not open the document ... because it does not exist
oh if anyone runs into this, i found a stackoverflow post that suggests to kill the ibtool daemon called ibtooldps -aef | grep ibtooldthen get the process number (2nd column of above output) and use kill -9 on it (not ordinary kill, that doesnt seem to work)it seems to workit seems like you have to do this every time after a regular xcode build in xcode 6.2or ibtool from command line can't find files in the current working directory
Jan ’16
Create array of arrays by two properties
I have a Match object which contains a 'row' property and a 'column' property. I then have a Set<Match> with a bunch of those entities. I want to get a matchesByColumnAndRow variable that's an array of arrays. So the first element would be an array, sorted by 'row', containing the smallest value for column (In this case 'column' property can have negative numbers, which is why I say smallest, vs. 0)I have this working via the following code, but I really don't like it. First it sorts into a flat array by column and then row, and then it creates the array of arrays. Technically it's not wrong, and I'm not so worried about performance, but I'm just wondering if there's a cleaner way to do this. private lazy var matchesByColumnAndRow: [[Match]] = { let sorted = self.matches.sort { switch ($0.0, $0.1) { case let (lhs, rhs) where lhs.column == rhs.column: return lhs.row < rhs.row case let (lhs, rhs): return lhs.column < rhs.column } } var byColumnAndRow: [[Match]] =
2
0
424
Jan ’16
Weird bug with Parse
I create a object parse like let objectParse = PFObject(className: Post)then i set value for each columns (1) objectParse[title] = titleOfPost (type String) (2) objectParse[category] = categogyOfPost (categogyOfPost is a item that i got in a array [String] )then (1) is fine(2) has a bug unable to read dataI try a lot of case but it not workedlike: (3) objectParse[category] = new category (not working) (4) objectParse[category] = new category as NSString (working) (5) objectParse[category] = categogyOfPost as NSString (not working)
2
0
225
Jan ’16
Reply to AppleGlot for Mac OS X 10.11
Please start a new thread for this question. You can start a new thread by:navigating to the topic area that’s most relevantclicking Start a discussion, which you’ll find in the right column near the topShare and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Jan ’16
Changing a text-fields preferred language
Hi, I'm completely new to Swift development, and fairly new to programming in general, so if my problem has any solution, please don't hesitate to give elaborate answers ^^To start off my programming in Swift I plan on making a small glossary-app that should help someone learning a new language practice words (set by user) in their new language. The way I want this to happen is to let the user submit words in both their native language and in the language they are trying to learn, so that each word can be shown as a question and then reveal the answer.In order for this to be efficient I want the user to choose two languages (based on their current enabled keyboards) when creating a glossary, and then create two columns of UITextFields that are each set to one of these two languages (think: left column English, right column Chinese). Is there any way to implement such a feature? To set the preferred language for a TextField?I've googled a bit, and I saw someone come up with an Object
0
0
250
Jan ’16
Reply to Create array of arrays by two properties
// Use this Group By collection extension from Alejandro Martinez' blog post GroupBy in Swift 2 extension CollectionType { public func groupBy(grouper: (Self.Generator.Element, Self.Generator.Element) -> Bool) -> [[Self.Generator.Element]] { var result : Array<Array<Self.Generator.Element>> = [] var previousItem : Self.Generator.Element? var group : [Self.Generator.Element] = [] for item in self { defer { previousItem = item } guard let previous = previousItem else { group.append(item) continue } if grouper(previous, item) { // item in the same group group.append(item) } else { // new group result.append(group) group = [] group.append(item) } } result.append(group) return result } } import Foundation struct Match : Equatable, Hashable, CustomStringConvertible { let id: NSUUID let row: Int let col: Int var hashValue: Int { return self.id.hashValue } init(row:Int, col: Int) { id = NSUUID() self.row = row self.col = col } var description: String { return id: (id.UUIDString), r: (row), c: (col)
Jan ’16
Reply to Create array of arrays by two properties
That's pretty similar to what I was already doing. I ended up finalizing on this, which will be easier to understand in the future. var prevColumn = sorted[0].column var startIndex = 0 var byColumnAndRow: [[Match]] = [] for (index, match) in sorted.enumerate() { guard prevColumn != match.column else { continue } let column = Array(sorted[startIndex ..< index]) byColumnAndRow.append(column) startIndex = index prevColumn = match.column } // The previous enumeration won't grab the very last column worth of matches because the // loop ends before the column changes again. byColumnAndRow.append(Array(sorted[startIndex ..< sorted.count]))
Feb ’16
What is "Performance tool data" reported by Allocations instrument?
Hiya,I'm having difficulty resolving the memory overhead of my iOS application. Specifically, the Activity Monitor Instrument reports that my app is using 158 MB Real Mem. Note that I am manually launching the app on device and viewing All Processes.When I run the app in the Allocations Instrument and take a VM snapshot it also reports the app is using 158 MB in the Dirty Size column of the VM Summary, so both tools seem to report consistent values.What I do not understand though is that there is 32 MB allocation for Performance tool data listed in the Allocations instrument, which best I can tell is not coming from my code.Which leads me to the following questions:1. What is Performance tool data? Is this a special block of memory allocated by the Allocations instrument which it uses for tracking allocations?2. I would think that my app would be using 32 MB less memory when just launching on the device, as it would not need to allocate additional memory for tracking allocations.3. When I run a simpl
2
0
2.0k
Feb ’16
Reply to Unable to install app on 9.2.1
If you plug the device in to your Mac and view the console output in Xcode while installing, what errors do you see? (In Xcode, Window > Devices, choose device on left column, look at the bottom part of the right column. You may need to click the upward pointing triangle in the bottom left corner of the right hand column to show the console output.)
Feb ’16
Can no longer upload hosted content
So last night I added screenshots etc to my app as it's nearly ready for review. I did need to make an update to an item that is hosted with apple so I changed the item, and archived the package but in application loader when I try to upload the updated purchase content I get a line of errors:ERROR ITMS-3000: Line 106 column 97: value of attribute display_target is invalid; must be equal to Mac, iOS-3.5-in, iOS-4-in, iOS-4.7-in, iOS-5.5-in, iOS-Apple-Watch or iOS-iPad at XPath /package/software/software_metadata/versions/version/locales/locale/software_screenshots/software_screenshot[17]They all are more or less that with a different line number. I have no idea what to do to fix this.
5
0
1.2k
Feb ’16