marți, 18 mai 2021

User Frustrations in 2021

 - Tiny scrollable panes

- Tiny click targets

- Unexpected content shifts

- Menu opening on hover

- Country selector on dropdown

- Generic error messages

- Unsupported back button

- Disabled "next" buttons


- Filters freezing UI on each input

- Tooltips that cover user input

- No text input option in sliders

- Draconian password requirements

- Inline validation kicking in early

- Birthday picker, starting 2021

- Scrolljacking and parallax

- Identifying buses/crosswalks (Captcha)

joi, 19 noiembrie 2020

User expectations in 2020 for web forms

 Right Timing for Input


01 - When's the right time for any given action?

02 - When's the right time to verify email?

03 - When's the right time to ask for a password?

04 - When's the right time to ask for location?

05 - When's the right time to ask for push notitifcation?

06 - When's the right time to move users into the funnel?

07 - What's the minimum needed to get started?


Common frustrations in 2020:

- tiny scroll-able panes

- tiny click targets

- select drop-down for country selector

- disabled "Continue" buttons

- auto-playing carousels/videos

- slow websites

- unsupported back button

- push notifications

- app install prompts

- promo ads


User expectations in 2020 for web forms:

- Proper keyboard tabbing (incl. focus)

- on-blur inline validation and error discovery

- support of "enter" to submit a form

- correct behaviour for auto-fill

- support for any formatting for phone number/coupon codes



User expectations in 2020 for navigation

– Mega-drop-down opening on tap/click

– Hamburger icon navigation being overloaded

– Carousels often ignored or scrolled over (except product pages)

– Search autocomplete

– Pop-ups closed instinctively

– Onboarding usually skipped

Source: Smashing Magazine

duminică, 23 februarie 2020

Recover deleted PHP files

# search for a pattern
grep -iar "<?php" | cut -d':' -f 1 > phpfiles.txt


#remove recursed
cat phpfiles.txt | grep -vP "php.*" > phpfiles.txt.filtered


# check if any remaining files to move
wc -l phpfiles.txt.filtered


# move found files
cat phpfiles.txt.filtered | xargs -i mv '{}' ./php/

marți, 21 ianuarie 2020

(sf-dump)

Symfony Var Dumper Documentation:

    https://symfony.com/doc/current/components/var_dumper.html

But you don't need Symfony framework to use var dumper. You can just install it with composer.

https://packagist.org/packages/symfony/var-dumper
/* CSS rules */
.sf-dump { display: none !important; }
.sf-dump-show { display: block !important; }
// JavaScript statements
$('.sf-dump').addClass('sf-dump-show'); // to show debug info
$('.sf-dump').removeClass('sf-dump-show'); // to hide debug info

vineri, 29 noiembrie 2019

vineri, 8 noiembrie 2019

What is Fake Agile?

According to the DoD, a fake Agile project is one where:


  • No one is talking with or observing the software users
  • There is no continuous feedback loop between the users and the teams
  • There is a strong emphasis on requirements
  • Stakeholders are autonomous
  • End users are not present in any of the development
  • And manual processes are tolerated

joi, 1 august 2019

Understanding and Debugging Composer loader

Composer is great, but when it comes to understanding or debugging it, things are not so clear.

Understanding Composer


First of all, you may noticed that there is a file vendor/autoload.php


// autoload.php generated by Composer

require_once __DIR__ . '/composer' . '/autoload_real.php';

return ComposerAutoloaderInit::getLoader();


This is fine, right? Ok, but what is autoload_real.php? Short answer: it is nothing but the file with the definition of ComposerAutoloaderInit class. Great, until now ...

miercuri, 23 ianuarie 2019

Apache Redirect Combo

This is a simple and a well known setup for Apache servers. But this still can be a challenge when having to do a quick setup with a combo between two redirects:

  • one redirect from port 80 to port 443 (from plain HTTP to HTTPS);
  • one redirect from https://www.yoursite.com to https://yoursite.com without sacrificing the HTTPS aspect;
So here is the snippet.


# Redirect http to https
RewriteCond %{SERVER_PORT} 80
RewriteRule (.*) https://yoursite.com/$1 [R=301,L]

