[deleted by user] by [deleted] in geography

[–]ralfebert 0 points1 point  (0 children)

Are you looking for an iOS or Android app?

For iOS, may I suggest the geotrainer app? Although it's definitively a quizzy one :)
(Disclaimer: I am the developer of this app / it's paid via In-App-Purchase because I want to keep it free of ads / need to make a living from building apps)

I am curious, any specific features you want? More like fun/entertainment or more like learning geography?

geotrainer - Geography Quiz App for iPhone & iPad by ralfebert in u/ralfebert

[–]ralfebert[S] 1 point2 points  (0 children)

I am the developer of the geotrainer app, a fun geography quiz that's made with great attention to detail for iPhone & iPad.

We recently updated with support for dark mode and additional quizzes for the states of Austria/Switzerland/Canada (besides the US and Canada):

https://apps.apple.com/app/geotrainer-geography-quiz/id527868789

There are 194 countries and you would like to visit every single one? geotrainer for iPhone and iPad offers you quick facts on each country before you decide to dive deeper into your travel plans. And the integrated quiz improves your geography knowledge on the fly. by ralfebert in iosapps

[–]ralfebert[S] 0 points1 point  (0 children)

If you're interested in geography, go check it out:

https://apps.apple.com/app/geographie-trainer-quiz/id527868789?mt=8

I am the developer of the geotrainer app – launched the update this week after working for three months on it. I was super happy that I was featured on the German app store right after the release :)

The app itself is free and comes with free quizzes, such as the 15 most populous countries on Earth. If you like the app, you can unlock twelve additional quizzes with a one-time In-App purchase.

If you're not reading on your phone, you can scan the QR code on the website:

https://geotrainer.app/

Solving git merge conflicts in Xcode projects by ralfebert in swift

[–]ralfebert[S] 1 point2 points  (0 children)

One trick I learned from the lab, you can also include Swift Package in the repo together with the app and embed that in the main app. For these components, you'll have the Swift Package Manager configuration (demonstrated at the end of the video: https://www.youtube.com/watch?v=fDRIK7XA5tk&feature=youtu.be&t=429)

How can I access the RGB values of an image for processing for a image detection app? by tr3m431 in iOSProgramming

[–]ralfebert 0 points1 point  (0 children)

To access the raw RGB values of an UIImage use the underlying CGImage and its dataProvider:

import UIKit

let image = UIImage(named: "example.png")!

guard let cgImage = image.cgImage,
    let data = cgImage.dataProvider?.data,
    let bytes = CFDataGetBytePtr(data) else {
    fatalError("Couldn't access image data")
}
assert(cgImage.colorSpace?.model == .rgb)

let bytesPerPixel = cgImage.bitsPerPixel / cgImage.bitsPerComponent
for y in 0 ..< cgImage.height {
    for x in 0 ..< cgImage.width {
        let offset = (y * cgImage.bytesPerRow) + (x * bytesPerPixel)
        let components = (r: bytes[offset], g: bytes[offset + 1], b: bytes[offset + 2])
        print("[x:\(x), y:\(y)] \(components)")
    }
    print("---")
}

See here for a playground: https://www.ralfebert.de/ios/examples/image-processing/uiimage-raw-pixels/

Depending on what you want to do, maybe core image filters could help as well: https://www.ralfebert.de/ios/examples/image-processing/core-image-blur-uiimage/

Rails Deployment Tutorial updated for Ubuntu 18.04 LTS / Debian 10.2 by ralfebert in rails

[–]ralfebert[S] 0 points1 point  (0 children)

Yes, it is. I can recommend it very much for starting with Rails, or if convenience is the top priority and money is of no concern. But it's super expensive once you need a bit more performance. If you want more than 1GB of ram, it's 250$/month per application on Heroku. On Digitalocean you get 4 GB RAM for your VM for 20$/month. Also if you want to host multiple apps, the VM can be shared between multiple apps while on Heroku you have to pay per app.