https://pethero.team/

Purpose:

An incredible application designed to help those little furry animals that make our lives so happy.

(it’s Not just dogs and cats, but any domestic, farm or companion animal that might need help like horses, cows, donkeys).

This application is based on a search and location algorithm.

When a…


AI FOR GRANDMA

Artificial intelligence is the scientific field of computer science that focuses on the creation of programs and mechanisms that can show behaviors considered intelligent. In other words, AI is the concept according to which "machines think like human beings." Normally, an AI system is able to analyze…


Python3: Mutable, Immutable… everything is object!

Everything in Python is an object an a good advice for new persons is that you need to understand quickly that all objects in python can be either mutable or immutable.

In conclusion, mutable objects in Python include: list, dictionary, set, and byte array. Immutable objects include: int, float, complex…


In order to understand how this work in Python, first we need to improve our knowledge in the following concepts.

What’s a class attribute:

When we talk about a class attribute, it is a variable that belong to the class and is shared and accessible from all the objects of…


Dynamic library created from c functions

If you have to refresh your theory about static libraries, here is a link to my last post, so please check it out.

https://medium.com/@JuanOca/c-static-libraries-242866b21940?source=your_stories_page---------------------------

Why use Dynamic library: or shared library is a collection of functions compiled and stored in an executable with purpose of being linked by other programs…


Worst abuse of the C preprocessor (IOCCC winner, 1986)

The International Obfuscated C Code Contest (abbreviated IOCCC) is a computer programming contest for the most creatively obfuscated C code. Held annually in the years 1984–1996, 1998, 2000, 2001, 2004–2006, 2011–2015 and then in 2018, it is described as “celebrating [C’s] syntactical opaqueness”.The …


header file, with prototype functions that will be store in the library

What is a C static library:


In the C programming language. In order for computers to execute our C code, we have to compile the code using the Unix command: gcc

Three main steps happen when we compile code:
1. Reads the source file
2. Processes it
3. Links it with a runtime library

When we write the file main.c, the preprocessor generates some intermediate file, that file is given to the compiler. The role of the compiler is that it compiles files generated by the preprocessor as input, and that generates assembly code, so it can convert our C program file into the assembly language. Computers can only generate binary code, which is why assembly language is the format it needs to be in.


SIMBOLYC LINK

Is a actual link to the original file or in other words is a shortcut, we can create a simbolyc link in the command line typing (ln -s [Source File] [simbolic link file name])

  • Can cross the file system.
  • Link between directories.
  • has diferente permissions than the original.
  • Don’t have content, only the PATH to the original file.

HARD LINK

Is a mirror of the original file, entire opposite to the simbolyc, if you delete the original file,, the hard link can still have acces to the original file data, because its a mirror copy of the original.

  • Can’t cross the file system boundaries.
  • No directories can be linked.
  • Has the same permissions of the original.
  • Has the same content of the original file.

The (ls *.c) Command

I’m goin to explain the easiest way to understand what actually do the (ls *.c) command.

First we need to know that ls is already a linux command that list the files of a certain directory, usually, our working directory.

Second (*) the asterisk is used to match one or more ocurrencys of any character even not character.

Thrid, the (.c) its a file extension for C programming files.

When we use (ls *.c) in the command line, terminal is goin to display all the files who end in the .c extension.

Juan Ocampo

I only be in this road to learn and improve

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store