Category: macOS

  • md5 on macos

    Today, we are going to learn how to use md5 on our own terminal.

    First call the terminal:

    Then type md5:

    md5 debian-12.1.0-amd64-DVD-1.iso

    Now, finally md5sum:

  • FreeDOS with C #1

    Hello readers,

    Today, we will bring a tutorial about FreeDOS. With this series about FreeDOS, we will bring knowledge about DOS, installation, and configuration.

    About that, we must get VirtualBox, DOSBox, or dosemu for UNIX.

    For now, we will talk about VirtualBox.

    With these tutorials, we want to compare DOS and AppleDOS, one version from 1978 to 1993.

    We are going to use it for coding a macOS 11+ with VirtualBox.

    First, we should get a VirtualBox disk image or an Ova file. With this file, we can do much like bath, BASIC, or even C. In codermag by Gleentech we can discover a lot of techniques of batch against bash. Today, our main goal is batch.

    To start our history knowledge, Apple DOS has been coded for Apple 2e since 1983. Nowadays, DOS has been an evolution from MS-DOS and Dr-DOS, and our installment will be FreeDOS. To obtain or get the files and source code:

    https://freedos.org

    Today, we can get it on the link above. Today FreeDOS is a good operating system for embedded systems. With the following tutorials, we are going to learn more about batch, C, BASIC, and DOS. Learning more about its API.

    With FreeDOS we can work with older applications, with this kind of DOS, we can simulate older applications on our Apple Computers.

    By the way, we can get the source code to read, to learn how it works, and even to learn.

    These tutorials will show and teach how the folder schema works. With codermag by Gleentech we want to teach the readers to work with its source code for embedded.

    DOS schema from its folders it’s very good to learn for a new challenge on your embedded projects.

  • Freedos con C #1

    Hola lectores,

    Hoy, tendramos un tutorial sobre FreeDOS. Con este tutorial, tenemos conocimientos de DOS, instalación y configuración.

    Para eso, tenemos que obtener virtualbox y dosbox o dosemu. Entonces, nosotros hablaremos por ahora en virtualbox.

    Su instalación y desenrollo en tu macOS 11+ con virtualbox.

    Con estes tutoriales sobre DOS, con estos tutoriales queremos hacer una comparación con DOS y Apple DOS, más antiguo.

    Primero tenemos que obtener una virtualbox imagen. Con esa imagen podemos hacer mucha cosa como batch. En codermag podemos descubir tecnicas de batch como bash. Hoy es el foco en batch.

    Para empezar, el Apple DOS ha sido un DOS para el Apple 2e hasta 1983. Hoy en día, DOS ha sido una evolución de MS-DOS como Dr-DOS, su installment ahora es freeDOS. Todos podemos obtenerlo en:

    https://freedos.org

    Podemos hoy en día descargarlo de su sitio arriba. Hoy en día freeDOS es un buen sistema para embarcados. Con esta serie en castellano, podemos aprender mucho con sus tecnicas.

    Con freeDOS podemos trabajar con aplicaciones más antiguas como nuevas en nuestros Apple Computers.

    También podemos sacar su codigo fuente de su sitio, para leer y aprender.

    Con esta serie de tutoriales , tendramos una visión de su organizacíon de sus carpetas. Con codermag, queremos ensiñar sus lectores a trabajar con embarcados.

    Su estrutura de organización es muy buena para dibujar nuevos desafios para sus proyectos de embarcamiento.

  • XQuartz con cmake

    Hola Lectores,

    Hoy, Tenemos una build con gtk3+ y cmake en Big Sur ordenador.

    Primero:

    git clone https://github.com/ringsce/morpheus

    Entonces:

    cd morpheus && cd gtk

    Después:

    Ahora:

    mkdir build && cd build
    cmake ../
    make

    Por fin:

    open neon
  • XQuartz with cmake

    Hello readers,

    Today, we are going to learn how to build gtk3+ with cmake on a Big Sur machine.

    First:

    git clone https://github.com/ringsce/morpheus

    Then:

    cd morpheus && cd gtk

    After that:

    Now:

    mkdir build && cd build
    cmake ../
    make

    Then at last:

    open neon
  • GTK XQuartz with make

    Hello readers,

    Today, we bring with more tips, how to compile with make with your Apple.

    As we seen before, we have this command:

    gcc `pkg-config –cflags gtk+-3.0` -o example-0 mainwindow.cc `pkg-config –libs gtk+-3.0`

    https://gist.github.com/vic3t3chn0/313707f0372c6b89ac598181716060b4

    To start, we must create a file called Makefile, we have a gist above also:

    all:
    	world
    
    #clean:
    #	rm example-0
    # Para despues / for after for libs
    world:
    	rm example-0 && gcc `pkg-config --cflags gtk+-3.0` -o example-0 mainwindow.cc `pkg-config --libs gtk+-3.0`

    Now we have the same source code seen before about GTK.

    #include <gtk/gtk.h>
    
    static void
    activate (GtkApplication* app,
              gpointer        user_data)
    {
      GtkWidget *window;
    
      window = gtk_application_window_new (app);
      gtk_window_set_title (GTK_WINDOW (window), "Window");
      gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);
      gtk_widget_show_all (window);
    }
    
    int
    main (int    argc,
          char **argv)
    {
      GtkApplication *app;
      int status;
    
      app = gtk_application_new ("org.gtk.example", G_APPLICATION_FLAGS_NONE);
      g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
      status = g_application_run (G_APPLICATION (app), argc, argv);
      g_object_unref (app);
    
      return status;
    }
    

    Now, we have all to start coding gtk. We must call the terminal application to go to your source code directory.

    For us, we have on ~/Documents/Projects. Now you can see your files on the screen as we see ours.

    We must type make world:

    At last, execute your binary file on your screen terminal:

  • GTK para XQuartz con make

    Hola lectores,

    Hoy, tenemos una cosa más, como hacer compilación con make en tú Apple.

    Como ha visto antes, tenemos esto comando:

    gcc `pkg-config –cflags gtk+-3.0` -o example-0 mainwindow.cc `pkg-config –libs gtk+-3.0`

    https://gist.github.com/vic3t3chn0/313707f0372c6b89ac598181716060b4

    Para empezar, creamos un fichero con tu terminal llamado Makefile, tenemos también un gist:

    all:
    	world
    
    #clean:
    #	rm example-0
    # Para despues / for after for libs
    world:
    	rm example-0 && gcc `pkg-config --cflags gtk+-3.0` -o example-0 mainwindow.cc `pkg-config --libs gtk+-3.0`

    Ahora tenemos el mismo codigo fuente del aticulo de gtk con XQuartz.

    #include <gtk/gtk.h>
    
    static void
    activate (GtkApplication* app,
              gpointer        user_data)
    {
      GtkWidget *window;
    
      window = gtk_application_window_new (app);
      gtk_window_set_title (GTK_WINDOW (window), "Window");
      gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);
      gtk_widget_show_all (window);
    }
    
    int
    main (int    argc,
          char **argv)
    {
      GtkApplication *app;
      int status;
    
      app = gtk_application_new ("org.gtk.example", G_APPLICATION_FLAGS_NONE);
      g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
      status = g_application_run (G_APPLICATION (app), argc, argv);
      g_object_unref (app);
    
      return status;
    }
    

    Ahora, tenemos todo listo para empezar. Ahora tenemos que llamar el terminal y ir para su directorio donde están el codigo fuente.

    Para nosotros tenemos en ~/Documents/Projects. Ahora podemos ver en la pantalla tú directorio

    Ahora tenemos que escribir make world:

    Por fin, correr tú executable en la pantalla:

  • gtk con XQuartz

    Hola Electores,

    Otra vez con mas un tutorial sobre macOS, hoy tenemos como trabajar con gtk en Big Sur.

    Para compilación:

    gcc `pkg-config –cflags gtk+-3.0` -o example-0 mainwindow.cc `pkg-config –libs gtk+-3.0`

    Pero primer, abrir mí gtk gist:

    https://gist.github.com/vic3t3chn0/2e082126a7f89330f04cf2b10ba6e8c2

    Pero, podemos testear con esto:

    #include <gtk/gtk.h>
    
    static void
    activate (GtkApplication* app,
              gpointer        user_data)
    {
      GtkWidget *window;
    
      window = gtk_application_window_new (app);
      gtk_window_set_title (GTK_WINDOW (window), "Window");
      gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);
      gtk_widget_show_all (window);
    }
    
    int
    main (int    argc,
          char **argv)
    {
      GtkApplication *app;
      int status;
    
      app = gtk_application_new ("org.gtk.example", G_APPLICATION_FLAGS_NONE);
      g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
      status = g_application_run (G_APPLICATION (app), argc, argv);
      g_object_unref (app);
    
      return status;
    }
    
    

    Por fin:

     gcc `pkg-config --cflags gtk+-3.0` -o example-0 mainwindow.cc `pkg-config --libs gtk+-3.0`
  • gtk with XQuartz

    Hello readers,

    We are going to learn how to compile gtk3 for XQuartz on big sur.

    To compile use this:

    gcc `pkg-config –cflags gtk+-3.0` -o example-0 mainwindow.cc `pkg-config –libs gtk+-3.0`

    But first, open my gtk gist:

    https://gist.github.com/vic3t3chn0/2e082126a7f89330f04cf2b10ba6e8c2

    But you can test it like this:

    #include <gtk/gtk.h>
    
    static void
    activate (GtkApplication* app,
              gpointer        user_data)
    {
      GtkWidget *window;
    
      window = gtk_application_window_new (app);
      gtk_window_set_title (GTK_WINDOW (window), "Window");
      gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);
      gtk_widget_show_all (window);
    }
    
    int
    main (int    argc,
          char **argv)
    {
      GtkApplication *app;
      int status;
    
      app = gtk_application_new ("org.gtk.example", G_APPLICATION_FLAGS_NONE);
      g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
      status = g_application_run (G_APPLICATION (app), argc, argv);
      g_object_unref (app);
    
      return status;
    }
    
    

    in the end:

     gcc `pkg-config --cflags gtk+-3.0` -o example-0 mainwindow.cc `pkg-config --libs gtk+-3.0`
  • macOS with C++

    Hello Readers,

    Today, we are going to learn how to make a compilation for neon network for Big Sur. We here we use big sur for development.

    First, run iTerm2 or terminal application:

    You must have a directory and a cmake like this one:

    Next, on terminal do this:

    -> mkdir build && cd build

    -> cmake ../

    -> make

    After setting up all of this run make.

    Press “Enter” with command make

coder by Gleentech
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.