Labels

Android (1) Apache (1) bash (2) boost (2) C (37) C++ (5) cheatsheet (2) CLion (6) css (3) Debian (34) DL (17) dns (1) Docker (3) Dreamweaver (2) Eclipse (3) fail2ban (5) git (6) GitHub (5) Hacking (4) html (8) http (1) iOS (1) iPad (1) IRC (1) Java (33) javascript (3) Linux (182) Mac (21) Machine Learning (1) mySQL (53) Netbeans (6) Networking (1) Nexus (1) OpenVMS (6) Oracle (4) Pandas (3) php (17) Postgresql (8) Python (9) raid (1) RedHat (15) Samba (2) Slackware (52) SQL (14) ssh (1) svn (1) tar (1) ThinkPad (1) Virtualbox (4) Visual Basic (2) Visual Studio (1) Windows (7) wire (1)

Monday, 26 December 2016

Java Method Overriding

Declaring a method in subclass which is already present in parent class is known as method overriding.


Java Method Overloading

Method Overloading is a feature that allows a class to have two or more methods having same name but ONLY if their argument lists are different.

Sunday, 11 December 2016

namespace std C++

Use of namespace std as below;

#include<iostream>

using namespace std;

int main()
{
cout<<("Hello there...")<<endl;
return 0;
}

Compile C/C++ in Linux

gcc source.c -o executable.o

OR

g++ source.c -o executable.o

chmod +x executable.o
./executable.o

Saturday, 3 December 2016

C++ Note on Declarations

In C++ we must declare a Function/Routine before we use it UNLESS it appears in code before it is first used.

Saturday, 1 October 2016

Kernel Compile 2

(The following instructions assume we are installing version 2.6.0 of the kernel, replace all instances with the version you are trying to build. These instructions are also x86-specific; other architecture's build procedures may differ.)

Kernel Compile 1

If using same source as current kernel, modify EXTRAVERSION in Makefile
Consider renaming .config to .configBAC

make menuconfig (create .config file)
make dep (2.4.x kernels)
make clean (possibly run this before previous step)
make bzImage (makes the kernel in arch/i386/boot/bzImage)
make modules
make modules_install (copies modules to /lib/modules/kernelVersion)

cp /usr/'Linux_kernel_source'/src/arch/i386/boot/bzImage /boot/newkernel (make install does this)

make install (not using, I don't think)

cp /System.map /boot/System.map-kernelVersion

Add the following to /etc/lilo.conf
image = /boot/vmlinux-kernelVersion
root = /dev/hda2 (or whichever partition the / filesystem resides)
label = kernelVersion
read-only