Giter Club home page Giter Club logo

imagenot's Introduction

imagenot

An image deletion utility.

It is suitable for rapidly going through a folder with a large number of images one by one and deleting as needed. The deleted images are collected in a trash folder specified at the command line.

Code

The code is written in 3 different languages: python, java and c. The functionality and interface provided by code in each of these languages is exactly the same.

I did this as an experiment to observe two things:

  1. How to interface with gtk in different languages.
  2. How long it'll take to develop the exact same program in each of the languages.

Conclusions:

  1. Interfacing with gtk is fairly straight forward in all the languages.
  2. As anybody can guess, the c program took most time. While java and python versions were programmed in apprx. 3-4 hours each, the c code took approximately double that time. The additional complexity was mostly due to the complicated memory management API for GObjects.

Build

Build all language versions:

make all

Build individual versions:

make build_java
make build_c

Install

Install default version (c):

make install

Install individual language versions:

make install_py
make install_java
make install_c

Usage

Launch the application with command line arguments: source dir path, trash dir path

e.g. > imagenot . ./trash

Once the window shows, use left and right arrow keys to move back and forth through the images. Press "d" to delete the current image.

Dependencies

  • Python

    package: python-gi

  • Java

    package: libjava-gnome-java

  • C

    package: libgtk

imagenot's People

Contributors

amol9 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.