A Challenge to integrate APM with Laravel inside container

We had a need to integrate APM to php project. I have tried many ways and debug a lot but couldn’t get success.

My system using docker and container to setup a php, nginx server. We are using php 8.2, ubuntu 22.04 and required libraries.

We have added below solutions into my docker file.

So there are three ways we can integrate as I know.

  1. Using directly Debian (.deb) package.

dpkg -i <package-file>.deb

Error : PHP Startup: Unable to load dynamic library ‘/opt/elastic/apm-agent-php/extensions/elastic_apm-20220829.so….

  1. Using git and phpize.
    1. RUN apt install -y php-dev

RUN mkdir -p /home/apm-agent && \

cd /home/apm-agent && \

git clone https://github.com/elastic/apm-agent-php.git apm && \

ls -la apm && ls -la apm/agent/native/ext && \

cd apm/agent/native/ext && \

phpize && ./configure –enable-elastic_apm && \

make clean && make && make install

RUN COPY ./elastic_apm.ini /etc/php/8.2/cli/conf.d/elastic_apm.ini

Error :  No rule to make target ‘/home/apm-agent/apm/agent/native/ext/AST_debug.c’, needed by ‘AST_debug.lo’.  Stop

  1. Using git and make, docker way

Error :/bin/bash: line 1: docker: command not found,

Solution : Install docker but couldn’t get success

Conclusion : couldn’t get success.

A Failure …

The limits of my attention

– My focus determines my reality.

This is essentially that mindfulness is -noticing what my mind id full of: what we are thinking, feeling and perceiving at any given moment. Mindfulness ads another important dimension to the mix: not judging what we are thinking about. When we become aware of what is occupying in our mind, it realize it can come up with some crazy stuff mix of negative and positive.

Generally three combinations  of tasks that fit withing our attentional space.

  1. Habitual task – few one
  2. A task which need our main focus as well as habitual task.
  3. one complex task

Busyness

Being busy doesnot make us productive. It doesnot matter how busy we are if that this busyness doesnot lead us to accomplish anything of importance. Productivity is not about cramming more into our days but about doing the right thing in each moment.

The costs add up

 

 

 

Why child become angry?

A child becomes angry for several reasons, it can be:

  • Disappointment
    • Children may have tantrums because they are unable to act or express their feelings
  • Stress
    • Children may become angry if they are under stress, such as being under academic pressure, facing social issues, or being separated from family problems.
  • Out of Control
    • Children may become angry when they feel that they are not in control of a situation, such as having to move around or get what they like.
  • Physical Dissatisfaction
    • Children may throw tantrums when they are hungry, scared or hurt.
  • A mental health issue
    • Some children may still have a mental health issue such as anxiety or depression that may cause them to have tantrums.

If your child is currently throwing tantrums a lot, call the parents together and try to understand the root causes of his tantrums.

You can always get him professional mental health help.

Translated version :

બાળક કેમ ગુસ્સે થાય છે?

સંતાન કેટલાક કારણો થી ક્રોધી થાય છે એટલે હોય શકે છે:

1. નિરાશા: બાળકો કોઈ કામ કરી શકતા નથી અથવા તેમની ભાવનાઓને વ્યક્ત કરી શકતા નથી તેથી તેઓ ક્રોધી થઈ શકે છે.

2. તણાવ: બાળકો તણાવ હોય તો તેઓ ક્રોધી થઈ શકે છે, જેમ કે તેમને શિક્ષણની દબાણમાં છે, સામાજિક મુદ્દાઓને સામે લીધે અથવા કુટુંબના સમસ્યાઓથી જુદી થઇ રહ્યા છે.

3. કંટ્રોલ ના હોનાર: બાળકો ક્રોધી થઈ શકે છે જ્યારે તેઓ લાગે છે કે તેઓ સ્થિતિમાં કંટ્રોલ નથી રાખી રહ્યા, જેમ કે તેની પરિપાટી કરવાની જગ્યા પર કે તેમની પસંદને મેળવવા માટે.

4. શારીરિક અસંતોષ: બાળકો ક્રોધી થઈ શકે છે જ્યારે તેઓ ભૂખ્યાં, થક્ક અથવા દુખે છે.

5. માનસિક સ્વાસ્થ્ય મુદ્દો: કેટલાક બાળકોમાં હજી જ માનસિક સ્વાસ્થ્ય મુદ્દો હોઈ શકે છે જેમ કે ચિંતા અથવા ઉદાસીનતા જેની વજહે તેઓ ક્રોધી થઈ શકે છે.

જો તમારો સંતાન હાલમાં ઘણા વખત ક્રોધી થઈ રહ્યો છે, તો તેને સાથે માતા પિતા ને બોલાવી અને તેના ક્રોધની મૂળ કારણો સમજવા માટે પ્રયાસ કરો. તમે તેને માનસિક સ્વાસ્થ્ય માટે પ્રોફેશનલ સહાય હંમેશા મેળવી શકો છો.

Everyday – balanced work

