| Programming With C, C++, Java SE, Java EE ...

Skip to main content Home BadproG.com Programming with C, C++, Java SE, Java EE, Android, UNIX and GNU/Linux, PHP, MySQL, Symfony, Zend and much more!

Navigation

  • About

Main menu

Rust - Crate - Grcov demo

Submitted by Mi-K on Sunday, November 23, 2025 - 2:38pm

When your projects grow complex, ensuring that every single line of code is covered by your tests becomes critical.

But how do you verify such a thing efficiently?

Fortunately, the Rust ecosystem offers powerful crates for this purpose.

  • Read more about Rust - Crate - Grcov demo

Rust - Python binding - Setting up PyO3 crate with Maturin

Submitted by Mi-K on Sunday, November 2, 2025 - 4:13pm

When you want to make large computations, using Python may not be the best solution.

By building a Python module from Rust, we get the best of both worlds: Python productivity and Rust speed.

  • Read more about Rust - Python binding - Setting up PyO3 crate with Maturin

Rust - Exploration - Adding memory and performance mode to the Vec struct

Submitted by Mi-K on Sunday, September 14, 2025 - 9:54am

The original Rust Vec struct is already a fantastic growable array, easy to use.

But what about adding a mode enabling to choose between memory and performance?

Furthermore it's a good way to understand why capacity and len aren't the same thing.

  • Read more about Rust - Exploration - Adding memory and performance mode to the Vec struct

PostgreSQL - Setting up - Linux Ubuntu

Submitted by Mi-K on Saturday, January 7, 2023 - 2:22pm

PostgreSQL is one of the most known and used SQL server.

We’re going to see how to install it on a Linux opearting system, to be precise on Linux Ubuntu.

  • Read more about PostgreSQL - Setting up - Linux Ubuntu

C++ - NVIDIA CUDA - Using the compute_xy and sm_xy compile options to generate an executable

Submitted by Mi-K on Wednesday, June 22, 2022 - 10:10pm

To use an NVIDIA GPU (the graphic card processor) you need a CUDA driver.

And if you want to compile a program for a GPU you'll have to use the CUDA toolkit.

  • Read more about C++ - NVIDIA CUDA - Using the compute_xy and sm_xy compile options to generate an executable

C++ - Qt Framework - Mixing native OpenGL functions with Qt ones

Submitted by Mi-K on Friday, May 20, 2022 - 7:06pm

Having the Qt Framework as GUI for OpenGL can be helpful of course but sometimes it seems easier to use the native OpenGL functions directly.

This is exactly what we are going to see in this tutorial by mixing Qt and native OpenGL functions.

  • Read more about C++ - Qt Framework - Mixing native OpenGL functions with Qt ones

C++ - Qt Framework - Using QOpenGLWidget to display a shape with lighting and normal vectors

Submitted by Mi-K on Thursday, October 28, 2021 - 8:07pm

Lighting is certainly one of the most interesting effect that we can make with OpenGL.

Combined with colors and normal vectors, lighting becomes visually realistic.

  • Read more about C++ - Qt Framework - Using QOpenGLWidget to display a shape with lighting and normal vectors

C++ - OpenCV - Hello world

Submitted by Mi-K on Tuesday, October 12, 2021 - 8:01pm

In a previous tutorial we set up OpenCV with Visual Studio.

This time we are going to make our first Hello world OpenCV project.

Let's see that.

  • Read more about C++ - OpenCV - Hello world

C++ - OpenCV - Setting up with Visual Studio

Submitted by Mi-K on Sunday, October 10, 2021 - 6:53pm

OpenCV is an interesting library aimed to computer vision.

But before playing with it, it's necessary to set up your IDE.

This IDE will be Visual Studio for this tutorial.

So let's get started.

  • Read more about C++ - OpenCV - Setting up with Visual Studio
  • 2 comments

C++ - Qt Framework - Using QOpenGLWidget to display a window for moving shapes with keyboard and mouse

Submitted by Mi-K on Tuesday, April 6, 2021 - 8:42pm

In the past tutorials about Qt and OpenGL we saw how to deal with some basic tasks.

Let's see this time something a bit more advanced with the QOpenGLWidget class in order to display a scene from a window with a shape.

  • Read more about C++ - Qt Framework - Using QOpenGLWidget to display a window for moving shapes with keyboard and mouse

Pages

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • next ›
  • last »
Subscribe to BadproG.com RSS

Reveal your desire

Search

