Autore: UMNW

  • Requisiti pubblicazione app su Android store

    Requisiti pubblicazione app su Android store

    Di seguito una raccolta delle immagini e info necessarie a sottoporre un’app Android nell’Android store.

    Occorrono i seguenti testi

    1. Titolo (max 30 caratteri)
    2. Descrizione breve (max 80 caratteri)
    3. Descrizione completa (max 4000 caratteri)

    Occorrono le seguenti immagini tenendo conto delle indicazioni di Google a riguardo, che riporto di seguito:

    Predefinita: Italiano – it-IT
    JPEG o PNG a 24 bit (non alfa). Lunghezza minima di qualsiasi lato: 320 px. Lunghezza massima di qualsiasi lato: 3840 px.
    Sono richiesti almeno 2 screenshot totali. Massimo 8 screenshot per tipo. Trascina per riordinare o per cambiare tipo.

    Tenuta presente questa condizione, bisogna produrre:

    1. Icona ad alta risoluzione
      Predefinita: Italiano – it-IT
      512 x 512
      PNG a 32 bit (con alfa)
    2. Banner in primo piano
      Predefinita: Italiano – it-IT
      1024 l x 500 a
      JPG o PNG a 24 bit (non alfa)
    3. Immagine promozionale
      Predefinita: Italiano – it-IT
      180 l x 120 a
      JPG o PNG a 24 bit (non alfa)
    4. Banner TV
      Predefinita: Italiano – it-IT
      1280 l x 720 a
      JPG o PNG a 24 bit (non alfa)

    Semmai non lo sapessi con alfa si intende la trasparenza.

    Inoltre sono da fornire queste ulteriori informazioni, alcune delle quali obbligatorie:

    • Video promozionale
      Predefinita: Italiano – it-IT
      Video di YouTube
      Inserisci un URL
    • Tipo di applicazione (a scelta tra “applicazione” e “gioco”)
    • Categoria (a scelta in una lista)
    • Sito web
    • Email
    • Telefono
    • Link alla pagina relativa alla privacy

     

    Terrò aggiornato il post con le novità.

  • Esempio di file config.rb per sass scss

    Esempio di file config.rb per sass scss

    Un appunto per conservare il file config.rb, che dà istruzioni al preprocessore Sass di come compilare il css.

    #
    # This file is only needed for Compass/Sass integration. If you are not using
    # Compass, you may safely ignore or delete this file.
    #
    # If you'd like to learn more about Sass and Compass, see the sass/README.txt
    # file for more information.
    #
    
    
    # Change this to :production when ready to deploy the CSS to the live server.
    environment = :development
    #environment = :production
    
    # In development, we can turn on the FireSass-compatible debug_info.
    firesass = false
    #firesass = true
    
    
    # Location of the theme's resources.
    css_dir         = "css"
    sass_dir        = "sass"
    extensions_dir  = "sass-extensions"
    images_dir      = "images"
    javascripts_dir = "js"
    
    
    # Require any additional compass plugins installed on your system.
    #require 'ninesixty'
    #require 'zen-grids'
    
    # Assuming this theme is in sites/*/themes/THEMENAME, you can add the partials
    # included with a module by uncommenting and modifying one of the lines below:
    #add_import_path "../../../default/modules/FOO"
    #add_import_path "../../../all/modules/FOO"
    #add_import_path "../../../../modules/FOO"
    
    
    ##
    ## You probably don't need to edit anything below this.
    ##
    
    # You can select your preferred output style here (can be overridden via the command line):
    # output_style = :expanded or :nested or :compact or :compressed
    output_style = (environment == :development) ? :expanded : :compressed
    
    # To enable relative paths to assets via compass helper functions. Since Drupal
    # themes can be installed in multiple locations, we don't need to worry about
    # the absolute path to the theme from the server root.
    relative_assets = true
    
    # To disable debugging comments that display the original location of your selectors. Uncomment:
     line_comments = true
    
    # Pass options to sass. For development, we turn on the FireSass-compatible
    # debug_info if the firesass config variable above is true.
    sass_options = (environment == :development && firesass == true) ? {:debug_info => true} : {}
    

    Per maggiori informazioni su come funziona, casomai non fossero chiari i commenti in lingua inglese (le righe che cominciano con ‘#’ sono identificate come commenti dal compilatore che le ignora) presenti nel file, sono reperibili facilmente online. La documentazione ufficiale è un valido punto di inizio.

  • List directories with php and compare them

    Sometimes it’s important to quickly highlight differences between two folders structure.

    It could happen expecially when you are obliged to work on cheap environments, without console and you need to understand if there are differences among your local filesystem and the remote one.

    <?php
    
    $dir = __DIR__;
    $scan_result = scandir( $dir );
    foreach ( $scan_result as $key => $value ) {
      if (!in_array($value, array('.', '..'))) {
        if (is_dir($dir . DIRECTORY_SEPARATOR . $value)) {
          print $value."<br/>";
        }
      }
    }

    You can copy the script in each directory and naming it scandir.php, than reach it by browser at the url http://path-to-your-base-folder/scandir.php.

    In this way you have just executed the script, do it on each environment directory and occasionally compare them.

    To compare there are Notepad++, git diff, WinMerge and plenty of open source tools.

    Scandir is a php function, check it, I have wrote this code using an example I found there.