Tech
-
Salutame a’ sorrt
Quando avete una lista di numeri a occhio è facile ordinarli e sapere quale sia il piu’ grande oppure il piu’ piccolo nella sequenza. Lista 3 43 65 75 422 Tutto ciò è banale, 422 e 3 spiccano tra i 5 elementi. Ma se ogni singola occorrenza contenesse numeri piccoli e di lunghezza discreta? Lista 0.25984589485472 0.24582681284584 0.24852486248545 0.26475684556884 0.26486552785562 Quanto ci mettete ad ordinarli? Se fossero 100? Cosa potete utilizzare? Magari Excel ed attivare un ordinamento. Beh io sono piu’ pigro ed Excel non lo voglio utilizzare. Here comes a new idea: Sorrt (codice su Bitbucket , esempio su JsFiddle ) Il form permette: l’inserimento solo di numeri premendo Sort…
-
Resize Image on client side (Shrink Photo)
Scenario: your (web) application has to shrink an image before sending it to the server, in order to limit bandwidth and server storage Many suggestion and js library could be found, the best in my perspective is Image Load (it adds feature like Exif inspection, Jcrop support and scale, rotation). Everything was working like a charm, on the paper, on my mind… but then Edge was not sending the resized image Safari on iPad and iPhone was sending rotated images Firefox was not sending the image at all Every point of the above list was caused by something very annoying in the front-end development word. Sort of half-compliance to standard…
-
Negative space e stampa fotografica
Illusioni ottiche, loghi e composizione fotografica sono solo alcuni esempi di spazi negativi comuni. In particolare in graphic design i creativi sono quelli che ne fanno più uso per realizzare brand unici. Amazon, FedEx, Carrefour per citare qualche esempio. L’idea di veicolare un messaggio dentro un altro mi ha sempre fatto pensare a concetti come il watermark, la firma d’acqua, la steganografia, dove appunto messaggio è “nascosto”, o meglio non è percepibile immediatamente, dentro un altro usato come veicolo. I giapponesi hanno persino un kanji ad hoc per rappresentare questo concetto: ma Finito il preambolo necessario giungo a descrivere l’idea, o meglio la genialata che mi è venuta in mente mettendo…
-
Chambara the App (Alpha)
Chambara (ALPHA) su Google Play Store In honor of a great classic anime, Manga Mitokomon (in italian “L’invincibile Shogun“) Free (as free beer) No Spam Less than 10MB (sorry at the moment is the minimum I can afford)
-
Come fare un app (funzionante) per Android con Python e Kivy
Sottotitolo Seiryoku-Zenyo: ovvero massima resa, minor energia sprecata uno-dei-motivi-cui-so-tante-cose Dalla semplice volontà di creare una app che mostri una immagine e faccia sentire una canzone (IDEA moooolto banale). Ma poi vuoi realizzarla per Android (per il momento, anche perchè non saprei come testarla su un dispositivo IOS). E poi la vuoi realizzare in Python (con Kivy). E poi vuoi proprio una app, un apk e magari anche firmato. E poi scopri che per creare un apk con buildozer, Windows ti è inutile e ti serve obbligatoriamente una macchina virtuale, che trovi già pronta in rete ma solo a 64bit e quindi non la puoi usare. Allora ti crei una bella…
-
Nikon Picture Controls showcasing
Starting from NikonPC preview (one by one), I made a little script to automate: selection of a single picture control downloading the modified preview image Target is a gallery with ALL the previews in order to choose the preferred/best one for the photo. Two methods: one to update the preview, another one to force a file download. The Script How to launch: Open https://nikonpc.com/ Press F12 Inside JS Console Paste the above code input main(X), where X is an available Picture Control in the page. i.e. main(4) press Enter DownloadX.png modified file will be downloaded
-
Rename Visual Studio Window Title
When you have a lot of different solution to work on, on the same time: Visual Studio Extension: Customize Visual Studio Window Title Support for VS 2010 onwards Just open Tools –> Options –> Rename VS Window Title and set something like [parent:2]\[solutionName] (there are other optional settings)
-
Json Test Helpers
Create an HTML file containing this code and open it from the web browser: A Json sample:
-
Hide images from WhatsApp Web interface
Press F12 with the https://web.whatsapp.com/ page opened Go to the console command line Copy and paste the below code Press Enter Code: All the thumbnails will be removed and your privacy will be preserved!
-
Enable log in Mysql (for investigation)
SET global general_log = 1;SET global log_output = ‘file’; show variables;