EVERYDAY – Balanced

  • Play to your strengths
    • Don’t try and be all things to all people. Focus on your strengths and outsource the others. Ex. If you’re not a whiz at accounts or graphic design, outsource them instead of wasting time to do it. someone is better than you in this context.
  • Prioritise your time
    • You may have a to-do list with 50 tasks on it, so you need to prioritize those tasks into four categories:
      * Urgent and important
      * Important but not urgent
      * Urgent but not important
      * Neither urgent nor important.
  • Know your peaks and troughs
    • Are you a morning person? If you are, assign tough, high-concentration tasks to the mornings. Don’t leave the tough tasks until its night time and vice versa.
  • Have set work hours – and stick to them
    • Set work hours for yourself and do everything in your power to stick to them. Otherwise, before you know it, you’ll be working until midnight every night. You will fall in never ending process and will distrurb everyday schedule.
  • Manage your time, long term
    • Create a timeline of your activities. Specific computer programs can help with this, or you can customize your own Excel spreadsheet or Word table.
    • Put dates across the top and activities down the side. Break each task into components.
    • Include family commitments – such as holidays, birthday parties, etc. – so you don’t forget that you are unavailable for work on those days
  • Make exercise a must-do, not a should-do
    • It’s easy to cancel the gym, the evening run or the yoga class because a client wants something done yesterday.
    • Instead, ensure exercise is given as much priority as your clients and making money. A healthy body means a fresh mind, which means you will function better and complete tasks in less time.
  • Tap into technology
    • Take time to make time
    • Invest in time-tracking tools
  • Know and nurture your network
    • Prioritise growing your network and have a structured lead/conversion system in place so you can track the time/cost involved to grow your network.
  • Set the benchmarks early on and learn the lessons early.
  • Have that holiday
    • Make time for a holiday and book in breaks, at least quarterly. Even a long weekend every quarter is better than nothing.

Autopilot mode and focus

An autopilot mode and Better to switch off.

  • Autopilot mode enables us to keep up with the demands of our life.
  • While failing into autopilot mode can help us to keep up the pace of work and life, attention is the most  limited and constrained resource. The more we can manage our attention with intention, the more focused, productive, and creative we become.
  • We have to pay attention on : Detecting your attention toward the most important object of your choosing -and sustaining that attention – is the most consequential decision we will make throughout the day.  Thats why switching off the autopilot mode is difficult.

There are two main criteria to consider when categorizing what to focus on:

  1.  Whether a task is productive ( accomplying)
  2.  Or whether a task is attractive (fun to do) or unattractive (boring, difficult, etc…)

Four types of tasks:

Non Attractive Attractive
Productive Necessory work Purposefull work
UnProductive UnNecessory work Distracting work

Necessory Work : includes tasks that are unattractive yet productive. Ex. Team meetings and calls. we usually have to push ourselves to do such task.

Unnecessory work : includes tasks that are both unproductive and unattractive. Ex. rearranging papers on desk or files on the computers. Spending time on such tasks keeps us busy but such busyness is just an active form of the laziness where it doesn’t lead to accomplishing anything.

Distracting Work: includes stimulating, unproductive task and this is black hole of productivity. Ex. Social media, news websites, water-cooler chats,  whats-app chats,  and every other form of low return distractions.  These are fun but generally be indulged in small doses. Better you managing your attention.

Purposeful Work: the productive sweet spot. These are where we put on earth to do, the task with which we make the largest impact. These depends on what is your profession, like for researcher this might be a designing and running studies, for an actor this would be a rehase and perform.  My important task in this categories are focus on current project deadline and completion, reading books,  preparing certificate exams. In personal life , my task are: giving time to my kids,  playing with them.

Actions:

Davide up your work tasks based on the four categories in the above grid.

This will give you incredible awareness of what is actually important in your work.

 

ccavenue payment gateway

ccavenue payment gateway for magento
1.
The first step is to establish a CCAvenue merchant account.
Merchant Id/User Id
32 Bit Working Key
2.magento admin (http://go.magento.com/support/kb/entry/name/payment-methods-ccavenue/)
-From the Admin panel, select System > Configuration.
From the Configuration panel on the left, under Sales, select the Payment Method tab.
Click to expand the CCAvenue section. Then, do the following:
To activate this payment method, set Enabled to Yes.
Enter the following information from your CCAvenue merchant account:
Merchant Id/User Id
32 Bit Working Key
In the Payment from Applicable Countries list, select the countries where this payment method can be used:
All Allowed Countries: Customers from all countries in the default countries list can use this payment method.
NOTE: You can define which countries are listed in the default list by modifying the Allowed Countries field in System > Configuration > General > Countries Options.
Specific Countries: Customers from only those countries selected in the Payment from Specific Countries list can use this payment method. (The list appears when you select this option.)
To set the position of CCAvenue in the list of payment methods that is displayed during checkout, enter a numeric value in the Sort Order field.
When finished, click the Save Config button.

For further instruction let me know here.

ref: old website.