# Redirect www to non-www/https
RewriteCond %{HTTP_HOST} ^www\.yoursite\.com
RewriteRule (.*) https://yoursite.com/$1 [R=301,L]

marți, 10 iulie 2018

Multiple SMS messages limits

When you want to send multiple SMS messages (to split a large SMS in smaller messages), it is important to known how many SMS texts will your message contain.

Max: 918 characters

  • Messages over 765 characters will be sent as 6 texts.
  • Messages over 612 characters will be sent as 5 texts.
  • Messages over 459 characters will be sent as 4 texts.
  • Messages over 306 characters will be sent as 3 texts.
  • Messages over 160 characters will be sent as 2 texts.

luni, 5 februarie 2018

TeamViewer Incoming Connections

Enable Two-Factor Authentication for your TeamViewer account.

Make sure you disable the following features for incoming connections:
  • Transfer Files: Denied
  • Establish a VPN connection: Denied 
  • Lock the local keyboard and mouse: Denied
  • Control the local TeamViewer: Denied
  • File transfer using the file box: Denied
  • Print on remote printer: Denied
Make sure Windows File Sharing and Printer Sharing are diabled on your network (or at least on that device).

Your Phone Virtual Keyboard spying on you

As you may know, your smartphone virtual keyboard is an application like any other application. This is vulnerability to your passwords, especially if it is a third party app. Make sure you can trust the source.

Measures to take:
  • Disable Backup & sync and make sure you removed all your backups from Goole Drive and other cloud backup services
  • Disable Cloud prediction
  • Click "Delete personalized dictionary backup" periodically or use "Incognito" option
  • Simply do not use third party keyboards, rely on the device default. Make sure you use an original ROM image.
  • Avoid typing passwords if the prediction field is active. If this happens it means that your application is not able to tell the keyboard app that you are going to type a password and this does not need to be indexed in the dictionary. You don't want to type the password and then automatically save it into the Cloud Backup & sync.

miercuri, 18 octombrie 2017

Weird new JavaScript syntax? It's called ES6

Weird new JavaScript syntax?

ECMAScript6 (or ES6 for short) is "a kind of JavaScript" that does not run in the old browsers. It is the modern version of the well-kown ECMAScript (commercially known as JavaScript) and it is heavy inspired from TypeScript.

https://engineering.carsguide.com.au/es5-vs-es6-syntax-6c8350fa6998


The first example is from Polymer Project: https://www.polymer-project.org/2.0/start/quick-tour

class CustomElement extends Polymer.Element {
    static get is() { return "custom-element"; }
    constructor() {
        super();
        this.textContent = "I'm a custom-element.";
      }
  }

Right, ES6 classes are available in Chrome 42+ (starting with 2015-04-14)
Documentation: https://googlechrome.github.io/samples/classes-es6/

The second example is from Ionic Framework: https://ionicframework.com/docs/components/#action-sheets

import { ActionSheetController } from 'ionic-angular'; export class MyPage { constructor(public actionSheetCtrl: ActionSheetController) { }
...

Imports and exports are part of ES6 Modules Final Proposal

Recommended book (online): Exploring ES6

miercuri, 2 august 2017

Progressive Web Apps Will Impact Your Mobile App Strategy

You may have heard of web apps, sites that offer the features of an app without requiring a download. See how they could be the future of mobile.

Read more on D-Zone

Have you been hacked, or been the victim of malware or ransomware?

Have you been hacked, or been the victim of malware or ransomware? Humans make the internet vibrant, but we’re also the weakest link — we’re predictable and often easily fooled. This episode of IRL focuses on our internet insecurity. Meet the unsung heroes fighting to keep us safe.

Read more on IRL podcast

vineri, 16 iunie 2017

Kohana Framekwork is for geeks, for nerds, for hackers

Today I found that Kohana Framework (the best fork of CodeIgniter for PHP5+ out there) has been declared deprecated from now on.
If you can just imagine that they declared Kohana defunct just because it is not using PHP7. So for some, everything that is not trendy or fashionable is considered dead. This is nothing but a speculative thinking.

I think Kohana deserves to continue its story and I am going to fork and maintain it.

Here is the new repository of Kohana Framework fork with Haxe interfaces called KoHaxe:
Enjoy!

https://github.com/barebonemvc/kohaxe .