Archivi categoria: Telefonia

Check if WiFi is ON or OFF on iOS with Swift

I could find lots of guides or sample codes about checking WiFi SSID or other informations, but none about WiFi power status, eg. know if WiFi is turned on or off.

This can be done and it’s pretty simple: when it’s on, the awdl0 interface is enabled, and it’s disabled when it’s off.

You can use this simple function to check that.

func isWiFiOn() -> Bool {
        var address : String?
        var ifaddr : UnsafeMutablePointer<ifaddrs> = nil
        if getifaddrs(&ifaddr) == 0 {
            var ptr = ifaddr
            while ptr != nil {
                defer { ptr = ptr.memory.ifa_next }
                let interface = ptr.memory
                let addrFamily = interface.ifa_addr.memory.sa_family
                if addrFamily == UInt8(AF_INET) || addrFamily == UInt8(AF_INET6) {
                    if let name = String.fromCString(interface.ifa_name) where name == "awdl0" {
                        if((Int32(interface.ifa_flags) & IFF_UP) == IFF_UP) {
                        else {
        return (false)


Root sullo smartphone a 2 euro di Altroconsumo

Root check sullo smartphone

Root check sullo smartphone

Altroconsumo ha offerto, ai nuovi abbonati, due numero della rivista ed uno smartphone Android al prezzo di 2€.

Lo smartphone Altroconsumo è un dispositivo discreto, non l’ho utilizzato a lungo ma ha prestazioni davvero sopra le mie aspettative!

Pur non avendolo ancora analizzato a fondo, sono riuscito ad ottenere il root dello smartphone per un accesso completo, per poter disinstallare le applicazioni di default e in generale poter fare tutto quello a cui siamo abituati.

Continua a leggere

How to sell on Amazon with no EAN 13 code


Have you ever tried selling on Amazon? If so, you probably know that it requires you to enter a valid EAN code. In many situations, you don’t have one.

I recently developed an Android and iOS application which is able to generate completely new EAN-13 complaint codes. You can use these codes on your Amazon SellerCentral to start selling your items!

My application is for sale at 1.99$, which is pretty low considering that it can generate as many codes as you want. Other similar services charge you a monthly fee or require you to pay for every generated EAN 13 code.

Here you can find links to download EAN 13 Code Generator on your smartphone.

playstore-badge   app-store-badge

Vendere su Amazon senza codice EAN 13


Chi ha mai provato a vendere su Amazon pur non essendo un venditore professionale (cosa, a loro dire, possibile), si è probabilmente scontrato con la richiesta di un codice EAN per il prodotto da vendere. In molti casi il prodotto non dispone di tale codice perchè è usato, non abbiamo la scatola o qualsiasi altro motivo.

Ho recentemente sviluppato un’applicazione per Android e iOS in grado di generare codici EAN validi, che è poi possibile inserire nell’apposito campo sul SellerCentral di Amazon.

L’applicazione è a pagamento, ma costa davvero poco e soprattutto si paga solo una volta: se hai trovato questa pagina probabilmente ti sei già imbattuto nei servizi che vendono abbonamenti o che chiedono di pagare per ogni codice EAN 13 generato.

Qui sotto ci sono i link per scaricare il generatore di codici EAN-13 sul tuo smartphone.

playstore-badge   app-store-badge

How to downgrade Apple Watch from WatchOS 2 Beta to WatchOS 1.0.1

Apple_WatchApple recently released a new beta version of their WatchOS operating system for Apple Watch, WatchOS 2.

This system has, of course, some issues. There’s a reason if it’s a beta, after all!

However, downgrading from WatchOS 2 Beta 1 to an earlier version of WatchOS is not really straightforward as it’s with iOS.

If you have a backup of your Apple Watch made with an earlier version of WatchOS, like 1 or 1.0.1, you can downgrade. Backups are automatically created when you unpair your Watch or before initializing it.

If you do, you can downgrade your Apple Watch following these instructions:

  • On your Watch, go to Settings > General > Reset > Erase all contents and settings
  • Let it restore for a while. If it seems stuck with a black screen and pressing keys does nothing, keep pressed power and the digital crown to force a reboot
  • Connect your Apple Watch to your iPhone (iOS 9 is required at this time)
  • Restore your backup that features WatchOS 1 or WatchOS 1.0.1
  • (Optional) Now you can also downgrade iOS 9 to the official version!

UPDATE: it seems like this method does not downgrade the Watch.

Translate your Pebble menu interface

Some Pebble translated menus

Some Pebble translated menus

If you own a Pebble, you know that its interface is in English.

If you prefer it to be in your main language, you can now localize it!

I made an iOS app which enables you to install different languages to your Pebble, it supports all hardware versions and it’s really easy to setup.

Pebble Translation enables you to localize your Pebble interface in French, German, Hebrew, Italian, Portuguese, Russian, Spanish, and more languages are coming with new releases.

Continua a leggere

Emoji support on notifications for Pebble and Pebble Steel

Pebble with EmojiWe all know that Pebble is really handy when using messages, WhatsApp and in general when comunicating with friends; it allows us to read the message without the need to take the phone, but it has one limit: it does not display emojis, the emoticons that are present on almost every phone (the ones you can find in WhatsApp, for example!).

Now, it does!

Continua a leggere