All posts by A – more info on how ids work and two tricks

1st: You can append a plus “+” sign after your name

So adding any text after “+” sign still get the emails to your inbox, but you can filter based on this additional email id. E.g.: and and

will both deliver the emails to !

2nd: Gmail DOES NOT recognize the dots “.” in the email ID.

So is the same as or

Original article is here: 2 hidden ways to get more from your Gmail address

S/4HANA material segmentation, Country of Origin (CoO) in MIGO

SAP ERP doesn’t directly capture the country of origin during a MIGO goods receipt for a newly created batch. However, you can achieve this through implementing a User Exit.

Additional batch data, such as the country of origin, region of origin, and freely available date fields, can be changed only in user exits. To create a new batch for the goods movement, use the exit EXIT_SAPMM07M_003.

MCHA-HERKL is not automatically updated based on the purchase order during a goods receipt. You must use user exit EXIT_SAPMM07M_003

The user-exit EXIT_SAPMM07M_003 is in
Enhancement: “MBCFC003” – Maintenance of batch master data for goods movements”
(Use transaction: CMOD to activate the exit and assign enhancement).

Question: Why is the user exit EXIT_SAPMM07M_003 processed for some batches but not for others?

Answer: The user exit EXIT_SAPMM07M_003 is processed only if the batch is newly created by the goods movement. This may have different consequences depending on the batch definition level.

To determine the country of origin (CoO) you can use proper setup of segmentation field. Documentation here:

SAP docs on segmentation functionality:

Segmentation (LO_SEGMENTATION) is a new SAP ERP component, integrated into:

  • LO Material Master
  • SD Sales
  • MM Purchasing

SGT_CATS – ABAP table: Segmentation Structure Fields Table

SGT_CSEGSCON – ABAP table with segmentation rules defined

SGT_VALS – ABAP table with Segmentation-Valid Combinations

Continue reading S/4HANA material segmentation, Country of Origin (CoO) in MIGO

Principle 80:20 in human body -water, microbiome and more… Принципът 80:20 и в човешкото тяло

60% water in adult human body…

Up to 60% of the human adult body is water. According to Mitchell and others (1945), the brain and heart are composed of 73% water, and the lungs are about 83% water. The skin contains 64% water, muscles and kidneys are 79%, and even the bones are watery: 31%.

a от останалите 40% – 50% са чужди… (and in the left 40% more than 50% are not “human” cells):

In an article by the Scientific American (which has published articles by over 200 Nobel Prize winners) revealed that only 47% of our cells are human.

What about the other 53%?

Well, they’re made up of the bacteria, fungi and viruses living within us collectively known as your microbiome.

And it’s the newest discoveries about the microbiome, specifically in your gut, that scientists are calling “the most exciting prospect in medicine since the discovery of DNA.”

Мани стана като БГ изборите – 20% определят останалите 80% (So it sound like the result of the recent Bulgarian elections – 20% determines the result).

Артур Шопенхауер

Артур Шопенхауер е германски философ.Артур_Шопенхауер

Богатството наподобява морската вода, от която жаждата ти се увеличава, колкото повече пиеш.

Здравето не е всичко, но без здраве всичко е нищо.

Който критикува придирчиво другите, работи над своето самоусъвършенствуване.

Който не обича самотата – той не обича и свободата.

От гледна точка на младостта живота е безкрайно бъдеще; от гледна точка на старостта – много кратко минало.

Повечето хора са толкова субективни, че всъщност не се интересуват от нищо освен от самите себе си.

Моята философия не ми донесе нищо, но ми спести много.

Чрез цитати изтъкваш ерудицията си и жертваш оригиналността си.

Човек, който пише за глупаци, винаги може да разчита на широк кръг от читатели.

Да страдаш, че някога вече няма да те има, е също тъй нелепо, както да страдаш за това, че някога още не те е имало.

Сполетялото ни нещастие не ни измъчва толкова, колкото мисълта за обстоятелствата, при които би могло да бъде избегнато.

Хората са общителни само поради своята неспособност да понасят самотата, тоест себе си.

Всяка нация се присмива на другите – и всичките имат право.

Инвестиции в акции – опит, идеи, полезни страници

Добра идея и предложение:

Как искам да се променят законите за ДДС за да се премахне парадокса “ДДС за инвеститори” или когато

Защото “облагаем” оборот за регистрация не значи оборот, който се облага с ДДС. “Облагаемият” оборот за регистрация не се облага с ДДС, но го наричат облагаем, защото така са си го дефинирали в закона.

Това е подигравка.

Това е все едно да наричат котките кучета и да карат хората да попълват декларация за притежание на куче, въпреки че притежават котка.

По принцип много полезен и редовно актуализиран блог е този на Валентин Стойков:


Google Drive API v3 (googleapiclient.errors.HttpError 404 File not found)

If you try to upload a file in a shared drive (in Google Drive) you may get the above error.

This is my experience and solution as of February 2024 using Python 3.10.

