Ashique's Programming Diary
.:Useful for computer programmers and users:.
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.
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...
-
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)...
-
In Finnish, location-based words like "täällä," "tuolla," and "siellä" help describe where something is rela...
