Thursday, May 30, 2024

MERGING MULTIPLE SPF RECORDS FOR YOUR GODADDY DOMAIN

 If you have multiple SPF records, delete them to avoid conflicts.Add a single SPF record with the combined directives:

Eg:
1.  v=spf1 include:_spf.elasticemail.com include:spf.protection.outlook.com -all

2. v=spf1 include:_spf.mlsend.com include:_spf.mlsend.com include:_spf.elasticemail.com include:spf.protection.outlook.com -all

Combined
  1. v=spf1 include:_spf.elasticemail.com include:spf.protection.outlook.com include:_spf.mlsend.com -all
  2. Save Changes:

    • Save the changes to your DNS records.

Verify the SPF Record

After updating the SPF record, verify that it has been correctly applied:

  • Use MXToolbox SPF Lookup https://mxtoolbox.com/SuperTool.aspx to check the SPF record for your domain.
  • Ensure that the record includes all necessary includes (_spf.elasticemail.com, spf.protection.outlook.com, _spf.mlsend.com).

Tuesday, May 28, 2024

Adding Meta Tags

 

Steps to Implement

  1. Edit your HTML file: Open your HTML document in your preferred text editor.
  2. Insert meta tags: Add the meta tags within the <head> section as shown in the example above.
  3. Save the changes: After adding the meta tags, save the file.
  4. Upload your file: If your website is hosted, upload the updated HTML file to your web server.

Validation

After adding meta tags, you can validate your HTML to ensure there are no errors. You can use the W3C Markup Validation Service https://validator.w3.org/ to check your HTML.

How to check if code is changed from LUMEN to LARAVEL

 Here are some ways to check your code after your team migrated it from Lumen to Laravel:

Here are some ways to check your code after your team migrated it from Lumen to Laravel:

General checks:

  • Project Structure:
    • Verify the Laravel directory structure. Laravel has a specific directory layout with folders like app, config, resources, etc. Ensure these folders exist and contain the expected files.
  • Configuration:
    • Check the composer.json file to see if Laravel dependencies are installed.
    • Review the config directory. Key Laravel configuration files like app.php, database.php, etc. should be present and configured correctly.
  • Autoloading:
    • Ensure the autoload section in composer.json reflects the Laravel PSR-4 autoloading structure.
  • Routing:
    • Look for the routes directory. Laravel uses routes defined in this directory for handling requests. Ensure routes are migrated properly from Lumen.
  • Controllers:
    • Verify that controllers are located in the app/Http/Controllers directory (default Laravel location) and use Laravel controller features like dependency injection and middleware.

Framework-specific checks:

  • Lumen-specific code: Identify and remove any Lumen-specific code that is no longer relevant in Laravel. This could include custom service providers, facades, or helper functions.
  • Laravel features: Look for usage of new Laravel features like middleware, Eloquent ORM, or service providers that may have replaced Lumen functionality.

Testing:

  • Unit Tests: Run any existing unit tests to ensure core functionalities still work after the migration.
  • Manual Testing: Manually test critical functionalities of your application to identify any regressions introduced during the migration.

Additional resources:

By following these steps and referencing the resources, you can gain a good understanding of the changes made during the migration and identify any potential issues. Remember, the specific checks will depend on the complexity of your application and the extent of the migration.

Thursday, May 9, 2024

Edit PDF

 Edit PDF using https://www.sejda.com/pdf-editor?

Edit PDF META DATA https://pdfcandy.com/

Wednesday, April 24, 2024

Google Gloud Text to Speech using Vertex AI

English Text To Speech

 

 https://console.cloud.google.com/vertex-ai/generative/speech/text-to-speech?project=high-form-421310

 

Arabic Text To Speech

 

https://www.texttovoice.online/?lang=ar-XA 

https://speechgen.io/en/tts-arab/

 

Thursday, April 18, 2024

Steps to get website table data to excel

 1)Libre Office Calc


CLICK From top menu Sheet ----->Link to external data

2)Enter the website URL and click enter

3)Use copy and paste special--->transpose, to change rows to columns and columns to rows

4)Use tools--->macros to write VB script to get things like finding emails and logos


Wednesday, April 17, 2024

web scrapping tutorial

 https://data36.com/web-scraping-tutorial-episode-1-scraping-a-webpage-with-bash/

 

sudo apt-get install html2text

curl https://www.ted.com/talks/sir_ken_robinson_do_schools_kill_creativity/transcript |
html2text |
sed -n '/Details About the talk/,$p' |
sed -n '/Programs &amp. initiatives/q;p' |
head -n-1 |
tail -n+2  > proto_text.csv

 

 

 

