Posts

Showing posts with the label programming

The Asterisk Symbol in C

Image
The Asterisk Symbol in C:     Figure 1:   I scripted this asterisk in SVG.  You can view the source-code of this asterisk at my Codepen account. This symbol, in the C programming language, represents the multiplication operator. Multiplication, in C, is a binary [1] .   multiplicative operation.      Snippet 1:   The above-depicted program illustrates the use of the asterisk, in C, as a multiplication operator.      Figure 2:   What the program depicted above in Figure 2  looks like when compiled and run. The asterisk symbol, in CSS, is termed ‘the universal selector.’  It targets all of the elements of an HTML 5 document, so as to apply the values of style properties thereto. In SQL, the asterisk symbol represents ...

The Increment and Decrement Operators in C:

Image
The Increment Operator in C      Figure 1:   The C symbol. The Increment and Decrement Operators in C: Introduction: In C-derived programming languages, being able to increment and decrement number values is an extremely important skill. The increment and decrement operations are deployed in loops etc., and whilst scripting videogames in suites such as Unity and Unreal – which use C#/JavaScript and C++ respectively – these operations are very often employed – amongst other things – to effect the motion of avatars and sprites and projectiles etc. Body: Operator Classification: The Increment and Decrement operations are classed as unary operations, which means that the operator takes a single operand. Example: In an expression such as: 1++ ,...

As Regards Formal Logic and Set Theory, what is a Dichotomy?

Image
As regards Formal Logic and Set theory, what is a dichotomy? As Regards Formal Logic and Set Theory, what is a Dichotomy? Introduction: The mathematical term: ‘dichotomy’ is employed in common parlance, usually as a component of the phrase: a false dichotomy .  When we refer to: a false dichotomy in common English, we generally refer to two competing ideologies that might seem, at first glance, to have nothing in common; no shared elements; but, upon further inspection, actually have a lot of elements in common. The Term ‘Dichotomy’ in Mathematics and Logic: The purpose of this blogpost is to examine what the term: ...

Pseudo-Random Numbers in C

Image
Pseudo-random numbers in C Pseudo-random numbers in C: Introduction: In Ancient Greek, the adjective: ψευδής [1] . or, when transliterated: ‘pseudḗs’ means: ‘lying,’ ‘false,’ ‘fictitious,’ ‘sham’ [2] . . A classical computer is a deterministic machine, and, in and of itself, cannot generate a truly random number.  A classical computer, in and of itself, can only generate a pseudo-random number. [3] . A pseudo-random number is not a true random number – its having been g...

Types of Bullet Symbols in HTML 5 Unordered List:

Image
Pseudo-random numbers in C Pseudo-random numbers in C: Introduction: In Ancient Greek, the adjective: ψευδής [1] . or, when transliterated: ‘pseudḗs’ means: ‘lying,’ ‘false,’ ‘fictitious,’ ‘sham’ [2] . . A classical computer is a deterministic machine, and, in and of itself, cannot generate a truly random number.  A classical computer, in and of itself, can only generate a pseudo-random number. [3] . A pseudo-random number is not a true random number, its having been generated through a deterministic process, however it is considered, from a hu...

Thou Worthless Zed

Image
Figure 1:  The 26th letter of the English Alphabet, 'z'.  I scripted this in svg.      Figure 2:   The SVG image that I scripted. In Shakespeare's play, King Lear there is the following quote: Thou whoreson zed, thou unnecessary letter! In English, the phonemes produced by the letter, 'z', can also be produced by the letter, 's'. Hence, why Shakespeare seemes to consider the letter, 'z,' "worthless" in Act 2 Scene 2 of King Lear You may view the code of this SVG image at my Codepen account.

SQL Venn Diagram

Image
     Figure 1:   A Venn diagram that illustrates how information, or data is grouped as regards Structured Query Language. How information is grouped together within programming languages is an important concept to grasp.  I find that the drawing of Venn diagrams assists me with this.

Hello, Cube!

Image
My first X3DOM page Hello, Cube!      Figure 1:   It is possible to script Three-dimensional objects with X3DOM.  X3DOM follows the declarative scripting paradigm of two-dimensional SVG as opposed to following the programming imperative paradigm of JavaScript and Canvas. This is my first html page that includes a three-dimensional object. X3DOM is a Javascript library that allows one to code three-dimensional objects - such as cubes, speheres, cylinders, etc. - with tags, just as SVG allows one to do with two dimensional objects - squares, circles etc. You can manipulate the below cube with your finger - should you be employing a touchscreen - or with your mouse cursor - should you be employing a desktop. Should you use two fingers on a touch-screen device, then you can scale the size of the cube in real time. Holding one's two fingers to the screen...

The Phi Quadrilateral

Image
The Phi Quadrilateral. Phi Quadrilateral a b x y c d      Figure 1:   A Phi Quadrilateral that I coded in SVG.  I believe that these are used for perspective.  The first quadrilateral will have its base line-segment at the bottom of the canvas, in the foreground.  A second quadrilateral - scaled to 0.618033988... the size of the first, will have its base equal in magnitude to the top line segment of the original quadrilateral.  This second quadrilateral has its base at the top line segment of the first quadrilateral. ...

How Long Is a Piece of String?

Image
How Long is a Piece of String How long is a piece of string?  This is very often touted — by non-philosophers, mostly — as being one of the ultimate philosophical questions.   The preceding question, after which this blog-post is entitled, is generally regarded as unanswerable. However, in our case, the question can indeed be answered, as this piece of string — coded in SVG — is 77 lines long! ...