Coding


Pure Javascript snippet to find duplicate DOM ids

Sometimes is necessary to find out duplicate element ids in DOM.
There is a pure javascript snippet to copy paste in you browser console,
which will inform you the number of duplicates and will enumerate them.

/* Find duplicate DOM ids | (c) 2021 - Petros Kyladitis */
let uid = Array() ;
let did = Array() ;
let e = document.querySelectorAll('*[id]') ;
for(i=0; i<e.length; i++){
  if(!uid.includes(e[i].id)){
    uid.push(e[i].id) ;
  }else{
    did.push(e[i].id) ;
  }
}

let msg = "There are " + (did.length>0 ? did.length : "NO") + " duplicate ids in DOM\n" ;
for(j=0; j<did.length; j++){
  msg += "\n" + did[j] ;
}

console.log(msg) ;

Introducing Guietzli – The Guetzli graphical front-end

Guietzli is a MS Windows graphic front-end for the Google Guetzli JPEG Encoder.

Guetzli is an advanced JPEG encoder, with a complete new psycho-optical model, introduced by Google, claims better visual result with smaller file size. And it’s 100% compatible with the JPEG format.

Google provide a command line tool for the Guetzli encoder, although with this Windows front-end you can easily put files to an encode queue, select the output folder and the encoding quality.

This program is open source software, distributed under the terms of the GNU GPL 3.

For more info, updates and downloads see at the Project’s Home Page.


Afterzip becomes Open Source

Afterzip is a a desktop program (uses Java Swing for UI) usefull for split and merge files.

It was developed in 2003 and originaly distributed as Freeware.
Now, 14 years later, the binary files rebuilded, the program repacked and the source code is released under the terms and conditions of the GNU GPL 3.

You get full info and downloads for Afterzip, visiting the project’s Home Page at multipetros.gr/public-projects/desktop/afterzip/


Introducing Hashes Generator WebApp

Hashes Generator is a web (and mobile friendly) app, with retro inspired UI, to generate hahes of the most common nowadays hash algorithms (such as MD5, SHA1, SHA256, SHA512, RIPEMD-160) and encode/decode text with Base64 method.

The app runs from your web browser, just by visiting the url apps.multipetros.gr/hash/.

For more info and updates about the Hashes Generator WebApp, visit the project’s Home Page at multipetros.gr/public-projects/web-apps/hashes-generator/


Introducing VisualTree – a graphic version of the DOS tree command

VisualTree is a graphic version of the DOS tree command, wich allows the user to view a listing of files and folders in tree structure.

In VisualTree, you can choose to view folders only without the files and/or ASCII art for tree nodes. Also you can change font face, size, style, fore and background color. And of course you can save the tree structure to text file.

This program is open source software, distributed under the terms of the GNU GPL 3.

For more info, updates and downloads see at the Project’s Home Page.