• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Archives for June 2021

How to make a LED flash with the Raspberry Pi

by admin

To flash a LED we will use the GPIO pins(general purpose input/output) to control the LED. We will control these GPIO pins using Python. The GPIO layout on the Raspberry Pi model B. We will be using GPIO 17 which is Pin 11. 1. Installing the library for python. $ sudo apt-get install python-dev python-rpi.gpio […]

Filed Under: Linux

How to burn an ISO to CD or DVD using Wodim

by admin

Wodim is a command line tool for burning ISO files to disks. wodim is used to record data or audio Compact Discs on an Orange Book CD-Recorder or to write DVD media on a DVD-Recorder. Step 1 Locate you CD/DVD writer. # wodim –devices Example output: # wodim –devices wodim: Overview of accessible drives (1 […]

Filed Under: Linux

Java Basics: Lambda Built-in Functional Interfaces

by admin

Built-in Functional Interfaces In Java 8, there are a lot of method signatures that refer to interfaces in java.util.function. Therefore, it is important to understand what these interfaces do and what variations on the basics exist. It makes writing lambda expressions a lot easier. The java.util.function Package Predicate: An expression that returns a boolean Consumer: […]

Filed Under: Java

Basic Java: Generics and Collections

by admin

Generics Generics provide flexible type safety to your code. They move many common errors from run time to compile-time and provide cleaner, easier-to-write code. Generics also reduce the need for casting with collections and are used heavily in the Java Collections API. Simple Cache Class Without Generic The two examples below show very simple caching […]

Filed Under: Java

Beginners Guide to Interfaces and Lambda Expressions

by admin

Java Interfaces In Java, an interface outlines a contract for a class. The contract outlined by an interface mandates the methods that must be implemented in a class. Classes implementing the contract must fulfill the entire contract or be declared abstract. Java interfaces are used to define abstract types. Interfaces: Are similar to abstract classes […]

Filed Under: Java

Java Basics: Abstract and Nested Classes

by admin

Modeling Business Problems with Classes Class Inheritance When designing an object-oriented solution, you should attempt to avoid code duplication. One technique to avoid duplication is to create library methods and classes. Libraries function as a central point to contain often reused code. Another technique to avoid code duplication is to use class inheritance. When there […]

Filed Under: Java

CentOS/RHEL: /tmp mount point not automatically mounting when added in /etc/fstab

by admin

Problem /tmp is not automatically mounted after reboot even though an entry is present in /etc/fstab. Below outputs show an example of the issue: # uptime 16:44:11 up 2 min, 1 user, load average: 0.21, 0.55, 0.44 # df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 252G 0 252G 0% /dev tmpfs 252G […]

Filed Under: CentOS/RHEL, CentOS/RHEL 7, CentOS/RHEL 8, Linux

Java Basics: Overriding Methods, Polymorphism, and Static Classes

by admin

Using Access Control The table below illustrates access to a field or method marked with the access modifier in the left column. Modifier (keyword) Same Class Same Package Subclass in Another Package Universe private Yes – – – default Yes Yes – – protected Yes Yes Yes – public Yes Yes Yes Yes The access […]

Filed Under: Java

Beginners Guide to Java Encapsulation and Subclassing

by admin

Encapsulation Encapsulation is one of the four fundamental object-oriented programming concepts. The other three are inheritance, polymorphism, and abstraction. The term encapsulation means to enclose in a capsule or to wrap something around an object to cover it. Encapsulation covers, or wraps, the internal workings of a Java object. – Data variables, or fields, are […]

Filed Under: Java

“No space left on device” – kdump generation issue (CentOS/RHEL)

by admin

The Problem Unable to generate kdump and fails with the following error: Checking for memory holes : [100.0 %] | copy_bitmap_file: Can’t write the bitmap(/tmp/kdump_bitmapQijuck). No space left on device” kdump: dump target is /dev/[ 14.793505] EXT4-fs (dm-0): re-mounted. Opts: (null) mapper/VGExaDb-kdump_vol kdump: saving to /kdumproot/kdump/u01/crashfiles/127.0.0.1-2020-04-29-09:46:31/ kdump: saving vmcore-dmesg.txt kdump: saving vmcore-dmesg.txt complete kdump: saving […]

Filed Under: CentOS/RHEL, Linux

Next Page »

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright