Posts by Alexandre Lara • 462 points
7 posts
-
2
votes2
answers430
viewsA: Swift 3 - How to instantiate a View Controller?
It will be basically 2 steps to be done in Storyboard: In his Main.storyboard, select the desired Viewcontroller and modify the class of the same to Notasviewcontroller. Modify the Storyboard ID…
-
1
votes1
answer409
viewsA: Swift 3/JSON - How to capture List of objects inside an object?
Instead of using NSArray try to use the native Swift types by using the NSArray compiler cannot infer that the array contains dictionaries within it. for item in resultado!{ let newDisc =…
-
0
votes1
answer51
viewsA: Load webView after clicking allow on SWIFT 3
If the user allows you to receive notifications, you will receive a callback in your Appdelegate, you must implement your code in the following method: func application(_ application: UIApplication,…
-
15
votes4
answers14202
viewsA: How are prime numbers important in cryptography?
The first thing you should keep in mind is that cryptography is an area extremely related to Number Theory. There is a concept in number theory called integer factorization, in which it states that…
cryptographyanswered Alexandre Lara 462 -
1
votes1
answer2951
viewsA: Sort a second column matrix
You can use the itemgetter module operator and greatly simplify your code: from operator import itemgetter matrix_ficheiro = [['Nome', 'Coordenada X', 'Coordenada Y', 'Peso'], ['Lisboa', 36.752,…
-
1
votes1
answer309
viewsA: Java: Filereader reading number not in the file
There are two things you need to keep in mind regarding the method readof the Bufferedreader class: It reads only one character in the file; The return of the method is an integer. Each character…
-
5
votes2
answers1595
viewsA: Youtube API V3 Information
I confess that I never worked with the Youtube API, so I decided to take a look at the documentation. Basically, Google prevents you from returning unnecessary data and divided the request process…