Search results for

“column”

2,085 results found

Post

Replies

Boosts

Views

Activity

Reply to I need the Python code for connecting to my Apple appstore sales reports
DEĞERLİ: tommygod size vereceğim kodu kullanabilirsiniz if response.status_code == 200: try: # Yanıtın içeriğini gziple çözme buffer = io.BytesIO(response.content) with gzip.GzipFile(fileobj=buffer) as f: content = f.read().decode('utf-8') # İçeriği DataFrame'e dönüştürme data = [line.split('t') for line in content.split('n') if line] df = pd.DataFrame(data[1:], columns=data[0]) return df except Exception as e: return pd.DataFrame(columns=['Error'], data=[f'İşlem başarısız oldu. Hata: {e}']) else: return pd.DataFrame(columns=['Error'], data=[f'Beklenmeyen durum kodu alındı {response.status_code}: {response.text}']) apple turkiye gelişdirici fırat averbek saygılarımla
Aug ’23
Reply to Sample code for MPSMatrixDecompositionCholesky?
I would check the value of rowBytes(fromColumns:dataType). You're currently assuming it is columns*sizeof(float) but the docs for MPSMatrixDescriptor say: For performance considerations, the optimal row stride may not necessarily be equal to the number of columns in the matrix. The rowBytes(fromColumns:dataType:) method may be used to help you determine this value.If this row stride is different between the different GPUs you've tried, that would explain the error.
Topic: Graphics & Games SubTopic: General Tags:
Mar ’18
Reply to Crashing when going from Compact to Two Over Secondary in UISplitViewController on iPadOS 17
This is something I've been struggling with for some time. The hierarchy of my app makes this harder to diagnose. But like you, it was working fine for years. In my case, this app supported three column-layouts prior to the release of column-based split views. In order to do so, we have a concept of a NestedSplitViewController -- which is a UIViewController that owns a UISplitView. We're running into the same issue with Xcode 15 – and can't seem to pin it down.
Topic: UI Frameworks SubTopic: UIKit Tags:
Feb ’24
Reply to Make method less repetative
I'm sorry, maybe I'm being totally dense, but what Wallace wrote would be no different than if I had just done this and not returned a new function:func theMethodToCallOverAndOver(column: Int, row: Int) -> (column: Int, row: Int) { let newCol = -2 * column switch column { case 0: return (newCol, row / 2) case 1 where numberOfPlayers == 8: return (newCol, row ^ 1) case 1 where numberOfPlayers == 16: return (newCol, 3 - row) case 1 where numberOfPlayers == 32: return (newCol, (row + 4) % 8) case 2 where numberOfPlayers == 16: return (newCol, row ^ 1) case 2 where numberOfPlayers == 32: return (newCol, row) case 3: return (newCol, row ^ 1) default: return (newCol, 0) } }That means every time I call the method, I'm checking the value of numberOfPlayers.
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’15
Reply to Generate Provisioning Profile that includes MusicKit Entitlements
MusicKit isn’t gated by an entitlement. That’s why, when you enable it on an App ID, you enable it in the App Services column rather than the Capabilities column. Enabling it there grants that App ID access to that service without needing your app to be signed with any entitlement. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
May ’25
how do I remove the columns showing in the below pic if no data is available.
this below is the view which doesn't remove the columns after I click the delete button and it shows the data even after it is removed from the firestore unless relaunched the app. import SwiftUI import Firebase struct user:Identifiable{ @State var id:String= @State var productnm:String= @State var quan:String= } class mainviewmodel:ObservableObject{ @Published var use = [user]() init(){ fetchCurrentUser() } func fetchCurrentUser(){ guard let uid = Firebase.Auth.auth().currentUser?.uid else { return } FirebaseManager.shared.firestore.collection(users).document(uid).collection(product).getDocuments{snapshot,error in if error==nil{ //no errors if let snapshot = snapshot{ //update the user property in the main thread DispatchQueue.main.async { // //get all the documents and create user self.use=snapshot.documents.map{ d in //map will iterate over array and perform code on each item //create an new user for each document returned return user(id: d.documentID,productnm: d[product name] as? String ?? , qua
1
0
739
Mar ’22
How to display Data in 2 columns in Table dynamically
Hi I want to display below Data in table Dynamically. No of records can vary.Title DescTitle DescTitle Desc{ error = 0; message = Ok; result = ( { id = 81; desc = <p>Traveler can select any date of travel before 60 days . He can pay remaining payment as per the payment plan mentioned above. </p> n; title = Payment Policy; }, { id = 76; desc = <p> </p> n n<p>6000</p> n; title = Advance; }, { id = 68; desc = <p>25% of Tour Cost (including booking amount)</p> n; title = On confirmation of Price quote; }, { id = 79; desc = <p>70% of Tour Cost</p> n; title = “30 Days Before Departure; }, { id = 77; desc = <p>Total Cost</p> n; title = 10 Days before Departure; } ); }Thanks
3
0
2.6k
Jul ’17
WeatherKit REST API new columns for CurrentWeather
My pipeline broke today as new fields were added for the current weather dataset: cloudCoverLowAltPct cloudCoverMidAltPct cloudCoverHighAltPct I presumed new fields would only be released in a new version of the API? Is there any way to use a specific version of the API that will not be subject to change? The current weather REST API docs are here, which don't include these fields: https://developer.apple.com/documentation/weatherkitrestapi/currentweather/currentweatherdata
6
0
1.4k
Jan ’23
Reply to ARKit - Get User's Position
Hi to get the uers location you use the frame.camera.transform this is basically a world matrix representing the camera. It will either be the last column or last row in the matrix (I cant remember the matrix order used by these systems). It will give you values like x,y,z,1 when you take the last column (or row). Just ignore the 1.Anyway, that should give you enough to work it out.
Topic: Spatial Computing SubTopic: ARKit Tags:
Jun ’17
Reply to Undefined symbols error when trying to use NSToolbarPrimarySidebarTrackingSeparatorItemIdentifier & NSToolbarSupplementarySidebarTrackingSeparatorItemIdentifier
Yep, beta 4 seems to fix these. Now getting some weirdness when using the toggleSidebar item in that the window title appears in the primary column rather than the supplementary column, and the toggleSidebar item moves to the far right within the overflow item. This must be a bug, toggling the toolbar into icon + label mode and back to icon only mode seems to fix it temporarily.
Topic: App & System Services SubTopic: General Tags:
Aug ’20
Reply to Question About Swift
Here's what I ended up with, it works now...import Cocoa protocol TabularDataSource { var numberOfRows: Int { get } var numberOfColumns: Int { get } func label(forColumn column: Int) -> String func itemFor(row: Int, column: Int) -> String } func computeWidths(for dataSource: TabularDataSource) -> [Int] { var columnWidths = [Int]() for j in 0 ..< dataSource.numberOfColumns { let columnLabel = dataSource.label(forColumn: j) columnWidths.append(columnLabel.count) for i in 0 ..< dataSource.numberOfRows { let item = dataSource.itemFor(row: i, column: j) if columnWidths[j] < item.count { columnWidths[j] = item.count } } } return columnWidths } func printTable(_ dataSource: TabularDataSource & CustomStringConvertible) { print(Table: (dataSource.description)) var firstRow = | var columnWidths = computeWidths(for: dataSource) for i in 0 ..< dataSource.numberOfColumns { let columnLabel = dataSource.label(forColumn: i) let paddingNeeded = columnWidths[i] - columnLabel.
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’18
Reply to I need the Python code for connecting to my Apple appstore sales reports
DEĞERLİ: tommygod size vereceğim kodu kullanabilirsiniz if response.status_code == 200: try: # Yanıtın içeriğini gziple çözme buffer = io.BytesIO(response.content) with gzip.GzipFile(fileobj=buffer) as f: content = f.read().decode('utf-8') # İçeriği DataFrame'e dönüştürme data = [line.split('t') for line in content.split('n') if line] df = pd.DataFrame(data[1:], columns=data[0]) return df except Exception as e: return pd.DataFrame(columns=['Error'], data=[f'İşlem başarısız oldu. Hata: {e}']) else: return pd.DataFrame(columns=['Error'], data=[f'Beklenmeyen durum kodu alındı {response.status_code}: {response.text}']) apple turkiye gelişdirici fırat averbek saygılarımla
Replies
Boosts
Views
Activity
Aug ’23
Reply to Sample code for MPSMatrixDecompositionCholesky?
I would check the value of rowBytes(fromColumns:dataType). You're currently assuming it is columns*sizeof(float) but the docs for MPSMatrixDescriptor say: For performance considerations, the optimal row stride may not necessarily be equal to the number of columns in the matrix. The rowBytes(fromColumns:dataType:) method may be used to help you determine this value.If this row stride is different between the different GPUs you've tried, that would explain the error.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’18
Reply to Crashing when going from Compact to Two Over Secondary in UISplitViewController on iPadOS 17
This is something I've been struggling with for some time. The hierarchy of my app makes this harder to diagnose. But like you, it was working fine for years. In my case, this app supported three column-layouts prior to the release of column-based split views. In order to do so, we have a concept of a NestedSplitViewController -- which is a UIViewController that owns a UISplitView. We're running into the same issue with Xcode 15 – and can't seem to pin it down.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to split view customization ; need help
and... Autoalyout is incapable of fulfilling the need.no need to bother with a SplitViewController, if Autolayout cannot address the columns in a tableView.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Sep ’15
Reply to LazyVGrid rows no longer filling available height in Monterey
any update on this? and it looks like LazyV grid with multiple columns works if the grid item height is fixed.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’22
Reply to Make method less repetative
I'm sorry, maybe I'm being totally dense, but what Wallace wrote would be no different than if I had just done this and not returned a new function:func theMethodToCallOverAndOver(column: Int, row: Int) -> (column: Int, row: Int) { let newCol = -2 * column switch column { case 0: return (newCol, row / 2) case 1 where numberOfPlayers == 8: return (newCol, row ^ 1) case 1 where numberOfPlayers == 16: return (newCol, 3 - row) case 1 where numberOfPlayers == 32: return (newCol, (row + 4) % 8) case 2 where numberOfPlayers == 16: return (newCol, row ^ 1) case 2 where numberOfPlayers == 32: return (newCol, row) case 3: return (newCol, row ^ 1) default: return (newCol, 0) } }That means every time I call the method, I'm checking the value of numberOfPlayers.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’15
Reply to Generate Provisioning Profile that includes MusicKit Entitlements
MusicKit isn’t gated by an entitlement. That’s why, when you enable it on an App ID, you enable it in the App Services column rather than the Capabilities column. Enabling it there grants that App ID access to that service without needing your app to be signed with any entitlement. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
May ’25
Reply to UISwitch in tvOS
How do you stack them in a column or do you mean using 2 segmented button and have 1 segment for each of them?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’15
how do I remove the columns showing in the below pic if no data is available.
this below is the view which doesn't remove the columns after I click the delete button and it shows the data even after it is removed from the firestore unless relaunched the app. import SwiftUI import Firebase struct user:Identifiable{ @State var id:String= @State var productnm:String= @State var quan:String= } class mainviewmodel:ObservableObject{ @Published var use = [user]() init(){ fetchCurrentUser() } func fetchCurrentUser(){ guard let uid = Firebase.Auth.auth().currentUser?.uid else { return } FirebaseManager.shared.firestore.collection(users).document(uid).collection(product).getDocuments{snapshot,error in if error==nil{ //no errors if let snapshot = snapshot{ //update the user property in the main thread DispatchQueue.main.async { // //get all the documents and create user self.use=snapshot.documents.map{ d in //map will iterate over array and perform code on each item //create an new user for each document returned return user(id: d.documentID,productnm: d[product name] as? String ?? , qua
Replies
1
Boosts
0
Views
739
Activity
Mar ’22
How to display Data in 2 columns in Table dynamically
Hi I want to display below Data in table Dynamically. No of records can vary.Title DescTitle DescTitle Desc{ error = 0; message = Ok; result = ( { id = 81; desc = <p>Traveler can select any date of travel before 60 days . He can pay remaining payment as per the payment plan mentioned above. </p> n; title = Payment Policy; }, { id = 76; desc = <p> </p> n n<p>6000</p> n; title = Advance; }, { id = 68; desc = <p>25% of Tour Cost (including booking amount)</p> n; title = On confirmation of Price quote; }, { id = 79; desc = <p>70% of Tour Cost</p> n; title = “30 Days Before Departure; }, { id = 77; desc = <p>Total Cost</p> n; title = 10 Days before Departure; } ); }Thanks
Replies
3
Boosts
0
Views
2.6k
Activity
Jul ’17
WeatherKit REST API new columns for CurrentWeather
My pipeline broke today as new fields were added for the current weather dataset: cloudCoverLowAltPct cloudCoverMidAltPct cloudCoverHighAltPct I presumed new fields would only be released in a new version of the API? Is there any way to use a specific version of the API that will not be subject to change? The current weather REST API docs are here, which don't include these fields: https://developer.apple.com/documentation/weatherkitrestapi/currentweather/currentweatherdata
Replies
6
Boosts
0
Views
1.4k
Activity
Jan ’23
Reply to ARKit - Get User's Position
Hi to get the uers location you use the frame.camera.transform this is basically a world matrix representing the camera. It will either be the last column or last row in the matrix (I cant remember the matrix order used by these systems). It will give you values like x,y,z,1 when you take the last column (or row). Just ignore the 1.Anyway, that should give you enough to work it out.
Topic: Spatial Computing SubTopic: ARKit Tags:
Replies
Boosts
Views
Activity
Jun ’17
Reply to Undefined symbols error when trying to use NSToolbarPrimarySidebarTrackingSeparatorItemIdentifier & NSToolbarSupplementarySidebarTrackingSeparatorItemIdentifier
Yep, beta 4 seems to fix these. Now getting some weirdness when using the toggleSidebar item in that the window title appears in the primary column rather than the supplementary column, and the toggleSidebar item moves to the far right within the overflow item. This must be a bug, toggling the toolbar into icon + label mode and back to icon only mode seems to fix it temporarily.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’20
Reply to Question About Swift
Here's what I ended up with, it works now...import Cocoa protocol TabularDataSource { var numberOfRows: Int { get } var numberOfColumns: Int { get } func label(forColumn column: Int) -> String func itemFor(row: Int, column: Int) -> String } func computeWidths(for dataSource: TabularDataSource) -> [Int] { var columnWidths = [Int]() for j in 0 ..< dataSource.numberOfColumns { let columnLabel = dataSource.label(forColumn: j) columnWidths.append(columnLabel.count) for i in 0 ..< dataSource.numberOfRows { let item = dataSource.itemFor(row: i, column: j) if columnWidths[j] < item.count { columnWidths[j] = item.count } } } return columnWidths } func printTable(_ dataSource: TabularDataSource & CustomStringConvertible) { print(Table: (dataSource.description)) var firstRow = | var columnWidths = computeWidths(for: dataSource) for i in 0 ..< dataSource.numberOfColumns { let columnLabel = dataSource.label(forColumn: i) let paddingNeeded = columnWidths[i] - columnLabel.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’18
Reply to uistackview
Sorry the question is how to build the 2 column 23 rows by program, not with interface builder.
Replies
Boosts
Views
Activity
Oct ’15