Tuesday, April 2, 2024

Build your skills using AWS

 https://explore.skillbuilder.aws/learn

 

To enroll in AWS Training and Certification courses, follow these steps:

  1. Create an AWS Builder Account:

    • If you don't already have an AWS Builder account, go to the AWS website (https://aws.amazon.com/) and click on the "Create an AWS Builder Account" button. Follow the prompts to set up your account.
  2. Access the AWS Training and Certification Portal:

    • Once you have an AWS account, go to the AWS Training and Certification portal at https://www.aws.training/. or https://explore.skillbuilder.aws/learn
    • If you're not already signed in, sign in using your AWS builder account credentials.
  3. Explore Training Options:

    • Browse through the available training courses, learning paths, and certifications offered by AWS.
    • You can filter courses by role (e.g., Solutions Architect, Developer, SysOps Administrator), level (beginner, intermediate, advanced), and format (digital training, classroom training, certification exam preparation).
  4. Select a Course or Certification:

    • Choose the course or certification that aligns with your learning goals and career objectives.
    • Click on the course or certification to view more details, including the course outline, duration, prerequisites, and available formats.
  5. Enroll in the Course:

    • Once you've selected a course or certification, click on the "Enroll" or "Register" button.
    • Follow the prompts to complete the enrollment process. You may need to provide additional information such as your contact details and payment information (if applicable).
  6. Access Training Materials:

    • After enrolling in a course, you'll gain access to the training materials, which may include video lectures, hands-on labs, quizzes, and other resources.
    • Some courses may also provide access to instructor-led training sessions or virtual classrooms.
  7. Track Your Progress:

    • Monitor your progress through the course materials and complete any required assessments or exercises.
    • Track your progress using the learning dashboard or progress tracker provided by AWS Training and Certification.
  8. Prepare for Certification Exams:

    • If you're preparing for an AWS certification exam, make sure to review the exam guide, study the recommended materials, and take practice exams to assess your readiness.
    • Schedule your certification exam through the AWS Certification portal when you feel prepared to take the exam.

By following these steps, you can enroll in AWS Training and Certification courses and start building your skills and expertise in cloud computing and AWS services.

 

Tuesday, March 12, 2024

Wednesday, January 17, 2024

Freee Website to generate barcode or QRcode

 https://qrcode.tec-it.com/en

step-by-step guide on how to create a Linktree for your company:

 Here's a step-by-step guide on how to create a Linktree for your company:

  1. Visit Linktree's Website: Go to the Linktree website: https://linktr.ee/.

  2. Sign Up or Log In: If you don't have an account, sign up using your email or social media accounts. If you already have an account, log in.

  3. Create Your Linktree:

    • Once logged in, you'll be prompted to create your Linktree.
    • Click on the "+ Add New Button" to add your first link.
    • Enter the title for the link (e.g., YouTube) and the URL.
    • Continue adding buttons for other links you want to include (e.g., WhatsApp, social media profiles, website).
  4. Customize Your Linktree:

    • Customize the appearance of your Linktree by choosing a theme and updating colors to match your company's branding.
    • Add a profile picture or company logo for a more personalized touch.
  5. Arrange Your Links:

    • Drag and drop the links to arrange them in the desired order.
    • You can also add or remove links as needed.
  6. Settings:

    • Explore the settings to customize your Linktree further. You can change the Linktree URL, add analytics, and set up other preferences.
  7. Save and Share:

    • Once you are satisfied with your Linktree setup, save your changes.
    • Copy the Linktree URL provided (e.g., linktr.ee/YourCompanyName) and share it on your YouTube channel, WhatsApp, social media, or any other platform where you want users to access multiple links easily.
  8. Promote Your Linktree:

    • Consider promoting your Linktree in your YouTube video descriptions, WhatsApp status, social media profiles, and any other relevant channels.

That's it! Your Linktree is ready to help your audience access various links associated with your company from a single, convenient location.

Sunday, January 7, 2024

web scraping reference

 https://juangsalazprabowo.medium.com/how-to-scraping-a-website-using-php-curl-in-laravel-framework-446ea0e97219

Monday, December 25, 2023

docker site goes down, due to ssl renewal error

sudo certbot -i nginx -d mqbakery.com -d *.mqbakery.com -a manual

sudo nginx -t

sudo systemctl reload nginx


 or

 

docker stop docker-webserver-1
docker start docker-webserver-1

NB- When you add acme challenge in godaddy, don't forget to remove the domain name from txt name. eg:_acmechallenge.mqbakery.com may be written as only acme_challenge