from googleapiclient.discovery import build
from googleapiclient.http import MediaFileUpload
from google.oauth2 import service_account

from io import BytesIO
from googleapiclient.http import MediaIoBaseUpload
from import translate_v2 as translate

## Credentials of service account
credentials = service_account.Credentials.from_service_account_info(service_account_info, scopes=[''])

## API Client Service
service = build("drive", "v3", credentials=credentials)

# buffer_memory=BytesIO(b"some initial binary data: \x00\x01") # BytesIO() new_body
buffer_memory=BytesIO() # BytesIO() new_body

## Prepare the file in memory (you can upload local file too with MediaBase Upload)
media_body = MediaIoBaseUpload(buffer_memory, mimetype='text/html', 
        chunksize=1024*1024, resumable=False)
                body = {
                        'title': file_name,
                        "name": file_name,
                        "mimeType": "application/",
                        "driveId": "0APee............PVA",
                        "parents": ['0APe.............PVA'],

## Upload file
returned_fields="id, name, mimeType, size, webViewLink, exportLinks"
upload_response=service.files().create( body=body,                                                            

## Share the created file with user
user_permission = {
                    "type": "user",
                    "role": "writer",
                    "emailAddress": share_user,
                perm_response = service.permissions().create(

The important difference between uploading in private Google drive is that you have to use the following parameters for Shared Drives:

driveId -> Id of Shared Drive
parents -> Folder or Shared Drive

Mime Types: List of the supported Mime type here


If you want to convert the uploaded file to Google Drive native format use the following parameter:

"mimeType": "application/",

Google documentation:

And this article on StackOverflow as well helped to find the solution although some parameters are wrong or deprecated already:

Python snippets 2024 Q1

How to convert StringIO object to BytesIO object vice versa.

I want to read a string with the io.StringIO and then convert it to an io.BytesIO object and vice versa, how can I do this?

Below is the example source code which can implement python StringIO and BytesIO object converts.

import io
# Convert a StringIO object to BytesIO object.
def stringio_to_bytesio(str):
    str_io_object = io.StringIO(str)
    str_data ='utf8')
    bytes_io_object = io.BytesIO(str_data)
# Use io.TextIOWrapper to convert BytesIO object to a string. Then we can build a StringIO object on the string.     
def bytesio_to_stringio(bytes_str):
    data = io.BytesIO(bytes_str)
    # Create an instance of io.TextIOWrapper class.
    text_wrapper = io.TextIOWrapper(data, encoding='utf-8')
    str =
    str_io_object = io.StringIO(str)
if __name__ == '__main__':
    bytes_str = stringio_to_bytesio('I love python')
    bytesio_to_stringio(b'hello python')

Source (with more details):

Constrictor hitch (knot) – Констриктор възел

Very good video showing how to tie a constrictor knot (hitch).
Много добро видео с обяснение как се връзва възел “констриктор”:

And wikipedia article for reading:

Renault Laguna III 2.0 dci – Service intervals / Интервали на смяна за Рено Лагуна 3 дизел

As there is no official info in the User’s manual of Laguna 3, I found out this recently useful site:

I was interested what is the recommended interval (if any) for the timing chain of this model. So the answer is:

Timing chain

There is no manufacturer specified replacement interval for the engine timing chain on Renault Laguna 2013 2.0 diesel (expecting it to last until the engine is overhauled – nice!).

Based on real life experience, the Renault Laguna 2013 2.0 dCi timing chain change interval is approximately 200,000 km as at this mileage it may become overstretched and require replacement, so it is recommended to check the condition of the chain periodically after this mileage is reached and replace the timing chain if it becomes excessively stretched or if unusual engine noises occur.

Serpentine (drive) belt

Renault Laguna 2013 2.0 dCi serpentine or alternator belt replacement interval is 120,000 km.

Engine coolant

Engine coolant (antifreeze) recommended replacement interval for Renault Laguna 2.0 diesel is 90,000 km or 5 years, whichever comes first.

И на български – понеже няма в книжката на колата по-важните интервали за обслужване при последното търсене намерих полезна информация на този сайт (на английски) за моделът дизел 2.0 на Рено Лагуна 3 –

Та тук хората казват, че няма препоръчителен период и километри през които да се сменя веригата (ангренажна) на този двигател. Препоръчват от опит на 200хил.км. и по-скоро след тези километри да се проверява. Няма години и срок даден!

Други регулярни, но по-редки (от смяна на масла и филтри) смени споменати:

  • ремък на алтернатора на 120хил.км
  • антифриз – на 90хил.км или 5 години, което настъпи първо

My AI links and bookmarks

Good article from Google on different AI topics like processing language, vision and generative models

The interesting one for me was this “in “LOLNerf: Learn from One Look”, we explore the ability to learn a high quality representation from just a single 2-D image.”

Nice, a?

And next is 3D modeling with a phone shown in this video:

3D model with my phone

I created a 3D MODEL with my PHONE!