Архив рубрики: Публикации

[решение] WordPress: проблема с редактированием css шаблона

Забавная штука – когда редактируешь ccs шаблонов wordpress (да и других CMS) в Google Chrome – часто глючит кэш; в итоге, при обновлении страницы внесенные изменения не видны. Я долго не врубался в чем дело, пока не допер обновить кэш страницы (Ctrl+F5).

В других браузерах (лиса, к примеру) все ок; знает, когда-что обновлять. Кстати, хром глючит в плане кэширования перманентно – это видно на ютубе, где часто на старых видосах горит плашка “… начинает прямую трансляцию”, хотя никакой трансляции нет. Писал в саппорт гугла где-то год назад – знают о проблеме, но пока не чешутся.


Remove Category Archives or Category Archive in the WordPress archive

Also often encountered a problem faced by novice users of WordPress – How to remove the Category Archives at the top of the page? In the Russian version, this inscription sounds like “Archive for category”; and in some versions / templates, this line in WordPress can be as follows: Archive for category.

 

In general, no matter what the string, the treatment is simple:

Читать

Python: Problems and Solutions (Chapter 6. Functions. Tic-Tac-Toe Game).

We continue to practice programming. After the sixth chapter in the book: Michael Dawson “Programming in Python”, 2014 (Michael Dawson “Python Programming for the Absolute Beginner”, 3rd Edition), where I learned how to use functions, it’s time to move on to practice. Let’s do our homework together!

Function refinement ask_number() / hod_number()

Task: Modify the ask_number() or hod_number() function so that it can be called with one more parameter – multiplicity (step size). Set the default stride to 1.

Читать

Python: Problems and Solutions (Chapter 7 Files and Exceptions Quiz Game)

We continue to practice programming. After the seventh chapter in the book: Michael Dawson “Programming in Python”, 2014 (Michael Dawson “Python Programming for the Absolute Beginner”, 3rd Edition), where I learned how to work with files, it’s time to move on to practice. Let’s do our homework together!

A short summary of working with files in Python

Open and close a file

open() – open file and give directory path;

open("file", "r", encoding="utf-8") – open file for reading in Unicode encoding. Читать

Python ООП – объектно-ориентированное программирование

Продолжаем практиковаться в программировании. После восьмой главы в книге: Майкл Доусон “Программируем на Python”, 2014 (Michael Dawson “Python Programming for the Absolute Beginner”, 3rd Edition), где я изучила принципы ООП и программные объекты / классы, пора переходить к практике. Сделаем домашнее задание вместе!

Краткий конспект ООП на Python

Программный объект – формальное представление реального объекта в языке программирования. Объекты создаются на основе классов. Читать

Python OOP – Object Oriented Programming

We continue to practice programming. After the eighth chapter in the book: Michael Dawson “Programming in Python”, 2014 (Michael Dawson “Python Programming for the Absolute Beginner”, 3rd Edition), where I learned the principles of OOP and program objects / classes, it’s time to move on to practice. Let’s do our homework together!

A Brief Summary of OOP in Python

A program object is a formal representation of a real object in a programming language. Objects are created based on classes.

Читать