Make your choice

  • Android
    • API Framework
      • Activities w/ Intent
      • Activity
      • Activity life cycle
      • CharSequence
      • GridView
      • ListView
      • Method name
      • Spinner and colors
    • API Google Maps
      • T2 MapView
      • T5 MapType
      • T6 GMapsAPIv2
    • Android Studio
      • Unsign release apk
    • Application
      • T0 Hello World
      • T1 Google Maps
    • Error
      • ActivityManager
      • DeviceMonitor
    • Installation
      • 32-bit ADT
      • Windows
    • MediaPlayer
      • T4 Playing sounds
    • SQLite
      • T7 SQLite Basics
    • Tips'n Tricks
      • Hide/Show Notif
      • T3 Adding Buttons
  • Apache
    • Ant
      • Errors
      • Installation
    • Archiva
      • Installation
    • Continuum
      • Configuration
      • Installation
    • HTTP
      • Errors
      • Installation
    • Maven
      • Installation
      • What is Maven?
    • Tomcat
      • Installation
  • Assembly
    • GNU/Linux
      • Hello World!
    • objdump
      • -p command
  • C
    • Binary
      • Binary decimals
    • Bitwise operation
      • Bit shift decimal
    • Char manipulation
      • Alloc memory
      • Displaying a char
      • char into int
    • Eclipse
      • Installation of C
    • Errors / Warnings
      • After compiling
      • Handling errors
    • General Prog
      • Beep function
      • If statement
    • Keyword
      • extern
    • Lib functions
      • daemon()
      • free()
      • inet_ntoa()
      • srand() / rand()
      • strcmp()
    • Linked lists
      • Head and End
      • Simple example
    • Mathematics
      • Fraction simplifier
      • Luhn algorithm
      • Prime numbers
    • Pointers
      • Some examples
    • Recursion
      • Classical factorial
      • Displaying string
      • Finding a number
    • SDL
      • Errors
      • Hello World!
      • Moving shapes
      • Multicolored
    • TCP/IP
      • In/Out on socket
    • Tips'n Tricks
      • Clock w/ 6 numb
      • Degree of devices
    • Type
      • uint16 into uint8
      • uint[8,16,32,64]_t
    • Unary operators
      • sizeof()
  • C#
    • Visual Studio
      • Add ICO file
  • C++
    • Algorithm
      • for_each()
      • min max minmax
    • Boost
      • Building Numpy
      • DLL for Python
      • Setup Windows 10
      • from_data()
      • vector to ndarray
    • CMake
      • Setup Cygwin
    • Design pattern
      • Command
      • Decorator
      • Factory method
      • Mediator
      • Memento
      • Observer
      • Prototype
      • Proxy
      • Singleton
      • Strategy
    • Eclipse
      • Installation
    • Errors / Warnings
      • After compiling
      • static linkage
    • Google Test
      • Makefile CLI
      • Setup by hand
      • Setup for gtest lib
      • VS, gtest Adapter
    • Keyword
      • virtual
    • Makefile
      • Adding flags
    • NVIDIA CUDA
      • compute / sm
    • OpenCV
      • Hello world
      • Seting up VS
    • OpenGL
      • Equilateral shape
      • Hello World!
      • Installation
      • OR & << operators
      • OpenGL version
      • Set Visual Studio
      • glRotatef basics
      • glRotatef to anim
      • icon to exe file
    • Qt Framework
      • 1 array pos/color
      • Delegate CheckBox
      • Hello World
      • Jenkins and Qt
      • Lighting & normal
      • Native OpenGL/Qt
      • QAbs.ItemModel
      • QDataStream
      • QOpenGLWidget
      • Shape arrow keys
      • Texture index
      • VAO and VBO
    • STL
      • queue container
      • vector container
    • Standard library
      • move
      • pair container
    • Tips'n Tricks
      • Interface abstract
      • List of pairs
      • Stack & heap
      • std:string into int
    • Visual Studio IDE
      • Props
    • Windows
      • Creating a DLL
      • HelloWorld
  • Eclipse
    • Arduino
      • Installation
    • C/C++
      • Installation
    • CppUnit
      • Installation
    • Debugger
      • An easy example
    • Errors
      • While coding
    • Explorer
      • Hiding svn folder
    • Indigo
      • Install PHP
    • JUnit
      • Installation
    • Java
      • SRC attachment
    • Python
      • Installation
    • Qt
      • Installation
    • SDL
      • Installation
    • SWT
      • Installation
    • Subversion
      • SVN on Windows
    • Tips'n tricks
      • Adding flags GCC
      • Code Style
      • Getter and setter
      • Open Element
      • Open Type
  • Electronics
    • Atollic
      • Completion
    • Eagle
      • Schematics basics
    • IAR Systems
      • Download bin file
      • EWARM Install
      • Errors
      • IAR & STM32L
    • Keil
      • Creating a project
      • uVision4 errors
    • MSP430
      • Default software
      • Pins-LEDs-binary
      • Register bit shift
      • Registers & LEDs
      • Switch on a LED
      • Temp demo GUI
      • Timer 1 sec
    • Quartus II
      • Install ModelSim
      • Intro ModelSim
      • Qsys SoPC basics
      • Setting up CLI
      • Using CLI
      • Using ModelSim
    • STM32
      • ADC & potentio
      • LEDs, LCD, buzzer
      • Nucleo with IAR
      • Pins init & enable
      • PushButton LED
      • STM32F3 GPIO
      • User button & LCD
      • Windows' install
    • SystemVerilog
      • Numbers
    • VHDL
      • Hello World
    • Verilog
      • Blink LED GPIOs
      • Blinking a LED
      • Instantiate module
      • Struct. description
      • Turn off 7-seg
  • Java
    • JUnit
      • Hello World!
    • SE
      • Hello World
      • HelloWorld.jar
    • SWT
      • HelloWorld tuto
    • Tips'n Tricks
      • Printing patterns
      • Sorting & writing
      • Source attachment
    • Variable
      • Casting
      • Declaration
  • JavaScript
    • Closure
      • Three Examples
    • Node
      • childElemCount
      • childNodes
    • Tips'n Tricks
      • Parent to child
    • Window
      • alert()
  • MySQL
    • Commands
      • Pager
    • Installation
      • Windows
  • OCaml
    • Function
      • Creating functions
      • Using recursions
      • getter of tuples
    • List
      • Creating a list
      • Showing elements
    • OCaml - Utilities
      • rlwrap
    • Variable
      • Creating variables
  • Objective-C
    • Design pattern
      • Delegation
      • MVC
  • Oracle
    • GlassFish OSE
      • Installation
    • VirtualBox
      • Installation
      • Resolution guest
  • PHP 5
    • Installation
      • Windows
    • PEAR
      • Installation
    • array()
      • is_array()
  • Perl
    • Native functions
      • print()
    • Perl - OOP
      • Class & method
  • PhpMyAdmin
    • Installation
      • Windows
  • PostgreSQL
    • Setting up
      • Linux Ubuntu
  • Python 3
    • Data types
      • Dictionary
      • List
      • Set
      • Tuple
    • Eclipse
      • Installation
    • Function
      • Declaration
    • General prog
      • Get & set for C++
      • Statements
    • Installing
      • Eclipse and PyDev
      • On Windows 10
      • On Windows 7
    • PySide2
      • Setup & Designer
  • Ruby on Rails 3
    • Console options
      • Create a project
      • Display version
    • Server
      • Start the server
  • Rust
    • Crate
      • Grcov demo
    • Exploration
      • Vec Mem & perf
    • Python binding
      • PyO3 with Maturin
  • Security
    • Checksum
      • MD5
  • Symfony 1
    • Doctrine
      • Set up Database
    • Error
      • SQL / Doctrine
    • Helper
      • UrlHelper
    • MVC
      • Explanation
    • Routing
      • Easy basic one
      • URL dash hand
    • Security
      • Authentication
    • Set up
      • A new project
    • Test unit
      • Doctrine db
  • Symfony 2
    • Installation
      • Windows
  • UML
    • Diagram Class
      • Relationships
  • UNIX & GNU/Linux
    • Emacs
      • Auto-complete
      • Moon's phases
      • Number lines
    • Gentoo
      • Setting it up
    • Kernel
      • Compiling 1st time
    • LAMP
      • Installation
    • Raspberry Pi
      • Set up
    • SSH
      • Client and server
      • Pub & priv keys
    • System calls
      • accept()
      • bind()
      • execve()
      • fork()
      • fork() ≠ vfork()
      • getenv()
      • gettimeofday()
      • listen()
      • open()
      • opendir()
      • read()
      • readdir()
      • semget()
      • socket()
      • stat()
      • tgetent()
      • tgetflag()
      • tgetnum()
      • time()
      • wait()
    • Tips and tricks
      • G Chrome Ubuntu
      • Keyboard lang
      • More workspaces
      • Screen resolution
    • User commands
      • fs
      • grep
      • info
      • man
      • wc
    • awk
      • Average marks
      • FILENAME
      • Find a pattern
      • NR
      • Words in a file
      • getline from user
    • bash
      • .profile Git bash
      • Colour prompt PS1
    • gcc
      • -v command
      • Option -I
      • Option -L and -l
    • gdb
      • With Emacs
    • make
      • Makefile
    • tar
      • xvf command
    • tcsh
      • Country flags
      • source
  • Zend
    • Framework 1.11
      • Command line
      • New project
      • Zend_Controller

Check for news

Subscribe to Syndicate

© Badprog - I want to change the world. And I will.

Tag » Arduino Uint16_t To Uint8_t