Tuesday, July 7, 2026
Wordpress debug log function
Sunday, January 18, 2026
Workflow of WordPress project in a team with Git
1. We should not push any Wordpress core folders or files to github.
2. Only push custom theme and custom plugin into github.
3. So, in this case first create a .gitignore files that ignore all core folders and files to push into github.
Example .gitignore code:
4. So, in github we'll see only three things, wp-content folder, index.php and .gitignore. Inside of wp-content, there will be themes folder and inside of that themes folder your custom theme.
5. So, after initial commit and push to github, it is time to clone it from github to your co-worker's local development environment.
6. In your co-worker's development environment, they will have wordpress installed. Then go inside your wordpress folder and in root run few git command:
- git init
- git remote add origin YOUR-REPOSITORY-LINK
- git fetch origin
- git checkout -f main
Co-workers are done and synced now!
Ready to start working...
Thursday, November 14, 2024
Suomen kieli (Imperfekti)
In Finnish, the imperfekti is the past tense that describes actions that happened in the past, like the English simple past (e.g., "I walked," "I saw"). It’s used for actions that are completed or that took place at a specific time.
Here's how to form the imperfekti and some examples:
Formation of Imperfekti
- Start with the basic form (verb stem) of the verb.
- Add a past tense marker, usually
-i-, and sometimes adjust vowels or consonants as needed. - Add the appropriate personal ending.
Examples
Verb: asua (to live)
- Stem: asu-
- Imperfekti: asuin (I lived)
- Sentences:
- Minä asuin Helsingissä. (I lived in Helsinki.)
- Hän asui Suomessa. (He/she lived in Finland.)
Verb: syödä (to eat)
- Stem: syö-
- Imperfekti: söin (I ate)
- Sentences:
- Me söimme pizzaa eilen. (We ate pizza yesterday.)
- Hän söi omenan. (He/she ate an apple.)
Verb: juoda (to drink)
- Stem: juo-
- Imperfekti: join (I drank)
- Sentences:
- Join kahvia aamulla. (I drank coffee in the morning.)
- He joivat teetä iltapäivällä. (They drank tea in the afternoon.)
Verb: kävellä (to walk)
- Stem: kävele-
- Imperfekti: kävelin (I walked)
- Sentences:
- Kävelin puistossa. (I walked in the park.)
- He kävelivät rannalla. (They walked on the beach.)
Irregular Verbs
Some verbs have changes in their stems or are irregular:
Verb: olla (to be)
- Imperfekti: olin (I was)
- Example: Olin kotona koko päivän. (I was at home all day.)
Verb: tehdä (to do)
- Imperfekti: teki (he/she did)
- Example: Hän teki läksyt nopeasti. (He/she did the homework quickly.)
Practice with Easy Sentences
- Eilen satoi vettä. (It rained yesterday.)
- Hän kirjoitti kirjeen. (He/she wrote a letter.)
- Katsoimme elokuvan illalla. (We watched a movie in the evening.)
- Lapset leikkivät ulkona. (The children played outside.)
Monday, October 28, 2024
Suomen Kieli (Taalla, Tuolla, Siella)
In Finnish, location-based words like "täällä," "tuolla," and "siellä" help describe where something is relative to the speaker or listener. Here’s a quick breakdown:
- Täällä = "Here" (Close to the speaker)
- Tuolla = "There" (In sight but not very close to the speaker)
- Siellä = "Over there" or "There" (Far from both the speaker and listener)
Easy Examples
Imagine a park, where:
- You (the speaker) are sitting on a bench.
- A friend is standing by a tree a little distance away.
- A playground is visible but further away.
1. Täällä (Here)
- You’re sitting on a bench and want to say, "I am here on the bench."
- In Finnish, you’d say, "Minä olen täällä penkillä."
- Täällä refers to the place close to you (the speaker).
2. Tuolla (There)
- You point to your friend who’s standing by the tree, a little bit away from you.
- You’d say, "Hän on tuolla puun luona."
- Tuolla describes a place a bit away from you but still visible.
3. Siellä (Over there/There)
- Now you point to the playground further away.
- You’d say, "Leikkipaikka on siellä."
- Siellä refers to a place far away from both you and your friend.
Wednesday, October 16, 2024
Upcoming webinar list (WebinarPress)
Upcoming webinar list (WebinarPress)
Past webinar list (WebinarPress)
List of past webinars:
Sunday, October 6, 2024
Suomen Kieli (Vuorokausi)
Suomen Kieli (Vuorokausi):
1. Aamu (Morning): This refers to early morning, usually around 6:00 AM to 9:00 AM.
2. Aamupäivä (Before noon): Late morning, approximately from 9:00 AM to 12:00 PM.
3. Päivä (Daytime): Midday and early afternoon, typically from 12:00 PM to 3:00 PM.
4. Iltapäivä (Afternoon): Late afternoon, usually around 3:00 PM to 6:00 PM.
5. Ilta (Evening): The evening period, from 6:00 PM to 9:00 PM.
6. Yö (Night): Nighttime, which generally starts around 9:00 PM and continues until 6:00 AM.
7. Aamuyö (Early morning hours): Early morning hours after midnight, typically from 12:00 AM to 6:00 AM.
Friday, September 27, 2024
Suomen Kieli (Kello)
In Finnish, telling time follows a specific structure, and understanding it can help you get the hang of the language. Here’s a guide with examples on how to tell the time in Finnish, both in the exact hour and when using half hours, quarters, and minutes.
Key Phrases to Know:
- Kello on = "The time is" or "It’s"
- Tasan = "Exactly" or "sharp"
- Yli = "Past" (used when it’s past the hour)
- Vaille = "To" (used when it’s before the next hour)
- Puoli = "Half" (used for half-past the hour)
- Minuutti = "Minute"
Exact Hour Examples (Tasan)
12:00 - Kello on tasan kaksitoista.
(It’s exactly twelve o’clock.)1:00 - Kello on tasan yksi.
(It’s exactly one o’clock.)5:00 - Kello on tasan viisi.
(It’s exactly five o’clock.)
Half-Past the Hour (Puoli)
In Finnish, when you say half-past the hour, it is expressed as half to the next hour. For example, 4:30 is half-past four, but in Finnish, it’s "half to five."
4:30 - Kello on puoli viisi.
(It’s half to five.)8:30 - Kello on puoli yhdeksän.
(It’s half to nine.)11:30 - Kello on puoli kaksitoista.
(It’s half to twelve.)
Minutes Past the Hour (Yli)
When telling time past the hour, yli means "past" the hour.
5:10 - Kello on kymmenen yli viisi.
(It’s ten past five.)9:15 - Kello on viisitoista yli yhdeksän.
(It’s fifteen past nine.)2:25 - Kello on kaksikymmentäviisi yli kaksi.
(It’s twenty-five past two.)
Minutes to the Hour (Vaille)
When telling time before the hour, vaille means "to" the next hour.
3:45 - Kello on varttia vaille neljä.
(It’s a quarter to four.)7:50 - Kello on kymmentä vaille kahdeksan.
(It’s ten to eight.)1:55 - Kello on viittä vaille kaksi.
(It’s five to two.)
Other Important Examples
6:15 - Kello on varttia yli kuusi.
(It’s a quarter past six.)10:45 - Kello on varttia vaille yksitoista.
(It’s a quarter to eleven.)12:05 - Kello on viisi yli kaksitoista.
(It’s five past twelve.)
Summary of the Structure
For exact times: Kello on tasan [hour]
Example: Kello on tasan kolme. (It’s exactly three.)For half-past the hour: Kello on puoli [next hour]
Example: Kello on puoli kuusi. (It’s half past five, or 5:30.)For minutes past the hour: [Minutes] yli [hour]
Example: Kello on kymmenen yli kolme. (It’s ten past three.)For minutes to the hour: [Minutes] vaille [next hour]
Example: Kello on kymmentä vaille kolme. (It’s ten to three.)
Thursday, September 26, 2024
24 hours (Suomen Kieli)
Tuesday, September 24, 2024
Suomen Kieli (Partitiivi)
What is Partitiivi?
The partitiivi is a case in Finnish that is often used to show:
- Incomplete actions: “I am eating a cake” (but I haven’t finished it yet).
- Uncountable things: “water,” “some milk.”
- After negative sentences: “I don’t have money.”
In English, it’s similar to using some or any, like “I have some cake” or “I don’t have any money.”
How to Form the Partitiivi?
There are a few common ways to form the partitiivi, depending on the word.
1. Add -a / -ä for most words ending in a consonant (like talo = house):
- Talo (house) → Taloa (some house)
- Auto (car) → Autoa (some car)
2. Add -ta / -tä for some other words:
- Mies (man) → Miestä (some man)
- Kissa (cat) → Kissaa (some cat)
3. Add -tta / -ttä for words ending in nen (like nainen = woman):
- Nainen (woman) → Naista (some woman)
When to Use Partitiivi?
With Incomplete Actions:
- Syön kakkua = I am eating (some) cake.
- Odotan bussia = I am waiting for the bus.
(You haven’t finished eating or waiting yet.)
With Negative Sentences:
- En syö kakkua = I am not eating cake.
- Minulla ei ole rahaa = I don’t have money.
When talking about Uncountable Things or Undefined Amounts:
- Juo maitoa = Drink (some) milk.
- Ostan kahvia = I’m buying (some) coffee.
With Numbers (for multiples):
- Minulla on kaksi koiraa = I have two dogs. (Notice that koira becomes koiraa after the number.)
Singular vs. Plural:
- Singular:
- Koira (dog) → Koiraa (some dog)
- Plural:
- Koirat (dogs) → Koiria (some dogs)
Quick Examples:
- Juon vettä = I drink (some) water.
- Haluan omenaa = I want (some) apple.
- Ei ole rahaa = There is no money.
Quick Exercise:
Try to form the partitiivi of these words:
- Talo (house) → ?
- Kakku (cake) → ?
- Kissa (cat) → ?
Answers:
- Taloa = Some house
- Kakkua = Some cake
- Kissaa = Some cat
Key Points:
- -a / -ä for most singular words.
- Use partitiivi for unfinished actions, negatives, uncountable things, and numbers.
- It often translates to “some” or “any” in English.
Suomen Kieli (Genetiivi)
What is Genetiivi?
Genetiivi is the possessive form in Finnish, and it’s used to show ownership or belonging. It’s similar to adding ’s or of in English. For example, "the dog’s toy" or "the name of the book."
How to Form the Genetiivi?
For most words, you add an -n to the basic form (nominative) of the word.
Examples:
- Koira (dog) → Koiran (the dog's)
- Talo (house) → Talon (the house's)
How to Use Genetiivi?
To show possession:
- Koiran lelu = The dog’s toy.
- Talon katto = The roof of the house.
With certain verbs:
- Odotan bussia = I’m waiting for the bus. (Bussi → bussia in this case.)
With prepositions and postpositions:
- Auton takana = Behind the car.
- Taloon asti = Until the house.
Singular and Plural:
- Singular: Add -n to the nominative.
- Talo → Talon = House’s
- Plural: Add -en to the plural nominative.
- Talot → Talojen = Houses’
Irregular Examples:
Some words have exceptions or slight changes:
- Mies (man) → Miehen (the man’s)
- Vesi (water) → Veden (the water's)
Quick Exercise:
Try to form the genetiivi of these words:
- Kirja (book) → ?
- Auto (car) → ?
- Nainen (woman) → ?
Answers:
- Kirjan = The book’s
- Auton = The car’s
- Naisen = The woman’s
Key Points:
- Add -n for singular possession.
- Add -en for plural possession.
- Use it to show who or what owns something.
Turn off all updates from wordpress website
Turn off all updates from wordpress website:
Put the below code to wp-config.php file:
Put the below code to your current theme's functions.php file:
.:Happy coding:.
Thursday, August 29, 2024
Suomen Kieli (Olla-verbi)
Write olla-verbi rules with easy examples with mina, sina, han, me, te, he
The verb "olla" (to be) is one of the most important verbs in Finnish. It is used to indicate existence, identity, location, and characteristics. Below are the conjugation rules for the verb "olla" with personal pronouns in the present tense, along with easy examples for each pronoun.
Conjugation of "Olla" in Present Tense
| Pronoun | Conjugation | English Translation |
|---|---|---|
| minä | olen | I am |
| sinä | olet | you are |
| hän | on | he/she is |
| me | olemme | we are |
| te | olette | you are (plural/formal) |
| he | ovat | they are |
Examples with Personal Pronouns
1. Minä olen (I am)
- Example: Minä olen opettaja.
(I am a teacher.)
2. Sinä olet (You are, singular)
- Example: Sinä olet opiskelija.
(You are a student.)
3. Hän on (He/She is)
- Example: Hän on kotona.
(He/She is at home.)
4. Me olemme (We are)
- Example: Me olemme ystäviä.
(We are friends.)
5. Te olette (You are, plural/formal)
- Example: Te olette nyt kurssilla.
(You are now in the course.)
6. He ovat (They are)
- Example: He ovat Helsingissä.
(They are in Helsinki.)
Additional Notes
- The verb "olla" is irregular and does not follow the typical Finnish verb conjugation pattern.
- In addition to the present tense, "olla" is also commonly used in forming other tenses and constructions, such as the perfect tense ("minä olen ollut" - "I have been") and the future sense (implied by context in Finnish).
The verb "olla" is fundamental for constructing basic sentences and expressing states of being in Finnish, so understanding these rules and examples is key for beginners.
Sunday, August 25, 2024
Suomen kieli (Vokaaliharmonia. Tuleeko ssa vai ssä)
Vokaaliharmonia in Finnish – An Easy Guide
Vokaaliharmonia (vowel harmony) is one of the key features in Finnish grammar. It means that certain vowels in a word dictate which vowels can appear in suffixes or endings attached to that word. This rule helps maintain the natural flow and sound of the language.
How Vokaaliharmonia Works
Finnish vowels are divided into three groups:
- Front vowels: ä, ö, y
- Back vowels: a, o, u
- Neutral vowels: e, i
Vowel Harmony Rules:
Front vowels (ä, ö, y) can only appear with other front vowels in the word and its suffixes.
- Example: hämärä (dim) → hämärässä (in the dim light)
Back vowels (a, o, u) can only appear with other back vowels in the word and its suffixes.
- Example: talo (house) → talossa (in the house)
Neutral vowels (e, i) can appear with either front or back vowels but do not influence vowel harmony.
- Example with front vowels: tyttö (girl) → tytössä (in the girl)
- Example with back vowels: kissa (cat) → kissassa (in the cat)
Suffixes and Vowel Harmony
When you add suffixes to Finnish words (for example, to show location or possession), the vowels in the suffix must match the vowels in the base word.
- If a word contains front vowels (ä, ö, y), the suffix will use front vowels.
- If a word contains back vowels (a, o, u), the suffix will use back vowels.
Examples:
- Back vowel word: pallo (ball) → pallossa (in the ball)
- Front vowel word: kynä (pen) → kynässä (in the pen)
Notice that pallo takes -ssa while kynä takes -ssä because the first word has back vowels, and the second has front vowels.
Words with Neutral Vowels
When a word contains only neutral vowels (e, i), the vowel harmony depends on any additional vowels in the word:
- Front vowel suffix: if the word has only e and i but also front vowels (ä, ö, y).
- Back vowel suffix: if the word has only e and i but also back vowels (a, o, u).
Examples:
- tie (road) → tiellä (on the road) – neutral vowels i, e take the front vowel suffix.
- talo (house) → talossa (in the house) – neutral vowel i follows the back vowel harmony of a, o.
Common Suffixes Using Vowel Harmony
Inessive (where something is):
- Back vowel: -ssa (e.g., talossa - in the house)
- Front vowel: -ssä (e.g., kynässä - in the pen)
Elative (from somewhere):
- Back vowel: -sta (e.g., talosta - from the house)
- Front vowel: -stä (e.g., kynästä - from the pen)
Genitive (possession):
- Back vowel: -n (e.g., talo → talon - of the house)
- Front vowel: -n (e.g., kynä → kynän - of the pen)
Summary of Vowel Harmony in Finnish:
- Words with back vowels (a, o, u) take suffixes with back vowels.
- Words with front vowels (ä, ö, y) take suffixes with front vowels.
- Neutral vowels (e, i) do not affect vowel harmony but follow the dominant vowel type of the word.
Mina + asun... + ssa / ssä
1. Vaasa ___ = Vaasassa
2. Jyväskylä ___ = Jyväskylässä
3. Kotka ___ = Kotkassa
4. Pori ___ = Porissa
5. Mäntsälä ___ = Mäntsälässä
6. Li ___ = Lissa
See the word contains back vowel or front vowel and based on that put ssa or ssä.
Suomen kieli (Yhdyssanat. Tuleeko a vai ä)
In Finnish, the decision to use "a" or "ä" in compound words (yhdyssanat) depends on the vowel harmony rules, which are central to Finnish spelling and pronunciation. Here’s how it works:
Vowel Harmony in Finnish
Finnish vowels are divided into two groups based on vowel harmony:
- Front vowels: ä, ö, y
- Back vowels: a, o, u
- Neutral vowels: e, i
Rule for Compound Words
When forming a compound word, the vowels in the suffix or the second part of the compound must match the vowel harmony of the first part.
Back vowels (a, o, u):
- If the first part of the compound word contains any back vowels (a, o, u), the suffix or the second part of the word should also use back vowels.
- Example:
- Pöytä (table) + lamppu (lamp) = Pöytälamppua (table lamp)
Front vowels (ä, ö, y):
- If the first part of the compound word contains any front vowels (ä, ö, y), the suffix or the second part of the word should also use front vowels.
- Example:
- ruoka (food) + pöytä (table) = Ruokapöytä (food table)
Neutral vowels (e, i):
- Neutral vowels (e, i) can be combined with either front or back vowels, depending on the other vowels present in the word.
- Example:
- meri (sea) + mies (man) = merimies (seaman)
Exceptions
Some compound words are borrowed from other languages or have irregular vowel harmony, but these are rare.
By following these rules, you can determine whether to use "a" or "ä" in the compound words.
Here’s a detailed explanation for more words:
Pöytälamppu - The correct choice is "a".
"Pöytä" contains front vowels (ö, ä), but "lamppu" contains back vowels (a, u). Because "lamppu" dominates the vowel harmony rule for the suffix, "a" is used.
Pöytälamppua
Ruokapöytä - The correct choice is "ä".
Both "ruoka" (a, o) and "pöytä" (ö, ä) are part of the compound word, but since "pöytä" ends with "ä", you continue with "ä".
Ruokapöytää
Rullaverho - The correct choice is "a".
"Rulla" (u, a) and "verho" (o) both contain back vowels. The suffix that follows should have "a" to match the back vowels.
Rullaverhoa
Vaatekaappi - The correct choice is "a".
"Vaate" (a) and "kaappi" (a) both contain back vowels, so "a" is used to maintain harmony.
Vaatekaappia
Kirjahylly - The correct choice is "ä".
"Kirja" (i, a) has mixed vowels, but "hylly" (y) has front vowels. The suffix that follows should use "ä" to match the front vowels.
Kirjahyllyä
Parisänky - The correct choice is "ä".
"Pari" (a) and "sänky" (ä, y) have a combination of vowels, with the second part having front vowels. So, "ä" is used to maintain vowel harmony.
Parisänkyä
Työtuoli - The correct choice is "a".
"Työ" (ö) contains a front vowel, but "tuoli" (o) contains back vowels, making "a" the correct choice for vowel harmony.
Työtuolia
Päiväpeitto - The correct choice is "a".
"Päivä" (ä, i) contains front vowels, but "peitto" (o) contains back vowels. Therefore, "a" is used to maintain vowel harmony.
Päiväpeittoa
Summary: The choice between "a" and "ä" in the blanks is based on the vowel harmony of the words. If the word contains back vowels (a, o, u), "a" is used. If the word contains front vowels (ä, ö, y), "ä" is used. This rule helps ensure that words in Finnish are phonetically harmonious.
Suomen Kieli (Kysymys)
Kysymys/Question
1. Kuka?
Question: Kuka sinä olet?
Translation: Who are you?
Usage: "Kuka" is used to ask about a person’s identity. It’s typically used when you want to know who someone is.
2. Mikä?
Question: Mikä tämä on?
Translation: What is this?
Usage: "Mikä" is used to ask about the identity of a thing or concept. It’s typically used when you want to know what something is.
3. Mitä?
Question: Mitä sinä teet?
Translation: What are you doing?
Usage: "Mitä" is used to ask about an action or activity. It’s often used when you want to know what someone is doing.
4. Milloin?
Question: Milloin tapaamme?
Translation: When will we meet?
Usage: "Milloin" is used to ask about time. It’s used when you want to know when something will happen.
5. Minkämaalainen?
Question: Minkämaalainen sinä olet?
Translation: What is your nationality?
Usage: "Minkämaalainen" is used to ask about someone’s nationality or country of origin.
6. Missä?
Question: Missä sinä asut?
Translation: Where do you live?
Usage: "Missä" is used to ask about location. It’s used when you want to know where something or someone is.
7. Mistä?
Question: Mistä sinä tulet?
Translation: Where are you coming from?
Usage: "Mistä" is used to ask about the origin or source of something. It’s typically used to inquire where someone or something is coming from.
8. Mihin?
Question: Mihin sinä menet?
Translation: Where are you going?
Usage: "Mihin" is used to ask about the direction or destination. It’s used when you want to know where someone or something is headed.
9. Miksi?
Question: Miksi sinä olet täällä?
Translation: Why are you here?
Usage: "Miksi" is used to ask about the reason or cause of something. It’s used when you want to know why something is happening.
10. Kuinka?
Question: Kuinka vanha sinä olet?
Translation: How old are you?
Usage: "Kuinka" is used to ask about the manner, degree, or extent of something. It’s often used with questions about quantities or measurements.
11. Miten?
Question: Miten sinä voit?
Translation: How are you?
Usage: "Miten" is used to ask about the manner or way in which something is done. It’s typically used to inquire how someone is feeling or how something is done.
Summary of Usage:
- Kuka: To ask about a person’s identity.
- Mikä: To ask about what something is.
- Mitä: To ask about an action.
- Milloin: To ask about time.
- Minkämaalainen: To ask about nationality.
- Missä: To ask about a location.
- Mistä: To ask about the origin.
- Mihin: To ask about the destination.
- Miksi: To ask about the reason.
- Kuinka: To ask about quantity or degree.
- Miten: To ask about the manner or way.
These words are essential for forming questions in Finnish and are used based on the context of what information you are seeking.
Thursday, May 9, 2024
Change priority of dual boot OS
Change priority of dual boot OS (Windows and Linux):
Go to your Linux OS, install Grub customizer.
Then change priority by up and down arrow key and press save.
Friday, May 3, 2024
Show your current git branch name in Ubuntu or Zorin terminal
Tuesday, April 30, 2024
Make your window center in Ubuntu or Zorin OS
Make your window center in Ubuntu or Zorin OS by below command:
gsettings set org.gnome.mutter center-new-windows true
Hit enter
You're done!
Wednesday, April 17, 2024
Switch PHP version in Ubuntu OS or Zorin OS
Wordpress debug log function
Wordpress error log code: if ( ! function_exists ( 'write_log' ) ) { function write_log ( $data ) { if ( defined ( '...
-
In Finnish, telling time follows a specific structure, and understanding it can help you get the hang of the language. Here’s a guide with e...
-
In Finnish, location-based words like "täällä," "tuolla," and "siellä" help describe where something is rela...
-
Suomen Kieli (Vuorokausi): 1. Aamu (Morning): This refers to early morning, usually around 6:00 AM to 9:00 AM . 2. Aamupäivä (Before noon)...

