cenotaph

cenotaph

Finger, a verification library to prove hommaannnnnness of a user

Finger achieves this by showing pictures of N hands holding up random fingers and asking users to verify how many fingers am I holding up, which is a task our machine friends suck at!

This is my first package for elixir, hex, some things are not quite right. Please be gentle :slight_smile:


This version has imagemagick dependency.

I have added a TODO to address asset loading from a package. I came across Joses post from 4 years ago on this forum so I followed that route. It is not as clean as I would like it to be though.

https://github.com/ykurtbas/elixir-finger/

If you want to see it in action you can always visit the registration page on my website.

Code and finger contributions are more than welcome :smiley:

First 10 of 27 Posts Switch mode

OvermindDL1

OvermindDL1

How do you handle different cultures counting their fingers differently? Like in the first image it could be read as 2025, or it could be read as 1001215, or a couple of other ways. Saying ‘count’ of fingers might be better, but still not helpful if english is not their native language.

EDIT: Fixed miscount, lol

cenotaph

cenotaph OP

Honestly, I did not account for variance in the counting of fingers.

Which cultures would count as 18 and how do they reach there? do closed fingers mean 10 or 5 to different cultures?

The library only provides the image and answer, the text and hints to require input are in your control so could use the appropriate instructions and wording for the culture and language.

Thank you for a great point regardless, I will do some research on it and update the assets to be more clear as necessary.

OvermindDL1

OvermindDL1

I’ve personally met people that count with fingers in base-2 starting with the thumb as 1, and people who count using their thumb placed on the parts of the fingers between the joints (starting with pinky near hand, so 3 per finger, 4 fingers, so they count to 12 on each hand), and I’ve seen other popular methods online as well.

cenotaph

cenotaph OP

From UI perspective:

  • I will definitely make the text to describe each opened, clear finger count as one
  • 0 is the special case of shape
  • Add an example of challenge and the answer in a question mark help text

Library:

  • maybe completely remove 0 from the library to prevent confusion
  • Add guards for generation between sane numbers
NobbZ

NobbZ

In the first picture there are 4144. Obviously.

Nothing is said about them need to be stretched or folded, so you see 4 fingers and one thumb on 3 of them, one finger and a thumb on one.

cenotaph

cenotaph OP

You guys are more literal than the robots :stuck_out_tongue:

joking aside addressing the clear instructions issue as we speak

NobbZ

NobbZ

We are developers.

It’s our job to recognize important edge cases before they hot production. :wink:

cenotaph

cenotaph OP

I am only joking, I appreciate the help!

with 0.1.4

  • the 0 edge case is gone
  • added actual integration tests to solidify the stitching part

Now time to update the elxsy and clear the instructions with help

eksperimental

eksperimental

eksperimental

eksperimental

If culturally it is too complex to make a solution that suits them all I am wondering if you could use pictures of random objects, like coins, pencils, forks, spoons, bottles, etc. for the same purpose. It may even be harder for AI engines to break.

Where Next?

Trending in Announcing Top

bluzky
You may know https://ui.shadcn.com/, a UI component library for React. I really love it’s design style and components. I’ve built some co...
387 14960 120
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
shahryarjb
The Chelekom project is a library of Phoenix and LiveView components generated via Mix tasks to fit developer needs seamlessly. One of i...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New

Other Trending Topics Top

type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
bjorng
We want to introduce a new native datatype to Erlang: native records. Although replacing all tuple records with native records is not our...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
alexslade
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog It says that Fly is going all-in on sprites, which is a worry ...
New

We're in Beta

About us Mission Statement