Twise Random

A site about computer science .
Skip to content
  • apple
  • android
  • c
  • cpp
  • data structure and algorithms
  • macos
  • python
  • tutorials

ARM processor modes

Posted on August 11, 2021August 19, 2021 by mohamad wael

 

Let us start by first asking the question, of why do we need, the processor modes. Well simply put, a processor mode, is used to define a capability, so for example, the kind of features, instructions, or registers which … Read More

arm tutorial, what is

What is unicode, utf-8 , utf-16 and utf-32 ?

Posted on August 5, 2021August 6, 2021 by mohamad wael

 

What is unicode ?

– what is a string? what is text? you might ask!
– A collection of characters?
– good guess.
– and a character is ?
– any human readable one, as in ¥, or … Read More

unicode decoding, encoding, unicode, utf16, utf32, utf8

Characters in swift a tutorial

Posted on August 2, 2021August 3, 2021 by mohamad wael

What is a character ?

Nowadays, what is accepted, is that a character has a code point, an encoding, and that it belongs, to a character set.

A character-set, can specify both the code points, and the encoding, or it … Read More

swift

Optionals in swift a tutorial

Posted on July 31, 2021August 3, 2021 by mohamad wael

 

In some languages other than swift, a variable or a constant, can or cannot have a value. So a variable or a constant, can be null, if no value was assigned to them, or if set to null.

What … Read More

swift optional, swift, what is an optional

What is core foundation?

Posted on July 27, 2021August 28, 2021 by mohamad wael

A little bit of history

To understand what core foundation is, let us get back in history a little bit. It was the year 2000, and there were two ways to develop applications, for macOS 10.

On one hand, … Read More

apple tutorial

What is NSObject ?

Posted on July 22, 2021July 22, 2021 by mohamad wael

 

Many object oriented programming languages, have a class, from which all other classes extends.

In general, a class has a set of methods, and variables, which it defines. The variables being the data, and the methods, being the … Read More

objective-c foundation, objective-c, oop, tutorial

How to list windows, and their information, under Microsoft windows, Linux and macOS

Posted on July 15, 2021 by mohamad wael

 

A window is just a place, where an application can do its drawing, like drawing a button, text or other stuff.

For Linux

On Linux or UNIX like systems, there is a tool called xwininfo, which can be … Read More

ui tutorial

xprop a tutorial

Posted on July 12, 2021July 12, 2021 by mohamad wael

 

Let us start by defining what is xprop. xprop is simply a tool, to query, set, and remove the properties of an X11 window .

Additionally, using xprop, you can query X11 core fonts attributes, so you … Read More

tools bsd, linux, x11, X11 properties, xprop

What is a property in X11?

Posted on July 10, 2021July 12, 2021 by mohamad wael

 

In X11, a property simply has a name, a type, a format, a value, and is associated with a window.

There is a set of functions, provided by X11, which allows manipulating a property, and they … Read More

X11 bsd, linux, PropertyNotify, tutorial, x11, XChangeProperty, XDeleteProperty, XGetWindowProperty, XListProperties, XPropertyEvent, XRotateWindowProperties, XSelectInput

What is an atom in X11?

Posted on July 7, 2021July 9, 2021 by mohamad wael

 

An atom in X11, is of type Atom, which is defined in the <X11/Xatom.h header, as :

typedef unsigned long Atom;		/* Also in Xdefs.h */

An atom is 32 bits, the reason, that long was chosen, … Read More

X11 linux, tutorial, XGetAtomName, XGetAtomNames, XInternAtom, XInternAtoms
  • «
  • 1
  • 2
  • 3
  • 4
  • …
  • 11
  • »