Posts by jhpg • 198 points
5 posts
-
3
votes2
answers2527
viewsA: How to import Python libraries that are in another hierarchy?
To make him understand that the other files are modules, create a file __init__.py empty in each folder. If what you are running is in the root folder (before src and teste), the import look…
-
0
votes1
answer82
views -
0
votes2
answers263
viewsA: Save object to a Swift(IOS) session
If what you want is to retrieve the object in another view, use the NSUserDefaults is not the best way. Try passing it by setting the object in the next view by prepareForSegue. Example: override…
-
2
votes3
answers964
viewsA: How to change the title of the "back" button of the navigation bar
You will probably need to create an object UIBarButtonItem. Try this: Swift: let backButton = UIBarButtonItem(title: "< Back", style: UIBarButtonItemStyle.Plain, target: self, action: "goBack")…
-
3
votes3
answers2587
viewsA: What are the advantages of using Docker instead of Vagrant?
Docker uses the Linux container system, where there is an instance of the OS that shares the kernel with the machine’s OS, while Vagrant is a complete Virtual Machine. Making an analogy, Docker are…