Category Archives: Programming (en)

What do you program in Python? Real-world applications with library examples

When I started learning Python, I got curious about what people write in this language. If you look at it from a general perspective, it seems like Python is used everywhere – it’s such a super universal language that you … Continue reading

Posted in Python (en) | Leave a comment

Top 3 programming languages for beginners. Which first programming language should I choose?

As a beginner programmer you have probably already racked your brains thinking about which programming language to choose. I have chosen three options, and now I will explain which one is right for you.   Three of the best first … Continue reading

Posted in Programming (en) | Leave a comment

Assembly cheatsheet

Assembler is a low-level programming language. Below it there is only machine code (zeros and ones). Why learn assembler? To understand how a computer works. Any programmer must know C. Any programmer who knows C must know Assembler. The ability … Continue reading

Posted in Assembly | Leave a comment

Hello World in Assembly x86

Hello World in assembly language. How much fun is in that! For starters, here’s what we’re going to dig into in asm, the classics: #include <stdio.h> int main(void) { printf(“Hello, world\n”); return 0; } On GNU assembly it would be … Continue reading

Posted in Assembly | Leave a comment

C language: “can’t bind to the port” problem (Windows)

Sometimes your program process can stuck and trigger error like this: Couldn’t bind to the port Ok, we have such check in out sockets C code: if (bind (socket_desc, (struct sockaddr*)&server_addr, sizeof(server_addr)) < 0) printf(“Couldn’t bind to the port\n”); And … Continue reading

Posted in C language (en) | Leave a comment

C language: NCURSES basics

NCURSES – it is a C library which control process of sending a series of bytes by terminal. It’s quite oldschool approach, but it’s widely used even right now as internet works the same way: packets sending just series of … Continue reading

Posted in C language (en), Programming (en) | Leave a comment

C language: compile and run in Notepad++

In top menu press “Run” and enter there… Example: cmd /c cd “C:\Users\n\Desktop\” && gcc 1.c -o 1.exe && 1.exe There we say to Notepad++: cmd – run terminal /c means to close cmd terminal after program finished; you can … Continue reading

Posted in C language (en), Notepad++ (en) | Leave a comment

Python: string generation with concatenation

Task is to generate 50 strings of such kind: hello 1 world hello 2 world hello 3 world hello 4 world … Tried such clumsy way (I forgot Python really):

Posted in Python (en) | Leave a comment

How to post code correctly on a blog

I came across an unpleasant snag. It turns out that when you put php, SQL and other code in the body of a WordPress post, it is reformatted in a certain way and when it is copied into the real … Continue reading

Posted in FAQ (en), Programming (en), Wordpress (en) | Leave a comment

Reducing the CPU consumption of hosting. How to speed up any CMS site

Today, almost every site is not running on ancient HTML, but on the complex CMS, written in PHP. Most often it can be Joomla, WordPress, Drupal and so on. Since such CMS are quite “heavy” (and, frankly speaking, not very … Continue reading

Posted in CMS (en), PHP (en), Webmaster (en) | Leave a comment

How PHP Works

If we want to look at HTML: 1. The user requests a page with ‘clean’ html 2. The server checks if the page exists 3. if there is – returns the .html page to the user as it was on … Continue reading

Posted in Apache (en), PHP (en) | Leave a comment

The phpinfo function

phpinfo is a PHP service function that outputs information about the version, configuration and extensions of PHP; about the Apache server and its settings.   To call this function, use the construct: <?php phpinfo(); ?> How do I locate the … Continue reading

Posted in Apache (en), PHP (en) | Leave a comment

PHP 7.1 → 7.2

In continuation of the post: “Reducing the CPU consumption of hosting. How to speed up any CMS site”.   I switched to PHP 7.2. Hosting load is 20% less: On the axis of ordinates – CPU: the number of minutes … Continue reading

Posted in Apache (en), PHP (en), phpBB (en) | Leave a comment

Create a Makefile for gcc in Visual Studio Code

Install MinGW (how to set up MinGW – watch this video) Inatsll Visual Studio Code (VSC) you can immediately integrate VSC with Git so that everything is automatically synchronized. To do this, simply make a repository on Github and clone … Continue reading

Posted in C language (en) | Leave a comment

C Language: Dictionary Spell Checker

At the end of the fifth week of the CS50 Harvard course, we studied hash tables, which can be used to solve the problem of hashing words from text to check their spelling in a dictionary (speller.c). A dictionary is … Continue reading

Posted in C language (en) | Leave a comment

C language: inheritance of blood type of family members

In the fifth week of the Computer Science – CS50 (Harvard) course, we studied data structures and learned how to access structure elements by their address. To complete your homework (Lab 5 – inheritance.c), you need to understand the scientific … Continue reading

Posted in C language (en) | Leave a comment

C Language: Simple Random Number Generator

Random number generator in C with srand() and time(). Srand() is a helper function for the rand() function, generating a seed for the start of a sequence of (pseudo)random numbers. Because the time returned by the time() function changes once … Continue reading

Posted in C language (en) | Leave a comment